@dynamic-labs/sdk-api 0.32.0 → 0.34.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.
Files changed (189) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +6 -0
  3. package/src/apis/AdminActionsApi.js +6 -0
  4. package/src/apis/AllowlistsApi.cjs +6 -0
  5. package/src/apis/AllowlistsApi.js +6 -0
  6. package/src/apis/AnalyticsApi.cjs +6 -0
  7. package/src/apis/AnalyticsApi.js +6 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +6 -0
  9. package/src/apis/AuthorizedClientsApi.js +6 -0
  10. package/src/apis/BusinessAccountsApi.cjs +6 -0
  11. package/src/apis/BusinessAccountsApi.js +6 -0
  12. package/src/apis/CaptchaApi.cjs +6 -0
  13. package/src/apis/CaptchaApi.js +6 -0
  14. package/src/apis/ChainalysisApi.cjs +6 -0
  15. package/src/apis/ChainalysisApi.js +6 -0
  16. package/src/apis/ChainsApi.cjs +6 -0
  17. package/src/apis/ChainsApi.js +6 -0
  18. package/src/apis/CheckoutApi.cjs +6 -0
  19. package/src/apis/CheckoutApi.js +6 -0
  20. package/src/apis/ClientGrantApi.cjs +6 -0
  21. package/src/apis/ClientGrantApi.js +6 -0
  22. package/src/apis/CustomFieldsApi.cjs +6 -0
  23. package/src/apis/CustomFieldsApi.js +6 -0
  24. package/src/apis/CustomHostnamesApi.cjs +6 -0
  25. package/src/apis/CustomHostnamesApi.js +6 -0
  26. package/src/apis/CustomNetworksApi.cjs +6 -0
  27. package/src/apis/CustomNetworksApi.js +6 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +6 -0
  29. package/src/apis/DeeplinkUrlsApi.js +6 -0
  30. package/src/apis/EnvironmentsApi.cjs +6 -0
  31. package/src/apis/EnvironmentsApi.js +6 -0
  32. package/src/apis/EventsApi.cjs +6 -0
  33. package/src/apis/EventsApi.js +6 -0
  34. package/src/apis/ExchangesApi.cjs +6 -0
  35. package/src/apis/ExchangesApi.js +6 -0
  36. package/src/apis/ExportsApi.cjs +6 -0
  37. package/src/apis/ExportsApi.js +6 -0
  38. package/src/apis/ExternalJwtApi.cjs +6 -0
  39. package/src/apis/ExternalJwtApi.js +6 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +6 -0
  41. package/src/apis/FlowAnalyticsApi.js +6 -0
  42. package/src/apis/GaslessApi.cjs +6 -0
  43. package/src/apis/GaslessApi.js +6 -0
  44. package/src/apis/GatesApi.cjs +6 -0
  45. package/src/apis/GatesApi.js +6 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +6 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +6 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +6 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +6 -0
  50. package/src/apis/GlobalWalletsApi.cjs +6 -0
  51. package/src/apis/GlobalWalletsApi.js +6 -0
  52. package/src/apis/InvitesApi.cjs +6 -0
  53. package/src/apis/InvitesApi.js +6 -0
  54. package/src/apis/KybApi.cjs +6 -0
  55. package/src/apis/KybApi.js +6 -0
  56. package/src/apis/MembersApi.cjs +6 -0
  57. package/src/apis/MembersApi.js +6 -0
  58. package/src/apis/MfaSettingsApi.cjs +6 -0
  59. package/src/apis/MfaSettingsApi.js +6 -0
  60. package/src/apis/NameServicesApi.cjs +6 -0
  61. package/src/apis/NameServicesApi.js +6 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +6 -0
  63. package/src/apis/OrganizationSettingsApi.js +6 -0
  64. package/src/apis/OrganizationsApi.cjs +6 -0
  65. package/src/apis/OrganizationsApi.js +6 -0
  66. package/src/apis/OriginsApi.cjs +6 -0
  67. package/src/apis/OriginsApi.js +6 -0
  68. package/src/apis/ProjectsApi.cjs +6 -0
  69. package/src/apis/ProjectsApi.js +6 -0
  70. package/src/apis/ProvidersApi.cjs +6 -0
  71. package/src/apis/ProvidersApi.js +6 -0
  72. package/src/apis/SDKApi.cjs +739 -4
  73. package/src/apis/SDKApi.d.ts +298 -5
  74. package/src/apis/SDKApi.js +739 -4
  75. package/src/apis/SDKViewsApi.cjs +6 -0
  76. package/src/apis/SDKViewsApi.js +6 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +6 -0
  78. package/src/apis/ScreeningPoliciesApi.js +6 -0
  79. package/src/apis/ServerApi.cjs +6 -0
  80. package/src/apis/ServerApi.js +6 -0
  81. package/src/apis/SessionsApi.cjs +6 -0
  82. package/src/apis/SessionsApi.js +6 -0
  83. package/src/apis/TestAccountApi.cjs +6 -0
  84. package/src/apis/TestAccountApi.js +6 -0
  85. package/src/apis/TokensApi.cjs +6 -0
  86. package/src/apis/TokensApi.js +6 -0
  87. package/src/apis/UserApiTokensApi.cjs +6 -0
  88. package/src/apis/UserApiTokensApi.js +6 -0
  89. package/src/apis/UsersApi.cjs +6 -0
  90. package/src/apis/UsersApi.js +6 -0
  91. package/src/apis/VisitsApi.cjs +6 -0
  92. package/src/apis/VisitsApi.js +6 -0
  93. package/src/apis/WaasApi.cjs +6 -0
  94. package/src/apis/WaasApi.js +6 -0
  95. package/src/apis/WalletConnectApi.cjs +6 -0
  96. package/src/apis/WalletConnectApi.js +6 -0
  97. package/src/apis/WalletsApi.cjs +6 -0
  98. package/src/apis/WalletsApi.js +6 -0
  99. package/src/apis/WebhooksApi.cjs +6 -0
  100. package/src/apis/WebhooksApi.js +6 -0
  101. package/src/apis/YieldApi.cjs +6 -0
  102. package/src/apis/YieldApi.js +6 -0
  103. package/src/apis/ZendeskApi.cjs +6 -0
  104. package/src/apis/ZendeskApi.js +6 -0
  105. package/src/index.cjs +116 -0
  106. package/src/index.d.ts +3 -1
  107. package/src/index.js +23 -0
  108. package/src/models/AddBusinessAccountMemberSdkRequest.cjs +6 -0
  109. package/src/models/AddBusinessAccountMemberSdkRequest.d.ts +21 -0
  110. package/src/models/AddBusinessAccountMemberSdkRequest.js +6 -0
  111. package/src/models/ApproveBusinessAccountProposalSdkRequest.cjs +45 -0
  112. package/src/models/ApproveBusinessAccountProposalSdkRequest.d.ts +33 -0
  113. package/src/models/ApproveBusinessAccountProposalSdkRequest.js +39 -0
  114. package/src/models/BusinessAccountApprovalRequirement.cjs +60 -0
  115. package/src/models/BusinessAccountApprovalRequirement.d.ts +89 -0
  116. package/src/models/BusinessAccountApprovalRequirement.js +54 -0
  117. package/src/models/BusinessAccountApprovalRequirementStatus.cjs +43 -0
  118. package/src/models/BusinessAccountApprovalRequirementStatus.d.ts +58 -0
  119. package/src/models/BusinessAccountApprovalRequirementStatus.js +37 -0
  120. package/src/models/BusinessAccountApprovalsPending.cjs +51 -0
  121. package/src/models/BusinessAccountApprovalsPending.d.ts +64 -0
  122. package/src/models/BusinessAccountApprovalsPending.js +45 -0
  123. package/src/models/BusinessAccountForbidden.cjs +36 -0
  124. package/src/models/BusinessAccountForbidden.d.ts +34 -0
  125. package/src/models/BusinessAccountForbidden.js +30 -0
  126. package/src/models/BusinessAccountForbiddenAllOf.cjs +34 -0
  127. package/src/models/BusinessAccountForbiddenAllOf.d.ts +28 -0
  128. package/src/models/BusinessAccountForbiddenAllOf.js +28 -0
  129. package/src/models/BusinessAccountGovernanceResponse.cjs +43 -0
  130. package/src/models/BusinessAccountGovernanceResponse.d.ts +30 -0
  131. package/src/models/BusinessAccountGovernanceResponse.js +37 -0
  132. package/src/models/BusinessAccountGovernedAction.cjs +50 -0
  133. package/src/models/BusinessAccountGovernedAction.d.ts +33 -0
  134. package/src/models/BusinessAccountGovernedAction.js +44 -0
  135. package/src/models/BusinessAccountMutationVersion.cjs +43 -0
  136. package/src/models/BusinessAccountMutationVersion.d.ts +27 -0
  137. package/src/models/BusinessAccountMutationVersion.js +37 -0
  138. package/src/models/BusinessAccountProposal.cjs +62 -0
  139. package/src/models/BusinessAccountProposal.d.ts +108 -0
  140. package/src/models/BusinessAccountProposal.js +56 -0
  141. package/src/models/BusinessAccountProposalApprovalRecord.cjs +37 -0
  142. package/src/models/BusinessAccountProposalApprovalRecord.d.ts +39 -0
  143. package/src/models/BusinessAccountProposalApprovalRecord.js +31 -0
  144. package/src/models/BusinessAccountProposalStatus.cjs +42 -0
  145. package/src/models/BusinessAccountProposalStatus.d.ts +25 -0
  146. package/src/models/BusinessAccountProposalStatus.js +36 -0
  147. package/src/models/BusinessAccountProposalSubject.cjs +35 -0
  148. package/src/models/BusinessAccountProposalSubject.d.ts +33 -0
  149. package/src/models/BusinessAccountProposalSubject.js +29 -0
  150. package/src/models/BusinessAccountRequirementCondition.cjs +43 -0
  151. package/src/models/BusinessAccountRequirementCondition.d.ts +57 -0
  152. package/src/models/BusinessAccountRequirementCondition.js +37 -0
  153. package/src/models/BusinessAccountRoleDefinition.cjs +52 -0
  154. package/src/models/BusinessAccountRoleDefinition.d.ts +35 -0
  155. package/src/models/BusinessAccountRoleDefinition.js +46 -0
  156. package/src/models/BusinessAccountRolesResponse.cjs +34 -0
  157. package/src/models/BusinessAccountRolesResponse.d.ts +30 -0
  158. package/src/models/BusinessAccountRolesResponse.js +28 -0
  159. package/src/models/BusinessAccountSigningRefused.cjs +37 -0
  160. package/src/models/BusinessAccountSigningRefused.d.ts +39 -0
  161. package/src/models/BusinessAccountSigningRefused.js +31 -0
  162. package/src/models/DefineBusinessAccountRoleSdkRequest.cjs +50 -0
  163. package/src/models/DefineBusinessAccountRoleSdkRequest.d.ts +62 -0
  164. package/src/models/DefineBusinessAccountRoleSdkRequest.js +44 -0
  165. package/src/models/DeleteBusinessAccountRoleSdkRequest.cjs +37 -0
  166. package/src/models/DeleteBusinessAccountRoleSdkRequest.d.ts +42 -0
  167. package/src/models/DeleteBusinessAccountRoleSdkRequest.js +31 -0
  168. package/src/models/RemoveBusinessAccountMemberSdkRequest.cjs +37 -0
  169. package/src/models/RemoveBusinessAccountMemberSdkRequest.d.ts +42 -0
  170. package/src/models/RemoveBusinessAccountMemberSdkRequest.js +31 -0
  171. package/src/models/RemoveBusinessAccountSignerSdkRequest.cjs +37 -0
  172. package/src/models/RemoveBusinessAccountSignerSdkRequest.d.ts +42 -0
  173. package/src/models/RemoveBusinessAccountSignerSdkRequest.js +31 -0
  174. package/src/models/RemoveBusinessAccountWalletSdkRequest.cjs +37 -0
  175. package/src/models/RemoveBusinessAccountWalletSdkRequest.d.ts +42 -0
  176. package/src/models/RemoveBusinessAccountWalletSdkRequest.js +31 -0
  177. package/src/models/SetBusinessAccountGovernanceSdkRequest.cjs +39 -0
  178. package/src/models/SetBusinessAccountGovernanceSdkRequest.d.ts +51 -0
  179. package/src/models/SetBusinessAccountGovernanceSdkRequest.js +33 -0
  180. package/src/models/TokenScope.cjs +8 -0
  181. package/src/models/TokenScope.d.ts +8 -0
  182. package/src/models/TokenScope.js +8 -0
  183. package/src/models/TransferBusinessAccountOwnershipSdkRequest.cjs +8 -12
  184. package/src/models/TransferBusinessAccountOwnershipSdkRequest.d.ts +21 -0
  185. package/src/models/TransferBusinessAccountOwnershipSdkRequest.js +8 -12
  186. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.cjs +7 -0
  187. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.d.ts +21 -0
  188. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.js +7 -0
  189. package/src/models/index.d.ts +23 -0
