@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
@@ -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;
@@ -0,0 +1,29 @@
1
+ import { DeviceRegistrationResponseFromJSON, DeviceRegistrationResponseToJSON } from './DeviceRegistrationResponse.js';
2
+
3
+ /* tslint:disable */
4
+ function DeviceRegistrationsResponseFromJSON(json) {
5
+ return DeviceRegistrationsResponseFromJSONTyped(json);
6
+ }
7
+ function DeviceRegistrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'count': json['count'],
13
+ 'deviceRegistrations': (json['deviceRegistrations'].map(DeviceRegistrationResponseFromJSON)),
14
+ };
15
+ }
16
+ function DeviceRegistrationsResponseToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'count': value.count,
25
+ 'deviceRegistrations': (value.deviceRegistrations.map(DeviceRegistrationResponseToJSON)),
26
+ };
27
+ }
28
+
29
+ export { DeviceRegistrationsResponseFromJSON, DeviceRegistrationsResponseFromJSONTyped, DeviceRegistrationsResponseToJSON };
@@ -134,6 +134,7 @@ exports.UnprocessableEntityErrorCode = void 0;
134
134
  UnprocessableEntityErrorCode["EmbeddedWalletAddressAlreadyLinked"] = "embedded_wallet_address_already_linked";
135
135
  UnprocessableEntityErrorCode["KeyShareAlreadyBackedUp"] = "key_share_already_backed_up";
136
136
  UnprocessableEntityErrorCode["InvalidKeySharesLength"] = "invalid_key_shares_length";
137
+ UnprocessableEntityErrorCode["WalletNotActive"] = "wallet_not_active";
137
138
  UnprocessableEntityErrorCode["WalletServiceConnectionError"] = "wallet_service_connection_error";
138
139
  UnprocessableEntityErrorCode["NoGlobalWalletFound"] = "no_global_wallet_found";
139
140
  UnprocessableEntityErrorCode["InvalidMetadataValue"] = "invalid_metadata_value";
@@ -127,6 +127,7 @@ export declare enum UnprocessableEntityErrorCode {
127
127
  EmbeddedWalletAddressAlreadyLinked = "embedded_wallet_address_already_linked",
128
128
  KeyShareAlreadyBackedUp = "key_share_already_backed_up",
129
129
  InvalidKeySharesLength = "invalid_key_shares_length",
130
+ WalletNotActive = "wallet_not_active",
130
131
  WalletServiceConnectionError = "wallet_service_connection_error",
131
132
  NoGlobalWalletFound = "no_global_wallet_found",
132
133
  InvalidMetadataValue = "invalid_metadata_value",
@@ -130,6 +130,7 @@ var UnprocessableEntityErrorCode;
130
130
  UnprocessableEntityErrorCode["EmbeddedWalletAddressAlreadyLinked"] = "embedded_wallet_address_already_linked";
131
131
  UnprocessableEntityErrorCode["KeyShareAlreadyBackedUp"] = "key_share_already_backed_up";
132
132
  UnprocessableEntityErrorCode["InvalidKeySharesLength"] = "invalid_key_shares_length";
133
+ UnprocessableEntityErrorCode["WalletNotActive"] = "wallet_not_active";
133
134
  UnprocessableEntityErrorCode["WalletServiceConnectionError"] = "wallet_service_connection_error";
134
135
  UnprocessableEntityErrorCode["NoGlobalWalletFound"] = "no_global_wallet_found";
135
136
  UnprocessableEntityErrorCode["InvalidMetadataValue"] = "invalid_metadata_value";
@@ -71,14 +71,19 @@ export * from './ChainalysisCheckResultEnum';
71
71
  export * from './ChainalysisConfiguration';
72
72
  export * from './Checkout';
73
73
  export * from './CheckoutCreateRequest';
74
+ export * from './CheckoutEvmApprovalData';
75
+ export * from './CheckoutEvmTransactionData';
74
76
  export * from './CheckoutExecutionStateEnum';
75
77
  export * from './CheckoutFailure';
76
78
  export * from './CheckoutFeeBreakdown';
77
79
  export * from './CheckoutModeEnum';
80
+ export * from './CheckoutPsbtTransactionData';
78
81
  export * from './CheckoutQuoteSnapshot';
79
82
  export * from './CheckoutRiskStateEnum';
83
+ export * from './CheckoutSerializedTransactionData';
80
84
  export * from './CheckoutSettlementData';
81
85
  export * from './CheckoutSettlementStateEnum';
86
+ export * from './CheckoutSigningPayload';
82
87
  export * from './CheckoutSourceTypeEnum';
83
88
  export * from './CheckoutTransaction';
84
89
  export * from './CheckoutTransactionCreateRequest';
@@ -159,6 +164,8 @@ export * from './DepositAmountsConfigInput';
159
164
  export * from './DestinationConfigInput';
160
165
  export * from './DestinationTypeEnum';
161
166
  export * from './DeviceRegistrationRequest';
167
+ export * from './DeviceRegistrationResponse';
168
+ export * from './DeviceRegistrationsResponse';
162
169
  export * from './DnsRecordType';
163
170
  export * from './Duration';
164
171
  export * from './DynamicJwt';