@dynamic-labs/sdk-api 0.0.1112 → 0.0.1114

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.
Files changed (107) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +3 -3
  3. package/src/apis/AdminActionsApi.js +3 -3
  4. package/src/apis/AllowlistsApi.cjs +3 -3
  5. package/src/apis/AllowlistsApi.js +3 -3
  6. package/src/apis/AnalyticsApi.cjs +3 -3
  7. package/src/apis/AnalyticsApi.js +3 -3
  8. package/src/apis/AuthorizedClientsApi.cjs +3 -3
  9. package/src/apis/AuthorizedClientsApi.js +3 -3
  10. package/src/apis/CaptchaApi.cjs +3 -3
  11. package/src/apis/CaptchaApi.js +3 -3
  12. package/src/apis/ChainalysisApi.cjs +3 -3
  13. package/src/apis/ChainalysisApi.js +3 -3
  14. package/src/apis/ChainsApi.cjs +3 -3
  15. package/src/apis/ChainsApi.js +3 -3
  16. package/src/apis/CheckoutApi.cjs +3 -3
  17. package/src/apis/CheckoutApi.js +3 -3
  18. package/src/apis/ClientGrantApi.cjs +3 -3
  19. package/src/apis/ClientGrantApi.js +3 -3
  20. package/src/apis/CustomFieldsApi.cjs +3 -3
  21. package/src/apis/CustomFieldsApi.js +3 -3
  22. package/src/apis/CustomHostnamesApi.cjs +3 -3
  23. package/src/apis/CustomHostnamesApi.js +3 -3
  24. package/src/apis/CustomNetworksApi.cjs +3 -3
  25. package/src/apis/CustomNetworksApi.js +3 -3
  26. package/src/apis/DeeplinkUrlsApi.cjs +3 -3
  27. package/src/apis/DeeplinkUrlsApi.js +3 -3
  28. package/src/apis/EnvironmentsApi.cjs +3 -3
  29. package/src/apis/EnvironmentsApi.js +3 -3
  30. package/src/apis/EventsApi.cjs +3 -3
  31. package/src/apis/EventsApi.js +3 -3
  32. package/src/apis/ExchangesApi.cjs +3 -3
  33. package/src/apis/ExchangesApi.js +3 -3
  34. package/src/apis/ExportsApi.cjs +3 -3
  35. package/src/apis/ExportsApi.js +3 -3
  36. package/src/apis/ExternalJwtApi.cjs +3 -3
  37. package/src/apis/ExternalJwtApi.js +3 -3
  38. package/src/apis/FlowAnalyticsApi.cjs +3 -3
  39. package/src/apis/FlowAnalyticsApi.js +3 -3
  40. package/src/apis/GaslessApi.cjs +3 -3
  41. package/src/apis/GaslessApi.js +3 -3
  42. package/src/apis/GatesApi.cjs +3 -3
  43. package/src/apis/GatesApi.js +3 -3
  44. package/src/apis/GlobalWalletAccessControlApi.cjs +3 -3
  45. package/src/apis/GlobalWalletAccessControlApi.js +3 -3
  46. package/src/apis/GlobalWalletConnectionsApi.cjs +3 -3
  47. package/src/apis/GlobalWalletConnectionsApi.js +3 -3
  48. package/src/apis/GlobalWalletsApi.cjs +3 -3
  49. package/src/apis/GlobalWalletsApi.js +3 -3
  50. package/src/apis/InvitesApi.cjs +3 -3
  51. package/src/apis/InvitesApi.js +3 -3
  52. package/src/apis/KybApi.cjs +3 -3
  53. package/src/apis/KybApi.js +3 -3
  54. package/src/apis/MembersApi.cjs +3 -3
  55. package/src/apis/MembersApi.js +3 -3
  56. package/src/apis/MfaSettingsApi.cjs +3 -3
  57. package/src/apis/MfaSettingsApi.js +3 -3
  58. package/src/apis/NameServicesApi.cjs +3 -3
  59. package/src/apis/NameServicesApi.js +3 -3
  60. package/src/apis/OrganizationSettingsApi.cjs +3 -3
  61. package/src/apis/OrganizationSettingsApi.js +3 -3
  62. package/src/apis/OrganizationsApi.cjs +3 -3
  63. package/src/apis/OrganizationsApi.js +3 -3
  64. package/src/apis/OriginsApi.cjs +3 -3
  65. package/src/apis/OriginsApi.js +3 -3
  66. package/src/apis/ProjectsApi.cjs +3 -3
  67. package/src/apis/ProjectsApi.js +3 -3
  68. package/src/apis/ProvidersApi.cjs +3 -3
  69. package/src/apis/ProvidersApi.js +3 -3
  70. package/src/apis/SDKViewsApi.cjs +3 -3
  71. package/src/apis/SDKViewsApi.js +3 -3
  72. package/src/apis/ServerApi.cjs +3 -3
  73. package/src/apis/ServerApi.js +3 -3
  74. package/src/apis/SessionsApi.cjs +3 -3
  75. package/src/apis/SessionsApi.js +3 -3
  76. package/src/apis/TestAccountApi.cjs +3 -3
  77. package/src/apis/TestAccountApi.js +3 -3
  78. package/src/apis/TokensApi.cjs +3 -3
  79. package/src/apis/TokensApi.js +3 -3
  80. package/src/apis/UserApiTokensApi.cjs +3 -3
  81. package/src/apis/UserApiTokensApi.js +3 -3
  82. package/src/apis/UsersApi.cjs +3 -3
  83. package/src/apis/UsersApi.js +3 -3
  84. package/src/apis/VisitsApi.cjs +3 -3
  85. package/src/apis/VisitsApi.js +3 -3
  86. package/src/apis/WaasApi.cjs +3 -3
  87. package/src/apis/WaasApi.js +3 -3
  88. package/src/apis/WalletConnectApi.cjs +3 -3
  89. package/src/apis/WalletConnectApi.js +3 -3
  90. package/src/apis/WalletsApi.cjs +3 -3
  91. package/src/apis/WalletsApi.js +3 -3
  92. package/src/apis/WebhooksApi.cjs +3 -3
  93. package/src/apis/WebhooksApi.js +3 -3
  94. package/src/apis/ZendeskApi.cjs +3 -3
  95. package/src/apis/ZendeskApi.js +3 -3
  96. package/src/index.cjs +4 -0
  97. package/src/index.js +1 -0
  98. package/src/models/AddBusinessAccountSignerSdkRequest.cjs +3 -0
  99. package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +12 -0
  100. package/src/models/AddBusinessAccountSignerSdkRequest.js +3 -0
  101. package/src/models/FlowQuote.cjs +5 -0
  102. package/src/models/FlowQuote.d.ts +13 -0
  103. package/src/models/FlowQuote.js +5 -0
  104. package/src/models/FlowTokenInfo.cjs +39 -0
  105. package/src/models/FlowTokenInfo.d.ts +45 -0
  106. package/src/models/FlowTokenInfo.js +33 -0
  107. package/src/models/index.d.ts +1 -0