@@ -14,6 +14,7 @@ import '../models/TimeUnitEnum.js';
14
14
  import { AleoCuratedPricesResponseFromJSON } from '../models/AleoCuratedPricesResponse.js';
15
15
  import { AleoProverEncryptedRequestToJSON } from '../models/AleoProverEncryptedRequest.js';
16
16
  import { AleoProverPubkeyResponseFromJSON } from '../models/AleoProverPubkeyResponse.js';
17
+ import { ApproveBusinessAccountProposalSdkRequestToJSON } from '../models/ApproveBusinessAccountProposalSdkRequest.js';
17
18
  import '../models/AssignableBusinessAccountMemberRole.js';
18
19
  import { AttachSourceRequestToJSON } from '../models/AttachSourceRequest.js';
19
20
  import '../models/AttestationConveyancePreference.js';
@@ -54,8 +55,17 @@ import { MFADeviceFromJSON } from '../models/MFADevice.js';
54
55
  import { BusinessAccountFromJSON } from '../models/BusinessAccount.js';
55
56
  import '../models/BusinessAccountActionEnum.js';
56
57
  import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
58
+ import '../models/BusinessAccountApprovalRequirement.js';
59
+ import '../models/BusinessAccountApprovalsPending.js';
57
60
  import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.js';
61
+ import { BusinessAccountGovernanceResponseFromJSON } from '../models/BusinessAccountGovernanceResponse.js';
62
+ import '../models/BusinessAccountGovernedAction.js';
58
63
  import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
