@dynamic-labs/sdk-api 0.151.0 → 0.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +1 -0
  3. package/src/apis/AdminActionsApi.js +1 -0
  4. package/src/apis/AllowlistsApi.cjs +1 -0
  5. package/src/apis/AllowlistsApi.js +1 -0
  6. package/src/apis/AnalyticsApi.cjs +1 -0
  7. package/src/apis/AnalyticsApi.js +1 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +1 -0
  9. package/src/apis/AuthorizedClientsApi.js +1 -0
  10. package/src/apis/BusinessAccountsApi.cjs +2 -1
  11. package/src/apis/BusinessAccountsApi.js +2 -1
  12. package/src/apis/CaptchaApi.cjs +1 -0
  13. package/src/apis/CaptchaApi.js +1 -0
  14. package/src/apis/ChainalysisApi.cjs +1 -0
  15. package/src/apis/ChainalysisApi.js +1 -0
  16. package/src/apis/ChainsApi.cjs +1 -0
  17. package/src/apis/ChainsApi.js +1 -0
  18. package/src/apis/CheckoutApi.cjs +1 -0
  19. package/src/apis/CheckoutApi.js +1 -0
  20. package/src/apis/ClientGrantApi.cjs +1 -0
  21. package/src/apis/ClientGrantApi.js +1 -0
  22. package/src/apis/CustomFieldsApi.cjs +1 -0
  23. package/src/apis/CustomFieldsApi.js +1 -0
  24. package/src/apis/CustomHostnamesApi.cjs +1 -0
  25. package/src/apis/CustomHostnamesApi.js +1 -0
  26. package/src/apis/CustomNetworksApi.cjs +1 -0
  27. package/src/apis/CustomNetworksApi.js +1 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  29. package/src/apis/DeeplinkUrlsApi.js +1 -0
  30. package/src/apis/EnvironmentsApi.cjs +1 -0
  31. package/src/apis/EnvironmentsApi.js +1 -0
  32. package/src/apis/EventsApi.cjs +1 -0
  33. package/src/apis/EventsApi.js +1 -0
  34. package/src/apis/ExchangesApi.cjs +1 -0
  35. package/src/apis/ExchangesApi.js +1 -0
  36. package/src/apis/ExportsApi.cjs +1 -0
  37. package/src/apis/ExportsApi.js +1 -0
  38. package/src/apis/ExternalJwtApi.cjs +1 -0
  39. package/src/apis/ExternalJwtApi.js +1 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +1 -0
  41. package/src/apis/FlowAnalyticsApi.js +1 -0
  42. package/src/apis/GaslessApi.cjs +1 -0
  43. package/src/apis/GaslessApi.js +1 -0
  44. package/src/apis/GatesApi.cjs +1 -0
  45. package/src/apis/GatesApi.js +1 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  50. package/src/apis/GlobalWalletsApi.cjs +1 -0
  51. package/src/apis/GlobalWalletsApi.js +1 -0
  52. package/src/apis/InvitesApi.cjs +1 -0
  53. package/src/apis/InvitesApi.js +1 -0
  54. package/src/apis/KybApi.cjs +1 -0
  55. package/src/apis/KybApi.js +1 -0
  56. package/src/apis/MembersApi.cjs +1 -0
  57. package/src/apis/MembersApi.js +1 -0
  58. package/src/apis/MfaSettingsApi.cjs +1 -0
  59. package/src/apis/MfaSettingsApi.js +1 -0
  60. package/src/apis/NameServicesApi.cjs +1 -0
  61. package/src/apis/NameServicesApi.js +1 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +1 -0
  63. package/src/apis/OrganizationSettingsApi.js +1 -0
  64. package/src/apis/OrganizationsApi.cjs +1 -0
  65. package/src/apis/OrganizationsApi.js +1 -0
  66. package/src/apis/OriginsApi.cjs +1 -0
  67. package/src/apis/OriginsApi.js +1 -0
  68. package/src/apis/ProjectsApi.cjs +1 -0
  69. package/src/apis/ProjectsApi.js +1 -0
  70. package/src/apis/ProvidersApi.cjs +1 -0
  71. package/src/apis/ProvidersApi.js +1 -0
  72. package/src/apis/SDKApi.cjs +255 -0
  73. package/src/apis/SDKApi.d.ts +105 -1
  74. package/src/apis/SDKApi.js +255 -0
  75. package/src/apis/SDKViewsApi.cjs +1 -0
  76. package/src/apis/SDKViewsApi.js +1 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +1 -0
  78. package/src/apis/ScreeningPoliciesApi.js +1 -0
  79. package/src/apis/ServerApi.cjs +76 -1
  80. package/src/apis/ServerApi.d.ts +32 -0
  81. package/src/apis/ServerApi.js +76 -1
  82. package/src/apis/SessionsApi.cjs +1 -0
  83. package/src/apis/SessionsApi.js +1 -0
  84. package/src/apis/TestAccountApi.cjs +1 -0
  85. package/src/apis/TestAccountApi.js +1 -0
  86. package/src/apis/TokensApi.cjs +1 -0
  87. package/src/apis/TokensApi.js +1 -0
  88. package/src/apis/UserApiTokensApi.cjs +1 -0
  89. package/src/apis/UserApiTokensApi.js +1 -0
  90. package/src/apis/UsersApi.cjs +1 -0
  91. package/src/apis/UsersApi.js +1 -0
  92. package/src/apis/VisitsApi.cjs +1 -0
  93. package/src/apis/VisitsApi.js +1 -0
  94. package/src/apis/WaasApi.cjs +1 -0
  95. package/src/apis/WaasApi.js +1 -0
  96. package/src/apis/WalletConnectApi.cjs +1 -0
  97. package/src/apis/WalletConnectApi.js +1 -0
  98. package/src/apis/WalletsApi.cjs +1 -0
  99. package/src/apis/WalletsApi.js +1 -0
  100. package/src/apis/WebhooksApi.cjs +1 -0
  101. package/src/apis/WebhooksApi.js +1 -0
  102. package/src/apis/YieldApi.cjs +1 -0
  103. package/src/apis/YieldApi.js +1 -0
  104. package/src/apis/ZendeskApi.cjs +1 -0
  105. package/src/apis/ZendeskApi.js +1 -0
  106. package/src/index.cjs +20 -0
  107. package/src/index.js +3 -0
  108. package/src/models/AcceptBusinessAccountInviteResponse.cjs +36 -0
  109. package/src/models/AcceptBusinessAccountInviteResponse.d.ts +35 -0
  110. package/src/models/AcceptBusinessAccountInviteResponse.js +30 -0
  111. package/src/models/BusinessAccountInvite.cjs +70 -0
  112. package/src/models/BusinessAccountInvite.d.ts +103 -0
  113. package/src/models/BusinessAccountInvite.js +64 -0
  114. package/src/models/BusinessAccountInviteListResponse.cjs +33 -0
  115. package/src/models/BusinessAccountInviteListResponse.d.ts +28 -0
  116. package/src/models/BusinessAccountInviteListResponse.js +27 -0
  117. package/src/models/index.d.ts +3 -0
