@constructive-sdk/cli 0.2.1 → 0.6.2

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 (415) hide show
  1. package/admin/cli/commands/app-achievement.js +4 -0
  2. package/admin/cli/commands/app-admin-grant.js +6 -2
  3. package/admin/cli/commands/app-grant.js +8 -2
  4. package/admin/cli/commands/app-level-requirement.js +6 -0
  5. package/admin/cli/commands/app-level.js +6 -0
  6. package/admin/cli/commands/app-limit-default.js +2 -0
  7. package/admin/cli/commands/app-limit.js +6 -0
  8. package/admin/cli/commands/app-membership-default.js +12 -4
  9. package/admin/cli/commands/app-membership.js +38 -14
  10. package/admin/cli/commands/app-owner-grant.js +6 -2
  11. package/admin/cli/commands/app-permission-default.js +2 -0
  12. package/admin/cli/commands/app-permission.js +8 -0
  13. package/admin/cli/commands/app-step.js +4 -0
  14. package/admin/cli/commands/claimed-invite.js +8 -2
  15. package/admin/cli/commands/invite.js +24 -6
  16. package/admin/cli/commands/org-admin-grant.js +6 -2
  17. package/admin/cli/commands/org-chart-edge-grant.js +10 -2
  18. package/admin/cli/commands/org-chart-edge.js +6 -0
  19. package/admin/cli/commands/org-claimed-invite.js +8 -2
  20. package/admin/cli/commands/org-grant.js +8 -2
  21. package/admin/cli/commands/org-invite.js +26 -6
  22. package/admin/cli/commands/org-limit-default.js +2 -0
  23. package/admin/cli/commands/org-limit.js +6 -0
  24. package/admin/cli/commands/org-member.js +4 -2
  25. package/admin/cli/commands/org-membership-default.js +16 -6
  26. package/admin/cli/commands/org-membership.js +34 -12
  27. package/admin/cli/commands/org-owner-grant.js +6 -2
  28. package/admin/cli/commands/org-permission-default.js +2 -0
  29. package/admin/cli/commands/org-permission.js +8 -0
  30. package/admin/cli/commands/submit-invite-code.js +1 -1
  31. package/admin/cli/commands/submit-org-invite-code.js +1 -1
  32. package/admin/cli/index.js +2 -2
  33. package/admin/cli/utils.d.ts +13 -0
  34. package/admin/cli/utils.js +25 -0
  35. package/auth/cli/commands/audit-log.js +10 -2
  36. package/auth/cli/commands/check-password.js +1 -1
  37. package/auth/cli/commands/confirm-delete-account.js +1 -1
  38. package/auth/cli/commands/connected-account.js +8 -4
  39. package/auth/cli/commands/crypto-address.js +10 -4
  40. package/auth/cli/commands/email.js +10 -4
  41. package/auth/cli/commands/extend-token-expires.js +1 -1
  42. package/auth/cli/commands/forgot-password.js +1 -1
  43. package/auth/cli/commands/one-time-token.js +1 -1
  44. package/auth/cli/commands/phone-number.js +10 -4
  45. package/auth/cli/commands/reset-password.js +1 -1
  46. package/auth/cli/commands/send-account-deletion-email.js +1 -1
  47. package/auth/cli/commands/send-verification-email.js +1 -1
  48. package/auth/cli/commands/set-password.js +1 -1
  49. package/auth/cli/commands/sign-in-one-time-token.js +1 -1
  50. package/auth/cli/commands/sign-in.js +1 -1
  51. package/auth/cli/commands/sign-out.js +1 -1
  52. package/auth/cli/commands/sign-up.js +1 -1
  53. package/auth/cli/commands/user.js +10 -0
  54. package/auth/cli/commands/verify-email.js +1 -1
  55. package/auth/cli/commands/verify-password.js +1 -1
  56. package/auth/cli/commands/verify-totp.js +1 -1
  57. package/auth/cli/index.js +2 -2
  58. package/auth/cli/utils.d.ts +13 -0
  59. package/auth/cli/utils.js +25 -0
  60. package/esm/admin/cli/commands/app-achievement.js +4 -0
  61. package/esm/admin/cli/commands/app-admin-grant.js +6 -2
  62. package/esm/admin/cli/commands/app-grant.js +8 -2
  63. package/esm/admin/cli/commands/app-level-requirement.js +6 -0
  64. package/esm/admin/cli/commands/app-level.js +6 -0
  65. package/esm/admin/cli/commands/app-limit-default.js +2 -0
  66. package/esm/admin/cli/commands/app-limit.js +6 -0
  67. package/esm/admin/cli/commands/app-membership-default.js +12 -4
  68. package/esm/admin/cli/commands/app-membership.js +38 -14
  69. package/esm/admin/cli/commands/app-owner-grant.js +6 -2
  70. package/esm/admin/cli/commands/app-permission-default.js +2 -0
  71. package/esm/admin/cli/commands/app-permission.js +8 -0
  72. package/esm/admin/cli/commands/app-step.js +4 -0
  73. package/esm/admin/cli/commands/claimed-invite.js +8 -2
  74. package/esm/admin/cli/commands/invite.js +24 -6
  75. package/esm/admin/cli/commands/org-admin-grant.js +6 -2
  76. package/esm/admin/cli/commands/org-chart-edge-grant.js +10 -2
  77. package/esm/admin/cli/commands/org-chart-edge.js +6 -0
  78. package/esm/admin/cli/commands/org-claimed-invite.js +8 -2
  79. package/esm/admin/cli/commands/org-grant.js +8 -2
  80. package/esm/admin/cli/commands/org-invite.js +26 -6
  81. package/esm/admin/cli/commands/org-limit-default.js +2 -0
  82. package/esm/admin/cli/commands/org-limit.js +6 -0
  83. package/esm/admin/cli/commands/org-member.js +4 -2
  84. package/esm/admin/cli/commands/org-membership-default.js +16 -6
  85. package/esm/admin/cli/commands/org-membership.js +34 -12
  86. package/esm/admin/cli/commands/org-owner-grant.js +6 -2
  87. package/esm/admin/cli/commands/org-permission-default.js +2 -0
  88. package/esm/admin/cli/commands/org-permission.js +8 -0
  89. package/esm/admin/cli/commands/submit-invite-code.js +2 -2
  90. package/esm/admin/cli/commands/submit-org-invite-code.js +2 -2
  91. package/esm/admin/cli/index.js +2 -2
  92. package/esm/admin/cli/utils.d.ts +13 -0
  93. package/esm/admin/cli/utils.js +24 -0
  94. package/esm/auth/cli/commands/audit-log.js +10 -2
  95. package/esm/auth/cli/commands/check-password.js +2 -2
  96. package/esm/auth/cli/commands/confirm-delete-account.js +2 -2
  97. package/esm/auth/cli/commands/connected-account.js +8 -4
  98. package/esm/auth/cli/commands/crypto-address.js +10 -4
  99. package/esm/auth/cli/commands/email.js +10 -4
  100. package/esm/auth/cli/commands/extend-token-expires.js +2 -2
  101. package/esm/auth/cli/commands/forgot-password.js +2 -2
  102. package/esm/auth/cli/commands/one-time-token.js +2 -2
  103. package/esm/auth/cli/commands/phone-number.js +10 -4
  104. package/esm/auth/cli/commands/reset-password.js +2 -2
  105. package/esm/auth/cli/commands/send-account-deletion-email.js +2 -2
  106. package/esm/auth/cli/commands/send-verification-email.js +2 -2
  107. package/esm/auth/cli/commands/set-password.js +2 -2
  108. package/esm/auth/cli/commands/sign-in-one-time-token.js +2 -2
  109. package/esm/auth/cli/commands/sign-in.js +2 -2
  110. package/esm/auth/cli/commands/sign-out.js +2 -2
  111. package/esm/auth/cli/commands/sign-up.js +2 -2
  112. package/esm/auth/cli/commands/user.js +10 -0
  113. package/esm/auth/cli/commands/verify-email.js +2 -2
  114. package/esm/auth/cli/commands/verify-password.js +2 -2
  115. package/esm/auth/cli/commands/verify-totp.js +2 -2
  116. package/esm/auth/cli/index.js +2 -2
  117. package/esm/auth/cli/utils.d.ts +13 -0
  118. package/esm/auth/cli/utils.js +24 -0
  119. package/esm/objects/cli/commands/commit.js +12 -0
  120. package/esm/objects/cli/commands/freeze-objects.js +2 -2
  121. package/esm/objects/cli/commands/get-all-record.js +1 -1
  122. package/esm/objects/cli/commands/init-empty-repo.js +2 -2
  123. package/esm/objects/cli/commands/insert-node-at-path.js +2 -2
  124. package/esm/objects/cli/commands/object.js +12 -4
  125. package/esm/objects/cli/commands/ref.js +2 -0
  126. package/esm/objects/cli/commands/remove-node-at-path.js +2 -2
  127. package/esm/objects/cli/commands/set-and-commit.js +2 -2
  128. package/esm/objects/cli/commands/set-data-at-path.js +2 -2
  129. package/esm/objects/cli/commands/set-props-and-commit.js +2 -2
  130. package/esm/objects/cli/commands/store.js +2 -0
  131. package/esm/objects/cli/commands/update-node-at-path.js +2 -2
  132. package/esm/objects/cli/index.js +2 -2
  133. package/esm/objects/cli/utils.d.ts +13 -0
  134. package/esm/objects/cli/utils.js +24 -0
  135. package/esm/public/cli/commands/api-module.js +2 -2
  136. package/esm/public/cli/commands/api.js +10 -2
  137. package/esm/public/cli/commands/app-achievement.js +4 -0
  138. package/esm/public/cli/commands/app-admin-grant.js +6 -2
  139. package/esm/public/cli/commands/app-grant.js +8 -2
  140. package/esm/public/cli/commands/app-level-requirement.js +6 -0
  141. package/esm/public/cli/commands/app-level.js +6 -0
  142. package/esm/public/cli/commands/app-limit-default.js +2 -0
  143. package/esm/public/cli/commands/app-limit.js +6 -0
  144. package/esm/public/cli/commands/app-membership-default.js +12 -4
  145. package/esm/public/cli/commands/app-membership.js +38 -14
  146. package/esm/public/cli/commands/app-owner-grant.js +6 -2
  147. package/esm/public/cli/commands/app-permission-default.js +2 -0
  148. package/esm/public/cli/commands/app-permission.js +8 -0
  149. package/esm/public/cli/commands/app-step.js +4 -0
  150. package/esm/public/cli/commands/app.js +12 -0
  151. package/esm/public/cli/commands/apply-rls.js +2 -2
  152. package/esm/public/cli/commands/ast-migration.js +15 -4
  153. package/esm/public/cli/commands/audit-log.js +10 -2
  154. package/esm/public/cli/commands/bootstrap-user.js +2 -2
  155. package/esm/public/cli/commands/check-constraint.js +22 -4
  156. package/esm/public/cli/commands/check-password.js +2 -2
  157. package/esm/public/cli/commands/claimed-invite.js +8 -2
  158. package/esm/public/cli/commands/commit.js +12 -0
  159. package/esm/public/cli/commands/confirm-delete-account.js +2 -2
  160. package/esm/public/cli/commands/connected-account.js +8 -4
  161. package/esm/public/cli/commands/connected-accounts-module.js +8 -0
  162. package/esm/public/cli/commands/create-user-database.js +2 -2
  163. package/esm/public/cli/commands/crypto-address.js +10 -4
  164. package/esm/public/cli/commands/crypto-addresses-module.js +10 -0
  165. package/esm/public/cli/commands/crypto-auth-module.js +22 -0
  166. package/esm/public/cli/commands/database-provision-module.js +20 -4
  167. package/esm/public/cli/commands/database.js +10 -0
  168. package/esm/public/cli/commands/default-privilege.js +6 -2
  169. package/esm/public/cli/commands/denormalized-table-field.js +16 -4
  170. package/esm/public/cli/commands/domain.js +8 -0
  171. package/esm/public/cli/commands/email.js +10 -4
  172. package/esm/public/cli/commands/emails-module.js +8 -0
  173. package/esm/public/cli/commands/encrypted-secrets-module.js +6 -0
  174. package/esm/public/cli/commands/extend-token-expires.js +2 -2
  175. package/esm/public/cli/commands/field-module.js +14 -2
  176. package/esm/public/cli/commands/field.js +48 -12
  177. package/esm/public/cli/commands/foreign-key-constraint.js +24 -2
  178. package/esm/public/cli/commands/forgot-password.js +2 -2
  179. package/esm/public/cli/commands/freeze-objects.js +2 -2
  180. package/esm/public/cli/commands/full-text-search.js +2 -0
  181. package/esm/public/cli/commands/get-all-record.js +1 -1
  182. package/esm/public/cli/commands/hierarchy-module.js +30 -0
  183. package/esm/public/cli/commands/index.js +32 -8
  184. package/esm/public/cli/commands/init-empty-repo.js +2 -2
  185. package/esm/public/cli/commands/insert-node-at-path.js +2 -2
  186. package/esm/public/cli/commands/invite.js +24 -6
  187. package/esm/public/cli/commands/invites-module.js +22 -0
  188. package/esm/public/cli/commands/levels-module.js +46 -0
  189. package/esm/public/cli/commands/limits-module.js +30 -0
  190. package/esm/public/cli/commands/membership-types-module.js +6 -0
  191. package/esm/public/cli/commands/memberships-module.js +56 -0
  192. package/esm/public/cli/commands/node-type-registry.js +10 -2
  193. package/esm/public/cli/commands/object.js +12 -4
  194. package/esm/public/cli/commands/one-time-token.js +2 -2
  195. package/esm/public/cli/commands/org-admin-grant.js +6 -2
  196. package/esm/public/cli/commands/org-chart-edge-grant.js +10 -2
  197. package/esm/public/cli/commands/org-chart-edge.js +6 -0
  198. package/esm/public/cli/commands/org-claimed-invite.js +8 -2
  199. package/esm/public/cli/commands/org-grant.js +8 -2
  200. package/esm/public/cli/commands/org-invite.js +26 -6
  201. package/esm/public/cli/commands/org-limit-default.js +2 -0
  202. package/esm/public/cli/commands/org-limit.js +6 -0
  203. package/esm/public/cli/commands/org-member.js +4 -2
  204. package/esm/public/cli/commands/org-membership-default.js +16 -6
  205. package/esm/public/cli/commands/org-membership.js +34 -12
  206. package/esm/public/cli/commands/org-owner-grant.js +6 -2
  207. package/esm/public/cli/commands/org-permission-default.js +2 -0
  208. package/esm/public/cli/commands/org-permission.js +8 -0
  209. package/esm/public/cli/commands/permissions-module.js +28 -0
  210. package/esm/public/cli/commands/phone-number.js +10 -4
  211. package/esm/public/cli/commands/phone-numbers-module.js +8 -0
  212. package/esm/public/cli/commands/policy.js +34 -8
  213. package/esm/public/cli/commands/primary-key-constraint.js +18 -2
  214. package/esm/public/cli/commands/profiles-module.js +30 -0
  215. package/esm/public/cli/commands/provision-database-with-user.js +2 -2
  216. package/esm/public/cli/commands/ref.js +2 -0
  217. package/esm/public/cli/commands/relation-provision.js +58 -12
  218. package/esm/public/cli/commands/remove-node-at-path.js +2 -2
  219. package/esm/public/cli/commands/reset-password.js +2 -2
  220. package/esm/public/cli/commands/rls-module.js +20 -0
  221. package/esm/public/cli/commands/schema-grant.js +2 -0
  222. package/esm/public/cli/commands/schema.js +20 -4
  223. package/esm/public/cli/commands/secrets-module.js +6 -0
  224. package/esm/public/cli/commands/secure-table-provision.js +40 -10
  225. package/esm/public/cli/commands/send-account-deletion-email.js +2 -2
  226. package/esm/public/cli/commands/send-verification-email.js +2 -2
  227. package/esm/public/cli/commands/sessions-module.js +18 -0
  228. package/esm/public/cli/commands/set-and-commit.js +2 -2
  229. package/esm/public/cli/commands/set-data-at-path.js +2 -2
  230. package/esm/public/cli/commands/set-field-order.js +2 -2
  231. package/esm/public/cli/commands/set-password.js +2 -2
  232. package/esm/public/cli/commands/set-props-and-commit.js +2 -2
  233. package/esm/public/cli/commands/sign-in-one-time-token.js +2 -2
  234. package/esm/public/cli/commands/sign-in.js +2 -2
  235. package/esm/public/cli/commands/sign-out.js +2 -2
  236. package/esm/public/cli/commands/sign-up.js +2 -2
  237. package/esm/public/cli/commands/site-metadatum.js +6 -0
  238. package/esm/public/cli/commands/site-module.js +2 -2
  239. package/esm/public/cli/commands/site-theme.js +2 -2
  240. package/esm/public/cli/commands/site.js +14 -0
  241. package/esm/public/cli/commands/sql-migration.js +12 -1
  242. package/esm/public/cli/commands/store.js +2 -0
  243. package/esm/public/cli/commands/submit-invite-code.js +2 -2
  244. package/esm/public/cli/commands/submit-org-invite-code.js +2 -2
  245. package/esm/public/cli/commands/table-grant.js +8 -2
  246. package/esm/public/cli/commands/table-module.js +16 -4
  247. package/esm/public/cli/commands/table-template-module.js +12 -2
  248. package/esm/public/cli/commands/table.js +36 -8
  249. package/esm/public/cli/commands/trigger-function.js +2 -0
  250. package/esm/public/cli/commands/trigger.js +18 -2
  251. package/esm/public/cli/commands/unique-constraint.js +20 -2
  252. package/esm/public/cli/commands/update-node-at-path.js +2 -2
  253. package/esm/public/cli/commands/user-auth-module.js +48 -0
  254. package/esm/public/cli/commands/user.js +10 -0
  255. package/esm/public/cli/commands/users-module.js +10 -0
  256. package/esm/public/cli/commands/uuid-module.js +4 -0
  257. package/esm/public/cli/commands/verify-email.js +2 -2
  258. package/esm/public/cli/commands/verify-password.js +2 -2
  259. package/esm/public/cli/commands/verify-totp.js +2 -2
  260. package/esm/public/cli/commands/view-grant.js +10 -4
  261. package/esm/public/cli/commands/view-rule.js +4 -0
  262. package/esm/public/cli/commands/view-table.js +2 -0
  263. package/esm/public/cli/commands/view.js +34 -10
  264. package/esm/public/cli/index.js +2 -2
  265. package/esm/public/cli/utils.d.ts +13 -0
  266. package/esm/public/cli/utils.js +24 -0
  267. package/objects/cli/commands/commit.js +12 -0
  268. package/objects/cli/commands/freeze-objects.js +1 -1
  269. package/objects/cli/commands/get-all-record.js +1 -1
  270. package/objects/cli/commands/init-empty-repo.js +1 -1
  271. package/objects/cli/commands/insert-node-at-path.js +1 -1
  272. package/objects/cli/commands/object.js +12 -4
  273. package/objects/cli/commands/ref.js +2 -0
  274. package/objects/cli/commands/remove-node-at-path.js +1 -1
  275. package/objects/cli/commands/set-and-commit.js +1 -1
  276. package/objects/cli/commands/set-data-at-path.js +1 -1
  277. package/objects/cli/commands/set-props-and-commit.js +1 -1
  278. package/objects/cli/commands/store.js +2 -0
  279. package/objects/cli/commands/update-node-at-path.js +1 -1
  280. package/objects/cli/index.js +2 -2
  281. package/objects/cli/utils.d.ts +13 -0
  282. package/objects/cli/utils.js +25 -0
  283. package/package.json +6 -6
  284. package/public/cli/commands/api-module.js +2 -2
  285. package/public/cli/commands/api.js +10 -2
  286. package/public/cli/commands/app-achievement.js +4 -0
  287. package/public/cli/commands/app-admin-grant.js +6 -2
  288. package/public/cli/commands/app-grant.js +8 -2
  289. package/public/cli/commands/app-level-requirement.js +6 -0
  290. package/public/cli/commands/app-level.js +6 -0
  291. package/public/cli/commands/app-limit-default.js +2 -0
  292. package/public/cli/commands/app-limit.js +6 -0
  293. package/public/cli/commands/app-membership-default.js +12 -4
  294. package/public/cli/commands/app-membership.js +38 -14
  295. package/public/cli/commands/app-owner-grant.js +6 -2
  296. package/public/cli/commands/app-permission-default.js +2 -0
  297. package/public/cli/commands/app-permission.js +8 -0
  298. package/public/cli/commands/app-step.js +4 -0
  299. package/public/cli/commands/app.js +12 -0
  300. package/public/cli/commands/apply-rls.js +1 -1
  301. package/public/cli/commands/ast-migration.js +15 -4
  302. package/public/cli/commands/audit-log.js +10 -2
  303. package/public/cli/commands/bootstrap-user.js +1 -1
  304. package/public/cli/commands/check-constraint.js +22 -4
  305. package/public/cli/commands/check-password.js +1 -1
  306. package/public/cli/commands/claimed-invite.js +8 -2
  307. package/public/cli/commands/commit.js +12 -0
  308. package/public/cli/commands/confirm-delete-account.js +1 -1
  309. package/public/cli/commands/connected-account.js +8 -4
  310. package/public/cli/commands/connected-accounts-module.js +8 -0
  311. package/public/cli/commands/create-user-database.js +1 -1
  312. package/public/cli/commands/crypto-address.js +10 -4
  313. package/public/cli/commands/crypto-addresses-module.js +10 -0
  314. package/public/cli/commands/crypto-auth-module.js +22 -0
  315. package/public/cli/commands/database-provision-module.js +20 -4
  316. package/public/cli/commands/database.js +10 -0
  317. package/public/cli/commands/default-privilege.js +6 -2
  318. package/public/cli/commands/denormalized-table-field.js +16 -4
  319. package/public/cli/commands/domain.js +8 -0
  320. package/public/cli/commands/email.js +10 -4
  321. package/public/cli/commands/emails-module.js +8 -0
  322. package/public/cli/commands/encrypted-secrets-module.js +6 -0
  323. package/public/cli/commands/extend-token-expires.js +1 -1
  324. package/public/cli/commands/field-module.js +14 -2
  325. package/public/cli/commands/field.js +48 -12
  326. package/public/cli/commands/foreign-key-constraint.js +24 -2
  327. package/public/cli/commands/forgot-password.js +1 -1
  328. package/public/cli/commands/freeze-objects.js +1 -1
  329. package/public/cli/commands/full-text-search.js +2 -0
  330. package/public/cli/commands/get-all-record.js +1 -1
  331. package/public/cli/commands/hierarchy-module.js +30 -0
  332. package/public/cli/commands/index.js +32 -8
  333. package/public/cli/commands/init-empty-repo.js +1 -1
  334. package/public/cli/commands/insert-node-at-path.js +1 -1
  335. package/public/cli/commands/invite.js +24 -6
  336. package/public/cli/commands/invites-module.js +22 -0
  337. package/public/cli/commands/levels-module.js +46 -0
  338. package/public/cli/commands/limits-module.js +30 -0
  339. package/public/cli/commands/membership-types-module.js +6 -0
  340. package/public/cli/commands/memberships-module.js +56 -0
  341. package/public/cli/commands/node-type-registry.js +10 -2
  342. package/public/cli/commands/object.js +12 -4
  343. package/public/cli/commands/one-time-token.js +1 -1
  344. package/public/cli/commands/org-admin-grant.js +6 -2
  345. package/public/cli/commands/org-chart-edge-grant.js +10 -2
  346. package/public/cli/commands/org-chart-edge.js +6 -0
  347. package/public/cli/commands/org-claimed-invite.js +8 -2
  348. package/public/cli/commands/org-grant.js +8 -2
  349. package/public/cli/commands/org-invite.js +26 -6
  350. package/public/cli/commands/org-limit-default.js +2 -0
  351. package/public/cli/commands/org-limit.js +6 -0
  352. package/public/cli/commands/org-member.js +4 -2
  353. package/public/cli/commands/org-membership-default.js +16 -6
  354. package/public/cli/commands/org-membership.js +34 -12
  355. package/public/cli/commands/org-owner-grant.js +6 -2
  356. package/public/cli/commands/org-permission-default.js +2 -0
  357. package/public/cli/commands/org-permission.js +8 -0
  358. package/public/cli/commands/permissions-module.js +28 -0
  359. package/public/cli/commands/phone-number.js +10 -4
  360. package/public/cli/commands/phone-numbers-module.js +8 -0
  361. package/public/cli/commands/policy.js +34 -8
  362. package/public/cli/commands/primary-key-constraint.js +18 -2
  363. package/public/cli/commands/profiles-module.js +30 -0
  364. package/public/cli/commands/provision-database-with-user.js +1 -1
  365. package/public/cli/commands/ref.js +2 -0
  366. package/public/cli/commands/relation-provision.js +58 -12
  367. package/public/cli/commands/remove-node-at-path.js +1 -1
  368. package/public/cli/commands/reset-password.js +1 -1
  369. package/public/cli/commands/rls-module.js +20 -0
  370. package/public/cli/commands/schema-grant.js +2 -0
  371. package/public/cli/commands/schema.js +20 -4
  372. package/public/cli/commands/secrets-module.js +6 -0
  373. package/public/cli/commands/secure-table-provision.js +40 -10
  374. package/public/cli/commands/send-account-deletion-email.js +1 -1
  375. package/public/cli/commands/send-verification-email.js +1 -1
  376. package/public/cli/commands/sessions-module.js +18 -0
  377. package/public/cli/commands/set-and-commit.js +1 -1
  378. package/public/cli/commands/set-data-at-path.js +1 -1
  379. package/public/cli/commands/set-field-order.js +1 -1
  380. package/public/cli/commands/set-password.js +1 -1
  381. package/public/cli/commands/set-props-and-commit.js +1 -1
  382. package/public/cli/commands/sign-in-one-time-token.js +1 -1
  383. package/public/cli/commands/sign-in.js +1 -1
  384. package/public/cli/commands/sign-out.js +1 -1
  385. package/public/cli/commands/sign-up.js +1 -1
  386. package/public/cli/commands/site-metadatum.js +6 -0
  387. package/public/cli/commands/site-module.js +2 -2
  388. package/public/cli/commands/site-theme.js +2 -2
  389. package/public/cli/commands/site.js +14 -0
  390. package/public/cli/commands/sql-migration.js +12 -1
  391. package/public/cli/commands/store.js +2 -0
  392. package/public/cli/commands/submit-invite-code.js +1 -1
  393. package/public/cli/commands/submit-org-invite-code.js +1 -1
  394. package/public/cli/commands/table-grant.js +8 -2
  395. package/public/cli/commands/table-module.js +16 -4
  396. package/public/cli/commands/table-template-module.js +12 -2
  397. package/public/cli/commands/table.js +36 -8
  398. package/public/cli/commands/trigger-function.js +2 -0
  399. package/public/cli/commands/trigger.js +18 -2
  400. package/public/cli/commands/unique-constraint.js +20 -2
  401. package/public/cli/commands/update-node-at-path.js +1 -1
  402. package/public/cli/commands/user-auth-module.js +48 -0
  403. package/public/cli/commands/user.js +10 -0
  404. package/public/cli/commands/users-module.js +10 -0
  405. package/public/cli/commands/uuid-module.js +4 -0
  406. package/public/cli/commands/verify-email.js +1 -1
  407. package/public/cli/commands/verify-password.js +1 -1
  408. package/public/cli/commands/verify-totp.js +1 -1
  409. package/public/cli/commands/view-grant.js +10 -4
  410. package/public/cli/commands/view-rule.js +4 -0
  411. package/public/cli/commands/view-table.js +2 -0
  412. package/public/cli/commands/view.js +34 -10
  413. package/public/cli/index.js +2 -2
  414. package/public/cli/utils.d.ts +13 -0
  415. package/public/cli/utils.js +25 -0
