@avalabs/glacier-sdk 2.8.0-canary.b80d643.0 → 2.8.0-canary.bf2dc9b.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 (62) hide show
  1. package/dist/index.d.ts +502 -136
  2. package/dist/index.js +185 -30
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
  6. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  7. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  8. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  9. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  10. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  11. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  12. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  13. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  14. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  15. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  16. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  17. package/esm/generated/models/EventType.d.ts +5 -0
  18. package/esm/generated/models/EventType.js +6 -0
  19. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  20. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  21. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  22. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  23. package/esm/generated/models/PChainBalance.d.ts +7 -7
  24. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  25. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  26. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  27. package/esm/generated/models/PChainTransactionType.js +6 -5
  28. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  29. package/esm/generated/models/PendingReward.d.ts +2 -2
  30. package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
  31. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  32. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  33. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  34. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  35. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  36. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  37. package/esm/generated/models/Utxo.d.ts +28 -28
  38. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  39. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  40. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  41. package/esm/generated/models/WebhookStatus.js +7 -0
  42. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  43. package/esm/generated/models/WebhookStatusType.js +7 -0
  44. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  45. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  46. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  47. package/esm/generated/models/XChainTransactionType.js +11 -0
  48. package/esm/generated/services/DefaultService.d.ts +67 -0
  49. package/esm/generated/services/DefaultService.js +55 -0
  50. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  51. package/esm/generated/services/EvmContractsService.js +16 -0
  52. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  53. package/esm/generated/services/NfTsService.d.ts +25 -0
  54. package/esm/generated/services/NfTsService.js +19 -0
  55. package/esm/generated/services/OperationsService.d.ts +11 -11
  56. package/esm/generated/services/OperationsService.js +10 -10
  57. package/esm/generated/services/PrimaryNetworkService.d.ts +21 -17
  58. package/esm/generated/services/PrimaryNetworkService.js +12 -10
  59. package/esm/index.d.ts +17 -1
  60. package/esm/index.js +9 -0
  61. package/package.json +2 -2
  62. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -1,31 +1,31 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { PChainSharedAsset } from './PChainSharedAsset.js';
3
3
 
4
4
  type PChainBalance = {
5
5
  /**
6
6
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
7
7
  */
8
- unlockedUnstaked: Array<PChainAsset>;
8
+ unlockedUnstaked: Array<Asset>;
9
9
  /**
10
10
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
11
11
  */
12
- unlockedStaked: Array<PChainAsset>;
12
+ unlockedStaked: Array<Asset>;
13
13
  /**
14
14
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
15
15
  */
16
- lockedPlatform: Array<PChainAsset>;
16
+ lockedPlatform: Array<Asset>;
17
17
  /**
18
18
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
19
19
  */
20
- lockedStakeable: Array<PChainAsset>;
20
+ lockedStakeable: Array<Asset>;
21
21
  /**
22
22
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
23
23
  */
24
- lockedStaked: Array<PChainAsset>;
24
+ lockedStaked: Array<Asset>;
25
25
  /**
26
26
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
27
27
  */
28
- pendingStaked: Array<PChainAsset>;
28
+ pendingStaked: Array<Asset>;
29
29
  /**
30
30
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
31
31
  */
@@ -1,5 +1,27 @@
1
1
  type PChainSharedAsset = {
2
+ /**
3
+ * Unique ID for an asset.
4
+ */
2
5
  assetId: string;
6
+ /**
7
+ * Name of this asset.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Symbol for this asset (max 4 characters).
12
+ */
13
+ symbol: string;
14
+ /**
15
+ * Denomination of this asset to represent fungibility.
16
+ */
17
+ denomination: number;
18
+ /**
19
+ * Type of asset like SECP256K1 or NFT.
20
+ */
21
+ type: string;
22
+ /**
23
+ * Amount of the asset.
24
+ */
3
25
  amount: string;
4
26
  sharedWithChainId: string;
5
27
  status: string;
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { PChainTransactionType } from './PChainTransactionType.js';
3
3
  import { PChainUtxo } from './PChainUtxo.js';
4
4
 
@@ -27,15 +27,15 @@ type PChainTransaction = {
27
27
  /**
28
28
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
29
29
  */
30
- value: Array<PChainAsset>;
30
+ value: Array<Asset>;
31
31
  /**
32
32
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
33
33
  */
34
- amountBurned: Array<PChainAsset>;
34
+ amountBurned: Array<Asset>;
35
35
  /**
36
36
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
37
  */
38
- amountStaked: Array<PChainAsset>;
38
+ amountStaked: Array<Asset>;
39
39
  /**
40
40
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
41
41
  */
@@ -1,16 +1,17 @@
1
1
  declare enum PChainTransactionType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
- ADD_DELEGATOR_TX = "AddDelegatorTx",
4
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
6
3
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
7
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
8
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
4
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
9
5
  CREATE_CHAIN_TX = "CreateChainTx",
10
6
  CREATE_SUBNET_TX = "CreateSubnetTx",
11
7
  IMPORT_TX = "ImportTx",
12
8
  EXPORT_TX = "ExportTx",
13
9
  ADVANCE_TIME_TX = "AdvanceTimeTx",
10
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
11
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
12
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
14
15
  UNKNOWN = "UNKNOWN"
15
16
  }
16
17
 
@@ -1,16 +1,17 @@
1
1
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
2
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
- PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
6
3
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
7
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
8
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
9
5
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
10
6
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
11
7
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
12
8
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
13
9
  PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
10
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
14
15
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
15
16
  return PChainTransactionType2;
16
17
  })(PChainTransactionType || {});
