@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
@@ -0,0 +1,44 @@
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 ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
8
+ var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
9
+
10
+ /* tslint:disable */
11
+ function FlowAttachSourceRequestFromJSON(json) {
12
+ return FlowAttachSourceRequestFromJSONTyped(json);
13
+ }
14
+ function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'sourceType': FlowSourceTypeEnum.FlowSourceTypeEnumFromJSON(json['sourceType']),
20
+ 'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
21
+ 'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
22
+ 'fromChainName': !runtime.exists(json, 'fromChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['fromChainName']),
23
+ 'exchangeProvider': !runtime.exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchangeProvider']),
24
+ };
25
+ }
26
+ function FlowAttachSourceRequestToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'sourceType': FlowSourceTypeEnum.FlowSourceTypeEnumToJSON(value.sourceType),
35
+ 'fromAddress': value.fromAddress,
36
+ 'fromChainId': value.fromChainId,
37
+ 'fromChainName': ChainEnum.ChainEnumToJSON(value.fromChainName),
38
+ 'exchangeProvider': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchangeProvider),
39
+ };
40
+ }
41
+
42
+ exports.FlowAttachSourceRequestFromJSON = FlowAttachSourceRequestFromJSON;
43
+ exports.FlowAttachSourceRequestFromJSONTyped = FlowAttachSourceRequestFromJSONTyped;
44
+ exports.FlowAttachSourceRequestToJSON = FlowAttachSourceRequestToJSON;
@@ -0,0 +1,54 @@
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 { ExchangeKeyEnum } from './ExchangeKeyEnum';
14
+ import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
15
+ /**
16
+ * fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required so the bridge provider knows the source chain; fromAddress is optional (omit when the customer pays from a CEX with no connected wallet).
17
+ * @export
18
+ * @interface FlowAttachSourceRequest
19
+ */
20
+ export interface FlowAttachSourceRequest {
21
+ /**
22
+ *
23
+ * @type {FlowSourceTypeEnum}
24
+ * @memberof FlowAttachSourceRequest
25
+ */
26
+ sourceType: FlowSourceTypeEnum;
27
+ /**
28
+ * Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
29
+ * @type {string}
30
+ * @memberof FlowAttachSourceRequest
31
+ */
32
+ fromAddress?: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof FlowAttachSourceRequest
37
+ */
38
+ fromChainId?: string;
39
+ /**
40
+ *
41
+ * @type {ChainEnum}
42
+ * @memberof FlowAttachSourceRequest
43
+ */
44
+ fromChainName?: ChainEnum;
45
+ /**
46
+ *
47
+ * @type {ExchangeKeyEnum}
48
+ * @memberof FlowAttachSourceRequest
49
+ */
50
+ exchangeProvider?: ExchangeKeyEnum;
51
+ }
52
+ export declare function FlowAttachSourceRequestFromJSON(json: any): FlowAttachSourceRequest;
53
+ export declare function FlowAttachSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowAttachSourceRequest;
54
+ export declare function FlowAttachSourceRequestToJSON(value?: FlowAttachSourceRequest | null): any;
@@ -0,0 +1,38 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
+ import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
4
+ import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
5
+
6
+ /* tslint:disable */
7
+ function FlowAttachSourceRequestFromJSON(json) {
8
+ return FlowAttachSourceRequestFromJSONTyped(json);
9
+ }
10
+ function FlowAttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
11
+ if ((json === undefined) || (json === null)) {
12
+ return json;
13
+ }
14
+ return {
15
+ 'sourceType': FlowSourceTypeEnumFromJSON(json['sourceType']),
16
+ 'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
17
+ 'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
18
+ 'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
19
+ 'exchangeProvider': !exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnumFromJSON(json['exchangeProvider']),
20
+ };
21
+ }
22
+ function FlowAttachSourceRequestToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'sourceType': FlowSourceTypeEnumToJSON(value.sourceType),
31
+ 'fromAddress': value.fromAddress,
32
+ 'fromChainId': value.fromChainId,
33
+ 'fromChainName': ChainEnumToJSON(value.fromChainName),
34
+ 'exchangeProvider': ExchangeKeyEnumToJSON(value.exchangeProvider),
35
+ };
36
+ }
37
+
38
+ export { FlowAttachSourceRequestFromJSON, FlowAttachSourceRequestFromJSONTyped, FlowAttachSourceRequestToJSON };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var DestinationConfigInput = require('./DestinationConfigInput.cjs');
7
+ var SettlementConfigInput = require('./SettlementConfigInput.cjs');
8
+
9
+ /* tslint:disable */
10
+ function FlowCreateRequestFromJSON(json) {
11
+ return FlowCreateRequestFromJSONTyped(json);
12
+ }
13
+ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'amount': json['amount'],
19
+ 'currency': json['currency'],
20
+ 'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
21
+ 'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
22
+ 'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
23
+ 'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
24
+ };
25
+ }
26
+ function FlowCreateRequestToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'amount': value.amount,
35
+ 'currency': value.currency,
36
+ 'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
37
+ 'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
38
+ 'memo': value.memo,
39
+ 'expiresIn': value.expiresIn,
40
+ };
41
+ }
42
+
43
+ exports.FlowCreateRequestFromJSON = FlowCreateRequestFromJSON;
44
+ exports.FlowCreateRequestFromJSONTyped = FlowCreateRequestFromJSONTyped;
45
+ exports.FlowCreateRequestToJSON = FlowCreateRequestToJSON;
@@ -0,0 +1,59 @@
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 { DestinationConfigInput } from './DestinationConfigInput';
13
+ import { SettlementConfigInput } from './SettlementConfigInput';
14
+ /**
15
+ * Create-time payload for a flow. amount, currency, settlementConfig and destinationConfig are written once here (by a trusted API-key caller) and are accepted by no later endpoint. mode is supplied in the URL path.
16
+ * @export
17
+ * @interface FlowCreateRequest
18
+ */
19
+ export interface FlowCreateRequest {
20
+ /**
21
+ * Amount in the specified currency
22
+ * @type {string}
23
+ * @memberof FlowCreateRequest
24
+ */
25
+ amount: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof FlowCreateRequest
30
+ */
31
+ currency: string;
32
+ /**
33
+ *
34
+ * @type {SettlementConfigInput}
35
+ * @memberof FlowCreateRequest
36
+ */
37
+ settlementConfig: SettlementConfigInput;
38
+ /**
39
+ *
40
+ * @type {DestinationConfigInput}
41
+ * @memberof FlowCreateRequest
42
+ */
43
+ destinationConfig: DestinationConfigInput;
44
+ /**
45
+ * Arbitrary metadata attached to the flow
46
+ * @type {object}
47
+ * @memberof FlowCreateRequest
48
+ */
49
+ memo?: object;
50
+ /**
51
+ * Seconds until the flow expires (default 3600, clamped server-side)
52
+ * @type {number}
53
+ * @memberof FlowCreateRequest
54
+ */
55
+ expiresIn?: number;
56
+ }
57
+ export declare function FlowCreateRequestFromJSON(json: any): FlowCreateRequest;
58
+ export declare function FlowCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCreateRequest;
59
+ export declare function FlowCreateRequestToJSON(value?: FlowCreateRequest | null): any;
@@ -0,0 +1,39 @@
1
+ import { exists } from '../runtime.js';
2
+ import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
3
+ import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
4
+
5
+ /* tslint:disable */
6
+ function FlowCreateRequestFromJSON(json) {
7
+ return FlowCreateRequestFromJSONTyped(json);
8
+ }
9
+ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'amount': json['amount'],
15
+ 'currency': json['currency'],
16
+ 'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
17
+ 'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
18
+ 'memo': !exists(json, 'memo') ? undefined : json['memo'],
19
+ 'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
20
+ };
21
+ }
22
+ function FlowCreateRequestToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'amount': value.amount,
31
+ 'currency': value.currency,
32
+ 'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
33
+ 'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
34
+ 'memo': value.memo,
35
+ 'expiresIn': value.expiresIn,
36
+ };
37
+ }
38
+
39
+ export { FlowCreateRequestFromJSON, FlowCreateRequestFromJSONTyped, FlowCreateRequestToJSON };
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Flow = require('./Flow.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowCreateResponseFromJSON(json) {
9
+ return FlowCreateResponseFromJSONTyped(json);
10
+ }
11
+ function FlowCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'flow': Flow.FlowFromJSON(json['flow']),
17
+ };
18
+ }
19
+ function FlowCreateResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'flow': Flow.FlowToJSON(value.flow),
28
+ };
29
+ }
30
+
31
+ exports.FlowCreateResponseFromJSON = FlowCreateResponseFromJSON;
32
+ exports.FlowCreateResponseFromJSONTyped = FlowCreateResponseFromJSONTyped;
33
+ exports.FlowCreateResponseToJSON = FlowCreateResponseToJSON;
@@ -0,0 +1,28 @@
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 { Flow } from './Flow';
13
+ /**
14
+ * Response returned when a flow is created.
15
+ * @export
16
+ * @interface FlowCreateResponse
17
+ */
18
+ export interface FlowCreateResponse {
19
+ /**
20
+ *
21
+ * @type {Flow}
22
+ * @memberof FlowCreateResponse
23
+ */
24
+ flow: Flow;
25
+ }
26
+ export declare function FlowCreateResponseFromJSON(json: any): FlowCreateResponse;
27
+ export declare function FlowCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCreateResponse;
28
+ export declare function FlowCreateResponseToJSON(value?: FlowCreateResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { FlowFromJSON, FlowToJSON } from './Flow.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowCreateResponseFromJSON(json) {
5
+ return FlowCreateResponseFromJSONTyped(json);
6
+ }
7
+ function FlowCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'flow': FlowFromJSON(json['flow']),
13
+ };
14
+ }
15
+ function FlowCreateResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'flow': FlowToJSON(value.flow),
24
+ };
25
+ }
26
+
27
+ export { FlowCreateResponseFromJSON, FlowCreateResponseFromJSONTyped, FlowCreateResponseToJSON };
@@ -15,10 +15,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
15
15
  * https://openapi-generator.tech
