@dynamic-labs/sdk-api-core 0.118.0 → 0.120.0

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.
@@ -75,6 +75,7 @@ import '../models/ExternalWalletFundingDefaultChain.js';
75
75
  import '../models/ExternalWalletFundingTokenRule.js';
76
76
  import '../models/FlowModeEnum.js';
77
77
  import '../models/FlowCurrencyEnum.js';
78
+ import '../models/FlowQuoteAmountCurrencyEnum.js';
78
79
  import '../models/OnrampProviders.js';
79
80
  import '../models/GetEVMSponsoredTransactionStatusResponse.js';
80
81
  import '../models/PasskeyTransport.js';
@@ -1 +1 @@
1
- {"version":3,"file":"WaasApi.js","sources":["../../../../../libs/sdk-api-core/src/apis/WaasApi.ts"],"sourcesContent":null,"names":["runtime.BaseAPI","runtime.RequiredError","runtime.JSONApiResponse","runtime.VoidApiResponse"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AA0CA;;AAEG;AACU,MAAA,OAAQ,SAAQA,OAAe,CAAA;AAExC;;;AAGG;AACH,IAAA,MAAM,wCAAwC,CAAC,iBAA+D,EAAE,aAA2B,EAAA;AACvI,QAAA,IAAI,iBAAiB,CAAC,aAAa,KAAK,IAAI,IAAI,iBAAiB,CAAC,aAAa,KAAK,SAAS,EAAE;YAC3F,MAAM,IAAIC,aAAqB,CAAC,eAAe,EAAC,8HAA8H,CAAC,CAAC;SACnL;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;AAEjD,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;AAChC,YAAA,IAAI,EAAE,CAA+D,6DAAA,CAAA,CAAC,OAAO,CAAC,CAAA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a,CAAC,CAAC;AAElB,QAAA,OAAO,IAAIE,eAAuB,CAAC,QAAQ,CAAC,CAAC;KAChD;AAED;;;AAGG;AACH,IAAA,MAAM,yCAAyC,CAAC,iBAAmE,EAAE,aAA2B,EAAA;QAC5I,MAAM,IAAI,CAAC,4CAA4C,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;KAC7F;AAEJ;;;;"}
1
+ {"version":3,"file":"WaasApi.js","sources":["../../../../../libs/sdk-api-core/src/apis/WaasApi.ts"],"sourcesContent":null,"names":["runtime.BaseAPI","runtime.RequiredError","runtime.JSONApiResponse","runtime.VoidApiResponse"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AA0CA;;AAEG;AACU,MAAA,OAAQ,SAAQA,OAAe,CAAA;AAExC;;;AAGG;AACH,IAAA,MAAM,wCAAwC,CAAC,iBAA+D,EAAE,aAA2B,EAAA;AACvI,QAAA,IAAI,iBAAiB,CAAC,aAAa,KAAK,IAAI,IAAI,iBAAiB,CAAC,aAAa,KAAK,SAAS,EAAE;YAC3F,MAAM,IAAIC,aAAqB,CAAC,eAAe,EAAC,8HAA8H,CAAC,CAAC;SACnL;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;AAEjD,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;AAChC,YAAA,IAAI,EAAE,CAA+D,6DAAA,CAAA,CAAC,OAAO,CAAC,CAAA,CAAA,EAAI,eAAe,CAAG,CAAA,CAAA,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC;AAClK,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,OAAO,EAA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AAM,IAAI,CAAC,4CAA4C,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;KAC7F;AAEJ;;;;"}
package/src/index.js CHANGED
@@ -194,6 +194,7 @@ export { FlowAttachSourceRequestFromJSON, FlowAttachSourceRequestFromJSONTyped,
194
194
  export { FlowCreateRequestFromJSON, FlowCreateRequestFromJSONTyped, FlowCreateRequestToJSON } from './models/FlowCreateRequest.js';
195
195
  export { FlowCreateResponseFromJSON, FlowCreateResponseFromJSONTyped, FlowCreateResponseToJSON } from './models/FlowCreateResponse.js';
196
196
  export { FlowCurrencyEnum, FlowCurrencyEnumFromJSON, FlowCurrencyEnumFromJSONTyped, FlowCurrencyEnumToJSON } from './models/FlowCurrencyEnum.js';
197
+ export { FlowExchangeFromJSON, FlowExchangeFromJSONTyped, FlowExchangeToJSON } from './models/FlowExchange.js';
197
198
  export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchangeSourceToJSON } from './models/FlowExchangeSource.js';
198
199
  export { FlowExchangesResponseFromJSON, FlowExchangesResponseFromJSONTyped, FlowExchangesResponseToJSON } from './models/FlowExchangesResponse.js';
199
200
  export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
@@ -212,6 +213,7 @@ export { FlowGasEstimateFromJSON, FlowGasEstimateFromJSONTyped, FlowGasEstimateT
212
213
  export { FlowModeEnum, FlowModeEnumFromJSON, FlowModeEnumFromJSONTyped, FlowModeEnumToJSON } from './models/FlowModeEnum.js';
213
214
  export { FlowPrepareSigningRequestFromJSON, FlowPrepareSigningRequestFromJSONTyped, FlowPrepareSigningRequestToJSON } from './models/FlowPrepareSigningRequest.js';
214
215
  export { FlowQuoteFromJSON, FlowQuoteFromJSONTyped, FlowQuoteToJSON } from './models/FlowQuote.js';
216
+ export { FlowQuoteAmountCurrencyEnum, FlowQuoteAmountCurrencyEnumFromJSON, FlowQuoteAmountCurrencyEnumFromJSONTyped, FlowQuoteAmountCurrencyEnumToJSON } from './models/FlowQuoteAmountCurrencyEnum.js';
215
217
  export { FlowQuoteRequestFromJSON, FlowQuoteRequestFromJSONTyped, FlowQuoteRequestToJSON } from './models/FlowQuoteRequest.js';
216
218
  export { FlowRecordBroadcastRequestFromJSON, FlowRecordBroadcastRequestFromJSONTyped, FlowRecordBroadcastRequestToJSON } from './models/FlowRecordBroadcastRequest.js';
217
219
  export { FlowRiskStateEnum, FlowRiskStateEnumFromJSON, FlowRiskStateEnumFromJSONTyped, FlowRiskStateEnumToJSON } from './models/FlowRiskStateEnum.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -22,7 +22,7 @@ export interface BadRequest {
22
22
  */
23
23
  error?: string;
24
24
  /**
25
- * Machine-readable reason for the 400, set only by endpoints that distinguish rejections. Flow endpoints use exchange_not_supported and exchange_currency_unsupported.
25
+ * Machine-readable reason for the 400, set only by endpoints that distinguish rejections.
26
26
  * @type {string}
27
27
  * @memberof BadRequest
28
28
  */
@@ -42,7 +42,7 @@ export interface Flow {
42
42
  */
43
43
  mode: FlowModeEnum;
44
44
  /**
45
- * Amount in the specified currency. Set once at create by the API-key caller and immutable thereafter.
45
+ * Amount in the specified currency. Set at create by the API-key caller. Immutable for payment and withdraw flows; for deposit flows it is a suggested amount the payer can change when quoting.
46
46
  * @type {string}
47
47
  * @memberof Flow
48
48
  */
@@ -15,7 +15,7 @@ import { FlowFeeConfig } from './FlowFeeConfig';
15
15
  import { FlowUIConfig } from './FlowUIConfig';
16
16
  import { SettlementConfigInput } from './SettlementConfigInput';
17
17
  /**
18
- * 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.
18
+ * Create-time payload for a flow. currency, settlementConfig and destinationConfig are written once here (by a trusted API-key caller) and are accepted by no later endpoint; so is amount, except that a deposit flow's payer can change it when quoting. mode is supplied in the URL path.
19
19
  * @export
20
20
  * @interface FlowCreateRequest
21
21
  */
@@ -0,0 +1,40 @@
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 { ExchangeKeyEnum } from './ExchangeKeyEnum';
13
+ /**
14
+ * An exchange a flow can be paid with, ready to display.
15
+ * @export
16
+ * @interface FlowExchange
17
+ */
18
+ export interface FlowExchange {
19
+ /**
20
+ *
21
+ * @type {ExchangeKeyEnum}
22
+ * @memberof FlowExchange
23
+ */
24
+ key: ExchangeKeyEnum;
25
+ /**
26
+ * The exchange's display name, e.g. "Coinbase".
27
+ * @type {string}
28
+ * @memberof FlowExchange
29
+ */
30
+ label: string;
31
+ /**
32
+ * Absolute HTTPS URL of the exchange's logo.
33
+ * @type {string}
34
+ * @memberof FlowExchange
35
+ */
36
+ iconUrl: string;
37
+ }
38
+ export declare function FlowExchangeFromJSON(json: any): FlowExchange;
39
+ export declare function FlowExchangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowExchange;
40
+ export declare function FlowExchangeToJSON(value?: FlowExchange | null): any;
@@ -0,0 +1,31 @@
1
+ import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowExchangeFromJSON(json) {
5
+ return FlowExchangeFromJSONTyped(json);
6
+ }
7
+ function FlowExchangeFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'key': ExchangeKeyEnumFromJSON(json['key']),
13
+ 'label': json['label'],
14
+ 'iconUrl': json['iconUrl'],
15
+ };
16
+ }
17
+ function FlowExchangeToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'key': ExchangeKeyEnumToJSON(value.key),
26
+ 'label': value.label,
27
+ 'iconUrl': value.iconUrl,
28
+ };
29
+ }
30
+
31
+ export { FlowExchangeFromJSON, FlowExchangeFromJSONTyped, FlowExchangeToJSON };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowExchange.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowExchange.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAgDM,SAAU,oBAAoB,CAAC,IAAS,EAAA;AAC1C,IAAA,OAAO,yBAAyB,CAAC,IAAW,CAAC,CAAC;AAClD,CAAC;AAEe,SAAA,yBAAyB,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7E,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3C,QAAA,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;AACtB,QAAA,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAEK,SAAU,kBAAkB,CAAC,KAA2B,EAAA;AAC1D,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;AAEH,QAAA,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC,GAAG,CAAC;QACvC,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN;;;;"}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ExchangeKeyEnum } from './ExchangeKeyEnum';
12
+ import { FlowExchange } from './FlowExchange';
13
13
  /**
14
14
  * The exchanges a flow can be paid with.
15
15
  * @export
@@ -18,10 +18,10 @@ import { ExchangeKeyEnum } from './ExchangeKeyEnum';
18
18
  export interface FlowExchangesResponse {
19
19
  /**
20
20
  * Exchanges that can be attached as the flow's source.
21
- * @type {Array<ExchangeKeyEnum>}
21
+ * @type {Array<FlowExchange>}
22
22
  * @memberof FlowExchangesResponse
23
23
  */
24
- exchanges: Array<ExchangeKeyEnum>;
24
+ exchanges: Array<FlowExchange>;
25
25
  }
26
26
  export declare function FlowExchangesResponseFromJSON(json: any): FlowExchangesResponse;
27
27
  export declare function FlowExchangesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowExchangesResponse;
@@ -1,4 +1,4 @@
1
- import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
1
+ import { FlowExchangeFromJSON, FlowExchangeToJSON } from './FlowExchange.js';
2
2
 
3
3
  /* tslint:disable */
4
4
  function FlowExchangesResponseFromJSON(json) {
@@ -9,7 +9,7 @@ function FlowExchangesResponseFromJSONTyped(json, ignoreDiscriminator) {
9
9
  return json;
10
10
  }
11
11
  return {
12
- 'exchanges': (json['exchanges'].map(ExchangeKeyEnumFromJSON)),
12
+ 'exchanges': (json['exchanges'].map(FlowExchangeFromJSON)),
13
13
  };
14
14
  }
15
15
  function FlowExchangesResponseToJSON(value) {
@@ -20,7 +20,7 @@ function FlowExchangesResponseToJSON(value) {
20
20
  return null;
21
21
  }
22
22
  return {
23
- 'exchanges': (value.exchanges.map(ExchangeKeyEnumToJSON)),
23
+ 'exchanges': (value.exchanges.map(FlowExchangeToJSON)),
24
24
  };
25
25
  }
26
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"FlowExchangesResponse.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowExchangesResponse.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAoCM,SAAU,6BAA6B,CAAC,IAAS,EAAA;AACnD,IAAA,OAAO,kCAAkC,CAAC,IAAW,CAAC,CAAC;AAC3D,CAAC;AAEe,SAAA,kCAAkC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACtF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,WAAW,GAAI,IAAI,CAAC,WAAW,CAAgB,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;KAChF,CAAC;AACN,CAAC;AAEK,SAAU,2BAA2B,CAAC,KAAoC,EAAA;AAC5E,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,WAAW,GAAI,KAAK,CAAC,SAAwB,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;KAC5E,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"FlowExchangesResponse.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowExchangesResponse.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAoCM,SAAU,6BAA6B,CAAC,IAAS,EAAA;AACnD,IAAA,OAAO,kCAAkC,CAAC,IAAW,CAAC,CAAC;AAC3D,CAAC;AAEe,SAAA,kCAAkC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACtF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,WAAW,GAAI,IAAI,CAAC,WAAW,CAAgB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KAC7E,CAAC;AACN,CAAC;AAEK,SAAU,2BAA2B,CAAC,KAAoC,EAAA;AAC5E,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,WAAW,GAAI,KAAK,CAAC,SAAwB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACzE,CAAC;AACN;;;;"}
@@ -0,0 +1,23 @@
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
+ * Currency a quote-time amount is denominated in. USD prices the amount against the source token. SOURCE_TOKEN denominates it directly in the source token (e.g. "1" for 1 ETH, not wei).
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum FlowQuoteAmountCurrencyEnum {
18
+ Usd = "USD",
19
+ SourceToken = "SOURCE_TOKEN"
20
+ }
21
+ export declare function FlowQuoteAmountCurrencyEnumFromJSON(json: any): FlowQuoteAmountCurrencyEnum;
22
+ export declare function FlowQuoteAmountCurrencyEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowQuoteAmountCurrencyEnum;
23
+ export declare function FlowQuoteAmountCurrencyEnumToJSON(value?: FlowQuoteAmountCurrencyEnum | null): any;
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Currency a quote-time amount is denominated in. USD prices the amount against the source token. SOURCE_TOKEN denominates it directly in the source token (e.g. "1" for 1 ETH, not wei).
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var FlowQuoteAmountCurrencyEnum;
20
+ (function (FlowQuoteAmountCurrencyEnum) {
21
+ FlowQuoteAmountCurrencyEnum["Usd"] = "USD";
22
+ FlowQuoteAmountCurrencyEnum["SourceToken"] = "SOURCE_TOKEN";
23
+ })(FlowQuoteAmountCurrencyEnum || (FlowQuoteAmountCurrencyEnum = {}));
24
+ function FlowQuoteAmountCurrencyEnumFromJSON(json) {
25
+ return FlowQuoteAmountCurrencyEnumFromJSONTyped(json);
26
+ }
27
+ function FlowQuoteAmountCurrencyEnumFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ function FlowQuoteAmountCurrencyEnumToJSON(value) {
31
+ return value;
32
+ }
33
+
34
+ export { FlowQuoteAmountCurrencyEnum, FlowQuoteAmountCurrencyEnumFromJSON, FlowQuoteAmountCurrencyEnumFromJSONTyped, FlowQuoteAmountCurrencyEnumToJSON };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowQuoteAmountCurrencyEnum.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowQuoteAmountCurrencyEnum.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;IACS,4BAGX;AAHD,CAAA,UAAY,2BAA2B,EAAA;AACnC,IAAA,2BAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,2BAAA,CAAA,aAAA,CAAA,GAAA,cAA4B,CAAA;AAChC,CAAC,EAHW,2BAA2B,KAA3B,2BAA2B,GAGtC,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,mCAAmC,CAAC,IAAS,EAAA;AACzD,IAAA,OAAO,wCAAwC,CAAC,IAAW,CAAC,CAAC;AACjE,CAAC;AAEe,SAAA,wCAAwC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC5F,IAAA,OAAO,IAAmC,CAAC;AAC/C,CAAC;AAEK,SAAU,iCAAiC,CAAC,KAA0C,EAAA;AACxF,IAAA,OAAO,KAAY,CAAC;AACxB;;;;"}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { FlowQuoteAmountCurrencyEnum } from './FlowQuoteAmountCurrencyEnum';
12
13
  /**
13
14
  * Request body for fetching a quote on a flow.
14
15
  * @export
@@ -33,6 +34,18 @@ export interface FlowQuoteRequest {
33
34
  * @memberof FlowQuoteRequest
34
35
  */
35
36
  slippage?: number;
37
+ /**
38
+ * Amount to deposit, replacing the flow's suggested amount. Deposit flows with a wallet or deposit-address source only. A positive decimal in `amountCurrency` units. When omitted, the quote uses the flow's current (USD) amount, so resend a SOURCE_TOKEN amount on every re-quote to keep the deposit fixed in the source token.
39
+ * @type {string}
40
+ * @memberof FlowQuoteRequest
41
+ */
42
+ amount?: string | null;
43
+ /**
44
+ * Currency `amount` is denominated in. Defaults to USD.
45
+ * @type {FlowQuoteAmountCurrencyEnum}
46
+ * @memberof FlowQuoteRequest
47
+ */
48
+ amountCurrency?: FlowQuoteAmountCurrencyEnum | null;
36
49
  }
