@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.
- package/package.json +1 -1
- package/src/apis/AdminActionsApi.cjs +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/BusinessAccountsApi.cjs +2 -1
- package/src/apis/BusinessAccountsApi.js +2 -1
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GaslessApi.cjs +1 -0
- package/src/apis/GaslessApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/KybApi.cjs +1 -0
- package/src/apis/KybApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +255 -0
- package/src/apis/SDKApi.d.ts +105 -1
- package/src/apis/SDKApi.js +255 -0
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/ScreeningPoliciesApi.cjs +1 -0
- package/src/apis/ScreeningPoliciesApi.js +1 -0
- package/src/apis/ServerApi.cjs +76 -1
- package/src/apis/ServerApi.d.ts +32 -0
- package/src/apis/ServerApi.js +76 -1
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/apis/YieldApi.cjs +1 -0
- package/src/apis/YieldApi.js +1 -0
- package/src/apis/ZendeskApi.cjs +1 -0
- package/src/apis/ZendeskApi.js +1 -0
- package/src/index.cjs +20 -0
- package/src/index.js +3 -0
- package/src/models/AcceptBusinessAccountInviteResponse.cjs +36 -0
- package/src/models/AcceptBusinessAccountInviteResponse.d.ts +35 -0
- package/src/models/AcceptBusinessAccountInviteResponse.js +30 -0
- package/src/models/BusinessAccountInvite.cjs +70 -0
- package/src/models/BusinessAccountInvite.d.ts +103 -0
- package/src/models/BusinessAccountInvite.js +64 -0
- package/src/models/BusinessAccountInviteListResponse.cjs +33 -0
- package/src/models/BusinessAccountInviteListResponse.d.ts +28 -0
- package/src/models/BusinessAccountInviteListResponse.js +27 -0
- package/src/models/index.d.ts +3 -0
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var AcceptBusinessAccountInviteResponse = require('../models/AcceptBusinessAccountInviteResponse.cjs');
|
|
6
7
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
8
|
var Account = require('../models/Account.cjs');
|
|
8
9
|
require('../models/ProviderEnum.cjs');
|
|
@@ -71,6 +72,8 @@ require('../models/BusinessAccountApprovalsPending.cjs');
|
|
|
71
72
|
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
72
73
|
var BusinessAccountGovernanceResponse = require('../models/BusinessAccountGovernanceResponse.cjs');
|
|
73
74
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
75
|
+
require('../models/BusinessAccountInvite.cjs');
|
|
76
|
+
var BusinessAccountInviteListResponse = require('../models/BusinessAccountInviteListResponse.cjs');
|
|
74
77
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
75
78
|
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
76
79
|
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
@@ -441,6 +444,68 @@ var YieldVaultRewardsResponse = require('../models/YieldVaultRewardsResponse.cjs
|
|
|
441
444
|
*
|
|
442
445
|
*/
|
|
443
446
|
class SDKApi extends runtime.BaseAPI {
|
|
447
|
+
/**
|
|
448
|
+
* 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.
|
|
449
|
+
* Accept a pending business account invitation
|
|
450
|
+
*/
|
|
451
|
+
async acceptBusinessAccountInviteRaw(requestParameters, initOverrides) {
|
|
452
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
453
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
454
|
+
}
|
|
455
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
456
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInvite.');
|
|
457
|
+
}
|
|
458
|
+
const queryParameters = {};
|
|
459
|
+
const headerParameters = {};
|
|
460
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
461
|
+
const token = this.configuration.accessToken;
|
|
462
|
+
const tokenString = await token("bearerAuth", []);
|
|
463
|
+
if (tokenString) {
|
|
464
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
const response = await this.request({
|
|
468
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
469
|
+
method: 'POST',
|
|
470
|
+
headers: headerParameters,
|
|
471
|
+
query: queryParameters,
|
|
472
|
+
}, initOverrides);
|
|
473
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AcceptBusinessAccountInviteResponse.AcceptBusinessAccountInviteResponseFromJSON(jsonValue));
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* 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.
|
|
477
|
+
* Accept a pending business account invitation
|
|
478
|
+
*/
|
|
479
|
+
async acceptBusinessAccountInvite(requestParameters, initOverrides) {
|
|
480
|
+
const response = await this.acceptBusinessAccountInviteRaw(requestParameters, initOverrides);
|
|
481
|
+
return await response.value();
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Options call for this endpoint
|
|
485
|
+
*/
|
|
486
|
+
async acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides) {
|
|
487
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
488
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
489
|
+
}
|
|
490
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
491
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInviteOptions.');
|
|
492
|
+
}
|
|
493
|
+
const queryParameters = {};
|
|
494
|
+
const headerParameters = {};
|
|
495
|
+
const response = await this.request({
|
|
496
|
+
path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
497
|
+
method: 'OPTIONS',
|
|
498
|
+
headers: headerParameters,
|
|
499
|
+
query: queryParameters,
|
|
500
|
+
}, initOverrides);
|
|
501
|
+
return new runtime.VoidApiResponse(response);
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Options call for this endpoint
|
|
505
|
+
*/
|
|
506
|
+
async acceptBusinessAccountInviteOptions(requestParameters, initOverrides) {
|
|
507
|
+
await this.acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides);
|
|
508
|
+
}
|
|
444
509
|
/**
|
|
445
510
|
* 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.
|
|
446
511
|
* Attach a source to a flow and mint a session token
|
|
@@ -1072,6 +1137,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1072
1137
|
async broadcastWaasTransactionOptions(requestParameters, initOverrides) {
|
|
1073
1138
|
await this.broadcastWaasTransactionOptionsRaw(requestParameters, initOverrides);
|
|
1074
1139
|
}
|
|
1140
|
+
/**
|
|
1141
|
+
* 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.
|
|
1142
|
+
* Build Token-2022 confidential-transfer transactions
|
|
1143
|
+
*/
|
|
1144
|
+
async buildWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
|
|
1145
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1146
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransaction.');
|
|
1147
|
+
}
|
|
1148
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1149
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransaction.');
|
|
1150
|
+
}
|
|
1151
|
+
if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
|
|
1152
|
+
throw new runtime.RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransaction.');
|
|
1153
|
+
}
|
|
1154
|
+
const queryParameters = {};
|
|
1155
|
+
const headerParameters = {};
|
|
1156
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1157
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1158
|
+
const token = this.configuration.accessToken;
|
|
1159
|
+
const tokenString = await token("bearerAuth", []);
|
|
1160
|
+
if (tokenString) {
|
|
1161
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
const response = await this.request({
|
|
1165
|
+
path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1166
|
+
method: 'POST',
|
|
1167
|
+
headers: headerParameters,
|
|
1168
|
+
query: queryParameters,
|
|
1169
|
+
body: WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
|
|
1170
|
+
}, initOverrides);
|
|
1171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponse.WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* 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.
|
|
1175
|
+
* Build Token-2022 confidential-transfer transactions
|
|
1176
|
+
*/
|
|
1177
|
+
async buildWaasConfidentialTransaction(requestParameters, initOverrides) {
|
|
1178
|
+
const response = await this.buildWaasConfidentialTransactionRaw(requestParameters, initOverrides);
|
|
1179
|
+
return await response.value();
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Options call for this endpoint
|
|
1183
|
+
*/
|
|
1184
|
+
async buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
|
|
1185
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1186
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
|
|
1187
|
+
}
|
|
1188
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1189
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
|
|
1190
|
+
}
|
|
1191
|
+
const queryParameters = {};
|
|
1192
|
+
const headerParameters = {};
|
|
1193
|
+
const response = await this.request({
|
|
1194
|
+
path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1195
|
+
method: 'OPTIONS',
|
|
1196
|
+
headers: headerParameters,
|
|
1197
|
+
query: queryParameters,
|
|
1198
|
+
}, initOverrides);
|
|
1199
|
+
return new runtime.VoidApiResponse(response);
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* Options call for this endpoint
|
|
1203
|
+
*/
|
|
1204
|
+
async buildWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
|
|
1205
|
+
await this.buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
|
|
1206
|
+
}
|
|
1075
1207
|
/**
|
|
1076
1208
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
|
|
1077
1209
|
* Cancel a checkout transaction
|
|
@@ -3887,6 +4019,62 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3887
4019
|
async getBackupTokenOptions(requestParameters, initOverrides) {
|
|
3888
4020
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3889
4021
|
}
|
|
4022
|
+
/**
|
|
4023
|
+
* 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.
|
|
4024
|
+
* List the authenticated user\'s pending business account invitations
|
|
4025
|
+
*/
|
|
4026
|
+
async getBusinessAccountInvitesRaw(requestParameters, initOverrides) {
|
|
4027
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4028
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvites.');
|
|
4029
|
+
}
|
|
4030
|
+
const queryParameters = {};
|
|
4031
|
+
const headerParameters = {};
|
|
4032
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4033
|
+
const token = this.configuration.accessToken;
|
|
4034
|
+
const tokenString = await token("bearerAuth", []);
|
|
4035
|
+
if (tokenString) {
|
|
4036
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
const response = await this.request({
|
|
4040
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
4041
|
+
method: 'GET',
|
|
4042
|
+
headers: headerParameters,
|
|
4043
|
+
query: queryParameters,
|
|
4044
|
+
}, initOverrides);
|
|
4045
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountInviteListResponse.BusinessAccountInviteListResponseFromJSON(jsonValue));
|
|
4046
|
+
}
|
|
4047
|
+
/**
|
|
4048
|
+
* 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.
|
|
4049
|
+
* List the authenticated user\'s pending business account invitations
|
|
4050
|
+
*/
|
|
4051
|
+
async getBusinessAccountInvites(requestParameters, initOverrides) {
|
|
4052
|
+
const response = await this.getBusinessAccountInvitesRaw(requestParameters, initOverrides);
|
|
4053
|
+
return await response.value();
|
|
4054
|
+
}
|
|
4055
|
+
/**
|
|
4056
|
+
* Options call for this endpoint
|
|
4057
|
+
*/
|
|
4058
|
+
async getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
4059
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4060
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvitesOptions.');
|
|
4061
|
+
}
|
|
4062
|
+
const queryParameters = {};
|
|
4063
|
+
const headerParameters = {};
|
|
4064
|
+
const response = await this.request({
|
|
4065
|
+
path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
4066
|
+
method: 'OPTIONS',
|
|
4067
|
+
headers: headerParameters,
|
|
4068
|
+
query: queryParameters,
|
|
4069
|
+
}, initOverrides);
|
|
4070
|
+
return new runtime.VoidApiResponse(response);
|
|
4071
|
+
}
|
|
4072
|
+
/**
|
|
4073
|
+
* Options call for this endpoint
|
|
4074
|
+
*/
|
|
4075
|
+
async getBusinessAccountInvitesOptions(requestParameters, initOverrides) {
|
|
4076
|
+
await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
|
|
4077
|
+
}
|
|
3890
4078
|
/**
|
|
3891
4079
|
* 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).
|
|
3892
4080
|
* Get the business account\'s account-Layer Rules
|
|
@@ -11719,6 +11907,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11719
11907
|
async signMessageOptions(requestParameters, initOverrides) {
|
|
11720
11908
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11721
11909
|
}
|
|
11910
|
+
/**
|
|
11911
|
+
* 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.
|
|
11912
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11913
|
+
*/
|
|
11914
|
+
async signWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
|
|
11915
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11916
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransaction.');
|
|
11917
|
+
}
|
|
11918
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11919
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransaction.');
|
|
11920
|
+
}
|
|
11921
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
11922
|
+
throw new runtime.RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransaction.');
|
|
11923
|
+
}
|
|
11924
|
+
const queryParameters = {};
|
|
11925
|
+
const headerParameters = {};
|
|
11926
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11927
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11928
|
+
const token = this.configuration.accessToken;
|
|
11929
|
+
const tokenString = await token("bearerAuth", []);
|
|
11930
|
+
if (tokenString) {
|
|
11931
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11932
|
+
}
|
|
11933
|
+
}
|
|
11934
|
+
const response = await this.request({
|
|
11935
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11936
|
+
method: 'POST',
|
|
11937
|
+
headers: headerParameters,
|
|
11938
|
+
query: queryParameters,
|
|
11939
|
+
body: WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
11940
|
+
}, initOverrides);
|
|
11941
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11942
|
+
}
|
|
11943
|
+
/**
|
|
11944
|
+
* 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.
|
|
11945
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11946
|
+
*/
|
|
11947
|
+
async signWaasConfidentialTransaction(requestParameters, initOverrides) {
|
|
11948
|
+
const response = await this.signWaasConfidentialTransactionRaw(requestParameters, initOverrides);
|
|
11949
|
+
return await response.value();
|
|
11950
|
+
}
|
|
11951
|
+
/**
|
|
11952
|
+
* Options call for this endpoint
|
|
11953
|
+
*/
|
|
11954
|
+
async signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
|
|
11955
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11956
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionOptions.');
|
|
11957
|
+
}
|
|
11958
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11959
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionOptions.');
|
|
11960
|
+
}
|
|
11961
|
+
const queryParameters = {};
|
|
11962
|
+
const headerParameters = {};
|
|
11963
|
+
const response = await this.request({
|
|
11964
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11965
|
+
method: 'OPTIONS',
|
|
11966
|
+
headers: headerParameters,
|
|
11967
|
+
query: queryParameters,
|
|
11968
|
+
}, initOverrides);
|
|
11969
|
+
return new runtime.VoidApiResponse(response);
|
|
11970
|
+
}
|
|
11971
|
+
/**
|
|
11972
|
+
* Options call for this endpoint
|
|
11973
|
+
*/
|
|
11974
|
+
async signWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
|
|
11975
|
+
await this.signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
|
|
11976
|
+
}
|
|
11722
11977
|
/**
|
|
11723
11978
|
* 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.
|
|
11724
11979
|
* Co-sign enclave-built confidential-transfer transactions
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
|
+
export interface AcceptBusinessAccountInviteRequest {
|
|
15
|
+
environmentId: string;
|
|
16
|
+
inviteId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AcceptBusinessAccountInviteOptionsRequest {
|
|
19
|
+
environmentId: string;
|
|
20
|
+
inviteId: string;
|
|
21
|
+
}
|
|
14
22
|
export interface AttachFlowSourceRequest {
|
|
15
23
|
environmentId: string;
|
|
16
24
|
flowId: string;
|
|
@@ -96,6 +104,15 @@ export interface BroadcastWaasTransactionOptionsRequest {
|
|
|
96
104
|
environmentId: string;
|
|
97
105
|
walletId: string;
|
|
98
106
|
}
|
|
107
|
+
export interface BuildWaasConfidentialTransactionRequest {
|
|
108
|
+
environmentId: string;
|
|
109
|
+
walletId: string;
|
|
110
|
+
waasSignConfidentialTransferRequest: WaasSignConfidentialTransferRequest;
|
|
111
|
+
}
|
|
112
|
+
export interface BuildWaasConfidentialTransactionOptionsRequest {
|
|
113
|
+
environmentId: string;
|
|
114
|
+
walletId: string;
|
|
115
|
+
}
|
|
99
116
|
export interface CancelCheckoutTransactionRequest {
|
|
100
117
|
environmentId: string;
|
|
101
118
|
transactionId: string;
|
|
@@ -459,6 +476,12 @@ export interface GetBackupTokenRequest {
|
|
|
459
476
|
export interface GetBackupTokenOptionsRequest {
|
|
460
477
|
environmentId: string;
|
|
461
478
|
}
|
|
479
|
+
export interface GetBusinessAccountInvitesRequest {
|
|
480
|
+
environmentId: string;
|
|
481
|
+
}
|
|
482
|
+
export interface GetBusinessAccountInvitesOptionsRequest {
|
|
483
|
+
environmentId: string;
|
|
484
|
+
}
|
|
462
485
|
export interface GetBusinessAccountPolicyLayerRequest {
|
|
463
486
|
environmentId: string;
|
|
464
487
|
businessAccountId: string;
|
|
@@ -1501,6 +1524,15 @@ export interface SignMessageOptionsRequest {
|
|
|
1501
1524
|
environmentId: string;
|
|
1502
1525
|
walletId: string;
|
|
1503
1526
|
}
|
|
1527
|
+
export interface SignWaasConfidentialTransactionRequest {
|
|
1528
|
+
environmentId: string;
|
|
1529
|
+
walletId: string;
|
|
1530
|
+
waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
|
|
1531
|
+
}
|
|
1532
|
+
export interface SignWaasConfidentialTransactionOptionsRequest {
|
|
1533
|
+
environmentId: string;
|
|
1534
|
+
walletId: string;
|
|
1535
|
+
}
|
|
1504
1536
|
export interface SignWaasConfidentialTransactionsRequest {
|
|
1505
1537
|
environmentId: string;
|
|
1506
1538
|
walletId: string;
|
|
@@ -1820,6 +1852,24 @@ export interface YieldVaultWithdrawOptionsRequest {
|
|
|
1820
1852
|
*
|
|
1821
1853
|
*/
|
|
1822
1854
|
export declare class SDKApi extends runtime.BaseAPI {
|
|
1855
|
+
/**
|
|
1856
|
+
* 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.
|
|
1857
|
+
* Accept a pending business account invitation
|
|
1858
|
+
*/
|
|
1859
|
+
acceptBusinessAccountInviteRaw(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AcceptBusinessAccountInviteResponse>>;
|
|
1860
|
+
/**
|
|
1861
|
+
* 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.
|
|
1862
|
+
* Accept a pending business account invitation
|
|
1863
|
+
*/
|
|
1864
|
+
acceptBusinessAccountInvite(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<AcceptBusinessAccountInviteResponse>;
|
|
1865
|
+
/**
|
|
1866
|
+
* Options call for this endpoint
|
|
1867
|
+
*/
|
|
1868
|
+
acceptBusinessAccountInviteOptionsRaw(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1869
|
+
/**
|
|
1870
|
+
* Options call for this endpoint
|
|
1871
|
+
*/
|
|
1872
|
+
acceptBusinessAccountInviteOptions(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1823
1873
|
/**
|
|
1824
1874
|
* 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.
|
|
1825
1875
|
* Attach a source to a flow and mint a session token
|
|
@@ -1998,6 +2048,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1998
2048
|
* Options call for this endpoint
|
|
1999
2049
|
*/
|
|
2000
2050
|
broadcastWaasTransactionOptions(requestParameters: BroadcastWaasTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2051
|
+
/**
|
|
2052
|
+
* 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.
|
|
2053
|
+
* Build Token-2022 confidential-transfer transactions
|
|
2054
|
+
*/
|
|
2055
|
+
buildWaasConfidentialTransactionRaw(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
|
|
2056
|
+
/**
|
|
2057
|
+
* 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.
|
|
2058
|
+
* Build Token-2022 confidential-transfer transactions
|
|
2059
|
+
*/
|
|
2060
|
+
buildWaasConfidentialTransaction(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
|
|
2061
|
+
/**
|
|
2062
|
+
* Options call for this endpoint
|
|
2063
|
+
*/
|
|
2064
|
+
buildWaasConfidentialTransactionOptionsRaw(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2065
|
+
/**
|
|
2066
|
+
* Options call for this endpoint
|
|
2067
|
+
*/
|
|
2068
|
+
buildWaasConfidentialTransactionOptions(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2001
2069
|
/**
|
|
2002
2070
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
|
|
2003
2071
|
* Cancel a checkout transaction
|
|
@@ -2812,6 +2880,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2812
2880
|
* Options call for this endpoint
|
|
2813
2881
|
*/
|
|
2814
2882
|
getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2883
|
+
/**
|
|
2884
|
+
* 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.
|
|
2885
|
+
* List the authenticated user\'s pending business account invitations
|
|
2886
|
+
*/
|
|
2887
|
+
getBusinessAccountInvitesRaw(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountInviteListResponse>>;
|
|
2888
|
+
/**
|
|
2889
|
+
* 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.
|
|
2890
|
+
* List the authenticated user\'s pending business account invitations
|
|
2891
|
+
*/
|
|
2892
|
+
getBusinessAccountInvites(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<BusinessAccountInviteListResponse>;
|
|
2893
|
+
/**
|
|
2894
|
+
* Options call for this endpoint
|
|
2895
|
+
*/
|
|
2896
|
+
getBusinessAccountInvitesOptionsRaw(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2897
|
+
/**
|
|
2898
|
+
* Options call for this endpoint
|
|
2899
|
+
*/
|
|
2900
|
+
getBusinessAccountInvitesOptions(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2815
2901
|
/**
|
|
2816
2902
|
* 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).
|
|
2817
2903
|
* Get the business account\'s account-Layer Rules
|
|
@@ -5102,6 +5188,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5102
5188
|
* Options call for this endpoint
|
|
5103
5189
|
*/
|
|
5104
5190
|
signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5191
|
+
/**
|
|
5192
|
+
* 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.
|
|
5193
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
5194
|
+
*/
|
|
5195
|
+
signWaasConfidentialTransactionRaw(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
5196
|
+
/**
|
|
5197
|
+
* 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.
|
|
5198
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
5199
|
+
*/
|
|
5200
|
+
signWaasConfidentialTransaction(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
|
5201
|
+
/**
|
|
5202
|
+
* Options call for this endpoint
|
|
5203
|
+
*/
|
|
5204
|
+
signWaasConfidentialTransactionOptionsRaw(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
5205
|
+
/**
|
|
5206
|
+
* Options call for this endpoint
|
|
5207
|
+
*/
|
|
5208
|
+
signWaasConfidentialTransactionOptions(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5105
5209
|
/**
|
|
5106
5210
|
* 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.
|
|
5107
5211
|
* Co-sign enclave-built confidential-transfer transactions
|