64
+ import { BusinessAccountMutationVersionFromJSON } from '../models/BusinessAccountMutationVersion.js';
65
+ import { BusinessAccountProposalFromJSON } from '../models/BusinessAccountProposal.js';
66
+ import '../models/BusinessAccountProposalStatus.js';
67
+ import '../models/BusinessAccountRoleDefinition.js';
68
+ import { BusinessAccountRolesResponseFromJSON } from '../models/BusinessAccountRolesResponse.js';
59
69
  import '../models/CaptchaProviderEnum.js';
60
70
  import '../models/DestinationTypeEnum.js';
61
71
  import '../models/ChainalysisExists.js';
@@ -104,9 +114,11 @@ import '../models/CustomHostnameStatusEnum.js';
104
114
  import '../models/CustomHostnameUsageEnum.js';
105
115
  import '../models/CustomHostnameVerificationType.js';
106
116
  import '../models/DnsRecordType.js';
117
+ import { DefineBusinessAccountRoleSdkRequestToJSON } from '../models/DefineBusinessAccountRoleSdkRequest.js';
107
118
  import '../models/DelegatedAccessEncryptionPublicKey.js';
108
119
  import { DelegatedShareDeliveryRequestToJSON } from '../models/DelegatedShareDeliveryRequest.js';
109
120
  import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShareDeliveryResponse.js';
121
+ import { DeleteBusinessAccountRoleSdkRequestToJSON } from '../models/DeleteBusinessAccountRoleSdkRequest.js';
110
122
  import { DeleteDeviceRegistrationResponseFromJSON } from '../models/DeleteDeviceRegistrationResponse.js';
111
123
  import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
112
124
  import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
@@ -256,6 +268,9 @@ import { RefreshKeySharesRequestToJSON } from '../models/RefreshKeySharesRequest
256
268
  import { RefreshKeySharesResponseFromJSON } from '../models/RefreshKeySharesResponse.js';
257
269
  import { RegisterEmbeddedWalletSessionKeyResponseFromJSON } from '../models/RegisterEmbeddedWalletSessionKeyResponse.js';
258
270
  import { RegisterSessionKeyRequestToJSON } from '../models/RegisterSessionKeyRequest.js';
271
+ import { RemoveBusinessAccountMemberSdkRequestToJSON } from '../models/RemoveBusinessAccountMemberSdkRequest.js';
272
+ import { RemoveBusinessAccountSignerSdkRequestToJSON } from '../models/RemoveBusinessAccountSignerSdkRequest.js';
273
+ import { RemoveBusinessAccountWalletSdkRequestToJSON } from '../models/RemoveBusinessAccountWalletSdkRequest.js';
259
274
  import '../models/ReshareKind.js';
260
275
  import { ReshareRequestToJSON } from '../models/ReshareRequest.js';
261
276
  import '../models/RoomTypeEnum.js';
@@ -272,6 +287,7 @@ import '../models/ScreeningPolicyScopeEnum.js';
272
287
  import '../models/ScreeningReason.js';
273
288
  import '../models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js';
274
289
  import { SdkSettingsRequestToJSON } from '../models/SdkSettingsRequest.js';
290
+ import { SetBusinessAccountGovernanceSdkRequestToJSON } from '../models/SetBusinessAccountGovernanceSdkRequest.js';
275
291
  import { SignAleoRequestWithWaasRequestToJSON } from '../models/SignAleoRequestWithWaasRequest.js';
276
292
  import '../models/SignMessageRawSign.js';
277
293
  import { SignMessageWithWaasRequestToJSON } from '../models/SignMessageWithWaasRequest.js';
@@ -8881,7 +8897,7 @@ class SDKApi extends BaseAPI {
8881
8897
  await this.screenTransactionOptionsRaw(requestParameters, initOverrides);
8882
8898
  }
8883
8899
  /**
8884
- * Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
8900
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
8885
8901
  * SDK — add a member to a business account
8886
8902
  */
8887
8903
  async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
@@ -8914,7 +8930,7 @@ class SDKApi extends BaseAPI {
8914
8930
  return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberFromJSON(jsonValue));
8915
8931
  }
8916
8932
  /**
8917
- * Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
8933
+ * Owner or admin by default; an account whose governance sets `eligibleInitiatorRoles` for `addMember` can widen that. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: an already-active member returns the existing row with 200. When the account governs `addMember` the response is 202, not 201 — first with the intent to sign, then with the proposal collecting approvals. Neither is a failure.
8918
8934
  * SDK — add a member to a business account
8919
8935
  */
8920
8936
  async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
@@ -8965,6 +8981,50 @@ class SDKApi extends BaseAPI {
8965
8981
  const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
8966
8982
  return await response.value();
8967
8983
  }
8984
+ /**
8985
+ * Records the caller\'s consent, signed with their session key. Requires step-up authentication: approving is the act that authorizes the mutation, so it carries the same weight as performing it. Recording an approval does not apply the change — call execute once the requirements are satisfied. An initiator can never approve their own intent; the enclave refuses it and so does this endpoint.
8986
+ * SDK — approve a proposal
8987
+ */
8988
+ async sdkApproveBusinessAccountProposalRaw(requestParameters, initOverrides) {
8989
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8990
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkApproveBusinessAccountProposal.');
8991
+ }
8992
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8993
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkApproveBusinessAccountProposal.');
8994
+ }
8995
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
8996
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkApproveBusinessAccountProposal.');
8997
+ }
8998
+ if (requestParameters.approveBusinessAccountProposalSdkRequest === null || requestParameters.approveBusinessAccountProposalSdkRequest === undefined) {
8999
+ throw new RequiredError('approveBusinessAccountProposalSdkRequest', 'Required parameter requestParameters.approveBusinessAccountProposalSdkRequest was null or undefined when calling sdkApproveBusinessAccountProposal.');
9000
+ }
9001
+ const queryParameters = {};
9002
+ const headerParameters = {};
9003
+ headerParameters['Content-Type'] = 'application/json';
9004
+ if (this.configuration && this.configuration.accessToken) {
9005
+ const token = this.configuration.accessToken;
9006
+ const tokenString = await token("bearerAuth", []);
9007
+ if (tokenString) {
9008
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9009
+ }
9010
+ }
9011
+ const response = await this.request({
9012
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/approvals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9013
+ method: 'POST',
9014
+ headers: headerParameters,
9015
+ query: queryParameters,
9016
+ body: ApproveBusinessAccountProposalSdkRequestToJSON(requestParameters.approveBusinessAccountProposalSdkRequest),
9017
+ }, initOverrides);
9018
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountProposalFromJSON(jsonValue));
9019
+ }
9020
+ /**
9021
+ * Records the caller\'s consent, signed with their session key. Requires step-up authentication: approving is the act that authorizes the mutation, so it carries the same weight as performing it. Recording an approval does not apply the change — call execute once the requirements are satisfied. An initiator can never approve their own intent; the enclave refuses it and so does this endpoint.
9022
+ * SDK — approve a proposal
9023
+ */
9024
+ async sdkApproveBusinessAccountProposal(requestParameters, initOverrides) {
9025
+ const response = await this.sdkApproveBusinessAccountProposalRaw(requestParameters, initOverrides);
9026
+ return await response.value();
9027
+ }
8968
9028
  /**
8969
9029
  * Options call for this endpoint
8970
9030
  */
