@dynamic-labs/sdk-api-core 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/SDKApi.cjs +5 -45
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +5 -20
- package/src/apis/SDKApi.js +5 -45
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +16 -4
- package/src/index.cjs.map +1 -1
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/models/BusinessAccountMemberCreationResult.cjs +36 -0
- package/src/models/BusinessAccountMemberCreationResult.cjs.map +1 -0
- package/src/models/BusinessAccountMemberCreationResult.d.ts +22 -0
- package/src/models/BusinessAccountMemberCreationResult.js +30 -0
- package/src/models/BusinessAccountMemberCreationResult.js.map +1 -0
- package/src/models/BusinessAccountMemberInviteReceipt.cjs +78 -0
- package/src/models/BusinessAccountMemberInviteReceipt.cjs.map +1 -0
- package/src/models/BusinessAccountMemberInviteReceipt.d.ts +117 -0
- package/src/models/BusinessAccountMemberInviteReceipt.js +72 -0
- package/src/models/BusinessAccountMemberInviteReceipt.js.map +1 -0
- package/src/models/index.d.ts +2 -1
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
- package/src/models/WaasConfidentialSeedPutRequest.cjs +0 -39
- package/src/models/WaasConfidentialSeedPutRequest.cjs.map +0 -1
- package/src/models/WaasConfidentialSeedPutRequest.d.ts +0 -45
- package/src/models/WaasConfidentialSeedPutRequest.js +0 -33
- package/src/models/WaasConfidentialSeedPutRequest.js.map +0 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -58,6 +58,8 @@ require('../models/ChainEnum.cjs');
|
|
|
58
58
|
var BusinessAccountGovernanceResponse = require('../models/BusinessAccountGovernanceResponse.cjs');
|
|
59
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
60
60
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
61
|
+
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
62
|
+
require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
61
63
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
62
64
|
var BusinessAccountMutationVersion = require('../models/BusinessAccountMutationVersion.cjs');
|
|
63
65
|
var BusinessAccountProposal = require('../models/BusinessAccountProposal.cjs');
|
|
@@ -325,7 +327,6 @@ var VerifyResponse = require('../models/VerifyResponse.cjs');
|
|
|
325
327
|
var VerifyUnlinkRequest = require('../models/VerifyUnlinkRequest.cjs');
|
|
326
328
|
require('../models/WaasBroadcastStatus.cjs');
|
|
327
329
|
var WaasConfidentialSeedCreateRequest = require('../models/WaasConfidentialSeedCreateRequest.cjs');
|
|
328
|
-
var WaasConfidentialSeedPutRequest = require('../models/WaasConfidentialSeedPutRequest.cjs');
|
|
329
330
|
var WaasConfidentialSeedResponse = require('../models/WaasConfidentialSeedResponse.cjs');
|
|
330
331
|
require('../models/WaasConfidentialTransferOperation.cjs');
|
|
331
332
|
require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
|
|
@@ -7994,47 +7995,6 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
7994
7995
|
async publishEvent(requestParameters, initOverrides) {
|
|
7995
7996
|
await this.publishEventRaw(requestParameters, initOverrides);
|
|
7996
7997
|
}
|
|
7997
|
-
/**
|
|
7998
|
-
* 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.
|
|
7999
|
-
* Store a Solana confidential-transfer seed
|
|
8000
|
-
*/
|
|
8001
|
-
async putWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
8002
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8003
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8004
|
-
}
|
|
8005
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8006
|
-
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8007
|
-
}
|
|
8008
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
8009
|
-
throw new runtime.RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeed.');
|
|
8010
|
-
}
|
|
8011
|
-
const queryParameters = {};
|
|
8012
|
-
const headerParameters = {};
|
|
8013
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8014
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
8015
|
-
const token = this.configuration.accessToken;
|
|
8016
|
-
const tokenString = await token("bearerAuth", []);
|
|
8017
|
-
if (tokenString) {
|
|
8018
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8019
|
-
}
|
|
8020
|
-
}
|
|
8021
|
-
const response = await this.request({
|
|
8022
|
-
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8023
|
-
method: 'PUT',
|
|
8024
|
-
headers: headerParameters,
|
|
8025
|
-
query: queryParameters,
|
|
8026
|
-
body: WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
8027
|
-
}, initOverrides);
|
|
8028
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
8029
|
-
}
|
|
8030
|
-
/**
|
|
8031
|
-
* 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.
|
|
8032
|
-
* Store a Solana confidential-transfer seed
|
|
8033
|
-
*/
|
|
8034
|
-
async putWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
8035
|
-
const response = await this.putWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
8036
|
-
return await response.value();
|
|
8037
|
-
}
|
|
8038
7998
|
/**
|
|
8039
7999
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
8040
8000
|
* Get a quote for a checkout transaction
|
|
@@ -9343,7 +9303,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9343
9303
|
query: queryParameters,
|
|
9344
9304
|
body: AddBusinessAccountMemberSdkRequest.AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
9345
9305
|
}, initOverrides);
|
|
9346
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
9306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberCreationResult.BusinessAccountMemberCreationResultFromJSON(jsonValue));
|
|
9347
9307
|
}
|
|
9348
9308
|
/**
|
|
9349
9309
|
* 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.
|
|
@@ -11618,7 +11578,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11618
11578
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11619
11579
|
}
|
|
11620
11580
|
/**
|
|
11621
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11581
|
+
* 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.
|
|
11622
11582
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11623
11583
|
*/
|
|
11624
11584
|
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
@@ -11651,7 +11611,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11651
11611
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11652
11612
|
}
|
|
11653
11613
|
/**
|
|
11654
|
-
* Second half of the confidential-transfer flow. Provisions one MPC signing room
|
|
11614
|
+
* 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.
|
|
11655
11615
|
* Co-sign enclave-built confidential-transfer transactions
|
|
11656
11616
|
*/
|
|
11657
11617
|
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|