@dynamic-labs/sdk-api 0.0.1100 → 0.0.1102

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +105 -1
  3. package/src/apis/SDKApi.d.ts +42 -1
  4. package/src/apis/SDKApi.js +105 -1
  5. package/src/apis/ServerApi.cjs +387 -0
  6. package/src/apis/ServerApi.d.ts +117 -0
  7. package/src/apis/ServerApi.js +383 -0
  8. package/src/apis/index.d.ts +1 -0
  9. package/src/index.cjs +26 -0
  10. package/src/index.js +7 -0
  11. package/src/models/FlowPaymentLinkCreateRequest.cjs +52 -0
  12. package/src/models/FlowPaymentLinkCreateRequest.d.ts +78 -0
  13. package/src/models/FlowPaymentLinkCreateRequest.js +46 -0
  14. package/src/models/FlowPaymentLinkCreateRequestBaseFields.cjs +43 -0
  15. package/src/models/FlowPaymentLinkCreateRequestBaseFields.d.ts +27 -0
  16. package/src/models/FlowPaymentLinkCreateRequestBaseFields.js +37 -0
  17. package/src/models/FlowPaymentLinkCreateResponse.cjs +35 -0
  18. package/src/models/FlowPaymentLinkCreateResponse.d.ts +34 -0
  19. package/src/models/FlowPaymentLinkCreateResponse.js +29 -0
  20. package/src/models/FlowPaymentLinkCreateResponseExtraFields.cjs +43 -0
  21. package/src/models/FlowPaymentLinkCreateResponseExtraFields.d.ts +27 -0
  22. package/src/models/FlowPaymentLinkCreateResponseExtraFields.js +37 -0
  23. package/src/models/SoftDeleteWaasWalletsRequest.cjs +43 -0
  24. package/src/models/SoftDeleteWaasWalletsRequest.d.ts +27 -0
  25. package/src/models/SoftDeleteWaasWalletsRequest.js +37 -0
  26. package/src/models/SoftDeleteWaasWalletsResponse.cjs +35 -0
  27. package/src/models/SoftDeleteWaasWalletsResponse.d.ts +33 -0
  28. package/src/models/SoftDeleteWaasWalletsResponse.js +29 -0
  29. package/src/models/WaasPolicyRule.cjs +2 -0
  30. package/src/models/WaasPolicyRule.d.ts +6 -0
  31. package/src/models/WaasPolicyRule.js +2 -0
  32. package/src/models/index.d.ts +6 -0
@@ -0,0 +1,383 @@
1
+ import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
2
+ import '../models/AccessOutcomeEnum.js';
3
+ import '../models/ExchangeKeyEnum.js';
4
+ import '../models/AssignableBusinessAccountMemberRole.js';
5
+ import '../models/ProviderEnum.js';
6
+ import '../models/UserIdentifierTypeEnum.js';
7
+ import '../models/BusinessAccountSignerType.js';
8
+ import '../models/ThresholdSignatureScheme.js';
9
+ import '../models/AdminActionRequestStatus.js';
10
+ import '../models/AdminActionResponseDecision.js';
11
+ import '../models/AdminActionType.js';
12
+ import '../models/AuthStorageEnum.js';
13
+ import '../models/MFADeviceType.js';
14
+ import '../models/MFASettingsActions.js';
15
+ import '../models/MfaEnrollment.js';
16
+ import '../models/TimeUnitEnum.js';
17
+ import '../models/ChainEnum.js';
18
+ import '../models/FlowSourceTypeEnum.js';
19
+ import '../models/AttestationConveyancePreference.js';
20
+ import '../models/AuthModeEnum.js';
21
+ import '../models/AuthenticatorAttachment.js';
22
+ import '../models/ResidentKeyRequirement.js';
23
+ import '../models/UserVerificationRequirement.js';
24
+ import '../models/AuthenticatorTransportProtocol.js';
25
+ import '../models/ClientTypeEnum.js';
26
+ import '../models/BackupKeySharesToLocationsPendingResponse.js';
27
+ import '../models/BackupKeySharesToLocationsRequestLocations.js';
28
+ import '../models/BackupKeySharesToLocationsResponse.js';
29
+ import '../models/WaasBackupOptionsEnum.js';
30
+ import '../models/BusinessAccountMemberRole.js';
31
+ import '../models/JwtVerifiedCredentialFormatEnum.js';
32
+ import '../models/WalletAddressType.js';
33
+ import '../models/EcdsaValidatorOptions.js';
34
+ import '../models/EmbeddedWalletVersionEnum.js';
35
+ import '../models/HardwareWalletEnum.js';
36
+ import '../models/PasswordSourceTypeEnum.js';
37
+ import '../models/ProviderEntryPointVersionEnum.js';
38
+ import '../models/ProviderKernelVersionEnum.js';
39
+ import '../models/WaasWalletShareSetType.js';
40
+ import '../models/WalletProviderEnum.js';
41
+ import '../models/MfaBackupCodeAcknowledgement.js';
42
+ import '../models/CustomFieldType.js';
43
+ import '../models/KycFieldType.js';
44
+ import '../models/BillingSubscriptionPlanTypeEnum.js';
45
+ import '../models/UnprocessableEntityErrorCode.js';
46
+ import '../models/ChainalysisCheckResultEnum.js';
47
+ import '../models/CaptchaProviderEnum.js';
48
+ import '../models/DestinationTypeEnum.js';
49
+ import '../models/CheckoutModeEnum.js';
50
+ import '../models/SettlementStrategyEnum.js';
51
+ import '../models/FlowExecutionStateEnum.js';
52
+ import '../models/FlowRiskStateEnum.js';
53
+ import '../models/FlowSettlementStateEnum.js';
54
+ import '../models/CoinbaseOnrampBuyUrlExperience.js';
55
+ import '../models/CoinbaseOnrampFeeType.js';
56
+ import '../models/CoinbaseOnrampOrderPaymentMethod.js';
57
+ import '../models/CoinbaseOnrampOrderStatus.js';
58
+ import '../models/CoinbaseOnrampOrderPaymentLinkType.js';
59
+ import '../models/EmbeddedWalletChainEnum.js';
60
+ import '../models/EmbeddedWalletProviderEnum.js';
61
+ import '../models/RoomTypeEnum.js';
62
+ import '../models/TokenScopes.js';
63
+ import '../models/WaasChainEnum.js';
64
+ import '../models/CurrencyType.js';
65
+ import '../models/CustomHostnameStatusEnum.js';
66
+ import '../models/CustomHostnameUsageEnum.js';
67
+ import '../models/CustomHostnameVerificationType.js';
68
+ import '../models/DnsRecordType.js';
69
+ import '../models/DelegatedAccessEncryptionPublicKey.js';
70
+ import '../models/DelegatedShareDeliveryResponse.js';
71
+ import '../models/TokenScope.js';
72
+ import '../models/EmbeddedWalletAuthType.js';
73
+ import '../models/EmbeddedWalletSecurityMethod.js';
74
+ import '../models/EnvironmentEnum.js';
75
+ import '../models/Network.js';
76
+ import '../models/ExternalWalletFundingTokenRule.js';
77
+ import '../models/OnrampProviders.js';
78
+ import '../models/MinApiVersionEnum.js';
79
+ import '../models/SignInProviderEnum.js';
80
+ import '../models/ProjectSettingsSdkEmbeddedWallets.js';
81
+ import '../models/SocialSignInProviderEnum.js';
82
+ import '../models/ProjectSettingsSdkWaasFireblocksMigration.js';
83
+ import '../models/ProjectSettingsSdkWaasICloud.js';
84
+ import '../models/SdkViewSectionAlignment.js';
85
+ import '../models/SdkViewSectionType.js';
86
+ import '../models/SdkViewType.js';
87
+ import '../models/ZerodevBundlerProvider.js';
88
+ import '../models/ExportFormatEnum.js';
89
+ import '../models/ExportModelEnum.js';
90
+ import '../models/ExportStatusEnum.js';
91
+ import '../models/ExternalWalletFundingDefaultChain.js';
92
+ import { FlowFromJSON } from '../models/Flow.js';
93
+ import '../models/FlowAnalyticsSummaryResponse.js';
94
+ import { FlowCreateRequestToJSON } from '../models/FlowCreateRequest.js';
95
+ import { FlowCreateResponseFromJSON } from '../models/FlowCreateResponse.js';
96
+ import { FlowFeeBalancesResponseFromJSON } from '../models/FlowFeeBalancesResponse.js';
97
+ import { FlowFeeClaimRequestToJSON } from '../models/FlowFeeClaimRequest.js';
98
+ import { FlowFeeClaimResponseFromJSON } from '../models/FlowFeeClaimResponse.js';
99
+ import { FlowFeeClaimSubmitRequestToJSON } from '../models/FlowFeeClaimSubmitRequest.js';
100
+ import { FlowFeeClaimSubmitResponseFromJSON } from '../models/FlowFeeClaimSubmitResponse.js';
101
+ import '../models/FlowListItem.js';
102
+ import '../models/FlowModeEnum.js';
103
+ import { FlowPaymentLinkCreateRequestToJSON } from '../models/FlowPaymentLinkCreateRequest.js';
104
+ import { FlowPaymentLinkCreateResponseFromJSON } from '../models/FlowPaymentLinkCreateResponse.js';
105
+ import '../models/GateRuleType.js';
106
+ import '../models/GetEVMSponsoredTransactionStatusResponse.js';
107
+ import '../models/PasskeyTransport.js';
108
+ import '../models/PasskeyCredentialHint.js';
109
+ import '../models/PasskeyCredentialType.js';
110
+ import '../models/PublicKeyCredentialType.js';
111
+ import '../models/GlobalWalletAccessControlTypeEnum.js';
112
+ import '../models/GlobalWalletConnectionStatusEnum.js';
113
+ import '../models/GrantActionEnum.js';
114
+ import '../models/GrantTokenResponse.js';
115
+ import '../models/HealthcheckStatus.js';
116
+ import '../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js';
117
+ import '../models/InlineObject2.js';
118
+ import '../models/InlineObject3.js';
119
+ import '../models/InlineObject4.js';
120
+ import '../models/InlineObject5.js';
121
+ import '../models/InviteStatusEnum.js';
122
+ import '../models/RoleEnum.js';
123
+ import '../models/JwtScope.js';
124
+ import '../models/MFAAction.js';
125
+ import '../models/NextViewEnum.js';
126
+ import '../models/OauthResultStatus.js';
127
+ import '../models/WhenToImplementEnum.js';
128
+ import '../models/PublishEventsEvents.js';
129
+ import '../models/ReshareKind.js';
130
+ import '../models/WaasPolicyConstraintCondition.js';
131
+ import '../models/WaasPolicyRuleType.js';
132
+ import '../models/SanctionsWalletBlockedEventPayload.js';
133
+ import '../models/SignMessageRawSign.js';
134
+ import { SoftDeleteWaasWalletsRequestToJSON } from '../models/SoftDeleteWaasWalletsRequest.js';
135
+ import { SoftDeleteWaasWalletsResponseFromJSON } from '../models/SoftDeleteWaasWalletsResponse.js';
136
+ import '../models/SsoProviderEnum.js';
137
+ import '../models/SsoProviderCheckResponse.js';
138
+ import '../models/SubscriptionAdvancedScopeEnum.js';
139
+ import '../models/SubscriptionFreeScopeEnum.js';
140
+ import '../models/SwapQuoteRequest.js';
141
+ import '../models/SwapStatusResponse.js';
142
+ import '../models/UserFieldsCheckEnum.js';
143
+ import '../models/UserFilterableFieldsEnum.js';
144
+ import '../models/VisitorFilterableFieldsEnum.js';
145
+ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
146
+ import '../models/WaasDelegationCredentialsResponse.js';
147
+ import '../models/WaasPolicyLayerUpdateRequest.js';
148
+ import '../models/WaasTransactionReviewFailurePolicy.js';
149
+ import '../models/WaasTransactionReviewTestScenario.js';
150
+ import '../models/WaasTransactionReviewTestResponseResponseSignature.js';
151
+ import '../models/WalletTransactionType.js';
152
+
153
+ /* tslint:disable */
154
+ /**
155
+ *
156
+ */
157
+ class ServerApi extends BaseAPI {
158
+ /**
159
+ * Create a flow (payment, deposit, or withdraw) for the environment.
160
+ * Create a flow
161
+ */
162
+ async createFlowServerRaw(requestParameters, initOverrides) {
163
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
164
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createFlowServer.');
165
+ }
166
+ if (requestParameters.mode === null || requestParameters.mode === undefined) {
167
+ throw new RequiredError('mode', 'Required parameter requestParameters.mode was null or undefined when calling createFlowServer.');
168
+ }
169
+ if (requestParameters.flowCreateRequest === null || requestParameters.flowCreateRequest === undefined) {
170
+ throw new RequiredError('flowCreateRequest', 'Required parameter requestParameters.flowCreateRequest was null or undefined when calling createFlowServer.');
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ headerParameters['Content-Type'] = 'application/json';
175
+ const response = await this.request({
176
+ path: `/server/{environmentId}/flow/{mode}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"mode"}}`, encodeURIComponent(String(requestParameters.mode))),
177
+ method: 'POST',
178
+ headers: headerParameters,
179
+ query: queryParameters,
180
+ body: FlowCreateRequestToJSON(requestParameters.flowCreateRequest),
181
+ }, initOverrides);
182
+ return new JSONApiResponse(response, (jsonValue) => FlowCreateResponseFromJSON(jsonValue));
183
+ }
184
+ /**
185
+ * Create a flow (payment, deposit, or withdraw) for the environment.
186
+ * Create a flow
187
+ */
188
+ async createFlowServer(requestParameters, initOverrides) {
189
+ const response = await this.createFlowServerRaw(requestParameters, initOverrides);
190
+ return await response.value();
191
+ }
192
+ /**
193
+ * Create a payment-mode flow and a shareable payer URL.
194
+ * Create a payment link
195
+ */
196
+ async createPaymentLinkServerRaw(requestParameters, initOverrides) {
197
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
198
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createPaymentLinkServer.');
199
+ }
200
+ if (requestParameters.flowPaymentLinkCreateRequest === null || requestParameters.flowPaymentLinkCreateRequest === undefined) {
201
+ throw new RequiredError('flowPaymentLinkCreateRequest', 'Required parameter requestParameters.flowPaymentLinkCreateRequest was null or undefined when calling createPaymentLinkServer.');
202
+ }
203
+ const queryParameters = {};
204
+ const headerParameters = {};
205
+ headerParameters['Content-Type'] = 'application/json';
206
+ const response = await this.request({
207
+ path: `/server/{environmentId}/payment-links`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
208
+ method: 'POST',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ body: FlowPaymentLinkCreateRequestToJSON(requestParameters.flowPaymentLinkCreateRequest),
212
+ }, initOverrides);
213
+ return new JSONApiResponse(response, (jsonValue) => FlowPaymentLinkCreateResponseFromJSON(jsonValue));
214
+ }
215
+ /**
216
+ * Create a payment-mode flow and a shareable payer URL.
217
+ * Create a payment link
218
+ */
219
+ async createPaymentLinkServer(requestParameters, initOverrides) {
220
+ const response = await this.createPaymentLinkServerRaw(requestParameters, initOverrides);
221
+ return await response.value();
222
+ }
223
+ /**
224
+ * Returns the recipient claimable fee balances across all providers.
225
+ * Get claimable fee balances
226
+ */
227
+ async getFlowFeeClaimBalancesServerRaw(requestParameters, initOverrides) {
228
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
229
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowFeeClaimBalancesServer.');
230
+ }
231
+ if (requestParameters.recipientAddress === null || requestParameters.recipientAddress === undefined) {
232
+ throw new RequiredError('recipientAddress', 'Required parameter requestParameters.recipientAddress was null or undefined when calling getFlowFeeClaimBalancesServer.');
233
+ }
234
+ const queryParameters = {};
235
+ if (requestParameters.recipientAddress !== undefined) {
236
+ queryParameters['recipientAddress'] = requestParameters.recipientAddress;
237
+ }
238
+ if (requestParameters.chainId !== undefined) {
239
+ queryParameters['chainId'] = requestParameters.chainId;
240
+ }
241
+ if (requestParameters.tokenAddress !== undefined) {
242
+ queryParameters['tokenAddress'] = requestParameters.tokenAddress;
243
+ }
244
+ const headerParameters = {};
245
+ const response = await this.request({
246
+ path: `/server/{environmentId}/flow/fees/balances`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
247
+ method: 'GET',
248
+ headers: headerParameters,
249
+ query: queryParameters,
250
+ }, initOverrides);
251
+ return new JSONApiResponse(response, (jsonValue) => FlowFeeBalancesResponseFromJSON(jsonValue));
252
+ }
253
+ /**
254
+ * Returns the recipient claimable fee balances across all providers.
255
+ * Get claimable fee balances
256
+ */
257
+ async getFlowFeeClaimBalancesServer(requestParameters, initOverrides) {
258
+ const response = await this.getFlowFeeClaimBalancesServerRaw(requestParameters, initOverrides);
259
+ return await response.value();
260
+ }
261
+ /**
262
+ * Get a flow by ID
263
+ */
264
+ async getFlowServerRaw(requestParameters, initOverrides) {
265
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
266
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowServer.');
267
+ }
268
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
269
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowServer.');
270
+ }
271
+ const queryParameters = {};
272
+ const headerParameters = {};
273
+ const response = await this.request({
274
+ path: `/server/{environmentId}/flow/{flowId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
275
+ method: 'GET',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ }, initOverrides);
279
+ return new JSONApiResponse(response, (jsonValue) => FlowFromJSON(jsonValue));
280
+ }
281
+ /**
282
+ * Get a flow by ID
283
+ */
284
+ async getFlowServer(requestParameters, initOverrides) {
285
+ const response = await this.getFlowServerRaw(requestParameters, initOverrides);
286
+ return await response.value();
287
+ }
288
+ /**
289
+ * Initiates a provider-agnostic fee claim for a recipient.
290
+ * Initiate a fee claim
291
+ */
292
+ async initiateFlowFeeClaimServerRaw(requestParameters, initOverrides) {
293
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
294
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling initiateFlowFeeClaimServer.');
295
+ }
296
+ if (requestParameters.flowFeeClaimRequest === null || requestParameters.flowFeeClaimRequest === undefined) {
297
+ throw new RequiredError('flowFeeClaimRequest', 'Required parameter requestParameters.flowFeeClaimRequest was null or undefined when calling initiateFlowFeeClaimServer.');
298
+ }
299
+ const queryParameters = {};
300
+ const headerParameters = {};
301
+ headerParameters['Content-Type'] = 'application/json';
302
+ const response = await this.request({
303
+ path: `/server/{environmentId}/flow/fees/claim`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
304
+ method: 'POST',
305
+ headers: headerParameters,
306
+ query: queryParameters,
307
+ body: FlowFeeClaimRequestToJSON(requestParameters.flowFeeClaimRequest),
308
+ }, initOverrides);
309
+ return new JSONApiResponse(response, (jsonValue) => FlowFeeClaimResponseFromJSON(jsonValue));
310
+ }
311
+ /**
312
+ * Initiates a provider-agnostic fee claim for a recipient.
313
+ * Initiate a fee claim
314
+ */
315
+ async initiateFlowFeeClaimServer(requestParameters, initOverrides) {
316
+ const response = await this.initiateFlowFeeClaimServerRaw(requestParameters, initOverrides);
317
+ return await response.value();
318
+ }
319
+ /**
320
+ * Soft-deletes the specified WaaS wallets by ID. Only available in non-production environments.
321
+ * Soft-delete WaaS wallets (non-production only)
322
+ */
323
+ async softDeleteWaasWalletsServerRaw(requestParameters, initOverrides) {
324
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
325
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling softDeleteWaasWalletsServer.');
326
+ }
327
+ if (requestParameters.softDeleteWaasWalletsRequest === null || requestParameters.softDeleteWaasWalletsRequest === undefined) {
328
+ throw new RequiredError('softDeleteWaasWalletsRequest', 'Required parameter requestParameters.softDeleteWaasWalletsRequest was null or undefined when calling softDeleteWaasWalletsServer.');
329
+ }
330
+ const queryParameters = {};
331
+ const headerParameters = {};
332
+ headerParameters['Content-Type'] = 'application/json';
333
+ const response = await this.request({
334
+ path: `/server/{environmentId}/waas/softDelete`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
335
+ method: 'POST',
336
+ headers: headerParameters,
337
+ query: queryParameters,
338
+ body: SoftDeleteWaasWalletsRequestToJSON(requestParameters.softDeleteWaasWalletsRequest),
339
+ }, initOverrides);
340
+ return new JSONApiResponse(response, (jsonValue) => SoftDeleteWaasWalletsResponseFromJSON(jsonValue));
341
+ }
342
+ /**
343
+ * Soft-deletes the specified WaaS wallets by ID. Only available in non-production environments.
344
+ * Soft-delete WaaS wallets (non-production only)
345
+ */
346
+ async softDeleteWaasWalletsServer(requestParameters, initOverrides) {
347
+ const response = await this.softDeleteWaasWalletsServerRaw(requestParameters, initOverrides);
348
+ return await response.value();
349
+ }
350
+ /**
351
+ * Submits signatures to complete a previously initiated fee claim.
352
+ * Submit a fee claim
353
+ */
354
+ async submitFlowFeeClaimServerRaw(requestParameters, initOverrides) {
355
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
356
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling submitFlowFeeClaimServer.');
357
+ }
358
+ if (requestParameters.flowFeeClaimSubmitRequest === null || requestParameters.flowFeeClaimSubmitRequest === undefined) {
359
+ throw new RequiredError('flowFeeClaimSubmitRequest', 'Required parameter requestParameters.flowFeeClaimSubmitRequest was null or undefined when calling submitFlowFeeClaimServer.');
360
+ }
361
+ const queryParameters = {};
362
+ const headerParameters = {};
363
+ headerParameters['Content-Type'] = 'application/json';
364
+ const response = await this.request({
365
+ path: `/server/{environmentId}/flow/fees/claim/submit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
366
+ method: 'POST',
367
+ headers: headerParameters,
368
+ query: queryParameters,
369
+ body: FlowFeeClaimSubmitRequestToJSON(requestParameters.flowFeeClaimSubmitRequest),
370
+ }, initOverrides);
371
+ return new JSONApiResponse(response, (jsonValue) => FlowFeeClaimSubmitResponseFromJSON(jsonValue));
372
+ }
373
+ /**
374
+ * Submits signatures to complete a previously initiated fee claim.
375
+ * Submit a fee claim
376
+ */
377
+ async submitFlowFeeClaimServer(requestParameters, initOverrides) {
378
+ const response = await this.submitFlowFeeClaimServerRaw(requestParameters, initOverrides);
379
+ return await response.value();
380
+ }
381
+ }
382
+
383
+ export { ServerApi };
@@ -34,6 +34,7 @@ export * from './ProjectsApi';
34
34
  export * from './ProvidersApi';