37
50
  export declare function FlowQuoteRequestFromJSON(json: any): FlowQuoteRequest;
38
51
  export declare function FlowQuoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowQuoteRequest;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { FlowQuoteAmountCurrencyEnumFromJSON, FlowQuoteAmountCurrencyEnumToJSON } from './FlowQuoteAmountCurrencyEnum.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function FlowQuoteRequestFromJSON(json) {
@@ -12,6 +13,8 @@ function FlowQuoteRequestFromJSONTyped(json, ignoreDiscriminator) {
12
13
  'fromTokenAddress': !exists(json, 'fromTokenAddress') ? undefined : json['fromTokenAddress'],
13
14
  'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
14
15
  'slippage': !exists(json, 'slippage') ? undefined : json['slippage'],
16
+ 'amount': !exists(json, 'amount') ? undefined : json['amount'],
17
+ 'amountCurrency': !exists(json, 'amountCurrency') ? undefined : FlowQuoteAmountCurrencyEnumFromJSON(json['amountCurrency']),
15
18
  };
16
19
  }
17
20
  function FlowQuoteRequestToJSON(value) {
@@ -25,6 +28,8 @@ function FlowQuoteRequestToJSON(value) {
25
28
  'fromTokenAddress': value.fromTokenAddress,
26
29
  'fromChainId': value.fromChainId,
27
30
  'slippage': value.slippage,
31
+ 'amount': value.amount,
32
+ 'amountCurrency': FlowQuoteAmountCurrencyEnumToJSON(value.amountCurrency),
28
33
  };
29
34
  }
