@dynamic-labs/sdk-api 0.0.1042 → 0.0.1044

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 (171) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +5 -4
  3. package/src/apis/AdminActionsApi.js +5 -4
  4. package/src/apis/AllowlistsApi.cjs +5 -4
  5. package/src/apis/AllowlistsApi.js +5 -4
  6. package/src/apis/AnalyticsApi.cjs +5 -4
  7. package/src/apis/AnalyticsApi.js +5 -4
  8. package/src/apis/AuthorizedClientsApi.cjs +5 -4
  9. package/src/apis/AuthorizedClientsApi.js +5 -4
  10. package/src/apis/ChainalysisApi.cjs +5 -4
  11. package/src/apis/ChainalysisApi.js +5 -4
  12. package/src/apis/ChainsApi.cjs +5 -4
  13. package/src/apis/ChainsApi.js +5 -4
  14. package/src/apis/CheckoutApi.cjs +6 -5
  15. package/src/apis/CheckoutApi.js +6 -5
  16. package/src/apis/ClientGrantApi.cjs +5 -4
  17. package/src/apis/ClientGrantApi.js +5 -4
  18. package/src/apis/CustomFieldsApi.cjs +5 -4
  19. package/src/apis/CustomFieldsApi.js +5 -4
  20. package/src/apis/CustomHostnamesApi.cjs +5 -4
  21. package/src/apis/CustomHostnamesApi.js +5 -4
  22. package/src/apis/CustomNetworksApi.cjs +5 -4
  23. package/src/apis/CustomNetworksApi.js +5 -4
  24. package/src/apis/DeeplinkUrlsApi.cjs +5 -4
  25. package/src/apis/DeeplinkUrlsApi.js +5 -4
  26. package/src/apis/EnvironmentsApi.cjs +5 -4
  27. package/src/apis/EnvironmentsApi.js +5 -4
  28. package/src/apis/EventsApi.cjs +5 -4
  29. package/src/apis/EventsApi.js +5 -4
  30. package/src/apis/ExchangesApi.cjs +5 -4
  31. package/src/apis/ExchangesApi.js +5 -4
  32. package/src/apis/ExportsApi.cjs +5 -4
  33. package/src/apis/ExportsApi.js +5 -4
  34. package/src/apis/ExternalJwtApi.cjs +5 -4
  35. package/src/apis/ExternalJwtApi.js +5 -4
  36. package/src/apis/GatesApi.cjs +5 -4
  37. package/src/apis/GatesApi.js +5 -4
  38. package/src/apis/GlobalWalletAccessControlApi.cjs +5 -4
  39. package/src/apis/GlobalWalletAccessControlApi.js +5 -4
  40. package/src/apis/GlobalWalletConnectionsApi.cjs +5 -4
  41. package/src/apis/GlobalWalletConnectionsApi.js +5 -4
  42. package/src/apis/GlobalWalletsApi.cjs +5 -4
  43. package/src/apis/GlobalWalletsApi.js +5 -4
  44. package/src/apis/InvitesApi.cjs +5 -4
  45. package/src/apis/InvitesApi.js +5 -4
  46. package/src/apis/MembersApi.cjs +5 -4
  47. package/src/apis/MembersApi.js +5 -4
  48. package/src/apis/MfaSettingsApi.cjs +5 -4
  49. package/src/apis/MfaSettingsApi.js +5 -4
  50. package/src/apis/NameServicesApi.cjs +5 -4
  51. package/src/apis/NameServicesApi.js +5 -4
  52. package/src/apis/OrganizationSettingsApi.cjs +5 -4
  53. package/src/apis/OrganizationSettingsApi.js +5 -4
  54. package/src/apis/OrganizationsApi.cjs +5 -4
  55. package/src/apis/OrganizationsApi.js +5 -4
  56. package/src/apis/OriginsApi.cjs +5 -4
  57. package/src/apis/OriginsApi.js +5 -4
  58. package/src/apis/ProjectsApi.cjs +5 -4
  59. package/src/apis/ProjectsApi.js +5 -4
  60. package/src/apis/ProvidersApi.cjs +5 -4
  61. package/src/apis/ProvidersApi.js +5 -4
  62. package/src/apis/SDKApi.cjs +225 -287
  63. package/src/apis/SDKApi.d.ts +112 -140
  64. package/src/apis/SDKApi.js +225 -287
  65. package/src/apis/SDKViewsApi.cjs +5 -4
  66. package/src/apis/SDKViewsApi.js +5 -4
  67. package/src/apis/SessionsApi.cjs +5 -4
  68. package/src/apis/SessionsApi.js +5 -4
  69. package/src/apis/TestAccountApi.cjs +5 -4
  70. package/src/apis/TestAccountApi.js +5 -4
  71. package/src/apis/TokensApi.cjs +5 -4
  72. package/src/apis/TokensApi.js +5 -4
  73. package/src/apis/UserApiTokensApi.cjs +5 -4
  74. package/src/apis/UserApiTokensApi.js +5 -4
  75. package/src/apis/UsersApi.cjs +5 -4
  76. package/src/apis/UsersApi.js +5 -4
  77. package/src/apis/VisitsApi.cjs +5 -4
  78. package/src/apis/VisitsApi.js +5 -4
  79. package/src/apis/WaasApi.cjs +5 -4
  80. package/src/apis/WaasApi.js +5 -4
  81. package/src/apis/WalletConnectApi.cjs +5 -4
  82. package/src/apis/WalletConnectApi.js +5 -4
  83. package/src/apis/WalletsApi.cjs +5 -4
  84. package/src/apis/WalletsApi.js +5 -4
  85. package/src/apis/WebhooksApi.cjs +5 -4
  86. package/src/apis/WebhooksApi.js +5 -4
  87. package/src/index.cjs +96 -68
  88. package/src/index.js +19 -13
  89. package/src/models/AttachSourceRequest.cjs +3 -3
  90. package/src/models/AttachSourceRequest.d.ts +3 -3
  91. package/src/models/AttachSourceRequest.js +3 -3
  92. package/src/models/CheckoutTransaction.cjs +24 -24
  93. package/src/models/CheckoutTransaction.d.ts +24 -24
  94. package/src/models/CheckoutTransaction.js +24 -24
  95. package/src/models/Flow.cjs +109 -0
  96. package/src/models/Flow.d.ts +231 -0
  97. package/src/models/Flow.js +103 -0
  98. package/src/models/FlowAttachSourceRequest.cjs +44 -0
  99. package/src/models/FlowAttachSourceRequest.d.ts +54 -0
  100. package/src/models/FlowAttachSourceRequest.js +38 -0
  101. package/src/models/FlowCreateRequest.cjs +45 -0
  102. package/src/models/FlowCreateRequest.d.ts +59 -0
  103. package/src/models/FlowCreateRequest.js +39 -0
  104. package/src/models/FlowCreateResponse.cjs +33 -0
  105. package/src/models/FlowCreateResponse.d.ts +28 -0
  106. package/src/models/FlowCreateResponse.js +27 -0
  107. package/src/models/{CheckoutTransactionExchangeSource.cjs → FlowExchangeSource.cjs} +7 -7
  108. package/src/models/FlowExchangeSource.d.ts +33 -0
  109. package/src/models/{CheckoutTransactionExchangeSource.js → FlowExchangeSource.js} +5 -5
  110. package/src/models/FlowExecutionStateEnum.cjs +47 -0
  111. package/src/models/{CheckoutExecutionStateEnum.d.ts → FlowExecutionStateEnum.d.ts} +5 -5
  112. package/src/models/FlowExecutionStateEnum.js +41 -0
  113. package/src/models/{CheckoutFailure.cjs → FlowFailure.cjs} +7 -7
  114. package/src/models/{CheckoutFailure.d.ts → FlowFailure.d.ts} +12 -12
  115. package/src/models/{CheckoutFailure.js → FlowFailure.js} +5 -5
  116. package/src/models/FlowFeeBreakdown.cjs +36 -0
  117. package/src/models/FlowFeeBreakdown.d.ts +34 -0
  118. package/src/models/FlowFeeBreakdown.js +30 -0
  119. package/src/models/{CheckoutGasEstimate.cjs → FlowGasEstimate.cjs} +7 -7
  120. package/src/models/{CheckoutGasEstimate.d.ts → FlowGasEstimate.d.ts} +9 -9
  121. package/src/models/{CheckoutGasEstimate.js → FlowGasEstimate.js} +5 -5
  122. package/src/models/FlowModeEnum.cjs +41 -0
  123. package/src/models/FlowModeEnum.d.ts +24 -0
  124. package/src/models/FlowModeEnum.js +35 -0
  125. package/src/models/{PrepareSigningRequest.cjs → FlowPrepareSigningRequest.cjs} +7 -7
  126. package/src/models/FlowPrepareSigningRequest.d.ts +33 -0
  127. package/src/models/{PrepareSigningRequest.js → FlowPrepareSigningRequest.js} +5 -5
  128. package/src/models/{CheckoutTransactionQuote.cjs → FlowQuote.cjs} +10 -10
  129. package/src/models/{CheckoutTransactionQuote.d.ts → FlowQuote.d.ts} +18 -18
  130. package/src/models/{CheckoutTransactionQuote.js → FlowQuote.js} +8 -8
  131. package/src/models/{QuoteRequest.cjs → FlowQuoteRequest.cjs} +7 -7
  132. package/src/models/FlowQuoteRequest.d.ts +39 -0
  133. package/src/models/{QuoteRequest.js → FlowQuoteRequest.js} +5 -5
  134. package/src/models/{RecordBroadcastRequest.cjs → FlowRecordBroadcastRequest.cjs} +7 -7
  135. package/src/models/FlowRecordBroadcastRequest.d.ts +27 -0
  136. package/src/models/{RecordBroadcastRequest.js → FlowRecordBroadcastRequest.js} +5 -5
  137. package/src/models/FlowRiskStateEnum.cjs +43 -0
  138. package/src/models/{CheckoutRiskStateEnum.d.ts → FlowRiskStateEnum.d.ts} +5 -5
  139. package/src/models/FlowRiskStateEnum.js +37 -0
  140. package/src/models/{CheckoutSettlementData.cjs → FlowSettlementData.cjs} +7 -7
  141. package/src/models/{CheckoutSettlementData.d.ts → FlowSettlementData.d.ts} +10 -10
  142. package/src/models/{CheckoutSettlementData.js → FlowSettlementData.js} +5 -5
  143. package/src/models/FlowSettlementStateEnum.cjs +45 -0
  144. package/src/models/{CheckoutSettlementStateEnum.d.ts → FlowSettlementStateEnum.d.ts} +5 -5
  145. package/src/models/FlowSettlementStateEnum.js +39 -0
  146. package/src/models/FlowSourceResponse.cjs +37 -0
  147. package/src/models/FlowSourceResponse.d.ts +40 -0
  148. package/src/models/FlowSourceResponse.js +31 -0
  149. package/src/models/FlowSourceTypeEnum.cjs +41 -0
  150. package/src/models/FlowSourceTypeEnum.d.ts +24 -0
  151. package/src/models/FlowSourceTypeEnum.js +35 -0
  152. package/src/models/TokenScopes.cjs +1 -0
  153. package/src/models/TokenScopes.d.ts +2 -1
  154. package/src/models/TokenScopes.js +1 -0
  155. package/src/models/index.d.ts +19 -13
  156. package/src/models/CheckoutExecutionStateEnum.cjs +0 -47
  157. package/src/models/CheckoutExecutionStateEnum.js +0 -41
  158. package/src/models/CheckoutFeeBreakdown.cjs +0 -36
  159. package/src/models/CheckoutFeeBreakdown.d.ts +0 -34
  160. package/src/models/CheckoutFeeBreakdown.js +0 -30
  161. package/src/models/CheckoutRiskStateEnum.cjs +0 -43
  162. package/src/models/CheckoutRiskStateEnum.js +0 -37
  163. package/src/models/CheckoutSettlementStateEnum.cjs +0 -45
  164. package/src/models/CheckoutSettlementStateEnum.js +0 -39
  165. package/src/models/CheckoutSourceTypeEnum.cjs +0 -41
  166. package/src/models/CheckoutSourceTypeEnum.d.ts +0 -24
  167. package/src/models/CheckoutSourceTypeEnum.js +0 -35
  168. package/src/models/CheckoutTransactionExchangeSource.d.ts +0 -33
  169. package/src/models/PrepareSigningRequest.d.ts +0 -33
  170. package/src/models/QuoteRequest.d.ts +0 -40
  171. package/src/models/RecordBroadcastRequest.d.ts +0 -27
