@dynamic-labs/sdk-api 0.176.0 → 0.178.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.176.0",
3
+ "version": "0.178.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -435,6 +435,7 @@ var FlowQuoteRequest = require('./models/FlowQuoteRequest.cjs');
435
435
  var FlowRecordBroadcastRequest = require('./models/FlowRecordBroadcastRequest.cjs');
436
436
  var FlowRiskStateEnum = require('./models/FlowRiskStateEnum.cjs');
437
437
  var FlowSettlementData = require('./models/FlowSettlementData.cjs');
438
+ var FlowSettlementDataInput = require('./models/FlowSettlementDataInput.cjs');
438
439
  var FlowSettlementStateEnum = require('./models/FlowSettlementStateEnum.cjs');
439
440
  var FlowSourceResponse = require('./models/FlowSourceResponse.cjs');
440
441
  var FlowSourceTokenOption = require('./models/FlowSourceTokenOption.cjs');
@@ -2727,6 +2728,9 @@ exports.FlowRiskStateEnumToJSON = FlowRiskStateEnum.FlowRiskStateEnumToJSON;
2727
2728
  exports.FlowSettlementDataFromJSON = FlowSettlementData.FlowSettlementDataFromJSON;
2728
2729
  exports.FlowSettlementDataFromJSONTyped = FlowSettlementData.FlowSettlementDataFromJSONTyped;
2729
2730
  exports.FlowSettlementDataToJSON = FlowSettlementData.FlowSettlementDataToJSON;