@@ -6,6 +6,9 @@ import '../models/ProviderEnum.js';
6
6
  import '../models/UserIdentifierTypeEnum.js';
7
7
  import '../models/BusinessAccountSignerType.js';
8
8
  import '../models/ThresholdSignatureScheme.js';
9
+ import '../models/WaasChainEnum.js';
10
+ import '../models/WaasPolicyConstraintCondition.js';
11
+ import '../models/WaasPolicyRuleType.js';
9
12
  import '../models/AdminActionRequestStatus.js';
10
13
  import '../models/AdminActionResponseDecision.js';
11
14
  import '../models/AdminActionType.js';
@@ -61,7 +64,6 @@ import '../models/EmbeddedWalletChainEnum.js';
61
64
  import '../models/EmbeddedWalletProviderEnum.js';
62
65
  import '../models/RoomTypeEnum.js';
63
66
  import '../models/TokenScopes.js';
64
- import '../models/WaasChainEnum.js';
65
67
  import '../models/CurrencyType.js';
66
68
  import '../models/CustomHostnameStatusEnum.js';
67
69
  import '../models/CustomHostnameUsageEnum.js';
@@ -119,8 +121,6 @@ import '../models/OauthResultStatus.js';
119
121
  import '../models/WhenToImplementEnum.js';
