@dfns/sdk 0.4.3 → 0.5.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 (102) hide show
  1. package/dfnsApiClient.d.ts +0 -6
  2. package/dfnsApiClient.js +0 -12
  3. package/dfnsDelegatedApiClient.d.ts +0 -6
  4. package/dfnsDelegatedApiClient.js +0 -12
  5. package/generated/auth/client.d.ts +2 -0
  6. package/generated/auth/client.js +24 -0
  7. package/generated/auth/delegatedClient.d.ts +2 -0
  8. package/generated/auth/delegatedClient.js +24 -0
  9. package/generated/auth/types.d.ts +66 -12
  10. package/generated/permissions/types.d.ts +2 -2
  11. package/generated/policies/types.d.ts +15 -0
  12. package/generated/wallets/types.d.ts +105 -18
  13. package/package.json +1 -1
  14. package/store.d.ts +3 -32
  15. package/codegen/Assets/AssetsClient.d.ts +0 -13
  16. package/codegen/Assets/AssetsClient.js +0 -93
  17. package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
  18. package/codegen/Assets/DelegatedAssetsClient.js +0 -124
  19. package/codegen/Assets/index.d.ts +0 -3
  20. package/codegen/Assets/index.js +0 -19
  21. package/codegen/Assets/types.d.ts +0 -37
  22. package/codegen/Assets/types.js +0 -2
  23. package/codegen/Auth/AuthClient.d.ts +0 -50
  24. package/codegen/Auth/AuthClient.js +0 -518
  25. package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
  26. package/codegen/Auth/DelegatedAuthClient.js +0 -936
  27. package/codegen/Auth/index.d.ts +0 -3
  28. package/codegen/Auth/index.js +0 -19
  29. package/codegen/Auth/types.d.ts +0 -177
  30. package/codegen/Auth/types.js +0 -2
  31. package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
  32. package/codegen/Callbacks/CallbacksClient.js +0 -78
  33. package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
  34. package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
  35. package/codegen/Callbacks/index.d.ts +0 -3
  36. package/codegen/Callbacks/index.js +0 -19
  37. package/codegen/Callbacks/types.d.ts +0 -23
  38. package/codegen/Callbacks/types.js +0 -2
  39. package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
  40. package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
  41. package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
  42. package/codegen/PublicKeys/PublicKeysClient.js +0 -128
  43. package/codegen/PublicKeys/index.d.ts +0 -3
  44. package/codegen/PublicKeys/index.js +0 -19
  45. package/codegen/PublicKeys/types.d.ts +0 -51
  46. package/codegen/PublicKeys/types.js +0 -2
  47. package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
  48. package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
  49. package/codegen/Wallets/WalletsClient.d.ts +0 -24
  50. package/codegen/Wallets/WalletsClient.js +0 -219
  51. package/codegen/Wallets/index.d.ts +0 -3
  52. package/codegen/Wallets/index.js +0 -19
  53. package/codegen/Wallets/types.d.ts +0 -101
  54. package/codegen/Wallets/types.js +0 -2
  55. package/codegen/datamodel/Assets/errors.d.ts +0 -11
  56. package/codegen/datamodel/Assets/errors.js +0 -17
  57. package/codegen/datamodel/Assets/index.d.ts +0 -3
  58. package/codegen/datamodel/Assets/index.js +0 -19
  59. package/codegen/datamodel/Assets/responses.d.ts +0 -47
  60. package/codegen/datamodel/Assets/responses.js +0 -2
  61. package/codegen/datamodel/Assets/types.d.ts +0 -219
  62. package/codegen/datamodel/Assets/types.js +0 -75
  63. package/codegen/datamodel/Auth/errors.d.ts +0 -0
  64. package/codegen/datamodel/Auth/errors.js +0 -1
  65. package/codegen/datamodel/Auth/index.d.ts +0 -2
  66. package/codegen/datamodel/Auth/index.js +0 -18
  67. package/codegen/datamodel/Auth/responses.d.ts +0 -358
  68. package/codegen/datamodel/Auth/responses.js +0 -2
  69. package/codegen/datamodel/Auth/types.d.ts +0 -933
  70. package/codegen/datamodel/Auth/types.js +0 -149
  71. package/codegen/datamodel/Callbacks/errors.d.ts +0 -0
  72. package/codegen/datamodel/Callbacks/errors.js +0 -1
  73. package/codegen/datamodel/Callbacks/index.d.ts +0 -2
  74. package/codegen/datamodel/Callbacks/index.js +0 -18
  75. package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
  76. package/codegen/datamodel/Callbacks/responses.js +0 -2
  77. package/codegen/datamodel/Callbacks/types.d.ts +0 -43
  78. package/codegen/datamodel/Callbacks/types.js +0 -39
  79. package/codegen/datamodel/Foundations/errors.d.ts +0 -131
  80. package/codegen/datamodel/Foundations/errors.js +0 -182
  81. package/codegen/datamodel/Foundations/index.d.ts +0 -2
  82. package/codegen/datamodel/Foundations/index.js +0 -18
  83. package/codegen/datamodel/Foundations/responses.d.ts +0 -0
  84. package/codegen/datamodel/Foundations/responses.js +0 -1
  85. package/codegen/datamodel/Foundations/types.d.ts +0 -9795
  86. package/codegen/datamodel/Foundations/types.js +0 -57763
  87. package/codegen/datamodel/PublicKeys/errors.d.ts +0 -0
  88. package/codegen/datamodel/PublicKeys/errors.js +0 -1
  89. package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
  90. package/codegen/datamodel/PublicKeys/index.js +0 -18
  91. package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
  92. package/codegen/datamodel/PublicKeys/responses.js +0 -2
  93. package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
  94. package/codegen/datamodel/PublicKeys/types.js +0 -59
  95. package/codegen/datamodel/Wallets/errors.d.ts +0 -0
  96. package/codegen/datamodel/Wallets/errors.js +0 -1
  97. package/codegen/datamodel/Wallets/index.d.ts +0 -2
  98. package/codegen/datamodel/Wallets/index.js +0 -18
  99. package/codegen/datamodel/Wallets/responses.d.ts +0 -92
  100. package/codegen/datamodel/Wallets/responses.js +0 -2
  101. package/codegen/datamodel/Wallets/types.d.ts +0 -790
  102. package/codegen/datamodel/Wallets/types.js +0 -293
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,2 +0,0 @@
1
- export * from './responses';
2
- export * from './types';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./responses"), exports);
18
- __exportStar(require("./types"), exports);
@@ -1,56 +0,0 @@
1
- import { BadRequestError, EntityNotFoundError, ForbiddenError, PaymentRequiredError, UnauthorizedError } from '../Foundations';
2
- import { BroadcastedTransaction, GetPublicKeyAddressResponse, GetPublicKeyResponse, PublicKeyRecord, Signature, SignatureResponse, StartWalletConnectSessionOutput } from './types';
3
- export type GetPublicKeyByIdSuccess = GetPublicKeyResponse;
4
- export type GetPublicKeyByIdError = {
5
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
6
- };
7
- export type GetPublicKeyByIdResponse = GetPublicKeyByIdSuccess | GetPublicKeyByIdError;
8
- export type CreatePublicKeySuccess = PublicKeyRecord;
9
- export type CreatePublicKeyError = {
10
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
11
- };
12
- export type CreatePublicKeyResponse = CreatePublicKeySuccess | CreatePublicKeyError;
13
- export type ListPublicKeysSuccess = {
14
- items: GetPublicKeyResponse[];
15
- };
16
- export type ListPublicKeysError = {
17
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
18
- };
19
- export type ListPublicKeysResponse = ListPublicKeysSuccess | ListPublicKeysError;
20
- export type GetAddressForNetworkSuccess = GetPublicKeyAddressResponse;
21
- export type GetAddressForNetworkError = {
22
- error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
23
- };
24
- export type GetAddressForNetworkResponse = GetAddressForNetworkSuccess | GetAddressForNetworkError;
25
- export type GetSignatureByIdSuccess = Signature;
26
- export type GetSignatureByIdError = {
27
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
28
- };
29
- export type GetSignatureByIdResponse = GetSignatureByIdSuccess | GetSignatureByIdError;
30
- export type CreateSignatureSuccess = SignatureResponse;
31
- export type CreateSignatureError = {
32
- error: EntityNotFoundError | PaymentRequiredError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
33
- };
34
- export type CreateSignatureResponse = CreateSignatureSuccess | CreateSignatureError;
35
- export type StartWalletConnectSessionSuccess = StartWalletConnectSessionOutput;
36
- export type StartWalletConnectSessionError = {
37
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
38
- };
39
- export type StartWalletConnectSessionResponse = StartWalletConnectSessionSuccess | StartWalletConnectSessionError;
40
- export type ListTransactionsSuccess = {
41
- items: BroadcastedTransaction[];
42
- };
43
- export type ListTransactionsError = {
44
- error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
45
- };
46
- export type ListTransactionsResponse = ListTransactionsSuccess | ListTransactionsError;
47
- export type CreateTransactionSuccess = BroadcastedTransaction;
48
- export type CreateTransactionError = {
49
- error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
50
- };
51
- export type CreateTransactionResponse = CreateTransactionSuccess | CreateTransactionError;
52
- export type GetTransactionByIdSuccess = BroadcastedTransaction;
53
- export type GetTransactionByIdError = {
54
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
55
- };
56
- export type GetTransactionByIdResponse = GetTransactionByIdSuccess | GetTransactionByIdError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,223 +0,0 @@
1
- import { Amount, BlockchainAddress, BlockchainNetwork, DocumentSnapshot, EntityId, Initiator, IntegerPositiveStrict, IsoDatetime, PublicKey, Tag } from '../Foundations';
2
- export type SignatureResponse = {
3
- r: string;
4
- s: string;
5
- recid: number;
6
- };
7
- export type PublicKeyRecord = {
8
- id: EntityId;
9
- externalId?: string;
10
- orgId: EntityId;
11
- publicKey: PublicKey;
12
- signerIds: string[];
13
- groupThreshold: number;
14
- groupSize: number;
15
- tags?: Tag[];
16
- isEddsa: boolean;
17
- maxPresigs?: number;
18
- };
19
- export type GetPublicKeyAddressResponse = {
20
- publicKeyId: string;
21
- network: string;
22
- address: BlockchainAddress;
23
- };
24
- export type Signature = {
25
- id: EntityId;
26
- orgId: EntityId;
27
- publicKeyId: string;
28
- hash: string;
29
- r: string;
30
- s: string;
31
- recid: number;
32
- status: SignatureStatus;
33
- initiator: Initiator;
34
- dateCreated: IsoDatetime;
35
- };
36
- export type CosmosDenomAmount = {
37
- denom: string;
38
- amount: string;
39
- };
40
- export type CosmosTimeoutHeight = {
41
- revisionNumber: string;
42
- revisionHeight: string;
43
- };
44
- export type EvmGenericTx = {
45
- templateKind: TransactionTemplateKind.EvmGenericTx;
46
- to: string;
47
- gasLimit: Amount;
48
- gasPrice: Amount;
49
- nonce?: string;
50
- value?: string;
51
- data?: string;
52
- publicKeyId?: string;
53
- network: BlockchainNetwork;
54
- /**
55
- * the maximum amount of gas to be included as a tip to the miner
56
- */
57
- maxPriorityFeePerGas?: Amount;
58
- /**
59
- * the maximum amount of gas willing to be paid for the transaction (inclusive of baseFeePerGas and maxPriorityFeePerGas)
60
- */
61
- maxFeePerGas?: Amount;
62
- typedData?: Eip712TypedData;
63
- };
64
- export type CosmosIbcTransferTx = {
65
- templateKind: TransactionTemplateKind.CosmosIbcTransfer;
66
- sourcePort: string;
67
- sourceChannel: string;
68
- token: CosmosDenomAmount;
69
- sender: string;
70
- receiver: string;
71
- timeoutHeight: CosmosTimeoutHeight;
72
- timeoutTimestamp: string;
73
- publicKeyId?: string;
74
- network: BlockchainNetwork;
75
- };
76
- export type Eip712TypedData = {
77
- types: Record<string, unknown>;
78
- values: Record<string, unknown>;
79
- domain?: Eip712TypedDataDomain;
80
- };
81
- export type Eip712TypedDataDomain = {
82
- name?: string;
83
- chainId?: string;
84
- version?: string;
85
- verifyingContract?: string;
86
- salt?: string;
87
- };
88
- export type SolanaTxInstruction = {
89
- data: string;
90
- programId: string;
91
- keys: SolanaTxAccountMeta[];
92
- };
93
- export type SolanaTx = {
94
- feePayer?: string;
95
- blockhash?: string;
96
- lastValidBlockHeight?: IntegerPositiveStrict;
97
- minNonceContextSlot?: IntegerPositiveStrict;
98
- instructions: SolanaTxInstruction[];
99
- signatures?: SolanaTxSignature[];
100
- templateKind: TransactionTemplateKind.SolanaTx;
101
- };
102
- export type SolanaTxSignature = {
103
- signature: string;
104
- publicKey: string;
105
- };
106
- export type SolanaTxAccountMeta = {
107
- pubkey: string;
108
- isSigner: boolean;
109
- isWritable: boolean;
110
- };
111
- export type TronTx = {
112
- visible?: boolean;
113
- txID?: string;
114
- contract_address?: string;
115
- raw_data_hex?: string;
116
- raw_data: Record<string, unknown>;
117
- templateKind: TransactionTemplateKind.TronTx;
118
- };
119
- export type TezosTx = {
120
- protocol?: string;
121
- chain?: string;
122
- block?: string;
123
- payload: TezosTxPayload;
124
- templateKind: TransactionTemplateKind.TezosTx;
125
- };
126
- export type TezosTxPayload = {
127
- branch?: string;
128
- contents: Record<string, unknown>[];
129
- };
130
- export type BroadcastedTransaction = {
131
- id: EntityId;
132
- transaction: TransactionPayload;
133
- snapshot: DocumentSnapshot;
134
- network: BlockchainNetwork;
135
- dateCreated: IsoDatetime;
136
- dateUpdated: IsoDatetime;
137
- status: TransactionStatus;
138
- txHash?: string;
139
- networkResponse?: string;
140
- dateBroadcasted?: IsoDatetime;
141
- dateConfirmed?: IsoDatetime;
142
- initiator: Initiator;
143
- publicKeyId: string;
144
- orgId: EntityId;
145
- fee?: Amount;
146
- };
147
- export type GetPublicKeyResponse = {
148
- id: EntityId;
149
- externalId?: string;
150
- publicKey: PublicKey;
151
- groupThreshold: number;
152
- groupSize: number;
153
- tags?: Tag[];
154
- isEddsa: boolean;
155
- };
156
- export type StartWalletConnectSessionOutput = {
157
- session: WalletConnectSession;
158
- };
159
- export type WalletConnectClientMeta = {
160
- name: string;
161
- description: string;
162
- icons: string[];
163
- };
164
- export type WalletConnectSession = {
165
- accounts: string[];
166
- chainId: IntegerPositiveStrict;
167
- bridge: string;
168
- key: string;
169
- clientId: string;
170
- clientMeta?: WalletConnectClientMeta;
171
- peerId: string;
172
- peerMeta?: WalletConnectClientMeta;
173
- handshakeId: IntegerPositiveStrict;
174
- handshakeTopic: string;
175
- };
176
- export type CreateSignatureInput = {
177
- hash: string;
178
- };
179
- export type CreatePublicKeyInput = {
180
- externalId?: string;
181
- assetAccountId?: EntityId;
182
- groupSize?: number;
183
- groupThreshold?: number;
184
- isEddsa: boolean;
185
- tags?: Tag[];
186
- };
187
- export type CreateWalletTxInput = {
188
- to: BlockchainAddress;
189
- amount: Amount;
190
- asset: string;
191
- };
192
- export type StartWalletConnectSessionInput = {
193
- wcUri: string;
194
- };
195
- export type TransactionPayload = EvmGenericTx | SolanaTx;
196
- export declare enum PublicKeyStatus {
197
- Active = "Active",
198
- Disabled = "Disabled",
199
- Compromised = "Compromised"
200
- }
201
- export declare enum SignatureStatus {
202
- Pending = "Pending",
203
- Executed = "Executed",
204
- Rejected = "Rejected",
205
- Failed = "Failed"
206
- }
207
- export declare enum TransactionTemplateKind {
208
- EvmGenericTx = "EvmGenericTx",
209
- CosmosIbcTransfer = "CosmosIbcTransfer",
210
- SolanaTx = "SolanaTx",
211
- TronTx = "TronTx",
212
- TezosTx = "TezosTx"
213
- }
214
- export declare enum TransactionStatus {
215
- Initiated = "Initiated",
216
- PolicyAccepted = "PolicyAccepted",
217
- PolicyRejected = "PolicyRejected",
218
- BroadcastPending = "BroadcastPending",
219
- BroadcastRejected = "BroadcastRejected",
220
- Broadcasted = "Broadcasted",
221
- Confirmed = "Confirmed",
222
- Failed = "Failed"
223
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionStatus = exports.TransactionTemplateKind = exports.SignatureStatus = exports.PublicKeyStatus = void 0;
4
- // FIXME: Missing documentation for PublicKeyStatus
5
- var PublicKeyStatus;
6
- (function (PublicKeyStatus) {
7
- // FIXME: Missing documentation for Active
8
- PublicKeyStatus["Active"] = "Active";
9
- // FIXME: Missing documentation for Disabled
10
- PublicKeyStatus["Disabled"] = "Disabled";
11
- // FIXME: Missing documentation for Compromised
12
- PublicKeyStatus["Compromised"] = "Compromised";
13
- })(PublicKeyStatus || (exports.PublicKeyStatus = PublicKeyStatus = {}));
14
- // FIXME: Missing documentation for SignatureStatus
15
- var SignatureStatus;
16
- (function (SignatureStatus) {
17
- // FIXME: Missing documentation for Pending
18
- SignatureStatus["Pending"] = "Pending";
19
- // FIXME: Missing documentation for Executed
20
- SignatureStatus["Executed"] = "Executed";
21
- // FIXME: Missing documentation for Rejected
22
- SignatureStatus["Rejected"] = "Rejected";
23
- // FIXME: Missing documentation for Failed
24
- SignatureStatus["Failed"] = "Failed";
25
- })(SignatureStatus || (exports.SignatureStatus = SignatureStatus = {}));
26
- // FIXME: Missing documentation for TransactionTemplateKind
27
- var TransactionTemplateKind;
28
- (function (TransactionTemplateKind) {
29
- // FIXME: Missing documentation for EvmGenericTx
30
- TransactionTemplateKind["EvmGenericTx"] = "EvmGenericTx";
31
- // FIXME: Missing documentation for CosmosIbcTransfer
32
- TransactionTemplateKind["CosmosIbcTransfer"] = "CosmosIbcTransfer";
33
- // FIXME: Missing documentation for SolanaTx
34
- TransactionTemplateKind["SolanaTx"] = "SolanaTx";
35
- // FIXME: Missing documentation for TronTx
36
- TransactionTemplateKind["TronTx"] = "TronTx";
37
- // FIXME: Missing documentation for TezosTx
38
- TransactionTemplateKind["TezosTx"] = "TezosTx";
39
- })(TransactionTemplateKind || (exports.TransactionTemplateKind = TransactionTemplateKind = {}));
40
- // FIXME: Missing documentation for TransactionStatus
41
- var TransactionStatus;
42
- (function (TransactionStatus) {
43
- // FIXME: Missing documentation for Initiated
44
- TransactionStatus["Initiated"] = "Initiated";
45
- // FIXME: Missing documentation for PolicyAccepted
46
- TransactionStatus["PolicyAccepted"] = "PolicyAccepted";
47
- // FIXME: Missing documentation for PolicyRejected
48
- TransactionStatus["PolicyRejected"] = "PolicyRejected";
49
- // FIXME: Missing documentation for BroadcastPending
50
- TransactionStatus["BroadcastPending"] = "BroadcastPending";
51
- // FIXME: Missing documentation for BroadcastRejected
52
- TransactionStatus["BroadcastRejected"] = "BroadcastRejected";
53
- // FIXME: Missing documentation for Broadcasted
54
- TransactionStatus["Broadcasted"] = "Broadcasted";
55
- // FIXME: Missing documentation for Confirmed
56
- TransactionStatus["Confirmed"] = "Confirmed";
57
- // FIXME: Missing documentation for Failed
58
- TransactionStatus["Failed"] = "Failed";
59
- })(TransactionStatus || (exports.TransactionStatus = TransactionStatus = {}));
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,2 +0,0 @@
1
- export * from './responses';
2
- export * from './types';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./responses"), exports);
18
- __exportStar(require("./types"), exports);
@@ -1,92 +0,0 @@
1
- import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
2
- import { DelegateWalletResult, ExportedSigningKey, PaginatedEventHistory, PaginatedSignatureList, PaginatedTransactionList, PaginatedTransferList, PaginatedWalletList, SignatureRequest, TransactionRequest, TransferRequest, Wallet, WalletAssets, WalletNfts } from './types';
3
- export type CreateWalletSuccess = Wallet;
4
- export type CreateWalletError = {
5
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
6
- };
7
- export type CreateWalletResponse = CreateWalletSuccess | CreateWalletError;
8
- export type GetWalletSuccess = Wallet;
9
- export type GetWalletError = {
10
- error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
11
- };
12
- export type GetWalletResponse = GetWalletSuccess | GetWalletError;
13
- export type GetWalletAssetsSuccess = WalletAssets;
14
- export type GetWalletAssetsError = {
15
- error: EntityNotFoundError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
16
- };
17
- export type GetWalletAssetsResponse = GetWalletAssetsSuccess | GetWalletAssetsError;
18
- export type GetWalletNftsSuccess = WalletNfts;
19
- export type GetWalletNftsError = {
20
- error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
21
- };
22
- export type GetWalletNftsResponse = GetWalletNftsSuccess | GetWalletNftsError;
23
- export type ListWalletsSuccess = PaginatedWalletList;
24
- export type ListWalletsError = {
25
- error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
26
- };
27
- export type ListWalletsResponse = ListWalletsSuccess | ListWalletsError;
28
- export type GetWalletHistorySuccess = PaginatedEventHistory;
29
- export type GetWalletHistoryError = {
30
- error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError;
31
- };
32
- export type GetWalletHistoryResponse = GetWalletHistorySuccess | GetWalletHistoryError;
33
- export type TransferAssetSuccess = TransferRequest;
34
- export type TransferAssetError = {
35
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
36
- };
37
- export type TransferAssetResponse = TransferAssetSuccess | TransferAssetError;
38
- export type GetTransferSuccess = TransferRequest;
39
- export type GetTransferError = {
40
- error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
41
- };
42
- export type GetTransferResponse = GetTransferSuccess | GetTransferError;
43
- export type ListTransfersSuccess = PaginatedTransferList;
44
- export type ListTransfersError = {
45
- error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
46
- };
47
- export type ListTransfersResponse = ListTransfersSuccess | ListTransfersError;
48
- export type BroadcastTransactionSuccess = TransactionRequest;
49
- export type BroadcastTransactionError = {
50
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
51
- };
52
- export type BroadcastTransactionResponse = BroadcastTransactionSuccess | BroadcastTransactionError;
53
- export type GetTransactionSuccess = TransactionRequest;
54
- export type GetTransactionError = {
55
- error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
56
- };
57
- export type GetTransactionResponse = GetTransactionSuccess | GetTransactionError;
58
- export type ListTransactionsSuccess = PaginatedTransactionList;
59
- export type ListTransactionsError = {
60
- error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
61
- };
62
- export type ListTransactionsResponse = ListTransactionsSuccess | ListTransactionsError;
63
- export type GenerateSignatureSuccess = SignatureRequest;
64
- export type GenerateSignatureError = {
65
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
66
- };
67
- export type GenerateSignatureResponse = GenerateSignatureSuccess | GenerateSignatureError;
68
- export type GetSignatureSuccess = SignatureRequest;
69
- export type GetSignatureError = {
70
- error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
71
- };
72
- export type GetSignatureResponse = GetSignatureSuccess | GetSignatureError;
73
- export type ListSignaturesSuccess = PaginatedSignatureList;
74
- export type ListSignaturesError = {
75
- error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
76
- };
77
- export type ListSignaturesResponse = ListSignaturesSuccess | ListSignaturesError;
78
- export type ImportWalletSuccess = Wallet;
79
- export type ImportWalletError = {
80
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
81
- };
82
- export type ImportWalletResponse = ImportWalletSuccess | ImportWalletError;
83
- export type ExportWalletSuccess = ExportedSigningKey;
84
- export type ExportWalletError = {
85
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
86
- };
87
- export type ExportWalletResponse = ExportWalletSuccess | ExportWalletError;
88
- export type DelegateWalletSuccess = DelegateWalletResult;
89
- export type DelegateWalletError = {
90
- error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
91
- };
92
- export type DelegateWalletResponse = DelegateWalletSuccess | DelegateWalletError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });