@dynamic-labs/sdk-api-core 0.158.0 → 0.160.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 (47) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +8 -6
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +8 -8
  5. package/src/apis/SDKApi.js +8 -6
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/apis/WaasApi.cjs +2 -1
  8. package/src/apis/WaasApi.cjs.map +1 -1
  9. package/src/apis/WaasApi.js +2 -1
  10. package/src/apis/WaasApi.js.map +1 -1
  11. package/src/index.cjs +20 -0
  12. package/src/index.cjs.map +1 -1
  13. package/src/index.js +4 -0
  14. package/src/index.js.map +1 -1
  15. package/src/models/BusinessAccountPolicyLayerResponse.cjs +49 -0
  16. package/src/models/BusinessAccountPolicyLayerResponse.cjs.map +1 -0
  17. package/src/models/BusinessAccountPolicyLayerResponse.d.ts +71 -0
  18. package/src/models/BusinessAccountPolicyLayerResponse.js +43 -0
  19. package/src/models/BusinessAccountPolicyLayerResponse.js.map +1 -0
  20. package/src/models/BusinessAccountPolicyLayerResponseAllOf.cjs +35 -0
  21. package/src/models/BusinessAccountPolicyLayerResponseAllOf.cjs.map +1 -0
  22. package/src/models/BusinessAccountPolicyLayerResponseAllOf.d.ts +33 -0
  23. package/src/models/BusinessAccountPolicyLayerResponseAllOf.js +29 -0
  24. package/src/models/BusinessAccountPolicyLayerResponseAllOf.js.map +1 -0
  25. package/src/models/BusinessAccountPolicyLayerUpdateRequest.cjs +64 -0
  26. package/src/models/BusinessAccountPolicyLayerUpdateRequest.cjs.map +1 -0
  27. package/src/models/BusinessAccountPolicyLayerUpdateRequest.d.ts +93 -0
  28. package/src/models/BusinessAccountPolicyLayerUpdateRequest.js +58 -0
  29. package/src/models/BusinessAccountPolicyLayerUpdateRequest.js.map +1 -0
  30. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.cjs +37 -0
  31. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.cjs.map +1 -0
  32. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.d.ts +43 -0
  33. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.js +31 -0
  34. package/src/models/BusinessAccountPolicyLayerUpdateRequestAllOf.js.map +1 -0
  35. package/src/models/DynamicJwt.cjs +2 -0
  36. package/src/models/DynamicJwt.cjs.map +1 -1
  37. package/src/models/DynamicJwt.d.ts +6 -0
  38. package/src/models/DynamicJwt.js +2 -0
  39. package/src/models/DynamicJwt.js.map +1 -1
  40. package/src/models/MinifiedDynamicJwt.cjs +2 -0
  41. package/src/models/MinifiedDynamicJwt.cjs.map +1 -1
  42. package/src/models/MinifiedDynamicJwt.d.ts +6 -0
  43. package/src/models/MinifiedDynamicJwt.js +2 -0
  44. package/src/models/MinifiedDynamicJwt.js.map +1 -1
  45. package/src/models/index.d.ts +4 -0
  46. package/src/version.cjs +1 -1
  47. package/src/version.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.158.0",
3
+ "version": "0.160.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -66,6 +66,8 @@ var BusinessAccountMemberInviteListResponse = require('../models/BusinessAccount
66
66
  var BusinessAccountMemberInviteReceipt = require('../models/BusinessAccountMemberInviteReceipt.cjs');
67
67
  require('../models/BusinessAccountMemberRole.cjs');
68
68
  var BusinessAccountMutationVersion = require('../models/BusinessAccountMutationVersion.cjs');
69
+ var BusinessAccountPolicyLayerResponse = require('../models/BusinessAccountPolicyLayerResponse.cjs');
70
+ var BusinessAccountPolicyLayerUpdateRequest = require('../models/BusinessAccountPolicyLayerUpdateRequest.cjs');
69
71
  var BusinessAccountProposal = require('../models/BusinessAccountProposal.cjs');
70
72
  require('../models/BusinessAccountProposalStatus.cjs');
71
73
  require('../models/BusinessAccountRequirementCondition.cjs');
@@ -4014,7 +4016,7 @@ class SDKApi extends runtime.BaseAPI {
4014
4016
  await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
4015
4017
  }
4016
4018
  /**
4017
- * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
4019
+ * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path). Read this before signing an `updatePolicyLayer` intent: the response carries the `layerDigest` and `rbacVersion` the intent binds.
4018
4020
  * Get the business account\'s account-Layer Rules
4019
4021
  */
4020
4022
  async getBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
@@ -4039,10 +4041,10 @@ class SDKApi extends runtime.BaseAPI {
4039
4041
  headers: headerParameters,
4040
4042
  query: queryParameters,
4041
4043
  }, initOverrides);
4042
- return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
4044
+ return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountPolicyLayerResponse.BusinessAccountPolicyLayerResponseFromJSON(jsonValue));
4043
4045
  }
4044
4046
  /**
4045
- * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
4047
+ * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path). Read this before signing an `updatePolicyLayer` intent: the response carries the `layerDigest` and `rbacVersion` the intent binds.
4046
4048
  * Get the business account\'s account-Layer Rules
4047
4049
  */
4048
4050
  async getBusinessAccountPolicyLayer(requestParameters, initOverrides) {
@@ -13010,7 +13012,7 @@ class SDKApi extends runtime.BaseAPI {
13010
13012
  await this.updateAdditionalAddressesOptionsRaw(requestParameters, initOverrides);
13011
13013
  }
13012
13014
  /**
13013
- * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
13015
+ * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle. When the account governs `updatePolicyLayer` and the Layer already exists, nothing is signed yet: the response is `422 intent_required` with the intent to sign. Resend it signed to move to 202 (the proposal collecting approvals). Once approved, resend the same update with `proposalId` to apply it. `409` means the Layer changed after the intent was prepared (`layer_changed`) or the proposal cannot run; `503` means governance could not be verified.
13014
13016
  * Create, update, or remove a Rule on the business account\'s account-Layer
13015
13017
  */
13016
13018
  async updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
@@ -13038,12 +13040,12 @@ class SDKApi extends runtime.BaseAPI {
13038
13040
  method: 'PATCH',
13039
13041
  headers: headerParameters,
13040
13042
  query: queryParameters,
13041
- body: WaasPolicyLayerUpdateRequest.WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
13043
+ body: BusinessAccountPolicyLayerUpdateRequest.BusinessAccountPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
13042
13044
  }, initOverrides);
13043
13045
  return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
13044
13046
  }
13045
13047
  /**
13046
- * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
13048
+ * Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle. When the account governs `updatePolicyLayer` and the Layer already exists, nothing is signed yet: the response is `422 intent_required` with the intent to sign. Resend it signed to move to 202 (the proposal collecting approvals). Once approved, resend the same update with `proposalId` to apply it. `409` means the Layer changed after the intent was prepared (`layer_changed`) or the proposal cannot run; `503` means governance could not be verified.
13047
13049
  * Create, update, or remove a Rule on the business account\'s account-Layer
13048
13050
  */
13049
13051
  async updateBusinessAccountPolicyLayer(requestParameters, initOverrides) {