@dynamic-labs-sdk/client 1.33.1 → 1.33.3

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 (156) hide show
  1. package/dist/{apiClient-BbjPoAwE.native.esm.js → apiClient-CpfEx6Uc.native.esm.js} +3 -3
  2. package/dist/{apiClient-BbjPoAwE.native.esm.js.map → apiClient-CpfEx6Uc.native.esm.js.map} +1 -1
  3. package/dist/core.cjs +5 -78
  4. package/dist/core.cjs.map +1 -1
  5. package/dist/core.esm.js +8 -79
  6. package/dist/core.esm.js.map +1 -1
  7. package/dist/core.native.esm.js +6 -77
  8. package/dist/core.native.esm.js.map +1 -1
  9. package/dist/exports/core.d.ts +0 -2
  10. package/dist/exports/core.d.ts.map +1 -1
  11. package/dist/exports/waas.d.ts +13 -1
  12. package/dist/exports/waas.d.ts.map +1 -1
  13. package/dist/{getNetworkProviderFromNetworkId-BXoTukxv.cjs → getNetworkProviderFromNetworkId-Cez8TM-n.cjs} +9 -2
  14. package/dist/getNetworkProviderFromNetworkId-Cez8TM-n.cjs.map +1 -0
  15. package/dist/{getNetworkProviderFromNetworkId-D_Hg6kP7.esm.js → getNetworkProviderFromNetworkId-Cf-CfYM4.esm.js} +9 -8
  16. package/dist/getNetworkProviderFromNetworkId-Cf-CfYM4.esm.js.map +1 -0
  17. package/dist/{getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js → getNetworkProviderFromNetworkId-CuTEQ9dg.native.esm.js} +5 -4
  18. package/dist/getNetworkProviderFromNetworkId-CuTEQ9dg.native.esm.js.map +1 -0
  19. package/dist/{getSignedSessionId-Bk-8is5J.native.esm.js → getSignedSessionId-Bt4obN3w.native.esm.js} +3 -3
  20. package/dist/{getSignedSessionId-Bk-8is5J.native.esm.js.map → getSignedSessionId-Bt4obN3w.native.esm.js.map} +1 -1
  21. package/dist/{getSignedSessionId-D_TknHwX.esm.js → getSignedSessionId-Cx7WP4ZJ.esm.js} +3 -3
  22. package/dist/{getSignedSessionId-D_TknHwX.esm.js.map → getSignedSessionId-Cx7WP4ZJ.esm.js.map} +1 -1
  23. package/dist/{getSignedSessionId-2O_cJtIV.cjs → getSignedSessionId-DiVxv0qz.cjs} +3 -3
  24. package/dist/{getSignedSessionId-2O_cJtIV.cjs.map → getSignedSessionId-DiVxv0qz.cjs.map} +1 -1
  25. package/dist/{getVerifiedCredentialForWalletAccount-BmsHgXbj.esm.js → getVerifiedCredentialForWalletAccount-DfKRbqco.esm.js} +2 -2
  26. package/dist/{getVerifiedCredentialForWalletAccount-BmsHgXbj.esm.js.map → getVerifiedCredentialForWalletAccount-DfKRbqco.esm.js.map} +1 -1
  27. package/dist/{getVerifiedCredentialForWalletAccount-upiwolAi.cjs → getVerifiedCredentialForWalletAccount-UIcOv7IN.cjs} +2 -2
  28. package/dist/{getVerifiedCredentialForWalletAccount-upiwolAi.cjs.map → getVerifiedCredentialForWalletAccount-UIcOv7IN.cjs.map} +1 -1
  29. package/dist/index.cjs +56 -69
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.esm.js +50 -63
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/index.native.esm.js +48 -61
  34. package/dist/index.native.esm.js.map +1 -1
  35. package/dist/{isMfaRequiredForAction-D7b7mUT9.native.esm.js → isMfaRequiredForAction-CxYft5KR.native.esm.js} +2 -2
  36. package/dist/{isMfaRequiredForAction-D7b7mUT9.native.esm.js.map → isMfaRequiredForAction-CxYft5KR.native.esm.js.map} +1 -1
  37. package/dist/{isMfaRequiredForAction-DF65MJNN.cjs → isMfaRequiredForAction-Czx-uPFY.cjs} +2 -2
  38. package/dist/{isMfaRequiredForAction-DF65MJNN.cjs.map → isMfaRequiredForAction-Czx-uPFY.cjs.map} +1 -1
  39. package/dist/{isMfaRequiredForAction-CHqeZeTS.esm.js → isMfaRequiredForAction-DS8fcwxO.esm.js} +2 -2
  40. package/dist/{isMfaRequiredForAction-CHqeZeTS.esm.js.map → isMfaRequiredForAction-DS8fcwxO.esm.js.map} +1 -1
  41. package/dist/{isUserOnboardingComplete-CpHVw8ee.esm.js → isUserOnboardingComplete-COmYFW26.esm.js} +3 -3
  42. package/dist/{isUserOnboardingComplete-CpHVw8ee.esm.js.map → isUserOnboardingComplete-COmYFW26.esm.js.map} +1 -1
  43. package/dist/{isUserOnboardingComplete-CYpgo52t.native.esm.js → isUserOnboardingComplete-DYnRDLep.native.esm.js} +3 -3
  44. package/dist/{isUserOnboardingComplete-CYpgo52t.native.esm.js.map → isUserOnboardingComplete-DYnRDLep.native.esm.js.map} +1 -1
  45. package/dist/{isUserOnboardingComplete-BAL-3zu7.cjs → isUserOnboardingComplete-FbjleMQm.cjs} +3 -3
  46. package/dist/{isUserOnboardingComplete-BAL-3zu7.cjs.map → isUserOnboardingComplete-FbjleMQm.cjs.map} +1 -1
  47. package/dist/{logoutWithReason-CFjm8dbR.cjs → logoutWithReason-BKwWBsCT.cjs} +73 -55
  48. package/dist/logoutWithReason-BKwWBsCT.cjs.map +1 -0
  49. package/dist/{logoutWithReason-CX9hGTPw.esm.js → logoutWithReason-DO0kP7nf.esm.js} +62 -50
  50. package/dist/logoutWithReason-DO0kP7nf.esm.js.map +1 -0
  51. package/dist/{logoutWithReason-Bd1qUh7l.native.esm.js → logoutWithReason-DWkIKoLk.native.esm.js} +61 -49
  52. package/dist/logoutWithReason-DWkIKoLk.native.esm.js.map +1 -0
  53. package/dist/{migrateFromFireblocks-BLz9aHOY.native.esm.js → migrateFromFireblocks-BwYnNAAh.native.esm.js} +2 -2
  54. package/dist/{migrateFromFireblocks-BLz9aHOY.native.esm.js.map → migrateFromFireblocks-BwYnNAAh.native.esm.js.map} +1 -1
  55. package/dist/{migrateFromFireblocks-C8KXMXk-.esm.js → migrateFromFireblocks-C_cap--b.esm.js} +2 -2
  56. package/dist/{migrateFromFireblocks-C8KXMXk-.esm.js.map → migrateFromFireblocks-C_cap--b.esm.js.map} +1 -1
  57. package/dist/{migrateFromFireblocks-BiZmnKp9.cjs → migrateFromFireblocks-ycJIYcrm.cjs} +2 -2
  58. package/dist/{migrateFromFireblocks-BiZmnKp9.cjs.map → migrateFromFireblocks-ycJIYcrm.cjs.map} +1 -1
  59. package/dist/modules/initializeClient/consts.d.ts +1 -0
  60. package/dist/modules/initializeClient/consts.d.ts.map +1 -1
  61. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  62. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +4 -5
  63. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
  64. package/dist/modules/sessionKeys/canonicalizeJson/canonicalizeJson.d.ts +20 -0
  65. package/dist/modules/sessionKeys/canonicalizeJson/canonicalizeJson.d.ts.map +1 -0
  66. package/dist/modules/sessionKeys/canonicalizeJson/index.d.ts +2 -0
  67. package/dist/modules/sessionKeys/canonicalizeJson/index.d.ts.map +1 -0
  68. package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts +39 -6
  69. package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts.map +1 -1
  70. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +9 -3
  71. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
  72. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +10 -3
  73. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
  74. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/approveBusinessAccountProposal.d.ts +43 -0
  75. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/approveBusinessAccountProposal.d.ts.map +1 -0
  76. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/index.d.ts +2 -0
  77. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/index.d.ts.map +1 -0
  78. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +249 -0
  79. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
  80. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/defineBusinessAccountRole.d.ts +45 -0
  81. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/defineBusinessAccountRole.d.ts.map +1 -0
  82. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/index.d.ts +2 -0
  83. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/index.d.ts.map +1 -0
  84. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/deleteBusinessAccountRole.d.ts +41 -0
  85. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/deleteBusinessAccountRole.d.ts.map +1 -0
  86. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/index.d.ts +2 -0
  87. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/index.d.ts.map +1 -0
  88. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.d.ts +39 -0
  89. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.d.ts.map +1 -0
  90. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/index.d.ts +2 -0
  91. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/index.d.ts.map +1 -0
  92. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.d.ts +30 -0
  93. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.d.ts.map +1 -0
  94. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/index.d.ts +2 -0
  95. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/index.d.ts.map +1 -0
  96. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/index.d.ts +2 -0
  97. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/index.d.ts.map +1 -0
  98. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.d.ts +26 -0
  99. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.d.ts.map +1 -0
  100. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.d.ts +2 -0
  101. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.d.ts.map +1 -0
  102. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.d.ts +21 -0
  103. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.d.ts.map +1 -0
  104. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/index.d.ts +2 -0
  105. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/index.d.ts.map +1 -0
  106. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.d.ts +26 -0
  107. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.d.ts.map +1 -0
  108. package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts +11 -2
  109. package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts.map +1 -1
  110. package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts +11 -2
  111. package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts.map +1 -1
  112. package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts +12 -4
  113. package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts.map +1 -1
  114. package/dist/modules/waas/businessAccounts/resendFields.d.ts +39 -0
  115. package/dist/modules/waas/businessAccounts/resendFields.d.ts.map +1 -0
  116. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/index.d.ts +2 -0
  117. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/index.d.ts.map +1 -0
  118. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.d.ts +49 -0
  119. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.d.ts.map +1 -0
  120. package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts +11 -2
  121. package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
  122. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +11 -2
  123. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -1
  124. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.d.ts +2 -0
  125. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.d.ts.map +1 -0
  126. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.d.ts +29 -0
  127. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.d.ts.map +1 -0
  128. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts +2 -0
  129. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts.map +1 -0
  130. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.d.ts +29 -0
  131. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.d.ts.map +1 -0
  132. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  133. package/dist/{waas-oKD6ZDP9.native.esm.js → waas-C4jtRxx1.native.esm.js} +688 -26
  134. package/dist/waas-C4jtRxx1.native.esm.js.map +1 -0
  135. package/dist/{waas-G-4JvdgJ.cjs → waas-CioG-_yp.cjs} +764 -24
  136. package/dist/waas-CioG-_yp.cjs.map +1 -0
  137. package/dist/{waas-DjgZ-ghV.esm.js → waas-DjivkzyT.esm.js} +688 -26
  138. package/dist/waas-DjivkzyT.esm.js.map +1 -0
  139. package/dist/waas.cjs +18 -5
  140. package/dist/waas.esm.js +5 -5
  141. package/dist/waas.native.esm.js +5 -5
  142. package/dist/waasCore.cjs +5 -5
  143. package/dist/waasCore.esm.js +5 -5
  144. package/dist/waasCore.native.esm.js +5 -5
  145. package/package.json +3 -4
  146. package/dist/getNetworkProviderFromNetworkId-BXoTukxv.cjs.map +0 -1
  147. package/dist/getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js.map +0 -1
  148. package/dist/getNetworkProviderFromNetworkId-D_Hg6kP7.esm.js.map +0 -1
  149. package/dist/logoutWithReason-Bd1qUh7l.native.esm.js.map +0 -1
  150. package/dist/logoutWithReason-CFjm8dbR.cjs.map +0 -1
  151. package/dist/logoutWithReason-CX9hGTPw.esm.js.map +0 -1
  152. package/dist/modules/projectSettings/fetchProjectSettings/projectSettingsExpirationScheme.d.ts +0 -5
  153. package/dist/modules/projectSettings/fetchProjectSettings/projectSettingsExpirationScheme.d.ts.map +0 -1
  154. package/dist/waas-DjgZ-ghV.esm.js.map +0 -1
  155. package/dist/waas-G-4JvdgJ.cjs.map +0 -1
  156. package/dist/waas-oKD6ZDP9.native.esm.js.map +0 -1