@@ -10,48 +10,48 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Structured failure detail recorded on a flow when an operation fails.
14
14
  * @export
15
- * @interface CheckoutFailure
15
+ * @interface FlowFailure
16
16
  */
17
- export interface CheckoutFailure {
17
+ export interface FlowFailure {
18
18
  /**
19
19
  *
20
20
  * @type {string}
21
- * @memberof CheckoutFailure
21
+ * @memberof FlowFailure
22
22
  */
23
23
  code: string;
24
24
  /**
25
25
  * Human-readable error message describing the failure
26
26
  * @type {string}
27
- * @memberof CheckoutFailure
27
+ * @memberof FlowFailure
28
28
  */
29
29
  message: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
- * @memberof CheckoutFailure
33
+ * @memberof FlowFailure
34
34
  */
35
35
  category: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof CheckoutFailure
39
+ * @memberof FlowFailure
40
40
  */
41
41
  stage: string;
42
42
  /**
43
43
  * Whether the failed operation can be retried
44
44
  * @type {boolean}
45
- * @memberof CheckoutFailure
45
+ * @memberof FlowFailure
46
46
  */
47
47
  retryable: boolean;
48
48
  /**
49
49
  * Additional structured details about the failure
50
50
  * @type {object}
51
- * @memberof CheckoutFailure
51
+ * @memberof FlowFailure
52
52
  */
53
53
  details?: object;
54
54
  }
55
- export declare function CheckoutFailureFromJSON(json: any): CheckoutFailure;
56
- export declare function CheckoutFailureFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutFailure;
57
- export declare function CheckoutFailureToJSON(value?: CheckoutFailure | null): any;
55
+ export declare function FlowFailureFromJSON(json: any): FlowFailure;
56
+ export declare function FlowFailureFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFailure;
57
+ export declare function FlowFailureToJSON(value?: FlowFailure | null): any;
@@ -1,10 +1,10 @@
1
1
  import { exists } from '../runtime.js';
2
2
 
3
3
  /* tslint:disable */
4
- function CheckoutFailureFromJSON(json) {
5
- return CheckoutFailureFromJSONTyped(json);
4
+ function FlowFailureFromJSON(json) {
5
+ return FlowFailureFromJSONTyped(json);
6
6
  }
7
- function CheckoutFailureFromJSONTyped(json, ignoreDiscriminator) {
7
+ function FlowFailureFromJSONTyped(json, ignoreDiscriminator) {
8
8
  if ((json === undefined) || (json === null)) {
9
9
  return json;
10
10
  }
@@ -17,7 +17,7 @@ function CheckoutFailureFromJSONTyped(json, ignoreDiscriminator) {
17
17
  'details': !exists(json, 'details') ? undefined : json['details'],
18
18
  };
19
19
  }
20
- function CheckoutFailureToJSON(value) {
20
+ function FlowFailureToJSON(value) {
21
21
  if (value === undefined) {
22
22
  return undefined;
23
23
  }
@@ -34,4 +34,4 @@ function CheckoutFailureToJSON(value) {
34
34
  };
35
35
  }
36
36
 
37
- export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON };
37
+ export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var FlowGasEstimate = require('./FlowGasEstimate.cjs');
7
+
8
+ /* tslint:disable */
9
+ function FlowFeeBreakdownFromJSON(json) {
10
+ return FlowFeeBreakdownFromJSONTyped(json);
11
+ }
12
+ function FlowFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'totalFeeUsd': !runtime.exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
18
+ 'gasEstimate': !runtime.exists(json, 'gasEstimate') ? undefined : FlowGasEstimate.FlowGasEstimateFromJSON(json['gasEstimate']),
19
+ };
20
+ }
21
+ function FlowFeeBreakdownToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'totalFeeUsd': value.totalFeeUsd,
30
+ 'gasEstimate': FlowGasEstimate.FlowGasEstimateToJSON(value.gasEstimate),
31
+ };
32
+ }
33
+
34
+ exports.FlowFeeBreakdownFromJSON = FlowFeeBreakdownFromJSON;
35
+ exports.FlowFeeBreakdownFromJSONTyped = FlowFeeBreakdownFromJSONTyped;
36
+ exports.FlowFeeBreakdownToJSON = FlowFeeBreakdownToJSON;
@@ -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 { FlowGasEstimate } from './FlowGasEstimate';
13
+ /**
14
+ * Fee breakdown for a flow's quote.
15
+ * @export
16
+ * @interface FlowFeeBreakdown
17
+ */
18
+ export interface FlowFeeBreakdown {
19
+ /**
20
+ * Total fees for the flow in USD
21
+ * @type {string}
22
+ * @memberof FlowFeeBreakdown
23
+ */
24
+ totalFeeUsd?: string;
25
+ /**
26
+ *
27
+ * @type {FlowGasEstimate}
28
+ * @memberof FlowFeeBreakdown
29
+ */
30
+ gasEstimate?: FlowGasEstimate;
31
+ }
32
+ export declare function FlowFeeBreakdownFromJSON(json: any): FlowFeeBreakdown;
33
+ export declare function FlowFeeBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeBreakdown;
34
+ export declare function FlowFeeBreakdownToJSON(value?: FlowFeeBreakdown | null): any;
@@ -0,0 +1,30 @@
1
+ import { exists } from '../runtime.js';
2
+ import { FlowGasEstimateFromJSON, FlowGasEstimateToJSON } from './FlowGasEstimate.js';
3
+
4
+ /* tslint:disable */
5
+ function FlowFeeBreakdownFromJSON(json) {
6
+ return FlowFeeBreakdownFromJSONTyped(json);
7
+ }
8
+ function FlowFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'totalFeeUsd': !exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
14
+ 'gasEstimate': !exists(json, 'gasEstimate') ? undefined : FlowGasEstimateFromJSON(json['gasEstimate']),
15
+ };
16
+ }
17
+ function FlowFeeBreakdownToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'totalFeeUsd': value.totalFeeUsd,
26
+ 'gasEstimate': FlowGasEstimateToJSON(value.gasEstimate),
27
+ };
28
+ }
29
+
30
+ export { FlowFeeBreakdownFromJSON, FlowFeeBreakdownFromJSONTyped, FlowFeeBreakdownToJSON };
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
 
