@dynamic-labs/sdk-api-core 0.0.939 → 0.0.941

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 (217) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +8 -2
  3. package/src/apis/SDKApi.d.ts +4 -2
  4. package/src/apis/SDKApi.js +8 -2
  5. package/src/index.cjs +4 -0
  6. package/src/index.js +1 -0
  7. package/src/models/Account.d.ts +1 -1
  8. package/src/models/AccountBalances.d.ts +1 -1
  9. package/src/models/Asset.d.ts +7 -7
  10. package/src/models/AssetDiff.d.ts +2 -2
  11. package/src/models/AssetExposure.d.ts +1 -1
  12. package/src/models/AssetTransfer.d.ts +4 -4
  13. package/src/models/AttachSourceRequest.cjs +3 -0
  14. package/src/models/AttachSourceRequest.d.ts +8 -1
  15. package/src/models/AttachSourceRequest.js +3 -0
  16. package/src/models/AuthSettings.d.ts +1 -1
  17. package/src/models/AuthenticationExtensionsClientInputs.d.ts +3 -3
  18. package/src/models/AuthenticationExtensionsClientOutputs.d.ts +3 -3
  19. package/src/models/AuthenticatorAssertionResponse.d.ts +1 -1
  20. package/src/models/AuthenticatorAttestationResponse.d.ts +1 -1
  21. package/src/models/AuthenticatorSelectionCriteria.d.ts +1 -1
  22. package/src/models/BackupKeySharesToLocationResponse.d.ts +1 -1
  23. package/src/models/BackupKeySharesToLocationsPendingResponse.d.ts +2 -2
  24. package/src/models/BackupKeySharesToLocationsRequest.d.ts +1 -1
  25. package/src/models/BackupKeySharesToLocationsResponse.d.ts +3 -3
  26. package/src/models/BackupMultipleClientKeySharesResponse.d.ts +1 -1
  27. package/src/models/BadGateway.d.ts +1 -1
  28. package/src/models/BadRequest.d.ts +1 -1
  29. package/src/models/BaseUser.d.ts +18 -18
  30. package/src/models/BlockaidValidation.d.ts +4 -4
  31. package/src/models/ChainConfiguration.d.ts +3 -3
  32. package/src/models/Checkout.d.ts +3 -3
  33. package/src/models/CheckoutFailure.d.ts +3 -3
  34. package/src/models/CheckoutFeeBreakdown.d.ts +1 -1
  35. package/src/models/CheckoutSettlementData.d.ts +1 -1
  36. package/src/models/CheckoutSourceTypeEnum.cjs +0 -1
  37. package/src/models/CheckoutSourceTypeEnum.d.ts +1 -2
  38. package/src/models/CheckoutSourceTypeEnum.js +0 -1
  39. package/src/models/CheckoutTransaction.cjs +3 -0
  40. package/src/models/CheckoutTransaction.d.ts +18 -11
  41. package/src/models/CheckoutTransaction.js +3 -0
  42. package/src/models/CheckoutTransactionCreateRequest.d.ts +3 -3
  43. package/src/models/CheckoutTransactionExchangeSource.cjs +45 -0
  44. package/src/models/CheckoutTransactionExchangeSource.d.ts +33 -0
  45. package/src/models/CheckoutTransactionExchangeSource.js +39 -0
  46. package/src/models/CheckoutTransactionQuote.d.ts +6 -6
  47. package/src/models/CheckoutsResponse.d.ts +1 -1
  48. package/src/models/CoinbaseOnrampGetBuyUrlRequest.d.ts +2 -2
  49. package/src/models/CoinbaseOnrampOrderResponsePaymentLink.d.ts +1 -1
  50. package/src/models/Conflict.d.ts +1 -1
  51. package/src/models/ConnectRequest.d.ts +1 -1
  52. package/src/models/CreateRoomsResponse.d.ts +1 -1
  53. package/src/models/CreateRoomsWithoutWalletIdResponse.d.ts +1 -1
  54. package/src/models/CreateWaasAccountRequest.d.ts +2 -2
  55. package/src/models/CryptoDotComPaymentResponse.d.ts +1 -1
  56. package/src/models/Currency.d.ts +4 -4
  57. package/src/models/DelegatedAccessEncryptionPublicKey.d.ts +2 -2
  58. package/src/models/DelegatedShareDeliveryRequestEncryptedDelegatedShare.d.ts +1 -1
  59. package/src/models/DepositAmountsConfigInput.d.ts +2 -2
  60. package/src/models/DestinationConfigInput.d.ts +1 -1
  61. package/src/models/DeviceRegistrationResponse.d.ts +4 -4
  62. package/src/models/DeviceRegistrationsResponse.d.ts +2 -2
  63. package/src/models/Duration.d.ts +1 -1
  64. package/src/models/DynamicJwt.d.ts +37 -37
  65. package/src/models/Eip712Domain.d.ts +3 -3
  66. package/src/models/Eip712TypeMember.d.ts +2 -2
  67. package/src/models/EmailVerificationCreateRequest.d.ts +1 -1
  68. package/src/models/EmailVerificationCreateResponse.d.ts +1 -1
  69. package/src/models/EmailVerificationRetryRequest.d.ts +1 -1
  70. package/src/models/EmbeddedWalletAuthToken.d.ts +1 -1
  71. package/src/models/EmbeddedWalletSecret.d.ts +1 -1
  72. package/src/models/EmbeddedWalletSecretWithUpdatedJwt.d.ts +2 -2
  73. package/src/models/EmbeddedWalletSecretWithUpdatedJwtAllOf.d.ts +1 -1
  74. package/src/models/ErrorMessageWithCode.d.ts +2 -2
  75. package/src/models/Exchange.d.ts +1 -1
  76. package/src/models/ExchangeTransaction.d.ts +1 -1
  77. package/src/models/ExchangeTransferResponse.d.ts +1 -1
  78. package/src/models/ExportEmbeddedWalletResponse.d.ts +1 -1
  79. package/src/models/ExportWaasWalletPrivateKeyRequest.d.ts +2 -2
  80. package/src/models/ExternalAuth.d.ts +1 -1
  81. package/src/models/ExternalWalletFundingDefaultSettingsToken.d.ts +1 -1
  82. package/src/models/FeatureFlags.d.ts +2 -2
  83. package/src/models/Forbidden.d.ts +1 -1
  84. package/src/models/ForbiddenErrorPayload.d.ts +1 -1
  85. package/src/models/Funding.d.ts +1 -1
  86. package/src/models/FundingExternalWallets.d.ts +1 -1
  87. package/src/models/GetPasskeyAuthenticationOptionsResponse.d.ts +1 -1
  88. package/src/models/GetPasskeyRegistrationOptionsResponse.d.ts +2 -2
  89. package/src/models/GetUserPasskeysResponse.d.ts +1 -1
  90. package/src/models/GlobalWalletConnection.d.ts +2 -2
  91. package/src/models/GlobalWalletConnectionCreateRequest.d.ts +1 -1
  92. package/src/models/GlobalWalletSettings.d.ts +2 -2
  93. package/src/models/HCaptchaSettings.d.ts +2 -2
  94. package/src/models/ImportWaasPrivateKeyRequest.d.ts +1 -1
  95. package/src/models/IntegrationSetting.d.ts +3 -3
  96. package/src/models/InternalServerError.d.ts +1 -1
  97. package/src/models/JwksKey.d.ts +6 -6
  98. package/src/models/JwksResponse.d.ts +1 -1
  99. package/src/models/JwtBlockchainAccount.d.ts +2 -2
  100. package/src/models/JwtPayloadDeprecatedInfo.d.ts +10 -10
  101. package/src/models/JwtVerifiedCredential.d.ts +10 -10
  102. package/src/models/JwtVerifiedCredentialHashes.d.ts +5 -5
  103. package/src/models/MFAAuthPasskeyDeviceGetResponseAssertion.d.ts +1 -1
  104. package/src/models/MFAListDevicesResponse.d.ts +1 -1
  105. package/src/models/MFAMethodsResponse.d.ts +2 -2
  106. package/src/models/MFARegisterPasskeyDeviceGetResponseRegistration.d.ts +1 -1
  107. package/src/models/MFASettings.d.ts +5 -5
  108. package/src/models/MFASettingsActions.d.ts +1 -1
  109. package/src/models/MFASettingsMethods.d.ts +1 -1
  110. package/src/models/MergeConflicts.d.ts +1 -1
  111. package/src/models/MergeUserConflictResolutions.d.ts +1 -1
  112. package/src/models/MethodNotAllowed.d.ts +1 -1
  113. package/src/models/MinifiedDynamicJwt.d.ts +3 -3
  114. package/src/models/MultichainAccountBalanceResponse.d.ts +1 -1
  115. package/src/models/MultichainAccountBalancesRequest.d.ts +1 -1
  116. package/src/models/NameService.d.ts +1 -1
  117. package/src/models/NameServiceData.d.ts +2 -2
  118. package/src/models/NameServiceSdkSettingsEvm.d.ts +1 -1
  119. package/src/models/NativeCurrency.d.ts +6 -6
  120. package/src/models/Network.d.ts +6 -6
  121. package/src/models/NetworkConfiguration.d.ts +14 -14
  122. package/src/models/NetworkConfigurationResponse.d.ts +2 -2
  123. package/src/models/NextJsSettings.d.ts +1 -1
  124. package/src/models/NonceResponse.d.ts +1 -1
  125. package/src/models/NoncesResponse.d.ts +1 -1
  126. package/src/models/NotFound.d.ts +2 -2
  127. package/src/models/OauthProviderLoginUrl.d.ts +1 -1
  128. package/src/models/OauthProviderRequest.d.ts +2 -2
  129. package/src/models/OpenRoomResponse.d.ts +3 -3
  130. package/src/models/OpenRoomResponseForReshare.d.ts +3 -3
  131. package/src/models/OpenRoomResponseWithServerKeygenIds.d.ts +3 -3
  132. package/src/models/PasskeyAllowCredential.d.ts +1 -1
  133. package/src/models/PasskeyExcludeCredential.d.ts +1 -1
  134. package/src/models/PasskeyRegistrationCredential.d.ts +1 -1
  135. package/src/models/PasskeyRegistrationCredentialV2.d.ts +1 -1
  136. package/src/models/PasskeyStorage.d.ts +3 -3
  137. package/src/models/PriceData.d.ts +1 -1
  138. package/src/models/ProjectSettingsChains.d.ts +3 -3
  139. package/src/models/ProjectSettingsDesignButton.d.ts +5 -5
  140. package/src/models/ProjectSettingsDesignModal.d.ts +13 -13
  141. package/src/models/ProjectSettingsDesignWidget.d.ts +5 -5
  142. package/src/models/ProjectSettingsGeneral.d.ts +8 -8
  143. package/src/models/ProjectSettingsKyc.d.ts +7 -7
  144. package/src/models/ProjectSettingsPrivacy.d.ts +1 -1
  145. package/src/models/ProjectSettingsSdk.d.ts +14 -14
  146. package/src/models/ProjectSettingsSdkAccountAbstraction.d.ts +1 -1
  147. package/src/models/ProjectSettingsSdkEmailSignIn.d.ts +1 -1
  148. package/src/models/ProjectSettingsSdkEmbeddedWallets.d.ts +1 -1
  149. package/src/models/ProjectSettingsSdkSocialSignIn.d.ts +1 -1
  150. package/src/models/ProjectSettingsSdkWaas.d.ts +1 -1
  151. package/src/models/ProjectSettingsSdkWalletConnect.d.ts +1 -1
  152. package/src/models/Provider.d.ts +2 -2
  153. package/src/models/ProviderAgreement.d.ts +2 -2
  154. package/src/models/PublicKeyCredentialDescriptor.d.ts +1 -1
  155. package/src/models/PublicKeyCredentialParameters.d.ts +1 -1
  156. package/src/models/PublishEvents.d.ts +1 -1
  157. package/src/models/RampConfiguration.d.ts +3 -3
  158. package/src/models/ReactSettings.d.ts +1 -1
  159. package/src/models/RecordBroadcastRequest.cjs +3 -13
  160. package/src/models/RecordBroadcastRequest.d.ts +2 -2
  161. package/src/models/RecordBroadcastRequest.js +3 -13
  162. package/src/models/RecoverMultipleClientKeySharesRequest.d.ts +1 -1
  163. package/src/models/RecoverMultipleClientKeySharesResponse.d.ts +1 -1
  164. package/src/models/RegisterEmbeddedWalletSessionKeyResponse.d.ts +2 -2
  165. package/src/models/ReshareRequest.d.ts +3 -3
  166. package/src/models/SdkSettingsRequest.d.ts +2 -2
  167. package/src/models/SdkUser.d.ts +18 -18
  168. package/src/models/SettlementConfigInput.d.ts +1 -1
  169. package/src/models/SignMessageEvmTypedData.d.ts +1 -1
  170. package/src/models/SignMessageWithWaasRequest.d.ts +2 -2
  171. package/src/models/SimulateSVMTransactionRequest.d.ts +1 -1
  172. package/src/models/SimulateTransactionResponse.d.ts +5 -5
  173. package/src/models/SimulateUserOpRequest.d.ts +1 -1
  174. package/src/models/SocialSignInProvider.d.ts +1 -1
  175. package/src/models/SolanaTransactionOptimizationRequest.d.ts +1 -1
  176. package/src/models/SolanaTransactionOptimizationResponse.d.ts +1 -1
  177. package/src/models/SsoProvider.d.ts +2 -2
  178. package/src/models/SupportedOfframpsResponse.d.ts +1 -1
  179. package/src/models/SupportedOnrampsResponse.d.ts +1 -1
  180. package/src/models/SupportedSecurityMethod.d.ts +4 -4
  181. package/src/models/SwapFee.d.ts +4 -4
  182. package/src/models/SwapGasCost.d.ts +2 -2
  183. package/src/models/SwapQuoteResponse.d.ts +4 -4
  184. package/src/models/SwapQuoteResponseSide.d.ts +3 -3
  185. package/src/models/SwapStatusResponse.d.ts +7 -7
  186. package/src/models/SwapStep.d.ts +5 -5
  187. package/src/models/SwapStepSide.d.ts +3 -3
  188. package/src/models/SwapToken.d.ts +8 -8
  189. package/src/models/TelegramUser.d.ts +7 -7
  190. package/src/models/TokenBalance.d.ts +12 -12
  191. package/src/models/TooManyRequests.d.ts +1 -1
  192. package/src/models/TransferDestination.d.ts +1 -1
  193. package/src/models/TurnkeyCreateWalletAccountsRequestBodyParameters.d.ts +1 -1
  194. package/src/models/TurnkeyDeleteEmbeddedWalletsRequestBodyParameters.d.ts +2 -2
  195. package/src/models/TurnkeySignedRequest.d.ts +1 -1
  196. package/src/models/TurnkeyStamp.d.ts +1 -1
  197. package/src/models/TurnkeyWalletAccount.d.ts +1 -1
  198. package/src/models/TurnkeyWalletProperties.d.ts +1 -1
  199. package/src/models/Unauthorized.d.ts +1 -1
  200. package/src/models/UnprocessableEntity.d.ts +1 -1
  201. package/src/models/UnprocessableEntityErrorPayload.d.ts +3 -3
  202. package/src/models/UpdateSelfResponse.d.ts +1 -1
  203. package/src/models/UserFieldsCheckResponse.d.ts +3 -3
  204. package/src/models/UserOauthAccessTokenResponse.d.ts +1 -1
  205. package/src/models/UserPasskey.d.ts +5 -5
  206. package/src/models/VerifyRequest.d.ts +3 -3
  207. package/src/models/VerifyResponse.d.ts +1 -1
  208. package/src/models/WaasWalletProperties.d.ts +1 -1
  209. package/src/models/WaasWalletSettings.d.ts +3 -3
  210. package/src/models/WalletBitcoinConfig.d.ts +2 -2
  211. package/src/models/WalletKeyShareInfo.d.ts +4 -4
  212. package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.d.ts +4 -4
  213. package/src/models/WalletProperties.d.ts +2 -2
  214. package/src/models/WalletTransaction.d.ts +3 -3
  215. package/src/models/WalletTransactionAssetTransferMetadata.d.ts +1 -1
  216. package/src/models/WalletTransactionsResponse.d.ts +1 -1
  217. package/src/models/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.939",