120
122
  import '../models/PublishEventsEvents.js';
121
123
  import '../models/ReshareKind.js';
122
- import '../models/WaasPolicyConstraintCondition.js';
123
- import '../models/WaasPolicyRuleType.js';
124
124
  import '../models/SanctionsWalletBlockedEventPayload.js';
125
125
  import '../models/ScreenTransactionResponse.js';
126
126
  import '../models/SignMessageRawSign.js';
@@ -10,6 +10,9 @@ require('../models/ProviderEnum.cjs');
10
10
  require('../models/UserIdentifierTypeEnum.cjs');
11
11
  require('../models/BusinessAccountSignerType.cjs');
12
12
  require('../models/ThresholdSignatureScheme.cjs');
13
+ require('../models/WaasChainEnum.cjs');
14
+ require('../models/WaasPolicyConstraintCondition.cjs');
15
+ require('../models/WaasPolicyRuleType.cjs');
13
16
  require('../models/AdminActionRequestStatus.cjs');
14
17
  require('../models/AdminActionResponseDecision.cjs');
15
18
  require('../models/AdminActionType.cjs');
@@ -65,7 +68,6 @@ require('../models/EmbeddedWalletChainEnum.cjs');
65
68
  require('../models/EmbeddedWalletProviderEnum.cjs');
66
69
  require('../models/RoomTypeEnum.cjs');
67
70
  require('../models/TokenScopes.cjs');
68
- require('../models/WaasChainEnum.cjs');
69
71
  require('../models/CurrencyType.cjs');
70
72
  require('../models/CustomHostnameStatusEnum.cjs');
71
73
  require('../models/CustomHostnameUsageEnum.cjs');
@@ -123,8 +125,6 @@ require('../models/OauthResultStatus.cjs');
123
125
  require('../models/WhenToImplementEnum.cjs');
124
126
  require('../models/PublishEventsEvents.cjs');
125
127
  require('../models/ReshareKind.cjs');
126
- require('../models/WaasPolicyConstraintCondition.cjs');
127
- require('../models/WaasPolicyRuleType.cjs');
128
128
  require('../models/SanctionsWalletBlockedEventPayload.cjs');
129
129
  require('../models/ScreenTransactionResponse.cjs');
130
130
  require('../models/SignMessageRawSign.cjs');
@@ -6,6 +6,9 @@ import '../models/ProviderEnum.js';
6
6
  import '../models/UserIdentifierTypeEnum.js';
7
7
  import '../models/BusinessAccountSignerType.js';
8
8
  import '../models/ThresholdSignatureScheme.js';
9
+ import '../models/WaasChainEnum.js';
10
+ import '../models/WaasPolicyConstraintCondition.js';
11
+ import '../models/WaasPolicyRuleType.js';
9
12
  import '../models/AdminActionRequestStatus.js';
10
13
  import '../models/AdminActionResponseDecision.js';
11
14
  import '../models/AdminActionType.js';
@@ -61,7 +64,6 @@ import '../models/EmbeddedWalletChainEnum.js';
61
64
  import '../models/EmbeddedWalletProviderEnum.js';
62
65
  import '../models/RoomTypeEnum.js';
63
66
  import '../models/TokenScopes.js';
64
- import '../models/WaasChainEnum.js';
65
67
  import '../models/CurrencyType.js';
66
68
  import '../models/CustomHostnameStatusEnum.js';
67
69
  import '../models/CustomHostnameUsageEnum.js';
@@ -119,8 +121,6 @@ import '../models/OauthResultStatus.js';
119
121
  import '../models/WhenToImplementEnum.js';