@@ -1,31 +1,51 @@
1
+ import { Asset } from './Asset.js';
1
2
  import { RewardType } from './RewardType.js';
2
3
  import { UtxoType } from './UtxoType.js';
3
4
 
4
5
  type PChainUtxo = {
5
6
  /**
6
- * An array of P-Chain wallet addresses.
7
+ * Addresses that are eligible to sign the consumption of this output.
7
8
  */
8
9
  addresses: Array<string>;
10
+ asset: Asset;
11
+ /**
12
+ * Blockchain ID on which this output is consumed on.
13
+ */
14
+ consumedOnChainId: string;
15
+ /**
16
+ * Transaction ID that consumed this output.
17
+ */
18
+ consumingTxHash?: string;
19
+ /**
20
+ * Blockchain ID on which this output is created on.
21
+ */
22
+ createdOnChainId: string;
23
+ /**
24
+ * UTXO ID for this output.
25
+ */
9
26
  utxoId: string;
10
- txHash: string;
11
- outputIndex: number;
27
+ /**
28
+ * @deprecated
29
+ */
30
+ amount: string;
31
+ /**
32
+ * @deprecated
33
+ */
34
+ assetId: string;
12
35
  blockNumber: string;
13
36
  blockTimestamp: number;
14
- consumingTxHash?: string;
15
- consumingBlockTimestamp?: number;
16
37
  consumingBlockNumber?: string;
17
- assetId: string;
18
- utxoType: UtxoType;
19
- amount: string;
20
- stakeableLocktime?: number;
38
+ consumingBlockTimestamp?: number;
21
39
  platformLocktime?: number;
22
- threshold?: number;
23
- createdOnChainId: string;
24
- consumedOnChainId: string;
40
+ outputIndex: number;
41
+ rewardType?: RewardType;
42
+ stakeableLocktime?: number;
25
43
  staked?: boolean;
26
- utxoStartTimestamp?: number;
44
+ threshold?: number;
45
+ txHash: string;
27
46
  utxoEndTimestamp?: number;
28
- rewardType?: RewardType;
47
+ utxoStartTimestamp?: number;
48
+ utxoType: UtxoType;
29
49
  };
30
50
 
