Skip to content

Commit a317a1a

Browse files
speakeasybotunclesp1d3r
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6
1 parent bc38f00 commit a317a1a

File tree

19 files changed

+103
-106
lines changed

19 files changed

+103
-106
lines changed

.speakeasy/gen.lock

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 11fa8266-8454-49fd-ba7b-d5f8744980cc
33
management:
4-
docChecksum: c77abf90c6133eb42b34c8f1cebf6a14
4+
docChecksum: 80bec64634a58ec3b0bd964a9c6c93aa
55
docVersion: "1.3"
6-
speakeasyVersion: 1.400.1
7-
generationVersion: 2.420.2
8-
releaseVersion: 0.8.4
9-
configChecksum: cf0336461325480916f9ea69c9b17c8c
6+
speakeasyVersion: 1.405.6
7+
generationVersion: 2.428.1
8+
releaseVersion: 0.8.5
9+
configChecksum: da8775756c935932081875da2f426f58
1010
repoURL: https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go.git
1111
installationURL: https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go
1212
features:
1313
go:
1414
additionalDependencies: 0.1.0
1515
constsAndDefaults: 0.1.6
16-
core: 3.5.9
16+
core: 3.5.12
1717
defaultEnabledRetries: 0.2.0
1818
downloadStreams: 0.1.2
1919
envVarSecurityUsage: 0.3.1
@@ -166,7 +166,7 @@ examples:
166166
id: 135003
167167
responses:
168168
"200":
169-
application/json: {"id": 94, "name": "ratke-bode", "client_signature": "Linux, ArchLinux 2022.08.05", "state": "pending", "operating_system": "linux", "devices": ["cpu", "GPU"], "advanced_configuration": {"agent_update_interval": 46, "use_native_hashcat": false, "backend_device": null, "opencl_devices": null, "enable_additional_hash_types": false}}
169+
application/json: {"id": 2571, "host_name": "weissnat", "client_signature": "macOS, High Sierra (10.13)", "state": "active", "operating_system": "linux", "devices": ["cpu", "GPU"], "advanced_configuration": {"agent_update_interval": 36, "use_native_hashcat": false, "backend_device": null, "opencl_devices": null, "enable_additional_hash_types": false}}
170170
"401":
171171
application/json: {"error": "Bad credentials"}
172172
updateAgent:
@@ -175,18 +175,18 @@ examples:
175175
path:
176176
id: 828119
177177
requestBody:
178-
application/json: {"id": 96, "name": "effertz-frami", "client_signature": "Plan 9, Plan 9 Fourth Edition", "operating_system": "linux", "devices": ["cpu", "GPU"]}
178+
application/json: {"id": 2573, "host_name": "stoltenberg", "client_signature": "Linux, RHEL 6.10", "operating_system": "linux", "devices": ["cpu", "GPU"]}
179179
responses:
180180
"200":
181-
application/json: {"id": 912003, "name": "<value>", "client_signature": "<value>", "state": "error", "operating_system": "<value>", "devices": ["<value>", "<value>", "<value>"], "advanced_configuration": {"agent_update_interval": 666222, "use_native_hashcat": true, "backend_device": "<value>", "enable_additional_hash_types": false}}
181+
application/json: {"id": 912003, "host_name": "surprised-thyme.net", "client_signature": "<value>", "state": "error", "operating_system": "<value>", "devices": ["<value>", "<value>", "<value>"], "advanced_configuration": {"agent_update_interval": 666222, "use_native_hashcat": true, "backend_device": "<value>", "enable_additional_hash_types": false}}
182182
"401": {}
183183
test_example:
184184
parameters:
185185
path:
186186
id: 182255
187187
responses:
188188
"200":
189-
application/json: {"id": 96, "name": "effertz-frami", "client_signature": "Plan 9, Plan 9 Fourth Edition", "state": "pending", "operating_system": "linux", "devices": ["cpu", "GPU"], "advanced_configuration": {"agent_update_interval": 42, "use_native_hashcat": false, "backend_device": null, "opencl_devices": null, "enable_additional_hash_types": false}}
189+
application/json: {"id": 2573, "host_name": "stoltenberg", "client_signature": "Linux, RHEL 6.10", "state": "active", "operating_system": "linux", "devices": ["cpu", "GPU"], "advanced_configuration": {"agent_update_interval": 24, "use_native_hashcat": false, "backend_device": null, "opencl_devices": null, "enable_additional_hash_types": false}}
190190
"401":
191191
application/json: {"error": "Bad credentials"}
192192
sendHeartbeat:
@@ -232,7 +232,7 @@ examples:
232232
id: 535539
233233
responses:
234234
"200":
235-
application/json: {"id": 47, "attack_mode": "dictionary", "attack_mode_hashcat": 0, "mask": "", "increment_mode": false, "increment_minimum": 0, "increment_maximum": 0, "optimized": true, "slow_candidate_generators": false, "workload_profile": 3, "disable_markov": false, "classic_markov": false, "markov_threshold": 0, "left_rule": "", "right_rule": "", "custom_charset_1": "", "custom_charset_2": "", "custom_charset_3": "", "custom_charset_4": "", "hash_list_id": 64, "word_list": {"id": 54, "download_url": "http://www.example.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTQwLCJwdXIiOiJibG9iX2lkIn19--9b15f11a378659093028a10c5635001456dbec0e/top-passwords.txt", "checksum": "vL58BUq0+tAQjqHwejEh8A==", "file_name": "top-passwords.txt"}, "rule_list": null, "mask_list": null, "hash_mode": 0, "hash_list_url": "http://www.example.com/api/v1/client/attacks/47/hash_list", "hash_list_checksum": "1B2M2Y8AsgTpgAmY7PhCfg==", "url": "http://www.example.com/campaigns/47/attacks/47.json"}
235+
application/json: {"id": 1000, "attack_mode": "dictionary", "attack_mode_hashcat": 0, "mask": "", "increment_mode": false, "increment_minimum": 0, "increment_maximum": 0, "optimized": true, "slow_candidate_generators": false, "workload_profile": 3, "disable_markov": false, "classic_markov": false, "markov_threshold": 0, "left_rule": "", "right_rule": "", "custom_charset_1": "", "custom_charset_2": "", "custom_charset_3": "", "custom_charset_4": "", "hash_list_id": 1807, "word_list": {"id": 2560, "download_url": "http://www.example.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NzcxMiwicHVyIjoiYmxvYl9pZCJ9fQ==--9584213bf1b3bcc2b08814da1a2ccbcec5d76f09/top-passwords.txt", "checksum": "vL58BUq0+tAQjqHwejEh8A==", "file_name": "top-passwords.txt"}, "rule_list": null, "mask_list": null, "hash_mode": 0, "hash_list_url": "http://www.example.com/api/v1/client/attacks/1000/hash_list", "hash_list_checksum": "1B2M2Y8AsgTpgAmY7PhCfg==", "url": "http://www.example.com/campaigns/1000/attacks/1000.json"}
236236
"401":
237237
application/json: {"error": "Attack not found."}
238238
getHashList:
@@ -254,7 +254,7 @@ examples:
254254
test_example:
255255
responses:
256256
"200":
257-
application/json: {"id": 50, "attack_id": 50, "start_date": "2024-08-25T21:36:03.829-04:00", "status": "pending", "skip": 0, "limit": 0}
257+
application/json: {"id": 802, "attack_id": 1003, "start_date": "2024-10-01T21:16:42.896-04:00", "status": "pending", "skip": 0, "limit": 0}
258258
"401":
259259
application/json: {"error": "Bad credentials"}
260260
getTask:
@@ -264,7 +264,7 @@ examples:
264264
id: 771489
265265
responses:
266266
"200":
267-
application/json: {"id": 51, "attack_id": 51, "start_date": "2024-08-24T23:09:45.984-04:00", "status": "pending", "skip": 0, "limit": 0}
267+
application/json: {"id": 803, "attack_id": 1004, "start_date": "2024-10-01T09:13:42.205-04:00", "status": "pending", "skip": 0, "limit": 0}
268268
"401":
269269
application/json: {"error": "Record not found"}
270270
sendCrack:
@@ -273,7 +273,7 @@ examples:
273273
path:
274274
id: 302642
275275
requestBody:
276-
application/json: {"timestamp": "2024-08-25T21:36:04.134-04:00", "hash": "dummy_hash_2", "plain_text": "dummy_plain"}
276+
application/json: {"timestamp": "2024-10-01T21:16:43.171-04:00", "hash": "dummy_hash_2", "plain_text": "dummy_plain"}
277277
test_example:
278278
parameters:
279279
path:
@@ -329,13 +329,13 @@ examples:
329329
test_example:
330330
responses:
331331
"200":
332-
application/json: {"config": {"agent_update_interval": 52, "use_native_hashcat": false, "backend_device": null, "opencl_devices": null, "enable_additional_hash_types": false}, "api_version": 1}
332+
application/json: {"config": {"agent_update_interval": 49, "use_native_hashcat": false, "backend_device": null, "opencl_devices": null, "enable_additional_hash_types": false}, "api_version": 1}
333333
"401":
334334
application/json: {"error": "Bad credentials"}
335335
authenticate:
336336
test_example:
337337
responses:
338338
"200":
339-
application/json: {"authenticated": true, "agent_id": 148}
339+
application/json: {"authenticated": true, "agent_id": 2624}
340340
"401":
341341
application/json: {"error": "Bad credentials"}

