@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
@@ -116,22 +116,25 @@ async function handleCreate(argv, prompter) {
116
116
  try {
117
117
  const rawAnswers = await prompter.prompt(argv, [
118
118
  {
119
- type: 'text',
119
+ type: 'json',
120
120
  name: 'data',
121
121
  message: 'data',
122
122
  required: false,
123
+ skipPrompt: true,
123
124
  },
124
125
  {
125
126
  type: 'text',
126
127
  name: 'senderId',
127
128
  message: 'senderId',
128
129
  required: false,
130
+ skipPrompt: true,
129
131
  },
130
132
  {
131
133
  type: 'text',
132
134
  name: 'receiverId',
133
135
  message: 'receiverId',
134
136
  required: false,
137
+ skipPrompt: true,
135
138
  },
136
139
  ]);
137
140
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -174,22 +177,25 @@ async function handleUpdate(argv, prompter) {
174
177
  required: true,
175
178
  },
176
179
  {
177
- type: 'text',
180
+ type: 'json',
178
181
  name: 'data',
179
182
  message: 'data',
180
183
  required: false,
184
+ skipPrompt: true,
181
185
  },
182
186
  {
183
187
  type: 'text',
184
188
  name: 'senderId',
185
189
  message: 'senderId',
186
190
  required: false,
191
+ skipPrompt: true,
187
192
  },
188
193
  {
189
194
  type: 'text',
190
195
  name: 'receiverId',
191
196
  message: 'receiverId',
192
197
  required: false,
198
+ skipPrompt: true,
193
199
  },
194
200
  ]);
195
201
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -138,54 +138,63 @@ async function handleCreate(argv, prompter) {
138
138
  name: 'email',
139
139
  message: 'email',
140
140
  required: false,
141
+ skipPrompt: true,
141
142
  },
142
143
  {
143
144
  type: 'text',
144
145
  name: 'senderId',
145
146
  message: 'senderId',
146
147
  required: false,
148
+ skipPrompt: true,
147
149
  },
148
150
  {
149
151
  type: 'text',
150
152
  name: 'inviteToken',
151
153
  message: 'inviteToken',
152
154
  required: false,
155
+ skipPrompt: true,
153
156
  },
154
157
  {
155
- type: 'text',
158
+ type: 'boolean',
156
159
  name: 'inviteValid',
157
160
  message: 'inviteValid',
158
161
  required: false,
162
+ skipPrompt: true,
159
163
  },
160
164
  {
161
165
  type: 'text',
162
166
  name: 'inviteLimit',
163
167
  message: 'inviteLimit',
164
168
  required: false,
169
+ skipPrompt: true,
165
170
  },
166
171
  {
167
172
  type: 'text',
168
173
  name: 'inviteCount',
169
174
  message: 'inviteCount',
170
175
  required: false,
176
+ skipPrompt: true,
171
177
  },
172
178
  {
173
- type: 'text',
179
+ type: 'boolean',
174
180
  name: 'multiple',
175
181
  message: 'multiple',
176
182
  required: false,
183
+ skipPrompt: true,
177
184
  },
178
185
  {
179
- type: 'text',
186
+ type: 'json',
180
187
  name: 'data',
181
188
  message: 'data',
182
189
  required: false,
190
+ skipPrompt: true,
183
191
  },
184
192
  {
185
193
  type: 'text',
186
194
  name: 'expiresAt',
187
195
  message: 'expiresAt',
188
196
  required: false,
197
+ skipPrompt: true,
189
198
  },
190
199
  ]);
191
200
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -244,54 +253,63 @@ async function handleUpdate(argv, prompter) {
244
253
  name: 'email',
245
254
  message: 'email',
246
255
  required: false,
256
+ skipPrompt: true,
247
257
  },
248
258
  {
249
259
  type: 'text',
250
260
  name: 'senderId',
251
261
  message: 'senderId',
252
262
  required: false,
263
+ skipPrompt: true,
253
264
  },
254
265
  {
255
266
  type: 'text',
256
267
  name: 'inviteToken',
257
268
  message: 'inviteToken',
258
269
  required: false,
270
+ skipPrompt: true,
259
271
  },
