@dynamic-labs/sdk-api-core 0.0.920 → 0.0.922

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 (44) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +6135 -7301
  3. package/src/apis/SDKApi.d.ts +3 -3
  4. package/src/apis/SDKApi.js +6135 -7301
  5. package/src/apis/WaasApi.cjs +31 -40
  6. package/src/apis/WaasApi.js +31 -40
  7. package/src/deviceNonceSignatureEndpoints.cjs +1 -1
  8. package/src/deviceNonceSignatureEndpoints.js +1 -1
  9. package/src/index.cjs +8 -16
  10. package/src/index.js +2 -4
  11. package/src/models/CheckoutTransaction.cjs +3 -10
  12. package/src/models/CheckoutTransaction.d.ts +3 -22
  13. package/src/models/CheckoutTransaction.js +3 -10
  14. package/src/models/CheckoutTransactionQuote.cjs +51 -0
  15. package/src/models/CheckoutTransactionQuote.d.ts +77 -0
  16. package/src/models/CheckoutTransactionQuote.js +45 -0
  17. package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
  18. package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
  19. package/src/models/Provider.cjs +2 -0
  20. package/src/models/Provider.d.ts +6 -0
  21. package/src/models/Provider.js +2 -0
  22. package/src/models/SwapSigningPayload.cjs +4 -6
  23. package/src/models/SwapSigningPayload.d.ts +7 -9
  24. package/src/models/SwapSigningPayload.js +4 -6
  25. package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
  26. package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
  27. package/src/models/TransactionFeeEstimateRequest.js +31 -0
  28. package/src/models/index.d.ts +2 -4
  29. package/src/runtime.cjs +45 -36
  30. package/src/runtime.js +45 -36
  31. package/_virtual/_tslib.cjs +0 -35
  32. package/_virtual/_tslib.js +0 -31
  33. package/src/models/CheckoutQuoteSnapshot.cjs +0 -50
  34. package/src/models/CheckoutQuoteSnapshot.d.ts +0 -76
  35. package/src/models/CheckoutQuoteSnapshot.js +0 -44
  36. package/src/models/InlineObject.cjs +0 -43
  37. package/src/models/InlineObject.d.ts +0 -27
  38. package/src/models/InlineObject.js +0 -37
  39. package/src/models/SwapPsbtTransactionData.cjs +0 -43
  40. package/src/models/SwapPsbtTransactionData.d.ts +0 -27
  41. package/src/models/SwapPsbtTransactionData.js +0 -37
  42. package/src/models/SwapSerializedTransactionData.cjs +0 -43
  43. package/src/models/SwapSerializedTransactionData.d.ts +0 -27
  44. package/src/models/SwapSerializedTransactionData.js +0 -37
@@ -0,0 +1,45 @@
1
+ import { exists } from '../runtime.js';
2
+ import { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownToJSON } from './CheckoutFeeBreakdown.js';
3
+ import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
4
+
5
+ /* tslint:disable */
6
+ function CheckoutTransactionQuoteFromJSON(json) {
7
+ return CheckoutTransactionQuoteFromJSONTyped(json);
8
+ }
9
+ function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'version': json['version'],
15
+ 'fromAmount': json['fromAmount'],
16
+ 'toAmount': json['toAmount'],
17
+ 'fees': !exists(json, 'fees') ? undefined : CheckoutFeeBreakdownFromJSON(json['fees']),
18
+ 'estimatedTimeSec': !exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
19
+ 'rawQuote': !exists(json, 'rawQuote') ? undefined : json['rawQuote'],
20
+ 'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
21
+ 'createdAt': (new Date(json['createdAt'])),
22
+ 'expiresAt': (new Date(json['expiresAt'])),
23
+ };
24
+ }
25
+ function CheckoutTransactionQuoteToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'version': value.version,
34
+ 'fromAmount': value.fromAmount,
35
+ 'toAmount': value.toAmount,
36
+ 'fees': CheckoutFeeBreakdownToJSON(value.fees),
37
+ 'estimatedTimeSec': value.estimatedTimeSec,
38
+ 'rawQuote': value.rawQuote,
39
+ 'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
40
+ 'createdAt': (value.createdAt.toISOString()),
41
+ 'expiresAt': (value.expiresAt.toISOString()),
42
+ };
43
+ }
44
+
45
+ export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON };
@@ -12,7 +12,7 @@ function CreateEmbeddedWalletSpecificOptsFromJSONTyped(json, ignoreDiscriminator
12
12
  if ((json === undefined) || (json === null)) {
13
13
  return json;
14
14
  }
15
- return Object.assign({}, CreateTurnkeyEmbeddedWalletSpecificOpts.CreateTurnkeyEmbeddedWalletSpecificOptsFromJSONTyped(json));
15
+ return { ...CreateTurnkeyEmbeddedWalletSpecificOpts.CreateTurnkeyEmbeddedWalletSpecificOptsFromJSONTyped(json) };
16
16
  }