@@ -0,0 +1,39 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountMutationVersion, BusinessAccountProposalStillPending } from '../businessAccounts.types';
3
+ type ExecuteProposalParams = {
4
+ businessAccountId: string;
5
+ proposalId: string;
6
+ };
7
+ /**
8
+ * Applies a proposal whose quorum is already met — the counterpart to
9
+ * `autoExecute: false`, where the completing approval records consent but
10
+ * does not itself apply the change. Also the only way to run a ceremony
11
+ * action's change (e.g. `addSignerToWallet`): its reshare needs a live signer
12
+ * to come back and run it, so the server forces `autoExecute` false in the
13
+ * signed bytes regardless of what was requested, and this is what someone
14
+ * holding a share calls afterward.
15
+ *
16
+ * A 202 here is not a failure — it means the collected approvals still don't
17
+ * satisfy the requirement, and the proposal stays `pending`.
18
+ *
19
+ * @param params.businessAccountId - The business account the proposal belongs to.
20
+ * @param params.proposalId - The proposal to execute.
21
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
22
+ * @returns The new document version, or the tally if approvals still fall short.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const result = await executeBusinessAccountProposal({ businessAccountId, proposalId });
27
+ * if ('reason' in result) {
28
+ * console.log(result.approvalRequirements);
29
+ * }
30
+ * ```
31
+ *
32
+ * @see {@link approveBusinessAccountProposal} for the completing approval that usually does this instead.
33
+ * @see {@link BusinessAccountProposalStillPending} for the tally shape when it's still short.
34
+ * @throws {UnexpectedConsentResponseError} When a 202 answers with an unrecognized body.
35
+ * @notInstrumented
36
+ */
37
+ export declare const executeBusinessAccountProposal: ({ businessAccountId, proposalId }: ExecuteProposalParams, client?: DynamicClient) => Promise<BusinessAccountMutationVersion | BusinessAccountProposalStillPending>;
38
+ export {};
39
+ //# sourceMappingURL=executeBusinessAccountProposal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeBusinessAccountProposal.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,8BAA8B,EAC9B,mCAAmC,EACpC,MAAM,2BAA2B,CAAC;AAEnC,KAAK,qBAAqB,GAAG;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,8BAA8B,sCACN,qBAAqB,WAChD,aAAa,KACpB,OAAO,CAAC,8BAA8B,GAAG,mCAAmC,CA4B9E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { executeBusinessAccountProposal } from './executeBusinessAccountProposal';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/executeBusinessAccountProposal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountGovernance } from '../businessAccounts.types';
3
+ type GetGovernanceParams = {
4
+ businessAccountId: string;
5
+ };
6
+ /**
7
+ * Reads the approval requirements currently in force for a business account,
8
+ * keyed by governed action. Empty when the account governs nothing — that's
9
+ * an answer, not a missing resource.
10
+ *
11
+ * There's no other way to tell a governed account from an ungoverned one
12
+ * ahead of time: a mutation only reveals it by answering 202.
13
+ *
14
+ * @param params.businessAccountId - The business account whose governance to read.
15
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
+ * @returns The governance section, keyed by governed action.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const governance = await getBusinessAccountGovernance({ businessAccountId });
21
+ * const addMemberRules = governance.addMember ?? [];
22
+ * ```
23
+ *
24
+ * @see {@link setBusinessAccountGovernance} for writing it back.
25
+ * @see {@link BusinessAccountGovernance} for the returned shape.
26
+ * @notInstrumented
27
+ */
28
+ export declare const getBusinessAccountGovernance: ({ businessAccountId }: GetGovernanceParams, client?: DynamicClient) => Promise<BusinessAccountGovernance>;
29
+ export {};
30
+ //# sourceMappingURL=getBusinessAccountGovernance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBusinessAccountGovernance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,KAAK,mBAAmB,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,4BAA4B,0BAChB,mBAAmB,WAClC,aAAa,KACpB,OAAO,CAAC,yBAAyB,CASnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getBusinessAccountGovernance } from './getBusinessAccountGovernance';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/getBusinessAccountGovernance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { listBusinessAccountProposals } from './listBusinessAccountProposals';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccountProposals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountProposal } from '../businessAccounts.types';
3
+ type ListProposalsParams = {
4
+ businessAccountId: string;
5
+ status?: 'pending';
6
+ };
7
+ /**
8
+ * Lists a business account's governed-mutation proposals.
9
+ *
10
+ * @param params.businessAccountId - The business account whose proposals to list.
11
+ * @param [params.status] - Filter to `pending` only; omit for every status.
12
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
+ * @returns The matching proposals.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const pending = await listBusinessAccountProposals({ businessAccountId, status: 'pending' });
18
+ * ```
19
+ *
20
+ * @see {@link approveBusinessAccountProposal}
21
+ * @see {@link listBusinessAccountProposalsAwaitingMyApproval} for proposals across every account this caller belongs to.
22
+ * @notInstrumented
23
+ */
24
+ export declare const listBusinessAccountProposals: ({ businessAccountId, status }: ListProposalsParams, client?: DynamicClient) => Promise<BusinessAccountProposal[]>;
25
+ export {};
26
+ //# sourceMappingURL=listBusinessAccountProposals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listBusinessAccountProposals.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,KAAK,mBAAmB,GAAG;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,4BAA4B,kCACR,mBAAmB,WAC1C,aAAa,KACpB,OAAO,CAAC,uBAAuB,EAAE,CAYnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { listBusinessAccountProposalsAwaitingMyApproval } from './listBusinessAccountProposalsAwaitingMyApproval';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8CAA8C,EAAE,MAAM,kDAAkD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountProposal } from '../businessAccounts.types';
3
+ /**
4
+ * Every pending proposal awaiting this caller's approval, across every
5
+ * business account they belong to. Not scoped to one account — the server
6
+ * derives the scope from the caller's own memberships.
7
+ *
8
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
+ * @returns The proposals awaiting this caller's approval.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const awaitingMe = await listBusinessAccountProposalsAwaitingMyApproval();
14
+ * ```
15
+ *
16
+ * @see {@link approveBusinessAccountProposal}
17
+ * @see {@link listBusinessAccountProposals} for one account's proposals instead.
18
+ * @notInstrumented
19
+ */
20
+ export declare const listBusinessAccountProposalsAwaitingMyApproval: (client?: DynamicClient) => Promise<BusinessAccountProposal[]>;
21
+ //# sourceMappingURL=listBusinessAccountProposalsAwaitingMyApproval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listBusinessAccountProposalsAwaitingMyApproval.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,8CAA8C,YACjD,aAAa,KACpB,OAAO,CAAC,uBAAuB,EAAE,CAWnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { listBusinessAccountRoles } from './listBusinessAccountRoles';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccountRoles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountRoleDefinitions } from '../businessAccounts.types';
3
+ type ListRolesParams = {
4
+ businessAccountId: string;
5
+ };
6
+ /**
7
+ * Lists the custom roles a business account has defined. Empty when none
8
+ * are — that's an answer, not a missing resource.
9
+ *
10
+ * @param params.businessAccountId - The business account whose roles to list.
11
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
+ * @returns The account's custom roles, keyed by role name.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const roles = await listBusinessAccountRoles({ businessAccountId });
17
+ * console.log(roles.cfo?.inherits); // 'admin'
18
+ * ```
19
+ *
20
+ * @see {@link defineBusinessAccountRole}
21
+ * @see {@link deleteBusinessAccountRole}
22
+ * @notInstrumented
23
+ */
24
+ export declare const listBusinessAccountRoles: ({ businessAccountId }: ListRolesParams, client?: DynamicClient) => Promise<BusinessAccountRoleDefinitions>;
25
+ export {};
26
+ //# sourceMappingURL=listBusinessAccountRoles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listBusinessAccountRoles.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAEhF,KAAK,eAAe,GAAG;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,0BACZ,eAAe,WAC9B,aAAa,KACpB,OAAO,CAAC,8BAA8B,CAWxC,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import type { DynamicClient } from '../../../../client/types';
2
- import type { BusinessAccountActionRequired, BusinessAccountMember } from '../businessAccounts.types';
2
+ import type { BusinessAccountActionRequired, BusinessAccountMember, SignedBusinessAccountIntent } from '../businessAccounts.types';
3
3
  type RemoveMemberParams = {
4
+ autoExecute?: boolean;
4
5
  businessAccountId: string;
6
+ signed?: SignedBusinessAccountIntent;
5
7
  userId: string;
6
8
  };
