@dynamic-labs/sdk-api 0.149.0 → 0.151.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 +3 -1
- package/src/apis/BusinessAccountsApi.d.ts +3 -3
- package/src/apis/BusinessAccountsApi.js +3 -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 +5 -45
- package/src/apis/SDKApi.d.ts +5 -20
- package/src/apis/SDKApi.js +5 -45
- 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 +5 -41
- package/src/apis/ServerApi.d.ts +5 -21
- package/src/apis/ServerApi.js +5 -41
- 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 +16 -4
- package/src/index.js +2 -1
- package/src/models/BusinessAccountMemberCreationResult.cjs +36 -0
- package/src/models/BusinessAccountMemberCreationResult.d.ts +22 -0
- package/src/models/BusinessAccountMemberCreationResult.js +30 -0
- package/src/models/BusinessAccountMemberInviteReceipt.cjs +78 -0
- package/src/models/BusinessAccountMemberInviteReceipt.d.ts +117 -0
- package/src/models/BusinessAccountMemberInviteReceipt.js +72 -0
- package/src/models/index.d.ts +2 -1
- package/src/models/WaasConfidentialSeedPutRequest.cjs +0 -39
- package/src/models/WaasConfidentialSeedPutRequest.d.ts +0 -45
- package/src/models/WaasConfidentialSeedPutRequest.js +0 -33
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
@@ -59,6 +59,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
59
59
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
60
60
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
61
61
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
62
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
62
63
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
63
64
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
64
65
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -55,6 +55,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
55
55
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
56
56
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
57
57
|
import '../models/BusinessAccountGovernedAction.js';
|
|
58
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
58
59
|
import '../models/BusinessAccountMemberRole.js';
|
|
59
60
|
import '../models/BusinessAccountProposalStatus.js';
|
|
60
61
|
import '../models/BusinessAccountRequirementCondition.js';
|
package/src/apis/OriginsApi.cjs
CHANGED
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
package/src/apis/OriginsApi.js
CHANGED
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
package/src/apis/ProjectsApi.cjs
CHANGED
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
package/src/apis/ProjectsApi.js
CHANGED
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
package/src/apis/ProvidersApi.js
CHANGED
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -72,6 +72,8 @@ var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
|
72
72
|
var BusinessAccountGovernanceResponse = require('../models/BusinessAccountGovernanceResponse.cjs');
|
|
73
73
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
74
74
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
75
|
+
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
76
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
75
77
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
76
78
|
var BusinessAccountMutationVersion = require('../models/BusinessAccountMutationVersion.cjs');
|
|
77
79
|
var BusinessAccountProposal = require('../models/BusinessAccountProposal.cjs');
|
|
@@ -383,7 +385,6 @@ var VerifyUnlinkRequest = require('../models/VerifyUnlinkRequest.cjs');
|
|
|
383
385
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
384
386
|
require('../models/WaasBroadcastStatus.cjs');
|
|
385
387
|
var WaasConfidentialSeedCreateRequest = require('../models/WaasConfidentialSeedCreateRequest.cjs');
|
|
386
|
-
var WaasConfidentialSeedPutRequest = require('../models/WaasConfidentialSeedPutRequest.cjs');
|
|
387
388
|
var WaasConfidentialSeedResponse = require('../models/WaasConfidentialSeedResponse.cjs');
|
|
388
389
|
require('../models/WaasConfidentialTransferOperation.cjs');
|
|
389
390
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
@@ -8136,47 +8137,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8136
8137
|
async publishEvent(requestParameters, initOverrides) {
|
|
8137
8138
|
await this.publishEventRaw(requestParameters, initOverrides);
|
|
8138
8139
|
}
|
|
8139
|
-
/**
|
|
8140
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8141
|
-
* Store a Solana confidential-transfer seed
|
|
8142
|
-
*/
|
|
8143
|
-
async putWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
8144
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8145
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8146
|
-
}
|
|
8147
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8148
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8149
|
-
}
|
|
8150
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
8151
|
-
throw new runtime.RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeed.');
|
|
8152
|
-
}
|
|
8153
|
-
const queryParameters = {};
|
|
8154
|
-
const headerParameters = {};
|
|
8155
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8156
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
8157
|
-
const token = this.configuration.accessToken;
|
|
8158
|
-
const tokenString = await token("bearerAuth", []);
|
|
8159
|
-
if (tokenString) {
|
|
8160
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8161
|
-
}
|
|
8162
|
-
}
|
|
8163
|
-
const response = await this.request({
|
|
8164
|
-
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8165
|
-
method: 'PUT',
|
|
8166
|
-
headers: headerParameters,
|
|
8167
|
-
query: queryParameters,
|
|
8168
|
-
body: WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
8169
|
-
}, initOverrides);
|
|
8170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
8171
|
-
}
|
|
8172
|
-
/**
|
|
8173
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8174
|
-
* Store a Solana confidential-transfer seed
|
|
8175
|
-
*/
|
|
8176
|
-
async putWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
8177
|
-
const response = await this.putWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
8178
|
-
return await response.value();
|
|
8179
|
-
}
|
|
8180
8140
|
/**
|
|
8181
8141
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
8182
8142
|
* Get a quote for a checkout transaction
|
|
@@ -9485,7 +9445,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9485
9445
|
query: queryParameters,
|
|
9486
9446
|
body: AddBusinessAccountMemberSdkRequest.AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
9487
9447
|
}, initOverrides);
|
|
9488
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
9448
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResult.BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
9489
9449
|
}
|
|
9490
9450
|
/**
|
|
9491
9451
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
@@ -11760,7 +11720,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11760
11720
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11761
11721
|
}
|
|
11762
11722
|
/**
|
|
11763
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11723
|
+
* 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.
|
|
11764
11724
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11765
11725
|
*/
|
|
11766
11726
|
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -11793,7 +11753,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11793
11753
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11794
11754
|
}
|
|
11795
11755
|
/**
|
|
11796
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11756
|
+
* 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.
|
|
11797
11757
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11798
11758
|
*/
|
|
11799
11759
|
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
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, 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,
|
|
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';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1025,11 +1025,6 @@ export interface PublishEventRequest {
|
|
|
1025
1025
|
environmentId: string;
|
|
1026
1026
|
publishEvents: PublishEvents;
|
|
1027
1027
|
}
|
|
1028
|
-
export interface PutWaasConfidentialSeedRequest {
|
|
1029
|
-
environmentId: string;
|
|
1030
|
-
walletId: string;
|
|
1031
|
-
waasConfidentialSeedPutRequest: WaasConfidentialSeedPutRequest;
|
|
1032
|
-
}
|
|
1033
1028
|
export interface QuoteCheckoutTransactionRequest {
|
|
1034
1029
|
environmentId: string;
|
|
1035
1030
|
transactionId: string;
|
|
@@ -4093,16 +4088,6 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4093
4088
|
* Publish SDK events
|
|
4094
4089
|
*/
|
|
4095
4090
|
publishEvent(requestParameters: PublishEventRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4096
|
-
/**
|
|
4097
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
4098
|
-
* Store a Solana confidential-transfer seed
|
|
4099
|
-
*/
|
|
4100
|
-
putWaasConfidentialSeedRaw(requestParameters: PutWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
|
|
4101
|
-
/**
|
|
4102
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
4103
|
-
* Store a Solana confidential-transfer seed
|
|
4104
|
-
*/
|
|
4105
|
-
putWaasConfidentialSeed(requestParameters: PutWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
|
|
4106
4091
|
/**
|
|
4107
4092
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
4108
4093
|
* Get a quote for a checkout transaction
|
|
@@ -4489,12 +4474,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4489
4474
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
4490
4475
|
* SDK — add a member to a business account
|
|
4491
4476
|
*/
|
|
4492
|
-
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
4477
|
+
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMemberCreationResult>>;
|
|
4493
4478
|
/**
|
|
4494
4479
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
4495
4480
|
* SDK — add a member to a business account
|
|
4496
4481
|
*/
|
|
4497
|
-
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<
|
|
4482
|
+
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMemberCreationResult>;
|
|
4498
4483
|
/**
|
|
4499
4484
|
* Adds a signer to a business-account wallet by running a same-parties 2/2 -> 2/2 MPC reshare ceremony. The caller must hold an active share on the wallet (only existing share-holders can reshare). The target user is resolved the same way as addMember and, if absent, is created and added to the account. The response is `text/event-stream` (NOT JSON): clients consume it via EventSource and receive `room_created` and `ceremony_complete` events; the new signer share is delivered to the initiating client (iframe) via Sodot\'s relay and backed up to the client-keyshare service on the target\'s behalf.
|
|
4500
4485
|
* SDK — add a signer to a wallet in a business account
|
|
@@ -5118,12 +5103,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5118
5103
|
*/
|
|
5119
5104
|
signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5120
5105
|
/**
|
|
5121
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
5106
|
+
* 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.
|
|
5122
5107
|
* Co-sign enclave-built confidential-transfer transactions
|
|
5123
5108
|
*/
|
|
5124
5109
|
signWaasConfidentialTransactionsRaw(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
5125
5110
|
/**
|
|
5126
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
5111
|
+
* 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.
|
|
5127
5112
|
* Co-sign enclave-built confidential-transfer transactions
|
|
5128
5113
|
*/
|
|
5129
5114
|
signWaasConfidentialTransactions(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -68,6 +68,8 @@ import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.j
|
|
|
68
68
|
import { BusinessAccountGovernanceResponseFromJSON } from '../models/BusinessAccountGovernanceResponse.js';
|
|
69
69
|
import '../models/BusinessAccountGovernedAction.js';
|
|
70
70
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
71
|
+
import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
|
|
72
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
71
73
|
import '../models/BusinessAccountMemberRole.js';
|
|
72
74
|
import { BusinessAccountMutationVersionFromJSON } from '../models/BusinessAccountMutationVersion.js';
|
|
73
75
|
import { BusinessAccountProposalFromJSON } from '../models/BusinessAccountProposal.js';
|
|
@@ -379,7 +381,6 @@ import { VerifyUnlinkRequestToJSON } from '../models/VerifyUnlinkRequest.js';
|
|
|
379
381
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
380
382
|
import '../models/WaasBroadcastStatus.js';
|
|
381
383
|
import { WaasConfidentialSeedCreateRequestToJSON } from '../models/WaasConfidentialSeedCreateRequest.js';
|
|
382
|
-
import { WaasConfidentialSeedPutRequestToJSON } from '../models/WaasConfidentialSeedPutRequest.js';
|
|
383
384
|
import { WaasConfidentialSeedResponseFromJSON } from '../models/WaasConfidentialSeedResponse.js';
|
|
384
385
|
import '../models/WaasConfidentialTransferOperation.js';
|
|
385
386
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
@@ -8132,47 +8133,6 @@ class SDKApi extends BaseAPI {
|
|
|
8132
8133
|
async publishEvent(requestParameters, initOverrides) {
|
|
8133
8134
|
await this.publishEventRaw(requestParameters, initOverrides);
|
|
8134
8135
|
}
|
|
8135
|
-
/**
|
|
8136
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8137
|
-
* Store a Solana confidential-transfer seed
|
|
8138
|
-
*/
|
|
8139
|
-
async putWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
8140
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8141
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8142
|
-
}
|
|
8143
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8144
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8145
|
-
}
|
|
8146
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
8147
|
-
throw new RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeed.');
|
|
8148
|
-
}
|
|
8149
|
-
const queryParameters = {};
|
|
8150
|
-
const headerParameters = {};
|
|
8151
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8152
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
8153
|
-
const token = this.configuration.accessToken;
|
|
8154
|
-
const tokenString = await token("bearerAuth", []);
|
|
8155
|
-
if (tokenString) {
|
|
8156
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8157
|
-
}
|
|
8158
|
-
}
|
|
8159
|
-
const response = await this.request({
|
|
8160
|
-
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8161
|
-
method: 'PUT',
|
|
8162
|
-
headers: headerParameters,
|
|
8163
|
-
query: queryParameters,
|
|
8164
|
-
body: WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
8165
|
-
}, initOverrides);
|
|
8166
|
-
return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
8167
|
-
}
|
|
8168
|
-
/**
|
|
8169
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8170
|
-
* Store a Solana confidential-transfer seed
|
|
8171
|
-
*/
|
|
8172
|
-
async putWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
8173
|
-
const response = await this.putWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
8174
|
-
return await response.value();
|
|
8175
|
-
}
|
|
8176
8136
|
/**
|
|
8177
8137
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
8178
8138
|
* Get a quote for a checkout transaction
|
|
@@ -9481,7 +9441,7 @@ class SDKApi extends BaseAPI {
|
|
|
9481
9441
|
query: queryParameters,
|
|
9482
9442
|
body: AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
9483
9443
|
}, initOverrides);
|
|
9484
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
9444
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
9485
9445
|
}
|
|
9486
9446
|
/**
|
|
9487
9447
|
* Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` and nothing is signed yet, the response is `422 intent_required` with the intent to sign. Resend signed to move to 202 (the proposal collecting approvals) or straight to 201 if quorum is already met.
|
|
@@ -11756,7 +11716,7 @@ class SDKApi extends BaseAPI {
|
|
|
11756
11716
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11757
11717
|
}
|
|
11758
11718
|
/**
|
|
11759
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11719
|
+
* 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.
|
|
11760
11720
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11761
11721
|
*/
|
|
11762
11722
|
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -11789,7 +11749,7 @@ class SDKApi extends BaseAPI {
|
|
|
11789
11749
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11790
11750
|
}
|
|
11791
11751
|
/**
|
|
11792
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11752
|
+
* 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.
|
|
11793
11753
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11794
11754
|
*/
|
|
11795
11755
|
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
package/src/apis/SDKViewsApi.cjs
CHANGED
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
package/src/apis/SDKViewsApi.js
CHANGED
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
|
@@ -57,6 +57,7 @@ require('../models/BusinessAccountActivityExport.cjs');
|
|
|
57
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
58
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
60
61
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
61
62
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
62
63
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -53,6 +53,7 @@ import '../models/BusinessAccountActivityExport.js';
|
|
|
53
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
54
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
55
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
56
|
+
import '../models/BusinessAccountMemberInviteReceipt.js';
|
|
56
57
|
import '../models/BusinessAccountMemberRole.js';
|
|
57
58
|
import '../models/BusinessAccountProposalStatus.js';
|
|
58
59
|
import '../models/BusinessAccountRequirementCondition.js';
|
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -63,6 +63,8 @@ require('../models/BusinessAccountApprovalsPending.cjs');
|
|
|
63
63
|
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
64
64
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
65
65
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
66
|
+
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
67
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
66
68
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
67
69
|
require('../models/BusinessAccountProposalStatus.cjs');
|
|
68
70
|
require('../models/BusinessAccountRequirementCondition.cjs');
|
|
@@ -232,7 +234,6 @@ require('../models/UserFilterableFieldsEnum.cjs');
|
|
|
232
234
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
233
235
|
require('../models/WaasBroadcastStatus.cjs');
|
|
234
236
|
var WaasConfidentialSeedCreateRequest = require('../models/WaasConfidentialSeedCreateRequest.cjs');
|
|
235
|
-
var WaasConfidentialSeedPutRequest = require('../models/WaasConfidentialSeedPutRequest.cjs');
|
|
236
237
|
var WaasConfidentialSeedResponse = require('../models/WaasConfidentialSeedResponse.cjs');
|
|
237
238
|
require('../models/WaasConfidentialTransferOperation.cjs');
|
|
238
239
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
@@ -303,7 +304,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
303
304
|
query: queryParameters,
|
|
304
305
|
body: AddBusinessAccountMemberSdkRequest.AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
305
306
|
}, initOverrides);
|
|
306
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
307
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResult.BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
307
308
|
}
|
|
308
309
|
/**
|
|
309
310
|
* Owner or admin only. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
|
|
@@ -1148,43 +1149,6 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1148
1149
|
const response = await this.listBusinessAccountsServerRaw(requestParameters, initOverrides);
|
|
1149
1150
|
return await response.value();
|
|
1150
1151
|
}
|
|
1151
|
-
/**
|
|
1152
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1153
|
-
* Server — store a Solana confidential-transfer seed
|
|
1154
|
-
*/
|
|
1155
|
-
async putWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
|
|
1156
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1157
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1158
|
-
}
|
|
1159
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1160
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1161
|
-
}
|
|
1162
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
1163
|
-
throw new runtime.RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1164
|
-
}
|
|
1165
|
-
const queryParameters = {};
|
|
1166
|
-
const headerParameters = {};
|
|
1167
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1168
|
-
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1169
|
-
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1170
|
-
}
|
|
1171
|
-
const response = await this.request({
|
|
1172
|
-
path: `/server/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1173
|
-
method: 'PUT',
|
|
1174
|
-
headers: headerParameters,
|
|
1175
|
-
query: queryParameters,
|
|
1176
|
-
body: WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
1177
|
-
}, initOverrides);
|
|
1178
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
1179
|
-
}
|
|
1180
|
-
/**
|
|
1181
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1182
|
-
* Server — store a Solana confidential-transfer seed
|
|
1183
|
-
*/
|
|
1184
|
-
async putWaasConfidentialSeedServer(requestParameters, initOverrides) {
|
|
1185
|
-
const response = await this.putWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
|
|
1186
|
-
return await response.value();
|
|
1187
|
-
}
|
|
1188
1152
|
/**
|
|
1189
1153
|
* Refreshes the MPC key shares for the specified WAAS wallet. `shareSetId` is required for server-mode wallets; without it the request is rejected with 422.
|
|
1190
1154
|
* Server — refresh WAAS keyshares
|
|
@@ -1442,7 +1406,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1442
1406
|
return await response.value();
|
|
1443
1407
|
}
|
|
1444
1408
|
/**
|
|
1445
|
-
* Provisions one MPC signing room
|
|
1409
|
+
* 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.
|
|
1446
1410
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1447
1411
|
*/
|
|
1448
1412
|
async signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides) {
|
|
@@ -1471,7 +1435,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1471
1435
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
1472
1436
|
}
|
|
1473
1437
|
/**
|
|
1474
|
-
* Provisions one MPC signing room
|
|
1438
|
+
* 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.
|
|
1475
1439
|
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1476
1440
|
*/
|
|
1477
1441
|
async signWaasConfidentialTransactionsServer(requestParameters, initOverrides) {
|