@@ -208,138 +208,161 @@ async function handleCreate(argv, prompter) {
208
208
  name: 'fieldName',
209
209
  message: 'fieldName',
210
210
  required: false,
211
+ skipPrompt: true,
211
212
  },
212
213
  {
213
214
  type: 'text',
214
215
  name: 'deleteAction',
215
216
  message: 'deleteAction',
216
217
  required: false,
218
+ skipPrompt: true,
217
219
  },
218
220
  {
219
- type: 'text',
221
+ type: 'boolean',
220
222
  name: 'isRequired',
221
223
  message: 'isRequired',
222
224
  required: false,
225
+ skipPrompt: true,
223
226
  },
224
227
  {
225
228
  type: 'text',
226
229
  name: 'junctionTableId',
227
230
  message: 'junctionTableId',
228
231
  required: false,
232
+ skipPrompt: true,
229
233
  },
230
234
  {
231
235
  type: 'text',
232
236
  name: 'junctionTableName',
233
237
  message: 'junctionTableName',
234
238
  required: false,
239
+ skipPrompt: true,
235
240
  },
236
241
  {
237
242
  type: 'text',
238
243
  name: 'junctionSchemaId',
239
244
  message: 'junctionSchemaId',
240
245
  required: false,
246
+ skipPrompt: true,
241
247
  },
