@dynamic-labs/sdk-api 0.0.885 → 0.0.887

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +170 -0
  3. package/src/apis/SDKApi.d.ts +64 -1
  4. package/src/apis/SDKApi.js +170 -0
  5. package/src/index.cjs +28 -0
  6. package/src/index.js +7 -0
  7. package/src/models/CheckoutEvmApprovalData.cjs +47 -0
  8. package/src/models/CheckoutEvmApprovalData.d.ts +39 -0
  9. package/src/models/CheckoutEvmApprovalData.js +41 -0
  10. package/src/models/CheckoutEvmTransactionData.cjs +39 -0
  11. package/src/models/CheckoutEvmTransactionData.d.ts +45 -0
  12. package/src/models/CheckoutEvmTransactionData.js +33 -0
  13. package/src/models/CheckoutPsbtTransactionData.cjs +43 -0
  14. package/src/models/CheckoutPsbtTransactionData.d.ts +27 -0
  15. package/src/models/CheckoutPsbtTransactionData.js +37 -0
  16. package/src/models/CheckoutSerializedTransactionData.cjs +43 -0
  17. package/src/models/CheckoutSerializedTransactionData.d.ts +27 -0
  18. package/src/models/CheckoutSerializedTransactionData.js +37 -0
  19. package/src/models/CheckoutSigningPayload.cjs +48 -0
  20. package/src/models/CheckoutSigningPayload.d.ts +62 -0
  21. package/src/models/CheckoutSigningPayload.js +42 -0
  22. package/src/models/CheckoutTransaction.cjs +3 -0
  23. package/src/models/CheckoutTransaction.d.ts +7 -0
  24. package/src/models/CheckoutTransaction.js +3 -0
  25. package/src/models/DeviceRegistrationResponse.cjs +37 -0
  26. package/src/models/DeviceRegistrationResponse.d.ts +39 -0
  27. package/src/models/DeviceRegistrationResponse.js +31 -0
  28. package/src/models/DeviceRegistrationsResponse.cjs +35 -0
  29. package/src/models/DeviceRegistrationsResponse.d.ts +34 -0
  30. package/src/models/DeviceRegistrationsResponse.js +29 -0
  31. package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
  32. package/src/models/UnprocessableEntityErrorCode.d.ts +1 -0
  33. package/src/models/UnprocessableEntityErrorCode.js +1 -0
  34. package/src/models/index.d.ts +7 -0
package/src/index.js CHANGED
@@ -110,14 +110,19 @@ export { ChainalysisCheckResultEnum, ChainalysisCheckResultEnumFromJSON, Chainal
110
110
  export { ChainalysisConfigurationFromJSON, ChainalysisConfigurationFromJSONTyped, ChainalysisConfigurationToJSON } from './models/ChainalysisConfiguration.js';
111
111
  export { CheckoutFromJSON, CheckoutFromJSONTyped, CheckoutToJSON } from './models/Checkout.js';
112
112
  export { CheckoutCreateRequestFromJSON, CheckoutCreateRequestFromJSONTyped, CheckoutCreateRequestToJSON } from './models/CheckoutCreateRequest.js';
113
+ export { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataFromJSONTyped, CheckoutEvmApprovalDataToJSON } from './models/CheckoutEvmApprovalData.js';
114
+ export { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataFromJSONTyped, CheckoutEvmTransactionDataToJSON } from './models/CheckoutEvmTransactionData.js';
113
115
  export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON } from './models/CheckoutExecutionStateEnum.js';
114
116
  export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON } from './models/CheckoutFailure.js';
115
117
  export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
116
118
  export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
119
+ export { CheckoutPsbtTransactionDataFromJSON, CheckoutPsbtTransactionDataFromJSONTyped, CheckoutPsbtTransactionDataToJSON } from './models/CheckoutPsbtTransactionData.js';
117
120
  export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
118
121
  export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
122
+ export { CheckoutSerializedTransactionDataFromJSON, CheckoutSerializedTransactionDataFromJSONTyped, CheckoutSerializedTransactionDataToJSON } from './models/CheckoutSerializedTransactionData.js';
119
123
  export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
120
124
  export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
125
+ export { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadFromJSONTyped, CheckoutSigningPayloadToJSON } from './models/CheckoutSigningPayload.js';
121
126
  export { CheckoutSourceTypeEnum, CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumFromJSONTyped, CheckoutSourceTypeEnumToJSON } from './models/CheckoutSourceTypeEnum.js';
122
127
  export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, CheckoutTransactionToJSON } from './models/CheckoutTransaction.js';
