@dynamic-labs/sdk-api 0.0.884 → 0.0.886

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 +231 -0
  3. package/src/apis/SDKApi.d.ts +89 -1
  4. package/src/apis/SDKApi.js +231 -0
  5. package/src/index.cjs +32 -0
  6. package/src/index.js +8 -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/NoncesResponse.cjs +43 -0
  32. package/src/models/NoncesResponse.d.ts +27 -0
  33. package/src/models/NoncesResponse.js +37 -0
  34. package/src/models/index.d.ts +8 -0
@@ -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 };
@@ -9,6 +9,7 @@ var CheckoutQuoteSnapshot = require('./CheckoutQuoteSnapshot.cjs');
9
9
  var CheckoutRiskStateEnum = require('./CheckoutRiskStateEnum.cjs');
10
10
  var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
11
11
  var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
12
+ var CheckoutSigningPayload = require('./CheckoutSigningPayload.cjs');
12
13
  var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
13
14
 
14
15
  /* tslint:disable */
@@ -39,6 +40,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'quoteVersion': json['quoteVersion'],
40
41
  'quote': !runtime.exists(json, 'quote') ? undefined : CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON(json['quote']),
41
42
  'quoteExpiresAt': !runtime.exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
43
+ 'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : CheckoutSigningPayload.CheckoutSigningPayloadFromJSON(json['signingPayload']),
42
44
  'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
43
45
  'txHashes': !runtime.exists(json, 'txHashes') ? undefined : json['txHashes'],
44
46
  'broadcastedAt': !runtime.exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