2731
+ exports.FlowSettlementDataInputFromJSON = FlowSettlementDataInput.FlowSettlementDataInputFromJSON;
2732
+ exports.FlowSettlementDataInputFromJSONTyped = FlowSettlementDataInput.FlowSettlementDataInputFromJSONTyped;
2733
+ exports.FlowSettlementDataInputToJSON = FlowSettlementDataInput.FlowSettlementDataInputToJSON;
2730
2734
  Object.defineProperty(exports, 'FlowSettlementStateEnum', {
2731
2735
  enumerable: true,
2732
2736
  get: function () { return FlowSettlementStateEnum.FlowSettlementStateEnum; }
package/src/index.js CHANGED
@@ -431,6 +431,7 @@ export { FlowQuoteRequestFromJSON, FlowQuoteRequestFromJSONTyped, FlowQuoteReque
431
431
  export { FlowRecordBroadcastRequestFromJSON, FlowRecordBroadcastRequestFromJSONTyped, FlowRecordBroadcastRequestToJSON } from './models/FlowRecordBroadcastRequest.js';
432
432
  export { FlowRiskStateEnum, FlowRiskStateEnumFromJSON, FlowRiskStateEnumFromJSONTyped, FlowRiskStateEnumToJSON } from './models/FlowRiskStateEnum.js';
433
433
  export { FlowSettlementDataFromJSON, FlowSettlementDataFromJSONTyped, FlowSettlementDataToJSON } from './models/FlowSettlementData.js';
434
+ export { FlowSettlementDataInputFromJSON, FlowSettlementDataInputFromJSONTyped, FlowSettlementDataInputToJSON } from './models/FlowSettlementDataInput.js';
434
435
  export { FlowSettlementStateEnum, FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumFromJSONTyped, FlowSettlementStateEnumToJSON } from './models/FlowSettlementStateEnum.js';
435
436
  export { FlowSourceResponseFromJSON, FlowSourceResponseFromJSONTyped, FlowSourceResponseToJSON } from './models/FlowSourceResponse.js';
436
437
  export { FlowSourceTokenOptionFromJSON, FlowSourceTokenOptionFromJSONTyped, FlowSourceTokenOptionToJSON } from './models/FlowSourceTokenOption.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var FlowSettlementDataInput = require('./FlowSettlementDataInput.cjs');
6
7
  var FlowTokenInfo = require('./FlowTokenInfo.cjs');
7
8
 
8
9
  /* tslint:disable */
@@ -20,6 +21,8 @@ function FlowSettlementDataFromJSONTyped(json, ignoreDiscriminator) {
20
21
  'completedAt': !runtime.exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
21
22
  'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
22
23
  'amountUsd': !runtime.exists(json, 'amountUsd') ? undefined : json['amountUsd'],
24
+ 'input': !runtime.exists(json, 'input') ? undefined : FlowSettlementDataInput.FlowSettlementDataInputFromJSON(json['input']),
25
+ 'feeUsd': !runtime.exists(json, 'feeUsd') ? undefined : json['feeUsd'],
23
26
  'toTokenInfo': !runtime.exists(json, 'toTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['toTokenInfo']),
24
27
  };
25
28
  }
@@ -37,6 +40,8 @@ function FlowSettlementDataToJSON(value) {
37
40
  'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
38
41
  'amount': value.amount,
39
42
  'amountUsd': value.amountUsd,
43
+ 'input': FlowSettlementDataInput.FlowSettlementDataInputToJSON(value.input),
44
+ 'feeUsd': value.feeUsd,
40
45
  'toTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.toTokenInfo),
41
46
  };
42
47
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { FlowSettlementDataInput } from './FlowSettlementDataInput';
12
13
  import { FlowTokenInfo } from './FlowTokenInfo';
13
14
  /**
14
15
  * Resolved settlement destination and completion time for a flow.
@@ -52,6 +53,18 @@ export interface FlowSettlementData {
52
53
  * @memberof FlowSettlementData
53
54
  */
54
55
  amountUsd?: string;
56
+ /**
57
+ *
58
+ * @type {FlowSettlementDataInput}
59
+ * @memberof FlowSettlementData
60
+ */
61
+ input?: FlowSettlementDataInput;
62
+ /**
63
+ * Total fee the payer was charged, in USD: the input amount priced at fill time minus the delivered amount. Includes the provider's spread, not just itemized fees. Absent unless the provider priced both legs.
64
+ * @type {string}
65
+ * @memberof FlowSettlementData
66
+ */
67
+ feeUsd?: string;
55
68
  /**
56
69
  *
57
70
  * @type {FlowTokenInfo}
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { FlowSettlementDataInputFromJSON, FlowSettlementDataInputToJSON } from './FlowSettlementDataInput.js';
2
3
  import { FlowTokenInfoFromJSON, FlowTokenInfoToJSON } from './FlowTokenInfo.js';
3
4
 
4
5
  /* tslint:disable */
@@ -16,6 +17,8 @@ function FlowSettlementDataFromJSONTyped(json, ignoreDiscriminator) {
16
17
  'completedAt': !exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
17
18
  'amount': !exists(json, 'amount') ? undefined : json['amount'],
18
19
  'amountUsd': !exists(json, 'amountUsd') ? undefined : json['amountUsd'],
20
+ 'input': !exists(json, 'input') ? undefined : FlowSettlementDataInputFromJSON(json['input']),
21
+ 'feeUsd': !exists(json, 'feeUsd') ? undefined : json['feeUsd'],
19
22
  'toTokenInfo': !exists(json, 'toTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['toTokenInfo']),
20
23
  };
21
24
  }
@@ -33,6 +36,8 @@ function FlowSettlementDataToJSON(value) {
33
36
  'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
34
37
  'amount': value.amount,
35
38
  'amountUsd': value.amountUsd,
39
+ 'input': FlowSettlementDataInputToJSON(value.input),
40
+ 'feeUsd': value.feeUsd,
36
41
  'toTokenInfo': FlowTokenInfoToJSON(value.toTokenInfo),
37
42
  };
38
43
  }
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var FlowTokenInfo = require('./FlowTokenInfo.cjs');
7
+
8
+ /* tslint:disable */
9
+ function FlowSettlementDataInputFromJSON(json) {
10
+ return FlowSettlementDataInputFromJSONTyped(json);
11
+ }
12
+ function FlowSettlementDataInputFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
18
+ 'amountUsd': !runtime.exists(json, 'amountUsd') ? undefined : json['amountUsd'],
19
+ 'tokenInfo': !runtime.exists(json, 'tokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['tokenInfo']),
20
+ };
21
+ }
22
+ function FlowSettlementDataInputToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'amount': value.amount,
31
+ 'amountUsd': value.amountUsd,
32
+ 'tokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.tokenInfo),
33
+ };
34
+ }
35
+
36
+ exports.FlowSettlementDataInputFromJSON = FlowSettlementDataInputFromJSON;
37
+ exports.FlowSettlementDataInputFromJSONTyped = FlowSettlementDataInputFromJSONTyped;
38
+ exports.FlowSettlementDataInputToJSON = FlowSettlementDataInputToJSON;
@@ -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 { FlowTokenInfo } from './FlowTokenInfo';
13
+ /**
14
+ * The origin leg actually charged — the payer's real input, which can differ from the flow amount (e.g. an underpaid deposit). Absent when the provider did not report it.
15
+ * @export
16
+ * @interface FlowSettlementDataInput
17
+ */
18
+ export interface FlowSettlementDataInput {
19
+ /**
20
+ * Input amount in the smallest unit of the input token
21
+ * @type {string}
22
+ * @memberof FlowSettlementDataInput
23
+ */
24
+ amount?: string;
25
+ /**
26
+ * USD value of the input amount, priced at fill time
27
+ * @type {string}
28
+ * @memberof FlowSettlementDataInput
29
+ */
30
+ amountUsd?: string;
31
+ /**
32
+ *
33
+ * @type {FlowTokenInfo}
34
+ * @memberof FlowSettlementDataInput
35
+ */
36
+ tokenInfo?: FlowTokenInfo;
37
+ }
38
+ export declare function FlowSettlementDataInputFromJSON(json: any): FlowSettlementDataInput;
39
+ export declare function FlowSettlementDataInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSettlementDataInput;
40
+ export declare function FlowSettlementDataInputToJSON(value?: FlowSettlementDataInput | null): any;
@@ -0,0 +1,32 @@
1
+ import { exists } from '../runtime.js';
2
+ import { FlowTokenInfoFromJSON, FlowTokenInfoToJSON } from './FlowTokenInfo.js';
3
+
4
+ /* tslint:disable */
5
+ function FlowSettlementDataInputFromJSON(json) {
6
+ return FlowSettlementDataInputFromJSONTyped(json);
7
+ }
8
+ function FlowSettlementDataInputFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'amount': !exists(json, 'amount') ? undefined : json['amount'],
14
+ 'amountUsd': !exists(json, 'amountUsd') ? undefined : json['amountUsd'],
15
+ 'tokenInfo': !exists(json, 'tokenInfo') ? undefined : FlowTokenInfoFromJSON(json['tokenInfo']),
16
+ };
17
+ }
18
+ function FlowSettlementDataInputToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'amount': value.amount,
27
+ 'amountUsd': value.amountUsd,
28
+ 'tokenInfo': FlowTokenInfoToJSON(value.tokenInfo),
29
+ };
30
+ }
31
+
32
+ export { FlowSettlementDataInputFromJSON, FlowSettlementDataInputFromJSONTyped, FlowSettlementDataInputToJSON };
@@ -29,6 +29,7 @@ exports.MFAAction = void 0;
29
29
  MFAAction["WalletWaasRefresh"] = "wallet.waas.refresh";