120
122
  import '../models/PublishEventsEvents.js';
121
123
  import '../models/ReshareKind.js';
122
- import '../models/WaasPolicyConstraintCondition.js';
123
- import '../models/WaasPolicyRuleType.js';
124
124
  import '../models/SanctionsWalletBlockedEventPayload.js';
125
125
  import '../models/ScreenTransactionResponse.js';
126
126
  import '../models/SignMessageRawSign.js';
package/src/index.cjs CHANGED
@@ -358,6 +358,7 @@ var FlowSettlementData = require('./models/FlowSettlementData.cjs');
358
358
  var FlowSettlementStateEnum = require('./models/FlowSettlementStateEnum.cjs');
359
359
  var FlowSourceResponse = require('./models/FlowSourceResponse.cjs');
360
360
  var FlowSourceTypeEnum = require('./models/FlowSourceTypeEnum.cjs');
361
+ var FlowTokenInfo = require('./models/FlowTokenInfo.cjs');
361
362
  var Forbidden = require('./models/Forbidden.cjs');
362
363
  var ForbiddenErrorPayload = require('./models/ForbiddenErrorPayload.cjs');
363
364
  var ForbiddenWithErrorAndPayload = require('./models/ForbiddenWithErrorAndPayload.cjs');
@@ -2158,6 +2159,9 @@ Object.defineProperty(exports, 'FlowSourceTypeEnum', {
2158
2159
  exports.FlowSourceTypeEnumFromJSON = FlowSourceTypeEnum.FlowSourceTypeEnumFromJSON;
2159
2160
  exports.FlowSourceTypeEnumFromJSONTyped = FlowSourceTypeEnum.FlowSourceTypeEnumFromJSONTyped;
2160
2161
  exports.FlowSourceTypeEnumToJSON = FlowSourceTypeEnum.FlowSourceTypeEnumToJSON;
2162
+ exports.FlowTokenInfoFromJSON = FlowTokenInfo.FlowTokenInfoFromJSON;
2163
+ exports.FlowTokenInfoFromJSONTyped = FlowTokenInfo.FlowTokenInfoFromJSONTyped;
2164
+ exports.FlowTokenInfoToJSON = FlowTokenInfo.FlowTokenInfoToJSON;
2161
2165
  exports.ForbiddenFromJSON = Forbidden.ForbiddenFromJSON;
2162
2166
  exports.ForbiddenFromJSONTyped = Forbidden.ForbiddenFromJSONTyped;
2163
2167
  exports.ForbiddenToJSON = Forbidden.ForbiddenToJSON;
package/src/index.js CHANGED
@@ -354,6 +354,7 @@ export { FlowSettlementDataFromJSON, FlowSettlementDataFromJSONTyped, FlowSettle
354
354
  export { FlowSettlementStateEnum, FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumFromJSONTyped, FlowSettlementStateEnumToJSON } from './models/FlowSettlementStateEnum.js';
355
355
  export { FlowSourceResponseFromJSON, FlowSourceResponseFromJSONTyped, FlowSourceResponseToJSON } from './models/FlowSourceResponse.js';
356
356
  export { FlowSourceTypeEnum, FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumFromJSONTyped, FlowSourceTypeEnumToJSON } from './models/FlowSourceTypeEnum.js';
357
+ export { FlowTokenInfoFromJSON, FlowTokenInfoFromJSONTyped, FlowTokenInfoToJSON } from './models/FlowTokenInfo.js';
357
358
  export { ForbiddenFromJSON, ForbiddenFromJSONTyped, ForbiddenToJSON } from './models/Forbidden.js';
358
359
  export { ForbiddenErrorPayloadFromJSON, ForbiddenErrorPayloadFromJSONTyped, ForbiddenErrorPayloadToJSON } from './models/ForbiddenErrorPayload.js';
359
360
  export { ForbiddenWithErrorAndPayloadFromJSON, ForbiddenWithErrorAndPayloadFromJSONTyped, ForbiddenWithErrorAndPayloadToJSON } from './models/ForbiddenWithErrorAndPayload.js';
@@ -8,6 +8,7 @@ var ProviderEnum = require('./ProviderEnum.cjs');
8
8
  var SmsCountryCode = require('./SmsCountryCode.cjs');
9
9
  var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
10
10
  var UserIdentifierTypeEnum = require('./UserIdentifierTypeEnum.cjs');
11
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
11
12
 
12
13
  /* tslint:disable */
13
14
  function AddBusinessAccountSignerSdkRequestFromJSON(json) {
@@ -27,6 +28,7 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
27
28
  'clientKeygenIds': json['clientKeygenIds'],
28
29
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
29
30
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
31
+ 'initialSignerRules': !runtime.exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
30
32
  };
31
33
  }
32
34
  function AddBusinessAccountSignerSdkRequestToJSON(value) {
@@ -46,6 +48,7 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
46
48
  'clientKeygenIds': value.clientKeygenIds,
47
49
  'oldThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
48
50
  'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
51
+ 'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
49
52
  };
50
53
  }
51
54
 
@@ -14,6 +14,7 @@ import { ProviderEnum } from './ProviderEnum';
14
14
  import { SmsCountryCode } from './SmsCountryCode';
15
15
  import { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
16
16
  import { UserIdentifierTypeEnum } from './UserIdentifierTypeEnum';
17
+ import { WaasPolicyRule } from './WaasPolicyRule';
17
18
  /**
18
19
  * SDK addSigner body. Same user resolution shape as addMember (userId OR identifier + type), plus `signerType` for the signer-role enum (endUser/server). `type` here is the user-resolution type, NOT the signer type — `signerType` lives on a dedicated field. `smsCountryCode` is required when `type` is `phoneNumber`; `socialProvider` is required when `type` is `socialUsername` or `socialAccountId`.
19
20
  * The remaining fields parameterise the reshare ceremony that runs after the pending signer row is written. `clientKeygenIds` come from the caller's local MPC state; the threshold scheme fields describe the source share set (old) and the destination share set (new) that the ceremony produces.
@@ -75,6 +76,17 @@ export interface AddBusinessAccountSignerSdkRequest {
75
76
  * @memberof AddBusinessAccountSignerSdkRequest
76
77
  */
77
78
  newThresholdSignatureScheme: ThresholdSignatureScheme;
79
+ /**
80
+ * Optional Rules to seed the new signer's signer-Layer with at
81
+ * add-signer time, so the signer is restricted from its first sign.
82
+ * Only valid when policy composition is enabled and the wallet is a
83
+ * composition wallet (env/wallet Layers exist); if supplied otherwise
84
+ * the request is rejected with 422 rather than creating an unrestricted
85
+ * signer. Rule shape mirrors the signer self-service policy-layer schema.
86
+ * @type {Array<WaasPolicyRule>}
87
+ * @memberof AddBusinessAccountSignerSdkRequest
88
+ */
89
+ initialSignerRules?: Array<WaasPolicyRule>;
78
90
  }
79
91
  export declare function AddBusinessAccountSignerSdkRequestFromJSON(json: any): AddBusinessAccountSignerSdkRequest;
80
92
  export declare function AddBusinessAccountSignerSdkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddBusinessAccountSignerSdkRequest;
@@ -4,6 +4,7 @@ import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
4
4
  import { SmsCountryCodeFromJSON, SmsCountryCodeToJSON } from './SmsCountryCode.js';
5
5
  import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from './ThresholdSignatureScheme.js';
6
6
  import { UserIdentifierTypeEnumFromJSON, UserIdentifierTypeEnumToJSON } from './UserIdentifierTypeEnum.js';
7
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
7
8
 
8
9
  /* tslint:disable */
9
10
  function AddBusinessAccountSignerSdkRequestFromJSON(json) {
@@ -23,6 +24,7 @@ function AddBusinessAccountSignerSdkRequestFromJSONTyped(json, ignoreDiscriminat
23
24
  'clientKeygenIds': json['clientKeygenIds'],
24
25
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['oldThresholdSignatureScheme']),
25
26
  'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
27
+ 'initialSignerRules': !exists(json, 'initialSignerRules') ? undefined : (json['initialSignerRules'].map(WaasPolicyRuleFromJSON)),
26
28
  };
27
29
  }
