@avalabs/glacier-sdk 2.8.0-canary.54f53e4.0 → 2.8.0-canary.5601e64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/index.d.ts +455 -358
  2. package/dist/index.js +164 -116
  3. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  4. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  5. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  6. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  7. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  8. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  9. package/esm/generated/models/ChainInfo.d.ts +0 -3
  10. package/esm/generated/models/ChainStatus.d.ts +3 -0
  11. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  12. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  13. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  14. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
  15. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
  16. package/esm/generated/models/EVMInput.d.ts +3 -3
  17. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  18. package/esm/generated/models/EVMOperationType.js +6 -0
  19. package/esm/generated/models/EVMOutput.d.ts +3 -3
  20. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  21. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  22. package/esm/generated/models/GetChainResponse.d.ts +0 -3
  23. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  24. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  25. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  26. package/esm/generated/models/Method.d.ts +0 -3
  27. package/esm/generated/models/Money.d.ts +0 -3
  28. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  29. package/esm/generated/models/OperationType.d.ts +4 -2
  30. package/esm/generated/models/OperationType.js +3 -1
  31. package/esm/generated/models/PChainBalance.d.ts +15 -15
  32. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  33. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  34. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  35. package/esm/generated/models/PChainTransactionType.js +2 -0
  36. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  37. package/esm/generated/models/PendingReward.d.ts +3 -3
  38. package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
  39. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  40. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  41. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  42. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  43. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  44. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  45. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  46. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  47. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
  48. package/esm/generated/models/Subnet.d.ts +17 -0
  49. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  50. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  51. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  52. package/esm/generated/models/UpdateWebhookRequest.d.ts +10 -0
  53. package/esm/generated/models/Utxo.d.ts +2 -2
  54. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  55. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  56. package/esm/generated/models/XChainBalances.d.ts +3 -3
  57. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  58. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  59. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  60. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  61. package/esm/generated/services/DefaultService.d.ts +38 -5
  62. package/esm/generated/services/DefaultService.js +34 -3
  63. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  64. package/esm/generated/services/EvmBalancesService.js +8 -8
  65. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  66. package/esm/generated/services/EvmBlocksService.js +4 -4
  67. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  68. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  69. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  70. package/esm/generated/services/EvmTransactionsService.js +32 -32
  71. package/esm/generated/services/NfTsService.d.ts +8 -8
  72. package/esm/generated/services/NfTsService.js +4 -4
  73. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  74. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  75. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +17 -12
  76. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  77. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
  78. package/esm/generated/services/PrimaryNetworkService.js +11 -11
  79. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  80. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  81. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  82. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  83. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  84. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  85. package/esm/generated/services/TeleporterService.d.ts +14 -22
  86. package/esm/generated/services/TeleporterService.js +4 -8
  87. package/esm/index.d.ts +10 -2
  88. package/esm/index.js +4 -2
  89. package/package.json +2 -2
  90. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  91. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
@@ -0,0 +1,7 @@
1
+ var PrimaryNetworkAssetCap = /* @__PURE__ */ ((PrimaryNetworkAssetCap2) => {
2
+ PrimaryNetworkAssetCap2["FIXED"] = "fixed";
3
+ PrimaryNetworkAssetCap2["VARIABLE"] = "variable";
4
+ return PrimaryNetworkAssetCap2;
5
+ })(PrimaryNetworkAssetCap || {});
6
+
7
+ export { PrimaryNetworkAssetCap };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type of asset like SECP256K1 or NFT.
3
+ */
4
+ declare enum PrimaryNetworkAssetType {
5
+ SECP256K1 = "secp256k1",
6
+ NFT = "nft"
7
+ }
8
+
9
+ export { PrimaryNetworkAssetType };
@@ -0,0 +1,7 @@
1
+ var PrimaryNetworkAssetType = /* @__PURE__ */ ((PrimaryNetworkAssetType2) => {
2
+ PrimaryNetworkAssetType2["SECP256K1"] = "secp256k1";
3
+ PrimaryNetworkAssetType2["NFT"] = "nft";
4
+ return PrimaryNetworkAssetType2;
5
+ })(PrimaryNetworkAssetType || {});
6
+
7
+ export { PrimaryNetworkAssetType };
@@ -0,0 +1,7 @@
1
+ declare enum PrimaryNetworkOperationType {
2
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
3
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
4
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
5
+ }
6
+
7
+ export { PrimaryNetworkOperationType };
@@ -0,0 +1,8 @@
1
+ var PrimaryNetworkOperationType = /* @__PURE__ */ ((PrimaryNetworkOperationType2) => {
2
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
3
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
4
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
5
+ return PrimaryNetworkOperationType2;
6
+ })(PrimaryNetworkOperationType || {});
7
+
8
+ export { PrimaryNetworkOperationType };
@@ -12,8 +12,9 @@ declare enum PrimaryNetworkTxType {
12
12
  TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
13
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
- UNKNOWN = "UNKNOWN",
16
15
  BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ UNKNOWN = "UNKNOWN",
17
18
  CREATE_ASSET_TX = "CreateAssetTx",
18
19
  OPERATION_TX = "OperationTx"
19
20
  }