17
17
  function CreateEmbeddedWalletSpecificOptsToJSON(value) {
18
18
  if (value === undefined) {
@@ -21,7 +21,7 @@ function CreateEmbeddedWalletSpecificOptsToJSON(value) {
21
21
  if (value === null) {
22
22
  return null;
23
23
  }
24
- return Object.assign({}, CreateTurnkeyEmbeddedWalletSpecificOpts.CreateTurnkeyEmbeddedWalletSpecificOptsToJSON(value));
24
+ return { ...CreateTurnkeyEmbeddedWalletSpecificOpts.CreateTurnkeyEmbeddedWalletSpecificOptsToJSON(value) };
25
25
  }
26
26
 
27
27
  exports.CreateEmbeddedWalletSpecificOptsFromJSON = CreateEmbeddedWalletSpecificOptsFromJSON;
@@ -8,7 +8,7 @@ function CreateEmbeddedWalletSpecificOptsFromJSONTyped(json, ignoreDiscriminator
8
8
  if ((json === undefined) || (json === null)) {
9
9
  return json;
10
10
  }
11
- return Object.assign({}, CreateTurnkeyEmbeddedWalletSpecificOptsFromJSONTyped(json));
11
+ return { ...CreateTurnkeyEmbeddedWalletSpecificOptsFromJSONTyped(json) };
12
12
  }
13
13
  function CreateEmbeddedWalletSpecificOptsToJSON(value) {
14
14
  if (value === undefined) {
@@ -17,7 +17,7 @@ function CreateEmbeddedWalletSpecificOptsToJSON(value) {
17
17
  if (value === null) {
18
18
  return null;
19
19
  }
20
- return Object.assign({}, CreateTurnkeyEmbeddedWalletSpecificOptsToJSON(value));
20
+ return { ...CreateTurnkeyEmbeddedWalletSpecificOptsToJSON(value) };
21
21
  }
22
22
 
23
23
  export { CreateEmbeddedWalletSpecificOptsFromJSON, CreateEmbeddedWalletSpecificOptsFromJSONTyped, CreateEmbeddedWalletSpecificOptsToJSON };
@@ -60,6 +60,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'zerodevBundlerRpcUrl': !runtime.exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
61
61
  'zerodevPaymasterRpcUrl': !runtime.exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
62
62
  'zerodevKernelDelegationAddress': !runtime.exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
63
+ 'zerodevProjectVersion': !runtime.exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
63
64
  'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
64
65
  'cancelUrl': !runtime.exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
65
66
  };
@@ -111,6 +112,7 @@ function ProviderToJSON(value) {
111
112
  'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
112
113
  'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
113
114
  'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
115
+ 'zerodevProjectVersion': value.zerodevProjectVersion,
114
116
  'returnUrl': value.returnUrl,
115
117
  'cancelUrl': value.cancelUrl,
116
118
  };
@@ -257,6 +257,12 @@ export interface Provider {
257
257
  * @memberof Provider
258
258
  */
259
259
  zerodevKernelDelegationAddress?: string;
260
+ /**
261
+ * The ZeroDev projects endpoint version (v1 or v2)
262
+ * @type {string}
263
+ * @memberof Provider
264
+ */
265
+ zerodevProjectVersion?: string;
260
266
  /**
261
267
  * URL to return to after completion
262
268
  * @type {string}
@@ -56,6 +56,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'zerodevBundlerRpcUrl': !exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
57
57
  'zerodevPaymasterRpcUrl': !exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
58
58
  'zerodevKernelDelegationAddress': !exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
59
+ 'zerodevProjectVersion': !exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
59
60
  'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
60
61
  'cancelUrl': !exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
61
62
  };
@@ -107,6 +108,7 @@ function ProviderToJSON(value) {
107
108
  'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
108
109
  'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
109
110
  'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
111
+ 'zerodevProjectVersion': value.zerodevProjectVersion,
110
112
  'returnUrl': value.returnUrl,
111
113
  'cancelUrl': value.cancelUrl,
112
114
  };
@@ -6,8 +6,6 @@ var runtime = require('../runtime.cjs');
6
6
  var ChainEnum = require('./ChainEnum.cjs');
7
7
  var SwapEvmApprovalData = require('./SwapEvmApprovalData.cjs');
8
8
  var SwapEvmTransactionData = require('./SwapEvmTransactionData.cjs');
9
- var SwapPsbtTransactionData = require('./SwapPsbtTransactionData.cjs');
10
- var SwapSerializedTransactionData = require('./SwapSerializedTransactionData.cjs');
11
9
 
12
10
  /* tslint:disable */
13
11
  function SwapSigningPayloadFromJSON(json) {
@@ -22,8 +20,8 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
22
20
  'chainId': json['chainId'],
23
21
  'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionData.SwapEvmTransactionDataFromJSON(json['evmTransaction']),
24
22
  'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : SwapEvmApprovalData.SwapEvmApprovalDataFromJSON(json['evmApproval']),
25
- 'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSON(json['serializedTransaction']),
26
- 'psbtTransaction': !runtime.exists(json, 'psbtTransaction') ? undefined : SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSON(json['psbtTransaction']),
23
+ 'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
24
+ 'psbt': !runtime.exists(json, 'psbt') ? undefined : json['psbt'],
27
25
  };
28
26
  }
29
27
  function SwapSigningPayloadToJSON(value) {
@@ -38,8 +36,8 @@ function SwapSigningPayloadToJSON(value) {
38
36
  'chainId': value.chainId,
39
37
  'evmTransaction': SwapEvmTransactionData.SwapEvmTransactionDataToJSON(value.evmTransaction),
40
38
  'evmApproval': SwapEvmApprovalData.SwapEvmApprovalDataToJSON(value.evmApproval),
41
- 'serializedTransaction': SwapSerializedTransactionData.SwapSerializedTransactionDataToJSON(value.serializedTransaction),
42
- 'psbtTransaction': SwapPsbtTransactionData.SwapPsbtTransactionDataToJSON(value.psbtTransaction),
39
+ 'serializedTransaction': value.serializedTransaction,
40
+ 'psbt': value.psbt,
43
41
  };
44
42
  }
45
43
 
@@ -12,10 +12,8 @@
12
12
  import { ChainEnum } from './ChainEnum';
13
13
  import { SwapEvmApprovalData } from './SwapEvmApprovalData';
14
14
  import { SwapEvmTransactionData } from './SwapEvmTransactionData';
15
- import { SwapPsbtTransactionData } from './SwapPsbtTransactionData';
16
- import { SwapSerializedTransactionData } from './SwapSerializedTransactionData';
17
15
  /**
18
- * Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbtTransaction.
16
+ * Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt.
19
17
  * @export
20
18
  * @interface SwapSigningPayload
21
19
  */
@@ -45,17 +43,17 @@ export interface SwapSigningPayload {
45
43
  */
46
44
  evmApproval?: SwapEvmApprovalData;
47
45
  /**
48
- *
49
- * @type {SwapSerializedTransactionData}
46
+ * Base64-encoded serialized transaction
47
+ * @type {string}
50
48
  * @memberof SwapSigningPayload
51
49
  */
52
- serializedTransaction?: SwapSerializedTransactionData;
50
+ serializedTransaction?: string;
53
51
  /**
54
- *
55
- * @type {SwapPsbtTransactionData}
52
+ * Base64-encoded unsigned PSBT
53
+ * @type {string}
56
54
  * @memberof SwapSigningPayload
57
55
  */
58
- psbtTransaction?: SwapPsbtTransactionData;
56
+ psbt?: string;
59
57
  }
60
58
  export declare function SwapSigningPayloadFromJSON(json: any): SwapSigningPayload;
61
59
  export declare function SwapSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSigningPayload;
@@ -2,8 +2,6 @@ import { exists } from '../runtime.js';
2
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
3
  import { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataToJSON } from './SwapEvmApprovalData.js';
4
4
  import { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataToJSON } from './SwapEvmTransactionData.js';
5
- import { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataToJSON } from './SwapPsbtTransactionData.js';
6
- import { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataToJSON } from './SwapSerializedTransactionData.js';
7
5
 
8
6
  /* tslint:disable */
9
7
  function SwapSigningPayloadFromJSON(json) {
@@ -18,8 +16,8 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
18
16
  'chainId': json['chainId'],
19
17
  'evmTransaction': !exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionDataFromJSON(json['evmTransaction']),
20
18
  'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
21
- 'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : SwapSerializedTransactionDataFromJSON(json['serializedTransaction']),
22
- 'psbtTransaction': !exists(json, 'psbtTransaction') ? undefined : SwapPsbtTransactionDataFromJSON(json['psbtTransaction']),
19
+ 'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
20
+ 'psbt': !exists(json, 'psbt') ? undefined : json['psbt'],
23
21
  };
24
22
  }
25
23
  function SwapSigningPayloadToJSON(value) {
@@ -34,8 +32,8 @@ function SwapSigningPayloadToJSON(value) {
34
32
  'chainId': value.chainId,
35
33
  'evmTransaction': SwapEvmTransactionDataToJSON(value.evmTransaction),
36
34
  'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
37
- 'serializedTransaction': SwapSerializedTransactionDataToJSON(value.serializedTransaction),
38
- 'psbtTransaction': SwapPsbtTransactionDataToJSON(value.psbtTransaction),
35
+ 'serializedTransaction': value.serializedTransaction,
36
+ 'psbt': value.psbt,
39
37
  };
40
38
  }
41
39
 
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function TransactionFeeEstimateRequestFromJSON(json) {
9
+ return TransactionFeeEstimateRequestFromJSONTyped(json);
10
+ }
11
+ function TransactionFeeEstimateRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'base64RawTransaction': !runtime.exists(json, 'base64RawTransaction') ? undefined : json['base64RawTransaction'],
17
+ 'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
18
+ 'rawTransactionData': !runtime.exists(json, 'rawTransactionData') ? undefined : json['rawTransactionData'],
19
+ };
20
+ }
21
+ function TransactionFeeEstimateRequestToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'base64RawTransaction': value.base64RawTransaction,
30
+ 'fromAddress': value.fromAddress,
31
+ 'rawTransactionData': value.rawTransactionData,
32
+ };
33
+ }
34
+
35
+ exports.TransactionFeeEstimateRequestFromJSON = TransactionFeeEstimateRequestFromJSON;
36
+ exports.TransactionFeeEstimateRequestFromJSONTyped = TransactionFeeEstimateRequestFromJSONTyped;
37
+ exports.TransactionFeeEstimateRequestToJSON = TransactionFeeEstimateRequestToJSON;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TransactionFeeEstimateRequest
16
+ */
17
+ export interface TransactionFeeEstimateRequest {
18
+ /**
19
+ * Deprecated — use rawTransactionData instead. The base64-encoded raw transaction to estimate gas fees for.
20
+ * @type {string}
21
+ * @memberof TransactionFeeEstimateRequest
22
+ */
23
+ base64RawTransaction?: string;
24
+ /**
25
+ * Valid blockchain wallet address, must be an alphanumeric string without any special characters
26
+ * @type {string}
27
+ * @memberof TransactionFeeEstimateRequest
28
+ */
29
+ fromAddress?: string;
30
+ /**
31
+ * The raw transaction data to estimate gas fees for. For BTC, the PSBT string. For EVM, the transaction data in JSON format with properties: { to, data, value }. For Solana, the base64-encoded transaction data. For Sui, the base64-encoded transaction data.
32
+ * @type {string}
33
+ * @memberof TransactionFeeEstimateRequest
34
+ */
35
+ rawTransactionData?: string;
36
+ }
37
+ export declare function TransactionFeeEstimateRequestFromJSON(json: any): TransactionFeeEstimateRequest;
38
+ export declare function TransactionFeeEstimateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFeeEstimateRequest;
39
+ export declare function TransactionFeeEstimateRequestToJSON(value?: TransactionFeeEstimateRequest | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function TransactionFeeEstimateRequestFromJSON(json) {
5
+ return TransactionFeeEstimateRequestFromJSONTyped(json);
6
+ }
7
+ function TransactionFeeEstimateRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'base64RawTransaction': !exists(json, 'base64RawTransaction') ? undefined : json['base64RawTransaction'],
13
+ 'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
14
+ 'rawTransactionData': !exists(json, 'rawTransactionData') ? undefined : json['rawTransactionData'],
15
+ };
16
+ }
17
+ function TransactionFeeEstimateRequestToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'base64RawTransaction': value.base64RawTransaction,
26
+ 'fromAddress': value.fromAddress,
27
+ 'rawTransactionData': value.rawTransactionData,
28
+ };
29
+ }
30
+
31
+ export { TransactionFeeEstimateRequestFromJSON, TransactionFeeEstimateRequestFromJSONTyped, TransactionFeeEstimateRequestToJSON };
@@ -40,7 +40,6 @@ export * from './CheckoutFailure';
40
40
  export * from './CheckoutFeeBreakdown';