7
7
  /* tslint:disable */
8
- function CheckoutGasEstimateFromJSON(json) {
9
- return CheckoutGasEstimateFromJSONTyped(json);
8
+ function FlowGasEstimateFromJSON(json) {
9
+ return FlowGasEstimateFromJSONTyped(json);
10
10
  }
11
- function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
11
+ function FlowGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
12
12
  if ((json === undefined) || (json === null)) {
13
13
  return json;
14
14
  }
@@ -18,7 +18,7 @@ function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
18
18
  'nativeSymbol': !runtime.exists(json, 'nativeSymbol') ? undefined : json['nativeSymbol'],
19
19
  };
20
20
  }
21
- function CheckoutGasEstimateToJSON(value) {
21
+ function FlowGasEstimateToJSON(value) {
22
22
  if (value === undefined) {
23
23
  return undefined;
24
24
  }
@@ -32,6 +32,6 @@ function CheckoutGasEstimateToJSON(value) {
32
32
  };
33
33
  }
34
34
 
35
- exports.CheckoutGasEstimateFromJSON = CheckoutGasEstimateFromJSON;
36
- exports.CheckoutGasEstimateFromJSONTyped = CheckoutGasEstimateFromJSONTyped;
37
- exports.CheckoutGasEstimateToJSON = CheckoutGasEstimateToJSON;
35
+ exports.FlowGasEstimateFromJSON = FlowGasEstimateFromJSON;
36
+ exports.FlowGasEstimateFromJSONTyped = FlowGasEstimateFromJSONTyped;
37
+ exports.FlowGasEstimateToJSON = FlowGasEstimateToJSON;
@@ -10,30 +10,30 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Estimated gas cost for executing a flow's source transaction.
14
14
  * @export
15
- * @interface CheckoutGasEstimate
15
+ * @interface FlowGasEstimate
16
16
  */
17
- export interface CheckoutGasEstimate {
17
+ export interface FlowGasEstimate {
18
18
  /**
19
19
  * Estimated gas cost in USD
20
20
  * @type {string}
21
- * @memberof CheckoutGasEstimate
21
+ * @memberof FlowGasEstimate
22
22
  */
23
23
  usdValue?: string;
24
24
  /**
25
25
  * Estimated gas cost in the source chain's native token
26
26
  * @type {string}
27
- * @memberof CheckoutGasEstimate
27
+ * @memberof FlowGasEstimate
28
28
  */
29
29
  nativeValue?: string;
30
30
  /**
31
31
  * Symbol of the native token (e.g. "ETH", "SOL")
32
32
  * @type {string}
33
- * @memberof CheckoutGasEstimate
33
+ * @memberof FlowGasEstimate
34
34
  */
35
35
  nativeSymbol?: string;
36
36
  }
37
- export declare function CheckoutGasEstimateFromJSON(json: any): CheckoutGasEstimate;
38
- export declare function CheckoutGasEstimateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutGasEstimate;
39
- export declare function CheckoutGasEstimateToJSON(value?: CheckoutGasEstimate | null): any;
37
+ export declare function FlowGasEstimateFromJSON(json: any): FlowGasEstimate;
38
+ export declare function FlowGasEstimateFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowGasEstimate;
39
+ export declare function FlowGasEstimateToJSON(value?: FlowGasEstimate | null): any;
@@ -1,10 +1,10 @@
1
1
  import { exists } from '../runtime.js';
2
2
 
3
3
  /* tslint:disable */
4
- function CheckoutGasEstimateFromJSON(json) {
5
- return CheckoutGasEstimateFromJSONTyped(json);
4
+ function FlowGasEstimateFromJSON(json) {
5
+ return FlowGasEstimateFromJSONTyped(json);
6
6
  }
7
- function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
7
+ function FlowGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
8
8
  if ((json === undefined) || (json === null)) {
9
9
  return json;
10
10
  }
@@ -14,7 +14,7 @@ function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
14
14
  'nativeSymbol': !exists(json, 'nativeSymbol') ? undefined : json['nativeSymbol'],
15
15
  };
16
16
  }
17
- function CheckoutGasEstimateToJSON(value) {
17
+ function FlowGasEstimateToJSON(value) {
18
18
  if (value === undefined) {
19
19
  return undefined;
20
20
  }
@@ -28,4 +28,4 @@ function CheckoutGasEstimateToJSON(value) {
28
28
  };
29
29
  }
30
30
 
31
- export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON };
31
+ export { FlowGasEstimateFromJSON, FlowGasEstimateFromJSONTyped, FlowGasEstimateToJSON };
@@ -0,0 +1,41 @@
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
+ /**
19
+ * The lifecycle a flow follows — payment, deposit, or withdraw.
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.FlowModeEnum = void 0;
24
+ (function (FlowModeEnum) {
25
+ FlowModeEnum["Payment"] = "payment";
26
+ FlowModeEnum["Deposit"] = "deposit";
27
+ FlowModeEnum["Withdraw"] = "withdraw";
28
+ })(exports.FlowModeEnum || (exports.FlowModeEnum = {}));
29
+ function FlowModeEnumFromJSON(json) {
30
+ return FlowModeEnumFromJSONTyped(json);
31
+ }
32
+ function FlowModeEnumFromJSONTyped(json, ignoreDiscriminator) {
33
+ return json;
34
+ }
35
+ function FlowModeEnumToJSON(value) {
36
+ return value;
37
+ }
38
+
39
+ exports.FlowModeEnumFromJSON = FlowModeEnumFromJSON;
40
+ exports.FlowModeEnumFromJSONTyped = FlowModeEnumFromJSONTyped;
41
+ exports.FlowModeEnumToJSON = FlowModeEnumToJSON;
@@ -0,0 +1,24 @@
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
+ * The lifecycle a flow follows — payment, deposit, or withdraw.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum FlowModeEnum {
18
+ Payment = "payment",
19
+ Deposit = "deposit",
20
+ Withdraw = "withdraw"
21
+ }
22
+ export declare function FlowModeEnumFromJSON(json: any): FlowModeEnum;
23
+ export declare function FlowModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowModeEnum;
24
+ export declare function FlowModeEnumToJSON(value?: FlowModeEnum | null): any;
@@ -0,0 +1,35 @@
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
+ /**
15
+ * The lifecycle a flow follows — payment, deposit, or withdraw.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var FlowModeEnum;
20
+ (function (FlowModeEnum) {
21
+ FlowModeEnum["Payment"] = "payment";
22
+ FlowModeEnum["Deposit"] = "deposit";
23
+ FlowModeEnum["Withdraw"] = "withdraw";
24
+ })(FlowModeEnum || (FlowModeEnum = {}));
25
+ function FlowModeEnumFromJSON(json) {
26
+ return FlowModeEnumFromJSONTyped(json);
27
+ }
28
+ function FlowModeEnumFromJSONTyped(json, ignoreDiscriminator) {
29
+ return json;
30
+ }
31
+ function FlowModeEnumToJSON(value) {
32
+ return value;
33
+ }
34
+
35
+ export { FlowModeEnum, FlowModeEnumFromJSON, FlowModeEnumFromJSONTyped, FlowModeEnumToJSON };
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
 
7
7
  /* tslint:disable */
8
- function PrepareSigningRequestFromJSON(json) {
9
- return PrepareSigningRequestFromJSONTyped(json);
8
+ function FlowPrepareSigningRequestFromJSON(json) {
9
+ return FlowPrepareSigningRequestFromJSONTyped(json);
10
10
  }
11
- function PrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
11
+ function FlowPrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
12
12
  if ((json === undefined) || (json === null)) {
13
13
  return json;
14
14
  }
@@ -17,7 +17,7 @@ function PrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
17
17
  'assertBalanceForTransferAmount': !runtime.exists(json, 'assertBalanceForTransferAmount') ? undefined : json['assertBalanceForTransferAmount'],
18
18
  };
19
19
  }