@@ -8991,6 +9051,32 @@ class SDKApi extends BaseAPI {
8991
9051
  async sdkBusinessAccountByIdOptions(requestParameters, initOverrides) {
8992
9052
  await this.sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides);
8993
9053
  }
9054
+ /**
9055
+ * Options call for this endpoint
9056
+ */
9057
+ async sdkBusinessAccountGovernanceOptionsRaw(requestParameters, initOverrides) {
9058
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9059
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountGovernanceOptions.');
9060
+ }
9061
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9062
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountGovernanceOptions.');
9063
+ }
9064
+ const queryParameters = {};
9065
+ const headerParameters = {};
9066
+ const response = await this.request({
9067
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9068
+ method: 'OPTIONS',
9069
+ headers: headerParameters,
9070
+ query: queryParameters,
9071
+ }, initOverrides);
9072
+ return new VoidApiResponse(response);
9073
+ }
9074
+ /**
9075
+ * Options call for this endpoint
9076
+ */
9077
+ async sdkBusinessAccountGovernanceOptions(requestParameters, initOverrides) {
9078
+ await this.sdkBusinessAccountGovernanceOptionsRaw(requestParameters, initOverrides);
9079
+ }
8994
9080
  /**
8995
9081
  * Options call for this endpoint
8996
9082
  */
