@contember/cli 2.2.0-alpha.2 → 2.2.0-alpha.21

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 (1382) 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 +24 -22
  87. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
  88. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.js +25 -23
  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 +95 -0
  195. package/dist/development/src/commands/tenant/policy/TenantAuthLogCommand.cjs.map +1 -0
  196. package/dist/development/src/commands/tenant/policy/TenantAuthLogCommand.js +95 -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 +36 -21
  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 +71 -28
  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 +154 -47
  291. package/dist/development/src/dic.cjs.map +1 -1
  292. package/dist/development/src/dic.js +154 -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/VersionChecker.cjs +2 -19
  303. package/dist/development/src/lib/VersionChecker.cjs.map +1 -1
  304. package/dist/development/src/lib/VersionChecker.js +2 -2
  305. package/dist/development/src/lib/VersionChecker.js.map +1 -1
  306. package/dist/development/src/lib/actions/ActionsClient.cjs +18 -6
  307. package/dist/development/src/lib/actions/ActionsClient.cjs.map +1 -1
  308. package/dist/development/src/lib/actions/ActionsClient.js +18 -6
  309. package/dist/development/src/lib/actions/ActionsClient.js.map +1 -1
  310. package/dist/development/src/lib/actions/UndefinedActionsVariablesChecker.cjs +39 -0
  311. package/dist/development/src/lib/actions/UndefinedActionsVariablesChecker.cjs.map +1 -0
  312. package/dist/development/src/lib/actions/UndefinedActionsVariablesChecker.js +39 -0
  313. package/dist/development/src/lib/actions/UndefinedActionsVariablesChecker.js.map +1 -0
  314. package/dist/development/src/lib/actions/resolveActionsClient.cjs +13 -0
  315. package/dist/development/src/lib/actions/resolveActionsClient.cjs.map +1 -0
  316. package/dist/development/src/lib/actions/resolveActionsClient.js +13 -0
  317. package/dist/development/src/lib/actions/resolveActionsClient.js.map +1 -0
  318. package/dist/development/src/lib/actions/runActionMutationBatch.cjs +44 -0
  319. package/dist/development/src/lib/actions/runActionMutationBatch.cjs.map +1 -0
  320. package/dist/development/src/lib/actions/runActionMutationBatch.js +44 -0
  321. package/dist/development/src/lib/actions/runActionMutationBatch.js.map +1 -0
  322. package/dist/development/src/lib/admin/AdminClient.cjs +31 -11
  323. package/dist/development/src/lib/admin/AdminClient.cjs.map +1 -1
  324. package/dist/development/src/lib/admin/AdminClient.js +31 -11
  325. package/dist/development/src/lib/admin/AdminClient.js.map +1 -1
  326. package/dist/development/src/lib/admin/AdminDeployer.cjs +5 -3
  327. package/dist/development/src/lib/admin/AdminDeployer.cjs.map +1 -1
  328. package/dist/development/src/lib/admin/AdminDeployer.js +5 -3
  329. package/dist/development/src/lib/admin/AdminDeployer.js.map +1 -1
  330. package/dist/development/src/lib/errors/TransportError.cjs +204 -0
  331. package/dist/development/src/lib/errors/TransportError.cjs.map +1 -0
  332. package/dist/development/src/lib/errors/TransportError.js +204 -0
  333. package/dist/development/src/lib/errors/TransportError.js.map +1 -0
  334. package/dist/development/src/lib/fs/FileSystem.cjs +36 -4
  335. package/dist/development/src/lib/fs/FileSystem.cjs.map +1 -1
  336. package/dist/development/src/lib/fs/FileSystem.js +35 -3
  337. package/dist/development/src/lib/fs/FileSystem.js.map +1 -1
  338. package/dist/development/src/lib/maskToken.cjs +7 -1
  339. package/dist/development/src/lib/maskToken.cjs.map +1 -1
  340. package/dist/development/src/lib/maskToken.js +7 -1
  341. package/dist/development/src/lib/maskToken.js.map +1 -1
  342. package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs +102 -50
  343. package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
  344. package/dist/development/src/lib/migrations/MigrationExecutionFacade.js +102 -50
  345. package/dist/development/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
  346. package/dist/development/src/lib/migrations/MigrationPrinter.cjs +79 -66
  347. package/dist/development/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
  348. package/dist/development/src/lib/migrations/MigrationPrinter.js +80 -67
  349. package/dist/development/src/lib/migrations/MigrationPrinter.js.map +1 -1
  350. package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs +2 -1
  351. package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
  352. package/dist/development/src/lib/migrations/MigrationRebaseFacade.js +2 -1
  353. package/dist/development/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
  354. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.cjs +15 -11
  355. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.cjs.map +1 -1
  356. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.js +15 -11
  357. package/dist/development/src/lib/migrations/MigrationSnapshotFacade.js.map +1 -1
  358. package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs +12 -4
  359. package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
  360. package/dist/development/src/lib/migrations/MigrationsStatusFacade.js +12 -4
  361. package/dist/development/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
  362. package/dist/development/src/lib/migrations/MigrationsValidator.cjs +5 -3
  363. package/dist/development/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
  364. package/dist/development/src/lib/migrations/MigrationsValidator.js +5 -3
  365. package/dist/development/src/lib/migrations/MigrationsValidator.js.map +1 -1
  366. package/dist/development/src/lib/project/RemoteProjectProvider.cjs +5 -1
  367. package/dist/development/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
  368. package/dist/development/src/lib/project/RemoteProjectProvider.js +5 -1
  369. package/dist/development/src/lib/project/RemoteProjectProvider.js.map +1 -1
  370. package/dist/development/src/lib/project/docs/components/EntityInfo.cjs +27 -28
  371. package/dist/development/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
  372. package/dist/development/src/lib/project/docs/components/EntityInfo.js +28 -29
  373. package/dist/development/src/lib/project/docs/components/EntityInfo.js.map +1 -1
  374. package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs +30 -10
  375. package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
  376. package/dist/development/src/lib/project/docs/components/FieldPermissions.js +30 -10
  377. package/dist/development/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
  378. package/dist/development/src/lib/project/docs/components/SinglePermission.cjs +23 -10
  379. package/dist/development/src/lib/project/docs/components/SinglePermission.cjs.map +1 -1
  380. package/dist/development/src/lib/project/docs/components/SinglePermission.js +23 -10
  381. package/dist/development/src/lib/project/docs/components/SinglePermission.js.map +1 -1
  382. package/dist/development/src/lib/prompt/prompt.cjs +47 -0
  383. package/dist/development/src/lib/prompt/prompt.cjs.map +1 -0
  384. package/dist/development/src/lib/prompt/prompt.js +47 -0
  385. package/dist/development/src/lib/prompt/prompt.js.map +1 -0
  386. package/dist/development/src/lib/schema/SchemaValidationHelper.cjs +2 -2
  387. package/dist/development/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
  388. package/dist/development/src/lib/schema/SchemaValidationHelper.js +2 -2
  389. package/dist/development/src/lib/schema/SchemaValidationHelper.js.map +1 -1
  390. package/dist/development/src/lib/schema/SchemaValidationPrinter.cjs +4 -4
  391. package/dist/development/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
  392. package/dist/development/src/lib/schema/SchemaValidationPrinter.js +4 -4
  393. package/dist/development/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
  394. package/dist/development/src/lib/tenant/TenantApiTransport.cjs +160 -0
  395. package/dist/development/src/lib/tenant/TenantApiTransport.cjs.map +1 -0
  396. package/dist/development/src/lib/tenant/TenantApiTransport.js +160 -0
  397. package/dist/development/src/lib/tenant/TenantApiTransport.js.map +1 -0
  398. package/dist/development/src/lib/tenant/TenantConfigApplier.cjs +110 -26
  399. package/dist/development/src/lib/tenant/TenantConfigApplier.cjs.map +1 -1
  400. package/dist/development/src/lib/tenant/TenantConfigApplier.js +110 -26
  401. package/dist/development/src/lib/tenant/TenantConfigApplier.js.map +1 -1
  402. package/dist/development/src/lib/tenant/TenantConnectionProvider.cjs +20 -0
  403. package/dist/development/src/lib/tenant/TenantConnectionProvider.cjs.map +1 -0
  404. package/dist/development/src/lib/tenant/TenantConnectionProvider.js +20 -0
  405. package/dist/development/src/lib/tenant/TenantConnectionProvider.js.map +1 -0
  406. package/dist/development/src/lib/tenant/TenantConnectionResolver.cjs +30 -0
  407. package/dist/development/src/lib/tenant/TenantConnectionResolver.cjs.map +1 -0
  408. package/dist/development/src/lib/tenant/TenantConnectionResolver.js +30 -0
  409. package/dist/development/src/lib/tenant/TenantConnectionResolver.js.map +1 -0
  410. package/dist/development/src/lib/tenant/authPolicy.cjs +10 -0
  411. package/dist/development/src/lib/tenant/authPolicy.cjs.map +1 -0
  412. package/dist/development/src/lib/tenant/authPolicy.js +10 -0
  413. package/dist/development/src/lib/tenant/authPolicy.js.map +1 -0
  414. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.cjs +101 -0
  415. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.cjs.map +1 -0
  416. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.js +101 -0
  417. package/dist/development/src/lib/tenant/clients/TenantApiKeyClient.js.map +1 -0
  418. package/dist/development/src/lib/tenant/clients/TenantMemberClient.cjs +96 -0
  419. package/dist/development/src/lib/tenant/clients/TenantMemberClient.cjs.map +1 -0
  420. package/dist/development/src/lib/tenant/clients/TenantMemberClient.js +96 -0
  421. package/dist/development/src/lib/tenant/clients/TenantMemberClient.js.map +1 -0
  422. package/dist/development/src/lib/tenant/clients/TenantPersonClient.cjs +162 -0
  423. package/dist/development/src/lib/tenant/clients/TenantPersonClient.cjs.map +1 -0
  424. package/dist/development/src/lib/tenant/clients/TenantPersonClient.js +162 -0
  425. package/dist/development/src/lib/tenant/clients/TenantPersonClient.js.map +1 -0
  426. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.cjs +135 -0
  427. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.cjs.map +1 -0
  428. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.js +135 -0
  429. package/dist/development/src/lib/tenant/clients/TenantPolicyClient.js.map +1 -0
  430. package/dist/development/src/lib/tenant/clients/TenantProjectClient.cjs +216 -0
  431. package/dist/development/src/lib/tenant/clients/TenantProjectClient.cjs.map +1 -0
  432. package/dist/development/src/lib/tenant/clients/TenantProjectClient.js +216 -0
  433. package/dist/development/src/lib/tenant/clients/TenantProjectClient.js.map +1 -0
  434. package/dist/development/src/lib/tenant/clients/index.cjs +21 -0
  435. package/dist/development/src/lib/tenant/clients/index.cjs.map +1 -0
  436. package/dist/development/src/lib/tenant/clients/index.js +21 -0
  437. package/dist/development/src/lib/tenant/clients/index.js.map +1 -0
  438. package/dist/development/src/lib/tenant/confirmation.cjs +23 -0
  439. package/dist/development/src/lib/tenant/confirmation.cjs.map +1 -0
  440. package/dist/development/src/lib/tenant/confirmation.js +23 -0
  441. package/dist/development/src/lib/tenant/confirmation.js.map +1 -0
  442. package/dist/development/src/lib/tenant/input/pagination.cjs +24 -0
  443. package/dist/development/src/lib/tenant/input/pagination.cjs.map +1 -0
  444. package/dist/development/src/lib/tenant/input/pagination.js +24 -0
  445. package/dist/development/src/lib/tenant/input/pagination.js.map +1 -0
  446. package/dist/development/src/lib/tenant/input/value.cjs +71 -0
  447. package/dist/development/src/lib/tenant/input/value.cjs.map +1 -0
  448. package/dist/development/src/lib/tenant/input/value.js +71 -0
  449. package/dist/development/src/lib/tenant/input/value.js.map +1 -0
  450. package/dist/development/src/lib/tenant/stdin.cjs +13 -0
  451. package/dist/development/src/lib/tenant/stdin.cjs.map +1 -0
  452. package/dist/development/src/lib/tenant/stdin.js +13 -0
  453. package/dist/development/src/lib/tenant/stdin.js.map +1 -0
  454. package/dist/development/src/lib/tenant/tenantConfig.cjs.map +1 -1
  455. package/dist/development/src/lib/tenant/tenantConfig.js.map +1 -1
  456. package/dist/development/src/lib/transfer/DataTransferClient.cjs +291 -55
  457. package/dist/development/src/lib/transfer/DataTransferClient.cjs.map +1 -1
  458. package/dist/development/src/lib/transfer/DataTransferClient.js +292 -56
  459. package/dist/development/src/lib/transfer/DataTransferClient.js.map +1 -1
  460. package/dist/development/src/lib/transfer/stdio.cjs +3 -8
  461. package/dist/development/src/lib/transfer/stdio.cjs.map +1 -1
  462. package/dist/development/src/lib/transfer/stdio.js +3 -8
  463. package/dist/development/src/lib/transfer/stdio.js.map +1 -1
  464. package/dist/development/src/lib/versionRange.cjs +276 -0
  465. package/dist/development/src/lib/versionRange.cjs.map +1 -0
  466. package/dist/development/src/lib/versionRange.js +276 -0
  467. package/dist/development/src/lib/versionRange.js.map +1 -0
  468. package/dist/production/run.cjs +12 -4
  469. package/dist/production/run.cjs.map +1 -1
  470. package/dist/production/run.js +12 -4
  471. package/dist/production/run.js.map +1 -1
  472. package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs +30 -15
  473. package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
  474. package/dist/production/src/commands/actions/ActionsGetEventCommand.js +31 -16
  475. package/dist/production/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
  476. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs +21 -41
  477. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
  478. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js +22 -42
  479. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
  480. package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs +15 -13
  481. package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
  482. package/dist/production/src/commands/actions/ActionsListVariablesCommand.js +15 -13
  483. package/dist/production/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
  484. package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs +28 -16
  485. package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
  486. package/dist/production/src/commands/actions/ActionsRetryEventCommand.js +29 -17
  487. package/dist/production/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
  488. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs +51 -22
  489. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
  490. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js +52 -23
  491. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
  492. package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs +28 -16
  493. package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
  494. package/dist/production/src/commands/actions/ActionsStopEventCommand.js +29 -17
  495. package/dist/production/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
  496. package/dist/production/src/commands/deploy/DeployCommand.cjs +56 -29
  497. package/dist/production/src/commands/deploy/DeployCommand.cjs.map +1 -1
  498. package/dist/production/src/commands/deploy/DeployCommand.js +57 -30
  499. package/dist/production/src/commands/deploy/DeployCommand.js.map +1 -1
  500. package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs +64 -24
  501. package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
  502. package/dist/production/src/commands/migrations/MigrationAmendCommand.js +65 -25
  503. package/dist/production/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
  504. package/dist/production/src/commands/migrations/MigrationBlankCommand.cjs +2 -2
  505. package/dist/production/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
  506. package/dist/production/src/commands/migrations/MigrationBlankCommand.js +2 -2
  507. package/dist/production/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
  508. package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs +7 -3
  509. package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
  510. package/dist/production/src/commands/migrations/MigrationDescribeCommand.js +8 -4
  511. package/dist/production/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
  512. package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs +73 -25
  513. package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
  514. package/dist/production/src/commands/migrations/MigrationDiffCommand.js +74 -26
  515. package/dist/production/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
  516. package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs +7 -2
  517. package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
  518. package/dist/production/src/commands/migrations/MigrationExecuteCommand.js +7 -2
  519. package/dist/production/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
  520. package/dist/production/src/commands/migrations/MigrationInitStateCommand.cjs +11 -4
  521. package/dist/production/src/commands/migrations/MigrationInitStateCommand.cjs.map +1 -1
  522. package/dist/production/src/commands/migrations/MigrationInitStateCommand.js +11 -4
  523. package/dist/production/src/commands/migrations/MigrationInitStateCommand.js.map +1 -1
  524. package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs +24 -4
  525. package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
  526. package/dist/production/src/commands/migrations/MigrationRebaseCommand.js +25 -5
  527. package/dist/production/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
  528. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.cjs +39 -8
  529. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.cjs.map +1 -1
  530. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.js +40 -9
  531. package/dist/production/src/commands/migrations/MigrationSnapshotCommand.js.map +1 -1
  532. package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs +5 -5
  533. package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
  534. package/dist/production/src/commands/migrations/MigrationStatusCommand.js +5 -5
  535. package/dist/production/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
  536. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.cjs +6 -7
  537. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.cjs.map +1 -1
  538. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.js +6 -7
  539. package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.js.map +1 -1
  540. package/dist/production/src/commands/misc/CommandsCommand.cjs +58 -0
  541. package/dist/production/src/commands/misc/CommandsCommand.cjs.map +1 -0
  542. package/dist/production/src/commands/misc/CommandsCommand.js +58 -0
  543. package/dist/production/src/commands/misc/CommandsCommand.js.map +1 -0
  544. package/dist/production/src/commands/misc/VersionCommand.cjs +2 -3
  545. package/dist/production/src/commands/misc/VersionCommand.cjs.map +1 -1
  546. package/dist/production/src/commands/misc/VersionCommand.js +2 -3
  547. package/dist/production/src/commands/misc/VersionCommand.js.map +1 -1
  548. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs +12 -12
  549. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
  550. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js +13 -13
  551. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
  552. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs +24 -22
  553. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
  554. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js +25 -23
  555. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
  556. package/dist/production/src/commands/project/ProjectValidateCommand.cjs +40 -12
  557. package/dist/production/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
  558. package/dist/production/src/commands/project/ProjectValidateCommand.js +42 -14
  559. package/dist/production/src/commands/project/ProjectValidateCommand.js.map +1 -1
  560. package/dist/production/src/commands/tenant/TenantApplyCommand.cjs +32 -12
  561. package/dist/production/src/commands/tenant/TenantApplyCommand.cjs.map +1 -1
  562. package/dist/production/src/commands/tenant/TenantApplyCommand.js +33 -13
  563. package/dist/production/src/commands/tenant/TenantApplyCommand.js.map +1 -1
  564. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.cjs +68 -0
  565. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.cjs.map +1 -0
  566. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.js +68 -0
  567. package/dist/production/src/commands/tenant/apikey/TenantApiKeyCreateCommand.js.map +1 -0
  568. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.cjs +31 -0
  569. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.cjs.map +1 -0
  570. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.js +31 -0
  571. package/dist/production/src/commands/tenant/apikey/TenantApiKeyDisableCommand.js.map +1 -0
  572. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.cjs +55 -0
  573. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.cjs.map +1 -0
  574. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.js +55 -0
  575. package/dist/production/src/commands/tenant/apikey/TenantApiKeyListCommand.js.map +1 -0
  576. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.cjs +36 -0
  577. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.cjs.map +1 -0
  578. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.js +36 -0
  579. package/dist/production/src/commands/tenant/member/TenantMemberAddCommand.js.map +1 -0
  580. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.cjs +62 -0
  581. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.cjs.map +1 -0
  582. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.js +62 -0
  583. package/dist/production/src/commands/tenant/member/TenantMemberInviteCommand.js.map +1 -0
  584. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.cjs +102 -0
  585. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.cjs.map +1 -0
  586. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.js +102 -0
  587. package/dist/production/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.js.map +1 -0
  588. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.cjs +73 -0
  589. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.cjs.map +1 -0
  590. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.js +73 -0
  591. package/dist/production/src/commands/tenant/member/TenantMemberListCommand.js.map +1 -0
  592. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.cjs +35 -0
  593. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.cjs.map +1 -0
  594. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.js +35 -0
  595. package/dist/production/src/commands/tenant/member/TenantMemberRemoveCommand.js.map +1 -0
  596. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.cjs +45 -0
  597. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.cjs.map +1 -0
  598. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.js +45 -0
  599. package/dist/production/src/commands/tenant/member/TenantMemberUpdateCommand.js.map +1 -0
  600. package/dist/production/src/commands/tenant/member/memberOptions.cjs +16 -0
  601. package/dist/production/src/commands/tenant/member/memberOptions.cjs.map +1 -0
  602. package/dist/production/src/commands/tenant/member/memberOptions.js +16 -0
  603. package/dist/production/src/commands/tenant/member/memberOptions.js.map +1 -0
  604. package/dist/production/src/commands/tenant/member/membershipInput.cjs +109 -0
  605. package/dist/production/src/commands/tenant/member/membershipInput.cjs.map +1 -0
  606. package/dist/production/src/commands/tenant/member/membershipInput.js +109 -0
  607. package/dist/production/src/commands/tenant/member/membershipInput.js.map +1 -0
  608. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.cjs +27 -0
  609. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.cjs.map +1 -0
  610. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.js +27 -0
  611. package/dist/production/src/commands/tenant/person/TenantIdentityRoleAddCommand.js.map +1 -0
  612. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.cjs +34 -0
  613. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.cjs.map +1 -0
  614. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.js +34 -0
  615. package/dist/production/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.js.map +1 -0
  616. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.cjs +79 -0
  617. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.cjs.map +1 -0
  618. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.js +79 -0
  619. package/dist/production/src/commands/tenant/person/TenantPersonCreateCommand.js.map +1 -0
  620. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.cjs +29 -0
  621. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.cjs.map +1 -0
  622. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.js +29 -0
  623. package/dist/production/src/commands/tenant/person/TenantPersonDisableCommand.js.map +1 -0
  624. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.cjs +53 -0
  625. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.cjs.map +1 -0
  626. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.js +53 -0
  627. package/dist/production/src/commands/tenant/person/TenantPersonListCommand.js.map +1 -0
  628. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.cjs +37 -0
  629. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.cjs.map +1 -0
  630. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.js +37 -0
  631. package/dist/production/src/commands/tenant/person/TenantPersonResetMfaCommand.js.map +1 -0
  632. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.cjs +47 -0
  633. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.cjs.map +1 -0
  634. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.js +47 -0
  635. package/dist/production/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.js.map +1 -0
  636. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.cjs +46 -0
  637. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.cjs.map +1 -0
  638. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.js +46 -0
  639. package/dist/production/src/commands/tenant/person/TenantPersonSetPasswordCommand.js.map +1 -0
  640. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.cjs +55 -0
  641. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.cjs.map +1 -0
  642. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.js +55 -0
  643. package/dist/production/src/commands/tenant/person/TenantPersonShowCommand.js.map +1 -0
  644. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.cjs +38 -0
  645. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.cjs.map +1 -0
  646. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.js +38 -0
  647. package/dist/production/src/commands/tenant/person/TenantPersonSignOutCommand.js.map +1 -0
  648. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.cjs +36 -0
  649. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.cjs.map +1 -0
  650. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.js +36 -0
  651. package/dist/production/src/commands/tenant/person/TenantPersonUpdateCommand.js.map +1 -0
  652. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.cjs +65 -0
  653. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.cjs.map +1 -0
  654. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.js +65 -0
  655. package/dist/production/src/commands/tenant/person/TenantSessionCreateCommand.js.map +1 -0
  656. package/dist/production/src/commands/tenant/person/personInput.cjs +77 -0
  657. package/dist/production/src/commands/tenant/person/personInput.cjs.map +1 -0
  658. package/dist/production/src/commands/tenant/person/personInput.js +77 -0
  659. package/dist/production/src/commands/tenant/person/personInput.js.map +1 -0
  660. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.cjs +95 -0
  661. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.cjs.map +1 -0
  662. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.js +95 -0
  663. package/dist/production/src/commands/tenant/policy/TenantAuthLogCommand.js.map +1 -0
  664. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.cjs +59 -0
  665. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.cjs.map +1 -0
  666. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.js +59 -0
  667. package/dist/production/src/commands/tenant/policy/TenantMailTemplateAddCommand.js.map +1 -0
  668. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.cjs +41 -0
  669. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.cjs.map +1 -0
  670. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.js +41 -0
  671. package/dist/production/src/commands/tenant/policy/TenantMailTemplateListCommand.js.map +1 -0
  672. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.cjs +42 -0
  673. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.cjs.map +1 -0
  674. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.js +42 -0
  675. package/dist/production/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.js.map +1 -0
  676. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.cjs +36 -0
  677. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.cjs.map +1 -0
  678. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.js +36 -0
  679. package/dist/production/src/commands/tenant/policy/TenantPolicyCreateCommand.js.map +1 -0
  680. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.cjs +31 -0
  681. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.cjs.map +1 -0
  682. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.js +31 -0
  683. package/dist/production/src/commands/tenant/policy/TenantPolicyDeleteCommand.js.map +1 -0
  684. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.cjs +33 -0
  685. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.cjs.map +1 -0
  686. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.js +33 -0
  687. package/dist/production/src/commands/tenant/policy/TenantPolicyListCommand.js.map +1 -0
  688. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.cjs +38 -0
  689. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.cjs.map +1 -0
  690. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.js +38 -0
  691. package/dist/production/src/commands/tenant/policy/TenantPolicyUpdateCommand.js.map +1 -0
  692. package/dist/production/src/commands/tenant/policy/policyInput.cjs +167 -0
  693. package/dist/production/src/commands/tenant/policy/policyInput.cjs.map +1 -0
  694. package/dist/production/src/commands/tenant/policy/policyInput.js +167 -0
  695. package/dist/production/src/commands/tenant/policy/policyInput.js.map +1 -0
  696. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.cjs +24 -0
  697. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.cjs.map +1 -0
  698. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.js +24 -0
  699. package/dist/production/src/commands/tenant/project/TenantConfigShowCommand.js.map +1 -0
  700. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.cjs +22 -0
  701. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.cjs.map +1 -0
  702. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.js +22 -0
  703. package/dist/production/src/commands/tenant/project/TenantIdpListCommand.js.map +1 -0
  704. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.cjs +53 -0
  705. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.cjs.map +1 -0
  706. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.js +53 -0
  707. package/dist/production/src/commands/tenant/project/TenantProjectCreateCommand.js.map +1 -0
  708. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.cjs +22 -0
  709. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.cjs.map +1 -0
  710. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.js +22 -0
  711. package/dist/production/src/commands/tenant/project/TenantProjectListCommand.js.map +1 -0
  712. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.cjs +50 -0
  713. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.cjs.map +1 -0
  714. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.js +50 -0
  715. package/dist/production/src/commands/tenant/project/TenantProjectSecretSetCommand.js.map +1 -0
  716. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.cjs +23 -0
  717. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.cjs.map +1 -0
  718. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.js +23 -0
  719. package/dist/production/src/commands/tenant/project/TenantProjectShowCommand.js.map +1 -0
  720. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.cjs +53 -0
  721. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.cjs.map +1 -0
  722. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.js +53 -0
  723. package/dist/production/src/commands/tenant/project/TenantProjectUpdateCommand.js.map +1 -0
  724. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.cjs +18 -0
  725. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.cjs.map +1 -0
  726. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.js +18 -0
  727. package/dist/production/src/commands/tenant/project/TenantWhoAmICommand.js.map +1 -0
  728. package/dist/production/src/commands/tenant/project/jsonConfigOption.cjs +26 -0
  729. package/dist/production/src/commands/tenant/project/jsonConfigOption.cjs.map +1 -0
  730. package/dist/production/src/commands/tenant/project/jsonConfigOption.js +26 -0
  731. package/dist/production/src/commands/tenant/project/jsonConfigOption.js.map +1 -0
  732. package/dist/production/src/commands/tenant/tenantOutput.cjs +35 -0
  733. package/dist/production/src/commands/tenant/tenantOutput.cjs.map +1 -0
  734. package/dist/production/src/commands/tenant/tenantOutput.js +35 -0
  735. package/dist/production/src/commands/tenant/tenantOutput.js.map +1 -0
  736. package/dist/production/src/commands/transfer/ExportCommand.cjs +36 -21
  737. package/dist/production/src/commands/transfer/ExportCommand.cjs.map +1 -1
  738. package/dist/production/src/commands/transfer/ExportCommand.js +38 -23
  739. package/dist/production/src/commands/transfer/ExportCommand.js.map +1 -1
  740. package/dist/production/src/commands/transfer/ImportCommand.cjs +71 -28
  741. package/dist/production/src/commands/transfer/ImportCommand.cjs.map +1 -1
  742. package/dist/production/src/commands/transfer/ImportCommand.js +72 -29
  743. package/dist/production/src/commands/transfer/ImportCommand.js.map +1 -1
  744. package/dist/production/src/commands/transfer/TransferCommand.cjs +79 -29
  745. package/dist/production/src/commands/transfer/TransferCommand.cjs.map +1 -1
  746. package/dist/production/src/commands/transfer/TransferCommand.js +81 -31
  747. package/dist/production/src/commands/transfer/TransferCommand.js.map +1 -1
  748. package/dist/production/src/commands/transfer/utils.cjs +12 -10
  749. package/dist/production/src/commands/transfer/utils.cjs.map +1 -1
  750. package/dist/production/src/commands/transfer/utils.js +12 -10
  751. package/dist/production/src/commands/transfer/utils.js.map +1 -1
  752. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +87 -32
  753. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
  754. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js +89 -34
  755. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
  756. package/dist/production/src/dic.cjs +154 -47
  757. package/dist/production/src/dic.cjs.map +1 -1
  758. package/dist/production/src/dic.js +154 -47
  759. package/dist/production/src/dic.js.map +1 -1
  760. package/dist/production/src/lib/SystemClientProvider.cjs +55 -2
  761. package/dist/production/src/lib/SystemClientProvider.cjs.map +1 -1
  762. package/dist/production/src/lib/SystemClientProvider.js +55 -2
  763. package/dist/production/src/lib/SystemClientProvider.js.map +1 -1
  764. package/dist/production/src/lib/TenantClientProvider.cjs +28 -5
  765. package/dist/production/src/lib/TenantClientProvider.cjs.map +1 -1
  766. package/dist/production/src/lib/TenantClientProvider.js +28 -5
  767. package/dist/production/src/lib/TenantClientProvider.js.map +1 -1
  768. package/dist/production/src/lib/VersionChecker.cjs +2 -19
  769. package/dist/production/src/lib/VersionChecker.cjs.map +1 -1
  770. package/dist/production/src/lib/VersionChecker.js +2 -2
  771. package/dist/production/src/lib/VersionChecker.js.map +1 -1
  772. package/dist/production/src/lib/actions/ActionsClient.cjs +18 -6
  773. package/dist/production/src/lib/actions/ActionsClient.cjs.map +1 -1
  774. package/dist/production/src/lib/actions/ActionsClient.js +18 -6
  775. package/dist/production/src/lib/actions/ActionsClient.js.map +1 -1
  776. package/dist/production/src/lib/actions/UndefinedActionsVariablesChecker.cjs +39 -0
  777. package/dist/production/src/lib/actions/UndefinedActionsVariablesChecker.cjs.map +1 -0
  778. package/dist/production/src/lib/actions/UndefinedActionsVariablesChecker.js +39 -0
  779. package/dist/production/src/lib/actions/UndefinedActionsVariablesChecker.js.map +1 -0
  780. package/dist/production/src/lib/actions/resolveActionsClient.cjs +13 -0
  781. package/dist/production/src/lib/actions/resolveActionsClient.cjs.map +1 -0
  782. package/dist/production/src/lib/actions/resolveActionsClient.js +13 -0
  783. package/dist/production/src/lib/actions/resolveActionsClient.js.map +1 -0
  784. package/dist/production/src/lib/actions/runActionMutationBatch.cjs +44 -0
  785. package/dist/production/src/lib/actions/runActionMutationBatch.cjs.map +1 -0
  786. package/dist/production/src/lib/actions/runActionMutationBatch.js +44 -0
  787. package/dist/production/src/lib/actions/runActionMutationBatch.js.map +1 -0
  788. package/dist/production/src/lib/admin/AdminClient.cjs +31 -11
  789. package/dist/production/src/lib/admin/AdminClient.cjs.map +1 -1
  790. package/dist/production/src/lib/admin/AdminClient.js +31 -11
  791. package/dist/production/src/lib/admin/AdminClient.js.map +1 -1
  792. package/dist/production/src/lib/admin/AdminDeployer.cjs +5 -3
  793. package/dist/production/src/lib/admin/AdminDeployer.cjs.map +1 -1
  794. package/dist/production/src/lib/admin/AdminDeployer.js +5 -3
  795. package/dist/production/src/lib/admin/AdminDeployer.js.map +1 -1
  796. package/dist/production/src/lib/errors/TransportError.cjs +204 -0
  797. package/dist/production/src/lib/errors/TransportError.cjs.map +1 -0
  798. package/dist/production/src/lib/errors/TransportError.js +204 -0
  799. package/dist/production/src/lib/errors/TransportError.js.map +1 -0
  800. package/dist/production/src/lib/fs/FileSystem.cjs +36 -4
  801. package/dist/production/src/lib/fs/FileSystem.cjs.map +1 -1
  802. package/dist/production/src/lib/fs/FileSystem.js +35 -3
  803. package/dist/production/src/lib/fs/FileSystem.js.map +1 -1
  804. package/dist/production/src/lib/maskToken.cjs +7 -1
  805. package/dist/production/src/lib/maskToken.cjs.map +1 -1
  806. package/dist/production/src/lib/maskToken.js +7 -1
  807. package/dist/production/src/lib/maskToken.js.map +1 -1
  808. package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs +102 -50
  809. package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
  810. package/dist/production/src/lib/migrations/MigrationExecutionFacade.js +102 -50
  811. package/dist/production/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
  812. package/dist/production/src/lib/migrations/MigrationPrinter.cjs +79 -66
  813. package/dist/production/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
  814. package/dist/production/src/lib/migrations/MigrationPrinter.js +80 -67
  815. package/dist/production/src/lib/migrations/MigrationPrinter.js.map +1 -1
  816. package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs +2 -1
  817. package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
  818. package/dist/production/src/lib/migrations/MigrationRebaseFacade.js +2 -1
  819. package/dist/production/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
  820. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.cjs +15 -11
  821. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.cjs.map +1 -1
  822. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.js +15 -11
  823. package/dist/production/src/lib/migrations/MigrationSnapshotFacade.js.map +1 -1
  824. package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs +12 -4
  825. package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
  826. package/dist/production/src/lib/migrations/MigrationsStatusFacade.js +12 -4
  827. package/dist/production/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
  828. package/dist/production/src/lib/migrations/MigrationsValidator.cjs +5 -3
  829. package/dist/production/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
  830. package/dist/production/src/lib/migrations/MigrationsValidator.js +5 -3
  831. package/dist/production/src/lib/migrations/MigrationsValidator.js.map +1 -1
  832. package/dist/production/src/lib/project/RemoteProjectProvider.cjs +5 -1
  833. package/dist/production/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
  834. package/dist/production/src/lib/project/RemoteProjectProvider.js +5 -1
  835. package/dist/production/src/lib/project/RemoteProjectProvider.js.map +1 -1
  836. package/dist/production/src/lib/project/docs/components/EntityInfo.cjs +1 -2
  837. package/dist/production/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
  838. package/dist/production/src/lib/project/docs/components/EntityInfo.js +2 -3
  839. package/dist/production/src/lib/project/docs/components/EntityInfo.js.map +1 -1
  840. package/dist/production/src/lib/project/docs/components/FieldPermissions.cjs +18 -6
  841. package/dist/production/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
  842. package/dist/production/src/lib/project/docs/components/FieldPermissions.js +19 -7
  843. package/dist/production/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
  844. package/dist/production/src/lib/project/docs/components/SinglePermission.cjs +12 -3
  845. package/dist/production/src/lib/project/docs/components/SinglePermission.cjs.map +1 -1
  846. package/dist/production/src/lib/project/docs/components/SinglePermission.js +12 -3
  847. package/dist/production/src/lib/project/docs/components/SinglePermission.js.map +1 -1
  848. package/dist/production/src/lib/prompt/prompt.cjs +47 -0
  849. package/dist/production/src/lib/prompt/prompt.cjs.map +1 -0
  850. package/dist/production/src/lib/prompt/prompt.js +47 -0
  851. package/dist/production/src/lib/prompt/prompt.js.map +1 -0
  852. package/dist/production/src/lib/schema/SchemaValidationHelper.cjs +2 -2
  853. package/dist/production/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
  854. package/dist/production/src/lib/schema/SchemaValidationHelper.js +2 -2
  855. package/dist/production/src/lib/schema/SchemaValidationHelper.js.map +1 -1
  856. package/dist/production/src/lib/schema/SchemaValidationPrinter.cjs +4 -4
  857. package/dist/production/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
  858. package/dist/production/src/lib/schema/SchemaValidationPrinter.js +4 -4
  859. package/dist/production/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
  860. package/dist/production/src/lib/tenant/TenantApiTransport.cjs +160 -0
  861. package/dist/production/src/lib/tenant/TenantApiTransport.cjs.map +1 -0
  862. package/dist/production/src/lib/tenant/TenantApiTransport.js +160 -0
  863. package/dist/production/src/lib/tenant/TenantApiTransport.js.map +1 -0
  864. package/dist/production/src/lib/tenant/TenantConfigApplier.cjs +110 -26
  865. package/dist/production/src/lib/tenant/TenantConfigApplier.cjs.map +1 -1
  866. package/dist/production/src/lib/tenant/TenantConfigApplier.js +110 -26
  867. package/dist/production/src/lib/tenant/TenantConfigApplier.js.map +1 -1
  868. package/dist/production/src/lib/tenant/TenantConnectionProvider.cjs +20 -0
  869. package/dist/production/src/lib/tenant/TenantConnectionProvider.cjs.map +1 -0
  870. package/dist/production/src/lib/tenant/TenantConnectionProvider.js +20 -0
  871. package/dist/production/src/lib/tenant/TenantConnectionProvider.js.map +1 -0
  872. package/dist/production/src/lib/tenant/TenantConnectionResolver.cjs +30 -0
  873. package/dist/production/src/lib/tenant/TenantConnectionResolver.cjs.map +1 -0
  874. package/dist/production/src/lib/tenant/TenantConnectionResolver.js +30 -0
  875. package/dist/production/src/lib/tenant/TenantConnectionResolver.js.map +1 -0
  876. package/dist/production/src/lib/tenant/authPolicy.cjs +10 -0
  877. package/dist/production/src/lib/tenant/authPolicy.cjs.map +1 -0
  878. package/dist/production/src/lib/tenant/authPolicy.js +10 -0
  879. package/dist/production/src/lib/tenant/authPolicy.js.map +1 -0
  880. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.cjs +101 -0
  881. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.cjs.map +1 -0
  882. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.js +101 -0
  883. package/dist/production/src/lib/tenant/clients/TenantApiKeyClient.js.map +1 -0
  884. package/dist/production/src/lib/tenant/clients/TenantMemberClient.cjs +96 -0
  885. package/dist/production/src/lib/tenant/clients/TenantMemberClient.cjs.map +1 -0
  886. package/dist/production/src/lib/tenant/clients/TenantMemberClient.js +96 -0
  887. package/dist/production/src/lib/tenant/clients/TenantMemberClient.js.map +1 -0
  888. package/dist/production/src/lib/tenant/clients/TenantPersonClient.cjs +162 -0
  889. package/dist/production/src/lib/tenant/clients/TenantPersonClient.cjs.map +1 -0
  890. package/dist/production/src/lib/tenant/clients/TenantPersonClient.js +162 -0
  891. package/dist/production/src/lib/tenant/clients/TenantPersonClient.js.map +1 -0
  892. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.cjs +135 -0
  893. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.cjs.map +1 -0
  894. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.js +135 -0
  895. package/dist/production/src/lib/tenant/clients/TenantPolicyClient.js.map +1 -0
  896. package/dist/production/src/lib/tenant/clients/TenantProjectClient.cjs +216 -0
  897. package/dist/production/src/lib/tenant/clients/TenantProjectClient.cjs.map +1 -0
  898. package/dist/production/src/lib/tenant/clients/TenantProjectClient.js +216 -0
  899. package/dist/production/src/lib/tenant/clients/TenantProjectClient.js.map +1 -0
  900. package/dist/production/src/lib/tenant/clients/index.cjs +21 -0
  901. package/dist/production/src/lib/tenant/clients/index.cjs.map +1 -0
  902. package/dist/production/src/lib/tenant/clients/index.js +21 -0
  903. package/dist/production/src/lib/tenant/clients/index.js.map +1 -0
  904. package/dist/production/src/lib/tenant/confirmation.cjs +23 -0
  905. package/dist/production/src/lib/tenant/confirmation.cjs.map +1 -0
  906. package/dist/production/src/lib/tenant/confirmation.js +23 -0
  907. package/dist/production/src/lib/tenant/confirmation.js.map +1 -0
  908. package/dist/production/src/lib/tenant/input/pagination.cjs +24 -0
  909. package/dist/production/src/lib/tenant/input/pagination.cjs.map +1 -0
  910. package/dist/production/src/lib/tenant/input/pagination.js +24 -0
  911. package/dist/production/src/lib/tenant/input/pagination.js.map +1 -0
  912. package/dist/production/src/lib/tenant/input/value.cjs +71 -0
  913. package/dist/production/src/lib/tenant/input/value.cjs.map +1 -0
  914. package/dist/production/src/lib/tenant/input/value.js +71 -0
  915. package/dist/production/src/lib/tenant/input/value.js.map +1 -0
  916. package/dist/production/src/lib/tenant/stdin.cjs +13 -0
  917. package/dist/production/src/lib/tenant/stdin.cjs.map +1 -0
  918. package/dist/production/src/lib/tenant/stdin.js +13 -0
  919. package/dist/production/src/lib/tenant/stdin.js.map +1 -0
  920. package/dist/production/src/lib/tenant/tenantConfig.cjs.map +1 -1
  921. package/dist/production/src/lib/tenant/tenantConfig.js.map +1 -1
  922. package/dist/production/src/lib/transfer/DataTransferClient.cjs +291 -55
  923. package/dist/production/src/lib/transfer/DataTransferClient.cjs.map +1 -1
  924. package/dist/production/src/lib/transfer/DataTransferClient.js +292 -56
  925. package/dist/production/src/lib/transfer/DataTransferClient.js.map +1 -1
  926. package/dist/production/src/lib/transfer/stdio.cjs +3 -8
  927. package/dist/production/src/lib/transfer/stdio.cjs.map +1 -1
  928. package/dist/production/src/lib/transfer/stdio.js +3 -8
  929. package/dist/production/src/lib/transfer/stdio.js.map +1 -1
  930. package/dist/production/src/lib/versionRange.cjs +276 -0
  931. package/dist/production/src/lib/versionRange.cjs.map +1 -0
  932. package/dist/production/src/lib/versionRange.js +276 -0
  933. package/dist/production/src/lib/versionRange.js.map +1 -0
  934. package/dist/types/commands/actions/ActionsGetEventCommand.d.ts +6 -4
  935. package/dist/types/commands/actions/ActionsGetEventCommand.d.ts.map +1 -1
  936. package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts +5 -4
  937. package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts.map +1 -1
  938. package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts +5 -3
  939. package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts.map +1 -1
  940. package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts +6 -4
  941. package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts.map +1 -1
  942. package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts +5 -3
  943. package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts.map +1 -1
  944. package/dist/types/commands/actions/ActionsStopEventCommand.d.ts +6 -4
  945. package/dist/types/commands/actions/ActionsStopEventCommand.d.ts.map +1 -1
  946. package/dist/types/commands/deploy/DeployCommand.d.ts +11 -3
  947. package/dist/types/commands/deploy/DeployCommand.d.ts.map +1 -1
  948. package/dist/types/commands/migrations/MigrationAmendCommand.d.ts +3 -2
  949. package/dist/types/commands/migrations/MigrationAmendCommand.d.ts.map +1 -1
  950. package/dist/types/commands/migrations/MigrationBlankCommand.d.ts +2 -2
  951. package/dist/types/commands/migrations/MigrationBlankCommand.d.ts.map +1 -1
  952. package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts +2 -2
  953. package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts.map +1 -1
  954. package/dist/types/commands/migrations/MigrationDiffCommand.d.ts +4 -3
  955. package/dist/types/commands/migrations/MigrationDiffCommand.d.ts.map +1 -1
  956. package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts +4 -3
  957. package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts.map +1 -1
  958. package/dist/types/commands/migrations/MigrationInitStateCommand.d.ts +2 -2
  959. package/dist/types/commands/migrations/MigrationInitStateCommand.d.ts.map +1 -1
  960. package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts +4 -3
  961. package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts.map +1 -1
  962. package/dist/types/commands/migrations/MigrationSnapshotCommand.d.ts +5 -3
  963. package/dist/types/commands/migrations/MigrationSnapshotCommand.d.ts.map +1 -1
  964. package/dist/types/commands/migrations/MigrationStatusCommand.d.ts +9 -3
  965. package/dist/types/commands/migrations/MigrationStatusCommand.d.ts.map +1 -1
  966. package/dist/types/commands/migrations/MigrationVerifySnapshotCommand.d.ts +2 -2
  967. package/dist/types/commands/migrations/MigrationVerifySnapshotCommand.d.ts.map +1 -1
  968. package/dist/types/commands/misc/CommandsCommand.d.ts +13 -0
  969. package/dist/types/commands/misc/CommandsCommand.d.ts.map +1 -0
  970. package/dist/types/commands/misc/VersionCommand.d.ts +11 -4
  971. package/dist/types/commands/misc/VersionCommand.d.ts.map +1 -1
  972. package/dist/types/commands/misc/index.d.ts +1 -0
  973. package/dist/types/commands/misc/index.d.ts.map +1 -1
  974. package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts +5 -3
  975. package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts.map +1 -1
  976. package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts +2 -2
  977. package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts.map +1 -1
  978. package/dist/types/commands/project/ProjectValidateCommand.d.ts +3 -3
  979. package/dist/types/commands/project/ProjectValidateCommand.d.ts.map +1 -1
  980. package/dist/types/commands/tenant/TenantApplyCommand.d.ts +10 -3
  981. package/dist/types/commands/tenant/TenantApplyCommand.d.ts.map +1 -1
  982. package/dist/types/commands/tenant/apikey/TenantApiKeyCreateCommand.d.ts +22 -0
  983. package/dist/types/commands/tenant/apikey/TenantApiKeyCreateCommand.d.ts.map +1 -0
  984. package/dist/types/commands/tenant/apikey/TenantApiKeyDisableCommand.d.ts +17 -0
  985. package/dist/types/commands/tenant/apikey/TenantApiKeyDisableCommand.d.ts.map +1 -0
  986. package/dist/types/commands/tenant/apikey/TenantApiKeyListCommand.d.ts +15 -0
  987. package/dist/types/commands/tenant/apikey/TenantApiKeyListCommand.d.ts.map +1 -0
  988. package/dist/types/commands/tenant/apikey/index.d.ts +4 -0
  989. package/dist/types/commands/tenant/apikey/index.d.ts.map +1 -0
  990. package/dist/types/commands/tenant/index.d.ts +5 -0
  991. package/dist/types/commands/tenant/index.d.ts.map +1 -1
  992. package/dist/types/commands/tenant/member/TenantMemberAddCommand.d.ts +19 -0
  993. package/dist/types/commands/tenant/member/TenantMemberAddCommand.d.ts.map +1 -0
  994. package/dist/types/commands/tenant/member/TenantMemberInviteCommand.d.ts +28 -0
  995. package/dist/types/commands/tenant/member/TenantMemberInviteCommand.d.ts.map +1 -0
  996. package/dist/types/commands/tenant/member/TenantMemberInviteUnmanagedCommand.d.ts +36 -0
  997. package/dist/types/commands/tenant/member/TenantMemberInviteUnmanagedCommand.d.ts.map +1 -0
  998. package/dist/types/commands/tenant/member/TenantMemberListCommand.d.ts +21 -0
  999. package/dist/types/commands/tenant/member/TenantMemberListCommand.d.ts.map +1 -0
  1000. package/dist/types/commands/tenant/member/TenantMemberRemoveCommand.d.ts +17 -0
  1001. package/dist/types/commands/tenant/member/TenantMemberRemoveCommand.d.ts.map +1 -0
  1002. package/dist/types/commands/tenant/member/TenantMemberUpdateCommand.d.ts +20 -0
  1003. package/dist/types/commands/tenant/member/TenantMemberUpdateCommand.d.ts.map +1 -0
  1004. package/dist/types/commands/tenant/member/index.d.ts +7 -0
  1005. package/dist/types/commands/tenant/member/index.d.ts.map +1 -0
  1006. package/dist/types/commands/tenant/member/memberOptions.d.ts +16 -0
  1007. package/dist/types/commands/tenant/member/memberOptions.d.ts.map +1 -0
  1008. package/dist/types/commands/tenant/member/membershipInput.d.ts +44 -0
  1009. package/dist/types/commands/tenant/member/membershipInput.d.ts.map +1 -0
  1010. package/dist/types/commands/tenant/person/TenantIdentityRoleAddCommand.d.ts +15 -0
  1011. package/dist/types/commands/tenant/person/TenantIdentityRoleAddCommand.d.ts.map +1 -0
  1012. package/dist/types/commands/tenant/person/TenantIdentityRoleRemoveCommand.d.ts +17 -0
  1013. package/dist/types/commands/tenant/person/TenantIdentityRoleRemoveCommand.d.ts.map +1 -0
  1014. package/dist/types/commands/tenant/person/TenantPersonCreateCommand.d.ts +25 -0
  1015. package/dist/types/commands/tenant/person/TenantPersonCreateCommand.d.ts.map +1 -0
  1016. package/dist/types/commands/tenant/person/TenantPersonDisableCommand.d.ts +16 -0
  1017. package/dist/types/commands/tenant/person/TenantPersonDisableCommand.d.ts.map +1 -0
  1018. package/dist/types/commands/tenant/person/TenantPersonListCommand.d.ts +18 -0
  1019. package/dist/types/commands/tenant/person/TenantPersonListCommand.d.ts.map +1 -0
  1020. package/dist/types/commands/tenant/person/TenantPersonResetMfaCommand.d.ts +16 -0
  1021. package/dist/types/commands/tenant/person/TenantPersonResetMfaCommand.d.ts.map +1 -0
  1022. package/dist/types/commands/tenant/person/TenantPersonResetPasswordRequestCommand.d.ts +21 -0
  1023. package/dist/types/commands/tenant/person/TenantPersonResetPasswordRequestCommand.d.ts.map +1 -0
  1024. package/dist/types/commands/tenant/person/TenantPersonSetPasswordCommand.d.ts +20 -0
  1025. package/dist/types/commands/tenant/person/TenantPersonSetPasswordCommand.d.ts.map +1 -0
  1026. package/dist/types/commands/tenant/person/TenantPersonShowCommand.d.ts +14 -0
  1027. package/dist/types/commands/tenant/person/TenantPersonShowCommand.d.ts.map +1 -0
  1028. package/dist/types/commands/tenant/person/TenantPersonSignOutCommand.d.ts +17 -0
  1029. package/dist/types/commands/tenant/person/TenantPersonSignOutCommand.d.ts.map +1 -0
  1030. package/dist/types/commands/tenant/person/TenantPersonUpdateCommand.d.ts +17 -0
  1031. package/dist/types/commands/tenant/person/TenantPersonUpdateCommand.d.ts.map +1 -0
  1032. package/dist/types/commands/tenant/person/TenantSessionCreateCommand.d.ts +18 -0
  1033. package/dist/types/commands/tenant/person/TenantSessionCreateCommand.d.ts.map +1 -0
  1034. package/dist/types/commands/tenant/person/index.d.ts +13 -0
  1035. package/dist/types/commands/tenant/person/index.d.ts.map +1 -0
  1036. package/dist/types/commands/tenant/person/personInput.d.ts +37 -0
  1037. package/dist/types/commands/tenant/person/personInput.d.ts.map +1 -0
  1038. package/dist/types/commands/tenant/policy/TenantAuthLogCommand.d.ts +35 -0
  1039. package/dist/types/commands/tenant/policy/TenantAuthLogCommand.d.ts.map +1 -0
  1040. package/dist/types/commands/tenant/policy/TenantMailTemplateAddCommand.d.ts +30 -0
  1041. package/dist/types/commands/tenant/policy/TenantMailTemplateAddCommand.d.ts.map +1 -0
  1042. package/dist/types/commands/tenant/policy/TenantMailTemplateListCommand.d.ts +12 -0
  1043. package/dist/types/commands/tenant/policy/TenantMailTemplateListCommand.d.ts.map +1 -0
  1044. package/dist/types/commands/tenant/policy/TenantMailTemplateRemoveCommand.d.ts +19 -0
  1045. package/dist/types/commands/tenant/policy/TenantMailTemplateRemoveCommand.d.ts.map +1 -0
  1046. package/dist/types/commands/tenant/policy/TenantPolicyCreateCommand.d.ts +17 -0
  1047. package/dist/types/commands/tenant/policy/TenantPolicyCreateCommand.d.ts.map +1 -0
  1048. package/dist/types/commands/tenant/policy/TenantPolicyDeleteCommand.d.ts +16 -0
  1049. package/dist/types/commands/tenant/policy/TenantPolicyDeleteCommand.d.ts.map +1 -0
  1050. package/dist/types/commands/tenant/policy/TenantPolicyListCommand.d.ts +12 -0
  1051. package/dist/types/commands/tenant/policy/TenantPolicyListCommand.d.ts.map +1 -0
  1052. package/dist/types/commands/tenant/policy/TenantPolicyUpdateCommand.d.ts +19 -0
  1053. package/dist/types/commands/tenant/policy/TenantPolicyUpdateCommand.d.ts.map +1 -0
  1054. package/dist/types/commands/tenant/policy/index.d.ts +9 -0
  1055. package/dist/types/commands/tenant/policy/index.d.ts.map +1 -0
  1056. package/dist/types/commands/tenant/policy/policyInput.d.ts +41 -0
  1057. package/dist/types/commands/tenant/policy/policyInput.d.ts.map +1 -0
  1058. package/dist/types/commands/tenant/project/TenantConfigShowCommand.d.ts +12 -0
  1059. package/dist/types/commands/tenant/project/TenantConfigShowCommand.d.ts.map +1 -0
  1060. package/dist/types/commands/tenant/project/TenantIdpListCommand.d.ts +12 -0
  1061. package/dist/types/commands/tenant/project/TenantIdpListCommand.d.ts.map +1 -0
  1062. package/dist/types/commands/tenant/project/TenantProjectCreateCommand.d.ts +22 -0
  1063. package/dist/types/commands/tenant/project/TenantProjectCreateCommand.d.ts.map +1 -0
  1064. package/dist/types/commands/tenant/project/TenantProjectListCommand.d.ts +12 -0
  1065. package/dist/types/commands/tenant/project/TenantProjectListCommand.d.ts.map +1 -0
  1066. package/dist/types/commands/tenant/project/TenantProjectSecretSetCommand.d.ts +21 -0
  1067. package/dist/types/commands/tenant/project/TenantProjectSecretSetCommand.d.ts.map +1 -0
  1068. package/dist/types/commands/tenant/project/TenantProjectShowCommand.d.ts +14 -0
  1069. package/dist/types/commands/tenant/project/TenantProjectShowCommand.d.ts.map +1 -0
  1070. package/dist/types/commands/tenant/project/TenantProjectUpdateCommand.d.ts +21 -0
  1071. package/dist/types/commands/tenant/project/TenantProjectUpdateCommand.d.ts.map +1 -0
  1072. package/dist/types/commands/tenant/project/TenantWhoAmICommand.d.ts +12 -0
  1073. package/dist/types/commands/tenant/project/TenantWhoAmICommand.d.ts.map +1 -0
  1074. package/dist/types/commands/tenant/project/index.d.ts +9 -0
  1075. package/dist/types/commands/tenant/project/index.d.ts.map +1 -0
  1076. package/dist/types/commands/tenant/project/jsonConfigOption.d.ts +9 -0
  1077. package/dist/types/commands/tenant/project/jsonConfigOption.d.ts.map +1 -0
  1078. package/dist/types/commands/tenant/tenantOutput.d.ts +7 -0
  1079. package/dist/types/commands/tenant/tenantOutput.d.ts.map +1 -0
  1080. package/dist/types/commands/transfer/ExportCommand.d.ts +8 -2
  1081. package/dist/types/commands/transfer/ExportCommand.d.ts.map +1 -1
  1082. package/dist/types/commands/transfer/ImportCommand.d.ts +15 -3
  1083. package/dist/types/commands/transfer/ImportCommand.d.ts.map +1 -1
  1084. package/dist/types/commands/transfer/TransferCommand.d.ts +14 -2
  1085. package/dist/types/commands/transfer/TransferCommand.d.ts.map +1 -1
  1086. package/dist/types/commands/transfer/utils.d.ts +2 -2
  1087. package/dist/types/commands/transfer/utils.d.ts.map +1 -1
  1088. package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts +27 -4
  1089. package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts.map +1 -1
  1090. package/dist/types/dic.d.ts +93 -6
  1091. package/dist/types/dic.d.ts.map +1 -1
  1092. package/dist/types/lib/SystemClientProvider.d.ts +4 -1
  1093. package/dist/types/lib/SystemClientProvider.d.ts.map +1 -1
  1094. package/dist/types/lib/TenantClientProvider.d.ts +14 -5
  1095. package/dist/types/lib/TenantClientProvider.d.ts.map +1 -1
  1096. package/dist/types/lib/VersionChecker.d.ts.map +1 -1
  1097. package/dist/types/lib/actions/ActionsClient.d.ts +17 -8
  1098. package/dist/types/lib/actions/ActionsClient.d.ts.map +1 -1
  1099. package/dist/types/lib/actions/UndefinedActionsVariablesChecker.d.ts +17 -0
  1100. package/dist/types/lib/actions/UndefinedActionsVariablesChecker.d.ts.map +1 -0
  1101. package/dist/types/lib/actions/resolveActionsClient.d.ts +7 -0
  1102. package/dist/types/lib/actions/resolveActionsClient.d.ts.map +1 -0
  1103. package/dist/types/lib/actions/runActionMutationBatch.d.ts +23 -0
  1104. package/dist/types/lib/actions/runActionMutationBatch.d.ts.map +1 -0
  1105. package/dist/types/lib/admin/AdminClient.d.ts +1 -0
  1106. package/dist/types/lib/admin/AdminClient.d.ts.map +1 -1
  1107. package/dist/types/lib/admin/AdminDeployer.d.ts +3 -1
  1108. package/dist/types/lib/admin/AdminDeployer.d.ts.map +1 -1
  1109. package/dist/types/lib/dsn.d.ts.map +1 -1
  1110. package/dist/types/lib/errors/TransportError.d.ts +29 -0
  1111. package/dist/types/lib/errors/TransportError.d.ts.map +1 -0
  1112. package/dist/types/lib/errors/index.d.ts +2 -0
  1113. package/dist/types/lib/errors/index.d.ts.map +1 -0
  1114. package/dist/types/lib/fs/DockerComposeManager.d.ts.map +1 -1
  1115. package/dist/types/lib/fs/FileSystem.d.ts +5 -0
  1116. package/dist/types/lib/fs/FileSystem.d.ts.map +1 -1
  1117. package/dist/types/lib/fs/YamlHandler.d.ts.map +1 -1
  1118. package/dist/types/lib/js/EsBuildBuilder.d.ts.map +1 -1
  1119. package/dist/types/lib/js/EvalExecutor.d.ts.map +1 -1
  1120. package/dist/types/lib/js/JsCodeRunner.d.ts.map +1 -1
  1121. package/dist/types/lib/maskToken.d.ts +1 -0
  1122. package/dist/types/lib/maskToken.d.ts.map +1 -1
  1123. package/dist/types/lib/migrations/MigrationExecutionFacade.d.ts +10 -3
  1124. package/dist/types/lib/migrations/MigrationExecutionFacade.d.ts.map +1 -1
  1125. package/dist/types/lib/migrations/MigrationPrinter.d.ts +28 -2
  1126. package/dist/types/lib/migrations/MigrationPrinter.d.ts.map +1 -1
  1127. package/dist/types/lib/migrations/MigrationRebaseFacade.d.ts.map +1 -1
  1128. package/dist/types/lib/migrations/MigrationSnapshotFacade.d.ts +6 -3
  1129. package/dist/types/lib/migrations/MigrationSnapshotFacade.d.ts.map +1 -1
  1130. package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts +13 -2
  1131. package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts.map +1 -1
  1132. package/dist/types/lib/migrations/MigrationsValidator.d.ts +3 -1
  1133. package/dist/types/lib/migrations/MigrationsValidator.d.ts.map +1 -1
  1134. package/dist/types/lib/project/RemoteProject.d.ts.map +1 -1
  1135. package/dist/types/lib/project/RemoteProjectProvider.d.ts.map +1 -1
  1136. package/dist/types/lib/project/RemoteProjectResolver.d.ts.map +1 -1
  1137. package/dist/types/lib/project/docs/components/EntityInfo.d.ts.map +1 -1
  1138. package/dist/types/lib/project/docs/components/EntityLink.d.ts.map +1 -1
  1139. package/dist/types/lib/project/docs/components/FieldLink.d.ts.map +1 -1
  1140. package/dist/types/lib/project/docs/components/FieldPermissions.d.ts +3 -0
  1141. package/dist/types/lib/project/docs/components/FieldPermissions.d.ts.map +1 -1
  1142. package/dist/types/lib/project/docs/components/FieldType.d.ts.map +1 -1
  1143. package/dist/types/lib/project/docs/components/OnDelete.d.ts.map +1 -1
  1144. package/dist/types/lib/project/docs/components/ProjectInfo.d.ts.map +1 -1
  1145. package/dist/types/lib/project/docs/components/SinglePermission.d.ts +2 -1
  1146. package/dist/types/lib/project/docs/components/SinglePermission.d.ts.map +1 -1
  1147. package/dist/types/lib/project/docs/components/utils.d.ts.map +1 -1
  1148. package/dist/types/lib/project/docs/projectDescribe.d.ts.map +1 -1
  1149. package/dist/types/lib/prompt/index.d.ts +2 -0
  1150. package/dist/types/lib/prompt/index.d.ts.map +1 -0
  1151. package/dist/types/lib/prompt/prompt.d.ts +19 -0
  1152. package/dist/types/lib/prompt/prompt.d.ts.map +1 -0
  1153. package/dist/types/lib/schema/SchemaLoader.d.ts.map +1 -1
  1154. package/dist/types/lib/schema/SchemaValidationHelper.d.ts +2 -1
  1155. package/dist/types/lib/schema/SchemaValidationHelper.d.ts.map +1 -1
  1156. package/dist/types/lib/schema/SchemaValidationPrinter.d.ts +2 -1
  1157. package/dist/types/lib/schema/SchemaValidationPrinter.d.ts.map +1 -1
  1158. package/dist/types/lib/schema/collectReferences.d.ts.map +1 -1
  1159. package/dist/types/lib/stream.d.ts.map +1 -1
  1160. package/dist/types/lib/tenant/TenantApiTransport.d.ts +49 -0
  1161. package/dist/types/lib/tenant/TenantApiTransport.d.ts.map +1 -0
  1162. package/dist/types/lib/tenant/TenantConfigApplier.d.ts +38 -3
  1163. package/dist/types/lib/tenant/TenantConfigApplier.d.ts.map +1 -1
  1164. package/dist/types/lib/tenant/TenantConfigLoader.d.ts.map +1 -1
  1165. package/dist/types/lib/tenant/TenantConnection.d.ts +8 -0
  1166. package/dist/types/lib/tenant/TenantConnection.d.ts.map +1 -0
  1167. package/dist/types/lib/tenant/TenantConnectionProvider.d.ts +8 -0
  1168. package/dist/types/lib/tenant/TenantConnectionProvider.d.ts.map +1 -0
  1169. package/dist/types/lib/tenant/TenantConnectionResolver.d.ts +8 -0
  1170. package/dist/types/lib/tenant/TenantConnectionResolver.d.ts.map +1 -0
  1171. package/dist/types/lib/tenant/authPolicy.d.ts +17 -0
  1172. package/dist/types/lib/tenant/authPolicy.d.ts.map +1 -0
  1173. package/dist/types/lib/tenant/clients/TenantApiKeyClient.d.ts +56 -0
  1174. package/dist/types/lib/tenant/clients/TenantApiKeyClient.d.ts.map +1 -0
  1175. package/dist/types/lib/tenant/clients/TenantMemberClient.d.ts +68 -0
  1176. package/dist/types/lib/tenant/clients/TenantMemberClient.d.ts.map +1 -0
  1177. package/dist/types/lib/tenant/clients/TenantPersonClient.d.ts +97 -0
  1178. package/dist/types/lib/tenant/clients/TenantPersonClient.d.ts.map +1 -0
  1179. package/dist/types/lib/tenant/clients/TenantPolicyClient.d.ts +75 -0
  1180. package/dist/types/lib/tenant/clients/TenantPolicyClient.d.ts.map +1 -0
  1181. package/dist/types/lib/tenant/clients/TenantProjectClient.d.ts +167 -0
  1182. package/dist/types/lib/tenant/clients/TenantProjectClient.d.ts.map +1 -0
  1183. package/dist/types/lib/tenant/clients/index.d.ts +21 -0
  1184. package/dist/types/lib/tenant/clients/index.d.ts.map +1 -0
  1185. package/dist/types/lib/tenant/confirmation.d.ts +14 -0
  1186. package/dist/types/lib/tenant/confirmation.d.ts.map +1 -0
  1187. package/dist/types/lib/tenant/input/index.d.ts +3 -0
  1188. package/dist/types/lib/tenant/input/index.d.ts.map +1 -0
  1189. package/dist/types/lib/tenant/input/pagination.d.ts +7 -0
  1190. package/dist/types/lib/tenant/input/pagination.d.ts.map +1 -0
  1191. package/dist/types/lib/tenant/input/value.d.ts +45 -0
  1192. package/dist/types/lib/tenant/input/value.d.ts.map +1 -0
  1193. package/dist/types/lib/tenant/stdin.d.ts +8 -0
  1194. package/dist/types/lib/tenant/stdin.d.ts.map +1 -0
  1195. package/dist/types/lib/tenant/tenantConfig.d.ts +96 -22
  1196. package/dist/types/lib/tenant/tenantConfig.d.ts.map +1 -1
  1197. package/dist/types/lib/transfer/DataTransferClient.d.ts +8 -2
  1198. package/dist/types/lib/transfer/DataTransferClient.d.ts.map +1 -1
  1199. package/dist/types/lib/transfer/stdio.d.ts +3 -1
  1200. package/dist/types/lib/transfer/stdio.d.ts.map +1 -1
  1201. package/dist/types/lib/versionRange.d.ts +9 -0
  1202. package/dist/types/lib/versionRange.d.ts.map +1 -0
  1203. package/dist/types/lib/workspace/WorkspaceResolver.d.ts.map +1 -1
  1204. package/dist/types/tsconfig.tsbuildinfo +1 -1
  1205. package/package.json +17 -21
  1206. package/src/commands/actions/ActionsGetEventCommand.ts +38 -16
  1207. package/src/commands/actions/ActionsListFailedEventsCommand.ts +24 -43
  1208. package/src/commands/actions/ActionsListVariablesCommand.ts +15 -13
  1209. package/src/commands/actions/ActionsRetryEventCommand.ts +36 -18
  1210. package/src/commands/actions/ActionsSetVariablesCommand.ts +56 -28
  1211. package/src/commands/actions/ActionsStopEventCommand.ts +36 -18
  1212. package/src/commands/deploy/DeployCommand.ts +69 -30
  1213. package/src/commands/migrations/MigrationAmendCommand.ts +69 -26
  1214. package/src/commands/migrations/MigrationBlankCommand.ts +3 -3
  1215. package/src/commands/migrations/MigrationDescribeCommand.ts +9 -4
  1216. package/src/commands/migrations/MigrationDiffCommand.ts +83 -31
  1217. package/src/commands/migrations/MigrationExecuteCommand.ts +11 -4
  1218. package/src/commands/migrations/MigrationInitStateCommand.ts +18 -5
  1219. package/src/commands/migrations/MigrationRebaseCommand.ts +28 -6
  1220. package/src/commands/migrations/MigrationSnapshotCommand.ts +45 -10
  1221. package/src/commands/migrations/MigrationStatusCommand.ts +20 -12
  1222. package/src/commands/migrations/MigrationVerifySnapshotCommand.ts +7 -8
  1223. package/src/commands/misc/CommandsCommand.ts +74 -0
  1224. package/src/commands/misc/VersionCommand.ts +13 -6
  1225. package/src/commands/misc/index.ts +1 -0
  1226. package/src/commands/project/ProjectGenerateDocumentationCommand.ts +12 -13
  1227. package/src/commands/project/ProjectPrintSchemaCommand.ts +27 -24
  1228. package/src/commands/project/ProjectValidateCommand.ts +52 -18
  1229. package/src/commands/tenant/TenantApplyCommand.ts +46 -14
  1230. package/src/commands/tenant/apikey/TenantApiKeyCreateCommand.ts +102 -0
  1231. package/src/commands/tenant/apikey/TenantApiKeyDisableCommand.ts +47 -0
  1232. package/src/commands/tenant/apikey/TenantApiKeyListCommand.ts +64 -0
  1233. package/src/commands/tenant/apikey/index.ts +4 -0
  1234. package/src/commands/tenant/index.ts +5 -0
  1235. package/src/commands/tenant/member/TenantMemberAddCommand.ts +48 -0
  1236. package/src/commands/tenant/member/TenantMemberInviteCommand.ts +88 -0
  1237. package/src/commands/tenant/member/TenantMemberInviteUnmanagedCommand.ts +135 -0
  1238. package/src/commands/tenant/member/TenantMemberListCommand.ts +94 -0
  1239. package/src/commands/tenant/member/TenantMemberRemoveCommand.ts +48 -0
  1240. package/src/commands/tenant/member/TenantMemberUpdateCommand.ts +58 -0
  1241. package/src/commands/tenant/member/index.ts +9 -0
  1242. package/src/commands/tenant/member/memberOptions.ts +29 -0
  1243. package/src/commands/tenant/member/membershipInput.ts +155 -0
  1244. package/src/commands/tenant/person/TenantIdentityRoleAddCommand.ts +44 -0
  1245. package/src/commands/tenant/person/TenantIdentityRoleRemoveCommand.ts +54 -0
  1246. package/src/commands/tenant/person/TenantPersonCreateCommand.ts +98 -0
  1247. package/src/commands/tenant/person/TenantPersonDisableCommand.ts +46 -0
  1248. package/src/commands/tenant/person/TenantPersonListCommand.ts +68 -0
  1249. package/src/commands/tenant/person/TenantPersonResetMfaCommand.ts +59 -0
  1250. package/src/commands/tenant/person/TenantPersonResetPasswordRequestCommand.ts +67 -0
  1251. package/src/commands/tenant/person/TenantPersonSetPasswordCommand.ts +66 -0
  1252. package/src/commands/tenant/person/TenantPersonShowCommand.ts +70 -0
  1253. package/src/commands/tenant/person/TenantPersonSignOutCommand.ts +60 -0
  1254. package/src/commands/tenant/person/TenantPersonUpdateCommand.ts +55 -0
  1255. package/src/commands/tenant/person/TenantSessionCreateCommand.ts +79 -0
  1256. package/src/commands/tenant/person/index.ts +15 -0
  1257. package/src/commands/tenant/person/personInput.ts +112 -0
  1258. package/src/commands/tenant/policy/TenantAuthLogCommand.ts +138 -0
  1259. package/src/commands/tenant/policy/TenantMailTemplateAddCommand.ts +92 -0
  1260. package/src/commands/tenant/policy/TenantMailTemplateListCommand.ts +50 -0
  1261. package/src/commands/tenant/policy/TenantMailTemplateRemoveCommand.ts +63 -0
  1262. package/src/commands/tenant/policy/TenantPolicyCreateCommand.ts +46 -0
  1263. package/src/commands/tenant/policy/TenantPolicyDeleteCommand.ts +42 -0
  1264. package/src/commands/tenant/policy/TenantPolicyListCommand.ts +39 -0
  1265. package/src/commands/tenant/policy/TenantPolicyUpdateCommand.ts +51 -0
  1266. package/src/commands/tenant/policy/index.ts +9 -0
  1267. package/src/commands/tenant/policy/policyInput.ts +210 -0
  1268. package/src/commands/tenant/project/TenantConfigShowCommand.ts +28 -0
  1269. package/src/commands/tenant/project/TenantIdpListCommand.ts +27 -0
  1270. package/src/commands/tenant/project/TenantProjectCreateCommand.ts +67 -0
  1271. package/src/commands/tenant/project/TenantProjectListCommand.ts +27 -0
  1272. package/src/commands/tenant/project/TenantProjectSecretSetCommand.ts +63 -0
  1273. package/src/commands/tenant/project/TenantProjectShowCommand.ts +29 -0
  1274. package/src/commands/tenant/project/TenantProjectUpdateCommand.ts +66 -0
  1275. package/src/commands/tenant/project/TenantWhoAmICommand.ts +22 -0
  1276. package/src/commands/tenant/project/index.ts +9 -0
  1277. package/src/commands/tenant/project/jsonConfigOption.ts +33 -0
  1278. package/src/commands/tenant/tenantOutput.ts +35 -0
  1279. package/src/commands/transfer/ExportCommand.ts +46 -29
  1280. package/src/commands/transfer/ImportCommand.ts +87 -34
  1281. package/src/commands/transfer/TransferCommand.ts +94 -34
  1282. package/src/commands/transfer/utils.ts +12 -11
  1283. package/src/commands/workspace/WorkspaceUpdateApiCommand.ts +135 -36
  1284. package/src/dic.ts +200 -47
  1285. package/src/lib/SystemClientProvider.ts +75 -1
  1286. package/src/lib/TenantClientProvider.ts +44 -6
  1287. package/src/lib/VersionChecker.ts +3 -2
  1288. package/src/lib/actions/ActionsClient.ts +38 -14
  1289. package/src/lib/actions/UndefinedActionsVariablesChecker.ts +52 -0
  1290. package/src/lib/actions/resolveActionsClient.ts +15 -0
  1291. package/src/lib/actions/runActionMutationBatch.ts +69 -0
  1292. package/src/lib/admin/AdminClient.ts +39 -12
  1293. package/src/lib/admin/AdminDeployer.ts +4 -2
  1294. package/src/lib/errors/TransportError.ts +260 -0
  1295. package/src/lib/errors/index.ts +1 -0
  1296. package/src/lib/fs/FileSystem.ts +46 -3
  1297. package/src/lib/maskToken.ts +9 -1
  1298. package/src/lib/migrations/MigrationExecutionFacade.ts +123 -59
  1299. package/src/lib/migrations/MigrationPrinter.ts +99 -68
  1300. package/src/lib/migrations/MigrationRebaseFacade.ts +2 -1
  1301. package/src/lib/migrations/MigrationSnapshotFacade.ts +16 -11
  1302. package/src/lib/migrations/MigrationsStatusFacade.ts +17 -3
  1303. package/src/lib/migrations/MigrationsValidator.ts +4 -2
  1304. package/src/lib/project/RemoteProjectProvider.ts +6 -1
  1305. package/src/lib/project/docs/components/EntityInfo.tsx +2 -3
  1306. package/src/lib/project/docs/components/FieldPermissions.tsx +25 -6
  1307. package/src/lib/project/docs/components/SinglePermission.tsx +17 -3
  1308. package/src/lib/prompt/index.ts +1 -0
  1309. package/src/lib/prompt/prompt.ts +60 -0
  1310. package/src/lib/schema/SchemaValidationHelper.ts +8 -2
  1311. package/src/lib/schema/SchemaValidationPrinter.ts +5 -4
  1312. package/src/lib/tenant/TenantApiTransport.ts +209 -0
  1313. package/src/lib/tenant/TenantConfigApplier.ts +198 -29
  1314. package/src/lib/tenant/TenantConnection.ts +8 -0
  1315. package/src/lib/tenant/TenantConnectionProvider.ts +21 -0
  1316. package/src/lib/tenant/TenantConnectionResolver.ts +31 -0
  1317. package/src/lib/tenant/authPolicy.ts +20 -0
  1318. package/src/lib/tenant/clients/README.md +84 -0
  1319. package/src/lib/tenant/clients/TenantApiKeyClient.ts +182 -0
  1320. package/src/lib/tenant/clients/TenantMemberClient.ts +199 -0
  1321. package/src/lib/tenant/clients/TenantPersonClient.ts +306 -0
  1322. package/src/lib/tenant/clients/TenantPolicyClient.ts +244 -0
  1323. package/src/lib/tenant/clients/TenantProjectClient.ts +435 -0
  1324. package/src/lib/tenant/clients/index.ts +29 -0
  1325. package/src/lib/tenant/confirmation.ts +32 -0
  1326. package/src/lib/tenant/input/index.ts +2 -0
  1327. package/src/lib/tenant/input/pagination.ts +39 -0
  1328. package/src/lib/tenant/input/value.ts +149 -0
  1329. package/src/lib/tenant/stdin.ts +16 -0
  1330. package/src/lib/tenant/tenantConfig.ts +146 -25
  1331. package/src/lib/transfer/DataTransferClient.ts +354 -59
  1332. package/src/lib/transfer/stdio.ts +5 -7
  1333. package/src/lib/versionRange.ts +347 -0
  1334. package/src/run.ts +19 -3
  1335. package/tenant.config.example.ts +28 -0
  1336. package/tests/cases/unit/MigrationAmendCommand.test.ts +17 -2
  1337. package/tests/cases/unit/MigrationDiffCommand.test.ts +178 -0
  1338. package/tests/cases/unit/MigrationExecuteCommand.test.ts +58 -0
  1339. package/tests/cases/unit/MigrationExecutionFacade.test.ts +378 -54
  1340. package/tests/cases/unit/MigrationInitStateCommand.test.ts +72 -0
  1341. package/tests/cases/unit/MigrationRebaseCommand.test.ts +57 -0
  1342. package/tests/cases/unit/MigrationSnapshotFacade.test.ts +73 -13
  1343. package/tests/cases/unit/MigrationStatusCommand.test.ts +197 -0
  1344. package/tests/cases/unit/MigrationsValidator.test.ts +61 -0
  1345. package/tests/cases/unit/UndefinedActionsVariablesChecker.test.ts +78 -0
  1346. package/tests/cases/unit/actions.test.ts +802 -0
  1347. package/tests/cases/unit/cli-process.test.ts +266 -0
  1348. package/tests/cases/unit/command-registry.test.ts +214 -0
  1349. package/tests/cases/unit/deploy.test.ts +481 -0
  1350. package/tests/cases/unit/fileSystem.test.ts +63 -0
  1351. package/tests/cases/unit/fixtures/semverCorpus.json +1157 -0
  1352. package/tests/cases/unit/migration-transport.test.ts +156 -0
  1353. package/tests/cases/unit/project.test.ts +275 -0
  1354. package/tests/cases/unit/prompt.test.ts +64 -0
  1355. package/tests/cases/unit/structured-output.test.ts +189 -0
  1356. package/tests/cases/unit/tenant-apikey.test.ts +645 -0
  1357. package/tests/cases/unit/tenant-apply-command.test.ts +298 -0
  1358. package/tests/cases/unit/tenant-clients.test.ts +130 -0
  1359. package/tests/cases/unit/tenant-connection.test.ts +91 -0
  1360. package/tests/cases/unit/tenant-input.test.ts +275 -0
  1361. package/tests/cases/unit/tenant-member.test.ts +683 -0
  1362. package/tests/cases/unit/tenant-person.test.ts +857 -0
  1363. package/tests/cases/unit/tenant-policy.test.ts +799 -0
  1364. package/tests/cases/unit/tenant-project.test.ts +648 -0
  1365. package/tests/cases/unit/tenant-transport.test.ts +322 -0
  1366. package/tests/cases/unit/transfer.test.ts +712 -0
  1367. package/tests/cases/unit/transport-errors.test.ts +78 -0
  1368. package/tests/cases/unit/versionRange.test.ts +57 -0
  1369. package/tests/cases/unit/workspace-update-api.test.ts +152 -0
  1370. package/tests/tenantConfigApplier.test.ts +434 -38
  1371. package/dist/development/src/lib/tenant/TenantClient.cjs +0 -104
  1372. package/dist/development/src/lib/tenant/TenantClient.cjs.map +0 -1
  1373. package/dist/development/src/lib/tenant/TenantClient.js +0 -104
  1374. package/dist/development/src/lib/tenant/TenantClient.js.map +0 -1
  1375. package/dist/production/src/lib/tenant/TenantClient.cjs +0 -104
  1376. package/dist/production/src/lib/tenant/TenantClient.cjs.map +0 -1
  1377. package/dist/production/src/lib/tenant/TenantClient.js +0 -104
  1378. package/dist/production/src/lib/tenant/TenantClient.js.map +0 -1
  1379. package/dist/types/lib/tenant/TenantClient.d.ts +0 -24
  1380. package/dist/types/lib/tenant/TenantClient.d.ts.map +0 -1
  1381. package/src/lib/tenant/TenantClient.ts +0 -149
  1382. package/types/chalk-table/index.d.ts +0 -9
