@dynamic-labs/sdk-api-core 0.154.0 → 0.156.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 +135 -1
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +56 -1
- package/src/apis/SDKApi.js +135 -1
- package/src/apis/SDKApi.js.map +1 -1
- package/src/index.cjs +8 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/models/BusinessAccountMemberInviteListResponse.cjs +33 -0
- package/src/models/BusinessAccountMemberInviteListResponse.cjs.map +1 -0
- package/src/models/BusinessAccountMemberInviteListResponse.d.ts +28 -0
- package/src/models/BusinessAccountMemberInviteListResponse.js +27 -0
- package/src/models/BusinessAccountMemberInviteListResponse.js.map +1 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.cjs +37 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.cjs.map +1 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.d.ts +43 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.js +31 -0
- package/src/models/CancelBusinessAccountMemberInviteSdkRequest.js.map +1 -0
- package/src/models/index.d.ts +2 -0
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -62,7 +62,8 @@ require('../models/BusinessAccountInvite.cjs');
|
|
|
62
62
|
var BusinessAccountInviteListResponse = require('../models/BusinessAccountInviteListResponse.cjs');
|
|
63
63
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
64
64
|
var BusinessAccountMemberCreationResult = require('../models/BusinessAccountMemberCreationResult.cjs');
|
|
65
|
-
require('../models/
|
|
65
|
+
var BusinessAccountMemberInviteListResponse = require('../models/BusinessAccountMemberInviteListResponse.cjs');
|
|
66
|
+
var BusinessAccountMemberInviteReceipt = require('../models/BusinessAccountMemberInviteReceipt.cjs');
|
|
66
67
|
require('../models/BusinessAccountMemberRole.cjs');
|
|
67
68
|
var BusinessAccountMutationVersion = require('../models/BusinessAccountMutationVersion.cjs');
|
|
68
69
|
var BusinessAccountProposal = require('../models/BusinessAccountProposal.cjs');
|
|
@@ -72,6 +73,7 @@ require('../models/BusinessAccountRoleDefinition.cjs');
|
|
|
72
73
|
var BusinessAccountRolesResponse = require('../models/BusinessAccountRolesResponse.cjs');
|
|
73
74
|
var BusinessAccountSigningProposal = require('../models/BusinessAccountSigningProposal.cjs');
|
|
74
75
|
require('../models/SignMessageApprovalQuorumIntent.cjs');
|
|
76
|
+
var CancelBusinessAccountMemberInviteSdkRequest = require('../models/CancelBusinessAccountMemberInviteSdkRequest.cjs');
|
|
75
77
|
require('../models/CaptchaProviderEnum.cjs');
|
|
76
78
|
require('../models/DestinationTypeEnum.cjs');
|
|
77
79
|
require('../models/CheckoutModeEnum.cjs');
|
|
@@ -9873,6 +9875,61 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9873
9875
|
async sdkBusinessAccountMemberByUserOptions(requestParameters, initOverrides) {
|
|
9874
9876
|
await this.sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides);
|
|
9875
9877
|
}
|
|
9878
|
+
/**
|
|
9879
|
+
* Options call for this endpoint
|
|
9880
|
+
*/
|
|
9881
|
+
async sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides) {
|
|
9882
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9883
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
9884
|
+
}
|
|
9885
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9886
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
9887
|
+
}
|
|
9888
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
9889
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkBusinessAccountMemberInviteOptions.');
|
|
9890
|
+
}
|
|
9891
|
+
const queryParameters = {};
|
|
9892
|
+
const headerParameters = {};
|
|
9893
|
+
const response = await this.request({
|
|
9894
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites/{inviteId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
9895
|
+
method: 'OPTIONS',
|
|
9896
|
+
headers: headerParameters,
|
|
9897
|
+
query: queryParameters,
|
|
9898
|
+
}, initOverrides);
|
|
9899
|
+
return new runtime.VoidApiResponse(response);
|
|
9900
|
+
}
|
|
9901
|
+
/**
|
|
9902
|
+
* Options call for this endpoint
|
|
9903
|
+
*/
|
|
9904
|
+
async sdkBusinessAccountMemberInviteOptions(requestParameters, initOverrides) {
|
|
9905
|
+
await this.sdkBusinessAccountMemberInviteOptionsRaw(requestParameters, initOverrides);
|
|
9906
|
+
}
|
|
9907
|
+
/**
|
|
9908
|
+
* Options call for this endpoint
|
|
9909
|
+
*/
|
|
9910
|
+
async sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides) {
|
|
9911
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9912
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
9913
|
+
}
|
|
9914
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9915
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberInvitesOptions.');
|
|
9916
|
+
}
|
|
9917
|
+
const queryParameters = {};
|
|
9918
|
+
const headerParameters = {};
|
|
9919
|
+
const response = await this.request({
|
|
9920
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9921
|
+
method: 'OPTIONS',
|
|
9922
|
+
headers: headerParameters,
|
|
9923
|
+
query: queryParameters,
|
|
9924
|
+
}, initOverrides);
|
|
9925
|
+
return new runtime.VoidApiResponse(response);
|
|
9926
|
+
}
|
|
9927
|
+
/**
|
|
9928
|
+
* Options call for this endpoint
|
|
9929
|
+
*/
|
|
9930
|
+
async sdkBusinessAccountMemberInvitesOptions(requestParameters, initOverrides) {
|
|
9931
|
+
await this.sdkBusinessAccountMemberInvitesOptionsRaw(requestParameters, initOverrides);
|
|
9932
|
+
}
|
|
9876
9933
|
/**
|
|
9877
9934
|
* Options call for this endpoint
|
|
9878
9935
|
*/
|
|
@@ -10313,6 +10370,47 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10313
10370
|
async sdkBusinessAccountsOptions(requestParameters, initOverrides) {
|
|
10314
10371
|
await this.sdkBusinessAccountsOptionsRaw(requestParameters, initOverrides);
|
|
10315
10372
|
}
|
|
10373
|
+
/**
|
|
10374
|
+
* Cancels an unaccepted member invitation. The caller must be authorized to remove members. When member removal requires approvals, this endpoint returns the same intent and proposal workflow used by other governed business account mutations. Repeating a completed cancellation is safe.
|
|
10375
|
+
* SDK — cancel a pending business account member invite
|
|
10376
|
+
*/
|
|
10377
|
+
async sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides) {
|
|
10378
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10379
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10380
|
+
}
|
|
10381
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10382
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10383
|
+
}
|
|
10384
|
+
if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
|
|
10385
|
+
throw new runtime.RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling sdkCancelBusinessAccountMemberInvite.');
|
|
10386
|
+
}
|
|
10387
|
+
const queryParameters = {};
|
|
10388
|
+
const headerParameters = {};
|
|
10389
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10390
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10391
|
+
const token = this.configuration.accessToken;
|
|
10392
|
+
const tokenString = await token("bearerAuth", []);
|
|
10393
|
+
if (tokenString) {
|
|
10394
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10395
|
+
}
|
|
10396
|
+
}
|
|
10397
|
+
const response = await this.request({
|
|
10398
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites/{inviteId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
|
|
10399
|
+
method: 'DELETE',
|
|
10400
|
+
headers: headerParameters,
|
|
10401
|
+
query: queryParameters,
|
|
10402
|
+
body: CancelBusinessAccountMemberInviteSdkRequest.CancelBusinessAccountMemberInviteSdkRequestToJSON(requestParameters.cancelBusinessAccountMemberInviteSdkRequest),
|
|
10403
|
+
}, initOverrides);
|
|
10404
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteReceipt.BusinessAccountMemberInviteReceiptFromJSON(jsonValue));
|
|
10405
|
+
}
|
|
10406
|
+
/**
|
|
10407
|
+
* Cancels an unaccepted member invitation. The caller must be authorized to remove members. When member removal requires approvals, this endpoint returns the same intent and proposal workflow used by other governed business account mutations. Repeating a completed cancellation is safe.
|
|
10408
|
+
* SDK — cancel a pending business account member invite
|
|
10409
|
+
*/
|
|
10410
|
+
async sdkCancelBusinessAccountMemberInvite(requestParameters, initOverrides) {
|
|
10411
|
+
const response = await this.sdkCancelBusinessAccountMemberInviteRaw(requestParameters, initOverrides);
|
|
10412
|
+
return await response.value();
|
|
10413
|
+
}
|
|
10316
10414
|
/**
|
|
10317
10415
|
* Create a business account from the SDK. The authenticated JWT user becomes the first `owner` member. Gated by the `enable-business-accounts` feature flag.
|
|
10318
10416
|
* SDK — create a business account
|
|
@@ -10818,6 +10916,42 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10818
10916
|
const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
|
|
10819
10917
|
return await response.value();
|
|
10820
10918
|
}
|
|
10919
|
+
/**
|
|
10920
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
10921
|
+
* SDK — list pending business account member invites
|
|
10922
|
+
*/
|
|
10923
|
+
async sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides) {
|
|
10924
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10925
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
10926
|
+
}
|
|
10927
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10928
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountMemberInvites.');
|
|
10929
|
+
}
|
|
10930
|
+
const queryParameters = {};
|
|
10931
|
+
const headerParameters = {};
|
|
10932
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10933
|
+
const token = this.configuration.accessToken;
|
|
10934
|
+
const tokenString = await token("bearerAuth", []);
|
|
10935
|
+
if (tokenString) {
|
|
10936
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10937
|
+
}
|
|
10938
|
+
}
|
|
10939
|
+
const response = await this.request({
|
|
10940
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10941
|
+
method: 'GET',
|
|
10942
|
+
headers: headerParameters,
|
|
10943
|
+
query: queryParameters,
|
|
10944
|
+
}, initOverrides);
|
|
10945
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMemberInviteListResponse.BusinessAccountMemberInviteListResponseFromJSON(jsonValue));
|
|
10946
|
+
}
|
|
10947
|
+
/**
|
|
10948
|
+
* Lists outstanding invitations for a business account. The caller must be authorized to remove members. Internal invitee user IDs are omitted.
|
|
10949
|
+
* SDK — list pending business account member invites
|
|
10950
|
+
*/
|
|
10951
|
+
async sdkListBusinessAccountMemberInvites(requestParameters, initOverrides) {
|
|
10952
|
+
const response = await this.sdkListBusinessAccountMemberInvitesRaw(requestParameters, initOverrides);
|
|
10953
|
+
return await response.value();
|
|
10954
|
+
}
|
|
10821
10955
|
/**
|
|
10822
10956
|
* Every proposal for the account, newest first. Any member may read them: knowing what is pending is what lets an approver act, and the list carries no signing material — only who has already consented.
|
|
10823
10957
|
* SDK — list the governed mutations awaiting approval
|