@dynamic-labs/sdk-api-core 0.76.0 → 0.78.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 +282 -4
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +122 -5
- package/src/apis/SDKApi.js +282 -4
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +2 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +2 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +28 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/models/BusinessAccountActionEnum.cjs +64 -0
- package/src/models/BusinessAccountActionEnum.cjs.map +1 -0
- package/src/models/BusinessAccountActionEnum.d.ts +47 -0
- package/src/models/BusinessAccountActionEnum.js +58 -0
- package/src/models/BusinessAccountActionEnum.js.map +1 -0
- package/src/models/BusinessAccountActivityEntry.cjs +46 -0
- package/src/models/BusinessAccountActivityEntry.cjs.map +1 -0
- package/src/models/BusinessAccountActivityEntry.d.ts +64 -0
- package/src/models/BusinessAccountActivityEntry.js +40 -0
- package/src/models/BusinessAccountActivityEntry.js.map +1 -0
- package/src/models/BusinessAccountActivityExport.cjs +53 -0
- package/src/models/BusinessAccountActivityExport.cjs.map +1 -0
- package/src/models/BusinessAccountActivityExport.d.ts +66 -0
- package/src/models/BusinessAccountActivityExport.js +47 -0
- package/src/models/BusinessAccountActivityExport.js.map +1 -0
- package/src/models/BusinessAccountActivityExportRequest.cjs +38 -0
- package/src/models/BusinessAccountActivityExportRequest.cjs.map +1 -0
- package/src/models/BusinessAccountActivityExportRequest.d.ts +40 -0
- package/src/models/BusinessAccountActivityExportRequest.js +32 -0
- package/src/models/BusinessAccountActivityExportRequest.js.map +1 -0
- package/src/models/BusinessAccountActivityResponse.cjs +35 -0
- package/src/models/BusinessAccountActivityResponse.cjs.map +1 -0
- package/src/models/BusinessAccountActivityResponse.d.ts +34 -0
- package/src/models/BusinessAccountActivityResponse.js +29 -0
- package/src/models/BusinessAccountActivityResponse.js.map +1 -0
- package/src/models/index.d.ts +5 -0
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -42,6 +42,10 @@ require('../models/MfaBackupCodeAcknowledgement.cjs');
|
|
|
42
42
|
require('../models/CustomFieldType.cjs');
|
|
43
43
|
require('../models/KycFieldType.cjs');
|
|
44
44
|
var BusinessAccount = require('../models/BusinessAccount.cjs');
|
|
45
|
+
require('../models/BusinessAccountActionEnum.cjs');
|
|
46
|
+
var BusinessAccountActivityExport = require('../models/BusinessAccountActivityExport.cjs');
|
|
47
|
+
var BusinessAccountActivityExportRequest = require('../models/BusinessAccountActivityExportRequest.cjs');
|
|
48
|
+
var BusinessAccountActivityResponse = require('../models/BusinessAccountActivityResponse.cjs');
|
|
45
49
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
46
50
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
47
51
|
var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
@@ -9109,6 +9113,124 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9109
9113
|
const response = await this.sdkApproveBusinessAccountProposalRaw(requestParameters, initOverrides);
|
|
9110
9114
|
return await response.value();
|
|
9111
9115
|
}
|
|
9116
|
+
/**
|
|
9117
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9118
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9119
|
+
*/
|
|
9120
|
+
async sdkBusinessAccountActivityExportDownloadOptionsRaw(requestParameters, initOverrides) {
|
|
9121
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9122
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityExportDownloadOptions.');
|
|
9123
|
+
}
|
|
9124
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9125
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityExportDownloadOptions.');
|
|
9126
|
+
}
|
|
9127
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
9128
|
+
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkBusinessAccountActivityExportDownloadOptions.');
|
|
9129
|
+
}
|
|
9130
|
+
const queryParameters = {};
|
|
9131
|
+
const headerParameters = {};
|
|
9132
|
+
const response = await this.request({
|
|
9133
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports/{exportId}/download`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
9134
|
+
method: 'OPTIONS',
|
|
9135
|
+
headers: headerParameters,
|
|
9136
|
+
query: queryParameters,
|
|
9137
|
+
}, initOverrides);
|
|
9138
|
+
return new runtime.VoidApiResponse(response);
|
|
9139
|
+
}
|
|
9140
|
+
/**
|
|
9141
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9142
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9143
|
+
*/
|
|
9144
|
+
async sdkBusinessAccountActivityExportDownloadOptions(requestParameters, initOverrides) {
|
|
9145
|
+
await this.sdkBusinessAccountActivityExportDownloadOptionsRaw(requestParameters, initOverrides);
|
|
9146
|
+
}
|
|
9147
|
+
/**
|
|
9148
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9149
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9150
|
+
*/
|
|
9151
|
+
async sdkBusinessAccountActivityExportOptionsRaw(requestParameters, initOverrides) {
|
|
9152
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9153
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityExportOptions.');
|
|
9154
|
+
}
|
|
9155
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9156
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityExportOptions.');
|
|
9157
|
+
}
|
|
9158
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
9159
|
+
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkBusinessAccountActivityExportOptions.');
|
|
9160
|
+
}
|
|
9161
|
+
const queryParameters = {};
|
|
9162
|
+
const headerParameters = {};
|
|
9163
|
+
const response = await this.request({
|
|
9164
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports/{exportId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
9165
|
+
method: 'OPTIONS',
|
|
9166
|
+
headers: headerParameters,
|
|
9167
|
+
query: queryParameters,
|
|
9168
|
+
}, initOverrides);
|
|
9169
|
+
return new runtime.VoidApiResponse(response);
|
|
9170
|
+
}
|
|
9171
|
+
/**
|
|
9172
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9173
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9174
|
+
*/
|
|
9175
|
+
async sdkBusinessAccountActivityExportOptions(requestParameters, initOverrides) {
|
|
9176
|
+
await this.sdkBusinessAccountActivityExportOptionsRaw(requestParameters, initOverrides);
|
|
9177
|
+
}
|
|
9178
|
+
/**
|
|
9179
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9180
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9181
|
+
*/
|
|
9182
|
+
async sdkBusinessAccountActivityExportsOptionsRaw(requestParameters, initOverrides) {
|
|
9183
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9184
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityExportsOptions.');
|
|
9185
|
+
}
|
|
9186
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9187
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityExportsOptions.');
|
|
9188
|
+
}
|
|
9189
|
+
const queryParameters = {};
|
|
9190
|
+
const headerParameters = {};
|
|
9191
|
+
const response = await this.request({
|
|
9192
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9193
|
+
method: 'OPTIONS',
|
|
9194
|
+
headers: headerParameters,
|
|
9195
|
+
query: queryParameters,
|
|
9196
|
+
}, initOverrides);
|
|
9197
|
+
return new runtime.VoidApiResponse(response);
|
|
9198
|
+
}
|
|
9199
|
+
/**
|
|
9200
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9201
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9202
|
+
*/
|
|
9203
|
+
async sdkBusinessAccountActivityExportsOptions(requestParameters, initOverrides) {
|
|
9204
|
+
await this.sdkBusinessAccountActivityExportsOptionsRaw(requestParameters, initOverrides);
|
|
9205
|
+
}
|
|
9206
|
+
/**
|
|
9207
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9208
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9209
|
+
*/
|
|
9210
|
+
async sdkBusinessAccountActivityOptionsRaw(requestParameters, initOverrides) {
|
|
9211
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9212
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityOptions.');
|
|
9213
|
+
}
|
|
9214
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9215
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityOptions.');
|
|
9216
|
+
}
|
|
9217
|
+
const queryParameters = {};
|
|
9218
|
+
const headerParameters = {};
|
|
9219
|
+
const response = await this.request({
|
|
9220
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9221
|
+
method: 'OPTIONS',
|
|
9222
|
+
headers: headerParameters,
|
|
9223
|
+
query: queryParameters,
|
|
9224
|
+
}, initOverrides);
|
|
9225
|
+
return new runtime.VoidApiResponse(response);
|
|
9226
|
+
}
|
|
9227
|
+
/**
|
|
9228
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9229
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9230
|
+
*/
|
|
9231
|
+
async sdkBusinessAccountActivityOptions(requestParameters, initOverrides) {
|
|
9232
|
+
await this.sdkBusinessAccountActivityOptionsRaw(requestParameters, initOverrides);
|
|
9233
|
+
}
|
|
9112
9234
|
/**
|
|
9113
9235
|
* Options call for this endpoint
|
|
9114
9236
|
*/
|
|
@@ -9659,6 +9781,44 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9659
9781
|
const response = await this.sdkCreateBusinessAccountRaw(requestParameters, initOverrides);
|
|
9660
9782
|
return await response.value();
|
|
9661
9783
|
}
|
|
9784
|
+
/**
|
|
9785
|
+
* Queues a CSV export of the account\'s activity, optionally filtered by date range and action type. Poll the returned export\'s status, then download it via the download endpoint or its `downloadUrl`. Caller must be an owner or admin member.
|
|
9786
|
+
* SDK — create a CSV export of the business account\'s audit trail
|
|
9787
|
+
*/
|
|
9788
|
+
async sdkCreateBusinessAccountActivityExportRaw(requestParameters, initOverrides) {
|
|
9789
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9790
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCreateBusinessAccountActivityExport.');
|
|
9791
|
+
}
|
|
9792
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9793
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCreateBusinessAccountActivityExport.');
|
|
9794
|
+
}
|
|
9795
|
+
const queryParameters = {};
|
|
9796
|
+
const headerParameters = {};
|
|
9797
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9798
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
9799
|
+
const token = this.configuration.accessToken;
|
|
9800
|
+
const tokenString = await token("bearerAuth", []);
|
|
9801
|
+
if (tokenString) {
|
|
9802
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
9803
|
+
}
|
|
9804
|
+
}
|
|
9805
|
+
const response = await this.request({
|
|
9806
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9807
|
+
method: 'POST',
|
|
9808
|
+
headers: headerParameters,
|
|
9809
|
+
query: queryParameters,
|
|
9810
|
+
body: BusinessAccountActivityExportRequest.BusinessAccountActivityExportRequestToJSON(requestParameters.businessAccountActivityExportRequest),
|
|
9811
|
+
}, initOverrides);
|
|
9812
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountActivityExport.BusinessAccountActivityExportFromJSON(jsonValue));
|
|
9813
|
+
}
|
|
9814
|
+
/**
|
|
9815
|
+
* Queues a CSV export of the account\'s activity, optionally filtered by date range and action type. Poll the returned export\'s status, then download it via the download endpoint or its `downloadUrl`. Caller must be an owner or admin member.
|
|
9816
|
+
* SDK — create a CSV export of the business account\'s audit trail
|
|
9817
|
+
*/
|
|
9818
|
+
async sdkCreateBusinessAccountActivityExport(requestParameters, initOverrides) {
|
|
9819
|
+
const response = await this.sdkCreateBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
9820
|
+
return await response.value();
|
|
9821
|
+
}
|
|
9662
9822
|
/**
|
|
9663
9823
|
* Defines a role that inherits a built-in one. The role lives only in the signed authorization document, so there is no separate role resource. Requires step-up authentication.
|
|
9664
9824
|
* SDK — define a customer role for a business account
|
|
@@ -9741,6 +9901,45 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9741
9901
|
const response = await this.sdkDeleteBusinessAccountRoleRaw(requestParameters, initOverrides);
|
|
9742
9902
|
return await response.value();
|
|
9743
9903
|
}
|
|
9904
|
+
/**
|
|
9905
|
+
* Redirects to a pre-signed S3 URL for the exported CSV.
|
|
9906
|
+
* SDK — download a completed business account activity export
|
|
9907
|
+
*/
|
|
9908
|
+
async sdkDownloadBusinessAccountActivityExportRaw(requestParameters, initOverrides) {
|
|
9909
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9910
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkDownloadBusinessAccountActivityExport.');
|
|
9911
|
+
}
|
|
9912
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9913
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkDownloadBusinessAccountActivityExport.');
|
|
9914
|
+
}
|
|
9915
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
9916
|
+
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkDownloadBusinessAccountActivityExport.');
|
|
9917
|
+
}
|
|
9918
|
+
const queryParameters = {};
|
|
9919
|
+
const headerParameters = {};
|
|
9920
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
9921
|
+
const token = this.configuration.accessToken;
|
|
9922
|
+
const tokenString = await token("bearerAuth", []);
|
|
9923
|
+
if (tokenString) {
|
|
9924
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
9925
|
+
}
|
|
9926
|
+
}
|
|
9927
|
+
const response = await this.request({
|
|
9928
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports/{exportId}/download`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
9929
|
+
method: 'GET',
|
|
9930
|
+
headers: headerParameters,
|
|
9931
|
+
query: queryParameters,
|
|
9932
|
+
}, initOverrides);
|
|
9933
|
+
return new runtime.TextApiResponse(response);
|
|
9934
|
+
}
|
|
9935
|
+
/**
|
|
9936
|
+
* Redirects to a pre-signed S3 URL for the exported CSV.
|
|
9937
|
+
* SDK — download a completed business account activity export
|
|
9938
|
+
*/
|
|
9939
|
+
async sdkDownloadBusinessAccountActivityExport(requestParameters, initOverrides) {
|
|
9940
|
+
const response = await this.sdkDownloadBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
9941
|
+
return await response.value();
|
|
9942
|
+
}
|
|
9744
9943
|
/**
|
|
9745
9944
|
* Submits the stored intent and its unrevoked approvals to the enclave, which decides whether the requirements are met. On success the original mutation runs — the same code path an ungoverned account takes — and the proposal is consumed. Returns 202 with the requirement tallies when consent is still short, leaving the proposal open so more approvals can arrive. No step-up: the approvals are what authorize the change, and the caller adds no consent of their own.
|
|
9746
9945
|
* SDK — apply a proposal whose approvals now satisfy it
|
|
@@ -9780,6 +9979,85 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9780
9979
|
const response = await this.sdkExecuteBusinessAccountProposalRaw(requestParameters, initOverrides);
|
|
9781
9980
|
return await response.value();
|
|
9782
9981
|
}
|
|
9982
|
+
/**
|
|
9983
|
+
* Retrieve the audit trail of a business account, newest first. Caller must be an owner or admin member. Returns 404 when the caller is not a member (404 not 403 so we don\'t leak business-account existence).
|
|
9984
|
+
* SDK — list business account activity
|
|
9985
|
+
*/
|
|
9986
|
+
async sdkGetBusinessAccountActivityRaw(requestParameters, initOverrides) {
|
|
9987
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9988
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountActivity.');
|
|
9989
|
+
}
|
|
9990
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9991
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountActivity.');
|
|
9992
|
+
}
|
|
9993
|
+
const queryParameters = {};
|
|
9994
|
+
if (requestParameters.limit !== undefined) {
|
|
9995
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
9996
|
+
}
|
|
9997
|
+
if (requestParameters.cursor !== undefined) {
|
|
9998
|
+
queryParameters['cursor'] = requestParameters.cursor;
|
|
9999
|
+
}
|
|
10000
|
+
const headerParameters = {};
|
|
10001
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10002
|
+
const token = this.configuration.accessToken;
|
|
10003
|
+
const tokenString = await token("bearerAuth", []);
|
|
10004
|
+
if (tokenString) {
|
|
10005
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10006
|
+
}
|
|
10007
|
+
}
|
|
10008
|
+
const response = await this.request({
|
|
10009
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10010
|
+
method: 'GET',
|
|
10011
|
+
headers: headerParameters,
|
|
10012
|
+
query: queryParameters,
|
|
10013
|
+
}, initOverrides);
|
|
10014
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountActivityResponse.BusinessAccountActivityResponseFromJSON(jsonValue));
|
|
10015
|
+
}
|
|
10016
|
+
/**
|
|
10017
|
+
* Retrieve the audit trail of a business account, newest first. Caller must be an owner or admin member. Returns 404 when the caller is not a member (404 not 403 so we don\'t leak business-account existence).
|
|
10018
|
+
* SDK — list business account activity
|
|
10019
|
+
*/
|
|
10020
|
+
async sdkGetBusinessAccountActivity(requestParameters, initOverrides) {
|
|
10021
|
+
const response = await this.sdkGetBusinessAccountActivityRaw(requestParameters, initOverrides);
|
|
10022
|
+
return await response.value();
|
|
10023
|
+
}
|
|
10024
|
+
/**
|
|
10025
|
+
* SDK — get a business account activity export\'s status
|
|
10026
|
+
*/
|
|
10027
|
+
async sdkGetBusinessAccountActivityExportRaw(requestParameters, initOverrides) {
|
|
10028
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10029
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountActivityExport.');
|
|
10030
|
+
}
|
|
10031
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10032
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountActivityExport.');
|
|
10033
|
+
}
|
|
10034
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
10035
|
+
throw new runtime.RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkGetBusinessAccountActivityExport.');
|
|
10036
|
+
}
|
|
10037
|
+
const queryParameters = {};
|
|
10038
|
+
const headerParameters = {};
|
|
10039
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10040
|
+
const token = this.configuration.accessToken;
|
|
10041
|
+
const tokenString = await token("bearerAuth", []);
|
|
10042
|
+
if (tokenString) {
|
|
10043
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10044
|
+
}
|
|
10045
|
+
}
|
|
10046
|
+
const response = await this.request({
|
|
10047
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports/{exportId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"exportId"}}`, encodeURIComponent(String(requestParameters.exportId))),
|
|
10048
|
+
method: 'GET',
|
|
10049
|
+
headers: headerParameters,
|
|
10050
|
+
query: queryParameters,
|
|
10051
|
+
}, initOverrides);
|
|
10052
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountActivityExport.BusinessAccountActivityExportFromJSON(jsonValue));
|
|
10053
|
+
}
|
|
10054
|
+
/**
|
|
10055
|
+
* SDK — get a business account activity export\'s status
|
|
10056
|
+
*/
|
|
10057
|
+
async sdkGetBusinessAccountActivityExport(requestParameters, initOverrides) {
|
|
10058
|
+
const response = await this.sdkGetBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
10059
|
+
return await response.value();
|
|
10060
|
+
}
|
|
9783
10061
|
/**
|
|
9784
10062
|
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
9785
10063
|
* SDK — get a business account with embedded members and signers
|
|
@@ -11977,7 +12255,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11977
12255
|
await this.updateUserMfaDeviceRaw(requestParameters, initOverrides);
|
|
11978
12256
|
}
|
|
11979
12257
|
/**
|
|
11980
|
-
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12258
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — or, with op set to replace, a full rules list that replaces the Layer\'s Rules (either syntax; an empty list clears it) — to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
11981
12259
|
* Create, update, or remove a Rule on a signer-Layer
|
|
11982
12260
|
*/
|
|
11983
12261
|
async updateWaasSignerSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
@@ -12010,7 +12288,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
12010
12288
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
12011
12289
|
}
|
|
12012
12290
|
/**
|
|
12013
|
-
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12291
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — or, with op set to replace, a full rules list that replaces the Layer\'s Rules (either syntax; an empty list clears it) — to the calling wallet\'s own signer-Layer, or (given shareSetId in the request body) another share set of the same wallet — e.g. a delegated share set. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may target another share set. Field permissions, grant/authorship, and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12014
12292
|
* Create, update, or remove a Rule on a signer-Layer
|
|
12015
12293
|
*/
|
|
12016
12294
|
async updateWaasSignerSelfPolicyLayer(requestParameters, initOverrides) {
|
|
@@ -12018,7 +12296,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
12018
12296
|
return await response.value();
|
|
12019
12297
|
}
|
|
12020
12298
|
/**
|
|
12021
|
-
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own wallet-Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12299
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — or, with op set to replace, a full rules list that replaces the Layer\'s Rules (either syntax; an empty list clears it) — to the calling wallet\'s own wallet-Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12022
12300
|
* Create, update, or remove a Rule on a wallet-Layer
|
|
12023
12301
|
*/
|
|
12024
12302
|
async updateWaasWalletSelfPolicyLayerRaw(requestParameters, initOverrides) {
|
|
@@ -12051,7 +12329,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
12051
12329
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
12052
12330
|
}
|
|
12053
12331
|
/**
|
|
12054
|
-
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — to the calling wallet\'s own wallet-Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12332
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation — or, with op set to batch, an operations array of 1-100 upsert/remove entries applied atomically in one enclave cycle (all-or-nothing — a rejection applies none of them) — or, with op set to replace, a full rules list that replaces the Layer\'s Rules (either syntax; an empty list clears it) — to the calling wallet\'s own wallet-Layer. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Only the wallet\'s own owner may call this. Field permissions and the remove-vs-marker decision are enforced by wallet-service, not this route.
|
|
12055
12333
|
* Create, update, or remove a Rule on a wallet-Layer
|
|
12056
12334
|
*/
|
|
12057
12335
|
async updateWaasWalletSelfPolicyLayer(requestParameters, initOverrides) {
|