242
248
  {
243
249
  type: 'text',
244
250
  name: 'sourceFieldName',
245
251
  message: 'sourceFieldName',
246
252
  required: false,
253
+ skipPrompt: true,
247
254
  },
248
255
  {
249
256
  type: 'text',
250
257
  name: 'targetFieldName',
251
258
  message: 'targetFieldName',
252
259
  required: false,
260
+ skipPrompt: true,
253
261
  },
254
262
  {
255
- type: 'text',
263
+ type: 'boolean',
256
264
  name: 'useCompositeKey',
257
265
  message: 'useCompositeKey',
258
266
  required: false,
267
+ skipPrompt: true,
259
268
  },
260
269
  {
261
270
  type: 'text',
262
271
  name: 'nodeType',
263
272
  message: 'nodeType',
264
273
  required: false,
274
+ skipPrompt: true,
265
275
  },
266
276
  {
267
- type: 'text',
277
+ type: 'json',
268
278
  name: 'nodeData',
269
279
  message: 'nodeData',
270
280
  required: false,
281
+ skipPrompt: true,
271
282
  },
272
283
  {
273
284
  type: 'text',
274
285
  name: 'grantRoles',
275
286
  message: 'grantRoles',
276
287
  required: false,
288
+ skipPrompt: true,
277
289
  },
