@contember/cli 2.2.0-alpha.1 → 2.2.0-alpha.10

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 (1320) hide show
  1. package/CLAUDE.md +35 -41
  2. package/dist/development/run.cjs +12 -4
  3. package/dist/development/run.cjs.map +1 -1
  4. package/dist/development/run.js +12 -4
  5. package/dist/development/run.js.map +1 -1
  6. package/dist/development/src/commands/actions/ActionsGetEventCommand.cjs +30 -15
  7. package/dist/development/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
  8. package/dist/development/src/commands/actions/ActionsGetEventCommand.js +31 -16
  9. package/dist/development/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
  10. package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.cjs +21 -41
  11. package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
  12. package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.js +22 -42
  13. package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
  14. package/dist/development/src/commands/actions/ActionsListVariablesCommand.cjs +15 -13
  15. package/dist/development/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
  16. package/dist/development/src/commands/actions/ActionsListVariablesCommand.js +15 -13
  17. package/dist/development/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
  18. package/dist/development/src/commands/actions/ActionsRetryEventCommand.cjs +28 -16
  19. package/dist/development/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
  20. package/dist/development/src/commands/actions/ActionsRetryEventCommand.js +29 -17
  21. package/dist/development/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
  22. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs +51 -22
  23. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
  24. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js +52 -23
  25. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
  26. package/dist/development/src/commands/actions/ActionsStopEventCommand.cjs +28 -16
  27. package/dist/development/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
  28. package/dist/development/src/commands/actions/ActionsStopEventCommand.js +29 -17
  29. package/dist/development/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
  30. package/dist/development/src/commands/deploy/DeployCommand.cjs +56 -29
  31. package/dist/development/src/commands/deploy/DeployCommand.cjs.map +1 -1
  32. package/dist/development/src/commands/deploy/DeployCommand.js +57 -30
  33. package/dist/development/src/commands/deploy/DeployCommand.js.map +1 -1
  34. package/dist/development/src/commands/migrations/MigrationAmendCommand.cjs +64 -24
  35. package/dist/development/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
  36. package/dist/development/src/commands/migrations/MigrationAmendCommand.js +65 -25
  37. package/dist/development/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
  38. package/dist/development/src/commands/migrations/MigrationBlankCommand.cjs +2 -2
  39. package/dist/development/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
  40. package/dist/development/src/commands/migrations/MigrationBlankCommand.js +2 -2
  41. package/dist/development/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
  42. package/dist/development/src/commands/migrations/MigrationDescribeCommand.cjs +7 -3
  43. package/dist/development/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
  44. package/dist/development/src/commands/migrations/MigrationDescribeCommand.js +8 -4
  45. package/dist/development/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
  46. package/dist/development/src/commands/migrations/MigrationDiffCommand.cjs +73 -25
  47. package/dist/development/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
  48. package/dist/development/src/commands/migrations/MigrationDiffCommand.js +74 -26
  49. package/dist/development/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
  50. package/dist/development/src/commands/migrations/MigrationExecuteCommand.cjs +7 -2
  51. package/dist/development/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
  52. package/dist/development/src/commands/migrations/MigrationExecuteCommand.js +7 -2
  53. package/dist/development/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
  54. package/dist/development/src/commands/migrations/MigrationInitStateCommand.cjs +11 -4
  55. package/dist/development/src/commands/migrations/MigrationInitStateCommand.cjs.map +1 -1
  56. package/dist/development/src/commands/migrations/MigrationInitStateCommand.js +11 -4
  57. package/dist/development/src/commands/migrations/MigrationInitStateCommand.js.map +1 -1
  58. package/dist/development/src/commands/migrations/MigrationRebaseCommand.cjs +24 -4
  59. package/dist/development/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
  60. package/dist/development/src/commands/migrations/MigrationRebaseCommand.js +25 -5
  61. package/dist/development/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
  62. package/dist/development/src/commands/migrations/MigrationSnapshotCommand.cjs +39 -8
  63. package/dist/development/src/commands/migrations/MigrationSnapshotCommand.cjs.map +1 -1
  64. package/dist/development/src/commands/migrations/MigrationSnapshotCommand.js +40 -9
  65. package/dist/development/src/commands/migrations/MigrationSnapshotCommand.js.map +1 -1
  66. package/dist/development/src/commands/migrations/MigrationStatusCommand.cjs +5 -5
  67. package/dist/development/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
  68. package/dist/development/src/commands/migrations/MigrationStatusCommand.js +5 -5
  69. package/dist/development/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
  70. package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.cjs +6 -7
  71. package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.cjs.map +1 -1
  72. package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.js +6 -7
  73. package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.js.map +1 -1
  74. package/dist/development/src/commands/misc/CommandsCommand.cjs +58 -0
  75. package/dist/development/src/commands/misc/CommandsCommand.cjs.map +1 -0
  76. package/dist/development/src/commands/misc/CommandsCommand.js +58 -0
  77. package/dist/development/src/commands/misc/CommandsCommand.js.map +1 -0
  78. package/dist/development/src/commands/misc/VersionCommand.cjs +2 -3
  79. package/dist/development/src/commands/misc/VersionCommand.cjs.map +1 -1
  80. package/dist/development/src/commands/misc/VersionCommand.js +2 -3
  81. package/dist/development/src/commands/misc/VersionCommand.js.map +1 -1
  82. package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.cjs +12 -12
  83. package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
  84. package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.js +13 -13
  85. package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
  86. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.cjs +17 -15
  87. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
  88. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.js +18 -16
  89. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
  90. package/dist/development/src/commands/project/ProjectValidateCommand.cjs +40 -12
  91. package/dist/development/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
  92. package/dist/development/src/commands/project/ProjectValidateCommand.js +42 -14
  93. package/dist/development/src/commands/project/ProjectValidateCommand.js.map +1 -1
  94. package/dist/development/src/commands/tenant/TenantApplyCommand.cjs +32 -12
  95. package/dist/development/src/commands/tenant/TenantApplyCommand.cjs.map +1 -1
  96. package/dist/development/src/commands/tenant/TenantApplyCommand.js +33 -13
  97. package/dist/development/src/commands/tenant/TenantApplyCommand.js.map +1 -1
  98. package/dist/development/src/commands/tenant/apikey/TenantApiKeyCreateCommand.cjs +68 -0
  99. package/dist/development/src/commands/tenant/apikey/TenantApiKeyCreateCommand.cjs.map +1 -0
  100. package/dist/development/src/commands/tenant/apikey/TenantApiKeyCreateCommand.js +68 -0
  101. package/dist/development/src/commands/tenant/apikey/TenantApiKeyCreateCommand.js.map +1 -0
  102. package/dist/development/src/commands/tenant/apikey/TenantApiKeyDisableCommand.cjs +31 -0
  103. package/dist/development/src/commands/tenant/apikey/TenantApiKeyDisableCommand.cjs.map +1 -0
  104. package/dist/development/src/commands/tenant/apikey/TenantApiKeyDisableCommand.js +31 -0
  105. package/dist/development/src/commands/tenant/apikey/TenantApiKeyDisableCommand.js.map +1 -0
  106. package/dist/development/src/commands/tenant/apikey/TenantApiKeyListCommand.cjs +55 -0
  107. package/dist/development/src/commands/tenant/apikey/TenantApiKeyListCommand.cjs.map +1 -0
  108. package/dist/development/src/commands/tenant/apikey/TenantApiKeyListCommand.js +55 -0
  109. package/dist/development/src/commands/tenant/apikey/TenantApiKeyListCommand.js.map +1 -0
  110. package/dist/development/src/commands/tenant/member/TenantMemberAddCommand.cjs +36 -0
  111. package/dist/development/src/commands/tenant/member/TenantMemberAddCommand.cjs.map +1 -0
  112. package/dist/development/src/commands/tenant/member/TenantMemberAddCommand.js +36 -0
  113. package/dist/development/src/commands/tenant/member/TenantMemberAddCommand.js.map +1 -0
  114. package/dist/development/src/commands/tenant/member/TenantMemberInviteCommand.cjs +62 -0
  115. package/dist/development/src/commands/tenant/member/TenantMemberInviteCommand.cjs.map +1 -0
  116. package/dist/development/src/commands/tenant/member/TenantMemberInviteCommand.js +62 -0
  117. package/dist/development/src/commands/tenant/member/TenantMemberInviteCommand.js.map +1 -0
  118. package/dist/development/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.cjs +102 -0
  119. package/dist/development/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.cjs.map +1 -0
  120. package/dist/development/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.js +102 -0
  121. package/dist/development/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.js.map +1 -0
  122. package/dist/development/src/commands/tenant/member/TenantMemberListCommand.cjs +73 -0
  123. package/dist/development/src/commands/tenant/member/TenantMemberListCommand.cjs.map +1 -0
  124. package/dist/development/src/commands/tenant/member/TenantMemberListCommand.js +73 -0
  125. package/dist/development/src/commands/tenant/member/TenantMemberListCommand.js.map +1 -0
  126. package/dist/development/src/commands/tenant/member/TenantMemberRemoveCommand.cjs +35 -0
  127. package/dist/development/src/commands/tenant/member/TenantMemberRemoveCommand.cjs.map +1 -0
  128. package/dist/development/src/commands/tenant/member/TenantMemberRemoveCommand.js +35 -0
  129. package/dist/development/src/commands/tenant/member/TenantMemberRemoveCommand.js.map +1 -0
  130. package/dist/development/src/commands/tenant/member/TenantMemberUpdateCommand.cjs +45 -0
  131. package/dist/development/src/commands/tenant/member/TenantMemberUpdateCommand.cjs.map +1 -0
  132. package/dist/development/src/commands/tenant/member/TenantMemberUpdateCommand.js +45 -0
  133. package/dist/development/src/commands/tenant/member/TenantMemberUpdateCommand.js.map +1 -0
  134. package/dist/development/src/commands/tenant/member/memberOptions.cjs +16 -0
  135. package/dist/development/src/commands/tenant/member/memberOptions.cjs.map +1 -0
  136. package/dist/development/src/commands/tenant/member/memberOptions.js +16 -0
  137. package/dist/development/src/commands/tenant/member/memberOptions.js.map +1 -0
  138. package/dist/development/src/commands/tenant/member/membershipInput.cjs +109 -0
  139. package/dist/development/src/commands/tenant/member/membershipInput.cjs.map +1 -0
  140. package/dist/development/src/commands/tenant/member/membershipInput.js +109 -0
  141. package/dist/development/src/commands/tenant/member/membershipInput.js.map +1 -0
  142. package/dist/development/src/commands/tenant/person/TenantIdentityRoleAddCommand.cjs +27 -0
  143. package/dist/development/src/commands/tenant/person/TenantIdentityRoleAddCommand.cjs.map +1 -0
  144. package/dist/development/src/commands/tenant/person/TenantIdentityRoleAddCommand.js +27 -0
  145. package/dist/development/src/commands/tenant/person/TenantIdentityRoleAddCommand.js.map +1 -0
  146. package/dist/development/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.cjs +34 -0
  147. package/dist/development/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.cjs.map +1 -0
  148. package/dist/development/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.js +34 -0
  149. package/dist/development/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.js.map +1 -0
  150. package/dist/development/src/commands/tenant/person/TenantPersonCreateCommand.cjs +79 -0
  151. package/dist/development/src/commands/tenant/person/TenantPersonCreateCommand.cjs.map +1 -0
  152. package/dist/development/src/commands/tenant/person/TenantPersonCreateCommand.js +79 -0
  153. package/dist/development/src/commands/tenant/person/TenantPersonCreateCommand.js.map +1 -0
  154. package/dist/development/src/commands/tenant/person/TenantPersonDisableCommand.cjs +29 -0
  155. package/dist/development/src/commands/tenant/person/TenantPersonDisableCommand.cjs.map +1 -0
  156. package/dist/development/src/commands/tenant/person/TenantPersonDisableCommand.js +29 -0
  157. package/dist/development/src/commands/tenant/person/TenantPersonDisableCommand.js.map +1 -0
  158. package/dist/development/src/commands/tenant/person/TenantPersonListCommand.cjs +53 -0
  159. package/dist/development/src/commands/tenant/person/TenantPersonListCommand.cjs.map +1 -0
  160. package/dist/development/src/commands/tenant/person/TenantPersonListCommand.js +53 -0
  161. package/dist/development/src/commands/tenant/person/TenantPersonListCommand.js.map +1 -0
  162. package/dist/development/src/commands/tenant/person/TenantPersonResetMfaCommand.cjs +37 -0
  163. package/dist/development/src/commands/tenant/person/TenantPersonResetMfaCommand.cjs.map +1 -0
  164. package/dist/development/src/commands/tenant/person/TenantPersonResetMfaCommand.js +37 -0
  165. package/dist/development/src/commands/tenant/person/TenantPersonResetMfaCommand.js.map +1 -0
  166. package/dist/development/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.cjs +47 -0
  167. package/dist/development/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.cjs.map +1 -0
  168. package/dist/development/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.js +47 -0
  169. package/dist/development/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.js.map +1 -0
  170. package/dist/development/src/commands/tenant/person/TenantPersonSetPasswordCommand.cjs +46 -0
  171. package/dist/development/src/commands/tenant/person/TenantPersonSetPasswordCommand.cjs.map +1 -0
  172. package/dist/development/src/commands/tenant/person/TenantPersonSetPasswordCommand.js +46 -0
  173. package/dist/development/src/commands/tenant/person/TenantPersonSetPasswordCommand.js.map +1 -0
  174. package/dist/development/src/commands/tenant/person/TenantPersonShowCommand.cjs +55 -0
  175. package/dist/development/src/commands/tenant/person/TenantPersonShowCommand.cjs.map +1 -0
  176. package/dist/development/src/commands/tenant/person/TenantPersonShowCommand.js +55 -0
  177. package/dist/development/src/commands/tenant/person/TenantPersonShowCommand.js.map +1 -0
  178. package/dist/development/src/commands/tenant/person/TenantPersonSignOutCommand.cjs +38 -0
  179. package/dist/development/src/commands/tenant/person/TenantPersonSignOutCommand.cjs.map +1 -0
  180. package/dist/development/src/commands/tenant/person/TenantPersonSignOutCommand.js +38 -0
  181. package/dist/development/src/commands/tenant/person/TenantPersonSignOutCommand.js.map +1 -0
  182. package/dist/development/src/commands/tenant/person/TenantPersonUpdateCommand.cjs +36 -0
  183. package/dist/development/src/commands/tenant/person/TenantPersonUpdateCommand.cjs.map +1 -0
  184. package/dist/development/src/commands/tenant/person/TenantPersonUpdateCommand.js +36 -0
  185. package/dist/development/src/commands/tenant/person/TenantPersonUpdateCommand.js.map +1 -0
  186. package/dist/development/src/commands/tenant/person/TenantSessionCreateCommand.cjs +65 -0
  187. package/dist/development/src/commands/tenant/person/TenantSessionCreateCommand.cjs.map +1 -0
  188. package/dist/development/src/commands/tenant/person/TenantSessionCreateCommand.js +65 -0
  189. package/dist/development/src/commands/tenant/person/TenantSessionCreateCommand.js.map +1 -0
  190. package/dist/development/src/commands/tenant/person/personInput.cjs +77 -0
  191. package/dist/development/src/commands/tenant/person/personInput.cjs.map +1 -0
  192. package/dist/development/src/commands/tenant/person/personInput.js +77 -0
  193. package/dist/development/src/commands/tenant/person/personInput.js.map +1 -0
  194. package/dist/development/src/commands/tenant/policy/TenantAuthLogCommand.cjs +96 -0
  195. package/dist/development/src/commands/tenant/policy/TenantAuthLogCommand.cjs.map +1 -0
  196. package/dist/development/src/commands/tenant/policy/TenantAuthLogCommand.js +96 -0
  197. package/dist/development/src/commands/tenant/policy/TenantAuthLogCommand.js.map +1 -0
  198. package/dist/development/src/commands/tenant/policy/TenantMailTemplateAddCommand.cjs +59 -0
  199. package/dist/development/src/commands/tenant/policy/TenantMailTemplateAddCommand.cjs.map +1 -0
  200. package/dist/development/src/commands/tenant/policy/TenantMailTemplateAddCommand.js +59 -0
  201. package/dist/development/src/commands/tenant/policy/TenantMailTemplateAddCommand.js.map +1 -0
  202. package/dist/development/src/commands/tenant/policy/TenantMailTemplateListCommand.cjs +41 -0
  203. package/dist/development/src/commands/tenant/policy/TenantMailTemplateListCommand.cjs.map +1 -0
  204. package/dist/development/src/commands/tenant/policy/TenantMailTemplateListCommand.js +41 -0
  205. package/dist/development/src/commands/tenant/policy/TenantMailTemplateListCommand.js.map +1 -0
  206. package/dist/development/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.cjs +42 -0
  207. package/dist/development/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.cjs.map +1 -0
  208. package/dist/development/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.js +42 -0
  209. package/dist/development/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.js.map +1 -0
  210. package/dist/development/src/commands/tenant/policy/TenantPolicyCreateCommand.cjs +36 -0
  211. package/dist/development/src/commands/tenant/policy/TenantPolicyCreateCommand.cjs.map +1 -0
  212. package/dist/development/src/commands/tenant/policy/TenantPolicyCreateCommand.js +36 -0
  213. package/dist/development/src/commands/tenant/policy/TenantPolicyCreateCommand.js.map +1 -0
  214. package/dist/development/src/commands/tenant/policy/TenantPolicyDeleteCommand.cjs +31 -0
  215. package/dist/development/src/commands/tenant/policy/TenantPolicyDeleteCommand.cjs.map +1 -0
  216. package/dist/development/src/commands/tenant/policy/TenantPolicyDeleteCommand.js +31 -0
  217. package/dist/development/src/commands/tenant/policy/TenantPolicyDeleteCommand.js.map +1 -0
  218. package/dist/development/src/commands/tenant/policy/TenantPolicyListCommand.cjs +33 -0
  219. package/dist/development/src/commands/tenant/policy/TenantPolicyListCommand.cjs.map +1 -0
  220. package/dist/development/src/commands/tenant/policy/TenantPolicyListCommand.js +33 -0
  221. package/dist/development/src/commands/tenant/policy/TenantPolicyListCommand.js.map +1 -0
  222. package/dist/development/src/commands/tenant/policy/TenantPolicyUpdateCommand.cjs +38 -0
  223. package/dist/development/src/commands/tenant/policy/TenantPolicyUpdateCommand.cjs.map +1 -0
  224. package/dist/development/src/commands/tenant/policy/TenantPolicyUpdateCommand.js +38 -0
  225. package/dist/development/src/commands/tenant/policy/TenantPolicyUpdateCommand.js.map +1 -0
  226. package/dist/development/src/commands/tenant/policy/policyInput.cjs +167 -0
  227. package/dist/development/src/commands/tenant/policy/policyInput.cjs.map +1 -0
  228. package/dist/development/src/commands/tenant/policy/policyInput.js +167 -0
  229. package/dist/development/src/commands/tenant/policy/policyInput.js.map +1 -0
  230. package/dist/development/src/commands/tenant/project/TenantConfigShowCommand.cjs +24 -0
  231. package/dist/development/src/commands/tenant/project/TenantConfigShowCommand.cjs.map +1 -0
  232. package/dist/development/src/commands/tenant/project/TenantConfigShowCommand.js +24 -0
  233. package/dist/development/src/commands/tenant/project/TenantConfigShowCommand.js.map +1 -0
  234. package/dist/development/src/commands/tenant/project/TenantIdpListCommand.cjs +22 -0
  235. package/dist/development/src/commands/tenant/project/TenantIdpListCommand.cjs.map +1 -0
  236. package/dist/development/src/commands/tenant/project/TenantIdpListCommand.js +22 -0
  237. package/dist/development/src/commands/tenant/project/TenantIdpListCommand.js.map +1 -0
  238. package/dist/development/src/commands/tenant/project/TenantProjectCreateCommand.cjs +53 -0
  239. package/dist/development/src/commands/tenant/project/TenantProjectCreateCommand.cjs.map +1 -0
  240. package/dist/development/src/commands/tenant/project/TenantProjectCreateCommand.js +53 -0
  241. package/dist/development/src/commands/tenant/project/TenantProjectCreateCommand.js.map +1 -0
  242. package/dist/development/src/commands/tenant/project/TenantProjectListCommand.cjs +22 -0
  243. package/dist/development/src/commands/tenant/project/TenantProjectListCommand.cjs.map +1 -0
  244. package/dist/development/src/commands/tenant/project/TenantProjectListCommand.js +22 -0
  245. package/dist/development/src/commands/tenant/project/TenantProjectListCommand.js.map +1 -0
  246. package/dist/development/src/commands/tenant/project/TenantProjectSecretSetCommand.cjs +50 -0
  247. package/dist/development/src/commands/tenant/project/TenantProjectSecretSetCommand.cjs.map +1 -0
  248. package/dist/development/src/commands/tenant/project/TenantProjectSecretSetCommand.js +50 -0
  249. package/dist/development/src/commands/tenant/project/TenantProjectSecretSetCommand.js.map +1 -0
  250. package/dist/development/src/commands/tenant/project/TenantProjectShowCommand.cjs +23 -0
  251. package/dist/development/src/commands/tenant/project/TenantProjectShowCommand.cjs.map +1 -0
  252. package/dist/development/src/commands/tenant/project/TenantProjectShowCommand.js +23 -0
  253. package/dist/development/src/commands/tenant/project/TenantProjectShowCommand.js.map +1 -0
  254. package/dist/development/src/commands/tenant/project/TenantProjectUpdateCommand.cjs +53 -0
  255. package/dist/development/src/commands/tenant/project/TenantProjectUpdateCommand.cjs.map +1 -0
  256. package/dist/development/src/commands/tenant/project/TenantProjectUpdateCommand.js +53 -0
  257. package/dist/development/src/commands/tenant/project/TenantProjectUpdateCommand.js.map +1 -0
  258. package/dist/development/src/commands/tenant/project/TenantWhoAmICommand.cjs +18 -0
  259. package/dist/development/src/commands/tenant/project/TenantWhoAmICommand.cjs.map +1 -0
  260. package/dist/development/src/commands/tenant/project/TenantWhoAmICommand.js +18 -0
  261. package/dist/development/src/commands/tenant/project/TenantWhoAmICommand.js.map +1 -0
  262. package/dist/development/src/commands/tenant/project/jsonConfigOption.cjs +26 -0
  263. package/dist/development/src/commands/tenant/project/jsonConfigOption.cjs.map +1 -0
  264. package/dist/development/src/commands/tenant/project/jsonConfigOption.js +26 -0
  265. package/dist/development/src/commands/tenant/project/jsonConfigOption.js.map +1 -0
  266. package/dist/development/src/commands/tenant/tenantOutput.cjs +35 -0
  267. package/dist/development/src/commands/tenant/tenantOutput.cjs.map +1 -0
  268. package/dist/development/src/commands/tenant/tenantOutput.js +35 -0
  269. package/dist/development/src/commands/tenant/tenantOutput.js.map +1 -0
  270. package/dist/development/src/commands/transfer/ExportCommand.cjs +35 -20
  271. package/dist/development/src/commands/transfer/ExportCommand.cjs.map +1 -1
  272. package/dist/development/src/commands/transfer/ExportCommand.js +38 -23
  273. package/dist/development/src/commands/transfer/ExportCommand.js.map +1 -1
  274. package/dist/development/src/commands/transfer/ImportCommand.cjs +70 -27
  275. package/dist/development/src/commands/transfer/ImportCommand.cjs.map +1 -1
  276. package/dist/development/src/commands/transfer/ImportCommand.js +72 -29
  277. package/dist/development/src/commands/transfer/ImportCommand.js.map +1 -1
  278. package/dist/development/src/commands/transfer/TransferCommand.cjs +79 -29
  279. package/dist/development/src/commands/transfer/TransferCommand.cjs.map +1 -1
  280. package/dist/development/src/commands/transfer/TransferCommand.js +81 -31
  281. package/dist/development/src/commands/transfer/TransferCommand.js.map +1 -1
  282. package/dist/development/src/commands/transfer/utils.cjs +12 -10
  283. package/dist/development/src/commands/transfer/utils.cjs.map +1 -1
  284. package/dist/development/src/commands/transfer/utils.js +12 -10
  285. package/dist/development/src/commands/transfer/utils.js.map +1 -1
  286. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +87 -32
  287. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
  288. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js +89 -34
  289. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
  290. package/dist/development/src/dic.cjs +152 -47
  291. package/dist/development/src/dic.cjs.map +1 -1
  292. package/dist/development/src/dic.js +152 -47
  293. package/dist/development/src/dic.js.map +1 -1
  294. package/dist/development/src/lib/SystemClientProvider.cjs +55 -2
  295. package/dist/development/src/lib/SystemClientProvider.cjs.map +1 -1
  296. package/dist/development/src/lib/SystemClientProvider.js +55 -2
  297. package/dist/development/src/lib/SystemClientProvider.js.map +1 -1
  298. package/dist/development/src/lib/TenantClientProvider.cjs +28 -5
  299. package/dist/development/src/lib/TenantClientProvider.cjs.map +1 -1
  300. package/dist/development/src/lib/TenantClientProvider.js +28 -5
  301. package/dist/development/src/lib/TenantClientProvider.js.map +1 -1
  302. package/dist/development/src/lib/actions/ActionsClient.cjs +18 -6
  303. package/dist/development/src/lib/actions/ActionsClient.cjs.map +1 -1
  304. package/dist/development/src/lib/actions/ActionsClient.js +18 -6
  305. package/dist/development/src/lib/actions/ActionsClient.js.map +1 -1
  306. package/dist/development/src/lib/actions/resolveActionsClient.cjs +13 -0
  307. package/dist/development/src/lib/actions/resolveActionsClient.cjs.map +1 -0
  308. package/dist/development/src/lib/actions/resolveActionsClient.js +13 -0
  309. package/dist/development/src/lib/actions/resolveActionsClient.js.map +1 -0
  310. package/dist/development/src/lib/actions/runActionMutationBatch.cjs +44 -0
  311. package/dist/development/src/lib/actions/runActionMutationBatch.cjs.map +1 -0
  312. package/dist/development/src/lib/actions/runActionMutationBatch.js +44 -0
  313. package/dist/development/src/lib/actions/runActionMutationBatch.js.map +1 -0
  314. package/dist/development/src/lib/admin/AdminClient.cjs +31 -11
  315. package/dist/development/src/lib/admin/AdminClient.cjs.map +1 -1
  316. package/dist/development/src/lib/admin/AdminClient.js +31 -11
  317. package/dist/development/src/lib/admin/AdminClient.js.map +1 -1
  318. package/dist/development/src/lib/admin/AdminDeployer.cjs +5 -3
  319. package/dist/development/src/lib/admin/AdminDeployer.cjs.map +1 -1
  320. package/dist/development/src/lib/admin/AdminDeployer.js +5 -3
  321. package/dist/development/src/lib/admin/AdminDeployer.js.map +1 -1
  322. package/dist/development/src/lib/errors/TransportError.cjs +204 -0
  323. package/dist/development/src/lib/errors/TransportError.cjs.map +1 -0
  324. package/dist/development/src/lib/errors/TransportError.js +204 -0
  325. package/dist/development/src/lib/errors/TransportError.js.map +1 -0
  326. package/dist/development/src/lib/maskToken.cjs +7 -1
  327. package/dist/development/src/lib/maskToken.cjs.map +1 -1
  328. package/dist/development/src/lib/maskToken.js +7 -1
  329. package/dist/development/src/lib/maskToken.js.map +1 -1
  330. package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs +97 -50
  331. package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
  332. package/dist/development/src/lib/migrations/MigrationExecutionFacade.js +97 -50
  333. package/dist/development/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
  334. package/dist/development/src/lib/migrations/MigrationPrinter.cjs +80 -64
  335. package/dist/development/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
  336. package/dist/development/src/lib/migrations/MigrationPrinter.js +81 -65
  337. package/dist/development/src/lib/migrations/MigrationPrinter.js.map +1 -1
  338. package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs +2 -1
  339. package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
  340. package/dist/development/src/lib/migrations/MigrationRebaseFacade.js +2 -1
  341. package/dist/development/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
  342. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.cjs +14 -10
  343. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.cjs.map +1 -1
  344. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.js +14 -10
  345. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.js.map +1 -1
  346. package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs +12 -4
  347. package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
  348. package/dist/development/src/lib/migrations/MigrationsStatusFacade.js +12 -4
  349. package/dist/development/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
  350. package/dist/development/src/lib/migrations/MigrationsValidator.cjs +5 -3
  351. package/dist/development/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
  352. package/dist/development/src/lib/migrations/MigrationsValidator.js +5 -3
  353. package/dist/development/src/lib/migrations/MigrationsValidator.js.map +1 -1
  354. package/dist/development/src/lib/project/RemoteProjectProvider.cjs +5 -1
  355. package/dist/development/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
  356. package/dist/development/src/lib/project/RemoteProjectProvider.js +5 -1
  357. package/dist/development/src/lib/project/RemoteProjectProvider.js.map +1 -1
  358. package/dist/development/src/lib/prompt/prompt.cjs +13 -0
  359. package/dist/development/src/lib/prompt/prompt.cjs.map +1 -0
  360. package/dist/development/src/lib/prompt/prompt.internal.cjs +21 -0
  361. package/dist/development/src/lib/prompt/prompt.internal.cjs.map +1 -0
  362. package/dist/development/src/lib/prompt/prompt.internal.js +21 -0
  363. package/dist/development/src/lib/prompt/prompt.internal.js.map +1 -0
  364. package/dist/development/src/lib/prompt/prompt.js +13 -0
  365. package/dist/development/src/lib/prompt/prompt.js.map +1 -0
  366. package/dist/development/src/lib/schema/SchemaValidationHelper.cjs +2 -2
  367. package/dist/development/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
  368. package/dist/development/src/lib/schema/SchemaValidationHelper.js +2 -2
  369. package/dist/development/src/lib/schema/SchemaValidationHelper.js.map +1 -1
  370. package/dist/development/src/lib/schema/SchemaValidationPrinter.cjs +4 -4
  371. package/dist/development/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
  372. package/dist/development/src/lib/schema/SchemaValidationPrinter.js +4 -4
  373. package/dist/development/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
  374. package/dist/development/src/lib/tenant/TenantApiTransport.cjs +160 -0
  375. package/dist/development/src/lib/tenant/TenantApiTransport.cjs.map +1 -0
  376. package/dist/development/src/lib/tenant/TenantApiTransport.js +160 -0
  377. package/dist/development/src/lib/tenant/TenantApiTransport.js.map +1 -0
  378. package/dist/development/src/lib/tenant/TenantConfigApplier.cjs +110 -26
  379. package/dist/development/src/lib/tenant/TenantConfigApplier.cjs.map +1 -1
  380. package/dist/development/src/lib/tenant/TenantConfigApplier.js +110 -26
  381. package/dist/development/src/lib/tenant/TenantConfigApplier.js.map +1 -1
  382. package/dist/development/src/lib/tenant/TenantConnectionProvider.cjs +20 -0
  383. package/dist/development/src/lib/tenant/TenantConnectionProvider.cjs.map +1 -0
  384. package/dist/development/src/lib/tenant/TenantConnectionProvider.js +20 -0
  385. package/dist/development/src/lib/tenant/TenantConnectionProvider.js.map +1 -0
  386. package/dist/development/src/lib/tenant/TenantConnectionResolver.cjs +30 -0
  387. package/dist/development/src/lib/tenant/TenantConnectionResolver.cjs.map +1 -0
  388. package/dist/development/src/lib/tenant/TenantConnectionResolver.js +30 -0
  389. package/dist/development/src/lib/tenant/TenantConnectionResolver.js.map +1 -0
  390. package/dist/development/src/lib/tenant/authPolicy.cjs +10 -0
  391. package/dist/development/src/lib/tenant/authPolicy.cjs.map +1 -0
  392. package/dist/development/src/lib/tenant/authPolicy.js +10 -0
  393. package/dist/development/src/lib/tenant/authPolicy.js.map +1 -0
  394. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.cjs +101 -0
  395. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.cjs.map +1 -0
  396. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.js +101 -0
  397. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.js.map +1 -0
  398. package/dist/development/src/lib/tenant/clients/TenantMemberClient.cjs +96 -0
  399. package/dist/development/src/lib/tenant/clients/TenantMemberClient.cjs.map +1 -0
  400. package/dist/development/src/lib/tenant/clients/TenantMemberClient.js +96 -0
  401. package/dist/development/src/lib/tenant/clients/TenantMemberClient.js.map +1 -0
  402. package/dist/development/src/lib/tenant/clients/TenantPersonClient.cjs +162 -0
  403. package/dist/development/src/lib/tenant/clients/TenantPersonClient.cjs.map +1 -0
  404. package/dist/development/src/lib/tenant/clients/TenantPersonClient.js +162 -0
  405. package/dist/development/src/lib/tenant/clients/TenantPersonClient.js.map +1 -0
  406. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.cjs +135 -0
  407. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.cjs.map +1 -0
  408. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.js +135 -0
  409. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.js.map +1 -0
  410. package/dist/development/src/lib/tenant/clients/TenantProjectClient.cjs +209 -0
  411. package/dist/development/src/lib/tenant/clients/TenantProjectClient.cjs.map +1 -0
  412. package/dist/development/src/lib/tenant/clients/TenantProjectClient.js +209 -0
  413. package/dist/development/src/lib/tenant/clients/TenantProjectClient.js.map +1 -0
  414. package/dist/development/src/lib/tenant/clients/index.cjs +21 -0
  415. package/dist/development/src/lib/tenant/clients/index.cjs.map +1 -0
  416. package/dist/development/src/lib/tenant/clients/index.js +21 -0
  417. package/dist/development/src/lib/tenant/clients/index.js.map +1 -0
  418. package/dist/development/src/lib/tenant/confirmation.cjs +23 -0
  419. package/dist/development/src/lib/tenant/confirmation.cjs.map +1 -0
  420. package/dist/development/src/lib/tenant/confirmation.js +23 -0
  421. package/dist/development/src/lib/tenant/confirmation.js.map +1 -0
  422. package/dist/development/src/lib/tenant/input/pagination.cjs +24 -0
  423. package/dist/development/src/lib/tenant/input/pagination.cjs.map +1 -0
  424. package/dist/development/src/lib/tenant/input/pagination.js +24 -0
  425. package/dist/development/src/lib/tenant/input/pagination.js.map +1 -0
  426. package/dist/development/src/lib/tenant/input/value.cjs +71 -0
  427. package/dist/development/src/lib/tenant/input/value.cjs.map +1 -0
  428. package/dist/development/src/lib/tenant/input/value.js +71 -0
  429. package/dist/development/src/lib/tenant/input/value.js.map +1 -0
  430. package/dist/development/src/lib/tenant/stdin.cjs +13 -0
  431. package/dist/development/src/lib/tenant/stdin.cjs.map +1 -0
  432. package/dist/development/src/lib/tenant/stdin.js +13 -0
  433. package/dist/development/src/lib/tenant/stdin.js.map +1 -0
  434. package/dist/development/src/lib/tenant/tenantConfig.cjs.map +1 -1
  435. package/dist/development/src/lib/tenant/tenantConfig.js.map +1 -1
  436. package/dist/development/src/lib/transfer/DataTransferClient.cjs +290 -54
  437. package/dist/development/src/lib/transfer/DataTransferClient.cjs.map +1 -1
  438. package/dist/development/src/lib/transfer/DataTransferClient.js +292 -56
  439. package/dist/development/src/lib/transfer/DataTransferClient.js.map +1 -1
  440. package/dist/development/src/lib/transfer/stdio.cjs +3 -8
  441. package/dist/development/src/lib/transfer/stdio.cjs.map +1 -1
  442. package/dist/development/src/lib/transfer/stdio.js +3 -8
  443. package/dist/development/src/lib/transfer/stdio.js.map +1 -1
  444. package/dist/production/run.cjs +12 -4
  445. package/dist/production/run.cjs.map +1 -1
  446. package/dist/production/run.js +12 -4
  447. package/dist/production/run.js.map +1 -1
  448. package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs +30 -15
  449. package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
  450. package/dist/production/src/commands/actions/ActionsGetEventCommand.js +31 -16
  451. package/dist/production/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
  452. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs +21 -41
  453. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
  454. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js +22 -42
  455. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
  456. package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs +15 -13
  457. package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
  458. package/dist/production/src/commands/actions/ActionsListVariablesCommand.js +15 -13
  459. package/dist/production/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
  460. package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs +28 -16
  461. package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
  462. package/dist/production/src/commands/actions/ActionsRetryEventCommand.js +29 -17
  463. package/dist/production/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
  464. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs +51 -22
  465. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
  466. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js +52 -23
  467. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
  468. package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs +28 -16
  469. package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
  470. package/dist/production/src/commands/actions/ActionsStopEventCommand.js +29 -17
  471. package/dist/production/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
  472. package/dist/production/src/commands/deploy/DeployCommand.cjs +56 -29
  473. package/dist/production/src/commands/deploy/DeployCommand.cjs.map +1 -1
  474. package/dist/production/src/commands/deploy/DeployCommand.js +57 -30
  475. package/dist/production/src/commands/deploy/DeployCommand.js.map +1 -1
  476. package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs +64 -24
  477. package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
  478. package/dist/production/src/commands/migrations/MigrationAmendCommand.js +65 -25
  479. package/dist/production/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
  480. package/dist/production/src/commands/migrations/MigrationBlankCommand.cjs +2 -2
  481. package/dist/production/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
  482. package/dist/production/src/commands/migrations/MigrationBlankCommand.js +2 -2
  483. package/dist/production/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
  484. package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs +7 -3
  485. package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
  486. package/dist/production/src/commands/migrations/MigrationDescribeCommand.js +8 -4
  487. package/dist/production/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
  488. package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs +73 -25
  489. package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
  490. package/dist/production/src/commands/migrations/MigrationDiffCommand.js +74 -26
  491. package/dist/production/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
  492. package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs +7 -2
  493. package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
  494. package/dist/production/src/commands/migrations/MigrationExecuteCommand.js +7 -2
  495. package/dist/production/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
  496. package/dist/production/src/commands/migrations/MigrationInitStateCommand.cjs +11 -4
  497. package/dist/production/src/commands/migrations/MigrationInitStateCommand.cjs.map +1 -1
  498. package/dist/production/src/commands/migrations/MigrationInitStateCommand.js +11 -4
  499. package/dist/production/src/commands/migrations/MigrationInitStateCommand.js.map +1 -1
  500. package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs +24 -4
  501. package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
  502. package/dist/production/src/commands/migrations/MigrationRebaseCommand.js +25 -5
  503. package/dist/production/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
  504. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.cjs +39 -8
  505. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.cjs.map +1 -1
  506. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.js +40 -9
  507. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.js.map +1 -1
  508. package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs +5 -5
  509. package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
  510. package/dist/production/src/commands/migrations/MigrationStatusCommand.js +5 -5
  511. package/dist/production/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
  512. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.cjs +6 -7
  513. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.cjs.map +1 -1
  514. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.js +6 -7
  515. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.js.map +1 -1
  516. package/dist/production/src/commands/misc/CommandsCommand.cjs +58 -0
  517. package/dist/production/src/commands/misc/CommandsCommand.cjs.map +1 -0
  518. package/dist/production/src/commands/misc/CommandsCommand.js +58 -0
  519. package/dist/production/src/commands/misc/CommandsCommand.js.map +1 -0
  520. package/dist/production/src/commands/misc/VersionCommand.cjs +2 -3
  521. package/dist/production/src/commands/misc/VersionCommand.cjs.map +1 -1
  522. package/dist/production/src/commands/misc/VersionCommand.js +2 -3
  523. package/dist/production/src/commands/misc/VersionCommand.js.map +1 -1
  524. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs +12 -12
  525. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
  526. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js +13 -13
  527. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
  528. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs +17 -15
  529. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
  530. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js +18 -16
  531. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
  532. package/dist/production/src/commands/project/ProjectValidateCommand.cjs +40 -12
  533. package/dist/production/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
  534. package/dist/production/src/commands/project/ProjectValidateCommand.js +42 -14
  535. package/dist/production/src/commands/project/ProjectValidateCommand.js.map +1 -1
  536. package/dist/production/src/commands/tenant/TenantApplyCommand.cjs +32 -12
  537. package/dist/production/src/commands/tenant/TenantApplyCommand.cjs.map +1 -1
  538. package/dist/production/src/commands/tenant/TenantApplyCommand.js +33 -13
  539. package/dist/production/src/commands/tenant/TenantApplyCommand.js.map +1 -1
  540. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.cjs +68 -0
  541. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.cjs.map +1 -0
  542. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.js +68 -0
  543. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.js.map +1 -0
  544. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.cjs +31 -0
  545. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.cjs.map +1 -0
  546. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.js +31 -0
  547. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.js.map +1 -0
  548. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.cjs +55 -0
  549. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.cjs.map +1 -0
  550. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.js +55 -0
  551. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.js.map +1 -0
  552. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.cjs +36 -0
  553. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.cjs.map +1 -0
  554. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.js +36 -0
  555. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.js.map +1 -0
  556. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.cjs +62 -0
  557. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.cjs.map +1 -0
  558. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.js +62 -0
  559. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.js.map +1 -0
  560. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.cjs +102 -0
  561. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.cjs.map +1 -0
  562. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.js +102 -0
  563. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.js.map +1 -0
  564. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.cjs +73 -0
  565. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.cjs.map +1 -0
  566. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.js +73 -0
  567. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.js.map +1 -0
  568. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.cjs +35 -0
  569. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.cjs.map +1 -0
  570. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.js +35 -0
  571. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.js.map +1 -0
  572. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.cjs +45 -0
  573. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.cjs.map +1 -0
  574. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.js +45 -0
  575. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.js.map +1 -0
  576. package/dist/production/src/commands/tenant/member/memberOptions.cjs +16 -0
  577. package/dist/production/src/commands/tenant/member/memberOptions.cjs.map +1 -0
  578. package/dist/production/src/commands/tenant/member/memberOptions.js +16 -0
  579. package/dist/production/src/commands/tenant/member/memberOptions.js.map +1 -0
  580. package/dist/production/src/commands/tenant/member/membershipInput.cjs +109 -0
  581. package/dist/production/src/commands/tenant/member/membershipInput.cjs.map +1 -0
  582. package/dist/production/src/commands/tenant/member/membershipInput.js +109 -0
  583. package/dist/production/src/commands/tenant/member/membershipInput.js.map +1 -0
  584. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.cjs +27 -0
  585. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.cjs.map +1 -0
  586. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.js +27 -0
  587. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.js.map +1 -0
  588. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.cjs +34 -0
  589. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.cjs.map +1 -0
  590. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.js +34 -0
  591. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.js.map +1 -0
  592. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.cjs +79 -0
  593. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.cjs.map +1 -0
  594. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.js +79 -0
  595. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.js.map +1 -0
  596. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.cjs +29 -0
  597. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.cjs.map +1 -0
  598. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.js +29 -0
  599. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.js.map +1 -0
  600. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.cjs +53 -0
  601. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.cjs.map +1 -0
  602. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.js +53 -0
  603. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.js.map +1 -0
  604. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.cjs +37 -0
  605. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.cjs.map +1 -0
  606. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.js +37 -0
  607. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.js.map +1 -0
  608. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.cjs +47 -0
  609. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.cjs.map +1 -0
  610. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.js +47 -0
  611. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.js.map +1 -0
  612. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.cjs +46 -0
  613. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.cjs.map +1 -0
  614. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.js +46 -0
  615. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.js.map +1 -0
  616. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.cjs +55 -0
  617. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.cjs.map +1 -0
  618. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.js +55 -0
  619. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.js.map +1 -0
  620. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.cjs +38 -0
  621. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.cjs.map +1 -0
  622. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.js +38 -0
  623. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.js.map +1 -0
  624. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.cjs +36 -0
  625. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.cjs.map +1 -0
  626. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.js +36 -0
  627. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.js.map +1 -0
  628. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.cjs +65 -0
  629. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.cjs.map +1 -0
  630. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.js +65 -0
  631. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.js.map +1 -0
  632. package/dist/production/src/commands/tenant/person/personInput.cjs +77 -0
  633. package/dist/production/src/commands/tenant/person/personInput.cjs.map +1 -0
  634. package/dist/production/src/commands/tenant/person/personInput.js +77 -0
  635. package/dist/production/src/commands/tenant/person/personInput.js.map +1 -0
  636. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.cjs +96 -0
  637. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.cjs.map +1 -0
  638. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.js +96 -0
  639. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.js.map +1 -0
  640. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.cjs +59 -0
  641. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.cjs.map +1 -0
  642. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.js +59 -0
  643. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.js.map +1 -0
  644. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.cjs +41 -0
  645. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.cjs.map +1 -0
  646. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.js +41 -0
  647. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.js.map +1 -0
  648. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.cjs +42 -0
  649. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.cjs.map +1 -0
  650. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.js +42 -0
  651. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.js.map +1 -0
  652. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.cjs +36 -0
  653. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.cjs.map +1 -0
  654. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.js +36 -0
  655. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.js.map +1 -0
  656. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.cjs +31 -0
  657. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.cjs.map +1 -0
  658. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.js +31 -0
  659. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.js.map +1 -0
  660. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.cjs +33 -0
  661. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.cjs.map +1 -0
  662. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.js +33 -0
  663. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.js.map +1 -0
  664. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.cjs +38 -0
  665. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.cjs.map +1 -0
  666. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.js +38 -0
  667. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.js.map +1 -0
  668. package/dist/production/src/commands/tenant/policy/policyInput.cjs +167 -0
  669. package/dist/production/src/commands/tenant/policy/policyInput.cjs.map +1 -0
  670. package/dist/production/src/commands/tenant/policy/policyInput.js +167 -0
  671. package/dist/production/src/commands/tenant/policy/policyInput.js.map +1 -0
  672. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.cjs +24 -0
  673. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.cjs.map +1 -0
  674. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.js +24 -0
  675. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.js.map +1 -0
  676. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.cjs +22 -0
  677. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.cjs.map +1 -0
  678. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.js +22 -0
  679. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.js.map +1 -0
  680. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.cjs +53 -0
  681. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.cjs.map +1 -0
  682. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.js +53 -0
  683. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.js.map +1 -0
  684. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.cjs +22 -0
  685. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.cjs.map +1 -0
  686. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.js +22 -0
  687. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.js.map +1 -0
  688. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.cjs +50 -0
  689. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.cjs.map +1 -0
  690. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.js +50 -0
  691. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.js.map +1 -0
  692. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.cjs +23 -0
  693. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.cjs.map +1 -0
  694. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.js +23 -0
  695. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.js.map +1 -0
  696. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.cjs +53 -0
  697. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.cjs.map +1 -0
  698. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.js +53 -0
  699. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.js.map +1 -0
  700. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.cjs +18 -0
  701. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.cjs.map +1 -0
  702. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.js +18 -0
  703. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.js.map +1 -0
  704. package/dist/production/src/commands/tenant/project/jsonConfigOption.cjs +26 -0
  705. package/dist/production/src/commands/tenant/project/jsonConfigOption.cjs.map +1 -0
  706. package/dist/production/src/commands/tenant/project/jsonConfigOption.js +26 -0
  707. package/dist/production/src/commands/tenant/project/jsonConfigOption.js.map +1 -0
  708. package/dist/production/src/commands/tenant/tenantOutput.cjs +35 -0
  709. package/dist/production/src/commands/tenant/tenantOutput.cjs.map +1 -0
  710. package/dist/production/src/commands/tenant/tenantOutput.js +35 -0
  711. package/dist/production/src/commands/tenant/tenantOutput.js.map +1 -0
  712. package/dist/production/src/commands/transfer/ExportCommand.cjs +35 -20
  713. package/dist/production/src/commands/transfer/ExportCommand.cjs.map +1 -1
  714. package/dist/production/src/commands/transfer/ExportCommand.js +38 -23
  715. package/dist/production/src/commands/transfer/ExportCommand.js.map +1 -1
  716. package/dist/production/src/commands/transfer/ImportCommand.cjs +70 -27
  717. package/dist/production/src/commands/transfer/ImportCommand.cjs.map +1 -1
  718. package/dist/production/src/commands/transfer/ImportCommand.js +72 -29
  719. package/dist/production/src/commands/transfer/ImportCommand.js.map +1 -1
  720. package/dist/production/src/commands/transfer/TransferCommand.cjs +79 -29
  721. package/dist/production/src/commands/transfer/TransferCommand.cjs.map +1 -1
  722. package/dist/production/src/commands/transfer/TransferCommand.js +81 -31
  723. package/dist/production/src/commands/transfer/TransferCommand.js.map +1 -1
  724. package/dist/production/src/commands/transfer/utils.cjs +12 -10
  725. package/dist/production/src/commands/transfer/utils.cjs.map +1 -1
  726. package/dist/production/src/commands/transfer/utils.js +12 -10
  727. package/dist/production/src/commands/transfer/utils.js.map +1 -1
  728. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +87 -32
  729. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
  730. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js +89 -34
  731. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
  732. package/dist/production/src/dic.cjs +152 -47
  733. package/dist/production/src/dic.cjs.map +1 -1
  734. package/dist/production/src/dic.js +152 -47
  735. package/dist/production/src/dic.js.map +1 -1
  736. package/dist/production/src/lib/SystemClientProvider.cjs +55 -2
  737. package/dist/production/src/lib/SystemClientProvider.cjs.map +1 -1
  738. package/dist/production/src/lib/SystemClientProvider.js +55 -2
  739. package/dist/production/src/lib/SystemClientProvider.js.map +1 -1
  740. package/dist/production/src/lib/TenantClientProvider.cjs +28 -5
  741. package/dist/production/src/lib/TenantClientProvider.cjs.map +1 -1
  742. package/dist/production/src/lib/TenantClientProvider.js +28 -5
  743. package/dist/production/src/lib/TenantClientProvider.js.map +1 -1
  744. package/dist/production/src/lib/actions/ActionsClient.cjs +18 -6
  745. package/dist/production/src/lib/actions/ActionsClient.cjs.map +1 -1
  746. package/dist/production/src/lib/actions/ActionsClient.js +18 -6
  747. package/dist/production/src/lib/actions/ActionsClient.js.map +1 -1
  748. package/dist/production/src/lib/actions/resolveActionsClient.cjs +13 -0
  749. package/dist/production/src/lib/actions/resolveActionsClient.cjs.map +1 -0
  750. package/dist/production/src/lib/actions/resolveActionsClient.js +13 -0
  751. package/dist/production/src/lib/actions/resolveActionsClient.js.map +1 -0
  752. package/dist/production/src/lib/actions/runActionMutationBatch.cjs +44 -0
  753. package/dist/production/src/lib/actions/runActionMutationBatch.cjs.map +1 -0
  754. package/dist/production/src/lib/actions/runActionMutationBatch.js +44 -0
  755. package/dist/production/src/lib/actions/runActionMutationBatch.js.map +1 -0
  756. package/dist/production/src/lib/admin/AdminClient.cjs +31 -11
  757. package/dist/production/src/lib/admin/AdminClient.cjs.map +1 -1
  758. package/dist/production/src/lib/admin/AdminClient.js +31 -11
  759. package/dist/production/src/lib/admin/AdminClient.js.map +1 -1
  760. package/dist/production/src/lib/admin/AdminDeployer.cjs +5 -3
  761. package/dist/production/src/lib/admin/AdminDeployer.cjs.map +1 -1
  762. package/dist/production/src/lib/admin/AdminDeployer.js +5 -3
  763. package/dist/production/src/lib/admin/AdminDeployer.js.map +1 -1
  764. package/dist/production/src/lib/errors/TransportError.cjs +204 -0
  765. package/dist/production/src/lib/errors/TransportError.cjs.map +1 -0
  766. package/dist/production/src/lib/errors/TransportError.js +204 -0
  767. package/dist/production/src/lib/errors/TransportError.js.map +1 -0
  768. package/dist/production/src/lib/maskToken.cjs +7 -1
  769. package/dist/production/src/lib/maskToken.cjs.map +1 -1
  770. package/dist/production/src/lib/maskToken.js +7 -1
  771. package/dist/production/src/lib/maskToken.js.map +1 -1
  772. package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs +97 -50
  773. package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
  774. package/dist/production/src/lib/migrations/MigrationExecutionFacade.js +97 -50
  775. package/dist/production/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
  776. package/dist/production/src/lib/migrations/MigrationPrinter.cjs +80 -64
  777. package/dist/production/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
  778. package/dist/production/src/lib/migrations/MigrationPrinter.js +81 -65
  779. package/dist/production/src/lib/migrations/MigrationPrinter.js.map +1 -1
  780. package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs +2 -1
  781. package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
  782. package/dist/production/src/lib/migrations/MigrationRebaseFacade.js +2 -1
  783. package/dist/production/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
  784. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.cjs +14 -10
  785. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.cjs.map +1 -1
  786. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.js +14 -10
  787. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.js.map +1 -1
  788. package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs +12 -4
  789. package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
  790. package/dist/production/src/lib/migrations/MigrationsStatusFacade.js +12 -4
  791. package/dist/production/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
  792. package/dist/production/src/lib/migrations/MigrationsValidator.cjs +5 -3
  793. package/dist/production/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
  794. package/dist/production/src/lib/migrations/MigrationsValidator.js +5 -3
  795. package/dist/production/src/lib/migrations/MigrationsValidator.js.map +1 -1
  796. package/dist/production/src/lib/project/RemoteProjectProvider.cjs +5 -1
  797. package/dist/production/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
  798. package/dist/production/src/lib/project/RemoteProjectProvider.js +5 -1
  799. package/dist/production/src/lib/project/RemoteProjectProvider.js.map +1 -1
  800. package/dist/production/src/lib/prompt/prompt.cjs +13 -0
  801. package/dist/production/src/lib/prompt/prompt.cjs.map +1 -0
  802. package/dist/production/src/lib/prompt/prompt.internal.cjs +21 -0
  803. package/dist/production/src/lib/prompt/prompt.internal.cjs.map +1 -0
  804. package/dist/production/src/lib/prompt/prompt.internal.js +21 -0
  805. package/dist/production/src/lib/prompt/prompt.internal.js.map +1 -0
  806. package/dist/production/src/lib/prompt/prompt.js +13 -0
  807. package/dist/production/src/lib/prompt/prompt.js.map +1 -0
  808. package/dist/production/src/lib/schema/SchemaValidationHelper.cjs +2 -2
  809. package/dist/production/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
  810. package/dist/production/src/lib/schema/SchemaValidationHelper.js +2 -2
  811. package/dist/production/src/lib/schema/SchemaValidationHelper.js.map +1 -1
  812. package/dist/production/src/lib/schema/SchemaValidationPrinter.cjs +4 -4
  813. package/dist/production/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
  814. package/dist/production/src/lib/schema/SchemaValidationPrinter.js +4 -4
  815. package/dist/production/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
  816. package/dist/production/src/lib/tenant/TenantApiTransport.cjs +160 -0
  817. package/dist/production/src/lib/tenant/TenantApiTransport.cjs.map +1 -0
  818. package/dist/production/src/lib/tenant/TenantApiTransport.js +160 -0
  819. package/dist/production/src/lib/tenant/TenantApiTransport.js.map +1 -0
  820. package/dist/production/src/lib/tenant/TenantConfigApplier.cjs +110 -26
  821. package/dist/production/src/lib/tenant/TenantConfigApplier.cjs.map +1 -1
  822. package/dist/production/src/lib/tenant/TenantConfigApplier.js +110 -26
  823. package/dist/production/src/lib/tenant/TenantConfigApplier.js.map +1 -1
  824. package/dist/production/src/lib/tenant/TenantConnectionProvider.cjs +20 -0
  825. package/dist/production/src/lib/tenant/TenantConnectionProvider.cjs.map +1 -0
  826. package/dist/production/src/lib/tenant/TenantConnectionProvider.js +20 -0
  827. package/dist/production/src/lib/tenant/TenantConnectionProvider.js.map +1 -0
  828. package/dist/production/src/lib/tenant/TenantConnectionResolver.cjs +30 -0
  829. package/dist/production/src/lib/tenant/TenantConnectionResolver.cjs.map +1 -0
  830. package/dist/production/src/lib/tenant/TenantConnectionResolver.js +30 -0
  831. package/dist/production/src/lib/tenant/TenantConnectionResolver.js.map +1 -0
  832. package/dist/production/src/lib/tenant/authPolicy.cjs +10 -0
  833. package/dist/production/src/lib/tenant/authPolicy.cjs.map +1 -0
  834. package/dist/production/src/lib/tenant/authPolicy.js +10 -0
  835. package/dist/production/src/lib/tenant/authPolicy.js.map +1 -0
  836. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.cjs +101 -0
  837. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.cjs.map +1 -0
  838. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.js +101 -0
  839. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.js.map +1 -0
  840. package/dist/production/src/lib/tenant/clients/TenantMemberClient.cjs +96 -0
  841. package/dist/production/src/lib/tenant/clients/TenantMemberClient.cjs.map +1 -0
  842. package/dist/production/src/lib/tenant/clients/TenantMemberClient.js +96 -0
  843. package/dist/production/src/lib/tenant/clients/TenantMemberClient.js.map +1 -0
  844. package/dist/production/src/lib/tenant/clients/TenantPersonClient.cjs +162 -0
  845. package/dist/production/src/lib/tenant/clients/TenantPersonClient.cjs.map +1 -0
  846. package/dist/production/src/lib/tenant/clients/TenantPersonClient.js +162 -0
  847. package/dist/production/src/lib/tenant/clients/TenantPersonClient.js.map +1 -0
  848. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.cjs +135 -0
  849. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.cjs.map +1 -0
  850. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.js +135 -0
  851. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.js.map +1 -0
  852. package/dist/production/src/lib/tenant/clients/TenantProjectClient.cjs +209 -0
  853. package/dist/production/src/lib/tenant/clients/TenantProjectClient.cjs.map +1 -0
  854. package/dist/production/src/lib/tenant/clients/TenantProjectClient.js +209 -0
  855. package/dist/production/src/lib/tenant/clients/TenantProjectClient.js.map +1 -0
  856. package/dist/production/src/lib/tenant/clients/index.cjs +21 -0
  857. package/dist/production/src/lib/tenant/clients/index.cjs.map +1 -0
  858. package/dist/production/src/lib/tenant/clients/index.js +21 -0
  859. package/dist/production/src/lib/tenant/clients/index.js.map +1 -0
  860. package/dist/production/src/lib/tenant/confirmation.cjs +23 -0
  861. package/dist/production/src/lib/tenant/confirmation.cjs.map +1 -0
  862. package/dist/production/src/lib/tenant/confirmation.js +23 -0
  863. package/dist/production/src/lib/tenant/confirmation.js.map +1 -0
  864. package/dist/production/src/lib/tenant/input/pagination.cjs +24 -0
  865. package/dist/production/src/lib/tenant/input/pagination.cjs.map +1 -0
  866. package/dist/production/src/lib/tenant/input/pagination.js +24 -0
  867. package/dist/production/src/lib/tenant/input/pagination.js.map +1 -0
  868. package/dist/production/src/lib/tenant/input/value.cjs +71 -0
  869. package/dist/production/src/lib/tenant/input/value.cjs.map +1 -0
  870. package/dist/production/src/lib/tenant/input/value.js +71 -0
  871. package/dist/production/src/lib/tenant/input/value.js.map +1 -0
  872. package/dist/production/src/lib/tenant/stdin.cjs +13 -0
  873. package/dist/production/src/lib/tenant/stdin.cjs.map +1 -0
  874. package/dist/production/src/lib/tenant/stdin.js +13 -0
  875. package/dist/production/src/lib/tenant/stdin.js.map +1 -0
  876. package/dist/production/src/lib/tenant/tenantConfig.cjs.map +1 -1
  877. package/dist/production/src/lib/tenant/tenantConfig.js.map +1 -1
  878. package/dist/production/src/lib/transfer/DataTransferClient.cjs +290 -54
  879. package/dist/production/src/lib/transfer/DataTransferClient.cjs.map +1 -1
  880. package/dist/production/src/lib/transfer/DataTransferClient.js +292 -56
  881. package/dist/production/src/lib/transfer/DataTransferClient.js.map +1 -1
  882. package/dist/production/src/lib/transfer/stdio.cjs +3 -8
  883. package/dist/production/src/lib/transfer/stdio.cjs.map +1 -1
  884. package/dist/production/src/lib/transfer/stdio.js +3 -8
  885. package/dist/production/src/lib/transfer/stdio.js.map +1 -1
  886. package/dist/types/commands/actions/ActionsGetEventCommand.d.ts +6 -4
  887. package/dist/types/commands/actions/ActionsGetEventCommand.d.ts.map +1 -1
  888. package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts +5 -4
  889. package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts.map +1 -1
  890. package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts +5 -3
  891. package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts.map +1 -1
  892. package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts +6 -4
  893. package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts.map +1 -1
  894. package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts +5 -3
  895. package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts.map +1 -1
  896. package/dist/types/commands/actions/ActionsStopEventCommand.d.ts +6 -4
  897. package/dist/types/commands/actions/ActionsStopEventCommand.d.ts.map +1 -1
  898. package/dist/types/commands/deploy/DeployCommand.d.ts +11 -3
  899. package/dist/types/commands/deploy/DeployCommand.d.ts.map +1 -1
  900. package/dist/types/commands/migrations/MigrationAmendCommand.d.ts +3 -2
  901. package/dist/types/commands/migrations/MigrationAmendCommand.d.ts.map +1 -1
  902. package/dist/types/commands/migrations/MigrationBlankCommand.d.ts +2 -2
  903. package/dist/types/commands/migrations/MigrationBlankCommand.d.ts.map +1 -1
  904. package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts +2 -2
  905. package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts.map +1 -1
  906. package/dist/types/commands/migrations/MigrationDiffCommand.d.ts +4 -3
  907. package/dist/types/commands/migrations/MigrationDiffCommand.d.ts.map +1 -1
  908. package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts +4 -3
  909. package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts.map +1 -1
  910. package/dist/types/commands/migrations/MigrationInitStateCommand.d.ts +2 -2
  911. package/dist/types/commands/migrations/MigrationInitStateCommand.d.ts.map +1 -1
  912. package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts +4 -3
  913. package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts.map +1 -1
  914. package/dist/types/commands/migrations/MigrationSnapshotCommand.d.ts +5 -3
  915. package/dist/types/commands/migrations/MigrationSnapshotCommand.d.ts.map +1 -1
  916. package/dist/types/commands/migrations/MigrationStatusCommand.d.ts +9 -3
  917. package/dist/types/commands/migrations/MigrationStatusCommand.d.ts.map +1 -1
  918. package/dist/types/commands/migrations/MigrationVerifySnapshotCommand.d.ts +2 -2
  919. package/dist/types/commands/migrations/MigrationVerifySnapshotCommand.d.ts.map +1 -1
  920. package/dist/types/commands/misc/CommandsCommand.d.ts +13 -0
  921. package/dist/types/commands/misc/CommandsCommand.d.ts.map +1 -0
  922. package/dist/types/commands/misc/VersionCommand.d.ts +11 -4
  923. package/dist/types/commands/misc/VersionCommand.d.ts.map +1 -1
  924. package/dist/types/commands/misc/index.d.ts +1 -0
  925. package/dist/types/commands/misc/index.d.ts.map +1 -1
  926. package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts +5 -3
  927. package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts.map +1 -1
  928. package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts +2 -2
  929. package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts.map +1 -1
  930. package/dist/types/commands/project/ProjectValidateCommand.d.ts +3 -3
  931. package/dist/types/commands/project/ProjectValidateCommand.d.ts.map +1 -1
  932. package/dist/types/commands/tenant/TenantApplyCommand.d.ts +10 -3
  933. package/dist/types/commands/tenant/TenantApplyCommand.d.ts.map +1 -1
  934. package/dist/types/commands/tenant/apikey/TenantApiKeyCreateCommand.d.ts +22 -0
  935. package/dist/types/commands/tenant/apikey/TenantApiKeyCreateCommand.d.ts.map +1 -0
  936. package/dist/types/commands/tenant/apikey/TenantApiKeyDisableCommand.d.ts +17 -0
  937. package/dist/types/commands/tenant/apikey/TenantApiKeyDisableCommand.d.ts.map +1 -0
  938. package/dist/types/commands/tenant/apikey/TenantApiKeyListCommand.d.ts +15 -0
  939. package/dist/types/commands/tenant/apikey/TenantApiKeyListCommand.d.ts.map +1 -0
  940. package/dist/types/commands/tenant/apikey/index.d.ts +4 -0
  941. package/dist/types/commands/tenant/apikey/index.d.ts.map +1 -0
  942. package/dist/types/commands/tenant/index.d.ts +5 -0
  943. package/dist/types/commands/tenant/index.d.ts.map +1 -1
  944. package/dist/types/commands/tenant/member/TenantMemberAddCommand.d.ts +19 -0
  945. package/dist/types/commands/tenant/member/TenantMemberAddCommand.d.ts.map +1 -0
  946. package/dist/types/commands/tenant/member/TenantMemberInviteCommand.d.ts +28 -0
  947. package/dist/types/commands/tenant/member/TenantMemberInviteCommand.d.ts.map +1 -0
  948. package/dist/types/commands/tenant/member/TenantMemberInviteUnmanagedCommand.d.ts +36 -0
  949. package/dist/types/commands/tenant/member/TenantMemberInviteUnmanagedCommand.d.ts.map +1 -0
  950. package/dist/types/commands/tenant/member/TenantMemberListCommand.d.ts +21 -0
  951. package/dist/types/commands/tenant/member/TenantMemberListCommand.d.ts.map +1 -0
  952. package/dist/types/commands/tenant/member/TenantMemberRemoveCommand.d.ts +17 -0
  953. package/dist/types/commands/tenant/member/TenantMemberRemoveCommand.d.ts.map +1 -0
  954. package/dist/types/commands/tenant/member/TenantMemberUpdateCommand.d.ts +20 -0
  955. package/dist/types/commands/tenant/member/TenantMemberUpdateCommand.d.ts.map +1 -0
  956. package/dist/types/commands/tenant/member/index.d.ts +7 -0
  957. package/dist/types/commands/tenant/member/index.d.ts.map +1 -0
  958. package/dist/types/commands/tenant/member/memberOptions.d.ts +16 -0
  959. package/dist/types/commands/tenant/member/memberOptions.d.ts.map +1 -0
  960. package/dist/types/commands/tenant/member/membershipInput.d.ts +44 -0
  961. package/dist/types/commands/tenant/member/membershipInput.d.ts.map +1 -0
  962. package/dist/types/commands/tenant/person/TenantIdentityRoleAddCommand.d.ts +15 -0
  963. package/dist/types/commands/tenant/person/TenantIdentityRoleAddCommand.d.ts.map +1 -0
  964. package/dist/types/commands/tenant/person/TenantIdentityRoleRemoveCommand.d.ts +17 -0
  965. package/dist/types/commands/tenant/person/TenantIdentityRoleRemoveCommand.d.ts.map +1 -0
  966. package/dist/types/commands/tenant/person/TenantPersonCreateCommand.d.ts +25 -0
  967. package/dist/types/commands/tenant/person/TenantPersonCreateCommand.d.ts.map +1 -0
  968. package/dist/types/commands/tenant/person/TenantPersonDisableCommand.d.ts +16 -0
  969. package/dist/types/commands/tenant/person/TenantPersonDisableCommand.d.ts.map +1 -0
  970. package/dist/types/commands/tenant/person/TenantPersonListCommand.d.ts +18 -0
  971. package/dist/types/commands/tenant/person/TenantPersonListCommand.d.ts.map +1 -0
  972. package/dist/types/commands/tenant/person/TenantPersonResetMfaCommand.d.ts +16 -0
  973. package/dist/types/commands/tenant/person/TenantPersonResetMfaCommand.d.ts.map +1 -0
  974. package/dist/types/commands/tenant/person/TenantPersonResetPasswordRequestCommand.d.ts +21 -0
  975. package/dist/types/commands/tenant/person/TenantPersonResetPasswordRequestCommand.d.ts.map +1 -0
  976. package/dist/types/commands/tenant/person/TenantPersonSetPasswordCommand.d.ts +20 -0
  977. package/dist/types/commands/tenant/person/TenantPersonSetPasswordCommand.d.ts.map +1 -0
  978. package/dist/types/commands/tenant/person/TenantPersonShowCommand.d.ts +14 -0
  979. package/dist/types/commands/tenant/person/TenantPersonShowCommand.d.ts.map +1 -0
  980. package/dist/types/commands/tenant/person/TenantPersonSignOutCommand.d.ts +17 -0
  981. package/dist/types/commands/tenant/person/TenantPersonSignOutCommand.d.ts.map +1 -0
  982. package/dist/types/commands/tenant/person/TenantPersonUpdateCommand.d.ts +17 -0
  983. package/dist/types/commands/tenant/person/TenantPersonUpdateCommand.d.ts.map +1 -0
  984. package/dist/types/commands/tenant/person/TenantSessionCreateCommand.d.ts +18 -0
  985. package/dist/types/commands/tenant/person/TenantSessionCreateCommand.d.ts.map +1 -0
  986. package/dist/types/commands/tenant/person/index.d.ts +13 -0
  987. package/dist/types/commands/tenant/person/index.d.ts.map +1 -0
  988. package/dist/types/commands/tenant/person/personInput.d.ts +37 -0
  989. package/dist/types/commands/tenant/person/personInput.d.ts.map +1 -0
  990. package/dist/types/commands/tenant/policy/TenantAuthLogCommand.d.ts +35 -0
  991. package/dist/types/commands/tenant/policy/TenantAuthLogCommand.d.ts.map +1 -0
  992. package/dist/types/commands/tenant/policy/TenantMailTemplateAddCommand.d.ts +30 -0
  993. package/dist/types/commands/tenant/policy/TenantMailTemplateAddCommand.d.ts.map +1 -0
  994. package/dist/types/commands/tenant/policy/TenantMailTemplateListCommand.d.ts +12 -0
  995. package/dist/types/commands/tenant/policy/TenantMailTemplateListCommand.d.ts.map +1 -0
  996. package/dist/types/commands/tenant/policy/TenantMailTemplateRemoveCommand.d.ts +19 -0
  997. package/dist/types/commands/tenant/policy/TenantMailTemplateRemoveCommand.d.ts.map +1 -0
  998. package/dist/types/commands/tenant/policy/TenantPolicyCreateCommand.d.ts +17 -0
  999. package/dist/types/commands/tenant/policy/TenantPolicyCreateCommand.d.ts.map +1 -0
  1000. package/dist/types/commands/tenant/policy/TenantPolicyDeleteCommand.d.ts +16 -0
  1001. package/dist/types/commands/tenant/policy/TenantPolicyDeleteCommand.d.ts.map +1 -0
  1002. package/dist/types/commands/tenant/policy/TenantPolicyListCommand.d.ts +12 -0
  1003. package/dist/types/commands/tenant/policy/TenantPolicyListCommand.d.ts.map +1 -0
  1004. package/dist/types/commands/tenant/policy/TenantPolicyUpdateCommand.d.ts +19 -0
  1005. package/dist/types/commands/tenant/policy/TenantPolicyUpdateCommand.d.ts.map +1 -0
  1006. package/dist/types/commands/tenant/policy/index.d.ts +9 -0
  1007. package/dist/types/commands/tenant/policy/index.d.ts.map +1 -0
  1008. package/dist/types/commands/tenant/policy/policyInput.d.ts +41 -0
  1009. package/dist/types/commands/tenant/policy/policyInput.d.ts.map +1 -0
  1010. package/dist/types/commands/tenant/project/TenantConfigShowCommand.d.ts +12 -0
  1011. package/dist/types/commands/tenant/project/TenantConfigShowCommand.d.ts.map +1 -0
  1012. package/dist/types/commands/tenant/project/TenantIdpListCommand.d.ts +12 -0
  1013. package/dist/types/commands/tenant/project/TenantIdpListCommand.d.ts.map +1 -0
  1014. package/dist/types/commands/tenant/project/TenantProjectCreateCommand.d.ts +22 -0
  1015. package/dist/types/commands/tenant/project/TenantProjectCreateCommand.d.ts.map +1 -0
  1016. package/dist/types/commands/tenant/project/TenantProjectListCommand.d.ts +12 -0
  1017. package/dist/types/commands/tenant/project/TenantProjectListCommand.d.ts.map +1 -0
  1018. package/dist/types/commands/tenant/project/TenantProjectSecretSetCommand.d.ts +21 -0
  1019. package/dist/types/commands/tenant/project/TenantProjectSecretSetCommand.d.ts.map +1 -0
  1020. package/dist/types/commands/tenant/project/TenantProjectShowCommand.d.ts +14 -0
  1021. package/dist/types/commands/tenant/project/TenantProjectShowCommand.d.ts.map +1 -0
  1022. package/dist/types/commands/tenant/project/TenantProjectUpdateCommand.d.ts +21 -0
  1023. package/dist/types/commands/tenant/project/TenantProjectUpdateCommand.d.ts.map +1 -0
  1024. package/dist/types/commands/tenant/project/TenantWhoAmICommand.d.ts +12 -0
  1025. package/dist/types/commands/tenant/project/TenantWhoAmICommand.d.ts.map +1 -0
  1026. package/dist/types/commands/tenant/project/index.d.ts +9 -0
  1027. package/dist/types/commands/tenant/project/index.d.ts.map +1 -0
  1028. package/dist/types/commands/tenant/project/jsonConfigOption.d.ts +9 -0
  1029. package/dist/types/commands/tenant/project/jsonConfigOption.d.ts.map +1 -0
  1030. package/dist/types/commands/tenant/tenantOutput.d.ts +7 -0
  1031. package/dist/types/commands/tenant/tenantOutput.d.ts.map +1 -0
  1032. package/dist/types/commands/transfer/ExportCommand.d.ts +8 -2
  1033. package/dist/types/commands/transfer/ExportCommand.d.ts.map +1 -1
  1034. package/dist/types/commands/transfer/ImportCommand.d.ts +15 -3
  1035. package/dist/types/commands/transfer/ImportCommand.d.ts.map +1 -1
  1036. package/dist/types/commands/transfer/TransferCommand.d.ts +14 -2
  1037. package/dist/types/commands/transfer/TransferCommand.d.ts.map +1 -1
  1038. package/dist/types/commands/transfer/utils.d.ts +2 -2
  1039. package/dist/types/commands/transfer/utils.d.ts.map +1 -1
  1040. package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts +27 -4
  1041. package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts.map +1 -1
  1042. package/dist/types/dic.d.ts +93 -6
  1043. package/dist/types/dic.d.ts.map +1 -1
  1044. package/dist/types/lib/SystemClientProvider.d.ts +4 -1
  1045. package/dist/types/lib/SystemClientProvider.d.ts.map +1 -1
  1046. package/dist/types/lib/TenantClientProvider.d.ts +14 -5
  1047. package/dist/types/lib/TenantClientProvider.d.ts.map +1 -1
  1048. package/dist/types/lib/VersionChecker.d.ts.map +1 -1
  1049. package/dist/types/lib/actions/ActionsClient.d.ts +17 -8
  1050. package/dist/types/lib/actions/ActionsClient.d.ts.map +1 -1
  1051. package/dist/types/lib/actions/resolveActionsClient.d.ts +7 -0
  1052. package/dist/types/lib/actions/resolveActionsClient.d.ts.map +1 -0
  1053. package/dist/types/lib/actions/runActionMutationBatch.d.ts +23 -0
  1054. package/dist/types/lib/actions/runActionMutationBatch.d.ts.map +1 -0
  1055. package/dist/types/lib/admin/AdminClient.d.ts +1 -0
  1056. package/dist/types/lib/admin/AdminClient.d.ts.map +1 -1
  1057. package/dist/types/lib/admin/AdminDeployer.d.ts +3 -1
  1058. package/dist/types/lib/admin/AdminDeployer.d.ts.map +1 -1
  1059. package/dist/types/lib/dsn.d.ts.map +1 -1
  1060. package/dist/types/lib/errors/TransportError.d.ts +29 -0
  1061. package/dist/types/lib/errors/TransportError.d.ts.map +1 -0
  1062. package/dist/types/lib/errors/index.d.ts +2 -0
  1063. package/dist/types/lib/errors/index.d.ts.map +1 -0
  1064. package/dist/types/lib/fs/DockerComposeManager.d.ts.map +1 -1
  1065. package/dist/types/lib/fs/FileSystem.d.ts.map +1 -1
  1066. package/dist/types/lib/fs/YamlHandler.d.ts.map +1 -1
  1067. package/dist/types/lib/js/EsBuildBuilder.d.ts.map +1 -1
  1068. package/dist/types/lib/js/EvalExecutor.d.ts.map +1 -1
  1069. package/dist/types/lib/js/JsCodeRunner.d.ts.map +1 -1
  1070. package/dist/types/lib/maskToken.d.ts +1 -0
  1071. package/dist/types/lib/maskToken.d.ts.map +1 -1
  1072. package/dist/types/lib/migrations/MigrationExecutionFacade.d.ts +8 -3
  1073. package/dist/types/lib/migrations/MigrationExecutionFacade.d.ts.map +1 -1
  1074. package/dist/types/lib/migrations/MigrationPrinter.d.ts +28 -2
  1075. package/dist/types/lib/migrations/MigrationPrinter.d.ts.map +1 -1
  1076. package/dist/types/lib/migrations/MigrationRebaseFacade.d.ts.map +1 -1
  1077. package/dist/types/lib/migrations/MigrationSnapshotFacade.d.ts +6 -3
  1078. package/dist/types/lib/migrations/MigrationSnapshotFacade.d.ts.map +1 -1
  1079. package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts +13 -2
  1080. package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts.map +1 -1
  1081. package/dist/types/lib/migrations/MigrationsValidator.d.ts +3 -1
  1082. package/dist/types/lib/migrations/MigrationsValidator.d.ts.map +1 -1
  1083. package/dist/types/lib/project/RemoteProject.d.ts.map +1 -1
  1084. package/dist/types/lib/project/RemoteProjectProvider.d.ts.map +1 -1
  1085. package/dist/types/lib/project/RemoteProjectResolver.d.ts.map +1 -1
  1086. package/dist/types/lib/project/docs/components/EntityInfo.d.ts.map +1 -1
  1087. package/dist/types/lib/project/docs/components/EntityLink.d.ts.map +1 -1
  1088. package/dist/types/lib/project/docs/components/FieldLink.d.ts.map +1 -1
  1089. package/dist/types/lib/project/docs/components/FieldPermissions.d.ts.map +1 -1
  1090. package/dist/types/lib/project/docs/components/FieldType.d.ts.map +1 -1
  1091. package/dist/types/lib/project/docs/components/OnDelete.d.ts.map +1 -1
  1092. package/dist/types/lib/project/docs/components/ProjectInfo.d.ts.map +1 -1
  1093. package/dist/types/lib/project/docs/components/SinglePermission.d.ts.map +1 -1
  1094. package/dist/types/lib/project/docs/components/utils.d.ts.map +1 -1
  1095. package/dist/types/lib/project/docs/projectDescribe.d.ts.map +1 -1
  1096. package/dist/types/lib/prompt/index.d.ts +2 -0
  1097. package/dist/types/lib/prompt/index.d.ts.map +1 -0
  1098. package/dist/types/lib/prompt/prompt.d.ts +6 -0
  1099. package/dist/types/lib/prompt/prompt.d.ts.map +1 -0
  1100. package/dist/types/lib/prompt/prompt.internal.d.ts +37 -0
  1101. package/dist/types/lib/prompt/prompt.internal.d.ts.map +1 -0
  1102. package/dist/types/lib/prompt/prompt.test.d.ts +2 -0
  1103. package/dist/types/lib/prompt/prompt.test.d.ts.map +1 -0
  1104. package/dist/types/lib/schema/SchemaLoader.d.ts.map +1 -1
  1105. package/dist/types/lib/schema/SchemaValidationHelper.d.ts +2 -1
  1106. package/dist/types/lib/schema/SchemaValidationHelper.d.ts.map +1 -1
  1107. package/dist/types/lib/schema/SchemaValidationPrinter.d.ts +2 -1
  1108. package/dist/types/lib/schema/SchemaValidationPrinter.d.ts.map +1 -1
  1109. package/dist/types/lib/schema/collectReferences.d.ts.map +1 -1
  1110. package/dist/types/lib/stream.d.ts.map +1 -1
  1111. package/dist/types/lib/tenant/TenantApiTransport.d.ts +49 -0
  1112. package/dist/types/lib/tenant/TenantApiTransport.d.ts.map +1 -0
  1113. package/dist/types/lib/tenant/TenantConfigApplier.d.ts +38 -3
  1114. package/dist/types/lib/tenant/TenantConfigApplier.d.ts.map +1 -1
  1115. package/dist/types/lib/tenant/TenantConfigLoader.d.ts.map +1 -1
  1116. package/dist/types/lib/tenant/TenantConnection.d.ts +8 -0
  1117. package/dist/types/lib/tenant/TenantConnection.d.ts.map +1 -0
  1118. package/dist/types/lib/tenant/TenantConnectionProvider.d.ts +8 -0
  1119. package/dist/types/lib/tenant/TenantConnectionProvider.d.ts.map +1 -0
  1120. package/dist/types/lib/tenant/TenantConnectionResolver.d.ts +8 -0
  1121. package/dist/types/lib/tenant/TenantConnectionResolver.d.ts.map +1 -0
  1122. package/dist/types/lib/tenant/authPolicy.d.ts +17 -0
  1123. package/dist/types/lib/tenant/authPolicy.d.ts.map +1 -0
  1124. package/dist/types/lib/tenant/clients/TenantApiKeyClient.d.ts +56 -0
  1125. package/dist/types/lib/tenant/clients/TenantApiKeyClient.d.ts.map +1 -0
  1126. package/dist/types/lib/tenant/clients/TenantMemberClient.d.ts +68 -0
  1127. package/dist/types/lib/tenant/clients/TenantMemberClient.d.ts.map +1 -0
  1128. package/dist/types/lib/tenant/clients/TenantPersonClient.d.ts +97 -0
  1129. package/dist/types/lib/tenant/clients/TenantPersonClient.d.ts.map +1 -0
  1130. package/dist/types/lib/tenant/clients/TenantPolicyClient.d.ts +75 -0
  1131. package/dist/types/lib/tenant/clients/TenantPolicyClient.d.ts.map +1 -0
  1132. package/dist/types/lib/tenant/clients/TenantProjectClient.d.ts +162 -0
  1133. package/dist/types/lib/tenant/clients/TenantProjectClient.d.ts.map +1 -0
  1134. package/dist/types/lib/tenant/clients/index.d.ts +21 -0
  1135. package/dist/types/lib/tenant/clients/index.d.ts.map +1 -0
  1136. package/dist/types/lib/tenant/confirmation.d.ts +14 -0
  1137. package/dist/types/lib/tenant/confirmation.d.ts.map +1 -0
  1138. package/dist/types/lib/tenant/input/index.d.ts +3 -0
  1139. package/dist/types/lib/tenant/input/index.d.ts.map +1 -0
  1140. package/dist/types/lib/tenant/input/pagination.d.ts +7 -0
  1141. package/dist/types/lib/tenant/input/pagination.d.ts.map +1 -0
  1142. package/dist/types/lib/tenant/input/value.d.ts +45 -0
  1143. package/dist/types/lib/tenant/input/value.d.ts.map +1 -0
  1144. package/dist/types/lib/tenant/stdin.d.ts +8 -0
  1145. package/dist/types/lib/tenant/stdin.d.ts.map +1 -0
  1146. package/dist/types/lib/tenant/tenantConfig.d.ts +96 -22
  1147. package/dist/types/lib/tenant/tenantConfig.d.ts.map +1 -1
  1148. package/dist/types/lib/transfer/DataTransferClient.d.ts +8 -2
  1149. package/dist/types/lib/transfer/DataTransferClient.d.ts.map +1 -1
  1150. package/dist/types/lib/transfer/stdio.d.ts +3 -1
  1151. package/dist/types/lib/transfer/stdio.d.ts.map +1 -1
  1152. package/dist/types/lib/workspace/WorkspaceResolver.d.ts.map +1 -1
  1153. package/dist/types/tsconfig.tsbuildinfo +1 -1
  1154. package/package.json +14 -14
  1155. package/src/commands/actions/ActionsGetEventCommand.ts +38 -16
  1156. package/src/commands/actions/ActionsListFailedEventsCommand.ts +24 -43
  1157. package/src/commands/actions/ActionsListVariablesCommand.ts +15 -13
  1158. package/src/commands/actions/ActionsRetryEventCommand.ts +36 -18
  1159. package/src/commands/actions/ActionsSetVariablesCommand.ts +56 -28
  1160. package/src/commands/actions/ActionsStopEventCommand.ts +36 -18
  1161. package/src/commands/deploy/DeployCommand.ts +69 -30
  1162. package/src/commands/migrations/MigrationAmendCommand.ts +69 -26
  1163. package/src/commands/migrations/MigrationBlankCommand.ts +3 -3
  1164. package/src/commands/migrations/MigrationDescribeCommand.ts +9 -4
  1165. package/src/commands/migrations/MigrationDiffCommand.ts +83 -31
  1166. package/src/commands/migrations/MigrationExecuteCommand.ts +11 -4
  1167. package/src/commands/migrations/MigrationInitStateCommand.ts +18 -5
  1168. package/src/commands/migrations/MigrationRebaseCommand.ts +28 -6
  1169. package/src/commands/migrations/MigrationSnapshotCommand.ts +45 -10
  1170. package/src/commands/migrations/MigrationStatusCommand.ts +20 -12
  1171. package/src/commands/migrations/MigrationVerifySnapshotCommand.ts +7 -8
  1172. package/src/commands/misc/CommandsCommand.ts +74 -0
  1173. package/src/commands/misc/VersionCommand.ts +13 -6
  1174. package/src/commands/misc/index.ts +1 -0
  1175. package/src/commands/project/ProjectGenerateDocumentationCommand.ts +12 -13
  1176. package/src/commands/project/ProjectPrintSchemaCommand.ts +19 -17
  1177. package/src/commands/project/ProjectValidateCommand.ts +52 -18
  1178. package/src/commands/tenant/TenantApplyCommand.ts +46 -14
  1179. package/src/commands/tenant/apikey/TenantApiKeyCreateCommand.ts +102 -0
  1180. package/src/commands/tenant/apikey/TenantApiKeyDisableCommand.ts +47 -0
  1181. package/src/commands/tenant/apikey/TenantApiKeyListCommand.ts +64 -0
  1182. package/src/commands/tenant/apikey/index.ts +4 -0
  1183. package/src/commands/tenant/index.ts +5 -0
  1184. package/src/commands/tenant/member/TenantMemberAddCommand.ts +48 -0
  1185. package/src/commands/tenant/member/TenantMemberInviteCommand.ts +88 -0
  1186. package/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.ts +135 -0
  1187. package/src/commands/tenant/member/TenantMemberListCommand.ts +94 -0
  1188. package/src/commands/tenant/member/TenantMemberRemoveCommand.ts +48 -0
  1189. package/src/commands/tenant/member/TenantMemberUpdateCommand.ts +58 -0
  1190. package/src/commands/tenant/member/index.ts +9 -0
  1191. package/src/commands/tenant/member/memberOptions.ts +29 -0
  1192. package/src/commands/tenant/member/membershipInput.ts +155 -0
  1193. package/src/commands/tenant/person/TenantIdentityRoleAddCommand.ts +44 -0
  1194. package/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.ts +54 -0
  1195. package/src/commands/tenant/person/TenantPersonCreateCommand.ts +98 -0
  1196. package/src/commands/tenant/person/TenantPersonDisableCommand.ts +46 -0
  1197. package/src/commands/tenant/person/TenantPersonListCommand.ts +68 -0
  1198. package/src/commands/tenant/person/TenantPersonResetMfaCommand.ts +59 -0
  1199. package/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.ts +67 -0
  1200. package/src/commands/tenant/person/TenantPersonSetPasswordCommand.ts +66 -0
  1201. package/src/commands/tenant/person/TenantPersonShowCommand.ts +70 -0
  1202. package/src/commands/tenant/person/TenantPersonSignOutCommand.ts +60 -0
  1203. package/src/commands/tenant/person/TenantPersonUpdateCommand.ts +55 -0
  1204. package/src/commands/tenant/person/TenantSessionCreateCommand.ts +79 -0
  1205. package/src/commands/tenant/person/index.ts +15 -0
  1206. package/src/commands/tenant/person/personInput.ts +112 -0
  1207. package/src/commands/tenant/policy/TenantAuthLogCommand.ts +141 -0
  1208. package/src/commands/tenant/policy/TenantMailTemplateAddCommand.ts +92 -0
  1209. package/src/commands/tenant/policy/TenantMailTemplateListCommand.ts +50 -0
  1210. package/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.ts +63 -0
  1211. package/src/commands/tenant/policy/TenantPolicyCreateCommand.ts +46 -0
  1212. package/src/commands/tenant/policy/TenantPolicyDeleteCommand.ts +42 -0
  1213. package/src/commands/tenant/policy/TenantPolicyListCommand.ts +39 -0
  1214. package/src/commands/tenant/policy/TenantPolicyUpdateCommand.ts +51 -0
  1215. package/src/commands/tenant/policy/index.ts +9 -0
  1216. package/src/commands/tenant/policy/policyInput.ts +210 -0
  1217. package/src/commands/tenant/project/TenantConfigShowCommand.ts +28 -0
  1218. package/src/commands/tenant/project/TenantIdpListCommand.ts +27 -0
  1219. package/src/commands/tenant/project/TenantProjectCreateCommand.ts +67 -0
  1220. package/src/commands/tenant/project/TenantProjectListCommand.ts +27 -0
  1221. package/src/commands/tenant/project/TenantProjectSecretSetCommand.ts +63 -0
  1222. package/src/commands/tenant/project/TenantProjectShowCommand.ts +29 -0
  1223. package/src/commands/tenant/project/TenantProjectUpdateCommand.ts +66 -0
  1224. package/src/commands/tenant/project/TenantWhoAmICommand.ts +22 -0
  1225. package/src/commands/tenant/project/index.ts +9 -0
  1226. package/src/commands/tenant/project/jsonConfigOption.ts +33 -0
  1227. package/src/commands/tenant/tenantOutput.ts +35 -0
  1228. package/src/commands/transfer/ExportCommand.ts +46 -29
  1229. package/src/commands/transfer/ImportCommand.ts +87 -34
  1230. package/src/commands/transfer/TransferCommand.ts +94 -34
  1231. package/src/commands/transfer/utils.ts +12 -11
  1232. package/src/commands/workspace/WorkspaceUpdateApiCommand.ts +135 -36
  1233. package/src/dic.ts +198 -47
  1234. package/src/lib/SystemClientProvider.ts +75 -1
  1235. package/src/lib/TenantClientProvider.ts +44 -6
  1236. package/src/lib/actions/ActionsClient.ts +38 -14
  1237. package/src/lib/actions/resolveActionsClient.ts +15 -0
  1238. package/src/lib/actions/runActionMutationBatch.ts +69 -0
  1239. package/src/lib/admin/AdminClient.ts +39 -12
  1240. package/src/lib/admin/AdminDeployer.ts +4 -2
  1241. package/src/lib/errors/TransportError.ts +260 -0
  1242. package/src/lib/errors/index.ts +1 -0
  1243. package/src/lib/maskToken.ts +9 -1
  1244. package/src/lib/migrations/MigrationExecutionFacade.ts +117 -59
  1245. package/src/lib/migrations/MigrationPrinter.ts +100 -64
  1246. package/src/lib/migrations/MigrationRebaseFacade.ts +2 -1
  1247. package/src/lib/migrations/MigrationSnapshotFacade.ts +15 -10
  1248. package/src/lib/migrations/MigrationsStatusFacade.ts +17 -3
  1249. package/src/lib/migrations/MigrationsValidator.ts +4 -2
  1250. package/src/lib/project/RemoteProjectProvider.ts +6 -1
  1251. package/src/lib/prompt/index.ts +1 -0
  1252. package/src/lib/prompt/prompt.internal.ts +69 -0
  1253. package/src/lib/prompt/prompt.test.ts +100 -0
  1254. package/src/lib/prompt/prompt.ts +23 -0
  1255. package/src/lib/schema/SchemaValidationHelper.ts +8 -2
  1256. package/src/lib/schema/SchemaValidationPrinter.ts +5 -4
  1257. package/src/lib/tenant/TenantApiTransport.ts +209 -0
  1258. package/src/lib/tenant/TenantConfigApplier.ts +198 -29
  1259. package/src/lib/tenant/TenantConnection.ts +8 -0
  1260. package/src/lib/tenant/TenantConnectionProvider.ts +21 -0
  1261. package/src/lib/tenant/TenantConnectionResolver.ts +31 -0
  1262. package/src/lib/tenant/authPolicy.ts +20 -0
  1263. package/src/lib/tenant/clients/README.md +84 -0
  1264. package/src/lib/tenant/clients/TenantApiKeyClient.ts +182 -0
  1265. package/src/lib/tenant/clients/TenantMemberClient.ts +199 -0
  1266. package/src/lib/tenant/clients/TenantPersonClient.ts +306 -0
  1267. package/src/lib/tenant/clients/TenantPolicyClient.ts +244 -0
  1268. package/src/lib/tenant/clients/TenantProjectClient.ts +425 -0
  1269. package/src/lib/tenant/clients/index.ts +29 -0
  1270. package/src/lib/tenant/confirmation.ts +32 -0
  1271. package/src/lib/tenant/input/index.ts +2 -0
  1272. package/src/lib/tenant/input/pagination.ts +39 -0
  1273. package/src/lib/tenant/input/value.ts +149 -0
  1274. package/src/lib/tenant/stdin.ts +16 -0
  1275. package/src/lib/tenant/tenantConfig.ts +146 -25
  1276. package/src/lib/transfer/DataTransferClient.ts +354 -59
  1277. package/src/lib/transfer/stdio.ts +5 -7
  1278. package/src/run.ts +19 -3
  1279. package/tenant.config.example.ts +28 -0
  1280. package/tests/cases/unit/MigrationAmendCommand.test.ts +17 -2
  1281. package/tests/cases/unit/MigrationDiffCommand.test.ts +182 -0
  1282. package/tests/cases/unit/MigrationExecuteCommand.test.ts +58 -0
  1283. package/tests/cases/unit/MigrationExecutionFacade.test.ts +341 -54
  1284. package/tests/cases/unit/MigrationInitStateCommand.test.ts +72 -0
  1285. package/tests/cases/unit/MigrationRebaseCommand.test.ts +59 -0
  1286. package/tests/cases/unit/MigrationSnapshotFacade.test.ts +75 -13
  1287. package/tests/cases/unit/MigrationStatusCommand.test.ts +197 -0
  1288. package/tests/cases/unit/MigrationsValidator.test.ts +61 -0
  1289. package/tests/cases/unit/actions.test.ts +802 -0
  1290. package/tests/cases/unit/cli-process.test.ts +266 -0
  1291. package/tests/cases/unit/command-registry.test.ts +214 -0
  1292. package/tests/cases/unit/deploy.test.ts +505 -0
  1293. package/tests/cases/unit/migration-transport.test.ts +156 -0
  1294. package/tests/cases/unit/project.test.ts +223 -0
  1295. package/tests/cases/unit/structured-output.test.ts +189 -0
  1296. package/tests/cases/unit/tenant-apikey.test.ts +645 -0
  1297. package/tests/cases/unit/tenant-apply-command.test.ts +247 -0
  1298. package/tests/cases/unit/tenant-clients.test.ts +130 -0
  1299. package/tests/cases/unit/tenant-connection.test.ts +91 -0
  1300. package/tests/cases/unit/tenant-input.test.ts +275 -0
  1301. package/tests/cases/unit/tenant-member.test.ts +683 -0
  1302. package/tests/cases/unit/tenant-person.test.ts +857 -0
  1303. package/tests/cases/unit/tenant-policy.test.ts +799 -0
  1304. package/tests/cases/unit/tenant-project.test.ts +634 -0
  1305. package/tests/cases/unit/tenant-transport.test.ts +322 -0
  1306. package/tests/cases/unit/transfer.test.ts +714 -0
  1307. package/tests/cases/unit/transport-errors.test.ts +78 -0
  1308. package/tests/cases/unit/workspace-update-api.test.ts +152 -0
  1309. package/tests/tenantConfigApplier.test.ts +434 -38
  1310. package/dist/development/src/lib/tenant/TenantClient.cjs +0 -104
  1311. package/dist/development/src/lib/tenant/TenantClient.cjs.map +0 -1
  1312. package/dist/development/src/lib/tenant/TenantClient.js +0 -104
  1313. package/dist/development/src/lib/tenant/TenantClient.js.map +0 -1
  1314. package/dist/production/src/lib/tenant/TenantClient.cjs +0 -104
  1315. package/dist/production/src/lib/tenant/TenantClient.cjs.map +0 -1
  1316. package/dist/production/src/lib/tenant/TenantClient.js +0 -104
  1317. package/dist/production/src/lib/tenant/TenantClient.js.map +0 -1
  1318. package/dist/types/lib/tenant/TenantClient.d.ts +0 -24
  1319. package/dist/types/lib/tenant/TenantClient.d.ts.map +0 -1
  1320. package/src/lib/tenant/TenantClient.ts +0 -149
