Skip to content

Commit 720d5b1

Browse files
authored
Merge pull request #44 from ava-labs/speakeasy-sdk-regen-1734049462
chore: 🐝 Update SDK - Generate 0.8.3
2 parents 7951470 + 2075a38 commit 720d5b1

22 files changed

+604
-39
lines changed

.speakeasy/gen.lock

+36-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2b9c4bf6-4d87-4382-84d9-5fb3c84c7fad
33
management:
4-
docChecksum: 21e433953628bb40823c36021dcb9f0a
4+
docChecksum: 4155e3d49d853fdc3e6cf264ac0f997d
55
docVersion: Beta
6-
speakeasyVersion: 1.453.10
7-
generationVersion: 2.474.15
8-
releaseVersion: 0.8.2
9-
configChecksum: 171e0b0b43eb7e8867fa9d4b2d8a48f8
6+
speakeasyVersion: 1.455.3
7+
generationVersion: 2.479.3
8+
releaseVersion: 0.8.3
9+
configChecksum: 6f84b9a6cd393b8ea212cec077f58d26
1010
repoURL: https://github.com/ava-labs/avacloud-sdk-typescript.git
1111
installationURL: https://github.com/ava-labs/avacloud-sdk-typescript
1212
published: true
@@ -281,6 +281,8 @@ generatedFiles:
281281
- docs/models/components/rollingwindowmetricsapiresponse.md
282282
- docs/models/components/security.md
283283
- docs/models/components/sharedsecretsresponse.md
284+
- docs/models/components/signatureaggregationresponse.md
285+
- docs/models/components/signatureaggregatorrequest.md
284286
- docs/models/components/sortbyoption.md
285287
- docs/models/components/sortorder.md
286288
- docs/models/components/sourcechainid.md
@@ -576,6 +578,7 @@ generatedFiles:
576578
- docs/sdks/operations/README.md
577579
- docs/sdks/primarynetwork/README.md
578580
- docs/sdks/rewards/README.md
581+
- docs/sdks/signatureaggregator/README.md
579582
- docs/sdks/teleporter/README.md
580583
- docs/sdks/transactions/README.md
581584
- docs/sdks/usagemetrics/README.md
@@ -637,6 +640,7 @@ generatedFiles:
637640
- src/funcs/dataPrimaryNetworkVerticesGetVertexByHash.ts
638641
- src/funcs/dataPrimaryNetworkVerticesGetVertexByHeight.ts
639642
- src/funcs/dataPrimaryNetworkVerticesListLatestXChainVertices.ts
643+
- src/funcs/dataSignatureAggregatorAggregateSignatures.ts
640644
- src/funcs/dataTeleporterGetTeleporterMessage.ts
641645
- src/funcs/dataTeleporterListTeleporterMessages.ts
642646
- src/funcs/dataTeleporterListTeleporterMessagesByAddress.ts
@@ -871,6 +875,8 @@ generatedFiles:
871875
- src/models/components/rollingwindowmetricsapiresponse.ts
872876
- src/models/components/security.ts
873877
- src/models/components/sharedsecretsresponse.ts
878+
- src/models/components/signatureaggregationresponse.ts
879+
- src/models/components/signatureaggregatorrequest.ts
874880
- src/models/components/sortbyoption.ts
875881
- src/models/components/sortorder.ts
876882
- src/models/components/stakingdistribution.ts
@@ -933,6 +939,7 @@ generatedFiles:
933939
- src/models/errors/toomanyrequests.ts
934940
- src/models/errors/unauthorized.ts
935941
- src/models/operations/addaddressestowebhook.ts
942+
- src/models/operations/aggregatesignatures.ts
936943
- src/models/operations/compositequeryv2.ts
937944
- src/models/operations/createwebhook.ts
938945
- src/models/operations/datahealthcheck.ts
@@ -1036,6 +1043,7 @@ generatedFiles:
10361043
- src/sdk/primarynetwork.ts
10371044
- src/sdk/rewards.ts
10381045
- src/sdk/sdk.ts
1046+
- src/sdk/signatureaggregator.ts
10391047
- src/sdk/teleporter.ts
10401048
- src/sdk/transactions.ts
10411049
- src/sdk/usagemetrics.ts
@@ -3226,4 +3234,27 @@ examples:
32263234
application/json: {"message": "<value>", "statusCode": 502, "error": "Bad Gateway"}
32273235
"503":
32283236
application/json: {"message": [], "statusCode": 503, "error": "Service Unavailable"}
3237+
aggregateSignatures:
3238+
speakeasy-default-aggregate-signatures:
3239+
requestBody:
3240+
application/json: {"message": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003cc0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000", "justification": "0001abcdabcfff", "signingSubnetId": "7WtoAMPhrmh5KosDUsFL9yTcvw7YSxiKHPpdfs4JsgW47oZT5", "quorumPercentage": 50}
3241+
responses:
3242+
"201":
3243+
application/json: {"signedMessage": "0000000000059f3be606497285d0ffbb5ac9ba24aa60346a9b1812479ed66cb329f394a4b1c7000003a200000000000100000014253b2784c75e510dd0ff1da844684a1ac0aa5fcf00000380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001150000000000000000000000008578ae7723751446b196bd5124e1bf57b40eb7bc7fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d50000000000000000000000009660ed66aef60dfba5467afe865f612edbfb5c710000000000000000000000000000000000000000000000000000000000014c080000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000011a00000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011a20000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011b50000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e80000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000011e90000000000000000000000007ec2afb0a06a73666adc24983ebdbf2b6f1d708200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001c07f66981b45056e5024eb6d51f9f30aa0d28fd00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000103807355b21dd497ecc9f560dfbdefc64aeec72b226c70d3793273db01d1a0c0bfd74d095d6a9e0b4db2dc652245fd28ac032c0f1f6b7f761b912ad58c93cde2e337bef4a4e8175af69f226520cd1baedd2dd7db79bb5752cb50a465531e46e8af"}
3244+
"400":
3245+
application/json: {"message": [], "statusCode": 400, "error": "Bad Request"}
3246+
"401":
3247+
application/json: {"message": ["<value>", "<value>"], "statusCode": 401, "error": "Unauthorized"}
3248+
"403":
3249+
application/json: {"message": "<value>", "statusCode": 403, "error": "Forbidden"}
3250+
"404":
3251+
application/json: {"message": ["<value>"], "statusCode": 404, "error": "Not Found"}
3252+
"429":
3253+
application/json: {"message": ["<value>"], "statusCode": 429, "error": "Too Many Requests"}
3254+
"500":
3255+
application/json: {"message": "<value>", "statusCode": 500, "error": "Internal Server Error"}
3256+
"502":
3257+
application/json: {"message": [], "statusCode": 502, "error": "Bad Gateway"}
3258+
"503":
3259+
application/json: {"message": "<value>", "statusCode": 503, "error": "Service Unavailable"}
32293260
generatedTests: {}

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: false
1717
oAuth2PasswordEnabled: false
1818
typescript:
19-
version: 0.8.2
19+
version: 0.8.3
2020
additionalDependencies:
2121
dependencies:
2222
json-canonicalize: ^1.0.6

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.453.10
1+
speakeasyVersion: 1.455.3
22
sources:
33
AvaCloudSDK-OAS:
44
sourceNamespace: avacloud-sdk-oas
5-
sourceRevisionDigest: sha256:6b4280da639355b47fe2abf85ab13a5d409b0e86927b6f1c86ac8ba4aa654fba
6-
sourceBlobDigest: sha256:0f93031f1bf44df2b07fe28b3d09cc86b9466ec81aa7ec7b4c3a3d82c3f2f20c
5+
sourceRevisionDigest: sha256:427e2339ce2b9eb81a273c7bb83de00c43a308e09c84b0d7903fcf77b9319fd6
6+
sourceBlobDigest: sha256:169dbb1bda661ac86728cf0e25a89bffd9fc653d0841861fe9b4721df7e80d00
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733444645
9+
- speakeasy-sdk-regen-1734049462
1010
- Beta
1111
AvalancheSDK-OAS:
1212
sourceNamespace: avalanche-sdk-oas
@@ -19,10 +19,10 @@ targets:
1919
avacloud-sdk:
2020
source: AvaCloudSDK-OAS
2121
sourceNamespace: avacloud-sdk-oas
22-
sourceRevisionDigest: sha256:6b4280da639355b47fe2abf85ab13a5d409b0e86927b6f1c86ac8ba4aa654fba
23-
sourceBlobDigest: sha256:0f93031f1bf44df2b07fe28b3d09cc86b9466ec81aa7ec7b4c3a3d82c3f2f20c
22+
sourceRevisionDigest: sha256:427e2339ce2b9eb81a273c7bb83de00c43a308e09c84b0d7903fcf77b9319fd6
23+
sourceBlobDigest: sha256:169dbb1bda661ac86728cf0e25a89bffd9fc653d0841861fe9b4721df7e80d00
2424
codeSamplesNamespace: avacloud-sdk-ts-code-samples
25-
codeSamplesRevisionDigest: sha256:8f599360e4ba1eedb32310c22bae2dc5e6f5d5e7ae636810b56a7cd2ad5fc780
25+
codeSamplesRevisionDigest: sha256:1fb35b8427e52e57400257751487603371d4102a047ecf2e4c3a7a1216474270
2626
avalanche-sdk:
2727
source: AvalancheSDK-OAS
2828
sourceNamespace: avalanche-sdk-oas

README.md

+22-15
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ run();
186186
* [getVertexByHash](docs/sdks/vertices/README.md#getvertexbyhash) - Get vertex
187187
* [getVertexByHeight](docs/sdks/vertices/README.md#getvertexbyheight) - List vertices by height
188188

189+
#### [data.signatureAggregator](docs/sdks/signatureaggregator/README.md)
190+
191+
* [aggregateSignatures](docs/sdks/signatureaggregator/README.md#aggregatesignatures) - Aggregate Signatures
192+
189193
#### [data.teleporter](docs/sdks/teleporter/README.md)
190194

191195
* [getTeleporterMessage](docs/sdks/teleporter/README.md#getteleportermessage) - Get a teleporter message
@@ -314,6 +318,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
314318
- [`dataPrimaryNetworkVerticesGetVertexByHash`](docs/sdks/vertices/README.md#getvertexbyhash) - Get vertex
315319
- [`dataPrimaryNetworkVerticesGetVertexByHeight`](docs/sdks/vertices/README.md#getvertexbyheight) - List vertices by height
316320
- [`dataPrimaryNetworkVerticesListLatestXChainVertices`](docs/sdks/vertices/README.md#listlatestxchainvertices) - List vertices
321+
- [`dataSignatureAggregatorAggregateSignatures`](docs/sdks/signatureaggregator/README.md#aggregatesignatures) - Aggregate Signatures
317322
- [`dataTeleporterGetTeleporterMessage`](docs/sdks/teleporter/README.md#getteleportermessage) - Get a teleporter message
318323
- [`dataTeleporterListTeleporterMessages`](docs/sdks/teleporter/README.md#listteleportermessages) - List teleporter messages
319324
- [`dataTeleporterListTeleporterMessagesByAddress`](docs/sdks/teleporter/README.md#listteleportermessagesbyaddress) - List teleporter messages by address
@@ -498,19 +503,7 @@ run();
498503
<!-- Start Error Handling [errors] -->
499504
## Error Handling
500505

501-
All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.SDKError`.
502-
503-
If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:
504-
505-
| HTTP Client Error | Description |
506-
| ---------------------------------------------------- | ---------------------------------------------------- |
507-
| RequestAbortedError | HTTP request was aborted by the client |
508-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
509-
| ConnectionError | HTTP client was unable to make a request to a server |
510-
| InvalidRequestError | Any input used to create a request is invalid |
511-
| UnexpectedClientError | Unrecognised or unexpected error |
512-
513-
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `reindexNft` method may throw the following errors:
506+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `reindexNft` method may throw the following errors:
514507

515508
| Error Type | Status Code | Content Type |
516509
| -------------------------- | ----------- | ---------------- |
@@ -524,6 +517,8 @@ In addition, when custom error responses are specified for an operation, the SDK
524517
| errors.ServiceUnavailable | 503 | application/json |
525518
| errors.SDKError | 4XX, 5XX | \*/\* |
526519

520+
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
521+
527522
```typescript
528523
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
529524
import {
@@ -552,8 +547,9 @@ async function run() {
552547
});
553548
} catch (err) {
554549
switch (true) {
550+
// The server response does not match the expected SDK schema
555551
case (err instanceof SDKValidationError): {
556-
// Validation errors can be pretty-printed
552+
// Pretty-print will provide a human-readable multi-line error message
557553
console.error(err.pretty());
558554
// Raw value may also be inspected
559555
console.error(err.rawValue);
@@ -600,6 +596,7 @@ async function run() {
600596
return;
601597
}
602598
default: {
599+
// Other errors such as network errors, see HTTPClientErrors for more details
603600
throw err;
604601
}
605602
}
@@ -610,7 +607,17 @@ run();
610607

611608
```
612609

613-
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
610+
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
611+
612+
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
613+
614+
| HTTP Client Error | Description |
615+
| ---------------------------------------------------- | ---------------------------------------------------- |
616+
| RequestAbortedError | HTTP request was aborted by the client |
617+
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
618+
| ConnectionError | HTTP client was unable to make a request to a server |
619+
| InvalidRequestError | Any input used to create a request is invalid |
620+
| UnexpectedClientError | Unrecognised or unexpected error |
614621
<!-- End Error Handling [errors] -->
615622

616623
<!-- Start Server Selection [server] -->

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,14 @@ Based on:
179179
### Generated
180180
- [typescript v0.8.2] .
181181
### Releases
182-
- [NPM v0.8.2] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.8.2 - .
182+
- [NPM v0.8.2] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.8.2 - .
183+
184+
## 2024-12-16 00:25:18
185+
### Changes
186+
Based on:
187+
- OpenAPI Doc
188+
- Speakeasy CLI 1.455.3 (2.479.3) https://github.com/speakeasy-api/speakeasy
189+
### Generated
190+
- [typescript v0.8.3] .
191+
### Releases
192+
- [NPM v0.8.3] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.8.3 - .

0 commit comments

Comments
 (0)