@dynamic-labs/sdk-api 0.75.0 → 0.77.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/AdminActionsApi.cjs +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/BusinessAccountsApi.cjs +1 -0
- package/src/apis/BusinessAccountsApi.js +1 -0
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GaslessApi.cjs +1 -0
- package/src/apis/GaslessApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/KybApi.cjs +1 -0
- package/src/apis/KybApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +277 -0
- package/src/apis/SDKApi.d.ts +118 -1
- package/src/apis/SDKApi.js +277 -0
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/ScreeningPoliciesApi.cjs +1 -0
- package/src/apis/ScreeningPoliciesApi.js +1 -0
- package/src/apis/ServerApi.cjs +66 -1
- package/src/apis/ServerApi.d.ts +30 -1
- package/src/apis/ServerApi.js +66 -1
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/apis/YieldApi.cjs +1 -0
- package/src/apis/YieldApi.js +1 -0
- package/src/apis/ZendeskApi.cjs +1 -0
- package/src/apis/ZendeskApi.js +1 -0
- package/src/index.cjs +20 -0
- package/src/index.js +4 -0
- package/src/models/BusinessAccountActivityExport.cjs +53 -0
- package/src/models/BusinessAccountActivityExport.d.ts +66 -0
- package/src/models/BusinessAccountActivityExport.js +47 -0
- package/src/models/BusinessAccountActivityExportRequest.cjs +38 -0
- package/src/models/BusinessAccountActivityExportRequest.d.ts +40 -0
- package/src/models/BusinessAccountActivityExportRequest.js +32 -0
- package/src/models/Export.cjs +2 -0
- package/src/models/Export.d.ts +6 -0
- package/src/models/Export.js +2 -0
- package/src/models/ExportCreateRequest.cjs +4 -0
- package/src/models/ExportCreateRequest.d.ts +7 -0
- package/src/models/ExportCreateRequest.js +4 -0
- package/src/models/ExportCreateRequestFilter.cjs +44 -0
- package/src/models/ExportCreateRequestFilter.d.ts +62 -0
- package/src/models/ExportCreateRequestFilter.js +38 -0
- package/src/models/ExportModelEnum.cjs +1 -0
- package/src/models/ExportModelEnum.d.ts +2 -1
- package/src/models/ExportModelEnum.js +1 -0
- package/src/models/WaasPolicyAction.cjs +2 -1
- package/src/models/WaasPolicyAction.d.ts +3 -2
- package/src/models/WaasPolicyAction.js +2 -1
- package/src/models/WaasPolicyDeclarativeApprovalRequirement.cjs +47 -0
- package/src/models/WaasPolicyDeclarativeApprovalRequirement.d.ts +69 -0
- package/src/models/WaasPolicyDeclarativeApprovalRequirement.js +41 -0
- package/src/models/WaasPolicyDeclarativeRule.cjs +3 -0
- package/src/models/WaasPolicyDeclarativeRule.d.ts +7 -0
- package/src/models/WaasPolicyDeclarativeRule.js +3 -0
- package/src/models/WaasPolicyLayerRule.cjs +3 -3
- package/src/models/WaasPolicyLayerRule.d.ts +4 -4
- package/src/models/WaasPolicyLayerRule.js +3 -3
- package/src/models/WaasPolicyLayerUpdateRequest.cjs +4 -0
- package/src/models/WaasPolicyLayerUpdateRequest.d.ts +10 -2
- package/src/models/WaasPolicyLayerUpdateRequest.js +4 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +4 -0
- package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +10 -2
- package/src/models/WaasSignerPolicyLayerUpdateRequest.js +4 -0
- package/src/models/index.d.ts +4 -0
package/src/apis/SDKApi.js
CHANGED
|
@@ -53,6 +53,9 @@ import '../models/ChainalysisCheckResultEnum.js';
|
|
|
53
53
|
import { MFADeviceFromJSON } from '../models/MFADevice.js';
|
|
54
54
|
import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
|
|
55
55
|
import '../models/BusinessAccountActionEnum.js';
|
|
56
|
+
import { BusinessAccountActivityExportFromJSON } from '../models/BusinessAccountActivityExport.js';
|
|
57
|
+
import { BusinessAccountActivityExportRequestToJSON } from '../models/BusinessAccountActivityExportRequest.js';
|
|
58
|
+
import { BusinessAccountActivityResponseFromJSON } from '../models/BusinessAccountActivityResponse.js';
|
|
56
59
|
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
57
60
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
58
61
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
@@ -9238,6 +9241,124 @@ class SDKApi extends BaseAPI {
|
|
|
9238
9241
|
const response = await this.sdkApproveBusinessAccountProposalRaw(requestParameters, initOverrides);
|
|
9239
9242
|
return await response.value();
|
|
9240
9243
|
}
|
|
9244
|
+
/**
|
|
9245
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9246
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9247
|
+
*/
|
|
9248
|
+
async sdkBusinessAccountActivityExportDownloadOptionsRaw(requestParameters, initOverrides) {
|
|
9249
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9250
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityExportDownloadOptions.');
|
|
9251
|
+
}
|
|
9252
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9253
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityExportDownloadOptions.');
|
|
9254
|
+
}
|
|
9255
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
9256
|
+
throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkBusinessAccountActivityExportDownloadOptions.');
|
|
9257
|
+
}
|
|
9258
|
+
const queryParameters = {};
|
|
9259
|
+
const headerParameters = {};
|
|
9260
|
+
const response = await this.request({
|
|
9261
|
+
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))),
|
|
9262
|
+
method: 'OPTIONS',
|
|
9263
|
+
headers: headerParameters,
|
|
9264
|
+
query: queryParameters,
|
|
9265
|
+
}, initOverrides);
|
|
9266
|
+
return new VoidApiResponse(response);
|
|
9267
|
+
}
|
|
9268
|
+
/**
|
|
9269
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9270
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9271
|
+
*/
|
|
9272
|
+
async sdkBusinessAccountActivityExportDownloadOptions(requestParameters, initOverrides) {
|
|
9273
|
+
await this.sdkBusinessAccountActivityExportDownloadOptionsRaw(requestParameters, initOverrides);
|
|
9274
|
+
}
|
|
9275
|
+
/**
|
|
9276
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9277
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9278
|
+
*/
|
|
9279
|
+
async sdkBusinessAccountActivityExportOptionsRaw(requestParameters, initOverrides) {
|
|
9280
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9281
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityExportOptions.');
|
|
9282
|
+
}
|
|
9283
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9284
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityExportOptions.');
|
|
9285
|
+
}
|
|
9286
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
9287
|
+
throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkBusinessAccountActivityExportOptions.');
|
|
9288
|
+
}
|
|
9289
|
+
const queryParameters = {};
|
|
9290
|
+
const headerParameters = {};
|
|
9291
|
+
const response = await this.request({
|
|
9292
|
+
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))),
|
|
9293
|
+
method: 'OPTIONS',
|
|
9294
|
+
headers: headerParameters,
|
|
9295
|
+
query: queryParameters,
|
|
9296
|
+
}, initOverrides);
|
|
9297
|
+
return new VoidApiResponse(response);
|
|
9298
|
+
}
|
|
9299
|
+
/**
|
|
9300
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9301
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9302
|
+
*/
|
|
9303
|
+
async sdkBusinessAccountActivityExportOptions(requestParameters, initOverrides) {
|
|
9304
|
+
await this.sdkBusinessAccountActivityExportOptionsRaw(requestParameters, initOverrides);
|
|
9305
|
+
}
|
|
9306
|
+
/**
|
|
9307
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9308
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9309
|
+
*/
|
|
9310
|
+
async sdkBusinessAccountActivityExportsOptionsRaw(requestParameters, initOverrides) {
|
|
9311
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9312
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityExportsOptions.');
|
|
9313
|
+
}
|
|
9314
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9315
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityExportsOptions.');
|
|
9316
|
+
}
|
|
9317
|
+
const queryParameters = {};
|
|
9318
|
+
const headerParameters = {};
|
|
9319
|
+
const response = await this.request({
|
|
9320
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9321
|
+
method: 'OPTIONS',
|
|
9322
|
+
headers: headerParameters,
|
|
9323
|
+
query: queryParameters,
|
|
9324
|
+
}, initOverrides);
|
|
9325
|
+
return new VoidApiResponse(response);
|
|
9326
|
+
}
|
|
9327
|
+
/**
|
|
9328
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9329
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9330
|
+
*/
|
|
9331
|
+
async sdkBusinessAccountActivityExportsOptions(requestParameters, initOverrides) {
|
|
9332
|
+
await this.sdkBusinessAccountActivityExportsOptionsRaw(requestParameters, initOverrides);
|
|
9333
|
+
}
|
|
9334
|
+
/**
|
|
9335
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9336
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9337
|
+
*/
|
|
9338
|
+
async sdkBusinessAccountActivityOptionsRaw(requestParameters, initOverrides) {
|
|
9339
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9340
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountActivityOptions.');
|
|
9341
|
+
}
|
|
9342
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9343
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountActivityOptions.');
|
|
9344
|
+
}
|
|
9345
|
+
const queryParameters = {};
|
|
9346
|
+
const headerParameters = {};
|
|
9347
|
+
const response = await this.request({
|
|
9348
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9349
|
+
method: 'OPTIONS',
|
|
9350
|
+
headers: headerParameters,
|
|
9351
|
+
query: queryParameters,
|
|
9352
|
+
}, initOverrides);
|
|
9353
|
+
return new VoidApiResponse(response);
|
|
9354
|
+
}
|
|
9355
|
+
/**
|
|
9356
|
+
* Intentionally unauthenticated so browsers can perform CORS preflight.
|
|
9357
|
+
* Unauthenticated CORS preflight for this endpoint
|
|
9358
|
+
*/
|
|
9359
|
+
async sdkBusinessAccountActivityOptions(requestParameters, initOverrides) {
|
|
9360
|
+
await this.sdkBusinessAccountActivityOptionsRaw(requestParameters, initOverrides);
|
|
9361
|
+
}
|
|
9241
9362
|
/**
|
|
9242
9363
|
* Options call for this endpoint
|
|
9243
9364
|
*/
|
|
@@ -9788,6 +9909,44 @@ class SDKApi extends BaseAPI {
|
|
|
9788
9909
|
const response = await this.sdkCreateBusinessAccountRaw(requestParameters, initOverrides);
|
|
9789
9910
|
return await response.value();
|
|
9790
9911
|
}
|
|
9912
|
+
/**
|
|
9913
|
+
* 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.
|
|
9914
|
+
* SDK — create a CSV export of the business account\'s audit trail
|
|
9915
|
+
*/
|
|
9916
|
+
async sdkCreateBusinessAccountActivityExportRaw(requestParameters, initOverrides) {
|
|
9917
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
9918
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkCreateBusinessAccountActivityExport.');
|
|
9919
|
+
}
|
|
9920
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
9921
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkCreateBusinessAccountActivityExport.');
|
|
9922
|
+
}
|
|
9923
|
+
const queryParameters = {};
|
|
9924
|
+
const headerParameters = {};
|
|
9925
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9926
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
9927
|
+
const token = this.configuration.accessToken;
|
|
9928
|
+
const tokenString = await token("bearerAuth", []);
|
|
9929
|
+
if (tokenString) {
|
|
9930
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
9931
|
+
}
|
|
9932
|
+
}
|
|
9933
|
+
const response = await this.request({
|
|
9934
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
9935
|
+
method: 'POST',
|
|
9936
|
+
headers: headerParameters,
|
|
9937
|
+
query: queryParameters,
|
|
9938
|
+
body: BusinessAccountActivityExportRequestToJSON(requestParameters.businessAccountActivityExportRequest),
|
|
9939
|
+
}, initOverrides);
|
|
9940
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountActivityExportFromJSON(jsonValue));
|
|
9941
|
+
}
|
|
9942
|
+
/**
|
|
9943
|
+
* 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.
|
|
9944
|
+
* SDK — create a CSV export of the business account\'s audit trail
|
|
9945
|
+
*/
|
|
9946
|
+
async sdkCreateBusinessAccountActivityExport(requestParameters, initOverrides) {
|
|
9947
|
+
const response = await this.sdkCreateBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
9948
|
+
return await response.value();
|
|
9949
|
+
}
|
|
9791
9950
|
/**
|
|
9792
9951
|
* 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.
|
|
9793
9952
|
* SDK — define a customer role for a business account
|
|
@@ -9870,6 +10029,45 @@ class SDKApi extends BaseAPI {
|
|
|
9870
10029
|
const response = await this.sdkDeleteBusinessAccountRoleRaw(requestParameters, initOverrides);
|
|
9871
10030
|
return await response.value();
|
|
9872
10031
|
}
|
|
10032
|
+
/**
|
|
10033
|
+
* Redirects to a pre-signed S3 URL for the exported CSV.
|
|
10034
|
+
* SDK — download a completed business account activity export
|
|
10035
|
+
*/
|
|
10036
|
+
async sdkDownloadBusinessAccountActivityExportRaw(requestParameters, initOverrides) {
|
|
10037
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10038
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkDownloadBusinessAccountActivityExport.');
|
|
10039
|
+
}
|
|
10040
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10041
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkDownloadBusinessAccountActivityExport.');
|
|
10042
|
+
}
|
|
10043
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
10044
|
+
throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkDownloadBusinessAccountActivityExport.');
|
|
10045
|
+
}
|
|
10046
|
+
const queryParameters = {};
|
|
10047
|
+
const headerParameters = {};
|
|
10048
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10049
|
+
const token = this.configuration.accessToken;
|
|
10050
|
+
const tokenString = await token("bearerAuth", []);
|
|
10051
|
+
if (tokenString) {
|
|
10052
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10053
|
+
}
|
|
10054
|
+
}
|
|
10055
|
+
const response = await this.request({
|
|
10056
|
+
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))),
|
|
10057
|
+
method: 'GET',
|
|
10058
|
+
headers: headerParameters,
|
|
10059
|
+
query: queryParameters,
|
|
10060
|
+
}, initOverrides);
|
|
10061
|
+
return new TextApiResponse(response);
|
|
10062
|
+
}
|
|
10063
|
+
/**
|
|
10064
|
+
* Redirects to a pre-signed S3 URL for the exported CSV.
|
|
10065
|
+
* SDK — download a completed business account activity export
|
|
10066
|
+
*/
|
|
10067
|
+
async sdkDownloadBusinessAccountActivityExport(requestParameters, initOverrides) {
|
|
10068
|
+
const response = await this.sdkDownloadBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
10069
|
+
return await response.value();
|
|
10070
|
+
}
|
|
9873
10071
|
/**
|
|
9874
10072
|
* 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.
|
|
9875
10073
|
* SDK — apply a proposal whose approvals now satisfy it
|
|
@@ -9909,6 +10107,85 @@ class SDKApi extends BaseAPI {
|
|
|
9909
10107
|
const response = await this.sdkExecuteBusinessAccountProposalRaw(requestParameters, initOverrides);
|
|
9910
10108
|
return await response.value();
|
|
9911
10109
|
}
|
|
10110
|
+
/**
|
|
10111
|
+
* 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).
|
|
10112
|
+
* SDK — list business account activity
|
|
10113
|
+
*/
|
|
10114
|
+
async sdkGetBusinessAccountActivityRaw(requestParameters, initOverrides) {
|
|
10115
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10116
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountActivity.');
|
|
10117
|
+
}
|
|
10118
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10119
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountActivity.');
|
|
10120
|
+
}
|
|
10121
|
+
const queryParameters = {};
|
|
10122
|
+
if (requestParameters.limit !== undefined) {
|
|
10123
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
10124
|
+
}
|
|
10125
|
+
if (requestParameters.cursor !== undefined) {
|
|
10126
|
+
queryParameters['cursor'] = requestParameters.cursor;
|
|
10127
|
+
}
|
|
10128
|
+
const headerParameters = {};
|
|
10129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10130
|
+
const token = this.configuration.accessToken;
|
|
10131
|
+
const tokenString = await token("bearerAuth", []);
|
|
10132
|
+
if (tokenString) {
|
|
10133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10134
|
+
}
|
|
10135
|
+
}
|
|
10136
|
+
const response = await this.request({
|
|
10137
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/activity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10138
|
+
method: 'GET',
|
|
10139
|
+
headers: headerParameters,
|
|
10140
|
+
query: queryParameters,
|
|
10141
|
+
}, initOverrides);
|
|
10142
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountActivityResponseFromJSON(jsonValue));
|
|
10143
|
+
}
|
|
10144
|
+
/**
|
|
10145
|
+
* 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).
|
|
10146
|
+
* SDK — list business account activity
|
|
10147
|
+
*/
|
|
10148
|
+
async sdkGetBusinessAccountActivity(requestParameters, initOverrides) {
|
|
10149
|
+
const response = await this.sdkGetBusinessAccountActivityRaw(requestParameters, initOverrides);
|
|
10150
|
+
return await response.value();
|
|
10151
|
+
}
|
|
10152
|
+
/**
|
|
10153
|
+
* SDK — get a business account activity export\'s status
|
|
10154
|
+
*/
|
|
10155
|
+
async sdkGetBusinessAccountActivityExportRaw(requestParameters, initOverrides) {
|
|
10156
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10157
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountActivityExport.');
|
|
10158
|
+
}
|
|
10159
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10160
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountActivityExport.');
|
|
10161
|
+
}
|
|
10162
|
+
if (requestParameters.exportId === null || requestParameters.exportId === undefined) {
|
|
10163
|
+
throw new RequiredError('exportId', 'Required parameter requestParameters.exportId was null or undefined when calling sdkGetBusinessAccountActivityExport.');
|
|
10164
|
+
}
|
|
10165
|
+
const queryParameters = {};
|
|
10166
|
+
const headerParameters = {};
|
|
10167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10168
|
+
const token = this.configuration.accessToken;
|
|
10169
|
+
const tokenString = await token("bearerAuth", []);
|
|
10170
|
+
if (tokenString) {
|
|
10171
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10172
|
+
}
|
|
10173
|
+
}
|
|
10174
|
+
const response = await this.request({
|
|
10175
|
+
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))),
|
|
10176
|
+
method: 'GET',
|
|
10177
|
+
headers: headerParameters,
|
|
10178
|
+
query: queryParameters,
|
|
10179
|
+
}, initOverrides);
|
|
10180
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountActivityExportFromJSON(jsonValue));
|
|
10181
|
+
}
|
|
10182
|
+
/**
|
|
10183
|
+
* SDK — get a business account activity export\'s status
|
|
10184
|
+
*/
|
|
10185
|
+
async sdkGetBusinessAccountActivityExport(requestParameters, initOverrides) {
|
|
10186
|
+
const response = await this.sdkGetBusinessAccountActivityExportRaw(requestParameters, initOverrides);
|
|
10187
|
+
return await response.value();
|
|
10188
|
+
}
|
|
9912
10189
|
/**
|
|
9913
10190
|
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
9914
10191
|
* SDK — get a business account with embedded members and signers
|
package/src/apis/SDKViewsApi.cjs
CHANGED
|
@@ -52,6 +52,7 @@ require('../models/BillingSubscriptionPlanTypeEnum.cjs');
|
|
|
52
52
|
require('../models/UnprocessableEntityErrorCode.cjs');
|
|
53
53
|
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
54
54
|
require('../models/BusinessAccountActionEnum.cjs');
|
|
55
|
+
require('../models/BusinessAccountActivityExport.cjs');
|
|
55
56
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
56
57
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
57
58
|
require('../models/BusinessAccountGovernedAction.cjs');
|
package/src/apis/SDKViewsApi.js
CHANGED
|
@@ -48,6 +48,7 @@ import '../models/BillingSubscriptionPlanTypeEnum.js';
|
|
|
48
48
|
import '../models/UnprocessableEntityErrorCode.js';
|
|
49
49
|
import '../models/ChainalysisCheckResultEnum.js';
|
|
50
50
|
import '../models/BusinessAccountActionEnum.js';
|
|
51
|
+
import '../models/BusinessAccountActivityExport.js';
|
|
51
52
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
52
53
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
53
54
|
import '../models/BusinessAccountGovernedAction.js';
|
|
@@ -52,6 +52,7 @@ require('../models/BillingSubscriptionPlanTypeEnum.cjs');
|
|
|
52
52
|
require('../models/UnprocessableEntityErrorCode.cjs');
|
|
53
53
|
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
54
54
|
require('../models/BusinessAccountActionEnum.cjs');
|
|
55
|
+
require('../models/BusinessAccountActivityExport.cjs');
|
|
55
56
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
56
57
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
57
58
|
require('../models/BusinessAccountGovernedAction.cjs');
|
|
@@ -48,6 +48,7 @@ import '../models/BillingSubscriptionPlanTypeEnum.js';
|
|
|
48
48
|
import '../models/UnprocessableEntityErrorCode.js';
|
|
49
49
|
import '../models/ChainalysisCheckResultEnum.js';
|
|
50
50
|
import '../models/BusinessAccountActionEnum.js';
|
|
51
|
+
import '../models/BusinessAccountActivityExport.js';
|
|
51
52
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
52
53
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
53
54
|
import '../models/BusinessAccountGovernedAction.js';
|
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -54,6 +54,7 @@ require('../models/UnprocessableEntityErrorCode.cjs');
|
|
|
54
54
|
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
55
55
|
var BusinessAccount = require('../models/BusinessAccount.cjs');
|
|
56
56
|
require('../models/BusinessAccountActionEnum.cjs');
|
|
57
|
+
require('../models/BusinessAccountActivityExport.cjs');
|
|
57
58
|
var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
|
|
58
59
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
59
60
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
@@ -197,8 +198,9 @@ require('../models/WaasDelegationCredentialsResponse.cjs');
|
|
|
197
198
|
require('../models/WaasPolicyLayerRule.cjs');
|
|
198
199
|
require('../models/WaasPolicyAction.cjs');
|
|
199
200
|
require('../models/WaasPolicyDeclarativeRule.cjs');
|
|
201
|
+
var WaasPolicyLayerResponse = require('../models/WaasPolicyLayerResponse.cjs');
|
|
200
202
|
require('../models/WaasPolicyLayerRuleOperation.cjs');
|
|
201
|
-
require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
203
|
+
var WaasPolicyLayerUpdateRequest = require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
202
204
|
var WaasSignAndBroadcastRequest = require('../models/WaasSignAndBroadcastRequest.cjs');
|
|
203
205
|
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
204
206
|
require('../models/WaasSvmCommitment.cjs');
|
|
@@ -377,6 +379,35 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
377
379
|
const response = await this.getBusinessAccountByIdServerRaw(requestParameters, initOverrides);
|
|
378
380
|
return await response.value();
|
|
379
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* Returns the Composition account-Layer content for the business account, the Rules that apply to every wallet in it. Business-account owner or admin only.
|
|
384
|
+
* Server — get the business account\'s account-Layer Rules
|
|
385
|
+
*/
|
|
386
|
+
async getBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides) {
|
|
387
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
388
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountPolicyLayerServer.');
|
|
389
|
+
}
|
|
390
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
391
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountPolicyLayerServer.');
|
|
392
|
+
}
|
|
393
|
+
const queryParameters = {};
|
|
394
|
+
const headerParameters = {};
|
|
395
|
+
const response = await this.request({
|
|
396
|
+
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
397
|
+
method: 'GET',
|
|
398
|
+
headers: headerParameters,
|
|
399
|
+
query: queryParameters,
|
|
400
|
+
}, initOverrides);
|
|
401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Returns the Composition account-Layer content for the business account, the Rules that apply to every wallet in it. Business-account owner or admin only.
|
|
405
|
+
* Server — get the business account\'s account-Layer Rules
|
|
406
|
+
*/
|
|
407
|
+
async getBusinessAccountPolicyLayerServer(requestParameters, initOverrides) {
|
|
408
|
+
const response = await this.getBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides);
|
|
409
|
+
return await response.value();
|
|
410
|
+
}
|
|
380
411
|
/**
|
|
381
412
|
* Returns the recipient claimable fee balances across all providers.
|
|
382
413
|
* Get claimable fee balances
|
|
@@ -720,6 +751,40 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
720
751
|
const response = await this.submitFlowFeeClaimServerRaw(requestParameters, initOverrides);
|
|
721
752
|
return await response.value();
|
|
722
753
|
}
|
|
754
|
+
/**
|
|
755
|
+
* Applies a per-Rule upsert or remove, a batch, or a replace of the whole Rule list to the account-Layer, which applies to every wallet in the business account. Business-account owner or admin only. Creates the account-Layer if the account has none yet.
|
|
756
|
+
* Server — update the business account\'s account-Layer Rules
|
|
757
|
+
*/
|
|
758
|
+
async updateBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides) {
|
|
759
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
760
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
761
|
+
}
|
|
762
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
763
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
764
|
+
}
|
|
765
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
766
|
+
throw new runtime.RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
767
|
+
}
|
|
768
|
+
const queryParameters = {};
|
|
769
|
+
const headerParameters = {};
|
|
770
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
771
|
+
const response = await this.request({
|
|
772
|
+
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
773
|
+
method: 'PATCH',
|
|
774
|
+
headers: headerParameters,
|
|
775
|
+
query: queryParameters,
|
|
776
|
+
body: WaasPolicyLayerUpdateRequest.WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
777
|
+
}, initOverrides);
|
|
778
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Applies a per-Rule upsert or remove, a batch, or a replace of the whole Rule list to the account-Layer, which applies to every wallet in the business account. Business-account owner or admin only. Creates the account-Layer if the account has none yet.
|
|
782
|
+
* Server — update the business account\'s account-Layer Rules
|
|
783
|
+
*/
|
|
784
|
+
async updateBusinessAccountPolicyLayerServer(requestParameters, initOverrides) {
|
|
785
|
+
const response = await this.updateBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides);
|
|
786
|
+
return await response.value();
|
|
787
|
+
}
|
|
723
788
|
}
|
|
724
789
|
|
|
725
790
|
exports.ServerApi = ServerApi;
|
package/src/apis/ServerApi.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 { AddBusinessAccountMemberSdkRequest, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, LinkBusinessAccountWalletSdkRequest, ServerIdentityResponse, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, WaasSignAndBroadcastRequest, WaasTransactionBroadcast } from '../models';
|
|
13
|
+
import { AddBusinessAccountMemberSdkRequest, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, LinkBusinessAccountWalletSdkRequest, ServerIdentityResponse, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasTransactionBroadcast } from '../models';
|
|
14
14
|
export interface AddBusinessAccountMemberServerRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
businessAccountId: string;
|
|
@@ -33,6 +33,10 @@ export interface GetBusinessAccountByIdServerRequest {
|
|
|
33
33
|
environmentId: string;
|
|
34
34
|
businessAccountId: string;
|
|
35
35
|
}
|
|
36
|
+
export interface GetBusinessAccountPolicyLayerServerRequest {
|
|
37
|
+
environmentId: string;
|
|
38
|
+
businessAccountId: string;
|
|
39
|
+
}
|
|
36
40
|
export interface GetFlowFeeClaimBalancesServerRequest {
|
|
37
41
|
environmentId: string;
|
|
38
42
|
recipientAddress: string;
|
|
@@ -80,6 +84,11 @@ export interface SubmitFlowFeeClaimServerRequest {
|
|
|
80
84
|
environmentId: string;
|
|
81
85
|
flowFeeClaimSubmitRequest: FlowFeeClaimSubmitRequest;
|
|
82
86
|
}
|
|
87
|
+
export interface UpdateBusinessAccountPolicyLayerServerRequest {
|
|
88
|
+
environmentId: string;
|
|
89
|
+
businessAccountId: string;
|
|
90
|
+
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
91
|
+
}
|
|
83
92
|
/**
|
|
84
93
|
*
|
|
85
94
|
*/
|
|
@@ -134,6 +143,16 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
134
143
|
* Server — get a business account with embedded members and signers
|
|
135
144
|
*/
|
|
136
145
|
getBusinessAccountByIdServer(requestParameters: GetBusinessAccountByIdServerRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
146
|
+
/**
|
|
147
|
+
* Returns the Composition account-Layer content for the business account, the Rules that apply to every wallet in it. Business-account owner or admin only.
|
|
148
|
+
* Server — get the business account\'s account-Layer Rules
|
|
149
|
+
*/
|
|
150
|
+
getBusinessAccountPolicyLayerServerRaw(requestParameters: GetBusinessAccountPolicyLayerServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the Composition account-Layer content for the business account, the Rules that apply to every wallet in it. Business-account owner or admin only.
|
|
153
|
+
* Server — get the business account\'s account-Layer Rules
|
|
154
|
+
*/
|
|
155
|
+
getBusinessAccountPolicyLayerServer(requestParameters: GetBusinessAccountPolicyLayerServerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
137
156
|
/**
|
|
138
157
|
* Returns the recipient claimable fee balances across all providers.
|
|
139
158
|
* Get claimable fee balances
|
|
@@ -240,4 +259,14 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
240
259
|
* Submit a fee claim
|
|
241
260
|
*/
|
|
242
261
|
submitFlowFeeClaimServer(requestParameters: SubmitFlowFeeClaimServerRequest, initOverrides?: RequestInit): Promise<FlowFeeClaimSubmitResponse>;
|
|
262
|
+
/**
|
|
263
|
+
* Applies a per-Rule upsert or remove, a batch, or a replace of the whole Rule list to the account-Layer, which applies to every wallet in the business account. Business-account owner or admin only. Creates the account-Layer if the account has none yet.
|
|
264
|
+
* Server — update the business account\'s account-Layer Rules
|
|
265
|
+
*/
|
|
266
|
+
updateBusinessAccountPolicyLayerServerRaw(requestParameters: UpdateBusinessAccountPolicyLayerServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
267
|
+
/**
|
|
268
|
+
* Applies a per-Rule upsert or remove, a batch, or a replace of the whole Rule list to the account-Layer, which applies to every wallet in the business account. Business-account owner or admin only. Creates the account-Layer if the account has none yet.
|
|
269
|
+
* Server — update the business account\'s account-Layer Rules
|
|
270
|
+
*/
|
|
271
|
+
updateBusinessAccountPolicyLayerServer(requestParameters: UpdateBusinessAccountPolicyLayerServerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
243
272
|
}
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -50,6 +50,7 @@ import '../models/UnprocessableEntityErrorCode.js';
|
|
|
50
50
|
import '../models/ChainalysisCheckResultEnum.js';
|
|
51
51
|
import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
|
|
52
52
|
import '../models/BusinessAccountActionEnum.js';
|
|
53
|
+
import '../models/BusinessAccountActivityExport.js';
|
|
53
54
|
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
54
55
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
55
56
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
@@ -193,8 +194,9 @@ import '../models/WaasDelegationCredentialsResponse.js';
|
|
|
193
194
|
import '../models/WaasPolicyLayerRule.js';
|
|
194
195
|
import '../models/WaasPolicyAction.js';
|
|
195
196
|
import '../models/WaasPolicyDeclarativeRule.js';
|
|
197
|
+
import { WaasPolicyLayerResponseFromJSON } from '../models/WaasPolicyLayerResponse.js';
|
|
196
198
|
import '../models/WaasPolicyLayerRuleOperation.js';
|
|
197
|
-
import '../models/WaasPolicyLayerUpdateRequest.js';
|
|
199
|
+
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
198
200
|
import { WaasSignAndBroadcastRequestToJSON } from '../models/WaasSignAndBroadcastRequest.js';
|
|
199
201
|
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
200
202
|
import '../models/WaasSvmCommitment.js';
|
|
@@ -373,6 +375,35 @@ class ServerApi extends BaseAPI {
|
|
|
373
375
|
const response = await this.getBusinessAccountByIdServerRaw(requestParameters, initOverrides);
|
|
374
376
|
return await response.value();
|
|
375
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Returns the Composition account-Layer content for the business account, the Rules that apply to every wallet in it. Business-account owner or admin only.
|
|
380
|
+
* Server — get the business account\'s account-Layer Rules
|
|
381
|
+
*/
|
|
382
|
+
async getBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides) {
|
|
383
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
384
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountPolicyLayerServer.');
|
|
385
|
+
}
|
|
386
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
387
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling getBusinessAccountPolicyLayerServer.');
|
|
388
|
+
}
|
|
389
|
+
const queryParameters = {};
|
|
390
|
+
const headerParameters = {};
|
|
391
|
+
const response = await this.request({
|
|
392
|
+
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
393
|
+
method: 'GET',
|
|
394
|
+
headers: headerParameters,
|
|
395
|
+
query: queryParameters,
|
|
396
|
+
}, initOverrides);
|
|
397
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Returns the Composition account-Layer content for the business account, the Rules that apply to every wallet in it. Business-account owner or admin only.
|
|
401
|
+
* Server — get the business account\'s account-Layer Rules
|
|
402
|
+
*/
|
|
403
|
+
async getBusinessAccountPolicyLayerServer(requestParameters, initOverrides) {
|
|
404
|
+
const response = await this.getBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides);
|
|
405
|
+
return await response.value();
|
|
406
|
+
}
|
|
376
407
|
/**
|
|
377
408
|
* Returns the recipient claimable fee balances across all providers.
|
|
378
409
|
* Get claimable fee balances
|
|
@@ -716,6 +747,40 @@ class ServerApi extends BaseAPI {
|
|
|
716
747
|
const response = await this.submitFlowFeeClaimServerRaw(requestParameters, initOverrides);
|
|
717
748
|
return await response.value();
|
|
718
749
|
}
|
|
750
|
+
/**
|
|
751
|
+
* Applies a per-Rule upsert or remove, a batch, or a replace of the whole Rule list to the account-Layer, which applies to every wallet in the business account. Business-account owner or admin only. Creates the account-Layer if the account has none yet.
|
|
752
|
+
* Server — update the business account\'s account-Layer Rules
|
|
753
|
+
*/
|
|
754
|
+
async updateBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides) {
|
|
755
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
756
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
757
|
+
}
|
|
758
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
759
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
760
|
+
}
|
|
761
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
762
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayerServer.');
|
|
763
|
+
}
|
|
764
|
+
const queryParameters = {};
|
|
765
|
+
const headerParameters = {};
|
|
766
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
767
|
+
const response = await this.request({
|
|
768
|
+
path: `/server/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
769
|
+
method: 'PATCH',
|
|
770
|
+
headers: headerParameters,
|
|
771
|
+
query: queryParameters,
|
|
772
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
773
|
+
}, initOverrides);
|
|
774
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Applies a per-Rule upsert or remove, a batch, or a replace of the whole Rule list to the account-Layer, which applies to every wallet in the business account. Business-account owner or admin only. Creates the account-Layer if the account has none yet.
|
|
778
|
+
* Server — update the business account\'s account-Layer Rules
|
|
779
|
+
*/
|
|
780
|
+
async updateBusinessAccountPolicyLayerServer(requestParameters, initOverrides) {
|
|
781
|
+
const response = await this.updateBusinessAccountPolicyLayerServerRaw(requestParameters, initOverrides);
|
|
782
|
+
return await response.value();
|
|
783
|
+
}
|
|
719
784
|
}
|
|
720
785
|
|
|
721
786
|
export { ServerApi };
|
package/src/apis/SessionsApi.cjs
CHANGED
|
@@ -53,6 +53,7 @@ require('../models/UnprocessableEntityErrorCode.cjs');
|
|
|
53
53
|
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
54
54
|
var Session = require('../models/Session.cjs');
|
|
55
55
|
require('../models/BusinessAccountActionEnum.cjs');
|
|
56
|
+
require('../models/BusinessAccountActivityExport.cjs');
|
|
56
57
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
57
58
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
58
59
|
require('../models/BusinessAccountGovernedAction.cjs');
|
package/src/apis/SessionsApi.js
CHANGED
|
@@ -49,6 +49,7 @@ import '../models/UnprocessableEntityErrorCode.js';
|
|
|
49
49
|
import '../models/ChainalysisCheckResultEnum.js';
|
|
50
50
|
import { SessionFromJSON } from '../models/Session.js';
|
|
51
51
|
import '../models/BusinessAccountActionEnum.js';
|
|
52
|
+
import '../models/BusinessAccountActivityExport.js';
|
|
52
53
|
import '../models/BusinessAccountApprovalRequirement.js';
|
|
53
54
|
import '../models/BusinessAccountApprovalsPending.js';
|
|
54
55
|
import '../models/BusinessAccountGovernedAction.js';
|
|
@@ -52,6 +52,7 @@ require('../models/BillingSubscriptionPlanTypeEnum.cjs');
|
|
|
52
52
|
require('../models/UnprocessableEntityErrorCode.cjs');
|
|
53
53
|
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
54
54
|
require('../models/BusinessAccountActionEnum.cjs');
|
|
55
|
+
require('../models/BusinessAccountActivityExport.cjs');
|
|
55
56
|
require('../models/BusinessAccountApprovalRequirement.cjs');
|
|
56
57
|
require('../models/BusinessAccountApprovalsPending.cjs');
|
|
57
58
|
require('../models/BusinessAccountGovernedAction.cjs');
|