@@ -9095,6 +9181,226 @@ class SDKApi extends BaseAPI {
9095
9181
  async sdkBusinessAccountPolicyLayerOptions(requestParameters, initOverrides) {
9096
9182
  await this.sdkBusinessAccountPolicyLayerOptionsRaw(requestParameters, initOverrides);
9097
9183
  }
9184
+ /**
9185
+ * Options call for this endpoint
9186
+ */
9187
+ async sdkBusinessAccountProposalApprovalsOptionsRaw(requestParameters, initOverrides) {
9188
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9189
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountProposalApprovalsOptions.');
9190
+ }
9191
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9192
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountProposalApprovalsOptions.');
9193
+ }
9194
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
9195
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkBusinessAccountProposalApprovalsOptions.');
9196
+ }
9197
+ const queryParameters = {};
9198
+ const headerParameters = {};
9199
+ const response = await this.request({
9200
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/approvals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9201
+ method: 'OPTIONS',
9202
+ headers: headerParameters,
9203
+ query: queryParameters,
9204
+ }, initOverrides);
9205
+ return new VoidApiResponse(response);
9206
+ }
9207
+ /**
9208
+ * Options call for this endpoint
9209
+ */
9210
+ async sdkBusinessAccountProposalApprovalsOptions(requestParameters, initOverrides) {
9211
+ await this.sdkBusinessAccountProposalApprovalsOptionsRaw(requestParameters, initOverrides);
9212
+ }
9213
+ /**
9214
+ * Options call for this endpoint
9215
+ */
9216
+ async sdkBusinessAccountProposalExecuteOptionsRaw(requestParameters, initOverrides) {
9217
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9218
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountProposalExecuteOptions.');
9219
+ }
9220
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9221
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountProposalExecuteOptions.');
9222
+ }
9223
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
9224
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkBusinessAccountProposalExecuteOptions.');
9225
+ }
9226
+ const queryParameters = {};
9227
+ const headerParameters = {};
9228
+ const response = await this.request({
9229
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/execute`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9230
+ method: 'OPTIONS',
9231
+ headers: headerParameters,
9232
+ query: queryParameters,
9233
+ }, initOverrides);
9234
+ return new VoidApiResponse(response);
9235
+ }
9236
+ /**
9237
+ * Options call for this endpoint
9238
+ */
9239
+ async sdkBusinessAccountProposalExecuteOptions(requestParameters, initOverrides) {
9240
+ await this.sdkBusinessAccountProposalExecuteOptionsRaw(requestParameters, initOverrides);
9241
+ }
9242
+ /**
9243
+ * Options call for this endpoint
9244
+ */
9245
+ async sdkBusinessAccountProposalOptionsRaw(requestParameters, initOverrides) {
9246
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9247
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountProposalOptions.');
9248
+ }
9249
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9250
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountProposalOptions.');
9251
+ }
9252
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
9253
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkBusinessAccountProposalOptions.');
9254
+ }
9255
+ const queryParameters = {};
9256
+ const headerParameters = {};
9257
+ const response = await this.request({
9258
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9259
+ method: 'OPTIONS',
9260
+ headers: headerParameters,
9261
+ query: queryParameters,
9262
+ }, initOverrides);
9263
+ return new VoidApiResponse(response);
9264
+ }
9265
+ /**
9266
+ * Options call for this endpoint
9267
+ */
9268
+ async sdkBusinessAccountProposalOptions(requestParameters, initOverrides) {
9269
+ await this.sdkBusinessAccountProposalOptionsRaw(requestParameters, initOverrides);
9270
+ }
9271
+ /**
9272
+ * Options call for this endpoint
9273
+ */
9274
+ async sdkBusinessAccountProposalVetoOptionsRaw(requestParameters, initOverrides) {
9275
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9276
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountProposalVetoOptions.');
9277
+ }
9278
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9279
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountProposalVetoOptions.');
9280
+ }
9281
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
9282
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkBusinessAccountProposalVetoOptions.');
9283
+ }
9284
+ const queryParameters = {};
9285
+ const headerParameters = {};
9286
+ const response = await this.request({
9287
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/veto`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9288
+ method: 'OPTIONS',
9289
+ headers: headerParameters,
9290
+ query: queryParameters,
9291
+ }, initOverrides);
9292
+ return new VoidApiResponse(response);
9293
+ }
9294
+ /**
9295
+ * Options call for this endpoint
9296
+ */
9297
+ async sdkBusinessAccountProposalVetoOptions(requestParameters, initOverrides) {
9298
+ await this.sdkBusinessAccountProposalVetoOptionsRaw(requestParameters, initOverrides);
9299
+ }
9300
+ /**
9301
+ * Options call for this endpoint
9302
+ */
9303
+ async sdkBusinessAccountProposalsAwaitingApprovalOptionsRaw(requestParameters, initOverrides) {
9304
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9305
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountProposalsAwaitingApprovalOptions.');
9306
+ }
9307
+ const queryParameters = {};
9308
+ const headerParameters = {};
9309
+ const response = await this.request({
9310
+ path: `/sdk/{environmentId}/businessAccounts/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
9311
+ method: 'OPTIONS',
9312
+ headers: headerParameters,
9313
+ query: queryParameters,
9314
+ }, initOverrides);
9315
+ return new VoidApiResponse(response);
9316
+ }
9317
+ /**
9318
+ * Options call for this endpoint
9319
+ */
9320
+ async sdkBusinessAccountProposalsAwaitingApprovalOptions(requestParameters, initOverrides) {
9321
+ await this.sdkBusinessAccountProposalsAwaitingApprovalOptionsRaw(requestParameters, initOverrides);
9322
+ }
9323
+ /**
9324
+ * Options call for this endpoint
9325
+ */
9326
+ async sdkBusinessAccountProposalsOptionsRaw(requestParameters, initOverrides) {
9327
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9328
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountProposalsOptions.');
9329
+ }
9330
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9331
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountProposalsOptions.');
9332
+ }
9333
+ const queryParameters = {};
9334
+ const headerParameters = {};
9335
+ const response = await this.request({
9336
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9337
+ method: 'OPTIONS',
9338
+ headers: headerParameters,
9339
+ query: queryParameters,
9340
+ }, initOverrides);
9341
+ return new VoidApiResponse(response);
9342
+ }
9343
+ /**
9344
+ * Options call for this endpoint
9345
+ */
9346
+ async sdkBusinessAccountProposalsOptions(requestParameters, initOverrides) {
9347
+ await this.sdkBusinessAccountProposalsOptionsRaw(requestParameters, initOverrides);
9348
+ }
9349
+ /**
9350
+ * Options call for this endpoint
9351
+ */
9352
+ async sdkBusinessAccountRoleOptionsRaw(requestParameters, initOverrides) {
9353
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9354
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountRoleOptions.');
9355
+ }
9356
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9357
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountRoleOptions.');
9358
+ }
9359
+ if (requestParameters.role === null || requestParameters.role === undefined) {
9360
+ throw new RequiredError('role', 'Required parameter requestParameters.role was null or undefined when calling sdkBusinessAccountRoleOptions.');
9361
+ }
9362
+ const queryParameters = {};
9363
+ const headerParameters = {};
9364
+ const response = await this.request({
9365
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/roles/{role}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters.role))),
9366
+ method: 'OPTIONS',
9367
+ headers: headerParameters,
9368
+ query: queryParameters,
9369
+ }, initOverrides);
9370
+ return new VoidApiResponse(response);
9371
+ }
9372
+ /**
9373
+ * Options call for this endpoint
9374
+ */
9375
+ async sdkBusinessAccountRoleOptions(requestParameters, initOverrides) {
9376
+ await this.sdkBusinessAccountRoleOptionsRaw(requestParameters, initOverrides);
9377
+ }
9378
+ /**
9379
+ * Options call for this endpoint
9380
+ */
9381
+ async sdkBusinessAccountRolesOptionsRaw(requestParameters, initOverrides) {
9382
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9383
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountRolesOptions.');
9384
+ }
9385
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9386
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountRolesOptions.');
9387
+ }
9388
+ const queryParameters = {};
9389
+ const headerParameters = {};
9390
+ const response = await this.request({
9391
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9392
+ method: 'OPTIONS',
9393
+ headers: headerParameters,
9394
+ query: queryParameters,
9395
+ }, initOverrides);
9396
+ return new VoidApiResponse(response);
9397
+ }
9398
+ /**
9399
+ * Options call for this endpoint
9400
+ */
9401
+ async sdkBusinessAccountRolesOptions(requestParameters, initOverrides) {
9402
+ await this.sdkBusinessAccountRolesOptionsRaw(requestParameters, initOverrides);
9403
+ }
9098
9404
  /**
9099
9405
  * Options call for this endpoint
9100
9406
  */
@@ -9269,6 +9575,127 @@ class SDKApi extends BaseAPI {
9269
9575
  const response = await this.sdkCreateBusinessAccountRaw(requestParameters, initOverrides);
9270
9576
  return await response.value();
9271
9577
  }
9578
+ /**
9579
+ * 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.
9580
+ * SDK — define a customer role for a business account
9581
+ */
9582
+ async sdkDefineBusinessAccountRoleRaw(requestParameters, initOverrides) {
9583
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9584
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkDefineBusinessAccountRole.');
9585
+ }
9586
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9587
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkDefineBusinessAccountRole.');
9588
+ }
9589
+ if (requestParameters.defineBusinessAccountRoleSdkRequest === null || requestParameters.defineBusinessAccountRoleSdkRequest === undefined) {
9590
+ throw new RequiredError('defineBusinessAccountRoleSdkRequest', 'Required parameter requestParameters.defineBusinessAccountRoleSdkRequest was null or undefined when calling sdkDefineBusinessAccountRole.');
9591
+ }
9592
+ const queryParameters = {};
9593
+ const headerParameters = {};
9594
+ headerParameters['Content-Type'] = 'application/json';
9595
+ if (this.configuration && this.configuration.accessToken) {
9596
+ const token = this.configuration.accessToken;
9597
+ const tokenString = await token("bearerAuth", []);
9598
+ if (tokenString) {
9599
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9600
+ }
9601
+ }
9602
+ const response = await this.request({
9603
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9604
+ method: 'POST',
9605
+ headers: headerParameters,
9606
+ query: queryParameters,
9607
+ body: DefineBusinessAccountRoleSdkRequestToJSON(requestParameters.defineBusinessAccountRoleSdkRequest),
9608
+ }, initOverrides);
9609
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountMutationVersionFromJSON(jsonValue));
9610
+ }
9611
+ /**
9612
+ * 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.
9613
+ * SDK — define a customer role for a business account
9614
+ */
9615
+ async sdkDefineBusinessAccountRole(requestParameters, initOverrides) {
9616
+ const response = await this.sdkDefineBusinessAccountRoleRaw(requestParameters, initOverrides);
9617
+ return await response.value();
9618
+ }
9619
+ /**
9620
+ * Refused while the role still holds members or is named by an approval requirement, so a delete cannot strand people or leave a rule unsatisfiable. Requires step-up authentication.
9621
+ * SDK — delete a customer role from a business account
9622
+ */
9623
+ async sdkDeleteBusinessAccountRoleRaw(requestParameters, initOverrides) {
9624
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9625
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkDeleteBusinessAccountRole.');
9626
+ }
9627
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9628
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkDeleteBusinessAccountRole.');
9629
+ }
9630
+ if (requestParameters.role === null || requestParameters.role === undefined) {
9631
+ throw new RequiredError('role', 'Required parameter requestParameters.role was null or undefined when calling sdkDeleteBusinessAccountRole.');
9632
+ }
9633
+ const queryParameters = {};
9634
+ const headerParameters = {};
9635
+ headerParameters['Content-Type'] = 'application/json';
9636
+ if (this.configuration && this.configuration.accessToken) {
9637
+ const token = this.configuration.accessToken;
9638
+ const tokenString = await token("bearerAuth", []);
9639
+ if (tokenString) {
9640
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9641
+ }
9642
+ }
9643
+ const response = await this.request({
9644
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/roles/{role}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters.role))),
9645
+ method: 'DELETE',
9646
+ headers: headerParameters,
9647
+ query: queryParameters,
9648
+ body: DeleteBusinessAccountRoleSdkRequestToJSON(requestParameters.deleteBusinessAccountRoleSdkRequest),
9649
+ }, initOverrides);
9650
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountMutationVersionFromJSON(jsonValue));
9651
+ }
9652
+ /**
9653
+ * Refused while the role still holds members or is named by an approval requirement, so a delete cannot strand people or leave a rule unsatisfiable. Requires step-up authentication.
9654
+ * SDK — delete a customer role from a business account
9655
+ */
9656
+ async sdkDeleteBusinessAccountRole(requestParameters, initOverrides) {
9657
+ const response = await this.sdkDeleteBusinessAccountRoleRaw(requestParameters, initOverrides);
9658
+ return await response.value();
9659
+ }
9660
+ /**
9661
+ * 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.
9662
+ * SDK — apply a proposal whose approvals now satisfy it
9663
+ */
9664
+ async sdkExecuteBusinessAccountProposalRaw(requestParameters, initOverrides) {
9665
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9666
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkExecuteBusinessAccountProposal.');
9667
+ }
9668
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9669
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkExecuteBusinessAccountProposal.');
9670
+ }
9671
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
9672
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkExecuteBusinessAccountProposal.');
9673
+ }
9674
+ const queryParameters = {};
9675
+ const headerParameters = {};
9676
+ if (this.configuration && this.configuration.accessToken) {
9677
+ const token = this.configuration.accessToken;
9678
+ const tokenString = await token("bearerAuth", []);
9679
+ if (tokenString) {
9680
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9681
+ }
9682
+ }
9683
+ const response = await this.request({
9684
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/execute`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9685
+ method: 'POST',
9686
+ headers: headerParameters,
9687
+ query: queryParameters,
9688
+ }, initOverrides);
9689
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountMutationVersionFromJSON(jsonValue));
9690
+ }
9691
+ /**
9692
+ * 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.
9693
+ * SDK — apply a proposal whose approvals now satisfy it
9694
+ */
9695
+ async sdkExecuteBusinessAccountProposal(requestParameters, initOverrides) {
9696
+ const response = await this.sdkExecuteBusinessAccountProposalRaw(requestParameters, initOverrides);
9697
+ return await response.value();
9698
+ }
9272
9699
  /**
9273
9700
  * Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
9274
9701
  * SDK — get a business account with embedded members and signers
@@ -9305,6 +9732,81 @@ class SDKApi extends BaseAPI {
9305
9732
  const response = await this.sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides);
9306
9733
  return await response.value();
9307
9734
  }
9735
+ /**
9736
+ * Readable by any member: names which of the account\'s actions need consent before attempting one. Also needed to use `PUT`, which replaces the section wholesale — changing one action means merging against this value first. Empty object when nothing is governed; that is an answer, not a 404.
9737
+ * SDK — read the approval requirements in force
9738
+ */
9739
+ async sdkGetBusinessAccountGovernanceRaw(requestParameters, initOverrides) {
9740
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9741
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountGovernance.');
9742
+ }
9743
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9744
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountGovernance.');
9745
+ }
9746
+ const queryParameters = {};
9747
+ const headerParameters = {};
9748
+ if (this.configuration && this.configuration.accessToken) {
9749
+ const token = this.configuration.accessToken;
9750
+ const tokenString = await token("bearerAuth", []);
9751
+ if (tokenString) {
9752
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9753
+ }
9754
+ }
9755
+ const response = await this.request({
9756
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9757
+ method: 'GET',
9758
+ headers: headerParameters,
9759
+ query: queryParameters,
9760
+ }, initOverrides);
9761
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountGovernanceResponseFromJSON(jsonValue));
9762
+ }
9763
+ /**
9764
+ * Readable by any member: names which of the account\'s actions need consent before attempting one. Also needed to use `PUT`, which replaces the section wholesale — changing one action means merging against this value first. Empty object when nothing is governed; that is an answer, not a 404.
9765
+ * SDK — read the approval requirements in force
9766
+ */
9767
+ async sdkGetBusinessAccountGovernance(requestParameters, initOverrides) {
9768
+ const response = await this.sdkGetBusinessAccountGovernanceRaw(requestParameters, initOverrides);
9769
+ return await response.value();
9770
+ }
9771
+ /**
9772
+ * Returns the stored intent verbatim. An approver signs THESE bytes: a re-derived intent would carry a different `intentId` and `createdAt`, and every approval already collected would stop verifying.
9773
+ * SDK — read one proposal, including the intent to sign
9774
+ */
9775
+ async sdkGetBusinessAccountProposalRaw(requestParameters, initOverrides) {
9776
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9777
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkGetBusinessAccountProposal.');
9778
+ }
9779
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9780
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkGetBusinessAccountProposal.');
9781
+ }
9782
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
9783
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkGetBusinessAccountProposal.');
9784
+ }
9785
+ const queryParameters = {};
9786
+ const headerParameters = {};
9787
+ if (this.configuration && this.configuration.accessToken) {
9788
+ const token = this.configuration.accessToken;
9789
+ const tokenString = await token("bearerAuth", []);
9790
+ if (tokenString) {
9791
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9792
+ }
9793
+ }
9794
+ const response = await this.request({
9795
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
9796
+ method: 'GET',
9797
+ headers: headerParameters,
9798
+ query: queryParameters,
9799
+ }, initOverrides);
9800
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountProposalFromJSON(jsonValue));
9801
+ }
9802
+ /**
9803
+ * Returns the stored intent verbatim. An approver signs THESE bytes: a re-derived intent would carry a different `intentId` and `createdAt`, and every approval already collected would stop verifying.
9804
+ * SDK — read one proposal, including the intent to sign
9805
+ */
9806
+ async sdkGetBusinessAccountProposal(requestParameters, initOverrides) {
9807
+ const response = await this.sdkGetBusinessAccountProposalRaw(requestParameters, initOverrides);
9808
+ return await response.value();
9809
+ }
9308
9810
  /**
9309
9811
  * Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
9310
9812
  * SDK — add an existing wallet to a business account
@@ -9343,6 +9845,114 @@ class SDKApi extends BaseAPI {
9343
9845
  const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
9344
9846
  return await response.value();
9345
9847
  }
9848
+ /**
9849
+ * 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.
9850
+ * SDK — list the governed mutations awaiting approval
9851
+ */
9852
+ async sdkListBusinessAccountProposalsRaw(requestParameters, initOverrides) {
9853
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9854
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountProposals.');
9855
+ }
9856
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9857
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountProposals.');
9858
+ }
9859
+ const queryParameters = {};
9860
+ if (requestParameters.status !== undefined) {
9861
+ queryParameters['status'] = requestParameters.status;
9862
+ }
9863
+ const headerParameters = {};
9864
+ if (this.configuration && this.configuration.accessToken) {
9865
+ const token = this.configuration.accessToken;
9866
+ const tokenString = await token("bearerAuth", []);
9867
+ if (tokenString) {
9868
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9869
+ }
9870
+ }
9871
+ const response = await this.request({
9872
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9873
+ method: 'GET',
9874
+ headers: headerParameters,
9875
+ query: queryParameters,
9876
+ }, initOverrides);
9877
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(BusinessAccountProposalFromJSON));
9878
+ }
9879
+ /**
9880
+ * 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.
9881
+ * SDK — list the governed mutations awaiting approval
9882
+ */
9883
+ async sdkListBusinessAccountProposals(requestParameters, initOverrides) {
9884
+ const response = await this.sdkListBusinessAccountProposalsRaw(requestParameters, initOverrides);
9885
+ return await response.value();
9886
+ }
9887
+ /**
9888
+ * Every pending proposal waiting on the caller, across all the business accounts they belong to in this environment — without it an approver can only learn of one out of band. Scoped to the caller\'s own memberships, so it can never include another tenant\'s proposals. Proposals the caller initiated are excluded: proposing is not approving.
9889
+ * SDK — list proposals awaiting the caller\'s approval, across accounts
9890
+ */
9891
+ async sdkListBusinessAccountProposalsAwaitingApprovalRaw(requestParameters, initOverrides) {
9892
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9893
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountProposalsAwaitingApproval.');
9894
+ }
9895
+ const queryParameters = {};
9896
+ const headerParameters = {};
9897
+ if (this.configuration && this.configuration.accessToken) {
9898
+ const token = this.configuration.accessToken;
9899
+ const tokenString = await token("bearerAuth", []);
9900
+ if (tokenString) {
9901
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9902
+ }
9903
+ }
9904
+ const response = await this.request({
9905
+ path: `/sdk/{environmentId}/businessAccounts/proposals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
9906
+ method: 'GET',
9907
+ headers: headerParameters,
9908
+ query: queryParameters,
9909
+ }, initOverrides);
9910
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(BusinessAccountProposalFromJSON));
9911
+ }
9912
+ /**
9913
+ * Every pending proposal waiting on the caller, across all the business accounts they belong to in this environment — without it an approver can only learn of one out of band. Scoped to the caller\'s own memberships, so it can never include another tenant\'s proposals. Proposals the caller initiated are excluded: proposing is not approving.
9914
+ * SDK — list proposals awaiting the caller\'s approval, across accounts
9915
+ */
9916
+ async sdkListBusinessAccountProposalsAwaitingApproval(requestParameters, initOverrides) {
9917
+ const response = await this.sdkListBusinessAccountProposalsAwaitingApprovalRaw(requestParameters, initOverrides);
9918
+ return await response.value();
9919
+ }
9920
+ /**
9921
+ * Readable by any member. Names the roles the account has defined and the built-in each inherits, which is what a caller needs before referring to one in governance or when assigning a member. Returns an empty object when none are defined; that is an answer, not a missing resource.
9922
+ * SDK — list the customer-defined roles for a business account
9923
+ */
9924
+ async sdkListBusinessAccountRolesRaw(requestParameters, initOverrides) {
9925
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
9926
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkListBusinessAccountRoles.');
9927
+ }
9928
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
9929
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkListBusinessAccountRoles.');
9930
+ }
9931
+ const queryParameters = {};
9932
+ const headerParameters = {};
9933
+ if (this.configuration && this.configuration.accessToken) {
9934
+ const token = this.configuration.accessToken;
9935
+ const tokenString = await token("bearerAuth", []);
9936
+ if (tokenString) {
9937
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
9938
+ }
9939
+ }
9940
+ const response = await this.request({
9941
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/roles`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
9942
+ method: 'GET',
9943
+ headers: headerParameters,
9944
+ query: queryParameters,
9945
+ }, initOverrides);
9946
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountRolesResponseFromJSON(jsonValue));
9947
+ }
9948
+ /**
9949
+ * Readable by any member. Names the roles the account has defined and the built-in each inherits, which is what a caller needs before referring to one in governance or when assigning a member. Returns an empty object when none are defined; that is an answer, not a missing resource.
9950
+ * SDK — list the customer-defined roles for a business account
9951
+ */
9952
+ async sdkListBusinessAccountRoles(requestParameters, initOverrides) {
9953
+ const response = await this.sdkListBusinessAccountRolesRaw(requestParameters, initOverrides);
9954
+ return await response.value();
9955
+ }
9346
9956
  /**
9347
9957
  * SDK — list business accounts the caller is a member of
9348
9958
  */
