@dynamic-labs/sdk-api-core 0.0.1061 → 0.0.1063
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/SDKApi.cjs +5 -2
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +3 -2
- package/src/apis/SDKApi.js +5 -2
- package/src/apis/SDKApi.js.map +1 -1
- package/src/index.cjs +8 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/models/FeeRecipientConfig.cjs +45 -0
- package/src/models/FeeRecipientConfig.cjs.map +1 -0
- package/src/models/FeeRecipientConfig.d.ts +33 -0
- package/src/models/FeeRecipientConfig.js +39 -0
- package/src/models/FeeRecipientConfig.js.map +1 -0
- package/src/models/FlowCreateRequest.cjs +3 -0
- package/src/models/FlowCreateRequest.cjs.map +1 -1
- package/src/models/FlowCreateRequest.d.ts +7 -0
- package/src/models/FlowCreateRequest.js +3 -0
- package/src/models/FlowCreateRequest.js.map +1 -1
- package/src/models/FlowFeeConfig.cjs +33 -0
- package/src/models/FlowFeeConfig.cjs.map +1 -0
- package/src/models/FlowFeeConfig.d.ts +28 -0
- package/src/models/FlowFeeConfig.js +27 -0
- package/src/models/FlowFeeConfig.js.map +1 -0
- package/src/models/index.d.ts +2 -0
package/src/index.cjs
CHANGED
|
@@ -155,6 +155,7 @@ var ExternalWalletFundingDefaultSettingsToken = require('./models/ExternalWallet
|
|
|
155
155
|
var ExternalWalletFundingTokenRule = require('./models/ExternalWalletFundingTokenRule.cjs');
|
|
156
156
|
var FarcasterSignInRequest = require('./models/FarcasterSignInRequest.cjs');
|
|
157
157
|
var FeatureFlags = require('./models/FeatureFlags.cjs');
|
|
158
|
+
var FeeRecipientConfig = require('./models/FeeRecipientConfig.cjs');
|
|
158
159
|
var Flow = require('./models/Flow.cjs');
|
|
159
160
|
var FlowAttachSourceRequest = require('./models/FlowAttachSourceRequest.cjs');
|
|
160
161
|
var FlowCreateRequest = require('./models/FlowCreateRequest.cjs');
|
|
@@ -163,6 +164,7 @@ var FlowExchangeSource = require('./models/FlowExchangeSource.cjs');
|
|
|
163
164
|
var FlowExecutionStateEnum = require('./models/FlowExecutionStateEnum.cjs');
|
|
164
165
|
var FlowFailure = require('./models/FlowFailure.cjs');
|
|
165
166
|
var FlowFeeBreakdown = require('./models/FlowFeeBreakdown.cjs');
|
|
167
|
+
var FlowFeeConfig = require('./models/FlowFeeConfig.cjs');
|
|
166
168
|
var FlowGasEstimate = require('./models/FlowGasEstimate.cjs');
|
|
167
169
|
var FlowModeEnum = require('./models/FlowModeEnum.cjs');
|
|
168
170
|
var FlowPrepareSigningRequest = require('./models/FlowPrepareSigningRequest.cjs');
|
|
@@ -1139,6 +1141,9 @@ exports.FarcasterSignInRequestToJSON = FarcasterSignInRequest.FarcasterSignInReq
|
|
|
1139
1141
|
exports.FeatureFlagsFromJSON = FeatureFlags.FeatureFlagsFromJSON;
|
|
1140
1142
|
exports.FeatureFlagsFromJSONTyped = FeatureFlags.FeatureFlagsFromJSONTyped;
|
|
1141
1143
|
exports.FeatureFlagsToJSON = FeatureFlags.FeatureFlagsToJSON;
|
|
1144
|
+
exports.FeeRecipientConfigFromJSON = FeeRecipientConfig.FeeRecipientConfigFromJSON;
|
|
1145
|
+
exports.FeeRecipientConfigFromJSONTyped = FeeRecipientConfig.FeeRecipientConfigFromJSONTyped;
|
|
1146
|
+
exports.FeeRecipientConfigToJSON = FeeRecipientConfig.FeeRecipientConfigToJSON;
|
|
1142
1147
|
exports.FlowFromJSON = Flow.FlowFromJSON;
|
|
1143
1148
|
exports.FlowFromJSONTyped = Flow.FlowFromJSONTyped;
|
|
1144
1149
|
exports.FlowToJSON = Flow.FlowToJSON;
|
|
@@ -1167,6 +1172,9 @@ exports.FlowFailureToJSON = FlowFailure.FlowFailureToJSON;
|
|
|
1167
1172
|
exports.FlowFeeBreakdownFromJSON = FlowFeeBreakdown.FlowFeeBreakdownFromJSON;
|
|
1168
1173
|
exports.FlowFeeBreakdownFromJSONTyped = FlowFeeBreakdown.FlowFeeBreakdownFromJSONTyped;
|
|
1169
1174
|
exports.FlowFeeBreakdownToJSON = FlowFeeBreakdown.FlowFeeBreakdownToJSON;
|
|
1175
|
+
exports.FlowFeeConfigFromJSON = FlowFeeConfig.FlowFeeConfigFromJSON;
|
|
1176
|
+
exports.FlowFeeConfigFromJSONTyped = FlowFeeConfig.FlowFeeConfigFromJSONTyped;
|
|
1177
|
+
exports.FlowFeeConfigToJSON = FlowFeeConfig.FlowFeeConfigToJSON;
|
|
1170
1178
|
exports.FlowGasEstimateFromJSON = FlowGasEstimate.FlowGasEstimateFromJSON;
|
|
1171
1179
|
exports.FlowGasEstimateFromJSONTyped = FlowGasEstimate.FlowGasEstimateFromJSONTyped;
|
|
1172
1180
|
exports.FlowGasEstimateToJSON = FlowGasEstimate.FlowGasEstimateToJSON;
|
package/src/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;"}
|
package/src/index.js
CHANGED
|
@@ -151,6 +151,7 @@ export { ExternalWalletFundingDefaultSettingsTokenFromJSON, ExternalWalletFundin
|
|
|
151
151
|
export { ExternalWalletFundingTokenRule, ExternalWalletFundingTokenRuleFromJSON, ExternalWalletFundingTokenRuleFromJSONTyped, ExternalWalletFundingTokenRuleToJSON } from './models/ExternalWalletFundingTokenRule.js';
|
|
152
152
|
export { FarcasterSignInRequestFromJSON, FarcasterSignInRequestFromJSONTyped, FarcasterSignInRequestToJSON } from './models/FarcasterSignInRequest.js';
|
|
153
153
|
export { FeatureFlagsFromJSON, FeatureFlagsFromJSONTyped, FeatureFlagsToJSON } from './models/FeatureFlags.js';
|
|
154
|
+
export { FeeRecipientConfigFromJSON, FeeRecipientConfigFromJSONTyped, FeeRecipientConfigToJSON } from './models/FeeRecipientConfig.js';
|
|
154
155
|
export { FlowFromJSON, FlowFromJSONTyped, FlowToJSON } from './models/Flow.js';
|
|
155
156
|
export { FlowAttachSourceRequestFromJSON, FlowAttachSourceRequestFromJSONTyped, FlowAttachSourceRequestToJSON } from './models/FlowAttachSourceRequest.js';
|
|
156
157
|
export { FlowCreateRequestFromJSON, FlowCreateRequestFromJSONTyped, FlowCreateRequestToJSON } from './models/FlowCreateRequest.js';
|
|
@@ -159,6 +160,7 @@ export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchan
|
|
|
159
160
|
export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
|
|
160
161
|
export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON } from './models/FlowFailure.js';
|
|
161
162
|
export { FlowFeeBreakdownFromJSON, FlowFeeBreakdownFromJSONTyped, FlowFeeBreakdownToJSON } from './models/FlowFeeBreakdown.js';
|
|
163
|
+
export { FlowFeeConfigFromJSON, FlowFeeConfigFromJSONTyped, FlowFeeConfigToJSON } from './models/FlowFeeConfig.js';
|
|
162
164
|
export { FlowGasEstimateFromJSON, FlowGasEstimateFromJSONTyped, FlowGasEstimateToJSON } from './models/FlowGasEstimate.js';
|
|
163
165
|
export { FlowModeEnum, FlowModeEnumFromJSON, FlowModeEnumFromJSONTyped, FlowModeEnumToJSON } from './models/FlowModeEnum.js';
|
|
164
166
|
export { FlowPrepareSigningRequestFromJSON, FlowPrepareSigningRequestFromJSONTyped, FlowPrepareSigningRequestToJSON } from './models/FlowPrepareSigningRequest.js';
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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 FeeRecipientConfigFromJSON(json) {
|
|
19
|
+
return FeeRecipientConfigFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function FeeRecipientConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'percentage': json['percentage'],
|
|
27
|
+
'walletAddress': json['walletAddress'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function FeeRecipientConfigToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'percentage': value.percentage,
|
|
39
|
+
'walletAddress': value.walletAddress,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.FeeRecipientConfigFromJSON = FeeRecipientConfigFromJSON;
|
|
44
|
+
exports.FeeRecipientConfigFromJSONTyped = FeeRecipientConfigFromJSONTyped;
|
|
45
|
+
exports.FeeRecipientConfigToJSON = FeeRecipientConfigToJSON;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeeRecipientConfig.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FeeRecipientConfig.ts"],"sourcesContent":null,"names":[],"mappings":";;;;AAAA;AACA;AACA;;;;;;;;;;AAUG;AAuBG,SAAU,0BAA0B,CAAC,IAAS,EAAA;AAChD,IAAA,OAAO,+BAA+B,CAAC,IAAW,CAAC,CAAC;AACxD,CAAC;AAEe,SAAA,+BAA+B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACnF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;AAChC,QAAA,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;KACzC,CAAC;AACN,CAAC;AAEK,SAAU,wBAAwB,CAAC,KAAiC,EAAA;AACtE,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,eAAe,EAAE,KAAK,CAAC,aAAa;KACvC,CAAC;AACN;;;;;;"}
|
|
@@ -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 single fee recipient with a percentage and wallet address.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FeeRecipientConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface FeeRecipientConfig {
|
|
18
|
+
/**
|
|
19
|
+
* Fraction of the source amount to collect as a fee (0–1)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof FeeRecipientConfig
|
|
22
|
+
*/
|
|
23
|
+
percentage: number;
|
|
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 FeeRecipientConfig
|
|
28
|
+
*/
|
|
29
|
+
walletAddress: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function FeeRecipientConfigFromJSON(json: any): FeeRecipientConfig;
|
|
32
|
+
export declare function FeeRecipientConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeeRecipientConfig;
|
|
33
|
+
export declare function FeeRecipientConfigToJSON(value?: FeeRecipientConfig | 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 FeeRecipientConfigFromJSON(json) {
|
|
15
|
+
return FeeRecipientConfigFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function FeeRecipientConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'percentage': json['percentage'],
|
|
23
|
+
'walletAddress': json['walletAddress'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function FeeRecipientConfigToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'percentage': value.percentage,
|
|
35
|
+
'walletAddress': value.walletAddress,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { FeeRecipientConfigFromJSON, FeeRecipientConfigFromJSONTyped, FeeRecipientConfigToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeeRecipientConfig.js","sources":["../../../../../libs/sdk-api-core/src/models/FeeRecipientConfig.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAuBG,SAAU,0BAA0B,CAAC,IAAS,EAAA;AAChD,IAAA,OAAO,+BAA+B,CAAC,IAAW,CAAC,CAAC;AACxD,CAAC;AAEe,SAAA,+BAA+B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACnF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;AAChC,QAAA,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;KACzC,CAAC;AACN,CAAC;AAEK,SAAU,wBAAwB,CAAC,KAAiC,EAAA;AACtE,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,eAAe,EAAE,KAAK,CAAC,aAAa;KACvC,CAAC;AACN;;;;"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var DestinationConfigInput = require('./DestinationConfigInput.cjs');
|
|
7
|
+
var FlowFeeConfig = require('./FlowFeeConfig.cjs');
|
|
7
8
|
var SettlementConfigInput = require('./SettlementConfigInput.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
@@ -20,6 +21,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
21
|
'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
21
22
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
22
23
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
24
|
+
'feeConfig': !runtime.exists(json, 'feeConfig') ? undefined : FlowFeeConfig.FlowFeeConfigFromJSON(json['feeConfig']),
|
|
23
25
|
'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -36,6 +38,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
36
38
|
'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
|
|
37
39
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
38
40
|
'memo': value.memo,
|
|
41
|
+
'feeConfig': FlowFeeConfig.FlowFeeConfigToJSON(value.feeConfig),
|
|
39
42
|
'expiresIn': value.expiresIn,
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowCreateRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowCreateRequest.ts"],"sourcesContent":null,"names":["SettlementConfigInputFromJSON","DestinationConfigInputFromJSON","exists","SettlementConfigInputToJSON","DestinationConfigInputToJSON"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlowCreateRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowCreateRequest.ts"],"sourcesContent":null,"names":["SettlementConfigInputFromJSON","DestinationConfigInputFromJSON","exists","FlowFeeConfig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,EAAE,KAAK,CAAC,QAAQ;AAC1B,QAAA,kBAAkB,EAAEE,iDAA2B,CAAC,KAAK,CAAC,gBAAgB,CAAC;AACvE,QAAA,mBAAmB,EAAEC,mDAA4B,CAAC,KAAK,CAAC,iBAAiB,CAAC;QAC1E,MAAM,EAAE,KAAK,CAAC,IAAI;AAClB,QAAA,WAAW,EAAEC,iCAAmB,CAAC,KAAK,CAAC,SAAS,CAAC;QACjD,WAAW,EAAE,KAAK,CAAC,SAAS;KAC/B,CAAC;AACN;;;;;;"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { DestinationConfigInput } from './DestinationConfigInput';
|
|
13
|
+
import { FlowFeeConfig } from './FlowFeeConfig';
|
|
13
14
|
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
14
15
|
/**
|
|
15
16
|
* 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.
|
|
@@ -47,6 +48,12 @@ export interface FlowCreateRequest {
|
|
|
47
48
|
* @memberof FlowCreateRequest
|
|
48
49
|
*/
|
|
49
50
|
memo?: object;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {FlowFeeConfig}
|
|
54
|
+
* @memberof FlowCreateRequest
|
|
55
|
+
*/
|
|
56
|
+
feeConfig?: FlowFeeConfig;
|
|
50
57
|
/**
|
|
51
58
|
* Seconds until the flow expires (default 3600, clamped server-side)
|
|
52
59
|
* @type {number}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
|
|
3
|
+
import { FlowFeeConfigFromJSON, FlowFeeConfigToJSON } from './FlowFeeConfig.js';
|
|
3
4
|
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
@@ -16,6 +17,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
17
|
'settlementConfig': SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
17
18
|
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
18
19
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
20
|
+
'feeConfig': !exists(json, 'feeConfig') ? undefined : FlowFeeConfigFromJSON(json['feeConfig']),
|
|
19
21
|
'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
20
22
|
};
|
|
21
23
|
}
|
|
@@ -32,6 +34,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
32
34
|
'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
|
|
33
35
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
34
36
|
'memo': value.memo,
|
|
37
|
+
'feeConfig': FlowFeeConfigToJSON(value.feeConfig),
|
|
35
38
|
'expiresIn': value.expiresIn,
|
|
36
39
|
};
|
|
37
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowCreateRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowCreateRequest.ts"],"sourcesContent":null,"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlowCreateRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowCreateRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;AAAA;AAoFM,SAAU,yBAAyB,CAAC,IAAS,EAAA;AAC/C,IAAA,OAAO,8BAA8B,CAAC,IAAW,CAAC,CAAC;AACvD,CAAC;AAEe,SAAA,8BAA8B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAClF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,Q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
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var FeeRecipientConfig = require('./FeeRecipientConfig.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowFeeConfigFromJSON(json) {
|
|
9
|
+
return FlowFeeConfigFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowFeeConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'recipients': (json['recipients'].map(FeeRecipientConfig.FeeRecipientConfigFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function FlowFeeConfigToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'recipients': (value.recipients.map(FeeRecipientConfig.FeeRecipientConfigToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.FlowFeeConfigFromJSON = FlowFeeConfigFromJSON;
|
|
32
|
+
exports.FlowFeeConfigFromJSONTyped = FlowFeeConfigFromJSONTyped;
|
|
33
|
+
exports.FlowFeeConfigToJSON = FlowFeeConfigToJSON;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowFeeConfig.cjs","sources":["../../../../../libs/sdk-api-core/src/models/FlowFeeConfig.ts"],"sourcesContent":null,"names":["FeeRecipientConfigFromJSON","FeeRecipientConfigToJSON"],"mappings":";;;;;;AAAA;AAoCM,SAAU,qBAAqB,CAAC,IAAS,EAAA;AAC3C,IAAA,OAAO,0BAA0B,CAAC,IAAW,CAAC,CAAC;AACnD,CAAC;AAEe,SAAA,0BAA0B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC9E,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,GAAI,IAAI,CAAC,YAAY,CAAgB,CAAC,GAAG,CAACA,6CAA0B,CAAC,CAAC;KACrF,CAAC;AACN,CAAC;AAEK,SAAU,mBAAmB,CAAC,KAA4B,EAAA;AAC5D,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,GAAI,KAAK,CAAC,UAAyB,CAAC,GAAG,CAACC,2CAAwB,CAAC,CAAC;KACjF,CAAC;AACN;;;;;;"}
|
|
@@ -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 { FeeRecipientConfig } from './FeeRecipientConfig';
|
|
13
|
+
/**
|
|
14
|
+
* Fee collection configuration specifying recipients and their shares.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FlowFeeConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface FlowFeeConfig {
|
|
19
|
+
/**
|
|
20
|
+
* Fee recipients (1–10) who each receive a share of the source amount on swaps
|
|
21
|
+
* @type {Array<FeeRecipientConfig>}
|
|
22
|
+
* @memberof FlowFeeConfig
|
|
23
|
+
*/
|
|
24
|
+
recipients: Array<FeeRecipientConfig>;
|
|
25
|
+
}
|
|
26
|
+
export declare function FlowFeeConfigFromJSON(json: any): FlowFeeConfig;
|
|
27
|
+
export declare function FlowFeeConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowFeeConfig;
|
|
28
|
+
export declare function FlowFeeConfigToJSON(value?: FlowFeeConfig | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FeeRecipientConfigFromJSON, FeeRecipientConfigToJSON } from './FeeRecipientConfig.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowFeeConfigFromJSON(json) {
|
|
5
|
+
return FlowFeeConfigFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowFeeConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'recipients': (json['recipients'].map(FeeRecipientConfigFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function FlowFeeConfigToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'recipients': (value.recipients.map(FeeRecipientConfigToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { FlowFeeConfigFromJSON, FlowFeeConfigFromJSONTyped, FlowFeeConfigToJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowFeeConfig.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowFeeConfig.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAoCM,SAAU,qBAAqB,CAAC,IAAS,EAAA;AAC3C,IAAA,OAAO,0BAA0B,CAAC,IAAW,CAAC,CAAC;AACnD,CAAC;AAEe,SAAA,0BAA0B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC9E,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,GAAI,IAAI,CAAC,YAAY,CAAgB,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;KACrF,CAAC;AACN,CAAC;AAEK,SAAU,mBAAmB,CAAC,KAA4B,EAAA;AAC5D,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,GAAI,KAAK,CAAC,UAAyB,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;KACjF,CAAC;AACN;;;;"}
|
package/src/models/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ export * from './ExternalWalletFundingDefaultSettingsToken';
|
|
|
148
148
|
export * from './ExternalWalletFundingTokenRule';
|
|
149
149
|
export * from './FarcasterSignInRequest';
|
|
150
150
|
export * from './FeatureFlags';
|
|
151
|
+
export * from './FeeRecipientConfig';
|
|
151
152
|
export * from './Flow';
|
|
152
153
|
export * from './FlowAttachSourceRequest';
|
|
153
154
|
export * from './FlowCreateRequest';
|
|
@@ -156,6 +157,7 @@ export * from './FlowExchangeSource';
|
|
|
156
157
|
export * from './FlowExecutionStateEnum';
|
|
157
158
|
export * from './FlowFailure';
|
|
158
159
|
export * from './FlowFeeBreakdown';
|
|
160
|
+
export * from './FlowFeeConfig';
|
|
159
161
|
export * from './FlowGasEstimate';
|
|
160
162
|
export * from './FlowModeEnum';
|
|
161
163
|
export * from './FlowPrepareSigningRequest';
|