278
290
  {
279
- type: 'text',
291
+ type: 'json',
280
292
  name: 'grantPrivileges',
281
293
  message: 'grantPrivileges',
282
294
  required: false,
295
+ skipPrompt: true,
283
296
  },
284
297
  {
285
298
  type: 'text',
286
299
  name: 'policyType',
287
300
  message: 'policyType',
288
301
  required: false,
302
+ skipPrompt: true,
289
303
  },
290
304
  {
291
305
  type: 'text',
292
306
  name: 'policyPrivileges',
293
307
  message: 'policyPrivileges',
294
308
  required: false,
309
+ skipPrompt: true,
295
310
  },
296
311
  {
297
312
  type: 'text',
298
313
  name: 'policyRole',
299
314
  message: 'policyRole',
300
315
  required: false,
316
+ skipPrompt: true,
301
317
  },
302
318
  {
303
- type: 'text',
319
+ type: 'boolean',
304
320
  name: 'policyPermissive',
305
321
  message: 'policyPermissive',
306
322
  required: false,
323
+ skipPrompt: true,
307
324
  },
308
325
  {
309
326
  type: 'text',
310
327
  name: 'policyName',
311
328
  message: 'policyName',
312
329
  required: false,
330
+ skipPrompt: true,
313
331
  },