28
30
  function AddBusinessAccountSignerSdkRequestToJSON(value) {
@@ -42,6 +44,7 @@ function AddBusinessAccountSignerSdkRequestToJSON(value) {
42
44
  'clientKeygenIds': value.clientKeygenIds,
43
45
  'oldThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.oldThresholdSignatureScheme),
44
46
  'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
47
+ 'initialSignerRules': value.initialSignerRules === undefined ? undefined : (value.initialSignerRules.map(WaasPolicyRuleToJSON)),
45
48
  };
46
49
  }
47
50
 
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var FlowFeeBreakdown = require('./FlowFeeBreakdown.cjs');
7
+ var FlowTokenInfo = require('./FlowTokenInfo.cjs');
7
8
  var SwapSigningPayload = require('./SwapSigningPayload.cjs');
8
9
 
9
10
  /* tslint:disable */
@@ -23,6 +24,8 @@ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
23
24
  'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
24
25
  'createdAt': (new Date(json['createdAt'])),
25
26
  'expiresAt': (new Date(json['expiresAt'])),
27
+ 'fromTokenInfo': !runtime.exists(json, 'fromTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['fromTokenInfo']),
28
+ 'toTokenInfo': !runtime.exists(json, 'toTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['toTokenInfo']),
26
29
  };
27
30
  }