41
41
  export * from './CheckoutGasEstimate';
42
42
  export * from './CheckoutModeEnum';
43
- export * from './CheckoutQuoteSnapshot';
44
43
  export * from './CheckoutRiskStateEnum';
45
44
  export * from './CheckoutSettlementData';
46
45
  export * from './CheckoutSettlementStateEnum';
@@ -49,6 +48,7 @@ export * from './CheckoutTransaction';
49
48
  export * from './CheckoutTransactionCreateRequest';
50
49
  export * from './CheckoutTransactionCreateResponse';
51
50
  export * from './CheckoutTransactionDestinationAddress';
51
+ export * from './CheckoutTransactionQuote';
52
52
  export * from './CheckoutUpdateRequest';
53
53
  export * from './CheckoutsResponse';
54
54
  export * from './CoinbaseMpcWalletProperties';
@@ -170,7 +170,6 @@ export * from './InitEmailAuthRequest';
170
170
  export * from './InitEmailAuthResponse';
171
171
  export * from './InitPasskeyRecoveryRequest';
172
172
  export * from './InitPasskeyRecoveryResponse';
173
- export * from './InlineObject';
174
173
  export * from './IntegrationSetting';
175
174
  export * from './InternalServerError';
176
175
  export * from './JwksKey';
@@ -365,12 +364,10 @@ export * from './SwapEvmApprovalData';
365
364
  export * from './SwapEvmTransactionData';