20
- function PrepareSigningRequestToJSON(value) {
20
+ function FlowPrepareSigningRequestToJSON(value) {
21
21
  if (value === undefined) {
22
22
  return undefined;
23
23
  }
@@ -30,6 +30,6 @@ function PrepareSigningRequestToJSON(value) {
30
30
  };
31
31
  }
32
32
 
33
- exports.PrepareSigningRequestFromJSON = PrepareSigningRequestFromJSON;
34
- exports.PrepareSigningRequestFromJSONTyped = PrepareSigningRequestFromJSONTyped;
35
- exports.PrepareSigningRequestToJSON = PrepareSigningRequestToJSON;
33
+ exports.FlowPrepareSigningRequestFromJSON = FlowPrepareSigningRequestFromJSON;
34
+ exports.FlowPrepareSigningRequestFromJSONTyped = FlowPrepareSigningRequestFromJSONTyped;
35
+ exports.FlowPrepareSigningRequestToJSON = FlowPrepareSigningRequestToJSON;
@@ -0,0 +1,33 @@
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
+ * Request body for preparing a flow for signing.
14
+ * @export
15
+ * @interface FlowPrepareSigningRequest
16
+ */
17
+ export interface FlowPrepareSigningRequest {
18
+ /**
19
+ * Whether to assert that the wallet has enough balance to pay for the gas cost. If true, the request fails when the wallet lacks gas balance.
20
+ * @type {boolean}
21
+ * @memberof FlowPrepareSigningRequest
22
+ */
23
+ assertBalanceForGasCost?: boolean;
24
+ /**
25
+ * Whether to assert that the wallet has enough balance to pay for the transfer amount (not including gas cost).
26
+ * @type {boolean}
27
+ * @memberof FlowPrepareSigningRequest
28
+ */
29
+ assertBalanceForTransferAmount?: boolean;
30
+ }
31
+ export declare function FlowPrepareSigningRequestFromJSON(json: any): FlowPrepareSigningRequest;
32
+ export declare function FlowPrepareSigningRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowPrepareSigningRequest;
33
+ export declare function FlowPrepareSigningRequestToJSON(value?: FlowPrepareSigningRequest | null): any;
@@ -1,10 +1,10 @@
1
1
  import { exists } from '../runtime.js';
2
2
 
3
3
  /* tslint:disable */
4
- function PrepareSigningRequestFromJSON(json) {
5
- return PrepareSigningRequestFromJSONTyped(json);
4
+ function FlowPrepareSigningRequestFromJSON(json) {
5
+ return FlowPrepareSigningRequestFromJSONTyped(json);
6
6
  }
7
- function PrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
7
+ function FlowPrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
8
8
  if ((json === undefined) || (json === null)) {
9
9
  return json;
10
10
  }
@@ -13,7 +13,7 @@ function PrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
13
13
  'assertBalanceForTransferAmount': !exists(json, 'assertBalanceForTransferAmount') ? undefined : json['assertBalanceForTransferAmount'],
14
14
  };
15
15
  }