@@ -12,8 +12,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
12
12
  PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
13
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
14
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
16
15
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
17
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
17
18
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
18
19
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
19
20
  return PrimaryNetworkTxType2;
@@ -4,9 +4,6 @@ import { EventType } from './EventType.js';
4
4
  type RegisterWebhookRequest = {
5
5
  url: string;
6
6
  chainId: string;
7
- /**
8
- * The type of event for the webhook
9
- */
10
7
  eventType: EventType;
11
8
  metadata: AddressActivityMetadata;
12
9
  };
@@ -1,12 +1,29 @@
1
1
  import { BlockchainInfo } from './BlockchainInfo.js';
2
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
2
3
 
3
4
  type Subnet = {
4
5
  createBlockTimestamp: number;
5
6
  createBlockIndex: string;
6
7
  subnetId: string;
8
+ /**
9
+ * This field is deprecated. Use subnetOwnershipInfo instead.
10
+ * @deprecated
11
+ */
7
12
  ownerAddresses: Array<string>;
13
+ /**
14
+ * This field is deprecated. Use subnetOwnershipInfo instead.
15
+ * @deprecated
16
+ */
8
17
  threshold: number;
18
+ /**
19
+ * This field is deprecated. Use subnetOwnershipInfo instead.
20
+ * @deprecated
21
+ */
9
22
  locktime: number;
23
+ /**
24
+ * Latest subnet owner details for this Subnet.
25
+ */
26
+ subnetOwnershipInfo: SubnetOwnershipInfo;
10
27
  blockchains: Array<BlockchainInfo>;
11
28
  };
12
29
 