3
+ "version": "0.0.941",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -4033,7 +4033,7 @@ class SDKApi extends runtime.BaseAPI {
4033
4033
  await this.getPasskeyRegistrationOptionsOptionsRaw(requestParameters, initOverrides);
4034
4034
  }
4035
4035
  /**
4036
- * Returns a short-lived JWT for subscribing to realtime channels.
4036
+ * Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
4037
4037
  * Get a realtime auth token
4038
4038
  */
4039
4039
  async getRealtimeAuthTokenRaw(requestParameters, initOverrides) {
@@ -4045,6 +4045,12 @@ class SDKApi extends runtime.BaseAPI {
4045
4045
  queryParameters['capabilities'] = requestParameters.capabilities;
4046
4046
  }
4047
4047
  const headerParameters = {};
4048
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
4049
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
4050
+ }
4051
+ if (requestParameters.xDynamicCheckoutTransactionId !== undefined && requestParameters.xDynamicCheckoutTransactionId !== null) {
4052
+ headerParameters['X-Dynamic-Checkout-Transaction-Id'] = String(requestParameters.xDynamicCheckoutTransactionId);
4053
+ }
4048
4054
  if (this.configuration && this.configuration.accessToken) {
4049
4055
  const token = this.configuration.accessToken;
4050
4056
  const tokenString = await token("bearerAuth", []);
@@ -4061,7 +4067,7 @@ class SDKApi extends runtime.BaseAPI {
4061
4067
  return new runtime.JSONApiResponse(response, (jsonValue) => RealtimeAuthTokenResponse.RealtimeAuthTokenResponseFromJSON(jsonValue));
4062
4068
  }
4063
4069
  /**
4064
- * Returns a short-lived JWT for subscribing to realtime channels.
4070
+ * Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
4065
4071
  * Get a realtime auth token
4066
4072
  */
4067
4073
  async getRealtimeAuthToken(requestParameters, initOverrides) {
@@ -497,6 +497,8 @@ export interface GetPasskeyRegistrationOptionsOptionsRequest {
497
497
  export interface GetRealtimeAuthTokenRequest {
498
498
  environmentId: string;
499
499
  capabilities?: string;
500
+ xDynamicCheckoutSessionToken?: string;
501
+ xDynamicCheckoutTransactionId?: string;
500
502
  }
501
503
  export interface GetRecoveryCodesRequest {
502
504
  environmentId: string;
@@ -2285,12 +2287,12 @@ export declare class SDKApi extends runtime.BaseAPI {
2285
2287
  */
2286
2288
  getPasskeyRegistrationOptionsOptions(requestParameters: GetPasskeyRegistrationOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2287
2289
  /**
2288
- * Returns a short-lived JWT for subscribing to realtime channels.
2290
+ * Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
2289
2291
  * Get a realtime auth token
2290
2292
  */
2291
2293
  getRealtimeAuthTokenRaw(requestParameters: GetRealtimeAuthTokenRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RealtimeAuthTokenResponse>>;
2292
2294
  /**
2293
- * Returns a short-lived JWT for subscribing to realtime channels.
2295
+ * Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
2294
2296
  * Get a realtime auth token
2295
2297
  */
2296
2298
  getRealtimeAuthToken(requestParameters: GetRealtimeAuthTokenRequest, initOverrides?: RequestInit): Promise<RealtimeAuthTokenResponse>;
@@ -4029,7 +4029,7 @@ class SDKApi extends BaseAPI {
4029
4029
  await this.getPasskeyRegistrationOptionsOptionsRaw(requestParameters, initOverrides);
4030
4030
  }
4031
4031
  /**
4032
- * Returns a short-lived JWT for subscribing to realtime channels.
4032
+ * Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
4033
4033
  * Get a realtime auth token
4034
4034
  */
4035
4035
  async getRealtimeAuthTokenRaw(requestParameters, initOverrides) {
@@ -4041,6 +4041,12 @@ class SDKApi extends BaseAPI {
4041
4041
  queryParameters['capabilities'] = requestParameters.capabilities;
4042
4042
  }
4043
4043
  const headerParameters = {};
4044
+ if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
4045
+ headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
4046
+ }
4047
+ if (requestParameters.xDynamicCheckoutTransactionId !== undefined && requestParameters.xDynamicCheckoutTransactionId !== null) {
4048
+ headerParameters['X-Dynamic-Checkout-Transaction-Id'] = String(requestParameters.xDynamicCheckoutTransactionId);
4049
+ }
4044
4050
  if (this.configuration && this.configuration.accessToken) {
4045
4051
  const token = this.configuration.accessToken;
4046
4052
  const tokenString = await token("bearerAuth", []);
@@ -4057,7 +4063,7 @@ class SDKApi extends BaseAPI {
4057
4063
  return new JSONApiResponse(response, (jsonValue) => RealtimeAuthTokenResponseFromJSON(jsonValue));
4058
4064
  }
4059
4065
  /**
4060
- * Returns a short-lived JWT for subscribing to realtime channels.
4066
+ * Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
4061
4067
  * Get a realtime auth token
4062
4068
  */
4063
4069
  async getRealtimeAuthToken(requestParameters, initOverrides) {
package/src/index.cjs CHANGED
@@ -55,6 +55,7 @@ var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
55
55
  var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
56
56
  var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
57
57
  var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
58
+ var CheckoutTransactionExchangeSource = require('./models/CheckoutTransactionExchangeSource.cjs');
58
59
  var CheckoutTransactionQuote = require('./models/CheckoutTransactionQuote.cjs');
59
60
  var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
60
61
  var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
@@ -668,6 +669,9 @@ exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateRespo
668
669
  exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
669
670
  exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
670
671
  exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
672
+ exports.CheckoutTransactionExchangeSourceFromJSON = CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceFromJSON;
673
+ exports.CheckoutTransactionExchangeSourceFromJSONTyped = CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceFromJSONTyped;
674
+ exports.CheckoutTransactionExchangeSourceToJSON = CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceToJSON;
671
675
  exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON;
672
676
  exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSONTyped;
673
677
  exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON;
package/src/index.js CHANGED
@@ -51,6 +51,7 @@ export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, Checkout
51
51
  export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
52
52
  export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
53
53
  export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
54
+ export { CheckoutTransactionExchangeSourceFromJSON, CheckoutTransactionExchangeSourceFromJSONTyped, CheckoutTransactionExchangeSourceToJSON } from './models/CheckoutTransactionExchangeSource.js';
54
55
  export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON } from './models/CheckoutTransactionQuote.js';
55
56
  export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
56
57
  export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
@@ -36,7 +36,7 @@ export interface Account {
36
36
  */
37
37
  type?: string;
38
38
  /**
39
- *
39
+ * List of balance entries for each currency held in the account
40
40
  * @type {Array<AccountBalances>}
41
41
  * @memberof Account
42
42
  */
@@ -34,7 +34,7 @@ export interface AccountBalances {
34
34
  */
35
35
  availableBalance?: number;
36
36
  /**
37
- *
37
+ * URL of the token or currency logo image
38
38
  * @type {string}
39
39
  * @memberof AccountBalances
40
40
  */
@@ -22,43 +22,43 @@ export interface Asset {
22
22
  */
23
23
  address: string | null;
24
24
  /**
25
- *
25
+ * Numeric identifier of the blockchain network
26
26
  * @type {number}
27
27
  * @memberof Asset
28
28
  */
29
29
  chainId?: number;
30
30
  /**
31
- *
31
+ * Human-readable name of the blockchain network
32
32
  * @type {string}
33
33
  * @memberof Asset
34
34
  */
35
35
  chainName: string;
36
36
  /**
37
- *
37
+ * Number of decimal places used by the token
38
38
  * @type {number}
39
39
  * @memberof Asset
40
40
  */
41
41
  decimals: number;
42
42
  /**
43
- *
43
+ * URL of the token logo image
44
44
  * @type {string}
45
45
  * @memberof Asset
46
46
  */
47
47
  logoUrl: string;
48
48
  /**
49
- *
49
+ * Display name of the token or asset
50
50
  * @type {string}
51
51
  * @memberof Asset
52
52
  */
53
53
  name: string;
54
54
  /**
55
- *
55
+ * Ticker symbol of the token (e.g. ETH, USDC)
56
56
  * @type {string}
57
57
  * @memberof Asset
58
58
  */
59
59
  symbol: string;
60
60
  /**
61
- *
61
+ * Classification of the asset (e.g. ERC20, NATIVE)
62
62
  * @type {string}
63
63
  * @memberof Asset
64
64
  */
@@ -24,13 +24,13 @@ export interface AssetDiff {
24
24
  */
25
25
  asset: Asset;
26
26
  /**
27
- *
27
+ * List of incoming asset transfers
28
28
  * @type {Array<AssetTransfer>}
29
29
  * @memberof AssetDiff
30
30
  */
31
31
  transferIn: Array<AssetTransfer>;
32
32
  /**
33
- *
33
+ * List of outgoing asset transfers
34
34
  * @type {Array<AssetTransfer>}
35
35
  * @memberof AssetDiff
36
36
  */
@@ -24,7 +24,7 @@ export interface AssetExposure {
24
24
  */
25
25
  asset: Asset;
26
26
  /**
27
- *
27
+ * Mapping of spender addresses to their approval details
28
28
  * @type {{ [key: string]: AssetExposureSpenderToInfo; }}
29
29
  * @memberof AssetExposure
30
30
  */
@@ -16,25 +16,25 @@
16
16
  */
17
17
  export interface AssetTransfer {
18
18
  /**
19
- *
19
+ * Raw token amount before decimal adjustment
20
20
  * @type {string}
21
21
  * @memberof AssetTransfer
22
22
  */
23
23
  rawValue?: string;
24
24
  /**
25
- *
25
+ * Human-readable summary of the transfer
26
26
  * @type {string}
27
27
  * @memberof AssetTransfer
28
28
  */
29
29
  summary?: string;
30
30
  /**
31
- *
31
+ * Estimated USD value of the transferred amount
32
32
  * @type {string}
33
33
  * @memberof AssetTransfer
34
34
  */
35
35
  usdPrice?: string;
36
36
  /**
37
- *
37
+ * Decimal-adjusted token amount
38
38
  * @type {string}
39
39
  * @memberof AssetTransfer
40
40
  */
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
  var ChainEnum = require('./ChainEnum.cjs');
7
7
  var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
8
+ var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
8
9
 
9
10
  /* tslint:disable */
10
11
  function AttachSourceRequestFromJSON(json) {
@@ -19,6 +20,7 @@ function AttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
19
20
  'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
20
21
  'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
21
22
  'fromChainName': !runtime.exists(json, 'fromChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['fromChainName']),
23
+ 'exchangeProvider': !runtime.exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchangeProvider']),
22
24
  };
23
25
  }
24
26
  function AttachSourceRequestToJSON(value) {
@@ -33,6 +35,7 @@ function AttachSourceRequestToJSON(value) {
33
35
  'fromAddress': value.fromAddress,
34
36
  'fromChainId': value.fromChainId,
35
37
  'fromChainName': ChainEnum.ChainEnumToJSON(value.fromChainName),
38
+ 'exchangeProvider': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchangeProvider),
36
39
  };
37
40
  }
38
41
 
@@ -11,8 +11,9 @@
11
11
  */
12
12
  import { ChainEnum } from './ChainEnum';
13
13
  import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
14
+ import { ExchangeKeyEnum } from './ExchangeKeyEnum';
14
15
  /**
15
- * fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet' or 'deposit_address', and optional when sourceType is 'exchange'.
16
+ * fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet' and optional when sourceType is 'exchange'. When sourceType is 'exchange', pass exchangeProvider to generate the buy URL and create the exchange source record server-side.
16
17
  * @export
17
18
  * @interface AttachSourceRequest
18
19
  */
@@ -41,6 +42,12 @@ export interface AttachSourceRequest {
41
42
  * @memberof AttachSourceRequest
42
43
  */
43
44
  fromChainName?: ChainEnum;
45
+ /**
46
+ *
47
+ * @type {ExchangeKeyEnum}
48
+ * @memberof AttachSourceRequest
49
+ */
50
+ exchangeProvider?: ExchangeKeyEnum;
44
51
  }
45
52
  export declare function AttachSourceRequestFromJSON(json: any): AttachSourceRequest;
46
53
  export declare function AttachSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachSourceRequest;
@@ -1,6 +1,7 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
3
  import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
4
+ import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
4
5
 
5
6
  /* tslint:disable */
6
7
  function AttachSourceRequestFromJSON(json) {
@@ -15,6 +16,7 @@ function AttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
15
16
  'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
16
17
  'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
17
18
  'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
19
+ 'exchangeProvider': !exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnumFromJSON(json['exchangeProvider']),
18
20
  };
19
21
  }
20
22
  function AttachSourceRequestToJSON(value) {
@@ -29,6 +31,7 @@ function AttachSourceRequestToJSON(value) {
29
31
  'fromAddress': value.fromAddress,
30
32
  'fromChainId': value.fromChainId,
31
33
  'fromChainName': ChainEnumToJSON(value.fromChainName),
34
+ 'exchangeProvider': ExchangeKeyEnumToJSON(value.exchangeProvider),
32
35
  };
33
36
  }
34
37
 
@@ -23,7 +23,7 @@ export interface AuthSettings {
23
23
  */
24
24
  allowMultipleCredentialsForSignIn?: boolean;
25
25
  /**
26
- *
26
+ * List of browser storage mechanisms where the JWT token may be persisted
27
27
  * @type {Array<AuthStorageEnum>}
28
28
  * @memberof AuthSettings
29
29
  */
@@ -16,19 +16,19 @@
16
16
  */
17
17
  export interface AuthenticationExtensionsClientInputs {
18
18
  /**
19
- *
19
+ * FIDO AppID extension input for backward compatibility with U2F
20
20
  * @type {string}
21
21
  * @memberof AuthenticationExtensionsClientInputs
22
22
  */
23
23
  appid?: string;
24
24
  /**
25
- *
25
+ * Whether to request credential properties from the authenticator
26
26
  * @type {boolean}
27
27
  * @memberof AuthenticationExtensionsClientInputs
28
28
  */
29
29
  credProps?: boolean;
30
30
  /**
31
- *
31
+ * Whether to create an HMAC secret with the authenticator
32
32
  * @type {boolean}
33
33
  * @memberof AuthenticationExtensionsClientInputs
34
34
  */
@@ -16,19 +16,19 @@
16
16
  */
17
17
  export interface AuthenticationExtensionsClientOutputs {
18
18
  /**
19
- *
19
+ * Whether the FIDO AppID extension was used during the ceremony
20
20
  * @type {boolean}
21
21
  * @memberof AuthenticationExtensionsClientOutputs
22
22
  */
23
23
  appid?: boolean;
24
24
  /**
25
- *
25
+ * Properties of the created credential returned by the authenticator
26
26
  * @type {object}
27
27
  * @memberof AuthenticationExtensionsClientOutputs
28
28
  */
29
29
  credProps?: object;
30
30
  /**
31
- *
31
+ * Whether an HMAC secret was successfully created
32
32
  * @type {boolean}
33
33
  * @memberof AuthenticationExtensionsClientOutputs
34
34
  */
@@ -34,7 +34,7 @@ export interface AuthenticatorAssertionResponse {
34
34
  */
35
35
  signature: string;
36
36
  /**
37
- *
37
+ * Base64URL-encoded user handle returned by the authenticator
38
38
  * @type {string}
39
39
  * @memberof AuthenticatorAssertionResponse
40
40
  */
@@ -34,7 +34,7 @@ export interface AuthenticatorAttestationResponse {
34
34
  */
35
35
  authenticatorData?: string;
36
36
  /**
37
- *
37
+ * COSE algorithm identifier for the credential public key
38
38
  * @type {number}
39
39
  * @memberof AuthenticatorAttestationResponse
40
40
  */
@@ -25,7 +25,7 @@ export interface AuthenticatorSelectionCriteria {
25
25
  */
26
26
  authenticatorAttachment?: AuthenticatorAttachment;
27
27
  /**
28
- *
28
+ * Whether a resident (discoverable) credential is required
29
29
  * @type {boolean}
30
30
  * @memberof AuthenticatorSelectionCriteria
31
31
  */
@@ -17,7 +17,7 @@ import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
17
17
  */
18
18
  export interface BackupKeySharesToLocationResponse {
19
19
  /**
20
- *
20
+ * Human-readable status message for the backup operation
21
21
  * @type {string}
22
22
  * @memberof BackupKeySharesToLocationResponse
23
23
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface BackupKeySharesToLocationsPendingResponse {
18
18
  /**
19
- *
19
+ * Human-readable status message for the pending backup operation
20
20
  * @type {string}
21
21
  * @memberof BackupKeySharesToLocationsPendingResponse
22
22
  */
@@ -28,7 +28,7 @@ export interface BackupKeySharesToLocationsPendingResponse {
28
28
  */
29
29
  walletId: string;
30
30
  /**
31
- *
31
+ * Current status of the password update process
32
32
  * @type {string}
33
33
  * @memberof BackupKeySharesToLocationsPendingResponse
34
34
  */
@@ -23,7 +23,7 @@ export interface BackupKeySharesToLocationsRequest {
23
23
  */
24
24
  passwordUpdateBatchId?: string;
25
25
  /**
26
- *
26
+ * List of backup locations with their key share configuration
27
27
  * @type {Array<BackupKeySharesToLocationsRequestLocations>}
28
28
  * @memberof BackupKeySharesToLocationsRequest
29
29
  */
@@ -17,7 +17,7 @@ import { BackupKeySharesToLocationsResponseLocationsWithKeyShares } from './Back
17
17
  */
18
18
  export interface BackupKeySharesToLocationsResponse {
19
19
  /**
20
- *
20
+ * Human-readable status message for the backup operation
21
21
  * @type {string}
22
22
  * @memberof BackupKeySharesToLocationsResponse
23
23
  */
@@ -29,13 +29,13 @@ export interface BackupKeySharesToLocationsResponse {
29
29
  */
30
30
  walletId: string;
31
31
  /**
32
- *
32
+ * Current status of the password update process
33
33
  * @type {string}
34
34
  * @memberof BackupKeySharesToLocationsResponse
35
35
  */
36
36
  passwordUpdateStatus?: BackupKeySharesToLocationsResponsePasswordUpdateStatusEnum;
37
37
  /**
38
- *
38
+ * List of backup locations paired with their key share identifiers
39
39
  * @type {Array<BackupKeySharesToLocationsResponseLocationsWithKeyShares>}
40
40
  * @memberof BackupKeySharesToLocationsResponse
41
41
  */
@@ -17,7 +17,7 @@ import { WalletKeyShareInfo } from './WalletKeyShareInfo';
17
17
  */
18
18
  export interface BackupMultipleClientKeySharesResponse {
19
19
  /**
20
- *
20
+ * List of key share information for each backed-up wallet
21
21
  * @type {Array<WalletKeyShareInfo>}
22
22
  * @memberof BackupMultipleClientKeySharesResponse
23
23
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface BadGateway {
18
18
  /**
19
- *
19
+ * Human-readable error message
20
20
  * @type {string}
21
21
  * @memberof BadGateway
22
22
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface BadRequest {
18
18
  /**
19
- *
19
+ * Human-readable error message
20
20
  * @type {string}
21
21
  * @memberof BadRequest
22
22
  */
@@ -31,7 +31,7 @@ export interface BaseUser {
31
31
  */
32
32
  projectEnvironmentId: string;
33
33
  /**
34
- *
34
+ * List of verified credentials (wallets, emails, social accounts) linked to the user
35
35
  * @type {Array<JwtVerifiedCredential>}
36
36
  * @memberof BaseUser
37
37
  */
@@ -61,7 +61,7 @@ export interface BaseUser {
61
61
  */
62
62
  country?: string | null;
63
63
  /**
64
- *
64
+ * Primary email address of the user
65
65
  * @type {string}
66
66
  * @memberof BaseUser
67
67
  */
@@ -85,13 +85,13 @@ export interface BaseUser {
85
85
  */
86
86
  lastName?: string | null;
87
87
  /**
88
- *
88
+ * Phone number of the user
89
89
  * @type {string}
90
90
  * @memberof BaseUser
91
91
  */
92
92
  phoneNumber?: string | null;
93
93
  /**
94
- *
94
+ * Whether the user has accepted the terms of service and privacy policy
95
95
  * @type {boolean}
96
96
  * @memberof BaseUser
97
97
  */
@@ -115,25 +115,25 @@ export interface BaseUser {
115
115
  */
116
116
  username?: string | null;
117
117
  /**
118
- *
118
+ * ISO 8601 timestamp of when the user first visited
119
119
  * @type {Date}
120
120
  * @memberof BaseUser
121
121
  */
122
122
  firstVisit?: Date;
123
123
  /**
124
- *
124
+ * ISO 8601 timestamp of when the user last visited
125
125
  * @type {Date}
126
126
  * @memberof BaseUser
127
127
  */
128
128
  lastVisit?: Date;
129
129
  /**
130
- *
130
+ * Whether this is a newly created user
131
131
  * @type {boolean}
132
132
  * @memberof BaseUser
133
133
  */
134
134
  newUser?: boolean;
135
135
  /**
136
- *
136
+ * Arbitrary key-value metadata associated with the user
137
137
  * @type {object}
138
138
  * @memberof BaseUser
139
139
  */
@@ -145,55 +145,55 @@ export interface BaseUser {
145
145
  */
146
146
  mfaBackupCodeAcknowledgement?: MfaBackupCodeAcknowledgement | null;
147
147
  /**
148
- *
148
+ * Bitcoin wallet address of the user
149
149
  * @type {string}
150
150
  * @memberof BaseUser
151
151
  */
152
152
  btcWallet?: string | null;
153
153
  /**
154
- *
154
+ * Kadena wallet address of the user
155
155
  * @type {string}
156
156
  * @memberof BaseUser
157
157
  */
158
158
  kdaWallet?: string | null;
159
159
  /**
160
- *
160
+ * Litecoin wallet address of the user
161
161
  * @type {string}
162
162
  * @memberof BaseUser
163
163
  */
164
164
  ltcWallet?: string | null;
165
165
  /**
166
- *
166
+ * Nervos CKB wallet address of the user
167
167
  * @type {string}
168
168
  * @memberof BaseUser
169
169
  */
170
170
  ckbWallet?: string | null;
171
171
  /**
172
- *
172
+ * Kaspa wallet address of the user
173
173
  * @type {string}
174
174
  * @memberof BaseUser
175
175
  */
176
176
  kasWallet?: string | null;
177
177
  /**
178
- *
178
+ * Dogecoin wallet address of the user
179
179
  * @type {string}
180
180
  * @memberof BaseUser
181
181
  */
182
182
  dogeWallet?: string | null;
183
183
  /**
184
- *
184
+ * Whether the user has opted in to email notifications
185
185
  * @type {boolean}
186
186
  * @memberof BaseUser
187
187
  */
188
188
  emailNotification?: boolean | null;
189
189
  /**
190
- *
190
+ * Whether the user has opted in to Discord notifications
191
191
  * @type {boolean}
192
192
  * @memberof BaseUser
193
193
  */
194
194
  discordNotification?: boolean | null;
195
195
  /**
196
- *
196
+ * Whether the user has opted in to newsletter notifications
197
197
  * @type {boolean}
198
198
  * @memberof BaseUser
199
199
  */
@@ -211,7 +211,7 @@ export interface BaseUser {
211
211
  */
212
212
  scope?: string;
213
213
  /**
214
- *
214
+ * List of required user fields that have not yet been provided
215
215
  * @type {Array<ProjectSettingsKyc>}
216
216
  * @memberof BaseUser
217
217
  */