314
332
  {
315
- type: 'text',
333
+ type: 'json',
316
334
  name: 'policyData',
317
335
  message: 'policyData',
318
336
  required: false,
337
+ skipPrompt: true,
319
338
  },
320
339
  {
321
340
  type: 'text',
322
341
  name: 'outFieldId',
323
342
  message: 'outFieldId',
324
343
  required: false,
344
+ skipPrompt: true,
325
345
  },
326
346
  {
327
347
  type: 'text',
328
348
  name: 'outJunctionTableId',
329
349
  message: 'outJunctionTableId',
330
350
  required: false,
351
+ skipPrompt: true,
331
352
  },
332
353
  {
333
354
  type: 'text',
334
355
  name: 'outSourceFieldId',
335
356
  message: 'outSourceFieldId',
336
357
  required: false,
358
+ skipPrompt: true,
337
359
  },
338
360
  {
339
361
  type: 'text',
340
362
  name: 'outTargetFieldId',
341
363
  message: 'outTargetFieldId',
342
364
  required: false,
365
+ skipPrompt: true,
343
366
  },
344
367
  ]);
345
368
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -456,138 +479,161 @@ async function handleUpdate(argv, prompter) {
456
479
  name: 'fieldName',
457
480
  message: 'fieldName',
458
481
  required: false,
482
+ skipPrompt: true,
459
483
  },