.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.4
15+
version: 0.8.5
1616
additionalDependencies: {}
1717
allowUnknownFieldsInWeakUnions: false
1818
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.400.1
1+
speakeasyVersion: 1.405.6
22
sources:
33
CipherSwarm_agent_api:
44
sourceNamespace: cipher-swarm-agent-api
5-
sourceRevisionDigest: sha256:f9787ad737cfb6a94a7230bcfabc8f5edd188432525efd4b67ddc7bb8f1a0e2e
6-
sourceBlobDigest: sha256:93c3f31880777a5d06b7df353d9dffb8066729999e96794680edd65284d8c216
5+
sourceRevisionDigest: sha256:6177f29fa2a1b6650a8cc068e7c18805e5357b578c9642bcd555ccb1d6a425a3
6+
sourceBlobDigest: sha256:da9d36e24d7d4937a832076a8683c8b680020db5ade075e05a5cd0931ce380f5
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:f9787ad737cfb6a94a7230bcfabc8f5edd188432525efd4b67ddc7bb8f1a0e2e
15-
sourceBlobDigest: sha256:93c3f31880777a5d06b7df353d9dffb8066729999e96794680edd65284d8c216
14+
sourceRevisionDigest: sha256:6177f29fa2a1b6650a8cc068e7c18805e5357b578c9642bcd555ccb1d6a425a3
15+
sourceBlobDigest: sha256:da9d36e24d7d4937a832076a8683c8b680020db5ade075e05a5cd0931ce380f5
1616
workflow:
1717
workflowVersion: 1.0.0
1818
speakeasyVersion: latest

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,16 @@ func main() {
128128
<!-- Start Error Handling [errors] -->
129129
## Error Handling
130130

131-
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass.
131+
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.
132132

133-
| Error Object | Status Code | Content Type |
133+
By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.
134+
135+
For example, the `GetAgent` function may return the following errors:
136+
137+
| Error Type | Status Code | Content Type |
134138
| --------------------- | --------------------- | --------------------- |
135139
| sdkerrors.ErrorObject | 401 | application/json |
136-
| sdkerrors.SDKError | 4xx-5xx | */* |
140+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
137141

138142
### Example
139143

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,14 @@ Based on:
278278
### Generated
279279
- [go v0.8.4] .
280280
### Releases
281-
- [Go v0.8.4] https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go/releases/tag/v0.8.4 - .
281+
- [Go v0.8.4] https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go/releases/tag/v0.8.4 - .
282+
283+
## 2024-10-02 03:01:05
284+
### Changes
285+
Based on:
286+
- OpenAPI Doc
287+
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
288+
### Generated
289+
- [go v0.8.5] .
290+
### Releases
291+
- [Go v0.8.5] https://github.com/unclesp1d3r/cipherswarm-agent-sdk-go/releases/tag/v0.8.5 - .

cipherswarmagentsdk.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ func New(opts ...SDKOption) *CipherSwarmAgentSDK {
200200
sdkConfiguration: sdkConfiguration{
201201
Language: "go",
202202
OpenAPIDocVersion: "1.3",
203-
SDKVersion: "0.8.4",
204-
GenVersion: "2.420.2",
205-
UserAgent: "speakeasy-sdk/go 0.8.4 2.420.2 1.3 github.com/unclesp1d3r/cipherswarm-agent-sdk-go",
203+
SDKVersion: "0.8.5",
204+
GenVersion: "2.428.1",
205+
UserAgent: "speakeasy-sdk/go 0.8.5 2.428.1 1.3 github.com/unclesp1d3r/cipherswarm-agent-sdk-go",
206206
ServerDefaults: []map[string]string{
207207
{
208208
"defaultHost": "www.example.com",

docs/models/components/agent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
88
| `ID` | *int64* | :heavy_check_mark: | The id of the agent |
9-
| `Name` | *string* | :heavy_check_mark: | The hostname of the agent |
9+
| `HostName` | *string* | :heavy_check_mark: | The hostname of the agent |
1010
| `ClientSignature` | *string* | :heavy_check_mark: | The signature of the client |
1111
| `State` | [components.State](../../models/components/state.md) | :heavy_check_mark: | The state of the agent |
1212
| `OperatingSystem` | *string* | :heavy_check_mark: | The operating system of the agent |

docs/models/operations/updateagentrequestbody.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
88
| `ID` | *int64* | :heavy_check_mark: | The id of the agent |
9-
| `Name` | *string* | :heavy_check_mark: | The hostname of the agent |
9+
| `HostName` | *string* | :heavy_check_mark: | The hostname of the agent |
1010
| `ClientSignature` | *string* | :heavy_check_mark: | The signature of the client |
1111
| `OperatingSystem` | *string* | :heavy_check_mark: | The operating system of the agent |
1212
| `Devices` | []*string* | :heavy_check_mark: | N/A |

docs/models/sdkerrors/errorobject.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# ErrorObject
22

3-
Not authorized
4-
53

64
## Fields
75

docs/sdks/agents/README.md

+16-21
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ func main() {
5959

6060
### Errors
6161

62-
| Error Object | Status Code | Content Type |
62+
| Error Type | Status Code | Content Type |
6363
| --------------------- | --------------------- | --------------------- |
6464
| sdkerrors.ErrorObject | 401 | application/json |
65-
| sdkerrors.SDKError | 4xx-5xx | */* |
66-
65+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
6766

6867
## UpdateAgent
6968

@@ -88,9 +87,9 @@ func main() {
8887

8988
ctx := context.Background()
9089
res, err := s.Agents.UpdateAgent(ctx, 828119, &operations.UpdateAgentRequestBody{
91-
ID: 96,
92-
Name: "effertz-frami",
93-
ClientSignature: "Plan 9, Plan 9 Fourth Edition",
90+
ID: 2573,
91+
HostName: "stoltenberg",
92+
ClientSignature: "Linux, RHEL 6.10",
9493
OperatingSystem: "linux",
9594
Devices: []string{
9695
"cpu",
@@ -121,11 +120,10 @@ func main() {
121120

122121
### Errors
123122

124-
| Error Object | Status Code | Content Type |
123+
| Error Type | Status Code | Content Type |
125124
| --------------------- | --------------------- | --------------------- |
126125
| sdkerrors.ErrorObject | 401 | application/json |
127-
| sdkerrors.SDKError | 4xx-5xx | */* |
128-
126+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
129127

130128
## SendHeartbeat
131129

@@ -172,11 +170,10 @@ func main() {
172170

173171
### Errors
174172

175-
| Error Object | Status Code | Content Type |
173+
| Error Type | Status Code | Content Type |
176174
| --------------------- | --------------------- | --------------------- |
177175
| sdkerrors.ErrorObject | 401 | application/json |
178-
| sdkerrors.SDKError | 4xx-5xx | */* |
179-
176+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
180177

181178
## SubmitBenchmark
182179

@@ -235,11 +232,10 @@ func main() {
235232

236233
### Errors
237234

238-
| Error Object | Status Code | Content Type |
235+
| Error Type | Status Code | Content Type |
239236
| --------------------- | --------------------- | --------------------- |
240-
| sdkerrors.ErrorObject | 400,401 | application/json |
241-
| sdkerrors.SDKError | 4xx-5xx | */* |
242-
237+
| sdkerrors.ErrorObject | 400, 401 | application/json |
238+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
243239

244240
## SubmitErrorAgent
245241

@@ -287,11 +283,10 @@ func main() {
287283

288284
### Errors
289285

290-
| Error Object | Status Code | Content Type |
286+
| Error Type | Status Code | Content Type |
291287
| --------------------- | --------------------- | --------------------- |
292288
| sdkerrors.ErrorObject | 401 | application/json |
293-
| sdkerrors.SDKError | 4xx-5xx | */* |
294-
289+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |
295290

296291
## SetAgentShutdown
297292

@@ -338,7 +333,7 @@ func main() {
338333

339334
### Errors
340335

341-
| Error Object | Status Code | Content Type |
336+
| Error Type | Status Code | Content Type |
342337
| --------------------- | --------------------- | --------------------- |
343338
| sdkerrors.ErrorObject | 401 | application/json |
344-
| sdkerrors.SDKError | 4xx-5xx | */* |
339+
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |

0 commit comments

Comments
 (0)