@@ -0,0 +1,857 @@
1
+ import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test'
2
+ import { CliError, ExitCode, renderCliError, toCliError } from '@contember/cli-common'
3
+ import { createTestOutput } from '../../../../cli-common/tests/lib/testOutput.js'
4
+ import {
5
+ TenantIdentityRoleAddCommand,
6
+ TenantIdentityRoleRemoveCommand,
7
+ TenantPersonCreateCommand,
8
+ TenantPersonDisableCommand,
9
+ TenantPersonListCommand,
10
+ TenantPersonResetMfaCommand,
11
+ TenantPersonResetPasswordRequestCommand,
12
+ TenantPersonSetPasswordCommand,
13
+ TenantPersonShowCommand,
14
+ TenantPersonSignOutCommand,
15
+ TenantPersonUpdateCommand,
16
+ TenantSessionCreateCommand,
17
+ } from '../../../src/commands/tenant/person/index.js'
18
+ import { RemoteProject } from '../../../src/lib/project/RemoteProject.js'
19
+ import { RemoteProjectProvider } from '../../../src/lib/project/RemoteProjectProvider.js'
20
+ import { TenantClientProvider } from '../../../src/lib/TenantClientProvider.js'
21
+
22
+ const API_URL = 'http://tenant.test'
23
+
24
+ interface CapturedRequest {
25
+ query: string
26
+ variables: Record<string, unknown>
27
+ }
28
+
29
+ /**
30
+ * The commands build their own transport, so the network is stubbed at the global `fetch` — a real socket is
31
+ * not an option here, the bun test preload registers happy-dom and its `fetch` cannot talk to `Bun.serve`.
32
+ */
33
+ const requests: CapturedRequest[] = []
34
+ let respond: (request: CapturedRequest) => unknown = () => ({})
35
+ const originalFetch = globalThis.fetch
36
+
37
+ beforeAll(() => {
38
+ globalThis.fetch = async (input: RequestInfo | URL, init?: RequestInit) => {
39
+ const body: CapturedRequest = JSON.parse(String(init?.body))
40
+ requests.push(body)
41
+ return new Response(JSON.stringify({ data: respond(body) }), { status: 200 })
42
+ }
43
+ })
44
+
45
+ afterAll(() => {
46
+ globalThis.fetch = originalFetch
47
+ })
48
+
49
+ afterEach(() => {
50
+ requests.length = 0
51
+ respond = () => ({})
52
+ })
53
+
54
+ const answerWith = (data: unknown): void => {
55
+ respond = () => data
56
+ }
57
+
58
+ const createProvider = (): TenantClientProvider => {
59
+ const remoteProjectProvider = new RemoteProjectProvider()
60
+ remoteProjectProvider.setRemoteProject(new RemoteProject('blog', API_URL, 'token'))
61
+ return new TenantClientProvider(remoteProjectProvider)
62
+ }
63
+
64
+ const expectCliError = async (run: () => Promise<unknown>, code: string, exitCode: ExitCode): Promise<CliError> => {
65
+ let thrown: unknown
66
+ try {
67
+ await run()
68
+ } catch (e) {
69
+ thrown = toCliError(e)
70
+ }
71
+ expect(thrown).toBeInstanceOf(CliError)
72
+ if (thrown instanceof CliError) {
73
+ expect(thrown.code).toBe(code)
74
+ expect(thrown.exitCode).toBe(exitCode)
75
+ return thrown
76
+ }
77
+ throw new Error('expected a CliError to be thrown')
78
+ }
79
+
80
+ const personRow = {
81
+ id: 'p1',
82
+ email: 'alice@example.com',
83
+ name: 'Alice',
84
+ otpEnabled: false,
85
+ emailOtpEnabled: false,
86
+ emailVerified: true,
87
+ identity: { id: 'i1' },
88
+ }
89
+
90
+ const expectedPerson = {
91
+ id: 'p1',
92
+ identityId: 'i1',
93
+ email: 'alice@example.com',
94
+ name: 'Alice',
95
+ otpEnabled: false,
96
+ emailOtpEnabled: false,
97
+ emailVerified: true,
98
+ }
99
+
100
+ describe('tenant person list', () => {
101
+ test('documents substring semantics and forwards literal wildcard characters for server-side escaping', async () => {
102
+ const command = new TenantPersonListCommand(createProvider())
103
+ const emailOption = command.getConfiguration().getOptions().find(it => it.name === 'email')
104
+ expect(emailOption?.description).toContain('case-insensitive substring')
105
+ answerWith({ persons: [] })
106
+ const { output } = createTestOutput()
107
+
108
+ await command.run(['--email', '%alice_example%'], output)
109
+
110
+ expect(requests[0].variables).toMatchObject({ filter: { email: '%alice_example%' } })
111
+ })
112
+
113
+ test('--json prints a bare array on stdout and nothing else', async () => {
114
+ answerWith({ persons: [personRow] })
115
+ const { output, stdout, stderr } = createTestOutput()
116
+
117
+ await new TenantPersonListCommand(createProvider()).run(['--json'], output)
118
+
119
+ expect(JSON.parse(stdout.text)).toEqual([expectedPerson])
120
+ expect(stderr.text).toBe('')
121
+ expect(requests[0].variables).toEqual({ filter: undefined, limit: undefined, offset: undefined })
122
+ })
123
+
124
+ test('the filter and the pagination flags become query variables', async () => {
125
+ answerWith({ persons: [] })
126
+ const { output, stdout, stderr } = createTestOutput()
127
+
128
+ await new TenantPersonListCommand(createProvider()).run(
129
+ ['--email', 'alice@example.com', '--identity-id', 'i1', '--limit', '50', '--offset', '100'],
130
+ output,
131
+ )
132
+
133
+ expect(requests[0].variables).toEqual({
134
+ filter: { email: 'alice@example.com', personId: undefined, identityId: 'i1' },
135
+ limit: 50,
136
+ offset: 100,
137
+ })
138
+ expect(stdout.text).toBe('')
139
+ expect(stderr.text).toContain('No persons matched.')
140
+ })
141
+
142
+ test('--quiet prints only the person ids', async () => {
143
+ answerWith({ persons: [personRow, { ...personRow, id: 'p2', identity: { id: 'i2' } }] })
144
+ const { output, stdout, stderr } = createTestOutput()
145
+
146
+ await new TenantPersonListCommand(createProvider()).run(['--quiet'], output)
147
+
148
+ expect(stdout.lines).toEqual(['p1', 'p2'])
149
+ expect(stderr.text).toBe('')
150
+ })
151
+
152
+ test('invalid GraphQL pagination integers are rejected locally', async () => {
153
+ const { output } = createTestOutput()
154
+
155
+ for (
156
+ const { flag, value, code } of [
157
+ { flag: '--limit', value: '0', code: 'INVALID_PAGINATION_LIMIT' },
158
+ { flag: '--limit', value: 'lots', code: 'INVALID_PAGINATION_LIMIT' },
159
+ { flag: '--limit', value: '2147483648', code: 'INVALID_PAGINATION_LIMIT' },
160
+ { flag: '--limit', value: '9007199254740992', code: 'INVALID_PAGINATION_LIMIT' },
161
+ { flag: '--offset', value: '2147483648', code: 'INVALID_PAGINATION_OFFSET' },
162
+ { flag: '--offset', value: '9007199254740992', code: 'INVALID_PAGINATION_OFFSET' },
163
+ ]
164
+ ) {
165
+ await expectCliError(
166
+ () => new TenantPersonListCommand(createProvider()).run([flag, value], output),
167
+ code,
168
+ ExitCode.InputError,
169
+ )
170
+ }
171
+ expect(requests).toHaveLength(0)
172
+ })
173
+ })
174
+
175
+ describe('tenant person show', () => {
176
+ const personDetailRow = {
177
+ ...personRow,
178
+ passwordlessEnabled: null,
179
+ identity: {
180
+ id: 'i1',
181
+ roles: ['super_admin'],
182
+ sessions: [{
183
+ id: 's1',
184
+ createdAt: '2026-01-01T00:00:00Z',
185
+ expiresAt: null,
186
+ lastUsedAt: '2026-01-02T00:00:00Z',
187
+ lastIp: '10.0.0.1',
188
+ lastUserAgent: null,
189
+ createdIp: null,
190
+ createdUserAgent: null,
191
+ isCurrent: false,
192
+ trustForwardedClientInfo: false,
193
+ }],
194
+ },
195
+ identityProviders: [{
196
+ id: 'pi1',
197
+ createdAt: '2026-01-03T00:00:00Z',
198
+ externalIdentifier: 'ext-1',
199
+ identityProvider: { slug: 'google', type: 'oidc', disabledAt: null },
200
+ }],
201
+ }
202
+
203
+ test('--json flattens the sessions and the identity providers', async () => {
204
+ answerWith({ personById: personDetailRow })
205
+ const { output, stdout, stderr } = createTestOutput()
206
+
207
+ await new TenantPersonShowCommand(createProvider()).run(['p1', '--json'], output)
208
+
209
+ expect(JSON.parse(stdout.text)).toEqual({
210
+ ...expectedPerson,
211
+ passwordlessEnabled: null,
212
+ roles: ['super_admin'],
213
+ sessions: [{
214
+ id: 's1',
215
+ createdAt: '2026-01-01T00:00:00Z',
216
+ expiresAt: null,
217
+ lastUsedAt: '2026-01-02T00:00:00Z',
218
+ lastIp: '10.0.0.1',
219
+ lastUserAgent: null,
220
+ createdIp: null,
221
+ createdUserAgent: null,
222
+ isCurrent: false,
223
+ trustForwardedClientInfo: false,
224
+ }],
225
+ identityProviders: [{ id: 'pi1', slug: 'google', type: 'oidc', externalIdentifier: 'ext-1', createdAt: '2026-01-03T00:00:00Z' }],
226
+ })
227
+ expect(stderr.text).toBe('')
228
+ })
229
+
230
+ test('human mode includes session ids and forwarded-client trust', async () => {
231
+ answerWith({ personById: personDetailRow })
232
+ const { output, stdout } = createTestOutput()
233
+
234
+ await new TenantPersonShowCommand(createProvider()).run(['p1'], output)
235
+
236
+ expect(stdout.text).toContain('s1')
237
+ expect(stdout.text).toContain('trust forwarded client info no')
238
+ expect(stdout.text).toContain('google (oidc)')
239
+ })
240
+
241
+ test('human detail removes terminal controls while JSON keeps remote strings unchanged', async () => {
242
+ const unsafeValue = `remote\u001b]52;c;payload\u0007\r\u0085tail`
243
+ const unsafePerson = {
244
+ ...personDetailRow,
245
+ name: unsafeValue,
246
+ identity: {
247
+ ...personDetailRow.identity,
248
+ roles: [unsafeValue],
249
+ sessions: [{ ...personDetailRow.identity.sessions[0], id: unsafeValue }],
250
+ },
251
+ identityProviders: [{
252
+ ...personDetailRow.identityProviders[0],
253
+ externalIdentifier: unsafeValue,
254
+ }],
255
+ }
256
+ answerWith({ personById: unsafePerson })
257
+ const human = createTestOutput()
258
+
259
+ await new TenantPersonShowCommand(createProvider()).run(['p1'], human.output)
260
+
261
+ for (const control of ['\u001b', '\u0007', '\r', '\u0085']) {
262
+ expect(human.stdout.text).not.toContain(control)
263
+ }
264
+ const jsonOutput = createTestOutput()
265
+ await new TenantPersonShowCommand(createProvider()).run(['p1', '--json'], jsonOutput.output)
266
+ const raw = JSON.parse(jsonOutput.stdout.text)
267
+ expect(raw.name).toBe(unsafeValue)
268
+ expect(raw.roles).toEqual([unsafeValue])
269
+ expect(raw.sessions[0].id).toBe(unsafeValue)
270
+ expect(raw.identityProviders[0].externalIdentifier).toBe(unsafeValue)
271
+ })
272
+
273
+ test('an unknown or invisible person is a not-found error', async () => {
274
+ answerWith({ personById: null })
275
+ const { output } = createTestOutput()
276
+
277
+ await expectCliError(() => new TenantPersonShowCommand(createProvider()).run(['nope'], output), 'PERSON_NOT_FOUND', ExitCode.NotFound)
278
+ })
279
+ })
280
+
281
+ describe('tenant person create', () => {
282
+ test('rejects an empty person name before the network', async () => {
283
+ const { output } = createTestOutput()
284
+ await expectCliError(
285
+ () => new TenantPersonCreateCommand(createProvider()).run(['alice@example.com', '--name', ' '], output),
286
+ 'EMPTY_NAME',
287
+ ExitCode.InputError,
288
+ )
289
+ expect(requests).toHaveLength(0)
290
+ })
291
+
292
+ test('reads the password from stdin and keeps stdout free of diagnostics', async () => {
293
+ answerWith({ signUp: { ok: true, result: { person: personRow } } })
294
+ const { output, stdout, stderr } = createTestOutput()
295
+
296
+ await new TenantPersonCreateCommand(createProvider(), async () => 'sekret\n').run(
297
+ ['alice@example.com', '--password-stdin', '--name', 'Alice', '--role', 'admin', '--role', 'editor', '--json'],
298
+ output,
299
+ )
300
+
301
+ expect(requests[0].variables).toEqual({
302
+ email: 'alice@example.com',
303
+ password: 'sekret',
304
+ passwordHash: undefined,
305
+ name: 'Alice',
306
+ roles: ['admin', 'editor'],
307
+ })
308
+ expect(JSON.parse(stdout.text)).toEqual(expectedPerson)
309
+ expect(stderr.text).toBe('')
310
+ expect(stdout.text).not.toContain('Created person')
311
+ })
312
+
313
+ test('a bcrypt hash from an environment variable is sent as passwordHash', async () => {
314
+ answerWith({ signUp: { ok: true, result: { person: personRow } } })
315
+ process.env.TEST_PERSON_HASH = '$2b$10$abcdefghijklmnopqrstuv'
316
+ const { output } = createTestOutput()
317
+
318
+ await new TenantPersonCreateCommand(createProvider()).run(['alice@example.com', '--password-hash-env', 'TEST_PERSON_HASH'], output)
319
+
320
+ expect(requests[0].variables).toEqual({ email: 'alice@example.com', passwordHash: '$2b$10$abcdefghijklmnopqrstuv' })
321
+ delete process.env.TEST_PERSON_HASH
322
+ })
323
+
324
+ test('a captcha token from an environment variable reaches signUp without entering argv', async () => {
325
+ answerWith({ signUp: { ok: true, result: { person: personRow } } })
326
+ const { output } = createTestOutput()
327
+
328
+ await new TenantPersonCreateCommand(createProvider(), undefined, name => name === 'CAPTCHA' ? 'captcha-secret' : undefined).run(
329
+ ['alice@example.com', '--captcha-token-env', 'CAPTCHA'],
330
+ output,
331
+ )
332
+
333
+ expect(requests[0].variables).toEqual({ email: 'alice@example.com', captchaToken: 'captcha-secret' })
334
+ })
335
+
336
+ test('a stdin captcha token loses one line ending and preserves other whitespace', async () => {
337
+ answerWith({ signUp: { ok: true, result: { person: personRow } } })
338
+ const { output } = createTestOutput()
339
+
340
+ await new TenantPersonCreateCommand(createProvider(), async () => ' captcha-secret \r\n').run(
341
+ ['alice@example.com', '--captcha-token-stdin'],
342
+ output,
343
+ )
344
+
345
+ expect(requests[0].variables).toEqual({ email: 'alice@example.com', captchaToken: ' captcha-secret ' })
346
+ })
347
+
348
+ test('rejects two whole-stdin consumers before reading stdin', async () => {
349
+ let reads = 0
350
+ const { output } = createTestOutput()
351
+
352
+ await expectCliError(
353
+ () =>
354
+ new TenantPersonCreateCommand(createProvider(), async () => {
355
+ reads++
356
+ return 'secret'
357
+ }).run(['alice@example.com', '--password-stdin', '--captcha-token-stdin'], output),
358
+ 'AMBIGUOUS_STDIN_INPUT',
359
+ ExitCode.InputError,
360
+ )
361
+ expect(reads).toBe(0)
362
+ expect(requests).toHaveLength(0)
363
+ })
364
+
365
+ test('a hash that is not bcrypt $2b$ is rejected before the rate limit is spent', async () => {
366
+ process.env.TEST_PERSON_HASH = '$2y$10$abcdefghijklmnopqrstuv'
367
+ const { output } = createTestOutput()
368
+
369
+ await expectCliError(
370
+ () => new TenantPersonCreateCommand(createProvider()).run(['alice@example.com', '--password-hash-env', 'TEST_PERSON_HASH'], output),
371
+ 'INVALID_PASSWORD_HASH',
372
+ ExitCode.InputError,
373
+ )
374
+ expect(requests).toHaveLength(0)
375
+ delete process.env.TEST_PERSON_HASH
376
+ })
377
+
378
+ test('two secret sources at once is an input error', async () => {
379
+ process.env.TEST_PERSON_PASSWORD = 'sekret'
380
+ const { output } = createTestOutput()
381
+
382
+ await expectCliError(
383
+ () =>
384
+ new TenantPersonCreateCommand(createProvider(), async () => 'sekret').run(
385
+ ['alice@example.com', '--password-stdin', '--password-env', 'TEST_PERSON_PASSWORD'],
386
+ output,
387
+ ),
388
+ 'AMBIGUOUS_SECRET_SOURCE',
389
+ ExitCode.InputError,
390
+ )
391
+ expect(requests).toHaveLength(0)
392
+ delete process.env.TEST_PERSON_PASSWORD
393
+ })
394
+
395
+ test('an unset environment variable is an input error', async () => {
396
+ const { output } = createTestOutput()
397
+
398
+ await expectCliError(
399
+ () => new TenantPersonCreateCommand(createProvider()).run(['alice@example.com', '--password-env', 'TEST_PERSON_MISSING'], output),
400
+ 'SECRET_ENV_NOT_SET',
401
+ ExitCode.InputError,
402
+ )
403
+ })
404
+
405
+ test('creating without a password warns but still signs the person up', async () => {
406
+ answerWith({ signUp: { ok: true, result: { person: personRow } } })
407
+ const { output, stderr } = createTestOutput()
408
+
409
+ await new TenantPersonCreateCommand(createProvider()).run(['alice@example.com'], output)
410
+
411
+ expect(stderr.text).toContain('No password given.')
412
+ // neither password variable is sent, so the tenant creates the person with no credential at all
413
+ expect(requests[0].variables).toEqual({ email: 'alice@example.com' })
414
+ })
415
+
416
+ test('a tenant error code is surfaced with its exit code', async () => {
417
+ answerWith({ signUp: { ok: false, error: { code: 'EMAIL_ALREADY_EXISTS', developerMessage: 'taken' } } })
418
+ const { output } = createTestOutput()
419
+
420
+ await expectCliError(
421
+ () => new TenantPersonCreateCommand(createProvider()).run(['alice@example.com'], output),
422
+ 'EMAIL_ALREADY_EXISTS',
423
+ ExitCode.Conflict,
424
+ )
425
+ })
426
+
427
+ test('recovery details are allowlisted in human and JSON errors', async () => {
428
+ const secret = 'server-only-secret'
429
+ answerWith({
430
+ signUp: {
431
+ ok: false,
432
+ error: {
433
+ code: 'EMAIL_ALREADY_EXISTS',
434
+ developerMessage: 'account exists',
435
+ weakPasswordReasons: ['TOO_SHORT', 'SERVER_INVENTED_REASON'],
436
+ recommendedAction: 'RESET_PASSWORD',
437
+ secret,
438
+ },
439
+ },
440
+ })
441
+ const { output } = createTestOutput()
442
+ const error = await expectCliError(
443
+ () => new TenantPersonCreateCommand(createProvider()).run(['alice@example.com'], output),
444
+ 'EMAIL_ALREADY_EXISTS',
445
+ ExitCode.Conflict,
446
+ )
447
+ expect(requests[0].query).toContain('weakPasswordReasons')
448
+ expect(requests[0].query).toContain('recommendedAction')
449
+ expect(error.details).toEqual({
450
+ operation: 'signUp(alice@example.com)',
451
+ code: 'EMAIL_ALREADY_EXISTS',
452
+ developerMessage: 'account exists',
453
+ weakPasswordReasons: ['TOO_SHORT'],
454
+ recommendedAction: 'RESET_PASSWORD',
455
+ })
456
+ expect(JSON.stringify(error.details)).not.toContain(secret)
457
+
458
+ const human = createTestOutput()
459
+ renderCliError(error, human.output)
460
+ expect(human.stderr.text).toContain('EMAIL_ALREADY_EXISTS')
461
+ expect(human.stderr.text).not.toContain(secret)
462
+
463
+ const json = createTestOutput()
464
+ json.output.setMode('json')
465
+ renderCliError(error, json.output)
466
+ expect(JSON.parse(json.stderr.text).error.details).toEqual(error.details)
467
+ expect(json.stderr.text).not.toContain(secret)
468
+ })
469
+
470
+ test('the sign-up rate limit is reported as retryable', async () => {
471
+ answerWith({ signUp: { ok: false, error: { code: 'RATE_LIMIT_EXCEEDED', developerMessage: 'retry after 3600s' } } })
472
+ const { output } = createTestOutput()
473
+
474
+ await expectCliError(
475
+ () => new TenantPersonCreateCommand(createProvider()).run(['alice@example.com'], output),
476
+ 'RATE_LIMIT_EXCEEDED',
477
+ ExitCode.Transient,
478
+ )
479
+ })
480
+ })
481
+
482
+ describe('tenant person update', () => {
483
+ test('rejects an empty person name before the network', async () => {
484
+ const { output } = createTestOutput()
485
+ await expectCliError(
486
+ () => new TenantPersonUpdateCommand(createProvider()).run(['p1', '--name', ''], output),
487
+ 'EMPTY_NAME',
488
+ ExitCode.InputError,
489
+ )
490
+ expect(requests).toHaveLength(0)
491
+ })
492
+
493
+ test('without any field it is an input error', async () => {
494
+ const { output } = createTestOutput()
495
+
496
+ await expectCliError(() => new TenantPersonUpdateCommand(createProvider()).run(['p1'], output), 'NOTHING_TO_UPDATE', ExitCode.InputError)
497
+ expect(requests).toHaveLength(0)
498
+ })
499
+
500
+ test('only the given field is sent and reported', async () => {
501
+ answerWith({ changeProfile: { ok: true } })
502
+ const { output, stdout } = createTestOutput()
503
+
504
+ await new TenantPersonUpdateCommand(createProvider()).run(['p1', '--email', 'new@example.com', '--json'], output)
505
+
506
+ expect(requests[0].variables).toEqual({ personId: 'p1', email: 'new@example.com', name: undefined })
507
+ expect(JSON.parse(stdout.text)).toEqual({ personId: 'p1', email: 'new@example.com', name: null })
508
+ })
509
+ })
510
+
511
+ describe('tenant person set-password', () => {
512
+ test('preserves allowlisted weak-password reasons', async () => {
513
+ answerWith({ changePassword: { ok: false, error: { code: 'TOO_WEAK', developerMessage: 'weak', weakPasswordReasons: ['COMPROMISED'] } } })
514
+ const { output } = createTestOutput()
515
+ const error = await expectCliError(
516
+ () => new TenantPersonSetPasswordCommand(createProvider(), async () => 'sekret').run(['p1', '--password-stdin', '--yes'], output),
517
+ 'TOO_WEAK',
518
+ ExitCode.InputError,
519
+ )
520
+ expect(requests[0].query).toContain('weakPasswordReasons')
521
+ expect(error.details).toMatchObject({ weakPasswordReasons: ['COMPROMISED'] })
522
+ })
523
+
524
+ test('refuses to run non-interactively without --yes', async () => {
525
+ process.env.TEST_PERSON_PASSWORD = 'sekret'
526
+ const { output } = createTestOutput()
527
+
528
+ await expectCliError(
529
+ () => new TenantPersonSetPasswordCommand(createProvider()).run(['p1', '--password-env', 'TEST_PERSON_PASSWORD'], output),
530
+ 'TTY_UNAVAILABLE',
531
+ ExitCode.InputError,
532
+ )
533
+ expect(requests).toHaveLength(0)
534
+ delete process.env.TEST_PERSON_PASSWORD
535
+ })
536
+
537
+ test('with --yes it sends the password read from stdin', async () => {
538
+ answerWith({ changePassword: { ok: true } })
539
+ const { output, stdout } = createTestOutput()
540
+
541
+ await new TenantPersonSetPasswordCommand(createProvider(), async () => 'sekret\n').run(['p1', '--password-stdin', '--yes', '--json'], output)
542
+
543
+ expect(requests[0].variables).toEqual({ personId: 'p1', password: 'sekret' })
544
+ expect(JSON.parse(stdout.text)).toEqual({ personId: 'p1', passwordChanged: true })
545
+ })
546
+
547
+ test('without a password source it is an input error', async () => {
548
+ const { output } = createTestOutput()
549
+
550
+ await expectCliError(
551
+ () => new TenantPersonSetPasswordCommand(createProvider()).run(['p1', '--yes'], output),
552
+ 'PASSWORD_REQUIRED',
553
+ ExitCode.InputError,
554
+ )
555
+ })
556
+ })
557
+
558
+ describe('tenant person disable', () => {
559
+ test('refuses to run non-interactively without --yes', async () => {
560
+ const { output } = createTestOutput()
561
+
562
+ await expectCliError(() => new TenantPersonDisableCommand(createProvider()).run(['p1'], output), 'TTY_UNAVAILABLE', ExitCode.InputError)
563
+ expect(requests).toHaveLength(0)
564
+ })
565
+
566
+ test('with --yes it disables the person and reports it as data', async () => {
567
+ answerWith({ disablePerson: { ok: true } })
568
+ const { output, stdout, stderr } = createTestOutput()
569
+
570
+ await new TenantPersonDisableCommand(createProvider()).run(['p1', '--yes', '--json'], output)
571
+
572
+ expect(requests[0].variables).toEqual({ personId: 'p1' })
573
+ expect(JSON.parse(stdout.text)).toEqual({ personId: 'p1', disabled: true })
574
+ // JSON mode suppresses human diagnostics, so stdout remains the only output channel.
575
+ expect(stderr.text).toBe('')
576
+ })
577
+
578
+ test('an already disabled person is a conflict', async () => {
579
+ answerWith({ disablePerson: { ok: false, error: { code: 'PERSON_ALREADY_DISABLED', developerMessage: 'already off' } } })
580
+ const { output } = createTestOutput()
581
+
582
+ await expectCliError(
583
+ () => new TenantPersonDisableCommand(createProvider()).run(['p1', '--yes'], output),
584
+ 'PERSON_ALREADY_DISABLED',
585
+ ExitCode.Conflict,
586
+ )
587
+ })
588
+ })
589
+
590
+ describe('tenant person sign-out', () => {
591
+ test('help and human output describe permanent API-key invalidation', async () => {
592
+ const command = new TenantPersonSignOutCommand(createProvider())
593
+ expect(command.getConfiguration().getDescription()).toContain('permanent keys')
594
+ answerWith({ forceSignOutPerson: { ok: true } })
595
+ const { output, stderr } = createTestOutput()
596
+
597
+ await command.run(['p1', '--yes'], output)
598
+
599
+ expect(stderr.text).toContain('permanent keys')
600
+ })
601
+
602
+ test('refuses to run non-interactively without --yes', async () => {
603
+ const { output } = createTestOutput()
604
+
605
+ await expectCliError(() => new TenantPersonSignOutCommand(createProvider()).run(['p1'], output), 'TTY_UNAVAILABLE', ExitCode.InputError)
606
+ })
607
+
608
+ test('the reason travels to the API and back into the result', async () => {
609
+ answerWith({ forceSignOutPerson: { ok: true } })
610
+ const { output, stdout, stderr } = createTestOutput()
611
+
612
+ await new TenantPersonSignOutCommand(createProvider()).run(['p1', '--reason', 'INC-42', '--yes', '--json'], output)
613
+
614
+ expect(requests[0].variables).toEqual({ personId: 'p1', reason: 'INC-42' })
615
+ expect(JSON.parse(stdout.text)).toEqual({ personId: 'p1', signedOut: true, reason: 'INC-42' })
616
+ expect(stderr.text).toBe('')
617
+ })
618
+ })
619
+
620
+ describe('tenant person reset-mfa', () => {
621
+ test('refuses to run non-interactively without --yes', async () => {
622
+ const { output } = createTestOutput()
623
+
624
+ await expectCliError(() => new TenantPersonResetMfaCommand(createProvider()).run(['p1'], output), 'TTY_UNAVAILABLE', ExitCode.InputError)
625
+ })
626
+
627
+ test('the result spells out every factor that was cleared', async () => {
628
+ answerWith({ resetPersonMfa: { ok: true } })
629
+ const { output, stdout } = createTestOutput()
630
+
631
+ await new TenantPersonResetMfaCommand(createProvider()).run(['p1', '--yes', '--json'], output)
632
+
633
+ expect(JSON.parse(stdout.text)).toEqual({
634
+ personId: 'p1',
635
+ mfaReset: true,
636
+ totpDisabled: true,
637
+ emailOtpDisabled: true,
638
+ backupCodesDeleted: true,
639
+ })
640
+ })
641
+ })
642
+
643
+ describe('tenant person reset-password-request', () => {
644
+ test('the mail options travel as the options input', async () => {
645
+ answerWith({ createResetPasswordRequest: { ok: true } })
646
+ const { output, stdout, stderr } = createTestOutput()
647
+
648
+ await new TenantPersonResetPasswordRequestCommand(createProvider()).run(
649
+ ['alice@example.com', '--mail-project', 'blog', '--mail-variant', 'cs', '--json'],
650
+ output,
651
+ )
652
+
653
+ expect(requests[0].variables).toEqual({ email: 'alice@example.com', options: { mailProject: 'blog', mailVariant: 'cs' } })
654
+ expect(JSON.parse(stdout.text)).toEqual({ email: 'alice@example.com', requested: true, mailProject: 'blog', mailVariant: 'cs' })
655
+ // JSON mode contains only the stable payload; the command help documents the anti-enumeration behavior.
656
+ expect(stderr.text).toBe('')
657
+ })
658
+
659
+ test('a captcha token from stdin reaches createResetPasswordRequest', async () => {
660
+ answerWith({ createResetPasswordRequest: { ok: true } })
661
+ const { output } = createTestOutput()
662
+
663
+ await new TenantPersonResetPasswordRequestCommand(createProvider(), async () => 'captcha-secret').run(
664
+ ['alice@example.com', '--captcha-token-stdin'],
665
+ output,
666
+ )
667
+
668
+ expect(requests[0].variables).toEqual({ email: 'alice@example.com', options: {}, captchaToken: 'captcha-secret' })
669
+ })
670
+ })
671
+
672
+ describe('tenant session create', () => {
673
+ const SESSION_TOKEN = 'd'.repeat(40)
674
+ const sessionResult = {
675
+ ok: true,
676
+ result: {
677
+ token: SESSION_TOKEN,
678
+ person: { id: 'p1', email: 'alice@example.com', name: 'Alice', identity: { id: 'i1' } },
679
+ },
680
+ }
681
+
682
+ test('requires exactly one person identifier and sends nothing when invalid', async () => {
683
+ const { output } = createTestOutput()
684
+
685
+ await expectCliError(() => new TenantSessionCreateCommand(createProvider()).run([], output), 'INVALID_PERSON_IDENTIFIER', ExitCode.InputError)
686
+ await expectCliError(
687
+ () => new TenantSessionCreateCommand(createProvider()).run(['--email', 'alice@example.com', '--person-id', 'p1'], output),
688
+ 'INVALID_PERSON_IDENTIFIER',
689
+ ExitCode.InputError,
690
+ )
691
+ expect(requests).toHaveLength(0)
692
+ })
693
+
694
+ test('rejects empty person identifiers before sending a request', async () => {
695
+ const { output } = createTestOutput()
696
+
697
+ await expectCliError(
698
+ () => new TenantSessionCreateCommand(createProvider()).run(['--email', ' '], output),
699
+ 'INVALID_PERSON_IDENTIFIER',
700
+ ExitCode.InputError,
701
+ )
702
+ await expectCliError(
703
+ () => new TenantSessionCreateCommand(createProvider()).run(['--person-id', ''], output),
704
+ 'INVALID_PERSON_IDENTIFIER',
705
+ ExitCode.InputError,
706
+ )
707
+ expect(requests).toHaveLength(0)
708
+ })
709
+
710
+ test('rejects zero and out-of-range GraphQL Int expirations', async () => {
711
+ for (const expiration of ['0', '2147483648']) {
712
+ const { output } = createTestOutput()
713
+ await expectCliError(
714
+ () => new TenantSessionCreateCommand(createProvider()).run(['--person-id', 'p1', '--expiration', expiration], output),
715
+ 'INVALID_OPTION_VALUE',
716
+ ExitCode.InputError,
717
+ )
718
+ }
719
+ expect(requests).toHaveLength(0)
720
+ })
721
+
722
+ test('rejects negative and empty expiration values as input errors', async () => {
723
+ const { output } = createTestOutput()
724
+ await expectCliError(
725
+ () => new TenantSessionCreateCommand(createProvider()).run(['--person-id', 'p1', '--expiration', '-1'], output),
726
+ 'INVALID_INPUT',
727
+ ExitCode.InputError,
728
+ )
729
+ await expectCliError(
730
+ () => new TenantSessionCreateCommand(createProvider()).run(['--person-id', 'p1', '--expiration', ''], output),
731
+ 'INVALID_OPTION_VALUE',
732
+ ExitCode.InputError,
733
+ )
734
+ expect(requests).toHaveLength(0)
735
+ })
736
+
737
+ test('forwards the session lifetime in minutes and emits structured JSON', async () => {
738
+ answerWith({ createSessionToken: sessionResult })
739
+ const { output, stdout, stderr } = createTestOutput()
740
+ const command = new TenantSessionCreateCommand(createProvider())
741
+ const expirationOption = command.getConfiguration().getOptions().find(it => it.name === 'expiration')
742
+
743
+ expect(expirationOption?.description).toBe('Session lifetime in minutes as a positive integer.')
744
+
745
+ await command.run(
746
+ ['--person-id', 'p1', '--expiration', '15', '--trust-forwarded-client-info', '--json'],
747
+ output,
748
+ )
749
+
750
+ expect(requests[0].variables).toEqual({
751
+ email: undefined,
752
+ personId: 'p1',
753
+ expiration: 15,
754
+ options: { trustForwardedClientInfo: true },
755
+ })
756
+ expect(JSON.parse(stdout.text)).toEqual({
757
+ token: SESSION_TOKEN,
758
+ personId: 'p1',
759
+ identityId: 'i1',
760
+ email: 'alice@example.com',
761
+ name: 'Alice',
762
+ })
763
+ expect(stderr.text).toBe('')
764
+ })
765
+
766
+ test('--quiet prints only the token and never sends it to stderr', async () => {
767
+ answerWith({ createSessionToken: sessionResult })
768
+ const { output, stdout, stderr } = createTestOutput()
769
+
770
+ await new TenantSessionCreateCommand(createProvider()).run(['--email', 'alice@example.com', '--quiet'], output)
771
+
772
+ expect(stdout.lines).toEqual([SESSION_TOKEN])
773
+ expect(stderr.text).toBe('')
774
+ })
775
+
776
+ test('human mode labels the one-time token without writing it to stderr', async () => {
777
+ answerWith({ createSessionToken: sessionResult })
778
+ const { output, stdout, stderr } = createTestOutput()
779
+
780
+ await new TenantSessionCreateCommand(createProvider()).run(['--email', 'alice@example.com'], output)
781
+
782
+ expect(stdout.text).toContain('Session token for person p1:')
783
+ expect(stdout.text).toContain(SESSION_TOKEN)
784
+ expect(stderr.text).not.toContain(SESSION_TOKEN)
785
+ })
786
+
787
+ test('rejects a malformed session token without printing it', async () => {
788
+ const malformedToken = `secret\u001b]8;;https://attacker.test\u0007\r\u0085tail`
789
+ answerWith({
790
+ createSessionToken: {
791
+ ...sessionResult,
792
+ result: { ...sessionResult.result, token: malformedToken },
793
+ },
794
+ })
795
+ const { output, stdout, stderr } = createTestOutput()
796
+
797
+ try {
798
+ await new TenantSessionCreateCommand(createProvider()).run(['--person-id', 'p1'], output)
799
+ throw new Error('expected malformed credential to fail')
800
+ } catch (error) {
801
+ expect(error).toMatchObject({ code: 'TENANT_API_INVALID_CREDENTIAL', exitCode: ExitCode.InternalError })
802
+ expect(error instanceof Error ? error.message : '').not.toContain(malformedToken)
803
+ }
804
+ expect(stdout.text).toBe('')
805
+ expect(stderr.text).toBe('')
806
+ })
807
+ })
808
+
809
+ describe('tenant identity role', () => {
810
+ test('add takes variadic roles and reports the resulting role set', async () => {
811
+ answerWith({ addGlobalIdentityRoles: { ok: true, result: { identity: { id: 'i1', roles: ['admin', 'editor'] } } } })
812
+ const { output, stdout, stderr } = createTestOutput()
813
+
814
+ await new TenantIdentityRoleAddCommand(createProvider()).run(['i1', 'admin', 'editor', '--json'], output)
815
+
816
+ expect(requests[0].variables).toEqual({ identityId: 'i1', roles: ['admin', 'editor'] })
817
+ expect(JSON.parse(stdout.text)).toEqual({ identityId: 'i1', added: ['admin', 'editor'], roles: ['admin', 'editor'] })
818
+ expect(stderr.text).toBe('')
819
+ })
820
+
821
+ test('add reports null roles when the token may not read them', async () => {
822
+ answerWith({ addGlobalIdentityRoles: { ok: true, result: { identity: { id: 'i1', roles: null } } } })
823
+ const { output, stdout } = createTestOutput()
824
+
825
+ await new TenantIdentityRoleAddCommand(createProvider()).run(['i1', 'admin', '--json'], output)
826
+
827
+ expect(JSON.parse(stdout.text)).toEqual({ identityId: 'i1', added: ['admin'], roles: null })
828
+ })
829
+
830
+ test('an unknown role is an input error', async () => {
831
+ answerWith({ addGlobalIdentityRoles: { ok: false, error: { code: 'INVALID_ROLE', developerMessage: 'no such role' } } })
832
+ const { output } = createTestOutput()
833
+
834
+ await expectCliError(() => new TenantIdentityRoleAddCommand(createProvider()).run(['i1', 'nope'], output), 'INVALID_ROLE', ExitCode.InputError)
835
+ })
836
+
837
+ test('remove refuses to run non-interactively without --yes', async () => {
838
+ const { output } = createTestOutput()
839
+
840
+ await expectCliError(
841
+ () => new TenantIdentityRoleRemoveCommand(createProvider()).run(['i1', 'admin'], output),
842
+ 'TTY_UNAVAILABLE',
843
+ ExitCode.InputError,
844
+ )
845
+ expect(requests).toHaveLength(0)
846
+ })
847
+
848
+ test('remove with --yes reports what is left', async () => {
849
+ answerWith({ removeGlobalIdentityRoles: { ok: true, result: { identity: { id: 'i1', roles: ['editor'] } } } })
850
+ const { output, stdout } = createTestOutput()
851
+
852
+ await new TenantIdentityRoleRemoveCommand(createProvider()).run(['i1', 'admin', '--yes', '--json'], output)
853
+
854
+ expect(requests[0].variables).toEqual({ identityId: 'i1', roles: ['admin'] })
855
+ expect(JSON.parse(stdout.text)).toEqual({ identityId: 'i1', removed: ['admin'], roles: ['editor'] })
856
+ })
857
+ })