@dynamic-labs/sdk-api 0.0.1067 → 0.0.1068
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 +24 -0
- package/src/index.js +6 -0
- package/src/models/FlowFeeClaimRequest.cjs +37 -0
- package/src/models/FlowFeeClaimRequest.d.ts +39 -0
- package/src/models/FlowFeeClaimRequest.js +31 -0
- package/src/models/FlowFeeClaimResponse.cjs +35 -0
- package/src/models/FlowFeeClaimResponse.d.ts +34 -0
- package/src/models/FlowFeeClaimResponse.js +29 -0
- package/src/models/FlowFeeClaimSignature.cjs +45 -0
- package/src/models/FlowFeeClaimSignature.d.ts +33 -0
- package/src/models/FlowFeeClaimSignature.js +39 -0
- package/src/models/FlowFeeClaimStep.cjs +49 -0
- package/src/models/FlowFeeClaimStep.d.ts +45 -0
- package/src/models/FlowFeeClaimStep.js +43 -0
- package/src/models/FlowFeeClaimSubmitRequest.cjs +35 -0
- package/src/models/FlowFeeClaimSubmitRequest.d.ts +34 -0
- package/src/models/FlowFeeClaimSubmitRequest.js +29 -0
- package/src/models/FlowFeeClaimSubmitResponse.cjs +35 -0
- package/src/models/FlowFeeClaimSubmitResponse.d.ts +33 -0
- package/src/models/FlowFeeClaimSubmitResponse.js +29 -0
- package/src/models/index.d.ts +6 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -322,6 +322,12 @@ var FlowExchangeSource = require('./models/FlowExchangeSource.cjs');
|
|
|
322
322
|
var FlowExecutionStateEnum = require('./models/FlowExecutionStateEnum.cjs');
|
|
323
323
|
var FlowFailure = require('./models/FlowFailure.cjs');
|
|
324
324
|
var FlowFeeBreakdown = require('./models/FlowFeeBreakdown.cjs');
|
|
325
|
+
var FlowFeeClaimRequest = require('./models/FlowFeeClaimRequest.cjs');
|
|
326
|
+
var FlowFeeClaimResponse = require('./models/FlowFeeClaimResponse.cjs');
|
|
327
|
+
var FlowFeeClaimSignature = require('./models/FlowFeeClaimSignature.cjs');
|
|
328
|
+
var FlowFeeClaimStep = require('./models/FlowFeeClaimStep.cjs');
|
|
329
|
+
var FlowFeeClaimSubmitRequest = require('./models/FlowFeeClaimSubmitRequest.cjs');
|
|
330
|
+
var FlowFeeClaimSubmitResponse = require('./models/FlowFeeClaimSubmitResponse.cjs');
|
|
325
331
|
var FlowFeeConfig = require('./models/FlowFeeConfig.cjs');
|
|
326
332
|
var FlowGasEstimate = require('./models/FlowGasEstimate.cjs');
|
|
327
333
|
var FlowListItem = require('./models/FlowListItem.cjs');
|
|
@@ -1941,6 +1947,24 @@ exports.FlowFailureToJSON = FlowFailure.FlowFailureToJSON;
|
|
|
1941
1947
|
exports.FlowFeeBreakdownFromJSON = FlowFeeBreakdown.FlowFeeBreakdownFromJSON;
|
|
1942
1948
|
exports.FlowFeeBreakdownFromJSONTyped = FlowFeeBreakdown.FlowFeeBreakdownFromJSONTyped;
|
|
1943
1949
|
exports.FlowFeeBreakdownToJSON = FlowFeeBreakdown.FlowFeeBreakdownToJSON;
|
|
1950
|
+
exports.FlowFeeClaimRequestFromJSON = FlowFeeClaimRequest.FlowFeeClaimRequestFromJSON;
|
|
1951
|
+
exports.FlowFeeClaimRequestFromJSONTyped = FlowFeeClaimRequest.FlowFeeClaimRequestFromJSONTyped;
|
|
1952
|
+
exports.FlowFeeClaimRequestToJSON = FlowFeeClaimRequest.FlowFeeClaimRequestToJSON;
|
|
1953
|
+
exports.FlowFeeClaimResponseFromJSON = FlowFeeClaimResponse.FlowFeeClaimResponseFromJSON;
|
|
1954
|
+
exports.FlowFeeClaimResponseFromJSONTyped = FlowFeeClaimResponse.FlowFeeClaimResponseFromJSONTyped;
|
|
1955
|
+
exports.FlowFeeClaimResponseToJSON = FlowFeeClaimResponse.FlowFeeClaimResponseToJSON;
|
|
1956
|
+
exports.FlowFeeClaimSignatureFromJSON = FlowFeeClaimSignature.FlowFeeClaimSignatureFromJSON;
|
|
1957
|
+
exports.FlowFeeClaimSignatureFromJSONTyped = FlowFeeClaimSignature.FlowFeeClaimSignatureFromJSONTyped;
|
|
1958
|
+
exports.FlowFeeClaimSignatureToJSON = FlowFeeClaimSignature.FlowFeeClaimSignatureToJSON;
|
|
1959
|
+
exports.FlowFeeClaimStepFromJSON = FlowFeeClaimStep.FlowFeeClaimStepFromJSON;
|
|
1960
|
+
exports.FlowFeeClaimStepFromJSONTyped = FlowFeeClaimStep.FlowFeeClaimStepFromJSONTyped;
|
|
1961
|
+
exports.FlowFeeClaimStepToJSON = FlowFeeClaimStep.FlowFeeClaimStepToJSON;
|
|
1962
|
+
exports.FlowFeeClaimSubmitRequestFromJSON = FlowFeeClaimSubmitRequest.FlowFeeClaimSubmitRequestFromJSON;
|
|
1963
|
+
exports.FlowFeeClaimSubmitRequestFromJSONTyped = FlowFeeClaimSubmitRequest.FlowFeeClaimSubmitRequestFromJSONTyped;
|
|
1964
|
+
exports.FlowFeeClaimSubmitRequestToJSON = FlowFeeClaimSubmitRequest.FlowFeeClaimSubmitRequestToJSON;
|
|
1965
|
+
exports.FlowFeeClaimSubmitResponseFromJSON = FlowFeeClaimSubmitResponse.FlowFeeClaimSubmitResponseFromJSON;
|
|
1966
|
+
exports.FlowFeeClaimSubmitResponseFromJSONTyped = FlowFeeClaimSubmitResponse.FlowFeeClaimSubmitResponseFromJSONTyped;
|
|
1967
|
+
exports.FlowFeeClaimSubmitResponseToJSON = FlowFeeClaimSubmitResponse.FlowFeeClaimSubmitResponseToJSON;
|
|
1944
1968
|
exports.FlowFeeConfigFromJSON = FlowFeeConfig.FlowFeeConfigFromJSON;
|
|
1945
1969
|
exports.FlowFeeConfigFromJSONTyped = FlowFeeConfig.FlowFeeConfigFromJSONTyped;
|
|
1946
1970
|
exports.FlowFeeConfigToJSON = FlowFeeConfig.FlowFeeConfigToJSON;
|
package/src/index.js
CHANGED
|
@@ -318,6 +318,12 @@ export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchan
|
|
|
318
318
|
export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
|
|
319
319
|
export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON } from './models/FlowFailure.js';
|
|
320
320
|
export { FlowFeeBreakdownFromJSON, FlowFeeBreakdownFromJSONTyped, FlowFeeBreakdownToJSON } from './models/FlowFeeBreakdown.js';
|
|
321
|
+
export { FlowFeeClaimRequestFromJSON, FlowFeeClaimRequestFromJSONTyped, FlowFeeClaimRequestToJSON } from './models/FlowFeeClaimRequest.js';
|
|
322
|
+
export { FlowFeeClaimResponseFromJSON, FlowFeeClaimResponseFromJSONTyped, FlowFeeClaimResponseToJSON } from './models/FlowFeeClaimResponse.js';
|
|
323
|
+
export { FlowFeeClaimSignatureFromJSON, FlowFeeClaimSignatureFromJSONTyped, FlowFeeClaimSignatureToJSON } from './models/FlowFeeClaimSignature.js';
|
|
324
|
+
export { FlowFeeClaimStepFromJSON, FlowFeeClaimStepFromJSONTyped, FlowFeeClaimStepToJSON } from './models/FlowFeeClaimStep.js';
|
|
325
|
+
export { FlowFeeClaimSubmitRequestFromJSON, FlowFeeClaimSubmitRequestFromJSONTyped, FlowFeeClaimSubmitRequestToJSON } from './models/FlowFeeClaimSubmitRequest.js';
|
|
326
|
+
export { FlowFeeClaimSubmitResponseFromJSON, FlowFeeClaimSubmitResponseFromJSONTyped, FlowFeeClaimSubmitResponseToJSON } from './models/FlowFeeClaimSubmitResponse.js';
|
|
321
327
|
export { FlowFeeConfigFromJSON, FlowFeeConfigFromJSONTyped, FlowFeeConfigToJSON } from './models/FlowFeeConfig.js';
|
|
322
328
|
export { FlowGasEstimateFromJSON, FlowGasEstimateFromJSONTyped, FlowGasEstimateToJSON } from './models/FlowGasEstimate.js';
|
|
323
329
|
export { FlowListItemFromJSON, FlowListItemFromJSONTyped, FlowListItemSourceTypeEnum, FlowListItemToJSON } from './models/FlowListItem.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeClaimRequestFromJSON(json) {
|
|
9
|
+
return FlowFeeClaimRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeClaimRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
17
|
+
'recipientAddress': json['recipientAddress'],
|
|
18
|
+
'tokenAddress': !runtime.exists(json, 'tokenAddress') ? undefined : json['tokenAddress'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function FlowFeeClaimRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
'recipientAddress': value.recipientAddress,
|
|
31
|
+
'tokenAddress': value.tokenAddress,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.FlowFeeClaimRequestFromJSON = FlowFeeClaimRequestFromJSON;
|
|
36
|
+
exports.FlowFeeClaimRequestFromJSONTyped = FlowFeeClaimRequestFromJSONTyped;
|
|
37
|
+
exports.FlowFeeClaimRequestToJSON = FlowFeeClaimRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 to initiate a fee claim. Provider-agnostic: the caller only supplies the recipient address and the backend looks up unclaimed fee balances across every provider, returning a signing step for each. chainId and tokenAddress are optional filters to narrow the claim to a specific balance.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowFeeClaimRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowFeeClaimRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Optional filter — only claim balances settled on this chain
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowFeeClaimRequest
|
|
22
|
+
*/
|
|
23
|
+
chainId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 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)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FlowFeeClaimRequest
|
|
28
|
+
*/
|
|
29
|
+
recipientAddress: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional filter — only claim balances for this token contract address
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FlowFeeClaimRequest
|
|
34
|
+
*/
|
|
35
|
+
tokenAddress?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function FlowFeeClaimRequestFromJSON(json: any): FlowFeeClaimRequest;
|
|
38
|
+
export declare function FlowFeeClaimRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimRequest;
|
|
39
|
+
export declare function FlowFeeClaimRequestToJSON(value?: FlowFeeClaimRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeClaimRequestFromJSON(json) {
|
|
5
|
+
return FlowFeeClaimRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeClaimRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
13
|
+
'recipientAddress': json['recipientAddress'],
|
|
14
|
+
'tokenAddress': !exists(json, 'tokenAddress') ? undefined : json['tokenAddress'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function FlowFeeClaimRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'chainId': value.chainId,
|
|
26
|
+
'recipientAddress': value.recipientAddress,
|
|
27
|
+
'tokenAddress': value.tokenAddress,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { FlowFeeClaimRequestFromJSON, FlowFeeClaimRequestFromJSONTyped, FlowFeeClaimRequestToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var FlowFeeClaimStep = require('./FlowFeeClaimStep.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeClaimResponseFromJSON(json) {
|
|
9
|
+
return FlowFeeClaimResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeClaimResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'requestId': json['requestId'],
|
|
17
|
+
'steps': (json['steps'].map(FlowFeeClaimStep.FlowFeeClaimStepFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function FlowFeeClaimResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'requestId': value.requestId,
|
|
29
|
+
'steps': (value.steps.map(FlowFeeClaimStep.FlowFeeClaimStepToJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.FlowFeeClaimResponseFromJSON = FlowFeeClaimResponseFromJSON;
|
|
34
|
+
exports.FlowFeeClaimResponseFromJSONTyped = FlowFeeClaimResponseFromJSONTyped;
|
|
35
|
+
exports.FlowFeeClaimResponseToJSON = FlowFeeClaimResponseToJSON;
|
|
@@ -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 { FlowFeeClaimStep } from './FlowFeeClaimStep';
|
|
13
|
+
/**
|
|
14
|
+
* Instructions to complete a fee claim. Contains an opaque requestId that correlates the initiated claim on submit, and the steps the recipient must complete (one per claimable balance across all providers).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowFeeClaimResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowFeeClaimResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Opaque identifier correlating this initiated claim; echoed back on submit so the backend can resolve the provider(s) internally
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FlowFeeClaimResponse
|
|
23
|
+
*/
|
|
24
|
+
requestId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<FlowFeeClaimStep>}
|
|
28
|
+
* @memberof FlowFeeClaimResponse
|
|
29
|
+
*/
|
|
30
|
+
steps: Array<FlowFeeClaimStep>;
|
|
31
|
+
}
|
|
32
|
+
export declare function FlowFeeClaimResponseFromJSON(json: any): FlowFeeClaimResponse;
|
|
33
|
+
export declare function FlowFeeClaimResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimResponse;
|
|
34
|
+
export declare function FlowFeeClaimResponseToJSON(value?: FlowFeeClaimResponse | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FlowFeeClaimStepFromJSON, FlowFeeClaimStepToJSON } from './FlowFeeClaimStep.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeClaimResponseFromJSON(json) {
|
|
5
|
+
return FlowFeeClaimResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeClaimResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'requestId': json['requestId'],
|
|
13
|
+
'steps': (json['steps'].map(FlowFeeClaimStepFromJSON)),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function FlowFeeClaimResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'requestId': value.requestId,
|
|
25
|
+
'steps': (value.steps.map(FlowFeeClaimStepToJSON)),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FlowFeeClaimResponseFromJSON, FlowFeeClaimResponseFromJSONTyped, FlowFeeClaimResponseToJSON };
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
function FlowFeeClaimSignatureFromJSON(json) {
|
|
19
|
+
return FlowFeeClaimSignatureFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function FlowFeeClaimSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'signature': json['signature'],
|
|
27
|
+
'stepId': json['stepId'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function FlowFeeClaimSignatureToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'signature': value.signature,
|
|
39
|
+
'stepId': value.stepId,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.FlowFeeClaimSignatureFromJSON = FlowFeeClaimSignatureFromJSON;
|
|
44
|
+
exports.FlowFeeClaimSignatureFromJSONTyped = FlowFeeClaimSignatureFromJSONTyped;
|
|
45
|
+
exports.FlowFeeClaimSignatureToJSON = FlowFeeClaimSignatureToJSON;
|
|
@@ -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
|
+
* A signature over a single claim step's payload.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowFeeClaimSignature
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowFeeClaimSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Signature the recipient produced over the step's payload
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowFeeClaimSignature
|
|
22
|
+
*/
|
|
23
|
+
signature: string;
|
|
24
|
+
/**
|
|
25
|
+
* The id of the FlowFeeClaimStep this signature corresponds to
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FlowFeeClaimSignature
|
|
28
|
+
*/
|
|
29
|
+
stepId: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function FlowFeeClaimSignatureFromJSON(json: any): FlowFeeClaimSignature;
|
|
32
|
+
export declare function FlowFeeClaimSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimSignature;
|
|
33
|
+
export declare function FlowFeeClaimSignatureToJSON(value?: FlowFeeClaimSignature | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function FlowFeeClaimSignatureFromJSON(json) {
|
|
15
|
+
return FlowFeeClaimSignatureFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function FlowFeeClaimSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'signature': json['signature'],
|
|
23
|
+
'stepId': json['stepId'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function FlowFeeClaimSignatureToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'signature': value.signature,
|
|
35
|
+
'stepId': value.stepId,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { FlowFeeClaimSignatureFromJSON, FlowFeeClaimSignatureFromJSONTyped, FlowFeeClaimSignatureToJSON };
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
function FlowFeeClaimStepFromJSON(json) {
|
|
19
|
+
return FlowFeeClaimStepFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function FlowFeeClaimStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'action': json['action'],
|
|
27
|
+
'data': json['data'],
|
|
28
|
+
'id': json['id'],
|
|
29
|
+
'type': json['type'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function FlowFeeClaimStepToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'action': value.action,
|
|
41
|
+
'data': value.data,
|
|
42
|
+
'id': value.id,
|
|
43
|
+
'type': value.type,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
exports.FlowFeeClaimStepFromJSON = FlowFeeClaimStepFromJSON;
|
|
48
|
+
exports.FlowFeeClaimStepFromJSONTyped = FlowFeeClaimStepFromJSONTyped;
|
|
49
|
+
exports.FlowFeeClaimStepToJSON = FlowFeeClaimStepToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A single step the recipient completes to authorize a claim, typically a request to sign an opaque payload. Steps are executed against whichever provider holds the balance; that provider is an internal detail and is not surfaced to the caller.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowFeeClaimStep
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowFeeClaimStep {
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable description of the step
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowFeeClaimStep
|
|
22
|
+
*/
|
|
23
|
+
action: string;
|
|
24
|
+
/**
|
|
25
|
+
* Opaque payload the recipient must act on (e.g. sign)
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof FlowFeeClaimStep
|
|
28
|
+
*/
|
|
29
|
+
data: object;
|
|
30
|
+
/**
|
|
31
|
+
* Identifier for the step, echoed back when submitting its signature
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FlowFeeClaimStep
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The type of step, such as a signature request
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FlowFeeClaimStep
|
|
40
|
+
*/
|
|
41
|
+
type: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function FlowFeeClaimStepFromJSON(json: any): FlowFeeClaimStep;
|
|
44
|
+
export declare function FlowFeeClaimStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimStep;
|
|
45
|
+
export declare function FlowFeeClaimStepToJSON(value?: FlowFeeClaimStep | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function FlowFeeClaimStepFromJSON(json) {
|
|
15
|
+
return FlowFeeClaimStepFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function FlowFeeClaimStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'action': json['action'],
|
|
23
|
+
'data': json['data'],
|
|
24
|
+
'id': json['id'],
|
|
25
|
+
'type': json['type'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function FlowFeeClaimStepToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'action': value.action,
|
|
37
|
+
'data': value.data,
|
|
38
|
+
'id': value.id,
|
|
39
|
+
'type': value.type,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { FlowFeeClaimStepFromJSON, FlowFeeClaimStepFromJSONTyped, FlowFeeClaimStepToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var FlowFeeClaimSignature = require('./FlowFeeClaimSignature.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeClaimSubmitRequestFromJSON(json) {
|
|
9
|
+
return FlowFeeClaimSubmitRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeClaimSubmitRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'requestId': json['requestId'],
|
|
17
|
+
'signatures': (json['signatures'].map(FlowFeeClaimSignature.FlowFeeClaimSignatureFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function FlowFeeClaimSubmitRequestToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'requestId': value.requestId,
|
|
29
|
+
'signatures': (value.signatures.map(FlowFeeClaimSignature.FlowFeeClaimSignatureToJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.FlowFeeClaimSubmitRequestFromJSON = FlowFeeClaimSubmitRequestFromJSON;
|
|
34
|
+
exports.FlowFeeClaimSubmitRequestFromJSONTyped = FlowFeeClaimSubmitRequestFromJSONTyped;
|
|
35
|
+
exports.FlowFeeClaimSubmitRequestToJSON = FlowFeeClaimSubmitRequestToJSON;
|
|
@@ -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 { FlowFeeClaimSignature } from './FlowFeeClaimSignature';
|
|
13
|
+
/**
|
|
14
|
+
* Submit the signatures for a previously initiated claim. The backend resolves the provider(s) from the requestId and executes the claim(s).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowFeeClaimSubmitRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowFeeClaimSubmitRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The requestId returned when the claim was initiated
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof FlowFeeClaimSubmitRequest
|
|
23
|
+
*/
|
|
24
|
+
requestId: string;
|
|
25
|
+
/**
|
|
26
|
+
* One signature per step returned by the claim initiation
|
|
27
|
+
* @type {Array<FlowFeeClaimSignature>}
|
|
28
|
+
* @memberof FlowFeeClaimSubmitRequest
|
|
29
|
+
*/
|
|
30
|
+
signatures: Array<FlowFeeClaimSignature>;
|
|
31
|
+
}
|
|
32
|
+
export declare function FlowFeeClaimSubmitRequestFromJSON(json: any): FlowFeeClaimSubmitRequest;
|
|
33
|
+
export declare function FlowFeeClaimSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimSubmitRequest;
|
|
34
|
+
export declare function FlowFeeClaimSubmitRequestToJSON(value?: FlowFeeClaimSubmitRequest | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FlowFeeClaimSignatureFromJSON, FlowFeeClaimSignatureToJSON } from './FlowFeeClaimSignature.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeClaimSubmitRequestFromJSON(json) {
|
|
5
|
+
return FlowFeeClaimSubmitRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeClaimSubmitRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'requestId': json['requestId'],
|
|
13
|
+
'signatures': (json['signatures'].map(FlowFeeClaimSignatureFromJSON)),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function FlowFeeClaimSubmitRequestToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'requestId': value.requestId,
|
|
25
|
+
'signatures': (value.signatures.map(FlowFeeClaimSignatureToJSON)),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FlowFeeClaimSubmitRequestFromJSON, FlowFeeClaimSubmitRequestFromJSONTyped, FlowFeeClaimSubmitRequestToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeClaimSubmitResponseFromJSON(json) {
|
|
9
|
+
return FlowFeeClaimSubmitResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeClaimSubmitResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'status': json['status'],
|
|
17
|
+
'txHashes': !runtime.exists(json, 'txHashes') ? undefined : json['txHashes'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function FlowFeeClaimSubmitResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'status': value.status,
|
|
29
|
+
'txHashes': value.txHashes,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.FlowFeeClaimSubmitResponseFromJSON = FlowFeeClaimSubmitResponseFromJSON;
|
|
34
|
+
exports.FlowFeeClaimSubmitResponseFromJSONTyped = FlowFeeClaimSubmitResponseFromJSONTyped;
|
|
35
|
+
exports.FlowFeeClaimSubmitResponseToJSON = FlowFeeClaimSubmitResponseToJSON;
|
|
@@ -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
|
+
* Result of submitting a fee claim.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowFeeClaimSubmitResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowFeeClaimSubmitResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Status of the submitted claim
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowFeeClaimSubmitResponse
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
/**
|
|
25
|
+
* On-chain transaction hashes for any claims that settled on-chain
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof FlowFeeClaimSubmitResponse
|
|
28
|
+
*/
|
|
29
|
+
txHashes?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
export declare function FlowFeeClaimSubmitResponseFromJSON(json: any): FlowFeeClaimSubmitResponse;
|
|
32
|
+
export declare function FlowFeeClaimSubmitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeClaimSubmitResponse;
|
|
33
|
+
export declare function FlowFeeClaimSubmitResponseToJSON(value?: FlowFeeClaimSubmitResponse | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeClaimSubmitResponseFromJSON(json) {
|
|
5
|
+
return FlowFeeClaimSubmitResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeClaimSubmitResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'status': json['status'],
|
|
13
|
+
'txHashes': !exists(json, 'txHashes') ? undefined : json['txHashes'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function FlowFeeClaimSubmitResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'status': value.status,
|
|
25
|
+
'txHashes': value.txHashes,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FlowFeeClaimSubmitResponseFromJSON, FlowFeeClaimSubmitResponseFromJSONTyped, FlowFeeClaimSubmitResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -272,6 +272,12 @@ export * from './FlowExchangeSource';
|
|
|
272
272
|
export * from './FlowExecutionStateEnum';
|
|
273
273
|
export * from './FlowFailure';
|
|
274
274
|
export * from './FlowFeeBreakdown';
|
|
275
|
+
export * from './FlowFeeClaimRequest';
|
|
276
|
+
export * from './FlowFeeClaimResponse';
|
|
277
|
+
export * from './FlowFeeClaimSignature';
|
|
278
|
+
export * from './FlowFeeClaimStep';
|
|
279
|
+
export * from './FlowFeeClaimSubmitRequest';
|
|
280
|
+
export * from './FlowFeeClaimSubmitResponse';
|
|
275
281
|
export * from './FlowFeeConfig';
|
|
276
282
|
export * from './FlowGasEstimate';
|
|
277
283
|
export * from './FlowListItem';
|