16
- function PrepareSigningRequestToJSON(value) {
16
+ function FlowPrepareSigningRequestToJSON(value) {
17
17
  if (value === undefined) {
18
18
  return undefined;
19
19
  }
@@ -26,4 +26,4 @@ function PrepareSigningRequestToJSON(value) {
26
26
  };
27
27
  }
28
28
 
29
- export { PrepareSigningRequestFromJSON, PrepareSigningRequestFromJSONTyped, PrepareSigningRequestToJSON };
29
+ export { FlowPrepareSigningRequestFromJSON, FlowPrepareSigningRequestFromJSONTyped, FlowPrepareSigningRequestToJSON };
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
- var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
6
+ var FlowFeeBreakdown = require('./FlowFeeBreakdown.cjs');
7
7
  var SwapSigningPayload = require('./SwapSigningPayload.cjs');
8
8
 
9
9
  /* tslint:disable */
10
- function CheckoutTransactionQuoteFromJSON(json) {
11
- return CheckoutTransactionQuoteFromJSONTyped(json);
10
+ function FlowQuoteFromJSON(json) {
11
+ return FlowQuoteFromJSONTyped(json);
12
12
  }
13
- function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
13
+ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
14
14
  if ((json === undefined) || (json === null)) {
15
15
  return json;
16
16
  }
@@ -18,7 +18,7 @@ function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
18
18
  'version': json['version'],
19
19
  'fromAmount': json['fromAmount'],
20
20
  'toAmount': json['toAmount'],
21
- 'fees': !runtime.exists(json, 'fees') ? undefined : CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
21
+ 'fees': !runtime.exists(json, 'fees') ? undefined : FlowFeeBreakdown.FlowFeeBreakdownFromJSON(json['fees']),
22
22
  'estimatedTimeSec': !runtime.exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
23
23
  'rawQuote': !runtime.exists(json, 'rawQuote') ? undefined : json['rawQuote'],
24
24
  'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
@@ -26,7 +26,7 @@ function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
26
26
  'expiresAt': (new Date(json['expiresAt'])),
27
27
  };
28
28
  }
