@dynamic-labs/sdk-api 0.0.1078 → 0.0.1080

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/apis/GaslessApi.cjs +251 -0
  3. package/src/apis/GaslessApi.d.ts +53 -0
  4. package/src/apis/GaslessApi.js +247 -0
  5. package/src/apis/SDKApi.cjs +68 -0
  6. package/src/apis/SDKApi.d.ts +28 -0
  7. package/src/apis/SDKApi.js +68 -0
  8. package/src/apis/index.d.ts +1 -0
  9. package/src/index.cjs +26 -0
  10. package/src/index.js +7 -0
  11. package/src/models/GaslessBillingChainBreakdown.cjs +51 -0
  12. package/src/models/GaslessBillingChainBreakdown.d.ts +51 -0
  13. package/src/models/GaslessBillingChainBreakdown.js +45 -0
  14. package/src/models/GaslessBillingPeriod.cjs +43 -0
  15. package/src/models/GaslessBillingPeriod.d.ts +58 -0
  16. package/src/models/GaslessBillingPeriod.js +37 -0
  17. package/src/models/GaslessBillingSummaryResponse.cjs +36 -0
  18. package/src/models/GaslessBillingSummaryResponse.d.ts +35 -0
  19. package/src/models/GaslessBillingSummaryResponse.js +30 -0
  20. package/src/models/GaslessBillingTotals.cjs +49 -0
  21. package/src/models/GaslessBillingTotals.d.ts +45 -0
  22. package/src/models/GaslessBillingTotals.js +43 -0
  23. package/src/models/GaslessTransactionItem.cjs +55 -0
  24. package/src/models/GaslessTransactionItem.d.ts +93 -0
  25. package/src/models/GaslessTransactionItem.js +49 -0
  26. package/src/models/GaslessTransactionsListResponse.cjs +37 -0
  27. package/src/models/GaslessTransactionsListResponse.d.ts +40 -0
  28. package/src/models/GaslessTransactionsListResponse.js +31 -0
  29. package/src/models/SanctionsWalletBlockedEventPayload.cjs +3 -0
  30. package/src/models/SanctionsWalletBlockedEventPayload.d.ts +14 -6
  31. package/src/models/SanctionsWalletBlockedEventPayload.js +3 -0
  32. package/src/models/index.d.ts +6 -0
