Skip to content

Commit 941ba54

Browse files
speakeasybotunclesp1d3r
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.379.0
1 parent 77d834b commit 941ba54

File tree

9 files changed

+29
-21
lines changed

9 files changed

+29
-21
lines changed

.speakeasy/gen.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 11fa8266-8454-49fd-ba7b-d5f8744980cc
33
management:
4-
docChecksum: 974203a2c181336c4989bb3a1c5be36f
4+
docChecksum: ff8b47df3bdada1182bef1415493ce5b
55
docVersion: "1.3"
66
speakeasyVersion: 1.379.0
77
generationVersion: 2.404.3
8-
releaseVersion: 0.8.2
9-
configChecksum: e738bb4dcf677638191e216256948272
8+
releaseVersion: 0.8.3
9+
configChecksum: 0fef6be0f8bdee7f32106e342d7dfe59
1010
repoURL: https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go.git
1111
installationURL: https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go
1212
features:

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
go:
15-
version: 0.8.2
15+
version: 0.8.3
1616
additionalDependencies: {}
1717
allowUnknownFieldsInWeakUnions: false
1818
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ speakeasyVersion: 1.379.0
22
sources:
33
CipherSwarm_agent_api:
44
sourceNamespace: cipher-swarm-agent-api
5-
sourceRevisionDigest: sha256:c52ea1fbdfdc6a521af13410fec0b23cb99425847949457d1395af5a47e23c65
6-
sourceBlobDigest: sha256:c71061092fca3a9231ac0eac0d045afc1b9ac27b9c656e6806d924395ef2ec9b
5+
sourceRevisionDigest: sha256:abb0a124fd1e548164b96b8e56803106daadc61116cecc0042426a24ea65afb4
6+
sourceBlobDigest: sha256:756d43108a60dd436d2afd7c659609e4608fe45f36b01bf6be1ed50d1db7f83b
77
tags:
88
- latest
99
- main
1010
targets:
1111
golang-sdk:
1212
source: CipherSwarm_agent_api
1313
sourceNamespace: cipher-swarm-agent-api
14-
sourceRevisionDigest: sha256:c52ea1fbdfdc6a521af13410fec0b23cb99425847949457d1395af5a47e23c65
15-
sourceBlobDigest: sha256:c71061092fca3a9231ac0eac0d045afc1b9ac27b9c656e6806d924395ef2ec9b
14+
sourceRevisionDigest: sha256:abb0a124fd1e548164b96b8e56803106daadc61116cecc0042426a24ea65afb4
15+
sourceBlobDigest: sha256:756d43108a60dd436d2afd7c659609e4608fe45f36b01bf6be1ed50d1db7f83b
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,14 @@ Based on:
258258
### Generated
259259
- [go v0.8.2] .
260260
### Releases
261-
- [Go v0.8.2] https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go/releases/tag/v0.8.2 - .
261+
- [Go v0.8.2] https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go/releases/tag/v0.8.2 - .
262+
263+
## 2024-08-27 00:24:10
264+
### Changes
265+
Based on:
266+
- OpenAPI Doc
267+
- Speakeasy CLI 1.379.0 (2.404.3) https://github.com/speakeasy-api/speakeasy
268+
### Generated
269+
- [go v0.8.3] .
270+
### Releases
271+
- [Go v0.8.3] https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go/releases/tag/v0.8.3 - .

agents.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ func (s *Agents) SubmitErrorAgent(ctx context.Context, id int64, requestBody *op
951951

952952
_, err = s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, nil, err)
953953
return nil, err
954-
} else if utils.MatchStatusCodes([]string{"401", "404", "4XX", "5XX"}, httpRes.StatusCode) {
954+
} else if utils.MatchStatusCodes([]string{"401", "4XX", "5XX"}, httpRes.StatusCode) {
955955
_httpRes, err := s.sdkConfiguration.Hooks.AfterError(hooks.AfterErrorContext{HookContext: hookCtx}, httpRes, nil)
956956
if err != nil {
957957
return nil, err
@@ -982,8 +982,6 @@ func (s *Agents) SubmitErrorAgent(ctx context.Context, id int64, requestBody *op
982982
switch {
983983
case httpRes.StatusCode == 204:
984984
case httpRes.StatusCode == 401:
985-
fallthrough
986-
case httpRes.StatusCode == 404:
987985
switch {
988986
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
989987
var out sdkerrors.ErrorObject

cipherswarmagentsdk.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ func New(opts ...SDKOption) *CipherSwarmAgentSDK {
197197
sdkConfiguration: sdkConfiguration{
198198
Language: "go",
199199
OpenAPIDocVersion: "1.3",
200-
SDKVersion: "0.8.2",
200+
SDKVersion: "0.8.3",
201201
GenVersion: "2.404.3",
202-
UserAgent: "speakeasy-sdk/go 0.8.2 2.404.3 1.3 github.com/unclesp1d3r/cipherswarm-agent-sdk-go",
202+
UserAgent: "speakeasy-sdk/go 0.8.3 2.404.3 1.3 github.com/unclesp1d3r/cipherswarm-agent-sdk-go",
203203
ServerDefaults: []map[string]string{
204204
{
205205
"defaultHost": "www.example.com",

docs/sdks/agents/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func main() {
294294

295295
| Error Object | Status Code | Content Type |
296296
| --------------------- | --------------------- | --------------------- |
297-
| sdkerrors.ErrorObject | 401,404 | application/json |
297+
| sdkerrors.ErrorObject | 401 | application/json |
298298
| sdkerrors.SDKError | 4xx-5xx | */* |
299299

300300

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/unclesp1d3r/cipherswarm-agent-sdk-go
33
go 1.20
44

55
require (
6-
github.com/cenkalti/backoff/v4 v4.3.0
7-
github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731
6+
github.com/cenkalti/backoff/v4 v4.2.0
7+
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05
88
)

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
2-
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
3-
github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731 h1:R/ZjJpjQKsZ6L/+Gf9WHbt31GG8NMVcpRqUE+1mMIyo=
4-
github.com/ericlagergren/decimal v0.0.0-20240411145413-00de7ca16731/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ=
1+
github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4=
2+
github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
3+
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw=
4+
github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ=

0 commit comments

Comments
 (0)