@@ -9393,6 +10003,7 @@ class SDKApi extends BaseAPI {
9393
10003
  }
9394
10004
  const queryParameters = {};
9395
10005
  const headerParameters = {};
10006
+ headerParameters['Content-Type'] = 'application/json';
9396
10007
  if (this.configuration && this.configuration.accessToken) {
9397
10008
  const token = this.configuration.accessToken;
9398
10009
  const tokenString = await token("bearerAuth", []);
@@ -9405,6 +10016,7 @@ class SDKApi extends BaseAPI {
9405
10016
  method: 'DELETE',
9406
10017
  headers: headerParameters,
9407
10018
  query: queryParameters,
10019
+ body: RemoveBusinessAccountMemberSdkRequestToJSON(requestParameters.removeBusinessAccountMemberSdkRequest),
9408
10020
  }, initOverrides);
9409
10021
  return new JSONApiResponse(response, (jsonValue) => InlineResponse2008FromJSON(jsonValue));
9410
10022
  }
@@ -9417,7 +10029,7 @@ class SDKApi extends BaseAPI {
9417
10029
  return await response.value();
9418
10030
  }
9419
10031
  /**
9420
- * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
10032
+ * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service — owner or admin by default, wider if the account\'s governance sets `eligibleInitiatorRoles` for `removeSignerFromWallet`. Returns 409 if removing the signer would leave the wallet with zero active signers.
9421
10033
  * SDK — remove a signer from a wallet in a business account
9422
10034
  */