@@ -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 GaslessBillingTotals
16
+ */
17
+ export interface GaslessBillingTotals {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GaslessBillingTotals
22
+ */
23
+ networkFeeUsd: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GaslessBillingTotals
28
+ */
29
+ serviceFeeUsd: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GaslessBillingTotals
34
+ */
35
+ totalUsd: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GaslessBillingTotals
40
+ */
41
+ transactionCount: number;
42
+ }
43
+ export declare function GaslessBillingTotalsFromJSON(json: any): GaslessBillingTotals;
44
+ export declare function GaslessBillingTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaslessBillingTotals;
45
+ export declare function GaslessBillingTotalsToJSON(value?: GaslessBillingTotals | null): any;
@@ -0,0 +1,43 @@
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 GaslessBillingTotalsFromJSON(json) {
15
+ return GaslessBillingTotalsFromJSONTyped(json);
16
+ }
17
+ function GaslessBillingTotalsFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'networkFeeUsd': json['networkFeeUsd'],
23
+ 'serviceFeeUsd': json['serviceFeeUsd'],
24
+ 'totalUsd': json['totalUsd'],
25
+ 'transactionCount': json['transactionCount'],
26
+ };
27
+ }
28
+ function GaslessBillingTotalsToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'networkFeeUsd': value.networkFeeUsd,
37
+ 'serviceFeeUsd': value.serviceFeeUsd,
38
+ 'totalUsd': value.totalUsd,
39
+ 'transactionCount': value.transactionCount,
40
+ };
41
+ }
42
+
43
+ export { GaslessBillingTotalsFromJSON, GaslessBillingTotalsFromJSONTyped, GaslessBillingTotalsToJSON };
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function GaslessTransactionItemFromJSON(json) {
9
+ return GaslessTransactionItemFromJSONTyped(json);
10
+ }
11
+ function GaslessTransactionItemFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chainId': json['chainId'],
17
+ 'chainType': json['chainType'],
18
+ 'createdAt': (new Date(json['createdAt'])),
19
+ 'errorMessage': !runtime.exists(json, 'errorMessage') ? undefined : json['errorMessage'],
20
+ 'id': json['id'],
21
+ 'networkFeeUsd': !runtime.exists(json, 'networkFeeUsd') ? undefined : json['networkFeeUsd'],
22
+ 'serviceFeeUsd': !runtime.exists(json, 'serviceFeeUsd') ? undefined : json['serviceFeeUsd'],
23
+ 'sponsorAddress': !runtime.exists(json, 'sponsorAddress') ? undefined : json['sponsorAddress'],
24
+ 'status': json['status'],
25
+ 'transactionHash': !runtime.exists(json, 'transactionHash') ? undefined : json['transactionHash'],
26
+ 'userId': json['userId'],
27
+ 'walletAddress': json['walletAddress'],
28
+ };
29
+ }
30
+ function GaslessTransactionItemToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'chainId': value.chainId,
39
+ 'chainType': value.chainType,
40
+ 'createdAt': (value.createdAt.toISOString()),
41
+ 'errorMessage': value.errorMessage,
42
+ 'id': value.id,
43
+ 'networkFeeUsd': value.networkFeeUsd,
44
+ 'serviceFeeUsd': value.serviceFeeUsd,
45
+ 'sponsorAddress': value.sponsorAddress,
46
+ 'status': value.status,
47
+ 'transactionHash': value.transactionHash,
48
+ 'userId': value.userId,
49
+ 'walletAddress': value.walletAddress,
50
+ };
51
+ }
52
+
53
+ exports.GaslessTransactionItemFromJSON = GaslessTransactionItemFromJSON;
54
+ exports.GaslessTransactionItemFromJSONTyped = GaslessTransactionItemFromJSONTyped;
55
+ exports.GaslessTransactionItemToJSON = GaslessTransactionItemToJSON;
@@ -0,0 +1,93 @@
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 GaslessTransactionItem
16
+ */
17
+ export interface GaslessTransactionItem {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GaslessTransactionItem
22
+ */
23
+ chainId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GaslessTransactionItem
28
+ */
29
+ chainType: string;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof GaslessTransactionItem
34
+ */
35
+ createdAt: Date;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GaslessTransactionItem
40
+ */
41
+ errorMessage?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GaslessTransactionItem
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof GaslessTransactionItem
52
+ */
53
+ networkFeeUsd?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GaslessTransactionItem
58
+ */
59
+ serviceFeeUsd?: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof GaslessTransactionItem
64
+ */
65
+ sponsorAddress?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof GaslessTransactionItem
70
+ */
71
+ status: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof GaslessTransactionItem
76
+ */
77
+ transactionHash?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof GaslessTransactionItem
82
+ */
83
+ userId: string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof GaslessTransactionItem
88
+ */
89
+ walletAddress: string;
90
+ }
91
+ export declare function GaslessTransactionItemFromJSON(json: any): GaslessTransactionItem;
92
+ export declare function GaslessTransactionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaslessTransactionItem;
93
+ export declare function GaslessTransactionItemToJSON(value?: GaslessTransactionItem | null): any;
@@ -0,0 +1,49 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function GaslessTransactionItemFromJSON(json) {
5
+ return GaslessTransactionItemFromJSONTyped(json);
6
+ }
7
+ function GaslessTransactionItemFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'chainId': json['chainId'],
13
+ 'chainType': json['chainType'],
14
+ 'createdAt': (new Date(json['createdAt'])),
15
+ 'errorMessage': !exists(json, 'errorMessage') ? undefined : json['errorMessage'],
16
+ 'id': json['id'],
17
+ 'networkFeeUsd': !exists(json, 'networkFeeUsd') ? undefined : json['networkFeeUsd'],
18
+ 'serviceFeeUsd': !exists(json, 'serviceFeeUsd') ? undefined : json['serviceFeeUsd'],
19
+ 'sponsorAddress': !exists(json, 'sponsorAddress') ? undefined : json['sponsorAddress'],
20
+ 'status': json['status'],
21
+ 'transactionHash': !exists(json, 'transactionHash') ? undefined : json['transactionHash'],
22
+ 'userId': json['userId'],
23
+ 'walletAddress': json['walletAddress'],
24
+ };
25
+ }
26
+ function GaslessTransactionItemToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'chainId': value.chainId,
35
+ 'chainType': value.chainType,
36
+ 'createdAt': (value.createdAt.toISOString()),
37
+ 'errorMessage': value.errorMessage,
38
+ 'id': value.id,
39
+ 'networkFeeUsd': value.networkFeeUsd,
40
+ 'serviceFeeUsd': value.serviceFeeUsd,
41
+ 'sponsorAddress': value.sponsorAddress,
42
+ 'status': value.status,
43
+ 'transactionHash': value.transactionHash,
44
+ 'userId': value.userId,
45
+ 'walletAddress': value.walletAddress,
46
+ };
47
+ }
48
+
49
+ export { GaslessTransactionItemFromJSON, GaslessTransactionItemFromJSONTyped, GaslessTransactionItemToJSON };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var GaslessTransactionItem = require('./GaslessTransactionItem.cjs');
6
+
7
+ /* tslint:disable */
8
+ function GaslessTransactionsListResponseFromJSON(json) {
9
+ return GaslessTransactionsListResponseFromJSONTyped(json);
10
+ }
11
+ function GaslessTransactionsListResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'nextCursor': json['nextCursor'],
17
+ 'totalCount': json['totalCount'],
18
+ 'transactions': (json['transactions'].map(GaslessTransactionItem.GaslessTransactionItemFromJSON)),
19
+ };
20
+ }
21
+ function GaslessTransactionsListResponseToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'nextCursor': value.nextCursor,
30
+ 'totalCount': value.totalCount,
31
+ 'transactions': (value.transactions.map(GaslessTransactionItem.GaslessTransactionItemToJSON)),
32
+ };
33
+ }
34
+
35
+ exports.GaslessTransactionsListResponseFromJSON = GaslessTransactionsListResponseFromJSON;
36
+ exports.GaslessTransactionsListResponseFromJSONTyped = GaslessTransactionsListResponseFromJSONTyped;
37
+ exports.GaslessTransactionsListResponseToJSON = GaslessTransactionsListResponseToJSON;
@@ -0,0 +1,40 @@
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 { GaslessTransactionItem } from './GaslessTransactionItem';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GaslessTransactionsListResponse
17
+ */
18
+ export interface GaslessTransactionsListResponse {
19
+ /**
20
+ * Cursor for fetching the next page, null if no more pages
21
+ * @type {string}
22
+ * @memberof GaslessTransactionsListResponse
23
+ */
24
+ nextCursor: string | null;
25
+ /**
26
+ * Total number of transactions matching the filters
27
+ * @type {number}
28
+ * @memberof GaslessTransactionsListResponse
29
+ */
30
+ totalCount: number;
31
+ /**
32
+ *
33
+ * @type {Array<GaslessTransactionItem>}
34
+ * @memberof GaslessTransactionsListResponse
35
+ */
36
+ transactions: Array<GaslessTransactionItem>;
37
+ }
38
+ export declare function GaslessTransactionsListResponseFromJSON(json: any): GaslessTransactionsListResponse;
39
+ export declare function GaslessTransactionsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaslessTransactionsListResponse;
40
+ export declare function GaslessTransactionsListResponseToJSON(value?: GaslessTransactionsListResponse | null): any;
@@ -0,0 +1,31 @@
1
+ import { GaslessTransactionItemFromJSON, GaslessTransactionItemToJSON } from './GaslessTransactionItem.js';
2
+
3
+ /* tslint:disable */
4
+ function GaslessTransactionsListResponseFromJSON(json) {
5
+ return GaslessTransactionsListResponseFromJSONTyped(json);
6
+ }
7
+ function GaslessTransactionsListResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'nextCursor': json['nextCursor'],
13
+ 'totalCount': json['totalCount'],
14
+ 'transactions': (json['transactions'].map(GaslessTransactionItemFromJSON)),
15
+ };
16
+ }
17
+ function GaslessTransactionsListResponseToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'nextCursor': value.nextCursor,
26
+ 'totalCount': value.totalCount,
27
+ 'transactions': (value.transactions.map(GaslessTransactionItemToJSON)),
28
+ };
29
+ }
30
+
31
+ export { GaslessTransactionsListResponseFromJSON, GaslessTransactionsListResponseFromJSONTyped, GaslessTransactionsListResponseToJSON };
@@ -35,8 +35,11 @@ exports.SanctionsWalletBlockedEventPayloadOriginEnum = void 0;
35
35
  SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutDestination"] = "checkoutDestination";