@@ -79,6 +81,7 @@ function CheckoutTransactionToJSON(value) {
79
81
  'quoteVersion': value.quoteVersion,
80
82
  'quote': CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON(value.quote),
81
83
  'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
84
+ 'signingPayload': CheckoutSigningPayload.CheckoutSigningPayloadToJSON(value.signingPayload),
82
85
  'txHash': value.txHash,
83
86
  'txHashes': value.txHashes,
84
87
  'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
@@ -15,6 +15,7 @@ import { CheckoutQuoteSnapshot } from './CheckoutQuoteSnapshot';
15
15
  import { CheckoutRiskStateEnum } from './CheckoutRiskStateEnum';
16
16
  import { CheckoutSettlementData } from './CheckoutSettlementData';
17
17
  import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
18
+ import { CheckoutSigningPayload } from './CheckoutSigningPayload';
18
19
  import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
19
20
  /**
20
21
  *
@@ -136,6 +137,12 @@ export interface CheckoutTransaction {
136
137
  * @memberof CheckoutTransaction
137
138
  */
138
139
  quoteExpiresAt?: Date;
140
+ /**
141
+ *
142
+ * @type {CheckoutSigningPayload}
143
+ * @memberof CheckoutTransaction
144
+ */
145
+ signingPayload?: CheckoutSigningPayload;
139
146
  /**
140
147
  *
141
148
  * @type {string}
@@ -5,6 +5,7 @@ import { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotToJSON } from './Ch
5
5
  import { CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumToJSON } from './CheckoutRiskStateEnum.js';
6
6
  import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './CheckoutSettlementData.js';
7
7
  import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
8
+ import { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadToJSON } from './CheckoutSigningPayload.js';
8
9
  import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
9
10
 
10
11
  /* tslint:disable */
@@ -35,6 +36,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
35
36
  'quoteVersion': json['quoteVersion'],
36
37
  'quote': !exists(json, 'quote') ? undefined : CheckoutQuoteSnapshotFromJSON(json['quote']),
37
38
  'quoteExpiresAt': !exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
39
+ 'signingPayload': !exists(json, 'signingPayload') ? undefined : CheckoutSigningPayloadFromJSON(json['signingPayload']),
38
40
  'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
39
41
  'txHashes': !exists(json, 'txHashes') ? undefined : json['txHashes'],
40
42
  'broadcastedAt': !exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
@@ -75,6 +77,7 @@ function CheckoutTransactionToJSON(value) {
75
77
  'quoteVersion': value.quoteVersion,
76
78
  'quote': CheckoutQuoteSnapshotToJSON(value.quote),
77
79
  'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
80
+ 'signingPayload': CheckoutSigningPayloadToJSON(value.signingPayload),
78
81
  'txHash': value.txHash,
79
82
  'txHashes': value.txHashes,
80
83
  'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
@@ -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 DeviceRegistrationResponseFromJSON(json) {
9
+ return DeviceRegistrationResponseFromJSONTyped(json);
10
+ }
11
+ function DeviceRegistrationResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'id': json['id'],
17
+ 'userAgent': !runtime.exists(json, 'userAgent') ? undefined : json['userAgent'],
18
+ 'createdAt': (new Date(json['createdAt'])),
19
+ };
20
+ }
21
+ function DeviceRegistrationResponseToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'id': value.id,
30
+ 'userAgent': value.userAgent,
31
+ 'createdAt': (value.createdAt.toISOString()),
32
+ };
33
+ }
34
+
35
+ exports.DeviceRegistrationResponseFromJSON = DeviceRegistrationResponseFromJSON;
36
+ exports.DeviceRegistrationResponseFromJSONTyped = DeviceRegistrationResponseFromJSONTyped;
37
+ exports.DeviceRegistrationResponseToJSON = DeviceRegistrationResponseToJSON;
@@ -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 DeviceRegistrationResponse
16
+ */
17
+ export interface DeviceRegistrationResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DeviceRegistrationResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof DeviceRegistrationResponse
28
+ */
29
+ userAgent?: string | null;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof DeviceRegistrationResponse
34
+ */
35
+ createdAt: Date;
36
+ }
37
+ export declare function DeviceRegistrationResponseFromJSON(json: any): DeviceRegistrationResponse;
38
+ export declare function DeviceRegistrationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceRegistrationResponse;
39
+ export declare function DeviceRegistrationResponseToJSON(value?: DeviceRegistrationResponse | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function DeviceRegistrationResponseFromJSON(json) {
5
+ return DeviceRegistrationResponseFromJSONTyped(json);
6
+ }
7
+ function DeviceRegistrationResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'id': json['id'],
13
+ 'userAgent': !exists(json, 'userAgent') ? undefined : json['userAgent'],
14
+ 'createdAt': (new Date(json['createdAt'])),
15
+ };
16
+ }
17
+ function DeviceRegistrationResponseToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'id': value.id,
26
+ 'userAgent': value.userAgent,
27
+ 'createdAt': (value.createdAt.toISOString()),
28
+ };
29
+ }
30
+
31
+ export { DeviceRegistrationResponseFromJSON, DeviceRegistrationResponseFromJSONTyped, DeviceRegistrationResponseToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var DeviceRegistrationResponse = require('./DeviceRegistrationResponse.cjs');
6
+
7
+ /* tslint:disable */
8
+ function DeviceRegistrationsResponseFromJSON(json) {
9
+ return DeviceRegistrationsResponseFromJSONTyped(json);
10
+ }
11
+ function DeviceRegistrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'count': json['count'],
17
+ 'deviceRegistrations': (json['deviceRegistrations'].map(DeviceRegistrationResponse.DeviceRegistrationResponseFromJSON)),
18
+ };
19
+ }
20
+ function DeviceRegistrationsResponseToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'count': value.count,
29
+ 'deviceRegistrations': (value.deviceRegistrations.map(DeviceRegistrationResponse.DeviceRegistrationResponseToJSON)),
30
+ };
31
+ }
32
+
33
+ exports.DeviceRegistrationsResponseFromJSON = DeviceRegistrationsResponseFromJSON;
34
+ exports.DeviceRegistrationsResponseFromJSONTyped = DeviceRegistrationsResponseFromJSONTyped;
35
+ exports.DeviceRegistrationsResponseToJSON = DeviceRegistrationsResponseToJSON;
@@ -0,0 +1,34 @@
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 { DeviceRegistrationResponse } from './DeviceRegistrationResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeviceRegistrationsResponse
17
+ */
18
+ export interface DeviceRegistrationsResponse {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof DeviceRegistrationsResponse
23
+ */
24
+ count: number;
25
+ /**
26
+ *
27
+ * @type {Array<DeviceRegistrationResponse>}
28
+ * @memberof DeviceRegistrationsResponse
29
+ */
30
+ deviceRegistrations: Array<DeviceRegistrationResponse>;
31
+ }
32
+ export declare function DeviceRegistrationsResponseFromJSON(json: any): DeviceRegistrationsResponse;
33
+ export declare function DeviceRegistrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceRegistrationsResponse;
34
+ export declare function DeviceRegistrationsResponseToJSON(value?: DeviceRegistrationsResponse | null): any;