31
51
  export { PChainUtxo };
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type PendingReward = {
@@ -16,7 +16,7 @@ type PendingReward = {
16
16
  /**
17
17
  * An object containing P-chain Asset ID and the amount of that Asset ID.
18
18
  */
19
- estimatedReward: PChainAsset;
19
+ estimatedReward: Asset;
20
20
  };
21
21
 
22
22
  export { PendingReward };
@@ -1,4 +1,5 @@
1
1
  type PendingValidatorDetails = {
2
+ txHash: string;
2
3
  nodeId: string;
3
4
  subnetId: string;
4
5
  amountStaked: string;
@@ -9,6 +9,7 @@ type PrimaryNetworkBlock = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ currentSupply?: string;
12
13
  proposerDetails?: ProposerDetails;
13
14
  };
14
15
 
@@ -1,16 +1,17 @@
1
1
  declare enum PrimaryNetworkTxType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
- ADD_DELEGATOR_TX = "AddDelegatorTx",
4
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
6
3
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
7
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
8
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
4
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
9
5
  CREATE_CHAIN_TX = "CreateChainTx",
10
6
  CREATE_SUBNET_TX = "CreateSubnetTx",
11
7
  IMPORT_TX = "ImportTx",
12
8
  EXPORT_TX = "ExportTx",
13
9
  ADVANCE_TIME_TX = "AdvanceTimeTx",
10
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
11
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
12
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
14
15
  UNKNOWN = "UNKNOWN",
15
16
  BASE_TX = "BaseTx",
16
17
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -1,16 +1,17 @@
1
1
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
2
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
6
3
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
7
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
8
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
9
5
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
10
6
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
11
7
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
12
8
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
13
9
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
10
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
14
15
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
15
16
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
17
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
@@ -0,0 +1,14 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+
4
+ type RegisterWebhookRequest = {
5
+ url: string;
6
+ chainId: string;
7
+ /**
8
+ * The type of event for the webhook
9
+ */
10
+ eventType: EventType;
11
+ metadata: AddressActivityMetadata;
12
+ };
13
+
14
+ export { RegisterWebhookRequest };
@@ -0,0 +1,5 @@
1
+ type SharedSecretsResponse = {
2
+ secret: string;
3
+ };
4
+
5
+ export { SharedSecretsResponse };
@@ -0,0 +1,10 @@
1
+ import { Erc1155Contract } from './Erc1155Contract.js';
2
+ import { Erc20Contract } from './Erc20Contract.js';
3
+ import { Erc721Contract } from './Erc721Contract.js';
4
+ import { UnknownContract } from './UnknownContract.js';
5
+
6
+ type UpdateContractResponse = {
7
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
8
+ };
9
+
10
+ export { UpdateContractResponse };
@@ -3,66 +3,66 @@ import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
5
5
  /**
6
- * UTXO ID for this output.
6
+ * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
- utxoId: string;
8
+ addresses: Array<string>;
9
9
  asset: Asset;
10
10
  /**
11
- * Type of output.
11
+ * Blockchain ID on which this output is consumed on.
12
12
  */
13
- utxoType: string;
13
+ consumedOnChainId: string;
14
14
  /**
15
- * Blockchain ID on which this output is created on.
15
+ * Transaction ID that consumed this output.
16
16
  */
17
- createdOnChainId: string;
17
+ consumingTxHash?: string;
18
18
  /**
19
- * Blockchain ID on which this output is consumed on.
19
+ * Blockchain ID on which this output is created on.
20
20
  */
21
- consumedOnChainId: string;
21
+ createdOnChainId: string;
22
22
  /**
23
- * Transaction ID that created this output.
23
+ * UTXO ID for this output.
24
24
  */
25
- creationTxHash: string;
25
+ utxoId: string;
26
26
  /**
27
- * Transaction ID that consumed this output.
27
+ * Unix timestamp in seconds at which this output was consumed.
28
28
  */
29
- consumingTxHash?: string;
29
+ consumingTxTimestamp?: number;
30
30
  /**
31
- * Timestamp in seconds this output is consumed.
31
+ * Transaction ID that created this output.
32
32
  */
33
- consumingTxTimestamp?: number;
33
+ creationTxHash: string;
34
34
  /**
35
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
35
+ * Credentials that signed the transaction to consume this utxo
36
36
  */
37
- outputIndex: string;
37
+ credentials?: Array<UtxoCredential>;
38
38
  /**
39
- * Timestamp in seconds this outptut is created on.
39
+ * Index representing the minting set for the NFT mint output.
40
40
  */
41
- timestamp: number;
41
+ groupId?: number;
42
42
  /**
43
43
  * Locktime in seconds after which this output can be consumed.
44
44
  */
45
45
  locktime: number;
46
46
  /**
47
- * Minimum number of signatures required to consume this output.
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
48
  */
49
- threshold: number;
49
+ outputIndex: string;
50
50
  /**
51
- * Addresses that are eligible to sign the consumption of this output.
51
+ * Hex encoded data for NFT assets.
52
52
  */
53
- addresses: Array<string>;
53
+ payload?: string;
54
54
  /**
55
- * Hex encoded data for NFT assets
55
+ * Minimum number of signatures required to consume this output.
56
56
  */
57
- payload?: string;
57
+ threshold: number;
58
58
  /**
59
- * Index representing the minting set for the NFT mint output
59
+ * Unix timestamp in seconds at which this outptut was created.
60
60
  */
61
- groupId?: number;
61
+ timestamp: number;
62
62
  /**
63
- * Credentials that signed the transaction to consume this utxo
63
+ * Type of output.
64
64
  */
65
- credentials?: Array<UtxoCredential>;
65
+ utxoType: string;
66
66
  };
67
67
 
68
68
  export { Utxo };
@@ -1,10 +1,10 @@
1
1
  type UtxoCredential = {
2
2
  /**
3
- * Signature provided to consume the output
3
+ * Signature provided to consume the output.
4
4
  */
5
5
  signature?: string;
6
6
  /**
7
- * Public key associated with the signature
7
+ * Public key associated with the signature.
8
8
  */
9
9
  publicKey?: string;
10
10
  };