30
30
  MFAAction["UserUpdate"] = "user.update";
31
31
  MFAAction["BusinessAccountLinkWallet"] = "business_account.link_wallet";
32
+ MFAAction["WaasPolicyUpdate"] = "waas.policy.update";
32
33
  })(exports.MFAAction || (exports.MFAAction = {}));
33
34
  function MFAActionFromJSON(json) {
34
35
  return MFAActionFromJSONTyped(json);
@@ -21,7 +21,8 @@ export declare enum MFAAction {
21
21
  WalletWaasReshare = "wallet.waas.reshare",
22
22
  WalletWaasRefresh = "wallet.waas.refresh",
23
23
  UserUpdate = "user.update",
24
- BusinessAccountLinkWallet = "business_account.link_wallet"
24
+ BusinessAccountLinkWallet = "business_account.link_wallet",
25
+ WaasPolicyUpdate = "waas.policy.update"
25
26
  }
26
27
  export declare function MFAActionFromJSON(json: any): MFAAction;
27
28
  export declare function MFAActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAAction;
@@ -25,6 +25,7 @@ var MFAAction;
25
25
  MFAAction["WalletWaasRefresh"] = "wallet.waas.refresh";
26
26
  MFAAction["UserUpdate"] = "user.update";
27
27
  MFAAction["BusinessAccountLinkWallet"] = "business_account.link_wallet";
28
+ MFAAction["WaasPolicyUpdate"] = "waas.policy.update";
28
29
  })(MFAAction || (MFAAction = {}));
29
30
  function MFAActionFromJSON(json) {
30
31
  return MFAActionFromJSONTyped(json);
@@ -378,6 +378,7 @@ export * from './FlowQuoteRequest';
378
378
  export * from './FlowRecordBroadcastRequest';
379
379
  export * from './FlowRiskStateEnum';
380
380
  export * from './FlowSettlementData';
381
+ export * from './FlowSettlementDataInput';
381
382
  export * from './FlowSettlementStateEnum';
382
383
  export * from './FlowSourceResponse';
383
384
  export * from './FlowSourceTokenOption';