28
31
  function FlowQuoteToJSON(value) {
@@ -41,6 +44,8 @@ function FlowQuoteToJSON(value) {
41
44
  'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
42
45
  'createdAt': (value.createdAt.toISOString()),
43
46
  'expiresAt': (value.expiresAt.toISOString()),
47
+ 'fromTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.fromTokenInfo),
48
+ 'toTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.toTokenInfo),
44
49
  };
45
50
  }
46
51
 
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowFeeBreakdown } from './FlowFeeBreakdown';
13
+ import { FlowTokenInfo } from './FlowTokenInfo';
13
14
  import { SwapSigningPayload } from './SwapSigningPayload';
14
15
  /**
15
16
  * A versioned quote snapshot stored on a flow.
@@ -65,6 +66,18 @@ export interface FlowQuote {
65
66
  * @memberof FlowQuote
66
67
  */
67
68
  expiresAt: Date;
69
+ /**
70
+ *
71
+ * @type {FlowTokenInfo}
72
+ * @memberof FlowQuote
73
+ */
74
+ fromTokenInfo?: FlowTokenInfo;
75
+ /**
76
+ *
77
+ * @type {FlowTokenInfo}
78
+ * @memberof FlowQuote
79
+ */
80
+ toTokenInfo?: FlowTokenInfo;
68
81
  }
69
82
  export declare function FlowQuoteFromJSON(json: any): FlowQuote;
70
83
  export declare function FlowQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowQuote;
@@ -1,5 +1,6 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { FlowFeeBreakdownFromJSON, FlowFeeBreakdownToJSON } from './FlowFeeBreakdown.js';
3
+ import { FlowTokenInfoFromJSON, FlowTokenInfoToJSON } from './FlowTokenInfo.js';
3
4
  import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
4
5
 
5
6
  /* tslint:disable */
@@ -19,6 +20,8 @@ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
19
20
  'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
20
21
  'createdAt': (new Date(json['createdAt'])),
21
22
  'expiresAt': (new Date(json['expiresAt'])),
23
+ 'fromTokenInfo': !exists(json, 'fromTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['fromTokenInfo']),
24
+ 'toTokenInfo': !exists(json, 'toTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['toTokenInfo']),
22
25
  };
23
26
  }