366
365
  export * from './SwapFee';
367
366
  export * from './SwapGasCost';
368
- export * from './SwapPsbtTransactionData';
369
367
  export * from './SwapQuoteRequest';
370
368
  export * from './SwapQuoteRequestSide';
371
369
  export * from './SwapQuoteResponse';
372
370
  export * from './SwapQuoteResponseSide';
373
- export * from './SwapSerializedTransactionData';
374
371
  export * from './SwapSigningPayload';
375
372
  export * from './SwapStatusRequest';
376
373
  export * from './SwapStatusRequestChain';
@@ -385,6 +382,7 @@ export * from './TimeUnitEnum';
385
382
  export * from './TokenBalance';
386
383
  export * from './TokenScope';
387
384
  export * from './TooManyRequests';
385
+ export * from './TransactionFeeEstimateRequest';
388
386
  export * from './TransactionFeeEstimateResponse';
389
387
  export * from './TransferDestination';
390
388
  export * from './TransferDestinationResponse';
package/src/runtime.cjs CHANGED
@@ -2,9 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _tslib = require('../_virtual/_tslib.cjs');
6
-
7
5
  /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
8
18
  const BASE_PATH = "https://app.dynamicauth.com/api/v0".replace(/\/+$/, "");
9
19
  const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
10
20
  /**
@@ -13,26 +23,29 @@ const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
13
23
  class BaseAPI {
14
24
  constructor(configuration = new Configuration()) {
15
25
  this.configuration = configuration;
16
- this.fetchApi = (url, init) => _tslib.__awaiter(this, void 0, void 0, function* () {
26
+ this.fetchApi = async (url, init) => {
17
27
  let fetchParams = { url, init };
18
28
  for (const middleware of this.middleware) {
19
29
  if (middleware.pre) {
20
- fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
30
+ fetchParams = await middleware.pre({
31
+ fetch: this.fetchApi,
32
+ ...fetchParams,
33
+ }) || fetchParams;
21
34
  }
22
35
  }
23
- let response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
36
+ let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
24
37
  for (const middleware of this.middleware) {
25
38
  if (middleware.post) {
26
- response = (yield middleware.post({
39
+ response = await middleware.post({
27
40
  fetch: this.fetchApi,
28
41
  url: fetchParams.url,
29
42
  init: fetchParams.init,
30
43
  response: response.clone(),
31
- })) || response;
44
+ }) || response;
32
45
  }
33
46
  }
34
47
  return response;
35
- });
48
+ };
36
49
  this.middleware = configuration.middleware;
37
50
  }
38
51
  withMiddleware(...middlewares) {
@@ -48,15 +61,13 @@ class BaseAPI {
48
61
  const middlewares = postMiddlewares.map((post) => ({ post }));
49
62
  return this.withMiddleware(...middlewares);
50
63
  }
51
- request(context, initOverrides) {
52
- return _tslib.__awaiter(this, void 0, void 0, function* () {
53
- const { url, init } = this.createFetchParams(context, initOverrides);
54
- const response = yield this.fetchApi(url, init);
55
- if (response.status >= 200 && response.status < 300) {
56
- return response;
57
- }
58
- throw response;
59
- });
64
+ async request(context, initOverrides) {
65
+ const { url, init } = this.createFetchParams(context, initOverrides);
66
+ const response = await this.fetchApi(url, init);
67
+ if (response.status >= 200 && response.status < 300) {
68
+ return response;
69
+ }
70
+ throw response;
60
71
  }
61
72
  createFetchParams(context, initOverrides) {
62
73
  let url = this.configuration.basePath + context.path;
@@ -70,7 +81,13 @@ class BaseAPI {
70
81
  ? context.body
71
82
  : JSON.stringify(context.body);
72
83
  const headers = Object.assign({}, this.configuration.headers, context.headers);
73
- const init = Object.assign({ method: context.method, headers: headers, body, credentials: this.configuration.credentials }, initOverrides);
84
+ const init = {
85
+ method: context.method,
86
+ headers: headers,
87
+ body,
88
+ credentials: this.configuration.credentials,
89
+ ...initOverrides
90
+ };
74
91
  return { url, init };
75
92
  }
76
93
  /**
@@ -129,7 +146,7 @@ class Configuration {
129
146
  get accessToken() {
130
147
  const accessToken = this.configuration.accessToken;
131
148
  if (accessToken) {
132
- return typeof accessToken === 'function' ? accessToken : () => _tslib.__awaiter(this, void 0, void 0, function* () { return accessToken; });
149
+ return typeof accessToken === 'function' ? accessToken : async () => accessToken;
133
150
  }
134
151
  return undefined;
135
152
  }
@@ -166,7 +183,7 @@ function querystring(params, prefix = '') {
166
183
  .join('&');
167
184
  }
168
185
  function mapValues(data, fn) {
169
- return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
186
+ return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
170
187
  }
171
188
  function canConsumeForm(consumes) {
172
189
  for (const consume of consumes) {
@@ -181,30 +198,24 @@ class JSONApiResponse {
181
198
  this.raw = raw;
182
199
  this.transformer = transformer;
183
200
  }
184
- value() {
185
- return _tslib.__awaiter(this, void 0, void 0, function* () {
186
- return this.transformer(yield this.raw.json());
187
- });
201
+ async value() {
202
+ return this.transformer(await this.raw.json());
188
203
  }
189
204
  }
190
205
  class VoidApiResponse {
191
206
  constructor(raw) {
192
207
  this.raw = raw;
193
208
  }
194
- value() {
195
- return _tslib.__awaiter(this, void 0, void 0, function* () {
196
- return undefined;
197
- });
209
+ async value() {
210
+ return undefined;
198
211
  }
199
212
  }
200
213
  class BlobApiResponse {
201
214
  constructor(raw) {
202
215
  this.raw = raw;
203
216
  }
204
- value() {
205
- return _tslib.__awaiter(this, void 0, void 0, function* () {
206
- return yield this.raw.blob();
207
- });
217
+ async value() {
218
+ return await this.raw.blob();
208
219
  }
209
220
  ;
210
221
  }
@@ -212,10 +223,8 @@ class TextApiResponse {
212
223
  constructor(raw) {
213
224
  this.raw = raw;
214
225
  }
215
- value() {
216
- return _tslib.__awaiter(this, void 0, void 0, function* () {
217
- return yield this.raw.text();
218
- });
226
+ async value() {
227
+ return await this.raw.text();
219
228
  }
220
229
  ;
221
230
  }