@dynamic-labs/sdk-api-core 0.0.1068 → 0.0.1069
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 +62 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +62 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -1
- package/src/apis/WaasApi.js +1 -1
- package/src/index.cjs +4 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +7 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +20 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +7 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js.map +1 -1
- package/src/models/InlineObject5.cjs +35 -0
- package/src/models/InlineObject5.cjs.map +1 -0
- package/src/models/InlineObject5.d.ts +33 -0
- package/src/models/InlineObject5.js +29 -0
- package/src/models/InlineObject5.js.map +1 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -147,6 +147,7 @@ var InlineObject1 = require('../models/InlineObject1.cjs');
|
|
|
147
147
|
var InlineObject2 = require('../models/InlineObject2.cjs');
|
|
148
148
|
var InlineObject3 = require('../models/InlineObject3.cjs');
|
|
149
149
|
var InlineObject4 = require('../models/InlineObject4.cjs');
|
|
150
|
+
var InlineObject5 = require('../models/InlineObject5.cjs');
|
|
150
151
|
var InlineResponse200 = require('../models/InlineResponse200.cjs');
|
|
151
152
|
var InlineResponse2001 = require('../models/InlineResponse2001.cjs');
|
|
152
153
|
var InlineResponse2002 = require('../models/InlineResponse2002.cjs');
|
|
@@ -8384,6 +8385,29 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8384
8385
|
async sdkBusinessAccountByIdOptions(requestParameters, initOverrides) {
|
|
8385
8386
|
await this.sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides);
|
|
8386
8387
|
}
|
|
8388
|
+
/**
|
|
8389
|
+
* Options call for this endpoint
|
|
8390
|
+
*/
|
|
8391
|
+
async sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides) {
|
|
8392
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8393
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountLinkWalletOptions.');
|
|
8394
|
+
}
|
|
8395
|
+
const queryParameters = {};
|
|
8396
|
+
const headerParameters = {};
|
|
8397
|
+
const response = await this.request({
|
|
8398
|
+
path: `/sdk/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8399
|
+
method: 'OPTIONS',
|
|
8400
|
+
headers: headerParameters,
|
|
8401
|
+
query: queryParameters,
|
|
8402
|
+
}, initOverrides);
|
|
8403
|
+
return new runtime.VoidApiResponse(response);
|
|
8404
|
+
}
|
|
8405
|
+
/**
|
|
8406
|
+
* Options call for this endpoint
|
|
8407
|
+
*/
|
|
8408
|
+
async sdkBusinessAccountLinkWalletOptions(requestParameters, initOverrides) {
|
|
8409
|
+
await this.sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides);
|
|
8410
|
+
}
|
|
8387
8411
|
/**
|
|
8388
8412
|
* Options call for this endpoint
|
|
8389
8413
|
*/
|
|
@@ -8533,6 +8557,44 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8533
8557
|
const response = await this.sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides);
|
|
8534
8558
|
return await response.value();
|
|
8535
8559
|
}
|
|
8560
|
+
/**
|
|
8561
|
+
* Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
8562
|
+
* SDK — add an existing wallet to a business account
|
|
8563
|
+
*/
|
|
8564
|
+
async sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides) {
|
|
8565
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8566
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkLinkBusinessAccountWallet.');
|
|
8567
|
+
}
|
|
8568
|
+
if (requestParameters.inlineObject5 === null || requestParameters.inlineObject5 === undefined) {
|
|
8569
|
+
throw new runtime.RequiredError('inlineObject5', 'Required parameter requestParameters.inlineObject5 was null or undefined when calling sdkLinkBusinessAccountWallet.');
|
|
8570
|
+
}
|
|
8571
|
+
const queryParameters = {};
|
|
8572
|
+
const headerParameters = {};
|
|
8573
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8574
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8575
|
+
const token = this.configuration.accessToken;
|
|
8576
|
+
const tokenString = await token("bearerAuth", []);
|
|
8577
|
+
if (tokenString) {
|
|
8578
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8579
|
+
}
|
|
8580
|
+
}
|
|
8581
|
+
const response = await this.request({
|
|
8582
|
+
path: `/sdk/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8583
|
+
method: 'POST',
|
|
8584
|
+
headers: headerParameters,
|
|
8585
|
+
query: queryParameters,
|
|
8586
|
+
body: InlineObject5.InlineObject5ToJSON(requestParameters.inlineObject5),
|
|
8587
|
+
}, initOverrides);
|
|
8588
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountDetail.BusinessAccountDetailFromJSON(jsonValue));
|
|
8589
|
+
}
|
|
8590
|
+
/**
|
|
8591
|
+
* Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
|
|
8592
|
+
* SDK — add an existing wallet to a business account
|
|
8593
|
+
*/
|
|
8594
|
+
async sdkLinkBusinessAccountWallet(requestParameters, initOverrides) {
|
|
8595
|
+
const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
|
|
8596
|
+
return await response.value();
|
|
8597
|
+
}
|
|
8536
8598
|
/**
|
|
8537
8599
|
* SDK — list business accounts the caller is a member of
|
|
8538
8600
|
*/
|