260
272
  {
261
- type: 'text',
273
+ type: 'boolean',
262
274
  name: 'inviteValid',
263
275
  message: 'inviteValid',
264
276
  required: false,
277
+ skipPrompt: true,
265
278
  },
266
279
  {
267
280
  type: 'text',
268
281
  name: 'inviteLimit',
269
282
  message: 'inviteLimit',
270
283
  required: false,
284
+ skipPrompt: true,
271
285
  },
272
286
  {
273
287
  type: 'text',
274
288
  name: 'inviteCount',
275
289
  message: 'inviteCount',
276
290
  required: false,
291
+ skipPrompt: true,
277
292
  },
278
293
  {
279
- type: 'text',
294
+ type: 'boolean',
280
295
  name: 'multiple',
281
296
  message: 'multiple',
282
297
  required: false,
298
+ skipPrompt: true,
283
299
  },
284
300
  {
285
- type: 'text',
301
+ type: 'json',
286
302
  name: 'data',
287
303
  message: 'data',
288
304
  required: false,
305
+ skipPrompt: true,
289
306
  },
290
307
  {
291
308
  type: 'text',
292
309
  name: 'expiresAt',
293
310
  message: 'expiresAt',
294
311
  required: false,
312
+ skipPrompt: true,
295
313
  },
296
314
  ]);
297
315
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -119,10 +119,11 @@ async function handleCreate(argv, prompter) {
119
119
  try {
120
120
  const rawAnswers = await prompter.prompt(argv, [
121
121
  {
122
- type: 'text',
122
+ type: 'boolean',
123
123
  name: 'isGrant',
124
124
  message: 'isGrant',
125
125
  required: false,
126
+ skipPrompt: true,
126
127
  },
127
128
  {
128
129
  type: 'text',
@@ -141,6 +142,7 @@ async function handleCreate(argv, prompter) {
141
142
  name: 'grantorId',
142
143
  message: 'grantorId',
143
144
  required: false,
145
+ skipPrompt: true,
144
146
  },
145
147
  ]);
146
148
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -185,10 +187,11 @@ async function handleUpdate(argv, prompter) {
185
187
  required: true,
186
188
  },
187
189
  {
188
- type: 'text',
190
+ type: 'boolean',
189
191
  name: 'isGrant',
190
192
  message: 'isGrant',
191
193
  required: false,
194
+ skipPrompt: true,
192
195
  },
193
196
  {
194
197
  type: 'text',
@@ -207,6 +210,7 @@ async function handleUpdate(argv, prompter) {
207
210
  name: 'grantorId',
208
211
  message: 'grantorId',
209
212
  required: false,
213
+ skipPrompt: true,
210
214
  },
211
215
  ]);
212
216
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -141,6 +141,7 @@ async function handleCreate(argv, prompter) {
141
141
  name: 'parentId',
142
142
  message: 'parentId',
143
143
  required: false,
144
+ skipPrompt: true,
144
145
  },
145
146
  {
146
147
  type: 'text',
@@ -149,22 +150,25 @@ async function handleCreate(argv, prompter) {
149
150
  required: true,
150
151
  },
151
152
  {
152
- type: 'text',
153
+ type: 'boolean',
153
154
  name: 'isGrant',
154
155
  message: 'isGrant',
155
156
  required: false,
157
+ skipPrompt: true,
156
158
  },
157
159
  {
158
160
  type: 'text',
159
161
  name: 'positionTitle',
160
162
  message: 'positionTitle',
161
163
  required: false,
164
+ skipPrompt: true,
162
165
  },
163
166
  {
164
167
  type: 'text',
165
168
  name: 'positionLevel',
166
169
  message: 'positionLevel',
167
170
  required: false,
171
+ skipPrompt: true,
168
172
  },
169
173
  ]);
170
174
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -230,6 +234,7 @@ async function handleUpdate(argv, prompter) {
230
234
  name: 'parentId',
231
235
  message: 'parentId',
232
236
  required: false,
237
+ skipPrompt: true,
233
238
  },
234
239
  {
235
240
  type: 'text',
@@ -238,22 +243,25 @@ async function handleUpdate(argv, prompter) {
238
243
  required: false,
239
244
  },
240
245
  {
241
- type: 'text',
246
+ type: 'boolean',
242
247
  name: 'isGrant',
243
248
  message: 'isGrant',
244
249
  required: false,
250
+ skipPrompt: true,
245
251
  },
246
252
  {
247
253
  type: 'text',
248
254
  name: 'positionTitle',
249
255
  message: 'positionTitle',
250
256
  required: false,
257
+ skipPrompt: true,
251
258
  },
252
259
  {
253
260
  type: 'text',
254
261
  name: 'positionLevel',
255
262
  message: 'positionLevel',
256
263
  required: false,
264
+ skipPrompt: true,
257
265
  },
258
266
  ]);