24
27
  function FlowQuoteToJSON(value) {
@@ -37,6 +40,8 @@ function FlowQuoteToJSON(value) {
37
40
  'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
38
41
  'createdAt': (value.createdAt.toISOString()),
39
42
  'expiresAt': (value.expiresAt.toISOString()),
43
+ 'fromTokenInfo': FlowTokenInfoToJSON(value.fromTokenInfo),
44
+ 'toTokenInfo': FlowTokenInfoToJSON(value.toTokenInfo),
40
45
  };
41
46
  }
42
47
 
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowTokenInfoFromJSON(json) {
9
+ return FlowTokenInfoFromJSONTyped(json);
10
+ }
11
+ function FlowTokenInfoFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'symbol': json['symbol'],
17
+ 'decimals': json['decimals'],
18
+ 'name': !runtime.exists(json, 'name') ? undefined : json['name'],
19
+ 'logoURI': !runtime.exists(json, 'logoURI') ? undefined : json['logoURI'],
20
+ };
21
+ }
22
+ function FlowTokenInfoToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'symbol': value.symbol,
31
+ 'decimals': value.decimals,
32
+ 'name': value.name,
33
+ 'logoURI': value.logoURI,
34
+ };
35
+ }
36
+
37
+ exports.FlowTokenInfoFromJSON = FlowTokenInfoFromJSON;
38
+ exports.FlowTokenInfoFromJSONTyped = FlowTokenInfoFromJSONTyped;
39
+ exports.FlowTokenInfoToJSON = FlowTokenInfoToJSON;
@@ -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
+ * Token metadata returned alongside a flow quote.
14
+ * @export
15
+ * @interface FlowTokenInfo
16
+ */
17
+ export interface FlowTokenInfo {
18
+ /**
19
+ * Token symbol (e.g. USDC, ETH)
20
+ * @type {string}
21
+ * @memberof FlowTokenInfo
22
+ */
23
+ symbol: string;
24
+ /**
25
+ * Number of decimal places for this token
26
+ * @type {number}
27
+ * @memberof FlowTokenInfo
28
+ */
29
+ decimals: number;
30
+ /**
31
+ * Human-readable token name (e.g. USD Coin, Ether)
32
+ * @type {string}
33
+ * @memberof FlowTokenInfo
34
+ */
35
+ name?: string;
36
+ /**
37
+ * URL to the token logo image
38
+ * @type {string}
39
+ * @memberof FlowTokenInfo
40
+ */
41
+ logoURI?: string;
42
+ }
43
+ export declare function FlowTokenInfoFromJSON(json: any): FlowTokenInfo;
44
+ export declare function FlowTokenInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowTokenInfo;
45
+ export declare function FlowTokenInfoToJSON(value?: FlowTokenInfo | null): any;
@@ -0,0 +1,33 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowTokenInfoFromJSON(json) {
5
+ return FlowTokenInfoFromJSONTyped(json);
6
+ }
7
+ function FlowTokenInfoFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'symbol': json['symbol'],
13
+ 'decimals': json['decimals'],
14
+ 'name': !exists(json, 'name') ? undefined : json['name'],
15
+ 'logoURI': !exists(json, 'logoURI') ? undefined : json['logoURI'],
16
+ };
17
+ }
18
+ function FlowTokenInfoToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'symbol': value.symbol,
27
+ 'decimals': value.decimals,
28
+ 'name': value.name,
29
+ 'logoURI': value.logoURI,
30
+ };
31
+ }
32
+
33
+ export { FlowTokenInfoFromJSON, FlowTokenInfoFromJSONTyped, FlowTokenInfoToJSON };
@@ -304,6 +304,7 @@ export * from './FlowSettlementData';
304
304
  export * from './FlowSettlementStateEnum';
305
305
  export * from './FlowSourceResponse';
306
306
  export * from './FlowSourceTypeEnum';
307
+ export * from './FlowTokenInfo';
307
308
  export * from './Forbidden';
308
309
  export * from './ForbiddenErrorPayload';
309
310
  export * from './ForbiddenWithErrorAndPayload';