29
- function CheckoutTransactionQuoteToJSON(value) {
29
+ function FlowQuoteToJSON(value) {
30
30
  if (value === undefined) {
31
31
  return undefined;
32
32
  }
@@ -37,7 +37,7 @@ function CheckoutTransactionQuoteToJSON(value) {
37
37
  'version': value.version,
38
38
  'fromAmount': value.fromAmount,
39
39
  'toAmount': value.toAmount,
40
- 'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
40
+ 'fees': FlowFeeBreakdown.FlowFeeBreakdownToJSON(value.fees),
41
41
  'estimatedTimeSec': value.estimatedTimeSec,
42
42
  'rawQuote': value.rawQuote,
43
43
  'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
@@ -46,6 +46,6 @@ function CheckoutTransactionQuoteToJSON(value) {
46
46
  };
47
47
  }
48
48
 
49
- exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuoteFromJSON;
50
- exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuoteFromJSONTyped;
51
- exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuoteToJSON;
49
+ exports.FlowQuoteFromJSON = FlowQuoteFromJSON;
50
+ exports.FlowQuoteFromJSONTyped = FlowQuoteFromJSONTyped;
51
+ exports.FlowQuoteToJSON = FlowQuoteToJSON;
@@ -9,69 +9,69 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
12
+ import { FlowFeeBreakdown } from './FlowFeeBreakdown';
13
13
  import { SwapSigningPayload } from './SwapSigningPayload';
14
14
  /**
15
- *
15
+ * A versioned quote snapshot stored on a flow.
16
16
  * @export
17
- * @interface CheckoutTransactionQuote
17
+ * @interface FlowQuote
18
18
  */
19
- export interface CheckoutTransactionQuote {
19
+ export interface FlowQuote {
20
20
  /**
21
21
  * Monotonically increasing version number for this quote
22
22
  * @type {number}
23
- * @memberof CheckoutTransactionQuote
23
+ * @memberof FlowQuote
24
24
  */
25
25
  version: number;
26
26
  /**
27
27
  * Amount being sent in the source token
28
28
  * @type {string}
29
- * @memberof CheckoutTransactionQuote
29
+ * @memberof FlowQuote
30
30
  */
31
31
  fromAmount: string;
32
32
  /**
33
33
  * Amount to be received in the destination token
34
34
  * @type {string}
35
- * @memberof CheckoutTransactionQuote
35
+ * @memberof FlowQuote
36
36
  */
37
37
  toAmount: string;
38
38
  /**
39
39
  *
40
- * @type {CheckoutFeeBreakdown}
41
- * @memberof CheckoutTransactionQuote
40
+ * @type {FlowFeeBreakdown}
41
+ * @memberof FlowQuote
42
42
  */
43
- fees?: CheckoutFeeBreakdown;
43
+ fees?: FlowFeeBreakdown;
44
44
  /**
45
45
  * Estimated time in seconds for the swap to complete
46
46
  * @type {number}
47
- * @memberof CheckoutTransactionQuote
47
+ * @memberof FlowQuote
48
48
  */
49
49
  estimatedTimeSec?: number;
50
50
  /**
51
51
  * Raw quote result data from the swap provider
52
52
  * @type {object}
53
- * @memberof CheckoutTransactionQuote
53
+ * @memberof FlowQuote
54
54
  */
55
55
  rawQuote?: object;
56
56
  /**
57
57
  *
58
58
  * @type {SwapSigningPayload}
59
- * @memberof CheckoutTransactionQuote
59
+ * @memberof FlowQuote
60
60
  */
61
61
  signingPayload?: SwapSigningPayload;
62
62
  /**
63
63
  * ISO 8601 timestamp of when the quote was created
64
64
  * @type {Date}
65
- * @memberof CheckoutTransactionQuote
65
+ * @memberof FlowQuote
66
66
  */
67
67
  createdAt: Date;
68
68
  /**
69
69
  * ISO 8601 timestamp of when the quote expires
70
70
  * @type {Date}
71
- * @memberof CheckoutTransactionQuote
71
+ * @memberof FlowQuote
72
72
  */
73
73
  expiresAt: Date;
74
74
  }
75
- export declare function CheckoutTransactionQuoteFromJSON(json: any): CheckoutTransactionQuote;
76
- export declare function CheckoutTransactionQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionQuote;
77
- export declare function CheckoutTransactionQuoteToJSON(value?: CheckoutTransactionQuote | null): any;
75
+ export declare function FlowQuoteFromJSON(json: any): FlowQuote;
76
+ export declare function FlowQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowQuote;
77
+ export declare function FlowQuoteToJSON(value?: FlowQuote | null): any;