259
267
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -138,18 +138,21 @@ async function handleCreate(argv, prompter) {
138
138
  name: 'parentId',
139
139
  message: 'parentId',
140
140
  required: false,
141
+ skipPrompt: true,
141
142
  },
142
143
  {
143
144
  type: 'text',
144
145
  name: 'positionTitle',
145
146
  message: 'positionTitle',
146
147
  required: false,
148
+ skipPrompt: true,
147
149
  },
148
150
  {
149
151
  type: 'text',
150
152
  name: 'positionLevel',
151
153
  message: 'positionLevel',
152
154
  required: false,
155
+ skipPrompt: true,
153
156
  },
154
157
  ]);
155
158
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -212,18 +215,21 @@ async function handleUpdate(argv, prompter) {
212
215
  name: 'parentId',
213
216
  message: 'parentId',
214
217
  required: false,
218
+ skipPrompt: true,
215
219
  },
216
220
  {
217
221
  type: 'text',
218
222
  name: 'positionTitle',
219
223
  message: 'positionTitle',
220
224
  required: false,
225
+ skipPrompt: true,
221
226
  },
222
227
  {
223
228
  type: 'text',
224
229
  name: 'positionLevel',
225
230
  message: 'positionLevel',
226
231
  required: false,
232
+ skipPrompt: true,
227
233
  },
228
234
  ]);
