@dynamic-labs/sdk-api 0.0.1070 → 0.0.1071
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/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/FlowFeeBalance.cjs +41 -0
- package/src/models/FlowFeeBalance.d.ts +51 -0
- package/src/models/FlowFeeBalance.js +35 -0
- package/src/models/FlowFeeBalancesResponse.cjs +35 -0
- package/src/models/FlowFeeBalancesResponse.d.ts +34 -0
- package/src/models/FlowFeeBalancesResponse.js +29 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -321,6 +321,8 @@ var FlowCreateResponse = require('./models/FlowCreateResponse.cjs');
|
|
|
321
321
|
var FlowExchangeSource = require('./models/FlowExchangeSource.cjs');
|
|
322
322
|
var FlowExecutionStateEnum = require('./models/FlowExecutionStateEnum.cjs');
|
|
323
323
|
var FlowFailure = require('./models/FlowFailure.cjs');
|
|
324
|
+
var FlowFeeBalance = require('./models/FlowFeeBalance.cjs');
|
|
325
|
+
var FlowFeeBalancesResponse = require('./models/FlowFeeBalancesResponse.cjs');
|
|
324
326
|
var FlowFeeBreakdown = require('./models/FlowFeeBreakdown.cjs');
|
|
325
327
|
var FlowFeeClaimRequest = require('./models/FlowFeeClaimRequest.cjs');
|
|
326
328
|
var FlowFeeClaimResponse = require('./models/FlowFeeClaimResponse.cjs');
|
|
@@ -1946,6 +1948,12 @@ exports.FlowExecutionStateEnumToJSON = FlowExecutionStateEnum.FlowExecutionState
|
|
|
1946
1948
|
exports.FlowFailureFromJSON = FlowFailure.FlowFailureFromJSON;
|
|
1947
1949
|
exports.FlowFailureFromJSONTyped = FlowFailure.FlowFailureFromJSONTyped;
|
|
1948
1950
|
exports.FlowFailureToJSON = FlowFailure.FlowFailureToJSON;
|
|
1951
|
+
exports.FlowFeeBalanceFromJSON = FlowFeeBalance.FlowFeeBalanceFromJSON;
|
|
1952
|
+
exports.FlowFeeBalanceFromJSONTyped = FlowFeeBalance.FlowFeeBalanceFromJSONTyped;
|
|
1953
|
+
exports.FlowFeeBalanceToJSON = FlowFeeBalance.FlowFeeBalanceToJSON;
|
|
1954
|
+
exports.FlowFeeBalancesResponseFromJSON = FlowFeeBalancesResponse.FlowFeeBalancesResponseFromJSON;
|
|
1955
|
+
exports.FlowFeeBalancesResponseFromJSONTyped = FlowFeeBalancesResponse.FlowFeeBalancesResponseFromJSONTyped;
|
|
1956
|
+
exports.FlowFeeBalancesResponseToJSON = FlowFeeBalancesResponse.FlowFeeBalancesResponseToJSON;
|
|
1949
1957
|
exports.FlowFeeBreakdownFromJSON = FlowFeeBreakdown.FlowFeeBreakdownFromJSON;
|
|
1950
1958
|
exports.FlowFeeBreakdownFromJSONTyped = FlowFeeBreakdown.FlowFeeBreakdownFromJSONTyped;
|
|
1951
1959
|
exports.FlowFeeBreakdownToJSON = FlowFeeBreakdown.FlowFeeBreakdownToJSON;
|
package/src/index.js
CHANGED
|
@@ -317,6 +317,8 @@ export { FlowCreateResponseFromJSON, FlowCreateResponseFromJSONTyped, FlowCreate
|
|
|
317
317
|
export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchangeSourceToJSON } from './models/FlowExchangeSource.js';
|
|
318
318
|
export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
|
|
319
319
|
export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON } from './models/FlowFailure.js';
|
|
320
|
+
export { FlowFeeBalanceFromJSON, FlowFeeBalanceFromJSONTyped, FlowFeeBalanceToJSON } from './models/FlowFeeBalance.js';
|
|
321
|
+
export { FlowFeeBalancesResponseFromJSON, FlowFeeBalancesResponseFromJSONTyped, FlowFeeBalancesResponseToJSON } from './models/FlowFeeBalancesResponse.js';
|
|
320
322
|
export { FlowFeeBreakdownFromJSON, FlowFeeBreakdownFromJSONTyped, FlowFeeBreakdownToJSON } from './models/FlowFeeBreakdown.js';
|
|
321
323
|
export { FlowFeeClaimRequestFromJSON, FlowFeeClaimRequestFromJSONTyped, FlowFeeClaimRequestToJSON } from './models/FlowFeeClaimRequest.js';
|
|
322
324
|
export { FlowFeeClaimResponseFromJSON, FlowFeeClaimResponseFromJSONTyped, FlowFeeClaimResponseToJSON } from './models/FlowFeeClaimResponse.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeBalanceFromJSON(json) {
|
|
9
|
+
return FlowFeeBalanceFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'amount': json['amount'],
|
|
17
|
+
'amountUSD': !runtime.exists(json, 'amountUSD') ? undefined : json['amountUSD'],
|
|
18
|
+
'chainId': json['chainId'],
|
|
19
|
+
'tokenAddress': json['tokenAddress'],
|
|
20
|
+
'tokenSymbol': !runtime.exists(json, 'tokenSymbol') ? undefined : json['tokenSymbol'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function FlowFeeBalanceToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'amount': value.amount,
|
|
32
|
+
'amountUSD': value.amountUSD,
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
'tokenAddress': value.tokenAddress,
|
|
35
|
+
'tokenSymbol': value.tokenSymbol,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.FlowFeeBalanceFromJSON = FlowFeeBalanceFromJSON;
|
|
40
|
+
exports.FlowFeeBalanceFromJSONTyped = FlowFeeBalanceFromJSONTyped;
|
|
41
|
+
exports.FlowFeeBalanceToJSON = FlowFeeBalanceToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* A single claimable fee balance accrued for a recipient, broken down by token and chain. Provider-agnostic: which provider accrued the balance is an internal detail and is not surfaced to the caller.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowFeeBalance
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowFeeBalance {
|
|
18
|
+
/**
|
|
19
|
+
* The claimable amount, as a string in the token's smallest unit
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowFeeBalance
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
* Approximate value of the claimable amount in USD, when available
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FlowFeeBalance
|
|
28
|
+
*/
|
|
29
|
+
amountUSD?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The chain the balance can be claimed and settled on
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FlowFeeBalance
|
|
34
|
+
*/
|
|
35
|
+
chainId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The token contract address the balance is denominated in
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FlowFeeBalance
|
|
40
|
+
*/
|
|
41
|
+
tokenAddress: string;
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable token symbol, when available
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FlowFeeBalance
|
|
46
|
+
*/
|
|
47
|
+
tokenSymbol?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function FlowFeeBalanceFromJSON(json: any): FlowFeeBalance;
|
|
50
|
+
export declare function FlowFeeBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeBalance;
|
|
51
|
+
export declare function FlowFeeBalanceToJSON(value?: FlowFeeBalance | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeBalanceFromJSON(json) {
|
|
5
|
+
return FlowFeeBalanceFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeBalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'amount': json['amount'],
|
|
13
|
+
'amountUSD': !exists(json, 'amountUSD') ? undefined : json['amountUSD'],
|
|
14
|
+
'chainId': json['chainId'],
|
|
15
|
+
'tokenAddress': json['tokenAddress'],
|
|
16
|
+
'tokenSymbol': !exists(json, 'tokenSymbol') ? undefined : json['tokenSymbol'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function FlowFeeBalanceToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'amount': value.amount,
|
|
28
|
+
'amountUSD': value.amountUSD,
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
'tokenAddress': value.tokenAddress,
|
|
31
|
+
'tokenSymbol': value.tokenSymbol,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { FlowFeeBalanceFromJSON, FlowFeeBalanceFromJSONTyped, FlowFeeBalanceToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var FlowFeeBalance = require('./FlowFeeBalance.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeBalancesResponseFromJSON(json) {
|
|
9
|
+
return FlowFeeBalancesResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeBalancesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'balances': (json['balances'].map(FlowFeeBalance.FlowFeeBalanceFromJSON)),
|
|
17
|
+
'hasClaimableFees': json['hasClaimableFees'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function FlowFeeBalancesResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'balances': (value.balances.map(FlowFeeBalance.FlowFeeBalanceToJSON)),
|
|
29
|
+
'hasClaimableFees': value.hasClaimableFees,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.FlowFeeBalancesResponseFromJSON = FlowFeeBalancesResponseFromJSON;
|
|
34
|
+
exports.FlowFeeBalancesResponseFromJSONTyped = FlowFeeBalancesResponseFromJSONTyped;
|
|
35
|
+
exports.FlowFeeBalancesResponseToJSON = FlowFeeBalancesResponseToJSON;
|
|
@@ -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 { FlowFeeBalance } from './FlowFeeBalance';
|
|
13
|
+
/**
|
|
14
|
+
* The recipient's claimable fee balances aggregated across every provider. An empty balances list means there is nothing to claim; hasClaimableFees is a convenience flag that is true when balances is non-empty.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowFeeBalancesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowFeeBalancesResponse {
|
|
19
|
+
/**
|
|
20
|
+
* One entry per claimable token and chain balance; empty when there is nothing to claim
|
|
21
|
+
* @type {Array<FlowFeeBalance>}
|
|
22
|
+
* @memberof FlowFeeBalancesResponse
|
|
23
|
+
*/
|
|
24
|
+
balances: Array<FlowFeeBalance>;
|
|
25
|
+
/**
|
|
26
|
+
* True when the recipient has at least one claimable balance
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof FlowFeeBalancesResponse
|
|
29
|
+
*/
|
|
30
|
+
hasClaimableFees: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function FlowFeeBalancesResponseFromJSON(json: any): FlowFeeBalancesResponse;
|
|
33
|
+
export declare function FlowFeeBalancesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeBalancesResponse;
|
|
34
|
+
export declare function FlowFeeBalancesResponseToJSON(value?: FlowFeeBalancesResponse | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FlowFeeBalanceFromJSON, FlowFeeBalanceToJSON } from './FlowFeeBalance.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeBalancesResponseFromJSON(json) {
|
|
5
|
+
return FlowFeeBalancesResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeBalancesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'balances': (json['balances'].map(FlowFeeBalanceFromJSON)),
|
|
13
|
+
'hasClaimableFees': json['hasClaimableFees'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function FlowFeeBalancesResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'balances': (value.balances.map(FlowFeeBalanceToJSON)),
|
|
25
|
+
'hasClaimableFees': value.hasClaimableFees,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FlowFeeBalancesResponseFromJSON, FlowFeeBalancesResponseFromJSONTyped, FlowFeeBalancesResponseToJSON };
|
|
@@ -149,6 +149,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
149
149
|
UnprocessableEntityErrorCode["AddressScreeningByokQuota"] = "address_screening_byok_quota";
|
|
150
150
|
UnprocessableEntityErrorCode["AddressScreeningByokShape"] = "address_screening_byok_shape";
|
|
151
151
|
UnprocessableEntityErrorCode["AddressScreeningByokUpstream"] = "address_screening_byok_upstream";
|
|
152
|
+
UnprocessableEntityErrorCode["CaptchaSettingsIncompleteKeyPair"] = "captcha_settings_incomplete_key_pair";
|
|
152
153
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
153
154
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
154
155
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -141,7 +141,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
141
141
|
AddressScreeningByokAuth = "address_screening_byok_auth",
|
|
142
142
|
AddressScreeningByokQuota = "address_screening_byok_quota",
|
|
143
143
|
AddressScreeningByokShape = "address_screening_byok_shape",
|
|
144
|
-
AddressScreeningByokUpstream = "address_screening_byok_upstream"
|
|
144
|
+
AddressScreeningByokUpstream = "address_screening_byok_upstream",
|
|
145
|
+
CaptchaSettingsIncompleteKeyPair = "captcha_settings_incomplete_key_pair"
|
|
145
146
|
}
|
|
146
147
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
147
148
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -145,6 +145,7 @@ var UnprocessableEntityErrorCode;
|
|
|
145
145
|
UnprocessableEntityErrorCode["AddressScreeningByokQuota"] = "address_screening_byok_quota";
|
|
146
146
|
UnprocessableEntityErrorCode["AddressScreeningByokShape"] = "address_screening_byok_shape";
|
|
147
147
|
UnprocessableEntityErrorCode["AddressScreeningByokUpstream"] = "address_screening_byok_upstream";
|
|
148
|
+
UnprocessableEntityErrorCode["CaptchaSettingsIncompleteKeyPair"] = "captcha_settings_incomplete_key_pair";
|
|
148
149
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
149
150
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
150
151
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -271,6 +271,8 @@ export * from './FlowCreateResponse';
|
|
|
271
271
|
export * from './FlowExchangeSource';
|
|
272
272
|
export * from './FlowExecutionStateEnum';
|
|
273
273
|
export * from './FlowFailure';
|
|
274
|
+
export * from './FlowFeeBalance';
|
|
275
|
+
export * from './FlowFeeBalancesResponse';
|
|
274
276
|
export * from './FlowFeeBreakdown';
|
|
275
277
|
export * from './FlowFeeClaimRequest';
|
|
276
278
|
export * from './FlowFeeClaimResponse';
|