@dynamic-labs/sdk-api 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1061",
3
+ "version": "0.0.1063",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -316,7 +316,7 @@ var WalletTransactionsResponse = require('../models/WalletTransactionsResponse.c
316
316
  */
317
317
  class SDKApi extends runtime.BaseAPI {
318
318
  /**
319
- * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
319
+ * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
320
320
  * Attach a source to a flow and mint a session token
321
321
  */
322
322
  async attachFlowSourceRaw(requestParameters, initOverrides) {
@@ -332,6 +332,9 @@ class SDKApi extends runtime.BaseAPI {
332
332
  const queryParameters = {};
333
333
  const headerParameters = {};
334
334
  headerParameters['Content-Type'] = 'application/json';
335
+ if (requestParameters.xDynamicFlowSessionToken !== undefined && requestParameters.xDynamicFlowSessionToken !== null) {
336
+ headerParameters['X-Dynamic-Flow-Session-Token'] = String(requestParameters.xDynamicFlowSessionToken);
337
+ }
335
338
  const response = await this.request({
336
339
  path: `/sdk/{environmentId}/flow/{flowId}/source`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
337
340
  method: 'POST',
@@ -342,7 +345,7 @@ class SDKApi extends runtime.BaseAPI {
342
345
  return new runtime.JSONApiResponse(response, (jsonValue) => FlowSourceResponse.FlowSourceResponseFromJSON(jsonValue));
343
346
  }
344
347
  /**
345
- * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
348
+ * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
346
349
  * Attach a source to a flow and mint a session token
347
350
  */
348
351
  async attachFlowSource(requestParameters, initOverrides) {
@@ -15,6 +15,7 @@ export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
17
17
  flowAttachSourceRequest: FlowAttachSourceRequest;
18
+ xDynamicFlowSessionToken?: string;
18
19
  }
19
20
  export interface AttachFlowSourceOptionsRequest {
20
21
  environmentId: string;
@@ -1380,12 +1381,12 @@ export interface WalletsVerifyOptionsRequest {
1380
1381
  */
1381
1382
  export declare class SDKApi extends runtime.BaseAPI {
1382
1383
  /**
1383
- * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
1384
+ * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
1384
1385
  * Attach a source to a flow and mint a session token
1385
1386
  */
1386
1387
  attachFlowSourceRaw(requestParameters: AttachFlowSourceRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceResponse>>;
1387
1388
  /**
1388
- * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
1389
+ * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
1389
1390
  * Attach a source to a flow and mint a session token
1390
1391
  */
1391
1392
  attachFlowSource(requestParameters: AttachFlowSourceRequest, initOverrides?: RequestInit): Promise<FlowSourceResponse>;
@@ -312,7 +312,7 @@ import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactions
312
312
  */
313
313
  class SDKApi extends BaseAPI {
314
314
  /**
315
- * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
315
+ * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
316
316
  * Attach a source to a flow and mint a session token
317
317
  */
318
318
  async attachFlowSourceRaw(requestParameters, initOverrides) {
@@ -328,6 +328,9 @@ class SDKApi extends BaseAPI {
328
328
  const queryParameters = {};
329
329
  const headerParameters = {};
330
330
  headerParameters['Content-Type'] = 'application/json';
331
+ if (requestParameters.xDynamicFlowSessionToken !== undefined && requestParameters.xDynamicFlowSessionToken !== null) {
332
+ headerParameters['X-Dynamic-Flow-Session-Token'] = String(requestParameters.xDynamicFlowSessionToken);
333
+ }
331
334
  const response = await this.request({
332
335
  path: `/sdk/{environmentId}/flow/{flowId}/source`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
333
336
  method: 'POST',
@@ -338,7 +341,7 @@ class SDKApi extends BaseAPI {
338
341
  return new JSONApiResponse(response, (jsonValue) => FlowSourceResponseFromJSON(jsonValue));
339
342
  }
340
343
  /**
341
- * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time.
344
+ * Sets the source wallet address and chain on an initiated flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow still being initiated and by CORS. At most one live token exists per flow at a time. When re-attaching from the signing state, the existing session token must be supplied to prove the caller is the original signer.
342
345
  * Attach a source to a flow and mint a session token
343
346
  */
344
347
  async attachFlowSource(requestParameters, initOverrides) {
package/src/index.cjs CHANGED
@@ -300,6 +300,7 @@ var ExternalWalletFundingDefaultSettingsToken = require('./models/ExternalWallet
300
300
  var ExternalWalletFundingTokenRule = require('./models/ExternalWalletFundingTokenRule.cjs');
301
301
  var FarcasterSignInRequest = require('./models/FarcasterSignInRequest.cjs');
302
302
  var FeatureFlags = require('./models/FeatureFlags.cjs');
303
+ var FeeRecipientConfig = require('./models/FeeRecipientConfig.cjs');
303
304
  var Flow = require('./models/Flow.cjs');
304
305
  var FlowAnalyticsSummaryResponse = require('./models/FlowAnalyticsSummaryResponse.cjs');
305
306
  var FlowAnalyticsSummaryResponseCumulativeVolume = require('./models/FlowAnalyticsSummaryResponseCumulativeVolume.cjs');
@@ -319,6 +320,7 @@ var FlowExchangeSource = require('./models/FlowExchangeSource.cjs');
319
320
  var FlowExecutionStateEnum = require('./models/FlowExecutionStateEnum.cjs');
320
321
  var FlowFailure = require('./models/FlowFailure.cjs');
321
322
  var FlowFeeBreakdown = require('./models/FlowFeeBreakdown.cjs');
323
+ var FlowFeeConfig = require('./models/FlowFeeConfig.cjs');
322
324
  var FlowGasEstimate = require('./models/FlowGasEstimate.cjs');
323
325
  var FlowListItem = require('./models/FlowListItem.cjs');
324
326
  var FlowListItemFailure = require('./models/FlowListItemFailure.cjs');
@@ -1862,6 +1864,9 @@ exports.FarcasterSignInRequestToJSON = FarcasterSignInRequest.FarcasterSignInReq
1862
1864
  exports.FeatureFlagsFromJSON = FeatureFlags.FeatureFlagsFromJSON;
1863
1865
  exports.FeatureFlagsFromJSONTyped = FeatureFlags.FeatureFlagsFromJSONTyped;
1864
1866
  exports.FeatureFlagsToJSON = FeatureFlags.FeatureFlagsToJSON;
1867
+ exports.FeeRecipientConfigFromJSON = FeeRecipientConfig.FeeRecipientConfigFromJSON;
1868
+ exports.FeeRecipientConfigFromJSONTyped = FeeRecipientConfig.FeeRecipientConfigFromJSONTyped;
1869
+ exports.FeeRecipientConfigToJSON = FeeRecipientConfig.FeeRecipientConfigToJSON;
1865
1870
  exports.FlowFromJSON = Flow.FlowFromJSON;
1866
1871
  exports.FlowFromJSONTyped = Flow.FlowFromJSONTyped;
1867
1872
  exports.FlowToJSON = Flow.FlowToJSON;
@@ -1927,6 +1932,9 @@ exports.FlowFailureToJSON = FlowFailure.FlowFailureToJSON;
1927
1932
  exports.FlowFeeBreakdownFromJSON = FlowFeeBreakdown.FlowFeeBreakdownFromJSON;
1928
1933
  exports.FlowFeeBreakdownFromJSONTyped = FlowFeeBreakdown.FlowFeeBreakdownFromJSONTyped;
1929
1934
  exports.FlowFeeBreakdownToJSON = FlowFeeBreakdown.FlowFeeBreakdownToJSON;
1935
+ exports.FlowFeeConfigFromJSON = FlowFeeConfig.FlowFeeConfigFromJSON;
1936
+ exports.FlowFeeConfigFromJSONTyped = FlowFeeConfig.FlowFeeConfigFromJSONTyped;
1937
+ exports.FlowFeeConfigToJSON = FlowFeeConfig.FlowFeeConfigToJSON;
1930
1938
  exports.FlowGasEstimateFromJSON = FlowGasEstimate.FlowGasEstimateFromJSON;
1931
1939
  exports.FlowGasEstimateFromJSONTyped = FlowGasEstimate.FlowGasEstimateFromJSONTyped;
1932
1940
  exports.FlowGasEstimateToJSON = FlowGasEstimate.FlowGasEstimateToJSON;
package/src/index.js CHANGED
@@ -296,6 +296,7 @@ export { ExternalWalletFundingDefaultSettingsTokenFromJSON, ExternalWalletFundin
296
296
  export { ExternalWalletFundingTokenRule, ExternalWalletFundingTokenRuleFromJSON, ExternalWalletFundingTokenRuleFromJSONTyped, ExternalWalletFundingTokenRuleToJSON } from './models/ExternalWalletFundingTokenRule.js';
297
297
  export { FarcasterSignInRequestFromJSON, FarcasterSignInRequestFromJSONTyped, FarcasterSignInRequestToJSON } from './models/FarcasterSignInRequest.js';
298
298
  export { FeatureFlagsFromJSON, FeatureFlagsFromJSONTyped, FeatureFlagsToJSON } from './models/FeatureFlags.js';
299
+ export { FeeRecipientConfigFromJSON, FeeRecipientConfigFromJSONTyped, FeeRecipientConfigToJSON } from './models/FeeRecipientConfig.js';
299
300
  export { FlowFromJSON, FlowFromJSONTyped, FlowToJSON } from './models/Flow.js';
300
301
  export { FlowAnalyticsSummaryResponseFromJSON, FlowAnalyticsSummaryResponseFromJSONTyped, FlowAnalyticsSummaryResponseHealthStatusEnum, FlowAnalyticsSummaryResponseToJSON } from './models/FlowAnalyticsSummaryResponse.js';
301
302
  export { FlowAnalyticsSummaryResponseCumulativeVolumeFromJSON, FlowAnalyticsSummaryResponseCumulativeVolumeFromJSONTyped, FlowAnalyticsSummaryResponseCumulativeVolumeToJSON } from './models/FlowAnalyticsSummaryResponseCumulativeVolume.js';
@@ -315,6 +316,7 @@ export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchan
315
316
  export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
316
317
  export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON } from './models/FlowFailure.js';
317
318
  export { FlowFeeBreakdownFromJSON, FlowFeeBreakdownFromJSONTyped, FlowFeeBreakdownToJSON } from './models/FlowFeeBreakdown.js';
319
+ export { FlowFeeConfigFromJSON, FlowFeeConfigFromJSONTyped, FlowFeeConfigToJSON } from './models/FlowFeeConfig.js';
318
320
  export { FlowGasEstimateFromJSON, FlowGasEstimateFromJSONTyped, FlowGasEstimateToJSON } from './models/FlowGasEstimate.js';
319
321
  export { FlowListItemFromJSON, FlowListItemFromJSONTyped, FlowListItemSourceTypeEnum, FlowListItemToJSON } from './models/FlowListItem.js';
320
322
  export { FlowListItemFailureFromJSON, FlowListItemFailureFromJSONTyped, FlowListItemFailureToJSON } from './models/FlowListItemFailure.js';
@@ -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,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 };
@@ -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
  }
@@ -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
  }
@@ -0,0 +1,33 @@
1
+ 'use strict';
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,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 };
@@ -250,6 +250,7 @@ export * from './ExternalWalletFundingDefaultSettingsToken';
250
250
  export * from './ExternalWalletFundingTokenRule';
251
251
  export * from './FarcasterSignInRequest';
252
252
  export * from './FeatureFlags';
253
+ export * from './FeeRecipientConfig';
253
254
  export * from './Flow';
254
255
  export * from './FlowAnalyticsSummaryResponse';
255
256
  export * from './FlowAnalyticsSummaryResponseCumulativeVolume';
@@ -269,6 +270,7 @@ export * from './FlowExchangeSource';
269
270
  export * from './FlowExecutionStateEnum';
270
271
  export * from './FlowFailure';
271
272
  export * from './FlowFeeBreakdown';
273
+ export * from './FlowFeeConfig';
272
274
  export * from './FlowGasEstimate';
273
275
  export * from './FlowListItem';
274
276
  export * from './FlowListItemFailure';