460
484
  {
461
485
  type: 'text',
462
486
  name: 'deleteAction',
463
487
  message: 'deleteAction',
464
488
  required: false,
489
+ skipPrompt: true,
465
490
  },
466
491
  {
467
- type: 'text',
492
+ type: 'boolean',
468
493
  name: 'isRequired',
469
494
  message: 'isRequired',
470
495
  required: false,
496
+ skipPrompt: true,
471
497
  },
472
498
  {
473
499
  type: 'text',
474
500
  name: 'junctionTableId',
475
501
  message: 'junctionTableId',
476
502
  required: false,
503
+ skipPrompt: true,
477
504
  },
478
505
  {
479
506
  type: 'text',
480
507
  name: 'junctionTableName',
481
508
  message: 'junctionTableName',
482
509
  required: false,
510
+ skipPrompt: true,
483
511
  },
484
512
  {
485
513
  type: 'text',
486
514
  name: 'junctionSchemaId',
487
515
  message: 'junctionSchemaId',
488
516
  required: false,
517
+ skipPrompt: true,
489
518
  },
490
519
  {
491
520
  type: 'text',
492
521
  name: 'sourceFieldName',
493
522
  message: 'sourceFieldName',
494
523
  required: false,
524
+ skipPrompt: true,
495
525
  },
496
526
  {
497
527
  type: 'text',
498
528
  name: 'targetFieldName',
499
529
  message: 'targetFieldName',
500
530
  required: false,
531
+ skipPrompt: true,
501
532
  },
502
533
  {
503
- type: 'text',
534
+ type: 'boolean',
504
535
  name: 'useCompositeKey',
505
536
  message: 'useCompositeKey',
506
537
  required: false,
538
+ skipPrompt: true,
507
539
  },
508
540
  {
509
541
  type: 'text',
510
542
  name: 'nodeType',
511
543
  message: 'nodeType',
512
544
  required: false,
545
+ skipPrompt: true,
513
546
  },
514
547
  {
515
- type: 'text',
548
+ type: 'json',
516
549
  name: 'nodeData',
517
550
  message: 'nodeData',
518
551
  required: false,
552
+ skipPrompt: true,
519
553
  },
520
554
  {
521
555
  type: 'text',
522
556
  name: 'grantRoles',
523
557
  message: 'grantRoles',
524
558
  required: false,
559
+ skipPrompt: true,
525
560
  },