@@ -1,4 +1,5 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
2
+ import { AcceptBusinessAccountInviteResponseFromJSON } from '../models/AcceptBusinessAccountInviteResponse.js';
2
3
  import '../models/AccessOutcomeEnum.js';
3
4
  import { AccountFromJSON } from '../models/Account.js';
4
5
  import '../models/ProviderEnum.js';
@@ -67,6 +68,8 @@ import '../models/BusinessAccountApprovalsPending.js';
67
68
  import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
68
69
  import { BusinessAccountGovernanceResponseFromJSON } from '../models/BusinessAccountGovernanceResponse.js';
69
70
  import '../models/BusinessAccountGovernedAction.js';
71
+ import '../models/BusinessAccountInvite.js';
72
+ import { BusinessAccountInviteListResponseFromJSON } from '../models/BusinessAccountInviteListResponse.js';
70
73
  import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
71
74
  import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
72
75
  import '../models/BusinessAccountMemberInviteReceipt.js';
@@ -437,6 +440,68 @@ import { YieldVaultRewardsResponseFromJSON } from '../models/YieldVaultRewardsRe
437
440
  *
438
441
  */
439
442
  class SDKApi extends BaseAPI {
443
+ /**
444
+ * Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
445
+ * Accept a pending business account invitation
446
+ */
447
+ async acceptBusinessAccountInviteRaw(requestParameters, initOverrides) {
448
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
449
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInvite.');
450
+ }
451
+ if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
452
+ throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInvite.');
453
+ }
454
+ const queryParameters = {};
455
+ const headerParameters = {};
456
+ if (this.configuration && this.configuration.accessToken) {
457
+ const token = this.configuration.accessToken;
458
+ const tokenString = await token("bearerAuth", []);
459
+ if (tokenString) {
460
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
461
+ }
462
+ }
463
+ const response = await this.request({
464
+ path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
465
+ method: 'POST',
466
+ headers: headerParameters,
467
+ query: queryParameters,
468
+ }, initOverrides);
469
+ return new JSONApiResponse(response, (jsonValue) => AcceptBusinessAccountInviteResponseFromJSON(jsonValue));
470
+ }
471
+ /**
472
+ * Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
473
+ * Accept a pending business account invitation
474
+ */
475
+ async acceptBusinessAccountInvite(requestParameters, initOverrides) {
476
+ const response = await this.acceptBusinessAccountInviteRaw(requestParameters, initOverrides);
477
+ return await response.value();
478
+ }
479
+ /**
480
+ * Options call for this endpoint
481
+ */
482
+ async acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides) {
483
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
484
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInviteOptions.');
485
+ }
486
+ if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
487
+ throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInviteOptions.');
488
+ }
489
+ const queryParameters = {};
490
+ const headerParameters = {};
491
+ const response = await this.request({
492
+ path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
493
+ method: 'OPTIONS',
494
+ headers: headerParameters,
495
+ query: queryParameters,
496
+ }, initOverrides);
497
+ return new VoidApiResponse(response);
498
+ }
499
+ /**
500
+ * Options call for this endpoint
501
+ */
502
+ async acceptBusinessAccountInviteOptions(requestParameters, initOverrides) {
503
+ await this.acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides);
504
+ }
440
505
  /**
441
506
  * Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
442
507
  * Attach a source to a flow and mint a session token
@@ -1068,6 +1133,73 @@ class SDKApi extends BaseAPI {
1068
1133
  async broadcastWaasTransactionOptions(requestParameters, initOverrides) {
1069
1134
  await this.broadcastWaasTransactionOptionsRaw(requestParameters, initOverrides);
1070
1135
  }
1136
+ /**
1137
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`, which co-signs inside caller-visible MPC rooms. The enclave is offline: the caller supplies the token accounts\' raw on-chain state (`accountState`, `destinationAccountState`), the cluster rent constant (`lamportsPerByte`) and a fresh `recentBlockhash`/`lastValidBlockHeight`. Confidential amounts are opaque on-chain — policy screens the operation, mint and addresses but cannot evaluate the transferred amount.
1138
+ * Build Token-2022 confidential-transfer transactions
1139
+ */
1140
+ async buildWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
1141
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1142
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransaction.');
1143
+ }
1144
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1145
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransaction.');
1146
+ }
1147
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
1148
+ throw new RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransaction.');
1149
+ }
1150
+ const queryParameters = {};
1151
+ const headerParameters = {};
1152
+ headerParameters['Content-Type'] = 'application/json';
1153
+ if (this.configuration && this.configuration.accessToken) {
1154
+ const token = this.configuration.accessToken;
1155
+ const tokenString = await token("bearerAuth", []);
1156
+ if (tokenString) {
1157
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1158
+ }
1159
+ }
1160
+ const response = await this.request({
1161
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1162
+ method: 'POST',
1163
+ headers: headerParameters,
1164
+ query: queryParameters,
1165
+ body: WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
1166
+ }, initOverrides);
1167
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
1168
+ }
1169
+ /**
1170
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`, which co-signs inside caller-visible MPC rooms. The enclave is offline: the caller supplies the token accounts\' raw on-chain state (`accountState`, `destinationAccountState`), the cluster rent constant (`lamportsPerByte`) and a fresh `recentBlockhash`/`lastValidBlockHeight`. Confidential amounts are opaque on-chain — policy screens the operation, mint and addresses but cannot evaluate the transferred amount.
1171
+ * Build Token-2022 confidential-transfer transactions
1172
+ */
1173
+ async buildWaasConfidentialTransaction(requestParameters, initOverrides) {
1174
+ const response = await this.buildWaasConfidentialTransactionRaw(requestParameters, initOverrides);
1175
+ return await response.value();
1176
+ }
1177
+ /**
1178
+ * Options call for this endpoint
1179
+ */
1180
+ async buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
1181
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1182
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1183
+ }
1184
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1185
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1186
+ }
1187
+ const queryParameters = {};
1188
+ const headerParameters = {};
1189
+ const response = await this.request({
1190
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1191
+ method: 'OPTIONS',
1192
+ headers: headerParameters,
1193
+ query: queryParameters,
1194
+ }, initOverrides);
1195
+ return new VoidApiResponse(response);
1196
+ }
1197
+ /**
1198
+ * Options call for this endpoint
1199
+ */
1200
+ async buildWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
1201
+ await this.buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
1202
+ }
1071
1203
  /**
1072
1204
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
1073
1205
  * Cancel a checkout transaction
@@ -3883,6 +4015,62 @@ class SDKApi extends BaseAPI {
3883
4015
  async getBackupTokenOptions(requestParameters, initOverrides) {
3884
4016
  await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
3885
4017
  }
4018
+ /**
4019
+ * Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
4020
+ * List the authenticated user\'s pending business account invitations
4021
+ */
4022
+ async getBusinessAccountInvitesRaw(requestParameters, initOverrides) {
4023
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4024
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvites.');
4025
+ }
4026
+ const queryParameters = {};
4027
+ const headerParameters = {};
4028
+ if (this.configuration && this.configuration.accessToken) {
4029
+ const token = this.configuration.accessToken;
4030
+ const tokenString = await token("bearerAuth", []);
4031
+ if (tokenString) {
4032
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4033
+ }
4034
+ }
4035
+ const response = await this.request({
4036
+ path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
4037
+ method: 'GET',
4038
+ headers: headerParameters,
4039
+ query: queryParameters,
4040
+ }, initOverrides);
4041
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountInviteListResponseFromJSON(jsonValue));
4042
+ }
4043
+ /**
4044
+ * Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
4045
+ * List the authenticated user\'s pending business account invitations
4046
+ */
4047
+ async getBusinessAccountInvites(requestParameters, initOverrides) {
4048
+ const response = await this.getBusinessAccountInvitesRaw(requestParameters, initOverrides);
4049
+ return await response.value();
4050
+ }
4051
+ /**
4052
+ * Options call for this endpoint
4053
+ */
4054
+ async getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides) {
4055
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4056
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvitesOptions.');
4057
+ }
4058
+ const queryParameters = {};
4059
+ const headerParameters = {};
4060
+ const response = await this.request({
4061
+ path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
4062
+ method: 'OPTIONS',
4063
+ headers: headerParameters,
4064
+ query: queryParameters,
4065
+ }, initOverrides);
4066
+ return new VoidApiResponse(response);
4067
+ }
4068
+ /**
4069
+ * Options call for this endpoint
4070
+ */
4071
+ async getBusinessAccountInvitesOptions(requestParameters, initOverrides) {
4072
+ await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
4073
+ }
3886
4074
  /**
3887
4075
  * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
3888
4076
  * Get the business account\'s account-Layer Rules
@@ -11715,6 +11903,73 @@ class SDKApi extends BaseAPI {
11715
11903
  async signMessageOptions(requestParameters, initOverrides) {
11716
11904
  await this.signMessageOptionsRaw(requestParameters, initOverrides);
11717
11905
  }
11906
+ /**
11907
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11908
+ * Co-sign enclave-built confidential-transfer transactions
11909
+ */
11910
+ async signWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
11911
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11912
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransaction.');
11913
+ }
11914
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11915
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransaction.');
11916
+ }
11917
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
11918
+ throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransaction.');
11919
+ }
11920
+ const queryParameters = {};
11921
+ const headerParameters = {};
11922
+ headerParameters['Content-Type'] = 'application/json';
11923
+ if (this.configuration && this.configuration.accessToken) {
11924
+ const token = this.configuration.accessToken;
11925
+ const tokenString = await token("bearerAuth", []);
11926
+ if (tokenString) {
11927
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11928
+ }
11929
+ }
11930
+ const response = await this.request({
11931
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11932
+ method: 'POST',
11933
+ headers: headerParameters,
11934
+ query: queryParameters,
11935
+ body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
11936
+ }, initOverrides);
11937
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
11938
+ }
11939
+ /**
11940
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11941
+ * Co-sign enclave-built confidential-transfer transactions
11942
+ */
11943
+ async signWaasConfidentialTransaction(requestParameters, initOverrides) {
11944
+ const response = await this.signWaasConfidentialTransactionRaw(requestParameters, initOverrides);
11945
+ return await response.value();
11946
+ }
11947
+ /**
11948
+ * Options call for this endpoint
11949
+ */
11950
+ async signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
11951
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11952
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionOptions.');
11953
+ }
11954
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11955
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionOptions.');
11956
+ }
11957
+ const queryParameters = {};
11958
+ const headerParameters = {};
11959
+ const response = await this.request({
11960
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11961
+ method: 'OPTIONS',
11962
+ headers: headerParameters,
11963
+ query: queryParameters,
11964
+ }, initOverrides);
11965
+ return new VoidApiResponse(response);
11966
+ }
11967
+ /**
11968
+ * Options call for this endpoint
11969
+ */
11970
+ async signWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
11971
+ await this.signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
11972
+ }
11718
11973
  /**
11719
11974
  * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11720
11975
  * Co-sign enclave-built confidential-transfer transactions
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ require('../models/BusinessAccountInvite.cjs');
6
7
  require('../models/AccessOutcomeEnum.cjs');
7
8
  require('../models/ExchangeKeyEnum.cjs');
8
9
  require('../models/ProviderEnum.cjs');
@@ -1,4 +1,5 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
2
+ import '../models/BusinessAccountInvite.js';
2
3
  import '../models/AccessOutcomeEnum.js';
3
4
  import '../models/ExchangeKeyEnum.js';
4
5
  import '../models/ProviderEnum.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ require('../models/BusinessAccountInvite.cjs');
6
7
  require('../models/AccessOutcomeEnum.cjs');
7
8
  require('../models/ExchangeKeyEnum.cjs');
8
9
  require('../models/ProviderEnum.cjs');
@@ -1,4 +1,5 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse } from '../runtime.js';
2
+ import '../models/BusinessAccountInvite.js';
2
3
  import '../models/AccessOutcomeEnum.js';
3
4
  import '../models/ExchangeKeyEnum.js';
4
5
  import '../models/ProviderEnum.js';
@@ -3,6 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ require('../models/BusinessAccountInvite.cjs');
7
+ var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
6
8
  require('../models/AccessOutcomeEnum.cjs');
7
9
  require('../models/ExchangeKeyEnum.cjs');
8
10
  require('../models/ProviderEnum.cjs');
@@ -57,7 +59,6 @@ require('../models/ChainalysisCheckResultEnum.cjs');
57
59
  var BusinessAccount = require('../models/BusinessAccount.cjs');
58
60
  require('../models/BusinessAccountActionEnum.cjs');
59
61
  require('../models/BusinessAccountActivityExport.cjs');
60
- var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
61
62
  require('../models/BusinessAccountApprovalRequirement.cjs');
62
63
  require('../models/BusinessAccountApprovalsPending.cjs');
63
64
  var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
@@ -351,6 +352,43 @@ class ServerApi extends runtime.BaseAPI {
351
352
  const response = await this.backupKeySharesToLocationsServerRaw(requestParameters, initOverrides);
352
353
  return await response.value();
353
354
  }
355
+ /**
356
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
357
+ * Server — build Token-2022 confidential-transfer transactions
358
+ */
359
+ async buildWaasConfidentialTransactionServerRaw(requestParameters, initOverrides) {
360
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
361
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionServer.');
362
+ }
363
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
364
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionServer.');
365
+ }
366
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
367
+ throw new runtime.RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransactionServer.');
368
+ }
369
+ const queryParameters = {};
370
+ const headerParameters = {};
371
+ headerParameters['Content-Type'] = 'application/json';
372
+ if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
373
+ headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
374
+ }
375
+ const response = await this.request({
376
+ path: `/server/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
377
+ method: 'POST',
378
+ headers: headerParameters,
379
+ query: queryParameters,
380
+ body: WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
381
+ }, initOverrides);
382
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponse.WaasSignConfidentialTransferResponseFromJSON(jsonValue));
383
+ }
384
+ /**
385
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
386
+ * Server — build Token-2022 confidential-transfer transactions
387
+ */
388
+ async buildWaasConfidentialTransactionServer(requestParameters, initOverrides) {
389
+ const response = await this.buildWaasConfidentialTransactionServerRaw(requestParameters, initOverrides);
390
+ return await response.value();
391
+ }
354
392
  /**
355
393
  * Cancels a flow that is still initiated, meaning no source has been attached yet. Returns 400 if flowId is not a valid UUID and 409 flow_invalid_transition if the flow is in any other state. Requires an environment API token with the flow.write scope.
356
394
  * Cancel a flow
@@ -1405,6 +1443,43 @@ class ServerApi extends runtime.BaseAPI {
1405
1443
  const response = await this.signMessageServerRaw(requestParameters, initOverrides);
1406
1444
  return await response.value();
1407
1445
  }
1446
+ /**
1447
+ * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
1448
+ * Server — co-sign enclave-built confidential-transfer transactions
1449
+ */
1450
+ async signWaasConfidentialTransactionServerRaw(requestParameters, initOverrides) {
1451
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1452
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionServer.');
1453
+ }
1454
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1455
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionServer.');
1456
+ }
1457
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
1458
+ throw new runtime.RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactionServer.');
1459
+ }
1460
+ const queryParameters = {};
1461
+ const headerParameters = {};
1462
+ headerParameters['Content-Type'] = 'application/json';
1463
+ if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
1464
+ headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
1465
+ }
1466
+ const response = await this.request({
1467
+ path: `/server/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1468
+ method: 'POST',
1469
+ headers: headerParameters,
1470
+ query: queryParameters,
1471
+ body: WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
1472
+ }, initOverrides);
1473
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
1474
+ }
1475
+ /**
1476
+ * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
1477
+ * Server — co-sign enclave-built confidential-transfer transactions
1478
+ */
1479
+ async signWaasConfidentialTransactionServer(requestParameters, initOverrides) {
1480
+ const response = await this.signWaasConfidentialTransactionServerRaw(requestParameters, initOverrides);
1481
+ return await response.value();
1482
+ }
1408
1483
  /**
1409
1484
  * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
1410
1485
  * Server — co-sign enclave-built confidential-transfer transactions
@@ -23,6 +23,12 @@ export interface BackupKeySharesToLocationsServerRequest {
23
23
  backupKeySharesToLocationsRequest: BackupKeySharesToLocationsRequest;
24
24
  xDynServerSigningProof?: string;
25
25
  }
26
+ export interface BuildWaasConfidentialTransactionServerRequest {
27
+ environmentId: string;
28
+ walletId: string;
29
+ waasSignConfidentialTransferRequest: WaasSignConfidentialTransferRequest;
30
+ xDynServerSigningProof?: string;
31
+ }
26
32
  export interface CancelFlowServerRequest {
27
33
  environmentId: string;
28
34
  flowId: string;
@@ -190,6 +196,12 @@ export interface SignMessageServerRequest {
190
196
  signMessageWithWaasRequest: SignMessageWithWaasRequest;
191
197
  xDynServerSigningProof?: string;
192
198
  }
199
+ export interface SignWaasConfidentialTransactionServerRequest {
200
+ environmentId: string;
201
+ walletId: string;
202
+ waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
203
+ xDynServerSigningProof?: string;
204
+ }
193
205
  export interface SignWaasConfidentialTransactionsServerRequest {
194
206
  environmentId: string;
195
207
  walletId: string;
@@ -260,6 +272,16 @@ export declare class ServerApi extends runtime.BaseAPI {
260
272
  * Server — create backup action and event for multiple locations without performing actual backup
261
273
  */
