@dynamic-labs/sdk-api 0.0.1041 → 0.0.1043
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.
- package/package.json +1 -1
- package/src/apis/AdminActionsApi.cjs +5 -4
- package/src/apis/AdminActionsApi.js +5 -4
- package/src/apis/AllowlistsApi.cjs +5 -4
- package/src/apis/AllowlistsApi.js +5 -4
- package/src/apis/AnalyticsApi.cjs +5 -4
- package/src/apis/AnalyticsApi.js +5 -4
- package/src/apis/AuthorizedClientsApi.cjs +5 -4
- package/src/apis/AuthorizedClientsApi.js +5 -4
- package/src/apis/ChainalysisApi.cjs +5 -4
- package/src/apis/ChainalysisApi.js +5 -4
- package/src/apis/ChainsApi.cjs +5 -4
- package/src/apis/ChainsApi.js +5 -4
- package/src/apis/CheckoutApi.cjs +6 -5
- package/src/apis/CheckoutApi.js +6 -5
- package/src/apis/ClientGrantApi.cjs +5 -4
- package/src/apis/ClientGrantApi.js +5 -4
- package/src/apis/CustomFieldsApi.cjs +5 -4
- package/src/apis/CustomFieldsApi.js +5 -4
- package/src/apis/CustomHostnamesApi.cjs +5 -4
- package/src/apis/CustomHostnamesApi.js +5 -4
- package/src/apis/CustomNetworksApi.cjs +5 -4
- package/src/apis/CustomNetworksApi.js +5 -4
- package/src/apis/DeeplinkUrlsApi.cjs +5 -4
- package/src/apis/DeeplinkUrlsApi.js +5 -4
- package/src/apis/EnvironmentsApi.cjs +5 -4
- package/src/apis/EnvironmentsApi.js +5 -4
- package/src/apis/EventsApi.cjs +5 -4
- package/src/apis/EventsApi.js +5 -4
- package/src/apis/ExchangesApi.cjs +5 -4
- package/src/apis/ExchangesApi.js +5 -4
- package/src/apis/ExportsApi.cjs +5 -4
- package/src/apis/ExportsApi.js +5 -4
- package/src/apis/ExternalJwtApi.cjs +5 -4
- package/src/apis/ExternalJwtApi.js +5 -4
- package/src/apis/GatesApi.cjs +5 -4
- package/src/apis/GatesApi.js +5 -4
- package/src/apis/GlobalWalletAccessControlApi.cjs +5 -4
- package/src/apis/GlobalWalletAccessControlApi.js +5 -4
- package/src/apis/GlobalWalletConnectionsApi.cjs +5 -4
- package/src/apis/GlobalWalletConnectionsApi.js +5 -4
- package/src/apis/GlobalWalletsApi.cjs +5 -4
- package/src/apis/GlobalWalletsApi.js +5 -4
- package/src/apis/InvitesApi.cjs +5 -4
- package/src/apis/InvitesApi.js +5 -4
- package/src/apis/MembersApi.cjs +5 -4
- package/src/apis/MembersApi.js +5 -4
- package/src/apis/MfaSettingsApi.cjs +5 -4
- package/src/apis/MfaSettingsApi.js +5 -4
- package/src/apis/NameServicesApi.cjs +5 -4
- package/src/apis/NameServicesApi.js +5 -4
- package/src/apis/OrganizationSettingsApi.cjs +5 -4
- package/src/apis/OrganizationSettingsApi.js +5 -4
- package/src/apis/OrganizationsApi.cjs +5 -4
- package/src/apis/OrganizationsApi.js +5 -4
- package/src/apis/OriginsApi.cjs +5 -4
- package/src/apis/OriginsApi.js +5 -4
- package/src/apis/ProjectsApi.cjs +5 -4
- package/src/apis/ProjectsApi.js +5 -4
- package/src/apis/ProvidersApi.cjs +5 -4
- package/src/apis/ProvidersApi.js +5 -4
- package/src/apis/SDKApi.cjs +225 -287
- package/src/apis/SDKApi.d.ts +112 -140
- package/src/apis/SDKApi.js +225 -287
- package/src/apis/SDKViewsApi.cjs +5 -4
- package/src/apis/SDKViewsApi.js +5 -4
- package/src/apis/SessionsApi.cjs +5 -4
- package/src/apis/SessionsApi.js +5 -4
- package/src/apis/TestAccountApi.cjs +5 -4
- package/src/apis/TestAccountApi.js +5 -4
- package/src/apis/TokensApi.cjs +5 -4
- package/src/apis/TokensApi.js +5 -4
- package/src/apis/UserApiTokensApi.cjs +5 -4
- package/src/apis/UserApiTokensApi.js +5 -4
- package/src/apis/UsersApi.cjs +5 -4
- package/src/apis/UsersApi.js +5 -4
- package/src/apis/VisitsApi.cjs +5 -4
- package/src/apis/VisitsApi.js +5 -4
- package/src/apis/WaasApi.cjs +5 -4
- package/src/apis/WaasApi.js +5 -4
- package/src/apis/WalletConnectApi.cjs +5 -4
- package/src/apis/WalletConnectApi.js +5 -4
- package/src/apis/WalletsApi.cjs +5 -4
- package/src/apis/WalletsApi.js +5 -4
- package/src/apis/WebhooksApi.cjs +5 -4
- package/src/apis/WebhooksApi.js +5 -4
- package/src/index.cjs +100 -68
- package/src/index.js +20 -13
- package/src/models/AttachSourceRequest.cjs +3 -3
- package/src/models/AttachSourceRequest.d.ts +3 -3
- package/src/models/AttachSourceRequest.js +3 -3
- package/src/models/CheckoutTransaction.cjs +24 -24
- package/src/models/CheckoutTransaction.d.ts +24 -24
- package/src/models/CheckoutTransaction.js +24 -24
- package/src/models/Flow.cjs +109 -0
- package/src/models/Flow.d.ts +231 -0
- package/src/models/Flow.js +103 -0
- package/src/models/FlowAttachSourceRequest.cjs +44 -0
- package/src/models/FlowAttachSourceRequest.d.ts +54 -0
- package/src/models/FlowAttachSourceRequest.js +38 -0
- package/src/models/FlowCreateRequest.cjs +45 -0
- package/src/models/FlowCreateRequest.d.ts +59 -0
- package/src/models/FlowCreateRequest.js +39 -0
- package/src/models/FlowCreateResponse.cjs +33 -0
- package/src/models/FlowCreateResponse.d.ts +28 -0
- package/src/models/FlowCreateResponse.js +27 -0
- package/src/models/{CheckoutTransactionExchangeSource.cjs → FlowExchangeSource.cjs} +7 -7
- package/src/models/FlowExchangeSource.d.ts +33 -0
- package/src/models/{CheckoutTransactionExchangeSource.js → FlowExchangeSource.js} +5 -5
- package/src/models/FlowExecutionStateEnum.cjs +47 -0
- package/src/models/{CheckoutExecutionStateEnum.d.ts → FlowExecutionStateEnum.d.ts} +5 -5
- package/src/models/FlowExecutionStateEnum.js +41 -0
- package/src/models/{CheckoutFailure.cjs → FlowFailure.cjs} +7 -7
- package/src/models/{CheckoutFailure.d.ts → FlowFailure.d.ts} +12 -12
- package/src/models/{CheckoutFailure.js → FlowFailure.js} +5 -5
- package/src/models/FlowFeeBreakdown.cjs +36 -0
- package/src/models/FlowFeeBreakdown.d.ts +34 -0
- package/src/models/FlowFeeBreakdown.js +30 -0
- package/src/models/{CheckoutGasEstimate.cjs → FlowGasEstimate.cjs} +7 -7
- package/src/models/{CheckoutGasEstimate.d.ts → FlowGasEstimate.d.ts} +9 -9
- package/src/models/{CheckoutGasEstimate.js → FlowGasEstimate.js} +5 -5
- package/src/models/FlowModeEnum.cjs +41 -0
- package/src/models/FlowModeEnum.d.ts +24 -0
- package/src/models/FlowModeEnum.js +35 -0
- package/src/models/{PrepareSigningRequest.cjs → FlowPrepareSigningRequest.cjs} +7 -7
- package/src/models/FlowPrepareSigningRequest.d.ts +33 -0
- package/src/models/{PrepareSigningRequest.js → FlowPrepareSigningRequest.js} +5 -5
- package/src/models/{CheckoutTransactionQuote.cjs → FlowQuote.cjs} +10 -10
- package/src/models/{CheckoutTransactionQuote.d.ts → FlowQuote.d.ts} +18 -18
- package/src/models/{CheckoutTransactionQuote.js → FlowQuote.js} +8 -8
- package/src/models/{QuoteRequest.cjs → FlowQuoteRequest.cjs} +7 -7
- package/src/models/FlowQuoteRequest.d.ts +39 -0
- package/src/models/{QuoteRequest.js → FlowQuoteRequest.js} +5 -5
- package/src/models/{RecordBroadcastRequest.cjs → FlowRecordBroadcastRequest.cjs} +7 -7
- package/src/models/FlowRecordBroadcastRequest.d.ts +27 -0
- package/src/models/{RecordBroadcastRequest.js → FlowRecordBroadcastRequest.js} +5 -5
- package/src/models/FlowRiskStateEnum.cjs +43 -0
- package/src/models/{CheckoutRiskStateEnum.d.ts → FlowRiskStateEnum.d.ts} +5 -5
- package/src/models/FlowRiskStateEnum.js +37 -0
- package/src/models/{CheckoutSettlementData.cjs → FlowSettlementData.cjs} +7 -7
- package/src/models/{CheckoutSettlementData.d.ts → FlowSettlementData.d.ts} +10 -10
- package/src/models/{CheckoutSettlementData.js → FlowSettlementData.js} +5 -5
- package/src/models/FlowSettlementStateEnum.cjs +45 -0
- package/src/models/{CheckoutSettlementStateEnum.d.ts → FlowSettlementStateEnum.d.ts} +5 -5
- package/src/models/FlowSettlementStateEnum.js +39 -0
- package/src/models/FlowSourceResponse.cjs +37 -0
- package/src/models/FlowSourceResponse.d.ts +40 -0
- package/src/models/FlowSourceResponse.js +31 -0
- package/src/models/FlowSourceTypeEnum.cjs +41 -0
- package/src/models/FlowSourceTypeEnum.d.ts +24 -0
- package/src/models/FlowSourceTypeEnum.js +35 -0
- package/src/models/SwapSigningPayload.cjs +3 -0
- package/src/models/SwapSigningPayload.d.ts +8 -1
- package/src/models/SwapSigningPayload.js +3 -0
- package/src/models/SwapTronTransactionData.cjs +47 -0
- package/src/models/SwapTronTransactionData.d.ts +39 -0
- package/src/models/SwapTronTransactionData.js +41 -0
- package/src/models/TokenScopes.cjs +1 -0
- package/src/models/TokenScopes.d.ts +2 -1
- package/src/models/TokenScopes.js +1 -0
- package/src/models/index.d.ts +20 -13
- package/src/models/CheckoutExecutionStateEnum.cjs +0 -47
- package/src/models/CheckoutExecutionStateEnum.js +0 -41
- package/src/models/CheckoutFeeBreakdown.cjs +0 -36
- package/src/models/CheckoutFeeBreakdown.d.ts +0 -34
- package/src/models/CheckoutFeeBreakdown.js +0 -30
- package/src/models/CheckoutRiskStateEnum.cjs +0 -43
- package/src/models/CheckoutRiskStateEnum.js +0 -37
- package/src/models/CheckoutSettlementStateEnum.cjs +0 -45
- package/src/models/CheckoutSettlementStateEnum.js +0 -39
- package/src/models/CheckoutSourceTypeEnum.cjs +0 -41
- package/src/models/CheckoutSourceTypeEnum.d.ts +0 -24
- package/src/models/CheckoutSourceTypeEnum.js +0 -35
- package/src/models/CheckoutTransactionExchangeSource.d.ts +0 -33
- package/src/models/PrepareSigningRequest.d.ts +0 -33
- package/src/models/QuoteRequest.d.ts +0 -40
- 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
|
|
15
|
+
* @interface FlowFailure
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface FlowFailure {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
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
|
|
27
|
+
* @memberof FlowFailure
|
|
28
28
|
*/
|
|
29
29
|
message: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof FlowFailure
|
|
34
34
|
*/
|
|
35
35
|
category: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
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
|
|
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
|
|
51
|
+
* @memberof FlowFailure
|
|
52
52
|
*/
|
|
53
53
|
details?: object;
|
|
54
54
|
}
|
|
55
|
-
export declare function
|
|
56
|
-
export declare function
|
|
57
|
-
export declare function
|
|
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
|
|
5
|
-
return
|
|
4
|
+
function FlowFailureFromJSON(json) {
|
|
5
|
+
return FlowFailureFromJSONTyped(json);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
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
|
|
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 {
|
|
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
|
|
9
|
-
return
|
|
8
|
+
function FlowGasEstimateFromJSON(json) {
|
|
9
|
+
return FlowGasEstimateFromJSONTyped(json);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
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
|
|
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.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
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
|
|
15
|
+
* @interface FlowGasEstimate
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface FlowGasEstimate {
|
|
18
18
|
/**
|
|
19
19
|
* Estimated gas cost in USD
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
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
|
|
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
|
|
33
|
+
* @memberof FlowGasEstimate
|
|
34
34
|
*/
|
|
35
35
|
nativeSymbol?: string;
|
|
36
36
|
}
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
39
|
-
export declare function
|
|
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
|
|
5
|
-
return
|
|
4
|
+
function FlowGasEstimateFromJSON(json) {
|
|
5
|
+
return FlowGasEstimateFromJSONTyped(json);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
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
|
|
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 {
|
|
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
|
|
9
|
-
return
|
|
8
|
+
function FlowPrepareSigningRequestFromJSON(json) {
|
|
9
|
+
return FlowPrepareSigningRequestFromJSONTyped(json);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
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
|
|
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.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
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
|
|
5
|
-
return
|
|
4
|
+
function FlowPrepareSigningRequestFromJSON(json) {
|
|
5
|
+
return FlowPrepareSigningRequestFromJSONTyped(json);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
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
|
|
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 {
|
|
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
|
|
6
|
+
var FlowFeeBreakdown = require('./FlowFeeBreakdown.cjs');
|
|
7
7
|
var SwapSigningPayload = require('./SwapSigningPayload.cjs');
|
|
8
8
|
|
|
9
9
|
/* tslint:disable */
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function FlowQuoteFromJSON(json) {
|
|
11
|
+
return FlowQuoteFromJSONTyped(json);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
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 :
|
|
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
|
|
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':
|
|
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.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
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 {
|
|
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
|
|
17
|
+
* @interface FlowQuote
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface FlowQuote {
|
|
20
20
|
/**
|
|
21
21
|
* Monotonically increasing version number for this quote
|
|
22
22
|
* @type {number}
|
|
23
|
-
* @memberof
|
|
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
|
|
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
|
|
35
|
+
* @memberof FlowQuote
|
|
36
36
|
*/
|
|
37
37
|
toAmount: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
|
-
* @type {
|
|
41
|
-
* @memberof
|
|
40
|
+
* @type {FlowFeeBreakdown}
|
|
41
|
+
* @memberof FlowQuote
|
|
42
42
|
*/
|
|
43
|
-
fees?:
|
|
43
|
+
fees?: FlowFeeBreakdown;
|
|
44
44
|
/**
|
|
45
45
|
* Estimated time in seconds for the swap to complete
|
|
46
46
|
* @type {number}
|
|
47
|
-
* @memberof
|
|
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
|
|
53
|
+
* @memberof FlowQuote
|
|
54
54
|
*/
|
|
55
55
|
rawQuote?: object;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {SwapSigningPayload}
|
|
59
|
-
* @memberof
|
|
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
|
|
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
|
|
71
|
+
* @memberof FlowQuote
|
|
72
72
|
*/
|
|
73
73
|
expiresAt: Date;
|
|
74
74
|
}
|
|
75
|
-
export declare function
|
|
76
|
-
export declare function
|
|
77
|
-
export declare function
|
|
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;
|