526
561
  {
527
- type: 'text',
562
+ type: 'json',
528
563
  name: 'grantPrivileges',
529
564
  message: 'grantPrivileges',
530
565
  required: false,
566
+ skipPrompt: true,
531
567
  },
532
568
  {
533
569
  type: 'text',
534
570
  name: 'policyType',
535
571
  message: 'policyType',
536
572
  required: false,
573
+ skipPrompt: true,
537
574
  },
538
575
  {
539
576
  type: 'text',
540
577
  name: 'policyPrivileges',
541
578
  message: 'policyPrivileges',
542
579
  required: false,
580
+ skipPrompt: true,
543
581
  },
544
582
  {
545
583
  type: 'text',
546
584
  name: 'policyRole',
547
585
  message: 'policyRole',
548
586
  required: false,
587
+ skipPrompt: true,
549
588
  },
550
589
  {
551
- type: 'text',
590
+ type: 'boolean',
552
591
  name: 'policyPermissive',
553
592
  message: 'policyPermissive',
554
593
  required: false,
594
+ skipPrompt: true,
555
595
  },
556
596
  {
557
597
  type: 'text',
558
598
  name: 'policyName',
559
599
  message: 'policyName',
560
600
  required: false,
601
+ skipPrompt: true,
561
602
  },
562
603
  {
563
- type: 'text',
604
+ type: 'json',
564
605
  name: 'policyData',
565
606
  message: 'policyData',
566
607
  required: false,
608
+ skipPrompt: true,
567
609
  },
568
610
  {
569
611
  type: 'text',
570
612
  name: 'outFieldId',
571
613
  message: 'outFieldId',
572
614
  required: false,
615
+ skipPrompt: true,
573
616
  },
574
617
  {
575
618
  type: 'text',
576
619
  name: 'outJunctionTableId',
577
620
  message: 'outJunctionTableId',
578
621
  required: false,
622
+ skipPrompt: true,
579
623
  },
580
624
  {
581
625
  type: 'text',
582
626
  name: 'outSourceFieldId',
583
627
  message: 'outSourceFieldId',
584
628
  required: false,
629
+ skipPrompt: true,
585
630
  },
586
631
  {
587
632
  type: 'text',
588
633
  name: 'outTargetFieldId',
589
634
  message: 'outTargetFieldId',
590
635
  required: false,
636
+ skipPrompt: true,
591
637
  },
592
638
  ]);
593
639
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .removeNodeAtPath(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .resetPassword(parsedAnswers, {
@@ -142,60 +142,70 @@ async function handleCreate(argv, prompter) {
142
142
  name: 'apiId',
143
143
  message: 'apiId',
144
144
  required: false,
145
+ skipPrompt: true,
145
146
  },
146
147
  {
147
148
  type: 'text',
148
149
  name: 'schemaId',
149
150
  message: 'schemaId',
150
151
  required: false,
152
+ skipPrompt: true,
151
153
  },
152
154
  {
153
155
  type: 'text',
154
156
  name: 'privateSchemaId',
155
157
  message: 'privateSchemaId',
156
158
  required: false,
159
+ skipPrompt: true,
157
160
  },
158
161
  {
159
162
  type: 'text',
160
163
  name: 'sessionCredentialsTableId',
161
164
  message: 'sessionCredentialsTableId',
162
165
  required: false,
166
+ skipPrompt: true,
163
167
  },
164
168
  {
165
169
  type: 'text',
166
170
  name: 'sessionsTableId',
167
171
  message: 'sessionsTableId',
168
172
  required: false,
173
+ skipPrompt: true,
169
174
  },
170
175
  {
171
176
  type: 'text',
172
177
  name: 'usersTableId',
173
178
  message: 'usersTableId',
174
179
  required: false,
180
+ skipPrompt: true,
175
181
  },
176
182
  {
177
183
  type: 'text',
178
184
  name: 'authenticate',
179
185
  message: 'authenticate',
180
186
  required: false,
187
+ skipPrompt: true,
181
188
  },
182
189
  {
183
190
  type: 'text',
184
191
  name: 'authenticateStrict',
185
192
  message: 'authenticateStrict',
186
193
  required: false,
194
+ skipPrompt: true,
187
195
  },
188
196
  {
189
197
  type: 'text',
190
198
  name: 'currentRole',
191
199
  message: 'currentRole',
192
200
  required: false,
201
+ skipPrompt: true,
193
202
  },
194
203
  {
195
204
  type: 'text',
196
205
  name: 'currentRoleId',
197
206
  message: 'currentRoleId',
198
207
  required: false,
208
+ skipPrompt: true,
199
209
  },
200
210
  ]);
201
211
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -262,60 +272,70 @@ async function handleUpdate(argv, prompter) {
262
272
  name: 'apiId',
263
273
  message: 'apiId',
264
274
  required: false,
275
+ skipPrompt: true,
265
276
  },
266
277
  {
267
278
  type: 'text',
268
279
  name: 'schemaId',
269
280
  message: 'schemaId',
270
281
  required: false,
282
+ skipPrompt: true,
271
283
  },
272
284
  {
273
285
  type: 'text',
274
286
  name: 'privateSchemaId',
275
287
  message: 'privateSchemaId',
276
288
  required: false,
289
+ skipPrompt: true,
277
290
  },
278
291
  {
279
292
  type: 'text',
280
293
  name: 'sessionCredentialsTableId',
281
294
  message: 'sessionCredentialsTableId',
282
295
  required: false,
296
+ skipPrompt: true,
283
297
  },
284
298
  {
285
299
  type: 'text',
286
300
  name: 'sessionsTableId',
287
301
  message: 'sessionsTableId',
288
302
  required: false,
303
+ skipPrompt: true,
289
304
  },
290
305
  {
291
306
  type: 'text',
292
307
  name: 'usersTableId',
293
308
  message: 'usersTableId',
294
309
  required: false,
310
+ skipPrompt: true,
295
311
  },
296
312
  {
297
313
  type: 'text',
298
314
  name: 'authenticate',
299
315
  message: 'authenticate',
300
316
  required: false,
317
+ skipPrompt: true,
301
318
  },
302
319
  {
303
320
  type: 'text',
304
321
  name: 'authenticateStrict',
305
322
  message: 'authenticateStrict',
306
323
  required: false,
324
+ skipPrompt: true,
307
325
  },
308
326
  {
309
327
  type: 'text',
310
328
  name: 'currentRole',
311
329
  message: 'currentRole',
312
330
  required: false,
331
+ skipPrompt: true,
313
332
  },
314
333
  {
315
334
  type: 'text',
316
335
  name: 'currentRoleId',
317
336
  message: 'currentRoleId',
318
337
  required: false,
338
+ skipPrompt: true,
319
339
  },
320
340
  ]);