36
36
  SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutSource"] = "checkoutSource";
37
37
  SanctionsWalletBlockedEventPayloadOriginEnum["FlowDestination"] = "flowDestination";
38
+ SanctionsWalletBlockedEventPayloadOriginEnum["FlowSource"] = "flowSource";
38
39
  SanctionsWalletBlockedEventPayloadOriginEnum["Api"] = "api";
39
40
  SanctionsWalletBlockedEventPayloadOriginEnum["BackgroundPrefetch"] = "backgroundPrefetch";
41
+ SanctionsWalletBlockedEventPayloadOriginEnum["TransactionSigning"] = "transactionSigning";
42
+ SanctionsWalletBlockedEventPayloadOriginEnum["TransactionScreenApi"] = "transactionScreenApi";
40
43
  })(exports.SanctionsWalletBlockedEventPayloadOriginEnum || (exports.SanctionsWalletBlockedEventPayloadOriginEnum = {})); /**
41
44
  * @export
42
45
  * @enum {string}
@@ -73,11 +73,16 @@ export interface SanctionsWalletBlockedEventPayload {
73
73
  * create/update or checkout transaction create).
74
74
  * `checkoutSource`: the from-address funding a checkout
75
75
  * transaction. `flowDestination`: flow create destination address.
76
- * `api`: direct wallet-sanctions API query. `backgroundPrefetch`:
77
- * background cache-warming check (see trigger semantics above).
78
- * This enum will grow as new screening surfaces are added (e.g.
79
- * decoded WaaS transaction destinations); consumers should handle
80
- * unrecognized values gracefully.
76
+ * `flowSource`: the from-address funding a flow. `api`: direct
77
+ * wallet-sanctions API query. `backgroundPrefetch`: background
78
+ * cache-warming check (see trigger semantics above).
79
+ * `transactionSigning`: a decoded transaction destination screened
80
+ * before the MPC signing ceremony for an embedded wallet
81
+ * (hard-enforced server-side). `transactionScreenApi`: a decoded
82
+ * transaction destination screened for a connected/external wallet
83
+ * via the public screen API (best-effort, client-side).
84
+ * This enum will grow as new screening surfaces are added;
85
+ * consumers should handle unrecognized values gracefully.
81
86
  * @type {string}
82
87
  * @memberof SanctionsWalletBlockedEventPayload
83
88
  */