9423
10035
  async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
@@ -9435,6 +10047,7 @@ class SDKApi extends BaseAPI {
9435
10047
  }
9436
10048
  const queryParameters = {};
9437
10049
  const headerParameters = {};
10050
+ headerParameters['Content-Type'] = 'application/json';
9438
10051
  if (this.configuration && this.configuration.accessToken) {
9439
10052
  const token = this.configuration.accessToken;
9440
10053
  const tokenString = await token("bearerAuth", []);
@@ -9447,11 +10060,12 @@ class SDKApi extends BaseAPI {
9447
10060
  method: 'DELETE',
9448
10061
  headers: headerParameters,
9449
10062
  query: queryParameters,
10063
+ body: RemoveBusinessAccountSignerSdkRequestToJSON(requestParameters.removeBusinessAccountSignerSdkRequest),
9450
10064
  }, initOverrides);
9451
10065
  return new JSONApiResponse(response, (jsonValue) => InlineResponse2009FromJSON(jsonValue));
9452
10066
  }
9453
10067
  /**
9454
- * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
10068
+ * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service — owner or admin by default, wider if the account\'s governance sets `eligibleInitiatorRoles` for `removeSignerFromWallet`. Returns 409 if removing the signer would leave the wallet with zero active signers.
9455
10069
  * SDK — remove a signer from a wallet in a business account
9456
10070
  */
9457
10071
  async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
@@ -9474,6 +10088,7 @@ class SDKApi extends BaseAPI {
9474
10088
  }
9475
10089
  const queryParameters = {};
9476
10090
  const headerParameters = {};
10091
+ headerParameters['Content-Type'] = 'application/json';
9477
10092
  if (this.configuration && this.configuration.accessToken) {
9478
10093
  const token = this.configuration.accessToken;
9479
10094
  const tokenString = await token("bearerAuth", []);
@@ -9486,6 +10101,7 @@ class SDKApi extends BaseAPI {
9486
10101
  method: 'DELETE',
9487
10102
  headers: headerParameters,
9488
10103
  query: queryParameters,
10104
+ body: RemoveBusinessAccountWalletSdkRequestToJSON(requestParameters.removeBusinessAccountWalletSdkRequest),
9489
10105
  }, initOverrides);