@@ -0,0 +1,15 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type WebhookResponse = {
6
+ id: string;
7
+ eventType: EventType;
8
+ metadata: AddressActivityMetadata;
9
+ url: string;
10
+ chainId: string;
11
+ status: WebhookStatusType;
12
+ createdAt: number;
13
+ };
14
+
15
+ export { WebhookResponse };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatus };
@@ -0,0 +1,7 @@
1
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
2
+ WebhookStatus2["ACTIVE"] = "active";
3
+ WebhookStatus2["INACTIVE"] = "inactive";
4
+ return WebhookStatus2;
5
+ })(WebhookStatus || {});
6
+
7
+ export { WebhookStatus };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatusType {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatusType };
@@ -0,0 +1,7 @@
1
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
2
+ WebhookStatusType2["ACTIVE"] = "active";
3
+ WebhookStatusType2["INACTIVE"] = "inactive";
4
+ return WebhookStatusType2;
5
+ })(WebhookStatusType || {});
6
+
7
+ export { WebhookStatusType };
@@ -1,6 +1,7 @@
1
1
  import { Asset } from './Asset.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+ import { XChainTransactionType } from './XChainTransactionType.js';
4
5
 
5
6
  type XChainLinearTransaction = {
6
7
  /**
@@ -18,7 +19,7 @@ type XChainLinearTransaction = {
18
19
  /**
19
20
  * Type of transaction.
20
21
  */
21
- txType: string;
22
+ txType: XChainTransactionType;
22
23
  /**
23
24
  * Hex encoded memo bytes for this transaction.
24
25
  */
@@ -2,6 +2,7 @@ import { Asset } from './Asset.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
5
+ import { XChainTransactionType } from './XChainTransactionType.js';
5
6
 
6
7
  type XChainNonLinearTransaction = {
7
8
  /**
@@ -19,7 +20,7 @@ type XChainNonLinearTransaction = {
19
20
  /**
20
21
  * Type of transaction.
21
22
  */
22
- txType: string;
23
+ txType: XChainTransactionType;
23
24
  /**
24
25
  * Hex encoded memo bytes for this transaction.
25
26
  */
@@ -0,0 +1,10 @@
1
+ declare enum XChainTransactionType {
2
+ BASE_TX = "BaseTx",
3
+ CREATE_ASSET_TX = "CreateAssetTx",
4
+ OPERATION_TX = "OperationTx",
5
+ IMPORT_TX = "ImportTx",
6
+ EXPORT_TX = "ExportTx",
7
+ UNKNOWN = "UNKNOWN"
8
+ }
9
+
10
+ export { XChainTransactionType };
@@ -0,0 +1,11 @@
1
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
3
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
4
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
5
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
6
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
7
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
8
+ return XChainTransactionType2;
9
+ })(XChainTransactionType || {});
10
+
11
+ export { XChainTransactionType };
@@ -0,0 +1,67 @@
1
+ import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
+ import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
+ import { WebhookResponse } from '../models/WebhookResponse.js';
5
+ import { WebhookStatus } from '../models/WebhookStatus.js';
6
+ import { CancelablePromise } from '../core/CancelablePromise.js';
7
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
+
9
+ declare class DefaultService {
10
+ readonly httpRequest: BaseHttpRequest;
11
+ constructor(httpRequest: BaseHttpRequest);
12
+ /**
13
+ * @returns any
14
+ * @throws ApiError
15
+ */
16
+ mediaControllerUploadImage(): CancelablePromise<any>;
17
+ /**
18
+ * Register a webhook
19
+ * Registers a new webhook.
20
+ * @returns WebhookResponse
21
+ * @throws ApiError
22
+ */
23
+ registerWebhook({ requestBody, }: {
24
+ requestBody: RegisterWebhookRequest;
25
+ }): CancelablePromise<WebhookResponse>;
26
+ /**
27
+ * List webhooks
28
+ * Lists webhooks for the user.
29
+ * @returns ListWebhooksResponse
30
+ * @throws ApiError
31
+ */
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;
37
+ /**
38
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
+ */
40
+ pageToken?: string;
41
+ /**
42
+ * 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
+ status?: WebhookStatus;
45
+ }): CancelablePromise<ListWebhooksResponse>;
46
+ /**
47
+ * Deactivate a webhook
48
+ * Deactivates a webhook by ID.
49
+ * @returns WebhookResponse
50
+ * @throws ApiError
51
+ */
52
+ deactivateWebhook({ id, }: {
53
+ /**
54
+ * The webhook identifier.
55
+ */
56
+ id: string;
57
+ }): CancelablePromise<WebhookResponse>;
58
+ /**
59
+ * Generate a shared secret
60
+ * Generates a new shared secret.
61
+ * @returns SharedSecretsResponse
62
+ * @throws ApiError
63
+ */
64
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
+ }
66
+
67
+ export { DefaultService };