@@ -0,0 +1,244 @@
1
+ import { CliError, ExitCode } from '@contember/cli-common'
2
+ import {
3
+ addMailTemplateError$$,
4
+ addMailTemplateResponse$$,
5
+ authLogEntry$$,
6
+ type AuthLogFilter,
7
+ authLogPage$,
8
+ authPolicy$$,
9
+ type AuthPolicyInput,
10
+ type AuthPolicyScope,
11
+ createAuthPolicyError$$,
12
+ createAuthPolicyResponse$$,
13
+ createAuthPolicyResult$$,
14
+ createCustomRoleError$$,
15
+ createCustomRoleResponse$$,
16
+ customRole$,
17
+ deleteAuthPolicyError$$,
18
+ deleteAuthPolicyResponse$$,
19
+ mailTemplateData$$,
20
+ type MailTemplateIdentifier,
21
+ type MailType,
22
+ mutation$,
23
+ query$,
24
+ removeMailTemplateError$$,
25
+ removeMailTemplateResponse$$,
26
+ updateAuthPolicyError$$,
27
+ updateAuthPolicyResponse$$,
28
+ updateCustomRoleError$$,
29
+ updateCustomRoleResponse$$,
30
+ } from '@contember/graphql-client-tenant'
31
+ import { describeAuthPolicy } from '../authPolicy.js'
32
+ import { TenantApiTransport, TenantMutationResult } from '../TenantApiTransport.js'
33
+ import { TenantCustomRoleConfig, TenantMailTemplate } from '../tenantConfig.js'
34
+
35
+ /** A policy as it exists server-side. The config-side counterpart is `TenantAuthPolicy` in `tenantConfig.ts`. */
36
+ export interface RemoteAuthPolicy {
37
+ id: string
38
+ scope: AuthPolicyScope
39
+ /** Project slug, `null` for a global policy. */
40
+ project: string | null
41
+ roles: string[]
42
+ mfaRequired: boolean | null
43
+ /** ISO 8601 duration, e.g. `PT1H`. */
44
+ tokenExpiration: string | null
45
+ idleTimeout: string | null
46
+ mfaGraceDuration: string | null
47
+ rememberMeAllowed: boolean | null
48
+ }
49
+
50
+ export interface TenantMailTemplateData {
51
+ projectSlug: string | null
52
+ type: MailType
53
+ variant: string | null
54
+ subject: string
55
+ content: string
56
+ useLayout: boolean
57
+ replyTo: string | null
58
+ }
59
+
60
+ export interface TenantAuthLogEntry {
61
+ id: string
62
+ createdAt: string
63
+ type: string
64
+ success: boolean
65
+ invokedByIdentityId: string | null
66
+ personId: string | null
67
+ targetPersonId: string | null
68
+ personInputIdentifier: string | null
69
+ errorCode: string | null
70
+ errorMessage: string | null
71
+ ipAddress: string | null
72
+ userAgent: string | null
73
+ identityProviderId: string | null
74
+ metadata: unknown
75
+ eventData: unknown
76
+ }
77
+
78
+ export interface TenantAuthLogPage {
79
+ entries: TenantAuthLogEntry[]
80
+ /** True when more rows exist past `offset + entries.length`. */
81
+ hasMore: boolean
82
+ }
83
+
84
+ export interface ReadAuthLogArgs {
85
+ filter?: AuthLogFilter
86
+ limit?: number
87
+ offset?: number
88
+ }
89
+
90
+ export interface RemoteCustomRole {
91
+ slug: string
92
+ }
93
+
94
+ interface UpdateCustomRoleResult {
95
+ updateCustomRole?: TenantMutationResult
96
+ }
97
+
98
+ // Fetchers are immutable and reusable, so they are built once at module load.
99
+ const authPoliciesFetcher = query$.authPolicies(authPolicy$$)
100
+ const createAuthPolicyFetcher = mutation$.createAuthPolicy(
101
+ createAuthPolicyResponse$$.error(createAuthPolicyError$$).result(createAuthPolicyResult$$),
102
+ )
103
+ const updateAuthPolicyFetcher = mutation$.updateAuthPolicy(updateAuthPolicyResponse$$.error(updateAuthPolicyError$$))
104
+ const deleteAuthPolicyFetcher = mutation$.deleteAuthPolicy(deleteAuthPolicyResponse$$.error(deleteAuthPolicyError$$))
105
+ const mailTemplatesFetcher = query$.mailTemplates(mailTemplateData$$)
106
+ const addMailTemplateFetcher = mutation$.addMailTemplate(addMailTemplateResponse$$.error(addMailTemplateError$$))
107
+ const removeMailTemplateFetcher = mutation$.removeMailTemplate(removeMailTemplateResponse$$.error(removeMailTemplateError$$))
108
+ const authLogFetcher = query$.authLog(authLogPage$.hasMore.entries(authLogEntry$$))
109
+ const customRolesFetcher = query$.customRoles(customRole$.slug)
110
+ const createCustomRoleFetcher = mutation$.createCustomRole(createCustomRoleResponse$$.error(createCustomRoleError$$))
111
+ const updateCustomRoleFetcher = mutation$.updateCustomRole(updateCustomRoleResponse$$.error(updateCustomRoleError$$))
112
+ const clearCustomRoleDescriptionMutation = `
113
+ mutation updateCustomRoleDescription($slug: String!, $grants: [CustomRoleGrantInput!]) {
114
+ updateCustomRole(slug: $slug, grants: $grants, description: null) {
115
+ ok
116
+ error {
117
+ code
118
+ developerMessage
119
+ }
120
+ }
121
+ }
122
+ `
123
+
124
+ /** Auth policies, mail templates, custom roles and the auth log. */
125
+ export class TenantPolicyClient {
126
+ constructor(
127
+ private readonly transport: TenantApiTransport,
128
+ ) {
129
+ }
130
+
131
+ public async listAuthPolicies(): Promise<RemoteAuthPolicy[]> {
132
+ const result = await this.transport.exec(authPoliciesFetcher, {})
133
+ return result.authPolicies.map(it => ({
134
+ id: it.id,
135
+ scope: it.scope,
136
+ project: it.project ?? null,
137
+ roles: [...it.roles],
138
+ mfaRequired: it.mfaRequired ?? null,
139
+ tokenExpiration: it.tokenExpiration ?? null,
140
+ idleTimeout: it.idleTimeout ?? null,
141
+ mfaGraceDuration: it.mfaGraceDuration ?? null,
142
+ rememberMeAllowed: it.rememberMeAllowed ?? null,
143
+ }))
144
+ }
145
+
146
+ /** Returns the id of the created policy — the only thing `createAuthPolicy` hands back. */
147
+ public async createAuthPolicy(policy: AuthPolicyInput): Promise<string> {
148
+ const result = await this.transport.exec(createAuthPolicyFetcher, { policy })
149
+ // a policy has no slug, so the target is the only thing that identifies it in an error
150
+ this.transport.assertOk(result.createAuthPolicy, `createAuthPolicy(${describeAuthPolicy(policy)})`)
151
+ const id = result.createAuthPolicy?.result?.id
152
+ if (id === undefined) {
153
+ // ok without a result breaks the schema contract, so there is nothing sensible to report back
154
+ throw new CliError(`createAuthPolicy(${describeAuthPolicy(policy)}) reported success without returning an id.`, {
155
+ code: 'TENANT_API_INVALID_RESPONSE',
156
+ exitCode: ExitCode.InternalError,
157
+ })
158
+ }
159
+ return id
160
+ }
161
+
162
+ public async updateAuthPolicy(id: string, policy: AuthPolicyInput): Promise<void> {
163
+ const result = await this.transport.exec(updateAuthPolicyFetcher, { id, policy })
164
+ this.transport.assertOk(result.updateAuthPolicy, `updateAuthPolicy(${id}: ${describeAuthPolicy(policy)})`)
165
+ }
166
+
167
+ public async deleteAuthPolicy(id: string): Promise<void> {
168
+ const result = await this.transport.exec(deleteAuthPolicyFetcher, { id })
169
+ this.transport.assertOk(result.deleteAuthPolicy, `deleteAuthPolicy(${id})`)
170
+ }
171
+
172
+ public async listMailTemplates(): Promise<TenantMailTemplateData[]> {
173
+ const result = await this.transport.exec(mailTemplatesFetcher, {})
174
+ return result.mailTemplates.map(it => ({
175
+ projectSlug: it.projectSlug ?? null,
176
+ type: it.type,
177
+ variant: it.variant ?? null,
178
+ subject: it.subject,
179
+ content: it.content,
180
+ useLayout: it.useLayout,
181
+ replyTo: it.replyTo ?? null,
182
+ }))
183
+ }
184
+
185
+ public async addMailTemplate(template: TenantMailTemplate): Promise<void> {
186
+ const result = await this.transport.exec(addMailTemplateFetcher, { template })
187
+ this.transport.assertOk(result.addMailTemplate, `addMailTemplate(${template.type}/${template.variant ?? ''})`)
188
+ }
189
+
190
+ /** A template is addressed by the `projectSlug`/`type`/`variant` triple — it has no id of its own. */
191
+ public async removeMailTemplate(templateIdentifier: MailTemplateIdentifier): Promise<void> {
192
+ const result = await this.transport.exec(removeMailTemplateFetcher, { templateIdentifier })
193
+ this.transport.assertOk(result.removeMailTemplate, `removeMailTemplate(${templateIdentifier.type}/${templateIdentifier.variant ?? ''})`)
194
+ }
195
+
196
+ public async listCustomRoles(): Promise<RemoteCustomRole[]> {
197
+ const result = await this.transport.exec(customRolesFetcher, {})
198
+ return result.customRoles.map(role => ({ slug: role.slug }))
199
+ }
200
+
201
+ public async createCustomRole(slug: string, role: TenantCustomRoleConfig): Promise<void> {
202
+ const result = await this.transport.exec(createCustomRoleFetcher, {
203
+ slug,
204
+ description: role.description ?? undefined,
205
+ grants: role.grants,
206
+ })
207
+ this.transport.assertOk(result.createCustomRole, `createCustomRole(${slug})`)
208
+ }
209
+
210
+ public async updateCustomRole(slug: string, role: TenantCustomRoleConfig): Promise<void> {
211
+ const result = role.description === null
212
+ ? await this.transport.execDocument<UpdateCustomRoleResult>(clearCustomRoleDescriptionMutation, { slug, grants: role.grants })
213
+ : await this.transport.exec(updateCustomRoleFetcher, {
214
+ slug,
215
+ description: role.description,
216
+ grants: role.grants,
217
+ })
218
+ this.transport.assertOk(result.updateCustomRole, `updateCustomRole(${slug})`)
219
+ }
220
+
221
+ public async readAuthLog({ filter, limit, offset }: ReadAuthLogArgs = {}): Promise<TenantAuthLogPage> {
222
+ const result = await this.transport.exec(authLogFetcher, { filter, limit, offset })
223
+ return {
224
+ hasMore: result.authLog.hasMore,
225
+ entries: result.authLog.entries.map(it => ({
226
+ id: it.id,
227
+ createdAt: it.createdAt,
228
+ type: it.type,
229
+ success: it.success,
230
+ invokedByIdentityId: it.invokedByIdentityId ?? null,
231
+ personId: it.personId ?? null,
232
+ targetPersonId: it.targetPersonId ?? null,
233
+ personInputIdentifier: it.personInputIdentifier ?? null,
234
+ errorCode: it.errorCode ?? null,
235
+ errorMessage: it.errorMessage ?? null,
236
+ ipAddress: it.ipAddress ?? null,
237
+ userAgent: it.userAgent ?? null,
238
+ identityProviderId: it.identityProviderId ?? null,
239
+ metadata: it.metadata ?? null,
240
+ eventData: it.eventData ?? null,
241
+ })),
242
+ }
243
+ }
244
+ }
@@ -0,0 +1,435 @@
1
+ import {
2
+ addIDPError$$,
3
+ addIDPResponse$$,
4
+ apiKeyWithToken$$,
5
+ type CaptchaProvider,
6
+ config$,
7
+ configCaptcha$$,
8
+ configCaptchaProtect$$,
9
+ configEmailChange$$,
10
+ configLogin$$,
11
+ configLoginAnomalyDetection$$,
12
+ configPassword$$,
13
+ configPasswordless$$,
14
+ type ConfigPolicy,
15
+ configRateLimits$,
16
+ configRateLimitWindow$$,
17
+ configSignup$$,
18
+ configureError$$,
19
+ configureResponse$$,
20
+ createProjectResponse$$,
21
+ createProjectResponseError$$,
22
+ createProjectResult$,
23
+ disableIDPError$$,
24
+ disableIDPResponse$$,
25
+ enableIDPError$$,
26
+ enableIDPResponse$$,
27
+ identity$$,
28
+ identityGlobalPermissions$$,
29
+ identityProjectRelation$,
30
+ identityProvider$,
31
+ membership$$,
32
+ mutation$,
33
+ project$,
34
+ projectSecretInfo$$,
35
+ query$,
36
+ roleConditionVariableDefinition$$,
37
+ roleDefinition$,
38
+ roleEntityVariableDefinition$$,
39
+ rolePredefinedVariableDefinition$$,
40
+ roleVariableDefinition$$,
41
+ setProjectSecretError$$,
42
+ setProjectSecretResponse$$,
43
+ updateIDPError$$,
44
+ updateIDPResponse$$,
45
+ updateProjectError$$,
46
+ updateProjectResponse$$,
47
+ } from '@contember/graphql-client-tenant'
48
+ import { CliError, ExitCode } from '@contember/cli-common'
49
+ import type { ModelType } from 'graphql-ts-client-api'
50
+ import { TenantApiTransport } from '../TenantApiTransport.js'
51
+ import { TenantGlobalConfig, TenantIdpOptions } from '../tenantConfig.js'
52
+
53
+ export interface RemoteIdentityProvider {
54
+ slug: string
55
+ type: string
56
+ disabledAt: string | null
57
+ }
58
+
59
+ export interface TenantProjectSummary {
60
+ id: string
61
+ name: string
62
+ slug: string
63
+ }
64
+
65
+ export interface TenantProjectRole {
66
+ name: string
67
+ /** Variable names the role expects, retained for compatibility. */
68
+ variables: string[]
69
+ variableDefinitions: TenantProjectRoleVariableDefinition[]
70
+ }
71
+
72
+ export type TenantProjectRoleVariableDefinition =
73
+ | { type: 'entity'; name: string; entityName: string }
74
+ | { type: 'predefined'; name: string; value: string }
75
+ | { type: 'condition'; name: string }
76
+
77
+ export interface TenantProjectSecret {
78
+ key: string
79
+ createdAt: string
80
+ updatedAt: string
81
+ }
82
+
83
+ export interface TenantProjectDetail {
84
+ id: string
85
+ name: string
86
+ slug: string
87
+ config: unknown
88
+ roles: TenantProjectRole[]
89
+ secrets: TenantProjectSecret[]
90
+ }
91
+
92
+ export interface TenantCreateProjectDetails {
93
+ name?: string
94
+ config?: unknown
95
+ /** Skip issuing a deploy API key for the project. */
96
+ noDeployToken?: boolean
97
+ }
98
+
99
+ export interface TenantCreateProjectResult {
100
+ /** Null when {@link TenantCreateProjectDetails.noDeployToken} was requested. */
101
+ deployerApiKey: { id: string; token: string | null } | null
102
+ }
103
+
104
+ export interface TenantUpdateProjectChanges {
105
+ name?: string
106
+ config?: unknown
107
+ mergeConfig?: boolean
108
+ }
109
+
110
+ export interface TenantRateLimitWindowState {
111
+ limit: number
112
+ window: string
113
+ }
114
+
115
+ /** The tenant-wide configuration returned by `Query.configuration` — the read side of {@link TenantGlobalConfig}. */
116
+ export interface TenantConfigState {
117
+ signup: { requireEmailVerification: boolean }
118
+ emailChange: { requireVerification: boolean; requireReauthentication: boolean }
119
+ passwordless: { enabled: ConfigPolicy; url: string | null; expiration: string; uniformResponse: boolean }
120
+ password: {
121
+ minLength: number
122
+ requireUppercase: number
123
+ requireLowercase: number
124
+ requireDigit: number
125
+ requireSpecial: number
126
+ pattern: string | null
127
+ checkBlacklist: boolean
128
+ checkHibp: boolean
129
+ revokeSessionsOnChange: boolean
130
+ }
131
+ login: {
132
+ baseBackoff: string
133
+ maxBackoff: string
134
+ attemptWindow: string
135
+ revealUserExists: boolean
136
+ revealLoginMethod: boolean
137
+ defaultTokenExpiration: string
138
+ maxTokenExpiration: string | null
139
+ mfaGraceDuration: string
140
+ mfaChangeRequiresReauthentication: boolean
141
+ anomalyDetection: {
142
+ enabled: boolean
143
+ historySize: number
144
+ emailThreshold: number
145
+ stepUpThreshold: number
146
+ missingSignalIsNew: boolean
147
+ }
148
+ }
149
+ captcha: {
150
+ provider: CaptchaProvider | null
151
+ threshold: number | null
152
+ protect: {
153
+ signUp: boolean
154
+ passwordReset: boolean
155
+ passwordlessInit: boolean
156
+ emailVerification: boolean
157
+ }
158
+ }
159
+ rateLimits: {
160
+ signUpPerIp: TenantRateLimitWindowState
161
+ loginPerIp: TenantRateLimitWindowState
162
+ passwordResetPerIp: TenantRateLimitWindowState
163
+ passwordlessInitPerIp: TenantRateLimitWindowState
164
+ emailOtpPerPerson: TenantRateLimitWindowState
165
+ emailVerificationPerIp: TenantRateLimitWindowState
166
+ }
167
+ }
168
+
169
+ export interface TenantWhoAmIProject {
170
+ slug: string
171
+ name: string
172
+ roles: string[]
173
+ }
174
+
175
+ /** `Query.me` — the identity behind the token the CLI is using. */
176
+ export interface TenantWhoAmI {
177
+ id: string
178
+ description: string | null
179
+ /** Global (tenant-wide) roles — empty for an identity whose access is entirely project-scoped. */
180
+ roles: string[]
181
+ permissions: { canCreateProject: boolean; canDeployEntrypoint: boolean } | null
182
+ projects: TenantWhoAmIProject[]
183
+ }
184
+
185
+ // Fetchers are immutable and reusable, so they are built once at module load.
186
+ const createProjectFetcher = mutation$.createProject(
187
+ createProjectResponse$$.error(createProjectResponseError$$).result(createProjectResult$.deployerApiKey(apiKeyWithToken$$)),
188
+ )
189
+ const setProjectSecretFetcher = mutation$.setProjectSecret(setProjectSecretResponse$$.error(setProjectSecretError$$))
190
+ const updateProjectFetcher = mutation$.updateProject(updateProjectResponse$$.error(updateProjectError$$))
191
+ const configureFetcher = mutation$.configure(configureResponse$$.error(configureError$$))
192
+ const configurationFetcher = query$.configuration(
193
+ config$
194
+ .signup(configSignup$$)
195
+ .emailChange(configEmailChange$$)
196
+ .passwordless(configPasswordless$$)
197
+ .password(configPassword$$)
198
+ .login(configLogin$$.anomalyDetection(configLoginAnomalyDetection$$))
199
+ .captcha(configCaptcha$$.protect(configCaptchaProtect$$))
200
+ .rateLimits(
201
+ configRateLimits$
202
+ .signUpPerIp(configRateLimitWindow$$)
203
+ .loginPerIp(configRateLimitWindow$$)
204
+ .passwordResetPerIp(configRateLimitWindow$$)
205
+ .passwordlessInitPerIp(configRateLimitWindow$$)
206
+ .emailOtpPerPerson(configRateLimitWindow$$)
207
+ .emailVerificationPerIp(configRateLimitWindow$$),
208
+ ),
209
+ )
210
+ const projectsFetcher = query$.projects(project$.id.name.slug)
211
+ const roleVariableFetcher = roleVariableDefinition$$
212
+ .on(roleConditionVariableDefinition$$)
213
+ .on(roleEntityVariableDefinition$$)
214
+ .on(rolePredefinedVariableDefinition$$)
215
+ const toRoleVariableDefinition = (variable: ModelType<typeof roleVariableFetcher>): TenantProjectRoleVariableDefinition => {
216
+ switch (variable.__typename) {
217
+ case 'RoleEntityVariableDefinition':
218
+ return { type: 'entity', name: variable.name, entityName: variable.entityName }
219
+ case 'RolePredefinedVariableDefinition':
220
+ return { type: 'predefined', name: variable.name, value: variable.value }
221
+ case 'RoleConditionVariableDefinition':
222
+ return { type: 'condition', name: variable.name }
223
+ case 'RoleVariableDefinition':
224
+ throw new CliError(`Tenant API returned an abstract role variable definition for "${variable.name}".`, {
225
+ code: 'TENANT_API_INVALID_RESPONSE',
226
+ exitCode: ExitCode.InternalError,
227
+ })
228
+ }
229
+ }
230
+ const projectBySlugFetcher = query$.projectBySlug(
231
+ project$
232
+ .id.name.slug.config
233
+ .roles(roleDefinition$.name.variables(roleVariableFetcher))
234
+ .secrets(projectSecretInfo$$),
235
+ )
236
+ const identityProvidersFetcher = query$.identityProviders(identityProvider$.slug.type.disabledAt)
237
+ const addIdpFetcher = mutation$.addIDP(addIDPResponse$$.error(addIDPError$$))
238
+ const updateIdpFetcher = mutation$.updateIDP(updateIDPResponse$$.error(updateIDPError$$))
239
+ const enableIdpFetcher = mutation$.enableIDP(enableIDPResponse$$.error(enableIDPError$$))
240
+ const disableIdpFetcher = mutation$.disableIDP(disableIDPResponse$$.error(disableIDPError$$))
241
+ const meFetcher = query$.me(
242
+ identity$$
243
+ .permissions(identityGlobalPermissions$$)
244
+ .projects(identityProjectRelation$.project(project$.slug.name).memberships(membership$$)),
245
+ )
246
+
247
+ const toRateLimitWindow = (it: { limit: number; window: string }): TenantRateLimitWindowState => ({ limit: it.limit, window: it.window })
248
+
249
+ /** Projects, project secrets, global tenant configuration, identity providers and `me`. */
250
+ export class TenantProjectClient {
251
+ constructor(
252
+ private readonly transport: TenantApiTransport,
253
+ ) {
254
+ }
255
+
256
+ public async listProjects(): Promise<TenantProjectSummary[]> {
257
+ const result = await this.transport.exec(projectsFetcher, {})
258
+ return result.projects.map(it => ({ id: it.id, name: it.name, slug: it.slug }))
259
+ }
260
+
261
+ /** Null both when the project does not exist and when the caller may not see it — the API does not distinguish. */
262
+ public async getProjectBySlug(slug: string): Promise<TenantProjectDetail | null> {
263
+ const result = await this.transport.exec(projectBySlugFetcher, { slug })
264
+ const project = result.projectBySlug
265
+ if (!project) {
266
+ return null
267
+ }
268
+ return {
269
+ id: project.id,
270
+ name: project.name,
271
+ slug: project.slug,
272
+ config: project.config,
273
+ roles: project.roles.map(role => ({
274
+ name: role.name,
275
+ variables: role.variables.map(it => it.name),
276
+ variableDefinitions: role.variables.map(toRoleVariableDefinition),
277
+ })),
278
+ secrets: project.secrets.map(it => ({ key: it.key, createdAt: it.createdAt, updatedAt: it.updatedAt })),
279
+ }
280
+ }
281
+
282
+ /** Returns `null` (nothing created) when `ignoreExisting` swallowed an `ALREADY_EXISTS`. */
283
+ public async createProject(slug: string, ignoreExisting = false, details?: TenantCreateProjectDetails): Promise<TenantCreateProjectResult | null> {
284
+ const result = await this.transport.exec(createProjectFetcher, {
285
+ projectSlug: slug,
286
+ name: details?.name,
287
+ config: details?.config,
288
+ options: details?.noDeployToken ? { noDeployToken: true } : undefined,
289
+ })
290
+ if (ignoreExisting && result.createProject?.error?.code === 'ALREADY_EXISTS') {
291
+ return null
292
+ }
293
+ this.transport.assertOk(result.createProject, `createProject(${slug})`)
294
+ const deployerApiKey = result.createProject?.result?.deployerApiKey
295
+ return { deployerApiKey: deployerApiKey ? { id: deployerApiKey.id, token: deployerApiKey.token ?? null } : null }
296
+ }
297
+
298
+ public async updateProject(slug: string, changes: TenantUpdateProjectChanges): Promise<void> {
299
+ const result = await this.transport.exec(updateProjectFetcher, {
300
+ projectSlug: slug,
301
+ name: changes.name,
302
+ config: changes.config,
303
+ mergeConfig: changes.mergeConfig,
304
+ })
305
+ this.transport.assertOk(result.updateProject, `updateProject(${slug})`)
306
+ }
307
+
308
+ public async setProjectSecret(slug: string, key: string, value: string): Promise<void> {
309
+ const result = await this.transport.exec(setProjectSecretFetcher, { projectSlug: slug, key, value })
310
+ this.transport.assertOk(result.setProjectSecret, `setProjectSecret(${slug}/${key})`)
311
+ }
312
+
313
+ public async configure(config: TenantGlobalConfig): Promise<void> {
314
+ const result = await this.transport.exec(configureFetcher, { config })
315
+ this.transport.assertOk(result.configure, 'configure')
316
+ }
317
+
318
+ public async configuration(): Promise<TenantConfigState> {
319
+ const result = await this.transport.exec(configurationFetcher, {})
320
+ const config = result.configuration
321
+ return {
322
+ signup: { requireEmailVerification: config.signup.requireEmailVerification },
323
+ emailChange: {
324
+ requireVerification: config.emailChange.requireVerification,
325
+ requireReauthentication: config.emailChange.requireReauthentication,
326
+ },
327
+ passwordless: {
328
+ enabled: config.passwordless.enabled,
329
+ url: config.passwordless.url ?? null,
330
+ expiration: config.passwordless.expiration,
331
+ uniformResponse: config.passwordless.uniformResponse,
332
+ },
333
+ password: {
334
+ minLength: config.password.minLength,
335
+ requireUppercase: config.password.requireUppercase,
336
+ requireLowercase: config.password.requireLowercase,
337
+ requireDigit: config.password.requireDigit,
338
+ requireSpecial: config.password.requireSpecial,
339
+ pattern: config.password.pattern ?? null,
340
+ checkBlacklist: config.password.checkBlacklist,
341
+ checkHibp: config.password.checkHibp,
342
+ revokeSessionsOnChange: config.password.revokeSessionsOnChange,
343
+ },
344
+ login: {
345
+ baseBackoff: config.login.baseBackoff,
346
+ maxBackoff: config.login.maxBackoff,
347
+ attemptWindow: config.login.attemptWindow,
348
+ revealUserExists: config.login.revealUserExists,
349
+ revealLoginMethod: config.login.revealLoginMethod,
350
+ defaultTokenExpiration: config.login.defaultTokenExpiration,
351
+ maxTokenExpiration: config.login.maxTokenExpiration ?? null,
352
+ mfaGraceDuration: config.login.mfaGraceDuration,
353
+ mfaChangeRequiresReauthentication: config.login.mfaChangeRequiresReauthentication,
354
+ anomalyDetection: {
355
+ enabled: config.login.anomalyDetection.enabled,
356
+ historySize: config.login.anomalyDetection.historySize,
357
+ emailThreshold: config.login.anomalyDetection.emailThreshold,
358
+ stepUpThreshold: config.login.anomalyDetection.stepUpThreshold,
359
+ missingSignalIsNew: config.login.anomalyDetection.missingSignalIsNew,
360
+ },
361
+ },
362
+ captcha: {
363
+ provider: config.captcha.provider ?? null,
364
+ threshold: config.captcha.threshold ?? null,
365
+ protect: {
366
+ signUp: config.captcha.protect.signUp,
367
+ passwordReset: config.captcha.protect.passwordReset,
368
+ passwordlessInit: config.captcha.protect.passwordlessInit,
369
+ emailVerification: config.captcha.protect.emailVerification,
370
+ },
371
+ },
372
+ rateLimits: {
373
+ signUpPerIp: toRateLimitWindow(config.rateLimits.signUpPerIp),
374
+ loginPerIp: toRateLimitWindow(config.rateLimits.loginPerIp),
375
+ passwordResetPerIp: toRateLimitWindow(config.rateLimits.passwordResetPerIp),
376
+ passwordlessInitPerIp: toRateLimitWindow(config.rateLimits.passwordlessInitPerIp),
377
+ emailOtpPerPerson: toRateLimitWindow(config.rateLimits.emailOtpPerPerson),
378
+ emailVerificationPerIp: toRateLimitWindow(config.rateLimits.emailVerificationPerIp),
379
+ },
380
+ }
381
+ }
382
+
383
+ public async listIdentityProviders(): Promise<RemoteIdentityProvider[]> {
384
+ const result = await this.transport.exec(identityProvidersFetcher, {})
385
+ return result.identityProviders.map(it => ({
386
+ slug: it.slug,
387
+ type: it.type,
388
+ disabledAt: it.disabledAt ?? null,
389
+ }))
390
+ }
391
+
392
+ public async addIdp(slug: string, type: string, configuration: unknown, options?: TenantIdpOptions): Promise<void> {
393
+ const result = await this.transport.exec(addIdpFetcher, { identityProvider: slug, type, configuration, options })
394
+ this.transport.assertOk(result.addIDP, `addIDP(${slug})`)
395
+ }
396
+
397
+ public async updateIdp(slug: string, type: string, configuration: unknown, options?: TenantIdpOptions): Promise<void> {
398
+ const result = await this.transport.exec(updateIdpFetcher, {
399
+ identityProvider: slug,
400
+ type,
401
+ configuration,
402
+ options,
403
+ mergeConfiguration: false,
404
+ })
405
+ this.transport.assertOk(result.updateIDP, `updateIDP(${slug})`)
406
+ }
407
+
408
+ public async enableIdp(slug: string): Promise<void> {
409
+ const result = await this.transport.exec(enableIdpFetcher, { identityProvider: slug })
410
+ this.transport.assertOk(result.enableIDP, `enableIDP(${slug})`)
411
+ }
412
+
413
+ public async disableIdp(slug: string): Promise<void> {
414
+ const result = await this.transport.exec(disableIdpFetcher, { identityProvider: slug })
415
+ this.transport.assertOk(result.disableIDP, `disableIDP(${slug})`)
416
+ }
417
+
418
+ public async whoAmI(): Promise<TenantWhoAmI> {
419
+ const result = await this.transport.exec(meFetcher, {})
420
+ const me = result.me
421
+ return {
422
+ id: me.id,
423
+ description: me.description ?? null,
424
+ roles: me.roles ? [...me.roles] : [],
425
+ permissions: me.permissions
426
+ ? { canCreateProject: me.permissions.canCreateProject, canDeployEntrypoint: me.permissions.canDeployEntrypoint }
427
+ : null,
428
+ projects: me.projects.map(it => ({
429
+ slug: it.project.slug,
430
+ name: it.project.name,
431
+ roles: it.memberships.map(m => m.role),
432
+ })),
433
+ }
434
+ }
435
+ }
@@ -0,0 +1,29 @@
1
+ import { TenantApiTransport } from '../TenantApiTransport.js'
2
+ import { TenantApiKeyClient } from './TenantApiKeyClient.js'
3
+ import { TenantMemberClient } from './TenantMemberClient.js'
4
+ import { TenantPersonClient } from './TenantPersonClient.js'
5
+ import { TenantPolicyClient } from './TenantPolicyClient.js'
6
+ import { TenantProjectClient } from './TenantProjectClient.js'
7
+
8
+ export * from './TenantApiKeyClient.js'
9
+ export * from './TenantMemberClient.js'
10
+ export * from './TenantPersonClient.js'
11
+ export * from './TenantPolicyClient.js'
12
+ export * from './TenantProjectClient.js'
13
+
14
+ /** One instance of every tenant domain client, all sharing a single transport. */
15
+ export interface TenantClients {
16
+ readonly project: TenantProjectClient
17
+ readonly person: TenantPersonClient
18
+ readonly member: TenantMemberClient
19
+ readonly apiKey: TenantApiKeyClient
20
+ readonly policy: TenantPolicyClient
21
+ }
22
+
23
+ export const createTenantClients = (transport: TenantApiTransport): TenantClients => ({
24
+ project: new TenantProjectClient(transport),
25
+ person: new TenantPersonClient(transport),
26
+ member: new TenantMemberClient(transport),
27
+ apiKey: new TenantApiKeyClient(transport),
28
+ policy: new TenantPolicyClient(transport),
29
+ })