Skip to content

Commit

Permalink
Merge pull request #32 from ava-labs/speakeasy-sdk-regen-1727310102
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.6.0
  • Loading branch information
SayanKar authored Sep 30, 2024
2 parents ef7a83f + 755fdd9 commit 28def1d
Show file tree
Hide file tree
Showing 359 changed files with 2,651 additions and 1,673 deletions.
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2b9c4bf6-4d87-4382-84d9-5fb3c84c7fad
management:
docChecksum: 91a0e02e81b109251a6b0f980ebcb501
docChecksum: 4eba30cda024caf8d26a77769245c028
docVersion: Beta
speakeasyVersion: 1.402.0
generationVersion: 2.422.6
releaseVersion: 0.5.1
configChecksum: 2266b6d28d0cfeed797681f1785a842f
speakeasyVersion: 1.404.5
generationVersion: 2.426.2
releaseVersion: 0.6.0
configChecksum: f5c0c3a7211079b363c1b44088b13d00
repoURL: https://github.com/ava-labs/avacloud-sdk-typescript.git
installationURL: https://github.com/ava-labs/avacloud-sdk-typescript
published: true
Expand All @@ -15,7 +15,7 @@ features:
additionalDependencies: 0.1.0
additionalProperties: 0.1.1
constsAndDefaults: 0.1.11
core: 3.17.6
core: 3.18.0
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
devContainers: 2.90.0
Expand All @@ -31,7 +31,7 @@ features:
methodServerURLs: 2.82.1
nameOverrides: 2.81.2
nullables: 0.1.0
pagination: 2.82.6
pagination: 2.82.7
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.1.0
Expand Down Expand Up @@ -1266,7 +1266,7 @@ examples:
network: "mainnet"
responses:
"200":
application/json: {"addresses": {"addresses": ["avax1abcdef1234567890abcdef1234567890abcdef"], "sortKey": "123"}}
application/json: {"addresses": [{"addresses": ["avax1abcdef1234567890abcdef1234567890abcdef"], "sortKey": "123"}]}
"400":
application/json: {"message": "<value>", "statusCode": 400, "error": "Bad Request"}
"401":
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.5.1
version: 0.6.0
additionalDependencies:
dependencies:
json-canonicalize: ^1.0.6
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.402.0
speakeasyVersion: 1.404.5
sources:
AvaCloudSDK-OAS:
sourceNamespace: avacloud-sdk-oas
sourceRevisionDigest: sha256:35e4611446817d20231788a0a3b10fd86a21c7be018f2613cdafde641d1952cf
sourceBlobDigest: sha256:8dea9f206a3da11a3a96e75b8066c888d178df31056d864b5b42c21fb9fb07ad
sourceRevisionDigest: sha256:c63b3800786d77cd253bce2817cf247bf93ee6d9ee636356583af9521e3719d4
sourceBlobDigest: sha256:59c18541b6aa818777cea16543d1140770c4bb9413cca098045ec7cc7566f344
tags:
- latest
- main
Expand All @@ -18,10 +18,10 @@ targets:
avacloud-sdk:
source: AvaCloudSDK-OAS
sourceNamespace: avacloud-sdk-oas
sourceRevisionDigest: sha256:35e4611446817d20231788a0a3b10fd86a21c7be018f2613cdafde641d1952cf
sourceBlobDigest: sha256:8dea9f206a3da11a3a96e75b8066c888d178df31056d864b5b42c21fb9fb07ad
sourceRevisionDigest: sha256:c63b3800786d77cd253bce2817cf247bf93ee6d9ee636356583af9521e3719d4
sourceBlobDigest: sha256:59c18541b6aa818777cea16543d1140770c4bb9413cca098045ec7cc7566f344
codeSamplesNamespace: avacloud-sdk-ts-code-samples
codeSamplesRevisionDigest: sha256:e8febd08deb7209abce0d0de1b6e07b83402b7cd222836295ba789f1474b3753
codeSamplesRevisionDigest: sha256:cfab3496784f7f2ef80741f7d1233fc190d42f1fbb6358a5448bff40a787f542
avalanche-sdk:
source: AvalancheSDK-OAS
sourceNamespace: avalanche-sdk-oas
Expand Down
2 changes: 1 addition & 1 deletion FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function run() {
const { value: result } = res;

// Handle the result
console.log(result)
console.log(result);
}