30
35
 
@@ -1 +1 @@
1
- {"version":3,"file":"FlowQuoteRequest.js","sources":["../../../../../libs/sdk-api-core/src/models/FlowQuoteRequest.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAyCM,SAAU,wBAAwB,CAAC,IAAS,EAAA;AAC9C,IAAA,OAAO,6BAA6B,CAAC,IAAW,CAAC,CAAC;AACtD,CAAC;AAEe,SAAA,6BAA6B,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACjF,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH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CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC;AAC7E,QAAA,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;AACpE,QAAA,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9D,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,GAAG,SAAS,GAAG,mCAAmC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAC9H,CAAC;AACN,CAAC;AAEK,SAAU,sBAAsB,CAAC,KAA+B,EAAA;AAClE,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,kBAAkB,EAAE,KAAK,CAAC,gBAAgB;QAC1C,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;AACtB,QAAA,gBAAgB,EAAE,iCAAiC,CAAC,KAAK,CAAC,cAAc,CAAC;KAC5E,CAAC;AACN;;;;"}
@@ -191,6 +191,7 @@ export * from './FlowAttachSourceRequest';
191
191
  export * from './FlowCreateRequest';
192
192
  export * from './FlowCreateResponse';
193
193
  export * from './FlowCurrencyEnum';
194
+ export * from './FlowExchange';
194
195
  export * from './FlowExchangeSource';
195
196
  export * from './FlowExchangesResponse';
196
197
  export * from './FlowExecutionStateEnum';
@@ -209,6 +210,7 @@ export * from './FlowGasEstimate';
209
210
  export * from './FlowModeEnum';
210
211
  export * from './FlowPrepareSigningRequest';
211
212
  export * from './FlowQuote';
213
+ export * from './FlowQuoteAmountCurrencyEnum';
212
214
  export * from './FlowQuoteRequest';
213
215
  export * from './FlowRecordBroadcastRequest';
214
216
  export * from './FlowRiskStateEnum';
package/src/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const SDK_API_CORE_VERSION = '0.118.0';
1
+ const SDK_API_CORE_VERSION = '0.120.0';
2
2
 
3
3
  export { SDK_API_CORE_VERSION };