35
35
  export * from './SDKApi';
36
36
  export * from './SDKViewsApi';
37
+ export * from './ServerApi';
37
38
  export * from './SessionsApi';
38
39
  export * from './TestAccountApi';
39
40
  export * from './TokensApi';
package/src/index.cjs CHANGED
@@ -39,6 +39,7 @@ var ProjectsApi = require('./apis/ProjectsApi.cjs');
39
39
  var ProvidersApi = require('./apis/ProvidersApi.cjs');
40
40
  var SDKApi = require('./apis/SDKApi.cjs');
41
41
  var SDKViewsApi = require('./apis/SDKViewsApi.cjs');
42
+ var ServerApi = require('./apis/ServerApi.cjs');
42
43
  var SessionsApi = require('./apis/SessionsApi.cjs');
43
44
  var TestAccountApi = require('./apis/TestAccountApi.cjs');
44
45
  var TokensApi = require('./apis/TokensApi.cjs');
@@ -342,6 +343,10 @@ var FlowListItem = require('./models/FlowListItem.cjs');
342
343
  var FlowListItemFailure = require('./models/FlowListItemFailure.cjs');
343
344
  var FlowListResponse = require('./models/FlowListResponse.cjs');
344
345
  var FlowModeEnum = require('./models/FlowModeEnum.cjs');