16
16
  * Do not edit the class manually.
17
17
  */
18
- function CheckoutTransactionExchangeSourceFromJSON(json) {
19
- return CheckoutTransactionExchangeSourceFromJSONTyped(json);
18
+ function FlowExchangeSourceFromJSON(json) {
19
+ return FlowExchangeSourceFromJSONTyped(json);
20
20
  }
21
- function CheckoutTransactionExchangeSourceFromJSONTyped(json, ignoreDiscriminator) {
21
+ function FlowExchangeSourceFromJSONTyped(json, ignoreDiscriminator) {
22
22
  if ((json === undefined) || (json === null)) {
23
23
  return json;
24
24
  }
@@ -27,7 +27,7 @@ function CheckoutTransactionExchangeSourceFromJSONTyped(json, ignoreDiscriminato
27
27
  'metadata': json['metadata'],
28
28
  };
29
29
  }
30
- function CheckoutTransactionExchangeSourceToJSON(value) {
30
+ function FlowExchangeSourceToJSON(value) {
31
31
  if (value === undefined) {
32
32
  return undefined;
33
33
  }
@@ -40,6 +40,6 @@ function CheckoutTransactionExchangeSourceToJSON(value) {
40
40
  };
41
41
  }
42
42
 
43
- exports.CheckoutTransactionExchangeSourceFromJSON = CheckoutTransactionExchangeSourceFromJSON;
44
- exports.CheckoutTransactionExchangeSourceFromJSONTyped = CheckoutTransactionExchangeSourceFromJSONTyped;
45
- exports.CheckoutTransactionExchangeSourceToJSON = CheckoutTransactionExchangeSourceToJSON;
43
+ exports.FlowExchangeSourceFromJSON = FlowExchangeSourceFromJSON;
44
+ exports.FlowExchangeSourceFromJSONTyped = FlowExchangeSourceFromJSONTyped;
45
+ exports.FlowExchangeSourceToJSON = FlowExchangeSourceToJSON;
@@ -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
+ * Exchange source for a flow. Present when sourceType is 'exchange'. Contains the exchange reference and provider-specific metadata (e.g. buyUrl for Coinbase).
14
+ * @export
15
+ * @interface FlowExchangeSource
16
+ */
17
+ export interface FlowExchangeSource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FlowExchangeSource
22
+ */
23
+ exchangeId: string;
24
+ /**
25
+ * Provider-specific data. Shape varies by exchange.
26
+ * @type {object}
27
+ * @memberof FlowExchangeSource
28
+ */
29
+ metadata: object;
30
+ }
31
+ export declare function FlowExchangeSourceFromJSON(json: any): FlowExchangeSource;
32
+ export declare function FlowExchangeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowExchangeSource;
33
+ export declare function FlowExchangeSourceToJSON(value?: FlowExchangeSource | null): any;
@@ -11,10 +11,10 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- function CheckoutTransactionExchangeSourceFromJSON(json) {
15
- return CheckoutTransactionExchangeSourceFromJSONTyped(json);
14
+ function FlowExchangeSourceFromJSON(json) {
15
+ return FlowExchangeSourceFromJSONTyped(json);
16
16
  }
17
- function CheckoutTransactionExchangeSourceFromJSONTyped(json, ignoreDiscriminator) {
17
+ function FlowExchangeSourceFromJSONTyped(json, ignoreDiscriminator) {
18
18
  if ((json === undefined) || (json === null)) {
19
19
  return json;
20
20
  }
@@ -23,7 +23,7 @@ function CheckoutTransactionExchangeSourceFromJSONTyped(json, ignoreDiscriminato
23
23
  'metadata': json['metadata'],
24
24
  };
25
25
  }
26
- function CheckoutTransactionExchangeSourceToJSON(value) {
26
+ function FlowExchangeSourceToJSON(value) {
27
27
  if (value === undefined) {
28
28
  return undefined;
29
29
  }
@@ -36,4 +36,4 @@ function CheckoutTransactionExchangeSourceToJSON(value) {
36
36
  };
37
37
  }
38
38
 
39
- export { CheckoutTransactionExchangeSourceFromJSON, CheckoutTransactionExchangeSourceFromJSONTyped, CheckoutTransactionExchangeSourceToJSON };
39
+ export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchangeSourceToJSON };
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ /**
19
+ * Execution axis of a flow's state machine.
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.FlowExecutionStateEnum = void 0;
24
+ (function (FlowExecutionStateEnum) {
25
+ FlowExecutionStateEnum["Initiated"] = "initiated";
26
+ FlowExecutionStateEnum["SourceAttached"] = "source_attached";
27
+ FlowExecutionStateEnum["Quoted"] = "quoted";
28
+ FlowExecutionStateEnum["Signing"] = "signing";
29
+ FlowExecutionStateEnum["Broadcasted"] = "broadcasted";
30
+ FlowExecutionStateEnum["SourceConfirmed"] = "source_confirmed";
31
+ FlowExecutionStateEnum["Cancelled"] = "cancelled";
32
+ FlowExecutionStateEnum["Expired"] = "expired";
33
+ FlowExecutionStateEnum["Failed"] = "failed";
34
+ })(exports.FlowExecutionStateEnum || (exports.FlowExecutionStateEnum = {}));
35
+ function FlowExecutionStateEnumFromJSON(json) {
36
+ return FlowExecutionStateEnumFromJSONTyped(json);
37
+ }
38
+ function FlowExecutionStateEnumFromJSONTyped(json, ignoreDiscriminator) {
39
+ return json;
40
+ }
41
+ function FlowExecutionStateEnumToJSON(value) {
42
+ return value;
43
+ }
44
+
45
+ exports.FlowExecutionStateEnumFromJSON = FlowExecutionStateEnumFromJSON;
46
+ exports.FlowExecutionStateEnumFromJSONTyped = FlowExecutionStateEnumFromJSONTyped;
47
+ exports.FlowExecutionStateEnumToJSON = FlowExecutionStateEnumToJSON;
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Execution axis of a flow's state machine.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum CheckoutExecutionStateEnum {
17
+ export declare enum FlowExecutionStateEnum {
18
18
  Initiated = "initiated",
19
19
  SourceAttached = "source_attached",
20
20
  Quoted = "quoted",
@@ -25,6 +25,6 @@ export declare enum CheckoutExecutionStateEnum {
25
25
  Expired = "expired",
26
26
  Failed = "failed"
27
27
  }
28
- export declare function CheckoutExecutionStateEnumFromJSON(json: any): CheckoutExecutionStateEnum;
29
- export declare function CheckoutExecutionStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutExecutionStateEnum;
30
- export declare function CheckoutExecutionStateEnumToJSON(value?: CheckoutExecutionStateEnum | null): any;
28
+ export declare function FlowExecutionStateEnumFromJSON(json: any): FlowExecutionStateEnum;
29
+ export declare function FlowExecutionStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowExecutionStateEnum;
30
+ export declare function FlowExecutionStateEnumToJSON(value?: FlowExecutionStateEnum | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Execution axis of a flow's state machine.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var FlowExecutionStateEnum;
20
+ (function (FlowExecutionStateEnum) {
21
+ FlowExecutionStateEnum["Initiated"] = "initiated";
22
+ FlowExecutionStateEnum["SourceAttached"] = "source_attached";
23
+ FlowExecutionStateEnum["Quoted"] = "quoted";
24
+ FlowExecutionStateEnum["Signing"] = "signing";
25
+ FlowExecutionStateEnum["Broadcasted"] = "broadcasted";
26
+ FlowExecutionStateEnum["SourceConfirmed"] = "source_confirmed";
27
+ FlowExecutionStateEnum["Cancelled"] = "cancelled";
28
+ FlowExecutionStateEnum["Expired"] = "expired";
29
+ FlowExecutionStateEnum["Failed"] = "failed";
30
+ })(FlowExecutionStateEnum || (FlowExecutionStateEnum = {}));
31
+ function FlowExecutionStateEnumFromJSON(json) {
32
+ return FlowExecutionStateEnumFromJSONTyped(json);
33
+ }
34
+ function FlowExecutionStateEnumFromJSONTyped(json, ignoreDiscriminator) {
35
+ return json;
36
+ }
37
+ function FlowExecutionStateEnumToJSON(value) {
38
+ return value;
39
+ }
40
+
41
+ export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON };
@@ -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 CheckoutFailureFromJSON(json) {
9
- return CheckoutFailureFromJSONTyped(json);
8
+ function FlowFailureFromJSON(json) {
9
+ return FlowFailureFromJSONTyped(json);
10
10
  }
11
- function CheckoutFailureFromJSONTyped(json, ignoreDiscriminator) {
11
+ function FlowFailureFromJSONTyped(json, ignoreDiscriminator) {
12
12
  if ((json === undefined) || (json === null)) {
13
13
  return json;
14
14
  }
@@ -21,7 +21,7 @@ function CheckoutFailureFromJSONTyped(json, ignoreDiscriminator) {
21
21
  'details': !runtime.exists(json, 'details') ? undefined : json['details'],
22
22
  };
23
23
  }
24
- function CheckoutFailureToJSON(value) {
24
+ function FlowFailureToJSON(value) {
25
25
  if (value === undefined) {
26
26
  return undefined;
27
27
  }
@@ -38,6 +38,6 @@ function CheckoutFailureToJSON(value) {
38
38
  };
39
39
  }
40
40
 
41
- exports.CheckoutFailureFromJSON = CheckoutFailureFromJSON;
42
- exports.CheckoutFailureFromJSONTyped = CheckoutFailureFromJSONTyped;
43
- exports.CheckoutFailureToJSON = CheckoutFailureToJSON;
41
+ exports.FlowFailureFromJSON = FlowFailureFromJSON;
42
+ exports.FlowFailureFromJSONTyped = FlowFailureFromJSONTyped;
43
+ exports.FlowFailureToJSON = FlowFailureToJSON;