@dynamic-labs/sdk-api 0.0.1060 → 0.0.1062
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 +3 -1
- package/src/apis/AdminActionsApi.js +3 -1
- package/src/apis/AllowlistsApi.cjs +3 -1
- package/src/apis/AllowlistsApi.js +3 -1
- package/src/apis/AnalyticsApi.cjs +3 -1
- package/src/apis/AnalyticsApi.js +3 -1
- package/src/apis/AuthorizedClientsApi.cjs +3 -1
- package/src/apis/AuthorizedClientsApi.js +3 -1
- package/src/apis/CaptchaApi.cjs +3 -1
- package/src/apis/CaptchaApi.js +3 -1
- package/src/apis/ChainalysisApi.cjs +3 -1
- package/src/apis/ChainalysisApi.js +3 -1
- package/src/apis/ChainsApi.cjs +3 -1
- package/src/apis/ChainsApi.js +3 -1
- package/src/apis/CheckoutApi.cjs +3 -1
- package/src/apis/CheckoutApi.js +3 -1
- package/src/apis/ClientGrantApi.cjs +3 -1
- package/src/apis/ClientGrantApi.js +3 -1
- package/src/apis/CustomFieldsApi.cjs +3 -1
- package/src/apis/CustomFieldsApi.js +3 -1
- package/src/apis/CustomHostnamesApi.cjs +3 -1
- package/src/apis/CustomHostnamesApi.js +3 -1
- package/src/apis/CustomNetworksApi.cjs +3 -1
- package/src/apis/CustomNetworksApi.js +3 -1
- package/src/apis/DeeplinkUrlsApi.cjs +3 -1
- package/src/apis/DeeplinkUrlsApi.js +3 -1
- package/src/apis/EnvironmentsApi.cjs +3 -1
- package/src/apis/EnvironmentsApi.js +3 -1
- package/src/apis/EventsApi.cjs +3 -1
- package/src/apis/EventsApi.js +3 -1
- package/src/apis/ExchangesApi.cjs +3 -1
- package/src/apis/ExchangesApi.js +3 -1
- package/src/apis/ExportsApi.cjs +3 -1
- package/src/apis/ExportsApi.js +3 -1
- package/src/apis/ExternalJwtApi.cjs +3 -1
- package/src/apis/ExternalJwtApi.js +3 -1
- package/src/apis/FlowAnalyticsApi.cjs +3 -1
- package/src/apis/FlowAnalyticsApi.js +3 -1
- package/src/apis/GatesApi.cjs +3 -1
- package/src/apis/GatesApi.js +3 -1
- package/src/apis/GlobalWalletAccessControlApi.cjs +3 -1
- package/src/apis/GlobalWalletAccessControlApi.js +3 -1
- package/src/apis/GlobalWalletConnectionsApi.cjs +3 -1
- package/src/apis/GlobalWalletConnectionsApi.js +3 -1
- package/src/apis/GlobalWalletsApi.cjs +3 -1
- package/src/apis/GlobalWalletsApi.js +3 -1
- package/src/apis/InvitesApi.cjs +3 -1
- package/src/apis/InvitesApi.js +3 -1
- package/src/apis/MembersApi.cjs +3 -1
- package/src/apis/MembersApi.js +3 -1
- package/src/apis/MfaSettingsApi.cjs +3 -1
- package/src/apis/MfaSettingsApi.js +3 -1
- package/src/apis/NameServicesApi.cjs +3 -1
- package/src/apis/NameServicesApi.js +3 -1
- package/src/apis/OrganizationSettingsApi.cjs +3 -1
- package/src/apis/OrganizationSettingsApi.js +3 -1
- package/src/apis/OrganizationsApi.cjs +3 -1
- package/src/apis/OrganizationsApi.js +3 -1
- package/src/apis/OriginsApi.cjs +3 -1
- package/src/apis/OriginsApi.js +3 -1
- package/src/apis/ProjectsApi.cjs +3 -1
- package/src/apis/ProjectsApi.js +3 -1
- package/src/apis/ProvidersApi.cjs +3 -1
- package/src/apis/ProvidersApi.js +3 -1
- package/src/apis/SDKApi.cjs +301 -0
- package/src/apis/SDKApi.d.ts +119 -1
- package/src/apis/SDKApi.js +301 -0
- package/src/apis/SDKViewsApi.cjs +3 -1
- package/src/apis/SDKViewsApi.js +3 -1
- package/src/apis/SessionsApi.cjs +3 -1
- package/src/apis/SessionsApi.js +3 -1
- package/src/apis/TestAccountApi.cjs +3 -1
- package/src/apis/TestAccountApi.js +3 -1
- package/src/apis/TokensApi.cjs +3 -1
- package/src/apis/TokensApi.js +3 -1
- package/src/apis/UserApiTokensApi.cjs +3 -1
- package/src/apis/UserApiTokensApi.js +3 -1
- package/src/apis/UsersApi.cjs +3 -1
- package/src/apis/UsersApi.js +3 -1
- package/src/apis/VisitsApi.cjs +3 -1
- package/src/apis/VisitsApi.js +3 -1
- package/src/apis/WaasApi.cjs +3 -1
- package/src/apis/WaasApi.js +3 -1
- package/src/apis/WalletConnectApi.cjs +3 -1
- package/src/apis/WalletConnectApi.js +3 -1
- package/src/apis/WalletsApi.cjs +3 -1
- package/src/apis/WalletsApi.js +3 -1
- package/src/apis/WebhooksApi.cjs +3 -1
- package/src/apis/WebhooksApi.js +3 -1
- package/src/index.cjs +60 -0
- package/src/index.js +13 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountMemberSdkRequest.js +35 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +41 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +47 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +35 -0
- package/src/models/BusinessAccount.cjs +45 -0
- package/src/models/BusinessAccount.d.ts +63 -0
- package/src/models/BusinessAccount.js +39 -0
- package/src/models/BusinessAccountDetail.cjs +51 -0
- package/src/models/BusinessAccountDetail.d.ts +77 -0
- package/src/models/BusinessAccountDetail.js +45 -0
- package/src/models/BusinessAccountDetailAllOf.cjs +36 -0
- package/src/models/BusinessAccountDetailAllOf.d.ts +35 -0
- package/src/models/BusinessAccountDetailAllOf.js +30 -0
- package/src/models/BusinessAccountList.cjs +36 -0
- package/src/models/BusinessAccountList.d.ts +34 -0
- package/src/models/BusinessAccountList.js +30 -0
- package/src/models/BusinessAccountMember.cjs +44 -0
- package/src/models/BusinessAccountMember.d.ts +58 -0
- package/src/models/BusinessAccountMember.js +38 -0
- package/src/models/BusinessAccountMemberRole.cjs +41 -0
- package/src/models/BusinessAccountMemberRole.d.ts +24 -0
- package/src/models/BusinessAccountMemberRole.js +35 -0
- package/src/models/BusinessAccountSigner.cjs +54 -0
- package/src/models/BusinessAccountSigner.d.ts +88 -0
- package/src/models/BusinessAccountSigner.js +48 -0
- package/src/models/BusinessAccountSignerType.cjs +40 -0
- package/src/models/BusinessAccountSignerType.d.ts +23 -0
- package/src/models/BusinessAccountSignerType.js +34 -0
- package/src/models/CreateBusinessAccountSdkRequest.cjs +37 -0
- package/src/models/CreateBusinessAccountSdkRequest.d.ts +39 -0
- package/src/models/CreateBusinessAccountSdkRequest.js +31 -0
- package/src/models/FeeRecipientConfig.cjs +45 -0
- package/src/models/FeeRecipientConfig.d.ts +33 -0
- package/src/models/FeeRecipientConfig.js +39 -0
- package/src/models/FlowCreateRequest.cjs +3 -0
- package/src/models/FlowCreateRequest.d.ts +7 -0
- package/src/models/FlowCreateRequest.js +3 -0
- package/src/models/FlowFeeConfig.cjs +33 -0
- package/src/models/FlowFeeConfig.d.ts +28 -0
- package/src/models/FlowFeeConfig.js +27 -0
- package/src/models/index.d.ts +13 -0
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
require('../models/AccessOutcomeEnum.cjs');
|
|
7
7
|
var Account = require('../models/Account.cjs');
|
|
8
|
+
var AddBusinessAccountMemberSdkRequest = require('../models/AddBusinessAccountMemberSdkRequest.cjs');
|
|
9
|
+
var AddBusinessAccountSignerSdkRequest = require('../models/AddBusinessAccountSignerSdkRequest.cjs');
|
|
8
10
|
require('../models/AdminActionRequestStatus.cjs');
|
|
9
11
|
require('../models/AdminActionResponseDecision.cjs');
|
|
10
12
|
require('../models/AdminActionType.cjs');
|
|
@@ -49,6 +51,13 @@ require('../models/UnprocessableEntityErrorCode.cjs');
|
|
|
49
51
|
require('../models/ChainEnum.cjs');
|
|
50
52
|
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
51
53
|
var MFADevice = require('../models/MFADevice.cjs');
|
|
54
|
+
var BusinessAccount = require('../models/BusinessAccount.cjs');
|
|
55
|
+
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
56
|
+
var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
|
|
57
|
+
var BusinessAccountSigner = require('../models/BusinessAccountSigner.cjs');
|
|
58
|
+
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
59
|
+
require('../models/BusinessAccountMemberRole.cjs');
|
|
60
|
+
require('../models/BusinessAccountSignerType.cjs');
|
|
52
61
|
require('../models/CaptchaProviderEnum.cjs');
|
|
53
62
|
require('../models/DestinationTypeEnum.cjs');
|
|
54
63
|
require('../models/CheckoutModeEnum.cjs');
|
|
@@ -67,6 +76,7 @@ require('../models/CoinbaseOnrampOrderPaymentLinkType.cjs');
|
|
|
67
76
|
var CoinbaseOnrampOrderResponse = require('../models/CoinbaseOnrampOrderResponse.cjs');
|
|
68
77
|
var CompletePasskeyRecoveryRequest = require('../models/CompletePasskeyRecoveryRequest.cjs');
|
|
69
78
|
var ConnectRequest = require('../models/ConnectRequest.cjs');
|
|
79
|
+
var CreateBusinessAccountSdkRequest = require('../models/CreateBusinessAccountSdkRequest.cjs');
|
|
70
80
|
require('../models/EmbeddedWalletChainEnum.cjs');
|
|
71
81
|
require('../models/EmbeddedWalletProviderEnum.cjs');
|
|
72
82
|
var CreateEmbeddedWalletsRequest = require('../models/CreateEmbeddedWalletsRequest.cjs');
|
|
@@ -8368,6 +8378,297 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8368
8378
|
async scanUrlOptions(requestParameters, initOverrides) {
|
|
8369
8379
|
await this.scanUrlOptionsRaw(requestParameters, initOverrides);
|
|
8370
8380
|
}
|
|
8381
|
+
/**
|
|
8382
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8383
|
+
* SDK — add a member to a business account
|
|
8384
|
+
*/
|
|
8385
|
+
async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
8386
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8387
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkAddBusinessAccountMember.');
|
|
8388
|
+
}
|
|
8389
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8390
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkAddBusinessAccountMember.');
|
|
8391
|
+
}
|
|
8392
|
+
if (requestParameters.addBusinessAccountMemberSdkRequest === null || requestParameters.addBusinessAccountMemberSdkRequest === undefined) {
|
|
8393
|
+
throw new runtime.RequiredError('addBusinessAccountMemberSdkRequest', 'Required parameter requestParameters.addBusinessAccountMemberSdkRequest was null or undefined when calling sdkAddBusinessAccountMember.');
|
|
8394
|
+
}
|
|
8395
|
+
const queryParameters = {};
|
|
8396
|
+
const headerParameters = {};
|
|
8397
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8399
|
+
const token = this.configuration.accessToken;
|
|
8400
|
+
const tokenString = await token("bearerAuth", []);
|
|
8401
|
+
if (tokenString) {
|
|
8402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8403
|
+
}
|
|
8404
|
+
}
|
|
8405
|
+
const response = await this.request({
|
|
8406
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8407
|
+
method: 'POST',
|
|
8408
|
+
headers: headerParameters,
|
|
8409
|
+
query: queryParameters,
|
|
8410
|
+
body: AddBusinessAccountMemberSdkRequest.AddBusinessAccountMemberSdkRequestToJSON(requestParameters.addBusinessAccountMemberSdkRequest),
|
|
8411
|
+
}, initOverrides);
|
|
8412
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMember.BusinessAccountMemberFromJSON(jsonValue));
|
|
8413
|
+
}
|
|
8414
|
+
/**
|
|
8415
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8416
|
+
* SDK — add a member to a business account
|
|
8417
|
+
*/
|
|
8418
|
+
async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
|
|
8419
|
+
const response = await this.sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides);
|
|
8420
|
+
return await response.value();
|
|
8421
|
+
}
|
|
8422
|
+
/**
|
|
8423
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8424
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
8425
|
+
*/
|
|
8426
|
+
async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8427
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8428
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8429
|
+
}
|
|
8430
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8431
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8432
|
+
}
|
|
8433
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8434
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8435
|
+
}
|
|
8436
|
+
if (requestParameters.addBusinessAccountSignerSdkRequest === null || requestParameters.addBusinessAccountSignerSdkRequest === undefined) {
|
|
8437
|
+
throw new runtime.RequiredError('addBusinessAccountSignerSdkRequest', 'Required parameter requestParameters.addBusinessAccountSignerSdkRequest was null or undefined when calling sdkAddBusinessAccountSigner.');
|
|
8438
|
+
}
|
|
8439
|
+
const queryParameters = {};
|
|
8440
|
+
const headerParameters = {};
|
|
8441
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8442
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8443
|
+
const token = this.configuration.accessToken;
|
|
8444
|
+
const tokenString = await token("bearerAuth", []);
|
|
8445
|
+
if (tokenString) {
|
|
8446
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8447
|
+
}
|
|
8448
|
+
}
|
|
8449
|
+
const response = await this.request({
|
|
8450
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8451
|
+
method: 'POST',
|
|
8452
|
+
headers: headerParameters,
|
|
8453
|
+
query: queryParameters,
|
|
8454
|
+
body: AddBusinessAccountSignerSdkRequest.AddBusinessAccountSignerSdkRequestToJSON(requestParameters.addBusinessAccountSignerSdkRequest),
|
|
8455
|
+
}, initOverrides);
|
|
8456
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountSigner.BusinessAccountSignerFromJSON(jsonValue));
|
|
8457
|
+
}
|
|
8458
|
+
/**
|
|
8459
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8460
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
8461
|
+
*/
|
|
8462
|
+
async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8463
|
+
const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8464
|
+
return await response.value();
|
|
8465
|
+
}
|
|
8466
|
+
/**
|
|
8467
|
+
* Options call for this endpoint
|
|
8468
|
+
*/
|
|
8469
|
+
async sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides) {
|
|
8470
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8471
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountByIdOptions.');
|
|
8472
|
+
}
|
|
8473
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8474
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountByIdOptions.');
|
|
8475
|
+
}
|
|
8476
|
+
const queryParameters = {};
|
|
8477
|
+
const headerParameters = {};
|
|
8478
|
+
const response = await this.request({
|
|
8479
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8480
|
+
method: 'OPTIONS',
|
|
8481
|
+
headers: headerParameters,
|
|
8482
|
+
query: queryParameters,
|
|
8483
|
+
}, initOverrides);
|
|
8484
|
+
return new runtime.VoidApiResponse(response);
|
|
8485
|
+
}
|
|
8486
|
+
/**
|
|
8487
|
+
* Options call for this endpoint
|
|
8488
|
+
*/
|
|
8489
|
+
async sdkBusinessAccountByIdOptions(requestParameters, initOverrides) {
|
|
8490
|
+
await this.sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides);
|
|
8491
|
+
}
|
|
8492
|
+
/**
|
|
8493
|
+
* Options call for this endpoint
|
|
8494
|
+
*/
|
|
8495
|
+
async sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides) {
|
|
8496
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8497
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMembersOptions.');
|
|
8498
|
+
}
|
|
8499
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8500
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMembersOptions.');
|
|
8501
|
+
}
|
|
8502
|
+
const queryParameters = {};
|
|
8503
|
+
const headerParameters = {};
|
|
8504
|
+
const response = await this.request({
|
|
8505
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8506
|
+
method: 'OPTIONS',
|
|
8507
|
+
headers: headerParameters,
|
|
8508
|
+
query: queryParameters,
|
|
8509
|
+
}, initOverrides);
|
|
8510
|
+
return new runtime.VoidApiResponse(response);
|
|
8511
|
+
}
|
|
8512
|
+
/**
|
|
8513
|
+
* Options call for this endpoint
|
|
8514
|
+
*/
|
|
8515
|
+
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8516
|
+
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8517
|
+
}
|
|
8518
|
+
/**
|
|
8519
|
+
* Options call for this endpoint
|
|
8520
|
+
*/
|
|
8521
|
+
async sdkBusinessAccountWalletSignersOptionsRaw(requestParameters, initOverrides) {
|
|
8522
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8523
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignersOptions.');
|
|
8524
|
+
}
|
|
8525
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8526
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignersOptions.');
|
|
8527
|
+
}
|
|
8528
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8529
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignersOptions.');
|
|
8530
|
+
}
|
|
8531
|
+
const queryParameters = {};
|
|
8532
|
+
const headerParameters = {};
|
|
8533
|
+
const response = await this.request({
|
|
8534
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8535
|
+
method: 'OPTIONS',
|
|
8536
|
+
headers: headerParameters,
|
|
8537
|
+
query: queryParameters,
|
|
8538
|
+
}, initOverrides);
|
|
8539
|
+
return new runtime.VoidApiResponse(response);
|
|
8540
|
+
}
|
|
8541
|
+
/**
|
|
8542
|
+
* Options call for this endpoint
|
|
8543
|
+
*/
|
|
8544
|
+
async sdkBusinessAccountWalletSignersOptions(requestParameters, initOverrides) {
|
|
8545
|
+
await this.sdkBusinessAccountWalletSignersOptionsRaw(requestParameters, initOverrides);
|
|
8546
|
+
}
|
|
8547
|
+
/**
|
|
8548
|
+
* Options call for this endpoint
|
|
8549
|
+
*/
|
|
8550
|
+
async sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides) {
|
|
8551
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8552
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountsOptions.');
|
|
8553
|
+
}
|
|
8554
|
+
const queryParameters = {};
|
|
8555
|
+
const headerParameters = {};
|
|
8556
|
+
const response = await this.request({
|
|
8557
|
+
path: `/sdk/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8558
|
+
method: 'OPTIONS',
|
|
8559
|
+
headers: headerParameters,
|
|
8560
|
+
query: queryParameters,
|
|
8561
|
+
}, initOverrides);
|
|
8562
|
+
return new runtime.VoidApiResponse(response);
|
|
8563
|
+
}
|
|
8564
|
+
/**
|
|
8565
|
+
* Options call for this endpoint
|
|
8566
|
+
*/
|
|
8567
|
+
async sdkBusinessAccountsOptions(requestParameters, initOverrides) {
|
|
8568
|
+
await this.sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides);
|
|
8569
|
+
}
|
|
8570
|
+
/**
|
|
8571
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
8572
|
+
* SDK — create a business account
|
|
8573
|
+
*/
|
|
8574
|
+
async sdkCreateBusinessAccountRaw(requestParameters, initOverrides) {
|
|
8575
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8576
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCreateBusinessAccount.');
|
|
8577
|
+
}
|
|
8578
|
+
const queryParameters = {};
|
|
8579
|
+
const headerParameters = {};
|
|
8580
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8581
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8582
|
+
const token = this.configuration.accessToken;
|
|
8583
|
+
const tokenString = await token("bearerAuth", []);
|
|
8584
|
+
if (tokenString) {
|
|
8585
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8586
|
+
}
|
|
8587
|
+
}
|
|
8588
|
+
const response = await this.request({
|
|
8589
|
+
path: `/sdk/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8590
|
+
method: 'POST',
|
|
8591
|
+
headers: headerParameters,
|
|
8592
|
+
query: queryParameters,
|
|
8593
|
+
body: CreateBusinessAccountSdkRequest.CreateBusinessAccountSdkRequestToJSON(requestParameters.createBusinessAccountSdkRequest),
|
|
8594
|
+
}, initOverrides);
|
|
8595
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccount.BusinessAccountFromJSON(jsonValue));
|
|
8596
|
+
}
|
|
8597
|
+
/**
|
|
8598
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
8599
|
+
* SDK — create a business account
|
|
8600
|
+
*/
|
|
8601
|
+
async sdkCreateBusinessAccount(requestParameters, initOverrides) {
|
|
8602
|
+
const response = await this.sdkCreateBusinessAccountRaw(requestParameters, initOverrides);
|
|
8603
|
+
return await response.value();
|
|
8604
|
+
}
|
|
8605
|
+
/**
|
|
8606
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
8607
|
+
* SDK — get a business account with embedded members and signers
|
|
8608
|
+
*/
|
|
8609
|
+
async sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides) {
|
|
8610
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8611
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountById.');
|
|
8612
|
+
}
|
|
8613
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8614
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountById.');
|
|
8615
|
+
}
|
|
8616
|
+
const queryParameters = {};
|
|
8617
|
+
const headerParameters = {};
|
|
8618
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8619
|
+
const token = this.configuration.accessToken;
|
|
8620
|
+
const tokenString = await token("bearerAuth", []);
|
|
8621
|
+
if (tokenString) {
|
|
8622
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8623
|
+
}
|
|
8624
|
+
}
|
|
8625
|
+
const response = await this.request({
|
|
8626
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8627
|
+
method: 'GET',
|
|
8628
|
+
headers: headerParameters,
|
|
8629
|
+
query: queryParameters,
|
|
8630
|
+
}, initOverrides);
|
|
8631
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountDetail.BusinessAccountDetailFromJSON(jsonValue));
|
|
8632
|
+
}
|
|
8633
|
+
/**
|
|
8634
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
8635
|
+
* SDK — get a business account with embedded members and signers
|
|
8636
|
+
*/
|
|
8637
|
+
async sdkGetBusinessAccountById(requestParameters, initOverrides) {
|
|
8638
|
+
const response = await this.sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides);
|
|
8639
|
+
return await response.value();
|
|
8640
|
+
}
|
|
8641
|
+
/**
|
|
8642
|
+
* SDK — list business accounts the caller is a member of
|
|
8643
|
+
*/
|
|
8644
|
+
async sdkListBusinessAccountsRaw(requestParameters, initOverrides) {
|
|
8645
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8646
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccounts.');
|
|
8647
|
+
}
|
|
8648
|
+
const queryParameters = {};
|
|
8649
|
+
const headerParameters = {};
|
|
8650
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8651
|
+
const token = this.configuration.accessToken;
|
|
8652
|
+
const tokenString = await token("bearerAuth", []);
|
|
8653
|
+
if (tokenString) {
|
|
8654
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8655
|
+
}
|
|
8656
|
+
}
|
|
8657
|
+
const response = await this.request({
|
|
8658
|
+
path: `/sdk/{environmentId}/businessAccounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8659
|
+
method: 'GET',
|
|
8660
|
+
headers: headerParameters,
|
|
8661
|
+
query: queryParameters,
|
|
8662
|
+
}, initOverrides);
|
|
8663
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountList.BusinessAccountListFromJSON(jsonValue));
|
|
8664
|
+
}
|
|
8665
|
+
/**
|
|
8666
|
+
* SDK — list business accounts the caller is a member of
|
|
8667
|
+
*/
|
|
8668
|
+
async sdkListBusinessAccounts(requestParameters, initOverrides) {
|
|
8669
|
+
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8670
|
+
return await response.value();
|
|
8671
|
+
}
|
|
8371
8672
|
/**
|
|
8372
8673
|
*/
|
|
8373
8674
|
async sdkSettingsOptionsRaw(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, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, 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, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, 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, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1062,6 +1062,44 @@ export interface ScanUrlRequest {
|
|
|
1062
1062
|
export interface ScanUrlOptionsRequest {
|
|
1063
1063
|
environmentId: string;
|
|
1064
1064
|
}
|
|
1065
|
+
export interface SdkAddBusinessAccountMemberRequest {
|
|
1066
|
+
environmentId: string;
|
|
1067
|
+
businessAccountId: string;
|
|
1068
|
+
addBusinessAccountMemberSdkRequest: AddBusinessAccountMemberSdkRequest;
|
|
1069
|
+
}
|
|
1070
|
+
export interface SdkAddBusinessAccountSignerRequest {
|
|
1071
|
+
environmentId: string;
|
|
1072
|
+
businessAccountId: string;
|
|
1073
|
+
walletId: string;
|
|
1074
|
+
addBusinessAccountSignerSdkRequest: AddBusinessAccountSignerSdkRequest;
|
|
1075
|
+
}
|
|
1076
|
+
export interface SdkBusinessAccountByIdOptionsRequest {
|
|
1077
|
+
environmentId: string;
|
|
1078
|
+
businessAccountId: string;
|
|
1079
|
+
}
|
|
1080
|
+
export interface SdkBusinessAccountMembersOptionsRequest {
|
|
1081
|
+
environmentId: string;
|
|
1082
|
+
businessAccountId: string;
|
|
1083
|
+
}
|
|
1084
|
+
export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
1085
|
+
environmentId: string;
|
|
1086
|
+
businessAccountId: string;
|
|
1087
|
+
walletId: string;
|
|
1088
|
+
}
|
|
1089
|
+
export interface SdkBusinessAccountsOptionsRequest {
|
|
1090
|
+
environmentId: string;
|
|
1091
|
+
}
|
|
1092
|
+
export interface SdkCreateBusinessAccountRequest {
|
|
1093
|
+
environmentId: string;
|
|
1094
|
+
createBusinessAccountSdkRequest?: CreateBusinessAccountSdkRequest;
|
|
1095
|
+
}
|
|
1096
|
+
export interface SdkGetBusinessAccountByIdRequest {
|
|
1097
|
+
environmentId: string;
|
|
1098
|
+
businessAccountId: string;
|
|
1099
|
+
}
|
|
1100
|
+
export interface SdkListBusinessAccountsRequest {
|
|
1101
|
+
environmentId: string;
|
|
1102
|
+
}
|
|
1065
1103
|
export interface SdkSettingsOptionsRequest {
|
|
1066
1104
|
environmentId: string;
|
|
1067
1105
|
}
|
|
@@ -3737,6 +3775,86 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3737
3775
|
* Options call for this endpoint
|
|
3738
3776
|
*/
|
|
3739
3777
|
scanUrlOptions(requestParameters: ScanUrlOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3778
|
+
/**
|
|
3779
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
3780
|
+
* SDK — add a member to a business account
|
|
3781
|
+
*/
|
|
3782
|
+
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
|
|
3783
|
+
/**
|
|
3784
|
+
* Caller must be an owner or admin of the workspace. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
3785
|
+
* SDK — add a member to a business account
|
|
3786
|
+
*/
|
|
3787
|
+
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
|
|
3788
|
+
/**
|
|
3789
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
3790
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
3791
|
+
*/
|
|
3792
|
+
sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountSigner>>;
|
|
3793
|
+
/**
|
|
3794
|
+
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
3795
|
+
* SDK — add a signer to a wallet in a workspace (stubbed)
|
|
3796
|
+
*/
|
|
3797
|
+
sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<BusinessAccountSigner>;
|
|
3798
|
+
/**
|
|
3799
|
+
* Options call for this endpoint
|
|
3800
|
+
*/
|
|
3801
|
+
sdkBusinessAccountByIdOptionsRaw(requestParameters: SdkBusinessAccountByIdOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3802
|
+
/**
|
|
3803
|
+
* Options call for this endpoint
|
|
3804
|
+
*/
|
|
3805
|
+
sdkBusinessAccountByIdOptions(requestParameters: SdkBusinessAccountByIdOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3806
|
+
/**
|
|
3807
|
+
* Options call for this endpoint
|
|
3808
|
+
*/
|
|
3809
|
+
sdkBusinessAccountMembersOptionsRaw(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3810
|
+
/**
|
|
3811
|
+
* Options call for this endpoint
|
|
3812
|
+
*/
|
|
3813
|
+
sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3814
|
+
/**
|
|
3815
|
+
* Options call for this endpoint
|
|
3816
|
+
*/
|
|
3817
|
+
sdkBusinessAccountWalletSignersOptionsRaw(requestParameters: SdkBusinessAccountWalletSignersOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3818
|
+
/**
|
|
3819
|
+
* Options call for this endpoint
|
|
3820
|
+
*/
|
|
3821
|
+
sdkBusinessAccountWalletSignersOptions(requestParameters: SdkBusinessAccountWalletSignersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3822
|
+
/**
|
|
3823
|
+
* Options call for this endpoint
|
|
3824
|
+
*/
|
|
3825
|
+
sdkBusinessAccountsOptionsRaw(requestParameters: SdkBusinessAccountsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3826
|
+
/**
|
|
3827
|
+
* Options call for this endpoint
|
|
3828
|
+
*/
|
|
3829
|
+
sdkBusinessAccountsOptions(requestParameters: SdkBusinessAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3830
|
+
/**
|
|
3831
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
3832
|
+
* SDK — create a business account
|
|
3833
|
+
*/
|
|
3834
|
+
sdkCreateBusinessAccountRaw(requestParameters: SdkCreateBusinessAccountRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccount>>;
|
|
3835
|
+
/**
|
|
3836
|
+
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
3837
|
+
* SDK — create a business account
|
|
3838
|
+
*/
|
|
3839
|
+
sdkCreateBusinessAccount(requestParameters: SdkCreateBusinessAccountRequest, initOverrides?: RequestInit): Promise<BusinessAccount>;
|
|
3840
|
+
/**
|
|
3841
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
3842
|
+
* SDK — get a business account with embedded members and signers
|
|
3843
|
+
*/
|
|
3844
|
+
sdkGetBusinessAccountByIdRaw(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
|
|
3845
|
+
/**
|
|
3846
|
+
* Returns 404 if the caller is not a member of the workspace (404 not 403 so we don\'t leak workspace existence).
|
|
3847
|
+
* SDK — get a business account with embedded members and signers
|
|
3848
|
+
*/
|
|
3849
|
+
sdkGetBusinessAccountById(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
3850
|
+
/**
|
|
3851
|
+
* SDK — list business accounts the caller is a member of
|
|
3852
|
+
*/
|
|
3853
|
+
sdkListBusinessAccountsRaw(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountList>>;
|
|
3854
|
+
/**
|
|
3855
|
+
* SDK — list business accounts the caller is a member of
|
|
3856
|
+
*/
|
|
3857
|
+
sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
3740
3858
|
/**
|
|
3741
3859
|
*/
|
|
3742
3860
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|