run();
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,14 @@ Based on:
### Generated
- [typescript v0.5.1] .
### Releases
- [NPM v0.5.1] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.5.1 - .
- [NPM v0.5.1] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.5.1 - .

## 2024-09-30 00:22:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.6.0] .
### Releases
- [NPM v0.6.0] https://www.npmjs.com/package/@avalabs/avacloud-sdk/v/0.6.0 - .
6 changes: 3 additions & 3 deletions docs/models/components/activedelegatordetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { ActiveDelegatorDetails } from "@avalabs/avacloud-sdk/models/components"

let value: ActiveDelegatorDetails = {
txHash: "<value>",
nodeId: "<value>",
nodeId: "<id>",
rewardAddresses: [
"<value>",
],
amountDelegated: "<value>",
delegationFee: "<value>",
startTimestamp: 5699.65,
endTimestamp: 5908.73,
startTimestamp: 1716.30,
endTimestamp: 5210.37,
estimatedGrossReward: "<value>",
estimatedNetReward: "<value>",
delegationStatus: "active",
Expand Down
22 changes: 11 additions & 11 deletions docs/models/components/activevalidatordetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ import { ActiveValidatorDetails } from "@avalabs/avacloud-sdk/models/components"

let value: ActiveValidatorDetails = {
txHash: "<value>",
nodeId: "<value>",
subnetId: "<value>",
nodeId: "<id>",
subnetId: "<id>",
amountStaked: "<value>",
startTimestamp: 5722.52,
endTimestamp: 2230.82,
stakePercentage: 9527.49,
delegatorCount: 4471.25,
uptimePerformance: 8464.09,
startTimestamp: 4314.18,
endTimestamp: 8965.47,
stakePercentage: 3675.62,
delegatorCount: 4358.65,
uptimePerformance: 8919.23,
potentialRewards: {
validationRewardAmount: "<value>",
delegationRewardAmount: "<value>",
},
validationStatus: "active",
validatorHealth: {
reachabilityPercent: 6994.79,
benchedPChainRequestsPercent: 2974.37,
benchedXChainRequestsPercent: 8137.98,
benchedCChainRequestsPercent: 3965.06,
reachabilityPercent: 8061.94,
benchedPChainRequestsPercent: 7038.89,
benchedXChainRequestsPercent: 1002.27,
benchedCChainRequestsPercent: 9194.83,
},
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/alltimeerc20balancequerydto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let value: AllTimeErc20BalanceQueryDto = {
firstDate: "<value>",
lastDate: "<value>",
minBalance: "<value>",
evmChainId: "<value>",
evmChainId: "<id>",
contractAddress: "<value>",
},
};
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/alltimenativebalancequerydto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let value: AllTimeNativeBalanceQueryDto = {
firstDate: "<value>",
lastDate: "<value>",
minBalance: "<value>",
evmChainId: "<value>",
evmChainId: "<id>",
},
};
```
Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/alltimenftholdersquerydto.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ let value: AllTimeNftHoldersQueryDto = {
id: "<id>",
type: "AllTimeNftHolders",
params: {
evmChainId: "<value>",
firstDate: "<value>",
lastDate: "<value>",
evmChainId: "<id>",
contractAddress: "<value>",
startTs: 6399.21,
endTs: 1433.53,
},
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/anytimeerc20balancequerydto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let value: AnyTimeErc20BalanceQueryDto = {
firstDate: "<value>",
lastDate: "<value>",
minBalance: "<value>",
evmChainId: "<value>",
evmChainId: "<id>",
contractAddress: "<value>",
},
};
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/anytimenativebalancequerydto.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let value: AnyTimeNativeBalanceQueryDto = {
firstDate: "<value>",
lastDate: "<value>",
minBalance: "<value>",
evmChainId: "<value>",
evmChainId: "<id>",
},
};
```
Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/anytimenftholdersquerydto.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ let value: AnyTimeNftHoldersQueryDto = {
id: "<id>",
type: "AnyTimeNftHolders",
params: {
evmChainId: "<value>",
firstDate: "<value>",
lastDate: "<value>",
evmChainId: "<id>",
contractAddress: "<value>",
startTs: 5684.34,
endTs: 187.90,
},
};
```
Expand Down
26 changes: 12 additions & 14 deletions docs/models/components/anytimenftholdersquerydtoparams.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
# AnyTimeNftHoldersQueryDtoParams

## Example Usage

```typescript
import { AnyTimeNftHoldersQueryDtoParams } from "@avalabs/avacloud-sdk/models/components";