346
+ var FlowPaymentLinkCreateRequest = require('./models/FlowPaymentLinkCreateRequest.cjs');
347
+ var FlowPaymentLinkCreateRequestBaseFields = require('./models/FlowPaymentLinkCreateRequestBaseFields.cjs');
348
+ var FlowPaymentLinkCreateResponse = require('./models/FlowPaymentLinkCreateResponse.cjs');
349
+ var FlowPaymentLinkCreateResponseExtraFields = require('./models/FlowPaymentLinkCreateResponseExtraFields.cjs');
345
350
  var FlowPrepareSigningRequest = require('./models/FlowPrepareSigningRequest.cjs');
346
351
  var FlowQuote = require('./models/FlowQuote.cjs');
347
352
  var FlowQuoteRequest = require('./models/FlowQuoteRequest.cjs');
@@ -673,6 +678,8 @@ var SmsVerificationRetryRequest = require('./models/SmsVerificationRetryRequest.
673
678
  var SmsVerificationVerifyRequest = require('./models/SmsVerificationVerifyRequest.cjs');
674
679
  var SocialSignInProvider = require('./models/SocialSignInProvider.cjs');
675
680
  var SocialSignInProviderEnum = require('./models/SocialSignInProviderEnum.cjs');
681
+ var SoftDeleteWaasWalletsRequest = require('./models/SoftDeleteWaasWalletsRequest.cjs');
682
+ var SoftDeleteWaasWalletsResponse = require('./models/SoftDeleteWaasWalletsResponse.cjs');
676
683
  var SolanaTransactionOptimizationRequest = require('./models/SolanaTransactionOptimizationRequest.cjs');
677
684
  var SolanaTransactionOptimizationResponse = require('./models/SolanaTransactionOptimizationResponse.cjs');
678
685
  var SponsorEVMTransactionRequest = require('./models/SponsorEVMTransactionRequest.cjs');
@@ -950,6 +957,7 @@ Object.defineProperty(exports, 'SubmitAleoProverEncryptedOptionsNetworkEnum', {
950
957
  get: function () { return SDKApi.SubmitAleoProverEncryptedOptionsNetworkEnum; }
951
958
  });
952
959
  exports.SDKViewsApi = SDKViewsApi.SDKViewsApi;
960
+ exports.ServerApi = ServerApi.ServerApi;
953
961
  exports.SessionsApi = SessionsApi.SessionsApi;
954
962
  exports.TestAccountApi = TestAccountApi.TestAccountApi;
955
963
  exports.TokensApi = TokensApi.TokensApi;
@@ -2053,6 +2061,18 @@ Object.defineProperty(exports, 'FlowModeEnum', {
2053
2061
  exports.FlowModeEnumFromJSON = FlowModeEnum.FlowModeEnumFromJSON;
2054
2062
  exports.FlowModeEnumFromJSONTyped = FlowModeEnum.FlowModeEnumFromJSONTyped;
2055
2063
  exports.FlowModeEnumToJSON = FlowModeEnum.FlowModeEnumToJSON;
2064
+ exports.FlowPaymentLinkCreateRequestFromJSON = FlowPaymentLinkCreateRequest.FlowPaymentLinkCreateRequestFromJSON;
2065
+ exports.FlowPaymentLinkCreateRequestFromJSONTyped = FlowPaymentLinkCreateRequest.FlowPaymentLinkCreateRequestFromJSONTyped;
2066
+ exports.FlowPaymentLinkCreateRequestToJSON = FlowPaymentLinkCreateRequest.FlowPaymentLinkCreateRequestToJSON;
2067
+ exports.FlowPaymentLinkCreateRequestBaseFieldsFromJSON = FlowPaymentLinkCreateRequestBaseFields.FlowPaymentLinkCreateRequestBaseFieldsFromJSON;
2068
+ exports.FlowPaymentLinkCreateRequestBaseFieldsFromJSONTyped = FlowPaymentLinkCreateRequestBaseFields.FlowPaymentLinkCreateRequestBaseFieldsFromJSONTyped;
2069
+ exports.FlowPaymentLinkCreateRequestBaseFieldsToJSON = FlowPaymentLinkCreateRequestBaseFields.FlowPaymentLinkCreateRequestBaseFieldsToJSON;
2070
+ exports.FlowPaymentLinkCreateResponseFromJSON = FlowPaymentLinkCreateResponse.FlowPaymentLinkCreateResponseFromJSON;
2071
+ exports.FlowPaymentLinkCreateResponseFromJSONTyped = FlowPaymentLinkCreateResponse.FlowPaymentLinkCreateResponseFromJSONTyped;
2072
+ exports.FlowPaymentLinkCreateResponseToJSON = FlowPaymentLinkCreateResponse.FlowPaymentLinkCreateResponseToJSON;
2073
+ exports.FlowPaymentLinkCreateResponseExtraFieldsFromJSON = FlowPaymentLinkCreateResponseExtraFields.FlowPaymentLinkCreateResponseExtraFieldsFromJSON;
2074
+ exports.FlowPaymentLinkCreateResponseExtraFieldsFromJSONTyped = FlowPaymentLinkCreateResponseExtraFields.FlowPaymentLinkCreateResponseExtraFieldsFromJSONTyped;
2075
+ exports.FlowPaymentLinkCreateResponseExtraFieldsToJSON = FlowPaymentLinkCreateResponseExtraFields.FlowPaymentLinkCreateResponseExtraFieldsToJSON;
2056
2076
  exports.FlowPrepareSigningRequestFromJSON = FlowPrepareSigningRequest.FlowPrepareSigningRequestFromJSON;
2057
2077
  exports.FlowPrepareSigningRequestFromJSONTyped = FlowPrepareSigningRequest.FlowPrepareSigningRequestFromJSONTyped;
2058
2078
  exports.FlowPrepareSigningRequestToJSON = FlowPrepareSigningRequest.FlowPrepareSigningRequestToJSON;
@@ -3270,6 +3290,12 @@ Object.defineProperty(exports, 'SocialSignInProviderEnum', {
3270
3290
  exports.SocialSignInProviderEnumFromJSON = SocialSignInProviderEnum.SocialSignInProviderEnumFromJSON;
3271
3291
  exports.SocialSignInProviderEnumFromJSONTyped = SocialSignInProviderEnum.SocialSignInProviderEnumFromJSONTyped;
3272
3292
  exports.SocialSignInProviderEnumToJSON = SocialSignInProviderEnum.SocialSignInProviderEnumToJSON;
3293
+ exports.SoftDeleteWaasWalletsRequestFromJSON = SoftDeleteWaasWalletsRequest.SoftDeleteWaasWalletsRequestFromJSON;
3294
+ exports.SoftDeleteWaasWalletsRequestFromJSONTyped = SoftDeleteWaasWalletsRequest.SoftDeleteWaasWalletsRequestFromJSONTyped;
3295
+ exports.SoftDeleteWaasWalletsRequestToJSON = SoftDeleteWaasWalletsRequest.SoftDeleteWaasWalletsRequestToJSON;
3296
+ exports.SoftDeleteWaasWalletsResponseFromJSON = SoftDeleteWaasWalletsResponse.SoftDeleteWaasWalletsResponseFromJSON;
3297
+ exports.SoftDeleteWaasWalletsResponseFromJSONTyped = SoftDeleteWaasWalletsResponse.SoftDeleteWaasWalletsResponseFromJSONTyped;
3298
+ exports.SoftDeleteWaasWalletsResponseToJSON = SoftDeleteWaasWalletsResponse.SoftDeleteWaasWalletsResponseToJSON;
3273
3299
  exports.SolanaTransactionOptimizationRequestFromJSON = SolanaTransactionOptimizationRequest.SolanaTransactionOptimizationRequestFromJSON;
3274
3300
  exports.SolanaTransactionOptimizationRequestFromJSONTyped = SolanaTransactionOptimizationRequest.SolanaTransactionOptimizationRequestFromJSONTyped;
3275
3301
  exports.SolanaTransactionOptimizationRequestToJSON = SolanaTransactionOptimizationRequest.SolanaTransactionOptimizationRequestToJSON;
package/src/index.js CHANGED
@@ -35,6 +35,7 @@ export { ProjectsApi } from './apis/ProjectsApi.js';
35
35
  export { ProvidersApi } from './apis/ProvidersApi.js';
36
36
  export { GetAleoCuratedPricesNetworkEnum, GetAleoFeemasterPolicyNetworkEnum, GetAleoProverPubkeyNetworkEnum, GetAleoProverPubkeyOptionsNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi, SubmitAleoProverEncryptedNetworkEnum, SubmitAleoProverEncryptedOptionsNetworkEnum } from './apis/SDKApi.js';
37
37
  export { SDKViewsApi } from './apis/SDKViewsApi.js';
38
+ export { ServerApi } from './apis/ServerApi.js';
38
39
  export { SessionsApi } from './apis/SessionsApi.js';
39
40
  export { TestAccountApi } from './apis/TestAccountApi.js';
40
41
  export { TokensApi } from './apis/TokensApi.js';
@@ -338,6 +339,10 @@ export { FlowListItemFromJSON, FlowListItemFromJSONTyped, FlowListItemSourceType
338
339
  export { FlowListItemFailureFromJSON, FlowListItemFailureFromJSONTyped, FlowListItemFailureToJSON } from './models/FlowListItemFailure.js';
339
340
  export { FlowListResponseFromJSON, FlowListResponseFromJSONTyped, FlowListResponseToJSON } from './models/FlowListResponse.js';
340
341
  export { FlowModeEnum, FlowModeEnumFromJSON, FlowModeEnumFromJSONTyped, FlowModeEnumToJSON } from './models/FlowModeEnum.js';
342
+ export { FlowPaymentLinkCreateRequestFromJSON, FlowPaymentLinkCreateRequestFromJSONTyped, FlowPaymentLinkCreateRequestToJSON } from './models/FlowPaymentLinkCreateRequest.js';
343
+ export { FlowPaymentLinkCreateRequestBaseFieldsFromJSON, FlowPaymentLinkCreateRequestBaseFieldsFromJSONTyped, FlowPaymentLinkCreateRequestBaseFieldsToJSON } from './models/FlowPaymentLinkCreateRequestBaseFields.js';
344
+ export { FlowPaymentLinkCreateResponseFromJSON, FlowPaymentLinkCreateResponseFromJSONTyped, FlowPaymentLinkCreateResponseToJSON } from './models/FlowPaymentLinkCreateResponse.js';
345
+ export { FlowPaymentLinkCreateResponseExtraFieldsFromJSON, FlowPaymentLinkCreateResponseExtraFieldsFromJSONTyped, FlowPaymentLinkCreateResponseExtraFieldsToJSON } from './models/FlowPaymentLinkCreateResponseExtraFields.js';
341
346
  export { FlowPrepareSigningRequestFromJSON, FlowPrepareSigningRequestFromJSONTyped, FlowPrepareSigningRequestToJSON } from './models/FlowPrepareSigningRequest.js';
342
347
  export { FlowQuoteFromJSON, FlowQuoteFromJSONTyped, FlowQuoteToJSON } from './models/FlowQuote.js';
343
348
  export { FlowQuoteRequestFromJSON, FlowQuoteRequestFromJSONTyped, FlowQuoteRequestToJSON } from './models/FlowQuoteRequest.js';
@@ -669,6 +674,8 @@ export { SmsVerificationRetryRequestFromJSON, SmsVerificationRetryRequestFromJSO
669
674
  export { SmsVerificationVerifyRequestFromJSON, SmsVerificationVerifyRequestFromJSONTyped, SmsVerificationVerifyRequestToJSON } from './models/SmsVerificationVerifyRequest.js';
670
675
  export { SocialSignInProviderFromJSON, SocialSignInProviderFromJSONTyped, SocialSignInProviderToJSON } from './models/SocialSignInProvider.js';
671
676
  export { SocialSignInProviderEnum, SocialSignInProviderEnumFromJSON, SocialSignInProviderEnumFromJSONTyped, SocialSignInProviderEnumToJSON } from './models/SocialSignInProviderEnum.js';
677
+ export { SoftDeleteWaasWalletsRequestFromJSON, SoftDeleteWaasWalletsRequestFromJSONTyped, SoftDeleteWaasWalletsRequestToJSON } from './models/SoftDeleteWaasWalletsRequest.js';
678
+ export { SoftDeleteWaasWalletsResponseFromJSON, SoftDeleteWaasWalletsResponseFromJSONTyped, SoftDeleteWaasWalletsResponseToJSON } from './models/SoftDeleteWaasWalletsResponse.js';
672
679
  export { SolanaTransactionOptimizationRequestFromJSON, SolanaTransactionOptimizationRequestFromJSONTyped, SolanaTransactionOptimizationRequestToJSON } from './models/SolanaTransactionOptimizationRequest.js';
673
680
  export { SolanaTransactionOptimizationResponseFromJSON, SolanaTransactionOptimizationResponseFromJSONTyped, SolanaTransactionOptimizationResponseToJSON } from './models/SolanaTransactionOptimizationResponse.js';
674
681
  export { SponsorEVMTransactionRequestFromJSON, SponsorEVMTransactionRequestFromJSONTyped, SponsorEVMTransactionRequestToJSON } from './models/SponsorEVMTransactionRequest.js';
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var DestinationConfigInput = require('./DestinationConfigInput.cjs');
7
+ var FlowFeeConfig = require('./FlowFeeConfig.cjs');
8
+ var SettlementConfigInput = require('./SettlementConfigInput.cjs');
9
+
10
+ /* tslint:disable */
11
+ function FlowPaymentLinkCreateRequestFromJSON(json) {
12
+ return FlowPaymentLinkCreateRequestFromJSONTyped(json);
13
+ }
14
+ function FlowPaymentLinkCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'amount': json['amount'],
20
+ 'currency': json['currency'],
21
+ 'settlementConfig': SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
22
+ 'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
23
+ 'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
24
+ 'feeConfig': !runtime.exists(json, 'feeConfig') ? undefined : FlowFeeConfig.FlowFeeConfigFromJSON(json['feeConfig']),
25
+ 'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
26
+ 'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
27
+ 'baseUrl': json['baseUrl'],
28
+ };
29
+ }
30
+ function FlowPaymentLinkCreateRequestToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'amount': value.amount,
39
+ 'currency': value.currency,
40
+ 'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
41
+ 'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
42
+ 'memo': value.memo,
43
+ 'feeConfig': FlowFeeConfig.FlowFeeConfigToJSON(value.feeConfig),
44
+ 'expiresIn': value.expiresIn,
45
+ 'pegStablecoins': value.pegStablecoins,
46
+ 'baseUrl': value.baseUrl,
47
+ };
48
+ }
49
+
50
+ exports.FlowPaymentLinkCreateRequestFromJSON = FlowPaymentLinkCreateRequestFromJSON;
51
+ exports.FlowPaymentLinkCreateRequestFromJSONTyped = FlowPaymentLinkCreateRequestFromJSONTyped;
52
+ exports.FlowPaymentLinkCreateRequestToJSON = FlowPaymentLinkCreateRequestToJSON;
@@ -0,0 +1,78 @@
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 { DestinationConfigInput } from './DestinationConfigInput';
13
+ import { FlowFeeConfig } from './FlowFeeConfig';
14
+ import { SettlementConfigInput } from './SettlementConfigInput';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface FlowPaymentLinkCreateRequest
19
+ */
20
+ export interface FlowPaymentLinkCreateRequest {
21
+ /**
22
+ * Amount in the specified currency
23
+ * @type {string}
24
+ * @memberof FlowPaymentLinkCreateRequest
25
+ */
26
+ amount: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof FlowPaymentLinkCreateRequest
31
+ */
32
+ currency: string;
33
+ /**
34
+ *
35
+ * @type {SettlementConfigInput}
36
+ * @memberof FlowPaymentLinkCreateRequest
37
+ */
38
+ settlementConfig: SettlementConfigInput;
39
+ /**
40
+ *
41
+ * @type {DestinationConfigInput}
42
+ * @memberof FlowPaymentLinkCreateRequest
43
+ */
44
+ destinationConfig: DestinationConfigInput;
45
+ /**
46
+ * Arbitrary metadata attached to the flow
47
+ * @type {object}
48
+ * @memberof FlowPaymentLinkCreateRequest
49
+ */
50
+ memo?: object;
51
+ /**
52
+ *
53
+ * @type {FlowFeeConfig}
54
+ * @memberof FlowPaymentLinkCreateRequest
55
+ */
56
+ feeConfig?: FlowFeeConfig;
57
+ /**
58
+ * Seconds until the flow expires (default 3600, clamped server-side)
59
+ * @type {number}
60
+ * @memberof FlowPaymentLinkCreateRequest
61
+ */
62
+ expiresIn?: number;
63
+ /**
64
+ * When true, known stablecoins (USDC, USDT, DAI, etc.) in the settlement config are pegged 1:1 to the flow currency at quote time, skipping market-price lookup. Defaults to false.
65
+ * @type {boolean}
66
+ * @memberof FlowPaymentLinkCreateRequest
67
+ */
68
+ pegStablecoins?: boolean;
69
+ /**
70
+ * Merchant-hosted payer app URL
71
+ * @type {string}
72
+ * @memberof FlowPaymentLinkCreateRequest
73
+ */
74
+ baseUrl: string;
75
+ }
76
+ export declare function FlowPaymentLinkCreateRequestFromJSON(json: any): FlowPaymentLinkCreateRequest;
77
+ export declare function FlowPaymentLinkCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowPaymentLinkCreateRequest;
78
+ export declare function FlowPaymentLinkCreateRequestToJSON(value?: FlowPaymentLinkCreateRequest | null): any;