262
274
  backupKeySharesToLocationsServer(requestParameters: BackupKeySharesToLocationsServerRequest, initOverrides?: RequestInit): Promise<BackupKeySharesToLocationsResponse>;
275
+ /**
276
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
277
+ * Server — build Token-2022 confidential-transfer transactions
278
+ */
279
+ buildWaasConfidentialTransactionServerRaw(requestParameters: BuildWaasConfidentialTransactionServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
280
+ /**
281
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
282
+ * Server — build Token-2022 confidential-transfer transactions
283
+ */
284
+ buildWaasConfidentialTransactionServer(requestParameters: BuildWaasConfidentialTransactionServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
263
285
  /**
264
286
  * Cancels a flow that is still initiated, meaning no source has been attached yet. Returns 400 if flowId is not a valid UUID and 409 flow_invalid_transition if the flow is in any other state. Requires an environment API token with the flow.write scope.
265
287
  * Cancel a flow
@@ -568,6 +590,16 @@ export declare class ServerApi extends runtime.BaseAPI {
568
590
  * Server — sign a message with a WAAS wallet
569
591
  */
570
592
  signMessageServer(requestParameters: SignMessageServerRequest, initOverrides?: RequestInit): Promise<OpenRoomResponse>;
593
+ /**
594
+ * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
595
+ * Server — co-sign enclave-built confidential-transfer transactions
596
+ */
597
+ signWaasConfidentialTransactionServerRaw(requestParameters: SignWaasConfidentialTransactionServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
598
+ /**
599
+ * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
600
+ * Server — co-sign enclave-built confidential-transfer transactions
601
+ */
602
+ signWaasConfidentialTransactionServer(requestParameters: SignWaasConfidentialTransactionServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
571
603
  /**
572
604
  * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
573
605
  * Server — co-sign enclave-built confidential-transfer transactions
@@ -1,4 +1,6 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse, TextApiResponse, VoidApiResponse } from '../runtime.js';
2
+ import '../models/BusinessAccountInvite.js';
3
+ import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
2
4
  import '../models/AccessOutcomeEnum.js';
3
5
  import '../models/ExchangeKeyEnum.js';
4
6
  import '../models/ProviderEnum.js';
@@ -53,7 +55,6 @@ import '../models/ChainalysisCheckResultEnum.js';
53
55
  import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
54
56
  import '../models/BusinessAccountActionEnum.js';
55
57
  import '../models/BusinessAccountActivityExport.js';
56
- import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
57
58
  import '../models/BusinessAccountApprovalRequirement.js';
58
59
  import '../models/BusinessAccountApprovalsPending.js';
59
60
  import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
@@ -347,6 +348,43 @@ class ServerApi extends BaseAPI {
347
348
  const response = await this.backupKeySharesToLocationsServerRaw(requestParameters, initOverrides);
348
349
  return await response.value();
349
350
  }
351
+ /**
352
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
353
+ * Server — build Token-2022 confidential-transfer transactions
354
+ */
355
+ async buildWaasConfidentialTransactionServerRaw(requestParameters, initOverrides) {
356
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
357
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionServer.');
358
+ }
359
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
360
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionServer.');
361
+ }
362
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
363
+ throw new RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransactionServer.');
364
+ }
365
+ const queryParameters = {};
366
+ const headerParameters = {};
367
+ headerParameters['Content-Type'] = 'application/json';
368
+ if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
369
+ headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
370
+ }
371
+ const response = await this.request({
372
+ path: `/server/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
373
+ method: 'POST',
374
+ headers: headerParameters,
375
+ query: queryParameters,
376
+ body: WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
377
+ }, initOverrides);
378
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
379
+ }
380
+ /**
381
+ * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
382
+ * Server — build Token-2022 confidential-transfer transactions
383
+ */
384
+ async buildWaasConfidentialTransactionServer(requestParameters, initOverrides) {
385
+ const response = await this.buildWaasConfidentialTransactionServerRaw(requestParameters, initOverrides);
386
+ return await response.value();
387
+ }
350
388
  /**
351
389
  * Cancels a flow that is still initiated, meaning no source has been attached yet. Returns 400 if flowId is not a valid UUID and 409 flow_invalid_transition if the flow is in any other state. Requires an environment API token with the flow.write scope.
352
390
  * Cancel a flow
@@ -1401,6 +1439,43 @@ class ServerApi extends BaseAPI {
1401
1439
  const response = await this.signMessageServerRaw(requestParameters, initOverrides);
1402
1440
  return await response.value();
1403
1441
  }
1442
+ /**
1443
+ * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
1444
+ * Server — co-sign enclave-built confidential-transfer transactions
1445
+ */
1446
+ async signWaasConfidentialTransactionServerRaw(requestParameters, initOverrides) {
1447
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1448
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionServer.');
1449
+ }
1450
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1451
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionServer.');
1452
+ }
1453
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
1454
+ throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactionServer.');
1455
+ }
1456
+ const queryParameters = {};
1457
+ const headerParameters = {};
1458
+ headerParameters['Content-Type'] = 'application/json';
1459
+ if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
1460
+ headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
1461
+ }
1462
+ const response = await this.request({
1463
+ path: `/server/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1464
+ method: 'POST',
1465
+ headers: headerParameters,
1466
+ query: queryParameters,
1467
+ body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
1468
+ }, initOverrides);
1469
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
1470
+ }
1471
+ /**
1472
+ * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
1473
+ * Server — co-sign enclave-built confidential-transfer transactions
1474
+ */
1475
+ async signWaasConfidentialTransactionServer(requestParameters, initOverrides) {
1476
+ const response = await this.signWaasConfidentialTransactionServerRaw(requestParameters, initOverrides);
1477
+ return await response.value();
1478
+ }
1404
1479
  /**
1405
1480
  * Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
1406
1481
  * Server — co-sign enclave-built confidential-transfer transactions
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ require('../models/BusinessAccountInvite.cjs');
6
7
  require('../models/AccessOutcomeEnum.cjs');
7
8
  require('../models/ExchangeKeyEnum.cjs');
8
9
  require('../models/ProviderEnum.cjs');
@@ -1,4 +1,5 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
2
+ import '../models/BusinessAccountInvite.js';
2
3
  import '../models/AccessOutcomeEnum.js';
3
4
  import '../models/ExchangeKeyEnum.js';
4
5
  import '../models/ProviderEnum.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ require('../models/BusinessAccountInvite.cjs');
6
7
  require('../models/AccessOutcomeEnum.cjs');
7
8
  require('../models/ExchangeKeyEnum.cjs');
8
9
  require('../models/ProviderEnum.cjs');