@@ -0,0 +1,16 @@
1
+ type SubnetOwnershipInfo = {
2
+ /**
3
+ * Locktime in seconds after which Subnet owners can control this Subnet.
4
+ */
5
+ locktime: number;
6
+ /**
7
+ * Minimum number of signatures required to sign the Subnet update transactions.
8
+ */
9
+ threshold: number;
10
+ /**
11
+ * Addresses that are eligible to sign the Subnet update transactions.
12
+ */
13
+ addresses: Array<string>;
14
+ };
15
+
16
+ export { SubnetOwnershipInfo };
@@ -0,0 +1,6 @@
1
+ type TeleporterReceipt = {
2
+ receivedMessageNonce: string;
3
+ relayerRewardAddress: string;
4
+ };
5
+
6
+ export { TeleporterReceipt };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
3
+ */
1
4
  declare enum TransactionMethodType {
2
5
  NATIVE_TRANSFER = "NATIVE_TRANSFER",
3
6
  CONTRACT_CALL = "CONTRACT_CALL",
@@ -0,0 +1,10 @@
1
+ import { WebhookStatusType } from './WebhookStatusType.js';
2
+
3
+ type UpdateWebhookRequest = {
4
+ name?: string;
5
+ description?: string;
6
+ url?: string;
7
+ status?: WebhookStatusType;
8
+ };
9
+
10
+ export { UpdateWebhookRequest };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
@@ -6,7 +6,7 @@ type Utxo = {
6
6
  * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
8
  addresses: Array<string>;
9
- asset: Asset;
9
+ asset: AssetAmount;
10
10
  /**
11
11
  * Blockchain ID on which this output is consumed on.
12
12
  */
@@ -10,6 +10,8 @@ type WebhookResponse = {
10
10
  chainId: string;
11
11
  status: WebhookStatusType;
12
12
  createdAt: number;
13
+ name: string;
14
+ description: string;
13
15
  };
14
16
 
15
17
  export { WebhookResponse };
@@ -1,3 +1,6 @@
1
+ import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
1
4
  type XChainAssetDetails = {
2
5
  /**
3
6
  * Unique ID for an asset.
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
15
18
  * Denomination of this asset to represent fungibility.
16
19
  */
17
20
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
21
+ type: PrimaryNetworkAssetType;
22
22
  /**
23
23
  * Timestamp in seconds this asset was created on.
24
24
  */
25
25
  createdAtTimestamp: number;
26
- /**
27
- * Cap represents if an asset can be or is fixed cap.
28
- */
29
- cap: string;
26
+ cap: PrimaryNetworkAssetCap;
30
27
  };
31
28
 
32
29
  export { XChainAssetDetails };
@@ -1,15 +1,15 @@
1
- import { XChainAssetBalance } from './XChainAssetBalance.js';
1
+ import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
2
2
  import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
3
 
4
4
  type XChainBalances = {
5
5
  /**
6
6
  * A list of objects containing X-chain Asset balance information.
7
7
  */
8
- locked: Array<XChainAssetBalance>;
8
+ locked: Array<AggregatedAssetAmount>;
9
9
  /**
10
10
  * A list of objects containing X-chain Asset balance information.
11
11
  */
12
- unlocked: Array<XChainAssetBalance>;
12
+ unlocked: Array<AggregatedAssetAmount>;
13
13
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
14
14
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
4
  import { XChainTransactionType } from './XChainTransactionType.js';
@@ -16,9 +16,6 @@ type XChainLinearTransaction = {
16
16
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
17
  */
18
18
  timestamp: number;
19
- /**
20
- * Type of transaction.
21
- */
22
19
  txType: XChainTransactionType;
23
20
  /**
24
21
  * Hex encoded memo bytes for this transaction.
@@ -29,11 +26,11 @@ type XChainLinearTransaction = {
29
26
  /**
30
27
  * Assets unlocked by inputs of this transaction.
31
28
  */
32
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
33
30
  /**
34
31
  * Assets created by outputs of this transaction.
35
32
  */
36
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
37
34
  /**
38
35
  * Source chain for an atomic transaction.
39
36
  */
@@ -43,7 +40,7 @@ type XChainLinearTransaction = {
43
40
  */
44
41
  destinationChain?: string;
45
42
  /**
46
- * Asset details of the asset created in CreateAssetTx
43
+ * AssetAmount details of the asset created in CreateAssetTx
47
44
  */
48
45
  assetCreated?: XChainAssetDetails;
49
46
  /**
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
@@ -17,9 +17,6 @@ type XChainNonLinearTransaction = {
17
17
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
18
18
  */
19
19
  timestamp: number;
20
- /**
21
- * Type of transaction.
22
- */
23
20
  txType: XChainTransactionType;
24
21
  /**
25
22
  * Hex encoded memo bytes for this transaction.
@@ -30,11 +27,11 @@ type XChainNonLinearTransaction = {
30
27
  /**
31
28
  * Assets unlocked by inputs of this transaction.
32
29
  */
33
- amountUnlocked: Array<Asset>;
30
+ amountUnlocked: Array<AssetAmount>;
34
31
  /**
35
32
  * Assets created by outputs of this transaction.
36
33
  */
37
- amountCreated: Array<Asset>;
34
+ amountCreated: Array<AssetAmount>;
38
35
  /**
39
36
  * Source chain for an atomic transaction.
40
37
  */
@@ -44,7 +41,7 @@ type XChainNonLinearTransaction = {
44
41
  */
45
42
  destinationChain?: string;
46
43
  /**
47
- * Asset details of the asset created in CreateAssetTx
44
+ * AssetAmount details of the asset created in CreateAssetTx
48
45
  */
49
46
  assetCreated?: XChainAssetDetails;
50
47
  /**
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type XChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -15,10 +17,7 @@ type XChainSharedAssetBalance = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Type of transaction.
3
+ */
1
4
  declare enum XChainTransactionType {
2
5
  BASE_TX = "BaseTx",
3
6
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -1,6 +1,7 @@
1
1
  import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
2
  import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
3
  import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
+ import { UpdateWebhookRequest } from '../models/UpdateWebhookRequest.js';
4
5
  import { WebhookResponse } from '../models/WebhookResponse.js';
5
6
  import { WebhookStatus } from '../models/WebhookStatus.js';
6
7
  import { CancelablePromise } from '../core/CancelablePromise.js';
@@ -29,20 +30,32 @@ declare class DefaultService {
29
30
  * @returns ListWebhooksResponse
30
31
  * @throws ApiError
31
32
  */
32
- listWebhooks({ pageSize, pageToken, status, }: {
33
- /**
34
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
35
- */
36
- pageSize?: number;
33
+ listWebhooks({ pageToken, pageSize, status, }: {
37
34
  /**
38
35
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
36
  */
40
37
  pageToken?: string;
38
+ /**
39
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
40
+ */
41
+ pageSize?: number;
41
42
  /**
42
43
  * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
44
  */
44
45
  status?: WebhookStatus;
45
46
  }): CancelablePromise<ListWebhooksResponse>;
47
+ /**
48
+ * Get a webhook by ID
49
+ * Retrieves a webhook by ID.
50
+ * @returns WebhookResponse
51
+ * @throws ApiError
52
+ */
53
+ getWebhook({ id, }: {
54
+ /**
55
+ * The webhook identifier.
56
+ */
57
+ id: string;
58
+ }): CancelablePromise<WebhookResponse>;
46
59
  /**
47
60
  * Deactivate a webhook
48
61
  * Deactivates a webhook by ID.
@@ -55,6 +68,19 @@ declare class DefaultService {
55
68
  */
56
69
  id: string;
57
70
  }): CancelablePromise<WebhookResponse>;
71
+ /**
72
+ * Update a webhook
73
+ * Updates an existing webhook.
74
+ * @returns WebhookResponse
75
+ * @throws ApiError
76
+ */
77
+ updateWebhook({ id, requestBody, }: {
78
+ /**
79
+ * The webhook identifier.
80
+ */
81
+ id: string;
82
+ requestBody: UpdateWebhookRequest;
83
+ }): CancelablePromise<WebhookResponse>;
58
84
  /**
59
85
  * Generate a shared secret
60
86
  * Generates a new shared secret.
@@ -62,6 +88,13 @@ declare class DefaultService {
62
88
  * @throws ApiError
63
89
  */
64
90
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
91
+ /**
92
+ * Get a shared secret
93
+ * Get a previously generated shared secret.
94
+ * @returns SharedSecretsResponse
95
+ * @throws ApiError
96
+ */
97
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
98
  }
66
99
 
67
100
  export { DefaultService };
@@ -19,20 +19,31 @@ class DefaultService {
19
19
  });
20
20
  }
21
21
  listWebhooks({
22
- pageSize = 10,
23
22
  pageToken,
23
+ pageSize = 10,
24
24
  status
25
25
  }) {
26
26
  return this.httpRequest.request({
27
27
  method: "GET",
28
28
  url: "/v1/webhooks",
29
29
  query: {
30
- "pageSize": pageSize,
31
30
  "pageToken": pageToken,
31
+ "pageSize": pageSize,
32
32
  "status": status
33
33
  }
34
34
  });
35
35
  }
36
+ getWebhook({
37
+ id
38
+ }) {
39
+ return this.httpRequest.request({
40
+ method: "GET",
41
+ url: "/v1/webhooks/{id}",
42
+ path: {
43
+ "id": id
44
+ }
45
+ });
46
+ }
36
47
  deactivateWebhook({
37
48
  id
38
49
  }) {
@@ -44,10 +55,30 @@ class DefaultService {
44
55
  }
45
56
  });
46
57
  }
58
+ updateWebhook({
59
+ id,
60
+ requestBody
61
+ }) {
62
+ return this.httpRequest.request({
63
+ method: "PATCH",
64
+ url: "/v1/webhooks/{id}",
65
+ path: {
66
+ "id": id
67
+ },
68
+ body: requestBody,
69
+ mediaType: "application/json"
70
+ });
71
+ }
47
72
  generateSharedSecret() {
48
73
  return this.httpRequest.request({
49
74
  method: "POST",
50
- url: "/v1/webhooks:generateSharedSecret"
75
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
76
+ });
77
+ }
78
+ getSharedSecret() {
79
+ return this.httpRequest.request({
80
+ method: "GET",
81
+ url: "/v1/webhooks:getSharedSecret"
51
82
  });
52
83
  }
53
84
  }
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
20
20
  */
21
21
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
22
22
  /**
23
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
23
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
24
24
  */
25
25
  chainId: string;
26
26
  /**
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
46
46
  * @returns ListErc20BalancesResponse
47
47
  * @throws ApiError
48
48
  */
49
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
49
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
50
50
  /**
51
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
51
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
52
  */
53
53
  chainId: string;
54
54
  /**
@@ -59,14 +59,14 @@ declare class EvmBalancesService {
59
59
  * The block number, if not defined the block number will be the latest block.
60
60
  */
61
61
  blockNumber?: string;
62
- /**
63
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
64
- */
65
- pageSize?: number;
66
62
  /**
67
63
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
68
64
  */
69
65
  pageToken?: string;
66
+ /**
67
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
68
+ */
69
+ pageSize?: number;
70
70
  /**
71
71
  * A comma separated list of contract addresses to filter by.
72
72
  */
@@ -84,23 +84,23 @@ declare class EvmBalancesService {
84
84
  * @returns ListErc721BalancesResponse
85
85
  * @throws ApiError
86
86
  */
87
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
87
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
88
88
  /**
89
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
89
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
90
90
  */
91
91
  chainId: string;
92
92
  /**
93
93
  * A wallet address.
94
94
  */
95
95
  address: string;
96
- /**
97
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
98
- */
99
- pageSize?: number;
100
96
  /**
101
97
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
102
98
  */
103
99
  pageToken?: string;
100
+ /**
101
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
102
+ */
103
+ pageSize?: number;
104
104
  /**
105
105
  * A contract addresses to filter by.
106
106
  */
@@ -116,9 +116,9 @@ declare class EvmBalancesService {
116
116
  * @returns ListErc1155BalancesResponse
117
117
  * @throws ApiError
118
118
  */
119
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
119
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
120
120
  /**
121
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
121
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
122
122
  */
123
123
  chainId: string;
124
124
  /**
@@ -129,14 +129,14 @@ declare class EvmBalancesService {
129
129
  * The block number, if not defined the block number will be the latest block.
130
130
  */
131
131
  blockNumber?: string;
132
- /**
133
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
134
- */
135
- pageSize?: number;
136
132
  /**
137
133
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
138
134
  */
139
135
  pageToken?: string;
136
+ /**
137
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
138
+ */
139
+ pageSize?: number;
140
140
  /**
141
141
  * A contract addresses to filter by.
142
142
  */
@@ -150,23 +150,23 @@ declare class EvmBalancesService {
150
150
  * @returns ListCollectibleBalancesResponse
151
151
  * @throws ApiError
152
152
  */
153
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
153
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
154
154
  /**
155
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
155
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
156
156
  */
157
157
  chainId: string;
158
158
  /**
159
159
  * A wallet address.
160
160
  */
161
161
  address: string;
162
- /**
163
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
164
- */
165
- pageSize?: number;
166
162
  /**
167
163
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
168
164
  */
169
165
  pageToken?: string;
166
+ /**
167
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
168
+ */
169
+ pageSize?: number;
170
170
  /**
171
171
  * A contract addresses to filter by.
172
172
  */