7
9
  /**
@@ -9,8 +11,15 @@ type RemoveMemberParams = {
9
11
  * the account's wallets are torn down as part of the removal. The backend
10
12
  * refuses to remove the account's last owner.
11
13
  *
14
+ * When the account governs `removeMember`, nothing is written and the 202
15
+ * body is returned instead. Resend with `signed` (from
16
+ * `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
17
+ *
12
18
  * @param params.businessAccountId - The business account to remove the member from.
13
19
  * @param params.userId - The id of the user to remove.
20
+ * @param [params.autoExecute] - Whether to apply on the completing approval.
21
+ * Only meaningful on the first call.
22
+ * @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
14
23
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
24
  * @returns The removed member, or the outstanding action required.
16
25
  *
@@ -29,6 +38,6 @@ type RemoveMemberParams = {
29
38
  * @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
30
39
  * @notInstrumented
31
40
  */
32
- export declare const removeBusinessAccountMember: ({ businessAccountId, userId }: RemoveMemberParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
41
+ export declare const removeBusinessAccountMember: ({ businessAccountId, userId, autoExecute, signed }: RemoveMemberParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
33
42
  export {};
34
43
  //# sourceMappingURL=removeBusinessAccountMember.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,2BAA2B,kCACP,kBAAkB,WACzC,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAyB/D,CAAC"}
1
+ {"version":3,"file":"removeBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,2BAA2B,uDACc,kBAAkB,WAC9D,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA6B/D,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import type { DynamicClient } from '../../../../client/types';
2
- import type { BusinessAccountActionRequired, BusinessAccountSigner } from '../businessAccounts.types';
2
+ import type { BusinessAccountActionRequired, BusinessAccountSigner, SignedBusinessAccountIntent } from '../businessAccounts.types';
3
3
  type RemoveSignerParams = {
4
+ autoExecute?: boolean;
4
5
  businessAccountId: string;
6
+ signed?: SignedBusinessAccountIntent;
5
7
  signerId: string;
6
8
  walletId: string;
7
9
  };
@@ -11,9 +13,16 @@ type RemoveSignerParams = {
11
13
  * identity can no longer sign for that wallet. The backend refuses to remove
12
14
  * the last remaining signer on a wallet.
13
15
  *
16
+ * When the account governs `removeSignerFromWallet`, nothing is written and
17
+ * the 202 body is returned instead. Resend with `signed` (from
18
+ * `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
19
+ *
14
20
  * @param params.businessAccountId - The business account the wallet belongs to.
15
21
  * @param params.walletId - The wallet the signer is attached to.
16
22
  * @param params.signerId - The id of the signer to remove (`BusinessAccountSigner.id`).
23
+ * @param [params.autoExecute] - Whether to apply on the completing approval.
24
+ * Only meaningful on the first call.
25
+ * @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
17
26
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
18
27
  * @returns The removed signer, or the outstanding action required.
19
28
  *
@@ -33,6 +42,6 @@ type RemoveSignerParams = {
33
42
  * @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
34
43
  * @notInstrumented
35
44
  */
36
- export declare const removeBusinessAccountSigner: ({ businessAccountId, walletId, signerId }: RemoveSignerParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountSigner>;
45
+ export declare const removeBusinessAccountSigner: ({ businessAccountId, walletId, signerId, autoExecute, signed }: RemoveSignerParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountSigner>;
37
46
  export {};
38
47
  //# sourceMappingURL=removeBusinessAccountSigner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,2BAA2B,8CACK,kBAAkB,WACrD,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA0B/D,CAAC"}
1
+ {"version":3,"file":"removeBusinessAccountSigner.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,2BAA2B,mEAC0B,kBAAkB,WAC1E,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA8B/D,CAAC"}
@@ -1,16 +1,24 @@
1
1
  import type { DynamicClient } from '../../../../client/types';
2
- import type { BusinessAccountActionRequired, BusinessAccountDetail } from '../businessAccounts.types';
2
+ import type { BusinessAccountActionRequired, BusinessAccountDetail, SignedBusinessAccountIntent } from '../businessAccounts.types';
3
3
  type RemoveBusinessAccountWalletParams = {
4
+ autoExecute?: boolean;
4
5
  businessAccountId: string;
6
+ signed?: SignedBusinessAccountIntent;
5
7
  walletId: string;
6
8
  };
7
9
  /**
8
10
  * Removes a wallet from a business account (owner-/admin-only). The wallet and
9
- * all its associated signer rows are detached from the account. The backend
10
- * refuses to remove the last wallet on a business account.
11
+ * all its associated signer rows are detached from the account.
12
+ *
13
+ * When the account governs `removeWallet`, nothing is written and the 202
14
+ * body is returned instead. Resend with `signed` (from
15
+ * `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
11
16
  *
12
17
  * @param params.businessAccountId - The business account the wallet belongs to.
13
18
  * @param params.walletId - The wallet to remove (`BusinessAccountWallet.id`).
19
+ * @param [params.autoExecute] - Whether to apply on the completing approval.
20
+ * Only meaningful on the first call.
21
+ * @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
14
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
23
  * @returns The updated business account detail, or the outstanding action required.
16
24
  *
@@ -28,6 +36,6 @@ type RemoveBusinessAccountWalletParams = {
28
36
  * @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
29
37
  * @notInstrumented
30
38
  */
31
- export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
39
+ export declare const removeBusinessAccountWallet: ({ businessAccountId, walletId, autoExecute, signed }: RemoveBusinessAccountWalletParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
32
40
  export {};
33
41
  //# sourceMappingURL=removeBusinessAccountWallet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeBusinessAccountWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,iCAAiC,GAAG;IACvC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,2BAA2B,oCACL,iCAAiC,WAC1D,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA+B/D,CAAC"}
1
+ {"version":3,"file":"removeBusinessAccountWallet.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,iCAAiC,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,2BAA2B,yDACgB,iCAAiC,WAC/E,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAmC/D,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { SignedBusinessAccountIntent } from './businessAccounts.types';
2
+ type ResendFieldsParams = {
3
+ autoExecute?: boolean;
4
+ signed?: SignedBusinessAccountIntent;
5
+ };
6
+ /** The fields `resendFields` produces, shaped to match every generated
7
+ * governed-mutation request body's `autoExecute`/`intent`/`intentSignature`
8
+ * fields. */
9
+ type ResendFieldsResult = {
10
+ autoExecute?: boolean;
11
+ intent?: Record<string, object>;
12
+ intentSignature?: string;
13
+ };
14
+ /**
15
+ * The `autoExecute`/`intent`/`intentSignature` fields shared by every governed
16
+ * mutation's request body.
17
+ *
18
+ * `autoExecute` is read only on the first call — once an intent is signed, it
19
+ * carries its own copy and the server ignores whatever this call sends, so an
20
+ * approver's consent can't be overridden after the fact.
21
+ *
22
+ * @param [params.autoExecute] - Whether to apply immediately on the completing
23
+ * approval. Only meaningful on the first (unsigned) call.
24
+ * @param [params.signed] - A previously-signed intent, to resend past
25
+ * `INTENT_REQUIRED`.
26
+ * @returns The fields to spread into a governed mutation's SDK request body.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const body = { businessAccountId, ...resendFields({ signed }) };
31
+ * ```
32
+ *
33
+ * @see {@link SignedBusinessAccountIntent} for what `signed` carries.
34
+ * @see {@link parseGovernedResponse} for reading the `intent` back off a 202.
35
+ * @notInstrumented
36
+ */
37
+ export declare const resendFields: ({ autoExecute, signed, }: ResendFieldsParams) => ResendFieldsResult;
38
+ export {};
39
+ //# sourceMappingURL=resendFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resendFields.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/businessAccounts/resendFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE5E,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF;;cAEc;AACd,KAAK,kBAAkB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,YAAY,6BAGtB,kBAAkB,KAAG,kBAWtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { setBusinessAccountGovernance } from './setBusinessAccountGovernance';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/setBusinessAccountGovernance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountActionRequired, BusinessAccountGovernance, BusinessAccountMutationVersion, SignedBusinessAccountIntent } from '../businessAccounts.types';
3
+ type SetGovernanceParams = {
4
+ autoExecute?: boolean;
5
+ businessAccountId: string;
6
+ governance: BusinessAccountGovernance;
7
+ signed?: SignedBusinessAccountIntent;
8
+ };
9
+ /**
10
+ * Replaces the account's entire governance section. Wholesale, not a merge —
11
+ * an action left out of `governance` is refused rather than read as "delete
12
+ * its requirements"; send it back with its existing requirements (or an
13
+ * empty array) to keep or clear it.
14
+ *
15
+ * `setGovernance` is itself always governed at the capability-table floor
16
+ * (owner-only today), so the 202 path applies here too: nothing is written
17
+ * and the 202 body is returned instead. Resend with `signed` (from
18
+ * `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
19
+ *
20
+ * @param params.businessAccountId - The business account whose governance changes.
21
+ * @param params.governance - The full governance section to write, keyed by
22
+ * governed action. Read the current value with `getBusinessAccountGovernance`
23
+ * first if you're changing only one action.
24
+ * @param [params.autoExecute] - Whether to apply on the completing approval.
25
+ * Only meaningful on the first call.
26
+ * @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
27
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
28
+ * @returns The new document version, or the outstanding action required.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const current = await getBusinessAccountGovernance({ businessAccountId });
33
+ * await setBusinessAccountGovernance({
34
+ * businessAccountId,
35
+ * governance: {
36
+ * ...current,
37
+ * addMember: [{ id: 'one-admin', schemaVersion: 1, requiredApprovals: 1, eligibleApproverRoles: ['admin'] }],
38
+ * },
39
+ * });
40
+ * ```
41
+ *
42
+ * @see {@link getBusinessAccountGovernance} for reading the current section first.
43
+ * @see {@link defineBusinessAccountRole} for defining a role governance can name.
44
+ * @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
45
+ * @notInstrumented
46
+ */
47
+ export declare const setBusinessAccountGovernance: ({ businessAccountId, governance, autoExecute, signed }: SetGovernanceParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMutationVersion>;
48
+ export {};
49
+ //# sourceMappingURL=setBusinessAccountGovernance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBusinessAccountGovernance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,mBAAmB,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,yBAAyB,CAAC;IACtC,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,4BAA4B,2DACiB,mBAAmB,WACnE,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,8BAA8B,CA8BxE,CAAC"}
@@ -1,16 +1,25 @@
1
1
  import type { DynamicClient } from '../../../../client/types';
2
- import type { BusinessAccountActionRequired, BusinessAccountDetail } from '../businessAccounts.types';
2
+ import type { BusinessAccountActionRequired, BusinessAccountDetail, SignedBusinessAccountIntent } from '../businessAccounts.types';
3
3
  type TransferBusinessAccountOwnershipParams = {
4
+ autoExecute?: boolean;
4
5
  businessAccountId: string;
5
6
  newOwnerUserId: string;
7
+ signed?: SignedBusinessAccountIntent;
6
8
  };
7
9
  /**
8
10
  * Transfers ownership of a business account to another member. Owner-only: the
9
11
  * `newOwnerUserId` must already be a member, is promoted to owner, and the
10
12
  * current owner is atomically demoted to admin.
11
13
  *
14
+ * When the account governs `transferOwnership`, nothing is written and the
15
+ * 202 body is returned instead. Resend with `signed` (from
16
+ * `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
17
+ *
12
18
  * @param params.businessAccountId - The business account whose ownership moves.
13
19
  * @param params.newOwnerUserId - The member to promote to owner.
20
+ * @param [params.autoExecute] - Whether to apply on the completing approval.
21
+ * Only meaningful on the first call.
22
+ * @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
14
23
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
24
  * @returns The updated business account detail, or the outstanding action required.
16
25
  *
@@ -28,6 +37,6 @@ type TransferBusinessAccountOwnershipParams = {
28
37
  * @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
29
38
  * @notInstrumented
30
39
  */
31
- export declare const transferBusinessAccountOwnership: ({ businessAccountId, newOwnerUserId }: TransferBusinessAccountOwnershipParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
40
+ export declare const transferBusinessAccountOwnership: ({ businessAccountId, newOwnerUserId, autoExecute, signed }: TransferBusinessAccountOwnershipParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountDetail>;
32
41
  export {};
33
42
  //# sourceMappingURL=transferBusinessAccountOwnership.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transferBusinessAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC,KAAK,sCAAsC,GAAG;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,gCAAgC,0CACJ,sCAAsC,WACrE,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAmC/D,CAAC"}
1
+ {"version":3,"file":"transferBusinessAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC,KAAK,sCAAsC,GAAG;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,2BAA2B,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gCAAgC,+DACiB,sCAAsC,WAC1F,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CAsC/D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { DynamicClient } from '../../../../client/types';
2
- import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, BusinessAccountMember } from '../businessAccounts.types';
2
+ import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, BusinessAccountMember, SignedBusinessAccountIntent } from '../businessAccounts.types';
3
3
  /**
4
4
  * Roles a member can be reassigned to: a built-in other than owner, or one this
5
5
  * account defined. Ownership moves only via transferOwnership, which the API
@@ -7,8 +7,10 @@ import type { BuiltInBusinessAccountMemberRole, BusinessAccountActionRequired, B
7
7
  */
8
8
  type AssignableRole = Exclude<BuiltInBusinessAccountMemberRole, 'owner'> | (string & {});
9
9
  type UpdateBusinessAccountMemberRoleParams = {
10
+ autoExecute?: boolean;
10
11
  businessAccountId: string;
11
12
  role: AssignableRole;
13
+ signed?: SignedBusinessAccountIntent;
12
14
  userId: string;
13
15
  };
14
16
  /**
@@ -17,10 +19,17 @@ type UpdateBusinessAccountMemberRoleParams = {
17
19
  * another. Owner is not assignable here — use
18
20
  * `transferBusinessAccountOwnership` for that.
19
21
  *
22
+ * When the account governs `updateMemberRole`, nothing is written and the
23
+ * 202 body is returned instead. Resend with `signed` (from
24
+ * `signBusinessAccountIntent`) to move past `INTENT_REQUIRED`.
25
+ *
20
26
  * @param params.businessAccountId - The business account the member belongs to.
21
27
  * @param params.userId - The member whose role changes.
22
28
  * @param params.role - The new role: a built-in (`admin`, `viewer`) or a role
23
29
  * this account defined.
30
+ * @param [params.autoExecute] - Whether to apply on the completing approval.
31
+ * Only meaningful on the first call.
32
+ * @param [params.signed] - A previously-signed intent, to resend past `INTENT_REQUIRED`.
24
33
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
25
34
  * @returns The updated business account member, or the outstanding action required.
26
35
  *
@@ -38,6 +47,6 @@ type UpdateBusinessAccountMemberRoleParams = {
38
47
  * @throws {UnexpectedConsentResponseError} When a governed account answers 202 with an unrecognized body.
39
48
  * @notInstrumented
40
49
  */
41
- export declare const updateBusinessAccountMemberRole: ({ businessAccountId, userId, role }: UpdateBusinessAccountMemberRoleParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
50
+ export declare const updateBusinessAccountMemberRole: ({ businessAccountId, userId, role, autoExecute, signed }: UpdateBusinessAccountMemberRoleParams, client?: DynamicClient) => Promise<BusinessAccountActionRequired | BusinessAccountMember>;
42
51
  export {};
43
52
  //# sourceMappingURL=updateBusinessAccountMemberRole.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AAGnC;;;;GAIG;AACH,KAAK,cAAc,GACf,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,GAClD,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,KAAK,qCAAqC,GAAG;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,+BAA+B,wCACL,qCAAqC,WAClE,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA6B/D,CAAC"}
1
+ {"version":3,"file":"updateBusinessAccountMemberRole.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAInC;;;;GAIG;AACH,KAAK,cAAc,GACf,OAAO,CAAC,gCAAgC,EAAE,OAAO,CAAC,GAClD,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,KAAK,qCAAqC,GAAG;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,+BAA+B,6DACgB,qCAAqC,WACvF,aAAa,KACpB,OAAO,CAAC,6BAA6B,GAAG,qBAAqB,CA8B/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { vetoBusinessAccountProposal } from './vetoBusinessAccountProposal';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ import type { BusinessAccountProposal } from '../businessAccounts.types';
3
+ type VetoProposalParams = {
4
+ businessAccountId: string;
5
+ proposalId: string;
6
+ };
7
+ /**
8
+ * Vetoes a pending proposal — terminal: a vetoed proposal can never be
9
+ * approved or executed afterward. Gated on its own scope
10
+ * (`business_account:proposal:veto`), distinct from approving one, so a
11
+ * caller with only approve-scoped access cannot veto instead.
12
+ *
13
+ * @param params.businessAccountId - The business account the proposal belongs to.
14
+ * @param params.proposalId - The proposal to veto.
15
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
+ * @returns The proposal, now `status: 'vetoed'`.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * await vetoBusinessAccountProposal({ businessAccountId, proposalId });
21
+ * ```
22
+ *
23
+ * @see {@link approveBusinessAccountProposal} for consenting to a proposal instead.
24
+ * @see {@link BusinessAccountProposal} for the returned shape.
25
+ * @notInstrumented
26
+ */
27
+ export declare const vetoBusinessAccountProposal: ({ businessAccountId, proposalId }: VetoProposalParams, client?: DynamicClient) => Promise<BusinessAccountProposal>;
28
+ export {};
29
+ //# sourceMappingURL=vetoBusinessAccountProposal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vetoBusinessAccountProposal.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,KAAK,kBAAkB,GAAG;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,2BAA2B,sCACH,kBAAkB,WAC7C,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAejC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { withdrawBusinessAccountProposalApproval } from './withdrawBusinessAccountProposalApproval';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC"}