123
128
  export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
@@ -198,6 +203,8 @@ export { DepositAmountsConfigInputFromJSON, DepositAmountsConfigInputFromJSONTyp
198
203
  export { DestinationConfigInputFromJSON, DestinationConfigInputFromJSONTyped, DestinationConfigInputToJSON } from './models/DestinationConfigInput.js';
199
204
  export { DestinationTypeEnum, DestinationTypeEnumFromJSON, DestinationTypeEnumFromJSONTyped, DestinationTypeEnumToJSON } from './models/DestinationTypeEnum.js';
200
205
  export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
206
+ export { DeviceRegistrationResponseFromJSON, DeviceRegistrationResponseFromJSONTyped, DeviceRegistrationResponseToJSON } from './models/DeviceRegistrationResponse.js';
207
+ export { DeviceRegistrationsResponseFromJSON, DeviceRegistrationsResponseFromJSONTyped, DeviceRegistrationsResponseToJSON } from './models/DeviceRegistrationsResponse.js';
201
208
  export { DnsRecordType, DnsRecordTypeFromJSON, DnsRecordTypeFromJSONTyped, DnsRecordTypeToJSON } from './models/DnsRecordType.js';
202
209
  export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
203
210
  export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
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
+ */
18
+ function CheckoutEvmApprovalDataFromJSON(json) {
19
+ return CheckoutEvmApprovalDataFromJSONTyped(json);
20
+ }
21
+ function CheckoutEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'tokenAddress': json['tokenAddress'],
27
+ 'spenderAddress': json['spenderAddress'],
28
+ 'amount': json['amount'],
29
+ };
30
+ }
31
+ function CheckoutEvmApprovalDataToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'tokenAddress': value.tokenAddress,
40
+ 'spenderAddress': value.spenderAddress,
41
+ 'amount': value.amount,
42
+ };
43
+ }
44
+
45
+ exports.CheckoutEvmApprovalDataFromJSON = CheckoutEvmApprovalDataFromJSON;
46
+ exports.CheckoutEvmApprovalDataFromJSONTyped = CheckoutEvmApprovalDataFromJSONTyped;
47
+ exports.CheckoutEvmApprovalDataToJSON = CheckoutEvmApprovalDataToJSON;
@@ -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 CheckoutEvmApprovalData
16
+ */
17
+ export interface CheckoutEvmApprovalData {
18
+ /**
19
+ * ERC-20 contract to approve
20
+ * @type {string}
21
+ * @memberof CheckoutEvmApprovalData
22
+ */
23
+ tokenAddress: string;
24
+ /**
25
+ * Contract that needs the allowance (e.g. LiFi Diamond)
26
+ * @type {string}
27
+ * @memberof CheckoutEvmApprovalData
28
+ */
29
+ spenderAddress: string;
30
+ /**
31
+ * Amount to approve in token's smallest unit
32
+ * @type {string}
33
+ * @memberof CheckoutEvmApprovalData
34
+ */
35
+ amount: string;
36
+ }
37
+ export declare function CheckoutEvmApprovalDataFromJSON(json: any): CheckoutEvmApprovalData;
38
+ export declare function CheckoutEvmApprovalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutEvmApprovalData;
39
+ export declare function CheckoutEvmApprovalDataToJSON(value?: CheckoutEvmApprovalData | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function CheckoutEvmApprovalDataFromJSON(json) {
15
+ return CheckoutEvmApprovalDataFromJSONTyped(json);
16
+ }
17
+ function CheckoutEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'tokenAddress': json['tokenAddress'],
23
+ 'spenderAddress': json['spenderAddress'],
24
+ 'amount': json['amount'],
25
+ };
26
+ }
27
+ function CheckoutEvmApprovalDataToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'tokenAddress': value.tokenAddress,
36
+ 'spenderAddress': value.spenderAddress,
37
+ 'amount': value.amount,
38
+ };
39
+ }
40
+
41
+ export { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataFromJSONTyped, CheckoutEvmApprovalDataToJSON };
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function CheckoutEvmTransactionDataFromJSON(json) {
9
+ return CheckoutEvmTransactionDataFromJSONTyped(json);
10
+ }
11
+ function CheckoutEvmTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'to': json['to'],
17
+ 'data': json['data'],
18
+ 'value': json['value'],
19
+ 'gasLimit': !runtime.exists(json, 'gasLimit') ? undefined : json['gasLimit'],
20
+ };
21
+ }
22
+ function CheckoutEvmTransactionDataToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'to': value.to,
31
+ 'data': value.data,
32
+ 'value': value.value,
33
+ 'gasLimit': value.gasLimit,
34
+ };
35
+ }
36
+
37
+ exports.CheckoutEvmTransactionDataFromJSON = CheckoutEvmTransactionDataFromJSON;
38
+ exports.CheckoutEvmTransactionDataFromJSONTyped = CheckoutEvmTransactionDataFromJSONTyped;
39
+ exports.CheckoutEvmTransactionDataToJSON = CheckoutEvmTransactionDataToJSON;
@@ -0,0 +1,45 @@
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 CheckoutEvmTransactionData
16
+ */
17
+ export interface CheckoutEvmTransactionData {
18
+ /**
19
+ * Contract address to call
20
+ * @type {string}
21
+ * @memberof CheckoutEvmTransactionData
22
+ */
23
+ to: string;
24
+ /**
25
+ * Encoded calldata (hex)
26
+ * @type {string}
27
+ * @memberof CheckoutEvmTransactionData
28
+ */
29
+ data: string;
30
+ /**
31
+ * Native asset amount in wei (hex string, "0x0" if token-only)
32
+ * @type {string}
33
+ * @memberof CheckoutEvmTransactionData
34
+ */
35
+ value: string;
36
+ /**
37
+ * Suggested gas limit (hex string)
38
+ * @type {string}
39
+ * @memberof CheckoutEvmTransactionData
40
+ */
41
+ gasLimit?: string;
42
+ }
43
+ export declare function CheckoutEvmTransactionDataFromJSON(json: any): CheckoutEvmTransactionData;
44
+ export declare function CheckoutEvmTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutEvmTransactionData;
45
+ export declare function CheckoutEvmTransactionDataToJSON(value?: CheckoutEvmTransactionData | null): any;
@@ -0,0 +1,33 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function CheckoutEvmTransactionDataFromJSON(json) {
5
+ return CheckoutEvmTransactionDataFromJSONTyped(json);
6
+ }
7
+ function CheckoutEvmTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'to': json['to'],
13
+ 'data': json['data'],
14
+ 'value': json['value'],
15
+ 'gasLimit': !exists(json, 'gasLimit') ? undefined : json['gasLimit'],
16
+ };
17
+ }
18
+ function CheckoutEvmTransactionDataToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'to': value.to,
27
+ 'data': value.data,
28
+ 'value': value.value,
29
+ 'gasLimit': value.gasLimit,
30
+ };
31
+ }
32
+
33
+ export { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataFromJSONTyped, CheckoutEvmTransactionDataToJSON };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
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
+ */
18
+ function CheckoutPsbtTransactionDataFromJSON(json) {
19
+ return CheckoutPsbtTransactionDataFromJSONTyped(json);
20
+ }
21
+ function CheckoutPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'psbt': json['psbt'],
27
+ };
28
+ }
29
+ function CheckoutPsbtTransactionDataToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'psbt': value.psbt,
38
+ };
39
+ }
40
+
41
+ exports.CheckoutPsbtTransactionDataFromJSON = CheckoutPsbtTransactionDataFromJSON;
42
+ exports.CheckoutPsbtTransactionDataFromJSONTyped = CheckoutPsbtTransactionDataFromJSONTyped;
43
+ exports.CheckoutPsbtTransactionDataToJSON = CheckoutPsbtTransactionDataToJSON;
@@ -0,0 +1,27 @@
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 CheckoutPsbtTransactionData
16
+ */
17
+ export interface CheckoutPsbtTransactionData {
18
+ /**
19
+ * Base64-encoded unsigned PSBT
20
+ * @type {string}
21
+ * @memberof CheckoutPsbtTransactionData
22
+ */
23
+ psbt: string;
24
+ }
25
+ export declare function CheckoutPsbtTransactionDataFromJSON(json: any): CheckoutPsbtTransactionData;
26
+ export declare function CheckoutPsbtTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutPsbtTransactionData;
27
+ export declare function CheckoutPsbtTransactionDataToJSON(value?: CheckoutPsbtTransactionData | null): any;
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function CheckoutPsbtTransactionDataFromJSON(json) {
15
+ return CheckoutPsbtTransactionDataFromJSONTyped(json);
16
+ }
17
+ function CheckoutPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'psbt': json['psbt'],
23
+ };
24
+ }
25
+ function CheckoutPsbtTransactionDataToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'psbt': value.psbt,
34
+ };
35
+ }
36
+
37
+ export { CheckoutPsbtTransactionDataFromJSON, CheckoutPsbtTransactionDataFromJSONTyped, CheckoutPsbtTransactionDataToJSON };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
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
+ */
18
+ function CheckoutSerializedTransactionDataFromJSON(json) {
19
+ return CheckoutSerializedTransactionDataFromJSONTyped(json);
20
+ }
21
+ function CheckoutSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'serializedTransaction': json['serializedTransaction'],
27
+ };
28
+ }
29
+ function CheckoutSerializedTransactionDataToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'serializedTransaction': value.serializedTransaction,
38
+ };
39
+ }
40
+
41
+ exports.CheckoutSerializedTransactionDataFromJSON = CheckoutSerializedTransactionDataFromJSON;
42
+ exports.CheckoutSerializedTransactionDataFromJSONTyped = CheckoutSerializedTransactionDataFromJSONTyped;
43
+ exports.CheckoutSerializedTransactionDataToJSON = CheckoutSerializedTransactionDataToJSON;
@@ -0,0 +1,27 @@
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 CheckoutSerializedTransactionData
16
+ */
17
+ export interface CheckoutSerializedTransactionData {
18
+ /**
19
+ * Base64-encoded serialized transaction
20
+ * @type {string}
21
+ * @memberof CheckoutSerializedTransactionData
22
+ */
23
+ serializedTransaction: string;
24
+ }
25
+ export declare function CheckoutSerializedTransactionDataFromJSON(json: any): CheckoutSerializedTransactionData;
26
+ export declare function CheckoutSerializedTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSerializedTransactionData;
27
+ export declare function CheckoutSerializedTransactionDataToJSON(value?: CheckoutSerializedTransactionData | null): any;
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function CheckoutSerializedTransactionDataFromJSON(json) {
15
+ return CheckoutSerializedTransactionDataFromJSONTyped(json);
16
+ }
17
+ function CheckoutSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'serializedTransaction': json['serializedTransaction'],
23
+ };
24
+ }
25
+ function CheckoutSerializedTransactionDataToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'serializedTransaction': value.serializedTransaction,
34
+ };
35
+ }
36
+
37
+ export { CheckoutSerializedTransactionDataFromJSON, CheckoutSerializedTransactionDataFromJSONTyped, CheckoutSerializedTransactionDataToJSON };
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ChainEnum = require('./ChainEnum.cjs');
7
+ var CheckoutEvmApprovalData = require('./CheckoutEvmApprovalData.cjs');
8
+ var CheckoutEvmTransactionData = require('./CheckoutEvmTransactionData.cjs');
9
+ var CheckoutPsbtTransactionData = require('./CheckoutPsbtTransactionData.cjs');
10
+ var CheckoutSerializedTransactionData = require('./CheckoutSerializedTransactionData.cjs');
11
+
12
+ /* tslint:disable */
13
+ function CheckoutSigningPayloadFromJSON(json) {
14
+ return CheckoutSigningPayloadFromJSONTyped(json);
15
+ }
16
+ function CheckoutSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
17
+ if ((json === undefined) || (json === null)) {
18
+ return json;
19
+ }
20
+ return {
21
+ 'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
22
+ 'chainId': json['chainId'],
23
+ 'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : CheckoutEvmTransactionData.CheckoutEvmTransactionDataFromJSON(json['evmTransaction']),
24
+ 'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : CheckoutEvmApprovalData.CheckoutEvmApprovalDataFromJSON(json['evmApproval']),
25
+ 'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataFromJSON(json['serializedTransaction']),
26
+ 'psbtTransaction': !runtime.exists(json, 'psbtTransaction') ? undefined : CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataFromJSON(json['psbtTransaction']),
27
+ };
28
+ }
29
+ function CheckoutSigningPayloadToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
38
+ 'chainId': value.chainId,
39
+ 'evmTransaction': CheckoutEvmTransactionData.CheckoutEvmTransactionDataToJSON(value.evmTransaction),
40
+ 'evmApproval': CheckoutEvmApprovalData.CheckoutEvmApprovalDataToJSON(value.evmApproval),
41
+ 'serializedTransaction': CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataToJSON(value.serializedTransaction),
42
+ 'psbtTransaction': CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataToJSON(value.psbtTransaction),
43
+ };
44
+ }
45
+
46
+ exports.CheckoutSigningPayloadFromJSON = CheckoutSigningPayloadFromJSON;
47
+ exports.CheckoutSigningPayloadFromJSONTyped = CheckoutSigningPayloadFromJSONTyped;
48
+ exports.CheckoutSigningPayloadToJSON = CheckoutSigningPayloadToJSON;
@@ -0,0 +1,62 @@
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
+ import { ChainEnum } from './ChainEnum';
13
+ import { CheckoutEvmApprovalData } from './CheckoutEvmApprovalData';
14
+ import { CheckoutEvmTransactionData } from './CheckoutEvmTransactionData';
15
+ import { CheckoutPsbtTransactionData } from './CheckoutPsbtTransactionData';
16
+ import { CheckoutSerializedTransactionData } from './CheckoutSerializedTransactionData';
17
+ /**
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.
19
+ * @export
20
+ * @interface CheckoutSigningPayload
21
+ */
22
+ export interface CheckoutSigningPayload {
23
+ /**
24
+ *
25
+ * @type {ChainEnum}
26
+ * @memberof CheckoutSigningPayload
27
+ */
28
+ chainName: ChainEnum;
29
+ /**
30
+ * Source chain identifier
31
+ * @type {string}
32
+ * @memberof CheckoutSigningPayload
33
+ */
34
+ chainId: string;
35
+ /**
36
+ *
37
+ * @type {CheckoutEvmTransactionData}
38
+ * @memberof CheckoutSigningPayload
39
+ */
40
+ evmTransaction?: CheckoutEvmTransactionData;
41
+ /**
42
+ *
43
+ * @type {CheckoutEvmApprovalData}
44
+ * @memberof CheckoutSigningPayload
45
+ */
46
+ evmApproval?: CheckoutEvmApprovalData;
47
+ /**
48
+ *
49
+ * @type {CheckoutSerializedTransactionData}
50
+ * @memberof CheckoutSigningPayload
51
+ */
52
+ serializedTransaction?: CheckoutSerializedTransactionData;
53
+ /**
54
+ *
55
+ * @type {CheckoutPsbtTransactionData}
56
+ * @memberof CheckoutSigningPayload
57
+ */
58
+ psbtTransaction?: CheckoutPsbtTransactionData;
59
+ }
60
+ export declare function CheckoutSigningPayloadFromJSON(json: any): CheckoutSigningPayload;
61
+ export declare function CheckoutSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSigningPayload;
62
+ export declare function CheckoutSigningPayloadToJSON(value?: CheckoutSigningPayload | null): any;
@@ -0,0 +1,42 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
+ import { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataToJSON } from './CheckoutEvmApprovalData.js';
4
+ import { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataToJSON } from './CheckoutEvmTransactionData.js';
5
+ import { CheckoutPsbtTransactionDataFromJSON, CheckoutPsbtTransactionDataToJSON } from './CheckoutPsbtTransactionData.js';
6
+ import { CheckoutSerializedTransactionDataFromJSON, CheckoutSerializedTransactionDataToJSON } from './CheckoutSerializedTransactionData.js';
7
+
8
+ /* tslint:disable */
9
+ function CheckoutSigningPayloadFromJSON(json) {
10
+ return CheckoutSigningPayloadFromJSONTyped(json);
11
+ }
12
+ function CheckoutSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'chainName': ChainEnumFromJSON(json['chainName']),
18
+ 'chainId': json['chainId'],
19
+ 'evmTransaction': !exists(json, 'evmTransaction') ? undefined : CheckoutEvmTransactionDataFromJSON(json['evmTransaction']),
20
+ 'evmApproval': !exists(json, 'evmApproval') ? undefined : CheckoutEvmApprovalDataFromJSON(json['evmApproval']),
21
+ 'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : CheckoutSerializedTransactionDataFromJSON(json['serializedTransaction']),
22
+ 'psbtTransaction': !exists(json, 'psbtTransaction') ? undefined : CheckoutPsbtTransactionDataFromJSON(json['psbtTransaction']),
23
+ };
24
+ }
25
+ function CheckoutSigningPayloadToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'chainName': ChainEnumToJSON(value.chainName),
34
+ 'chainId': value.chainId,
35
+ 'evmTransaction': CheckoutEvmTransactionDataToJSON(value.evmTransaction),
36
+ 'evmApproval': CheckoutEvmApprovalDataToJSON(value.evmApproval),
37
+ 'serializedTransaction': CheckoutSerializedTransactionDataToJSON(value.serializedTransaction),
38
+ 'psbtTransaction': CheckoutPsbtTransactionDataToJSON(value.psbtTransaction),
39
+ };
40
+ }
41
+
42
+ export { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadFromJSONTyped, CheckoutSigningPayloadToJSON };