@@ -115,8 +120,11 @@ export declare enum SanctionsWalletBlockedEventPayloadOriginEnum {
115
120
  CheckoutDestination = "checkoutDestination",
116
121
  CheckoutSource = "checkoutSource",
117
122
  FlowDestination = "flowDestination",
123
+ FlowSource = "flowSource",
118
124
  Api = "api",
119
- BackgroundPrefetch = "backgroundPrefetch"
125
+ BackgroundPrefetch = "backgroundPrefetch",
126
+ TransactionSigning = "transactionSigning",
127
+ TransactionScreenApi = "transactionScreenApi"
120
128
  } /**
121
129
  * @export
122
130
  * @enum {string}
@@ -31,8 +31,11 @@ var SanctionsWalletBlockedEventPayloadOriginEnum;
31
31
  SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutDestination"] = "checkoutDestination";
32
32
  SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutSource"] = "checkoutSource";
33
33
  SanctionsWalletBlockedEventPayloadOriginEnum["FlowDestination"] = "flowDestination";
34
+ SanctionsWalletBlockedEventPayloadOriginEnum["FlowSource"] = "flowSource";
34
35
  SanctionsWalletBlockedEventPayloadOriginEnum["Api"] = "api";
35
36
  SanctionsWalletBlockedEventPayloadOriginEnum["BackgroundPrefetch"] = "backgroundPrefetch";
37
+ SanctionsWalletBlockedEventPayloadOriginEnum["TransactionSigning"] = "transactionSigning";
38
+ SanctionsWalletBlockedEventPayloadOriginEnum["TransactionScreenApi"] = "transactionScreenApi";
36
39
  })(SanctionsWalletBlockedEventPayloadOriginEnum || (SanctionsWalletBlockedEventPayloadOriginEnum = {})); /**
37
40
  * @export
38
41
  * @enum {string}
@@ -304,6 +304,12 @@ export * from './Funding';
304
304
  export * from './FundingExternalWallets';
305
305
  export * from './FundingExternalWalletsDefaultSettings';
306
306
  export * from './FundingExternalWalletsMinAmount';
307
+ export * from './GaslessBillingChainBreakdown';
308
+ export * from './GaslessBillingPeriod';
309
+ export * from './GaslessBillingSummaryResponse';
310
+ export * from './GaslessBillingTotals';
311
+ export * from './GaslessTransactionItem';
312
+ export * from './GaslessTransactionsListResponse';
307
313
  export * from './Gate';
308
314
  export * from './GateCreateRequest';
309
315
  export * from './GateRule';