229
235
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -119,22 +119,25 @@ async function handleCreate(argv, prompter) {
119
119
  try {
120
120
  const rawAnswers = await prompter.prompt(argv, [
121
121
  {
122
- type: 'text',
122
+ type: 'json',
123
123
  name: 'data',
124
124
  message: 'data',
125
125
  required: false,
126
+ skipPrompt: true,
126
127
  },
127
128
  {
128
129
  type: 'text',
129
130
  name: 'senderId',
130
131
  message: 'senderId',
131
132
  required: false,
133
+ skipPrompt: true,
132
134
  },
133
135
  {
134
136
  type: 'text',
135
137
  name: 'receiverId',
136
138
  message: 'receiverId',
137
139
  required: false,
140
+ skipPrompt: true,
138
141
  },
139
142
  {
140
143
  type: 'text',
@@ -185,22 +188,25 @@ async function handleUpdate(argv, prompter) {
185
188
  required: true,
186
189
  },
187
190
  {
188
- type: 'text',
191
+ type: 'json',
189
192
  name: 'data',
190
193
  message: 'data',
191
194
  required: false,
195
+ skipPrompt: true,
192
196
  },
193
197
  {
194
198
  type: 'text',
195
199
  name: 'senderId',
196
200
  message: 'senderId',
197
201
  required: false,
202
+ skipPrompt: true,
198
203
  },
199
204
  {
200
205
  type: 'text',
201
206
  name: 'receiverId',
202
207
  message: 'receiverId',
203
208
  required: false,
209
+ skipPrompt: true,
204
210
  },
205
211
  {
206
212
  type: 'text',
@@ -126,12 +126,14 @@ async function handleCreate(argv, prompter) {
126
126
  name: 'permissions',
127
127
  message: 'permissions',
128
128
  required: false,
129
+ skipPrompt: true,
129
130
  },
130
131
  {
131
- type: 'text',
132
+ type: 'boolean',
132
133
  name: 'isGrant',
133
134
  message: 'isGrant',
134
135
  required: false,
136
+ skipPrompt: true,
135
137
  },
136
138
  {
137
139
  type: 'text',
@@ -150,6 +152,7 @@ async function handleCreate(argv, prompter) {
150
152
  name: 'grantorId',
151
153
  message: 'grantorId',
152
154
  required: false,
155
+ skipPrompt: true,
153
156
  },
154
157
  ]);
155
158
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -200,12 +203,14 @@ async function handleUpdate(argv, prompter) {
200
203
  name: 'permissions',
201
204
  message: 'permissions',
202
205
  required: false,
206
+ skipPrompt: true,
203
207
  },
204
208
  {
205
- type: 'text',
209
+ type: 'boolean',
206
210
  name: 'isGrant',
207
211
  message: 'isGrant',
208
212
  required: false,
213
+ skipPrompt: true,
209
214
  },
210
215
  {
211
216
  type: 'text',
@@ -224,6 +229,7 @@ async function handleUpdate(argv, prompter) {
224
229
  name: 'grantorId',
225
230
  message: 'grantorId',
226
231
  required: false,
232
+ skipPrompt: true,
227
233
  },
228
234
  ]);
229
235
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -144,60 +144,70 @@ async function handleCreate(argv, prompter) {
144
144
  name: 'email',
145
145
  message: 'email',
146
146
  required: false,
147
+ skipPrompt: true,
147
148
  },
148
149
  {
149
150
  type: 'text',
150
151
  name: 'senderId',
151
152
  message: 'senderId',
152
153
  required: false,
154
+ skipPrompt: true,
153
155
  },
154
156
  {
155
157
  type: 'text',
156
158
  name: 'receiverId',
157
159
  message: 'receiverId',
158
160
  required: false,
161
+ skipPrompt: true,
159
162
  },
160
163
  {
161
164
  type: 'text',
162
165
  name: 'inviteToken',
163
166
  message: 'inviteToken',
164
167
  required: false,
168
+ skipPrompt: true,
165
169
  },
166
170
  {
167
- type: 'text',
171
+ type: 'boolean',
168
172
  name: 'inviteValid',
169
173
  message: 'inviteValid',
170
174
  required: false,
175
+ skipPrompt: true,
171
176
  },
172
177
  {
173
178
  type: 'text',
174
179
  name: 'inviteLimit',
175
180
  message: 'inviteLimit',
176
181
  required: false,
182
+ skipPrompt: true,
177
183
  },
178
184
  {
179
185
  type: 'text',
180
186
  name: 'inviteCount',
181
187
  message: 'inviteCount',
182
188
  required: false,
189
+ skipPrompt: true,
183
190
  },
184
191
  {
185
- type: 'text',
192
+ type: 'boolean',
186
193
  name: 'multiple',
187
194
  message: 'multiple',
188
195
  required: false,
196
+ skipPrompt: true,
189
197
  },
190
198
  {
191
- type: 'text',
199
+ type: 'json',
192
200
  name: 'data',
193
201
  message: 'data',
194
202
  required: false,
203
+ skipPrompt: true,
195
204
  },
196
205
  {
197
206
  type: 'text',
198
207
  name: 'expiresAt',
199
208
  message: 'expiresAt',
200
209
  required: false,
210
+ skipPrompt: true,
201
211
  },
202
212
  {
203
213
  type: 'text',
@@ -266,60 +276,70 @@ async function handleUpdate(argv, prompter) {
266
276
  name: 'email',
267
277
  message: 'email',
268
278
  required: false,
279
+ skipPrompt: true,
269
280
  },
270
281
  {
271
282
  type: 'text',
272
283
  name: 'senderId',
273
284
  message: 'senderId',
274
285
  required: false,
286
+ skipPrompt: true,
275
287
  },
276
288
  {
277
289
  type: 'text',
278
290
  name: 'receiverId',
279
291
  message: 'receiverId',
280
292
  required: false,
293
+ skipPrompt: true,
281
294
  },
282
295
  {
283
296
  type: 'text',
284
297
  name: 'inviteToken',
285
298
  message: 'inviteToken',
286
299
  required: false,
300
+ skipPrompt: true,
287
301
  },
288
302
  {
289
- type: 'text',
303
+ type: 'boolean',
290
304
  name: 'inviteValid',
291
305
  message: 'inviteValid',
292
306
  required: false,
307
+ skipPrompt: true,
293
308
  },
294
309
  {
295
310
  type: 'text',
296
311
  name: 'inviteLimit',
297
312
  message: 'inviteLimit',
298
313
  required: false,
314
+ skipPrompt: true,
299
315
  },
300
316
  {
301
317
  type: 'text',
302
318
  name: 'inviteCount',
303
319
  message: 'inviteCount',
304
320
  required: false,
321
+ skipPrompt: true,
305
322
  },
306
323
  {
307
- type: 'text',
324
+ type: 'boolean',
308
325
  name: 'multiple',
309
326
  message: 'multiple',
310
327
  required: false,
328
+ skipPrompt: true,
311
329
  },
312
330
  {
313
- type: 'text',
331
+ type: 'json',
314
332
  name: 'data',
315
333
  message: 'data',
316
334
  required: false,
335
+ skipPrompt: true,
317
336
  },
318
337
  {
319
338
  type: 'text',
320
339
  name: 'expiresAt',
321
340
  message: 'expiresAt',
322
341
  required: false,
342
+ skipPrompt: true,
323
343
  },
324
344
  {
325
345
  type: 'text',
@@ -117,6 +117,7 @@ async function handleCreate(argv, prompter) {
117
117
  name: 'max',
118
118
  message: 'max',
119
119
  required: false,
120
+ skipPrompt: true,
120
121
  },
121
122
  ]);
122
123
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -165,6 +166,7 @@ async function handleUpdate(argv, prompter) {
165
166
  name: 'max',
166
167
  message: 'max',
167
168
  required: false,
169
+ skipPrompt: true,
168
170
  },
169
171
  ]);
170
172
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -120,6 +120,7 @@ async function handleCreate(argv, prompter) {
120
120
  name: 'name',
121
121
  message: 'name',
122
122
  required: false,
123
+ skipPrompt: true,
123
124
  },
124
125
  {
125
126
  type: 'text',
@@ -132,12 +133,14 @@ async function handleCreate(argv, prompter) {
132
133
  name: 'num',
133
134
  message: 'num',
134
135
  required: false,
136
+ skipPrompt: true,
135
137
  },
136
138
  {
137
139
  type: 'text',
138
140
  name: 'max',
139
141
  message: 'max',
140
142
  required: false,
143
+ skipPrompt: true,
141
144
  },
142
145
  {
143
146
  type: 'text',
@@ -192,6 +195,7 @@ async function handleUpdate(argv, prompter) {
192
195
  name: 'name',
193
196
  message: 'name',
194
197
  required: false,
198
+ skipPrompt: true,
195
199
  },
196
200
  {
197
201
  type: 'text',
@@ -204,12 +208,14 @@ async function handleUpdate(argv, prompter) {
204
208
  name: 'num',
205
209
  message: 'num',
206
210
  required: false,
211
+ skipPrompt: true,
207
212
  },
208
213
  {
209
214
  type: 'text',
210
215
  name: 'max',
211
216
  message: 'max',
212
217
  required: false,
218
+ skipPrompt: true,
213
219
  },
214
220
  {
215
221
  type: 'text',
@@ -110,10 +110,11 @@ async function handleCreate(argv, prompter) {
110
110
  try {
111
111
  const rawAnswers = await prompter.prompt(argv, [
112
112
  {
113
- type: 'text',
113
+ type: 'boolean',
114
114
  name: 'isAdmin',
115
115
  message: 'isAdmin',
116
116
  required: false,
117
+ skipPrompt: true,
117
118
  },
118
119
  {
119
120
  type: 'text',
@@ -166,10 +167,11 @@ async function handleUpdate(argv, prompter) {
166
167
  required: true,
167
168
  },
168
169
  {
169
- type: 'text',
170
+ type: 'boolean',
170
171
  name: 'isAdmin',
171
172
  message: 'isAdmin',
172
173
  required: false,
174
+ skipPrompt: true,
173
175
  },
174
176
  {
175
177
  type: 'text',