321
341
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -118,6 +118,7 @@ async function handleCreate(argv, prompter) {
118
118
  name: 'databaseId',
119
119
  message: 'databaseId',
120
120
  required: false,
121
+ skipPrompt: true,
121
122
  },
122
123
  {
123
124
  type: 'text',
@@ -176,6 +177,7 @@ async function handleUpdate(argv, prompter) {
176
177
  name: 'databaseId',
177
178
  message: 'databaseId',
178
179
  required: false,
180
+ skipPrompt: true,
179
181
  },
180
182
  {
181
183
  type: 'text',
@@ -160,48 +160,56 @@ async function handleCreate(argv, prompter) {
160
160
  name: 'label',
161
161
  message: 'label',
162
162
  required: false,
163
+ skipPrompt: true,
163
164
  },
164
165
  {
165
166
  type: 'text',
166
167
  name: 'description',
167
168
  message: 'description',
168
169
  required: false,
170
+ skipPrompt: true,
169
171
  },
170
172
  {
171
- type: 'text',
173
+ type: 'json',
172
174
  name: 'smartTags',
173
175
  message: 'smartTags',
174
176
  required: false,
177
+ skipPrompt: true,
175
178
  },
176
179
  {
177
180
  type: 'text',
178
181
  name: 'category',
179
182
  message: 'category',
180
183
  required: false,
184
+ skipPrompt: true,
181
185
  },
182
186
  {
183
187
  type: 'text',
184
188
  name: 'module',
185
189
  message: 'module',
186
190
  required: false,
191
+ skipPrompt: true,
187
192
  },
188
193
  {
189
194
  type: 'text',
190
195
  name: 'scope',
191
196
  message: 'scope',
192
197
  required: false,
198
+ skipPrompt: true,
193
199
  },
194
200
  {
195
201
  type: 'text',
196
202
  name: 'tags',
197
203
  message: 'tags',
198
204
  required: false,
205
+ skipPrompt: true,
199
206
  },
200
207
  {
201
- type: 'text',
208
+ type: 'boolean',
202
209
  name: 'isPublic',
203
210
  message: 'isPublic',
204
211
  required: false,
212
+ skipPrompt: true,
205
213
  },
206
214
  ]);
207
215
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -282,48 +290,56 @@ async function handleUpdate(argv, prompter) {
282
290
  name: 'label',
283
291
  message: 'label',
284
292
  required: false,
293
+ skipPrompt: true,
285
294
  },
286
295
  {
287
296
  type: 'text',
288
297
  name: 'description',
289
298
  message: 'description',
290
299
  required: false,
300
+ skipPrompt: true,
291
301
  },
292
302
  {
293
- type: 'text',
303
+ type: 'json',
294
304
  name: 'smartTags',
295
305
  message: 'smartTags',
296
306
  required: false,
307
+ skipPrompt: true,
297
308
  },
298
309
  {
299
310
  type: 'text',
300
311
  name: 'category',
301
312
  message: 'category',
302
313
  required: false,
314
+ skipPrompt: true,
303
315
  },
304
316
  {
305
317
  type: 'text',
306
318
  name: 'module',
307
319
  message: 'module',
308
320
  required: false,
321
+ skipPrompt: true,
309
322
  },
310
323
  {
311
324
  type: 'text',
312
325
  name: 'scope',
313
326
  message: 'scope',
314
327
  required: false,
328
+ skipPrompt: true,
315
329
  },
316
330
  {
317
331
  type: 'text',
318
332
  name: 'tags',
319
333
  message: 'tags',
320
334
  required: false,
335
+ skipPrompt: true,
321
336
  },
322
337
  {
323
- type: 'text',
338
+ type: 'boolean',
324
339
  name: 'isPublic',
325
340
  message: 'isPublic',
326
341
  required: false,
342
+ skipPrompt: true,
327
343
  },
328
344
  ]);
329
345
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -121,18 +121,21 @@ async function handleCreate(argv, prompter) {
121
121
  name: 'schemaId',
122
122
  message: 'schemaId',
123
123
  required: false,
124
+ skipPrompt: true,
124
125
  },
125
126
  {
126
127
  type: 'text',
127
128
  name: 'tableId',
128
129
  message: 'tableId',
129
130
  required: false,
131
+ skipPrompt: true,
130
132
  },
131
133
  {
132
134
  type: 'text',
133
135
  name: 'tableName',
134
136
  message: 'tableName',
135
137
  required: false,
138
+ skipPrompt: true,
136
139
  },
137
140
  ]);
138
141
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -185,18 +188,21 @@ async function handleUpdate(argv, prompter) {
185
188
  name: 'schemaId',
186
189
  message: 'schemaId',
187
190
  required: false,
191
+ skipPrompt: true,
188
192
  },
189
193
  {
190
194
  type: 'text',
191
195
  name: 'tableId',
192
196
  message: 'tableId',
193
197
  required: false,
198
+ skipPrompt: true,
194
199
  },
195
200
  {
196
201
  type: 'text',
197
202
  name: 'tableName',
198
203
  message: 'tableName',
199
204
  required: false,
205
+ skipPrompt: true,
200
206
  },
201
207
  ]);
202
208
  const answers = coerceAnswers(rawAnswers, fieldSchema);