9490
10106
  return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
9491
10107
  }
@@ -9497,6 +10113,47 @@ class SDKApi extends BaseAPI {
9497
10113
  const response = await this.sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides);
9498
10114
  return await response.value();
9499
10115
  }
10116
+ /**
10117
+ * Replaces the governance section wholesale, matching the enclave: a caller sending one action\'s rules drops the others. Requires step-up authentication, because governance decides what every other mutation requires.
10118
+ * SDK — replace the approval requirements for a business account
10119
+ */
10120
+ async sdkSetBusinessAccountGovernanceRaw(requestParameters, initOverrides) {
10121
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10122
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkSetBusinessAccountGovernance.');
10123
+ }
10124
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
10125
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkSetBusinessAccountGovernance.');
10126
+ }
10127
+ if (requestParameters.setBusinessAccountGovernanceSdkRequest === null || requestParameters.setBusinessAccountGovernanceSdkRequest === undefined) {
10128
+ throw new RequiredError('setBusinessAccountGovernanceSdkRequest', 'Required parameter requestParameters.setBusinessAccountGovernanceSdkRequest was null or undefined when calling sdkSetBusinessAccountGovernance.');
10129
+ }
10130
+ const queryParameters = {};
10131
+ const headerParameters = {};
10132
+ headerParameters['Content-Type'] = 'application/json';
10133
+ if (this.configuration && this.configuration.accessToken) {
10134
+ const token = this.configuration.accessToken;
10135
+ const tokenString = await token("bearerAuth", []);
10136
+ if (tokenString) {
10137
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
10138
+ }
10139
+ }
10140
+ const response = await this.request({
10141
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/governance`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
10142
+ method: 'PUT',
10143
+ headers: headerParameters,
10144
+ query: queryParameters,
10145
+ body: SetBusinessAccountGovernanceSdkRequestToJSON(requestParameters.setBusinessAccountGovernanceSdkRequest),
10146
+ }, initOverrides);
10147
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountMutationVersionFromJSON(jsonValue));
10148
+ }
10149
+ /**
10150
+ * Replaces the governance section wholesale, matching the enclave: a caller sending one action\'s rules drops the others. Requires step-up authentication, because governance decides what every other mutation requires.
10151
+ * SDK — replace the approval requirements for a business account
10152
+ */
10153
+ async sdkSetBusinessAccountGovernance(requestParameters, initOverrides) {
10154
+ const response = await this.sdkSetBusinessAccountGovernanceRaw(requestParameters, initOverrides);
10155
+ return await response.value();
10156
+ }
9500
10157
  /**
9501
10158
  */
9502
10159
  async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
@@ -9642,6 +10299,84 @@ class SDKApi extends BaseAPI {
9642
10299
  const response = await this.sdkUpdateBusinessAccountMemberRoleRaw(requestParameters, initOverrides);
9643
10300
  return await response.value();
9644
10301
  }
10302
+ /**
10303
+ * Terminal, and different from withdrawing an approval: a veto ends the proposal rather than reducing its count. Requires step-up authentication — killing a proposal is destructive and irreversible, so it carries the same weight as approving one. Enforced by the application rather than the signed document, because the absence of a veto is not provable in a stateless request. It works because the application is the only path to the enclave, so declining to forward genuinely stops it.
10304
+ * SDK — kill a proposal
10305
+ */
10306
+ async sdkVetoBusinessAccountProposalRaw(requestParameters, initOverrides) {
10307
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10308
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkVetoBusinessAccountProposal.');
10309
+ }
10310
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
10311
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkVetoBusinessAccountProposal.');
10312
+ }
10313
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
10314
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkVetoBusinessAccountProposal.');
10315
+ }
10316
+ const queryParameters = {};
10317
+ const headerParameters = {};
10318
+ if (this.configuration && this.configuration.accessToken) {
10319
+ const token = this.configuration.accessToken;
10320
+ const tokenString = await token("bearerAuth", []);
10321
+ if (tokenString) {
10322
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
10323
+ }
10324
+ }
10325
+ const response = await this.request({
10326
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/veto`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
10327
+ method: 'POST',
10328
+ headers: headerParameters,
10329
+ query: queryParameters,
10330
+ }, initOverrides);
10331
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountProposalFromJSON(jsonValue));
10332
+ }
10333
+ /**
10334
+ * Terminal, and different from withdrawing an approval: a veto ends the proposal rather than reducing its count. Requires step-up authentication — killing a proposal is destructive and irreversible, so it carries the same weight as approving one. Enforced by the application rather than the signed document, because the absence of a veto is not provable in a stateless request. It works because the application is the only path to the enclave, so declining to forward genuinely stops it.
10335
+ * SDK — kill a proposal
10336
+ */
10337
+ async sdkVetoBusinessAccountProposal(requestParameters, initOverrides) {
10338
+ const response = await this.sdkVetoBusinessAccountProposalRaw(requestParameters, initOverrides);
10339
+ return await response.value();
10340
+ }
10341
+ /**
10342
+ * Marks the caller\'s approval revoked rather than deleting it, so the record that consent was given and then taken back survives. A revoked approval stops being forwarded to the enclave, which is what makes withdrawal actually reduce the count.
10343
+ * SDK — withdraw the caller\'s approval
10344
+ */
10345
+ async sdkWithdrawBusinessAccountProposalApprovalRaw(requestParameters, initOverrides) {
10346
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10347
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkWithdrawBusinessAccountProposalApproval.');
10348
+ }
10349
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
10350
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkWithdrawBusinessAccountProposalApproval.');
10351
+ }
10352
+ if (requestParameters.proposalId === null || requestParameters.proposalId === undefined) {
10353
+ throw new RequiredError('proposalId', 'Required parameter requestParameters.proposalId was null or undefined when calling sdkWithdrawBusinessAccountProposalApproval.');
10354
+ }
10355
+ const queryParameters = {};
10356
+ const headerParameters = {};
10357
+ if (this.configuration && this.configuration.accessToken) {
10358
+ const token = this.configuration.accessToken;
10359
+ const tokenString = await token("bearerAuth", []);
10360
+ if (tokenString) {
10361
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
10362
+ }
10363
+ }
10364
+ const response = await this.request({
10365
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/proposals/{proposalId}/approvals`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"proposalId"}}`, encodeURIComponent(String(requestParameters.proposalId))),
10366
+ method: 'DELETE',
10367
+ headers: headerParameters,
10368
+ query: queryParameters,
10369
+ }, initOverrides);
10370
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountProposalFromJSON(jsonValue));
10371
+ }
10372
+ /**
10373
+ * Marks the caller\'s approval revoked rather than deleting it, so the record that consent was given and then taken back survives. A revoked approval stops being forwarded to the enclave, which is what makes withdrawal actually reduce the count.
10374
+ * SDK — withdraw the caller\'s approval
10375
+ */
10376
+ async sdkWithdrawBusinessAccountProposalApproval(requestParameters, initOverrides) {
10377
+ const response = await this.sdkWithdrawBusinessAccountProposalApprovalRaw(requestParameters, initOverrides);
10378
+ return await response.value();
10379
+ }
9645
10380
  /**
9646
10381
  * When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
9647
10382
  * Update primary wallet selection