let value: AnyTimeNftHoldersQueryDtoParams = {
evmChainId: "<value>",
contractAddress: "<value>",
startTs: 2645.56,
endTs: 7742.34,
};
```

## Supported Types

### `components.TimestampRangeNftHoldersParam`

```typescript
const value: components.TimestampRangeNftHoldersParam = /* values here */
const value: components.TimestampRangeNftHoldersParam = {
evmChainId: "<id>",
contractAddress: "<value>",
startTs: 7742.34,
endTs: 4561.50,
};
```

### `components.DateRangeNftHoldersParam`

```typescript
const value: components.DateRangeNftHoldersParam = /* values here */
const value: components.DateRangeNftHoldersParam = {
firstDate: "<value>",
lastDate: "<value>",
evmChainId: "<id>",
contractAddress: "<value>",
};
```

2 changes: 1 addition & 1 deletion docs/models/components/assetamount.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let value: AssetAmount = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "secp256k1",
type: "nft",
amount: "5001000",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/assetwithpriceinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let value: AssetWithPriceInfo = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "nft",
type: "secp256k1",
amount: "5001000",
historicalPrice: {
currencyCode: "usd",
Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import { Blockchain } from "@avalabs/avacloud-sdk/models/components";

let value: Blockchain = {
createBlockTimestamp: 9292.96,
createBlockTimestamp: 9527.49,
createBlockNumber: "<value>",
blockchainId: "<value>",
vmId: "<value>",
subnetId: "<value>",
blockchainId: "<id>",
vmId: "<id>",
subnetId: "<id>",
blockchainName: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/blockchainids.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { BlockchainIds } from "@avalabs/avacloud-sdk/models/components";

let value: BlockchainIds = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
let value: BlockchainIds = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/blockchaininfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { BlockchainInfo } from "@avalabs/avacloud-sdk/models/components";

let value: BlockchainInfo = {
blockchainId: "<value>",
blockchainId: "<id>",
};
```

Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/cchainatomicbalances.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ let value: CChainAtomicBalances = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "secp256k1",
type: "nft",
amount: "5001000",
utxoCount: 1,
sharedWithChainId: "<value>",
sharedWithChainId: "<id>",
},
],
atomicMemoryLocked: [
Expand All @@ -24,10 +24,10 @@ let value: CChainAtomicBalances = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "secp256k1",
type: "nft",
amount: "5001000",
utxoCount: 1,
sharedWithChainId: "<value>",
sharedWithChainId: "<id>",
},
],
};
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/cchainexporttransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let value: CChainExportTransaction = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "nft",
type: "secp256k1",
amount: "5001000",
},
],
Expand Down Expand Up @@ -65,7 +65,7 @@ let value: CChainExportTransaction = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "secp256k1",
type: "nft",
amount: "5001000",
},
consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/cchainimporttransaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let value: CChainImportTransaction = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "nft",
type: "secp256k1",
amount: "5001000",
},
],
Expand All @@ -28,7 +28,7 @@ let value: CChainImportTransaction = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "secp256k1",
type: "nft",
amount: "5001000",
},
],
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/cchainsharedassetbalance.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ let value: CChainSharedAssetBalance = {
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "secp256k1",
type: "nft",
amount: "5001000",
utxoCount: 1,
sharedWithChainId: "<value>",
sharedWithChainId: "<id>",
};
```

Expand Down
Loading

0 comments on commit 28def1d

Please sign in to comment.