@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
@@ -150,36 +150,42 @@ async function handleCreate(argv, prompter) {
150
150
  name: 'schemaId',
151
151
  message: 'schemaId',
152
152
  required: false,
153
+ skipPrompt: true,
153
154
  },
154
155
  {
155
156
  type: 'text',
156
157
  name: 'usersTableId',
157
158
  message: 'usersTableId',
158
159
  required: false,
160
+ skipPrompt: true,
159
161
  },
160
162
  {
161
163
  type: 'text',
162
164
  name: 'secretsTableId',
163
165
  message: 'secretsTableId',
164
166
  required: false,
167
+ skipPrompt: true,
165
168
  },
166
169
  {
167
170
  type: 'text',
168
171
  name: 'sessionsTableId',
169
172
  message: 'sessionsTableId',
170
173
  required: false,
174
+ skipPrompt: true,
171
175
  },
172
176
  {
173
177
  type: 'text',
174
178
  name: 'sessionCredentialsTableId',
175
179
  message: 'sessionCredentialsTableId',
176
180
  required: false,
181
+ skipPrompt: true,
177
182
  },
178
183
  {
179
184
  type: 'text',
180
185
  name: 'addressesTableId',
181
186
  message: 'addressesTableId',
182
187
  required: false,
188
+ skipPrompt: true,
183
189
  },
184
190
  {
185
191
  type: 'text',
@@ -192,30 +198,35 @@ async function handleCreate(argv, prompter) {
192
198
  name: 'cryptoNetwork',
193
199
  message: 'cryptoNetwork',
194
200
  required: false,
201
+ skipPrompt: true,
195
202
  },
196
203
  {
197
204
  type: 'text',
198
205
  name: 'signInRequestChallenge',
199
206
  message: 'signInRequestChallenge',
200
207
  required: false,
208
+ skipPrompt: true,
201
209
  },
202
210
  {
203
211
  type: 'text',
204
212
  name: 'signInRecordFailure',
205
213
  message: 'signInRecordFailure',
206
214
  required: false,
215
+ skipPrompt: true,
207
216
  },
208
217
  {
209
218
  type: 'text',
210
219
  name: 'signUpWithKey',
211
220
  message: 'signUpWithKey',
212
221
  required: false,
222
+ skipPrompt: true,
213
223
  },
214
224
  {
215
225
  type: 'text',
216
226
  name: 'signInWithChallenge',
217
227
  message: 'signInWithChallenge',
218
228
  required: false,
229
+ skipPrompt: true,
219
230
  },
220
231
  ]);
221
232
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -286,36 +297,42 @@ async function handleUpdate(argv, prompter) {
286
297
  name: 'schemaId',
287
298
  message: 'schemaId',
288
299
  required: false,
300
+ skipPrompt: true,
289
301
  },
290
302
  {
291
303
  type: 'text',
292
304
  name: 'usersTableId',
293
305
  message: 'usersTableId',
294
306
  required: false,
307
+ skipPrompt: true,
295
308
  },
296
309
  {
297
310
  type: 'text',
298
311
  name: 'secretsTableId',
299
312
  message: 'secretsTableId',
300
313
  required: false,
314
+ skipPrompt: true,
301
315
  },
302
316
  {
303
317
  type: 'text',
304
318
  name: 'sessionsTableId',
305
319
  message: 'sessionsTableId',
306
320
  required: false,
321
+ skipPrompt: true,
307
322
  },
308
323
  {
309
324
  type: 'text',
310
325
  name: 'sessionCredentialsTableId',
311
326
  message: 'sessionCredentialsTableId',
312
327
  required: false,
328
+ skipPrompt: true,
313
329
  },
314
330
  {
315
331
  type: 'text',
316
332
  name: 'addressesTableId',
317
333
  message: 'addressesTableId',
318
334
  required: false,
335
+ skipPrompt: true,
319
336
  },
320
337
  {
321
338
  type: 'text',
@@ -328,30 +345,35 @@ async function handleUpdate(argv, prompter) {
328
345
  name: 'cryptoNetwork',
329
346
  message: 'cryptoNetwork',
330
347
  required: false,
348
+ skipPrompt: true,
331
349
  },
332
350
  {
333
351
  type: 'text',
334
352
  name: 'signInRequestChallenge',
335
353
  message: 'signInRequestChallenge',
336
354
  required: false,
355
+ skipPrompt: true,
337
356
  },
338
357
  {
339
358
  type: 'text',
340
359
  name: 'signInRecordFailure',
341
360
  message: 'signInRecordFailure',
342
361
  required: false,
362
+ skipPrompt: true,
343
363
  },
344
364
  {
345
365
  type: 'text',
346
366
  name: 'signUpWithKey',
347
367
  message: 'signUpWithKey',
348
368
  required: false,
369
+ skipPrompt: true,
349
370
  },
350
371
  {
351
372
  type: 'text',
352
373
  name: 'signInWithChallenge',
353
374
  message: 'signInWithChallenge',
354
375
  required: false,
376
+ skipPrompt: true,
355
377
  },
356
378
  ]);
357
379
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -156,6 +156,7 @@ async function handleCreate(argv, prompter) {
156
156
  name: 'subdomain',
157
157
  message: 'subdomain',
158
158
  required: false,
159
+ skipPrompt: true,
159
160
  },
160
161
  {
161
162
  type: 'text',
@@ -168,42 +169,49 @@ async function handleCreate(argv, prompter) {
168
169
  name: 'modules',
169
170
  message: 'modules',
170
171
  required: false,
172
+ skipPrompt: true,
171
173
  },
172
174
  {
173
- type: 'text',
175
+ type: 'json',
174
176
  name: 'options',
175
177
  message: 'options',
176
178
  required: false,
179
+ skipPrompt: true,
177
180
  },
178
181
  {
179
- type: 'text',
182
+ type: 'boolean',
180
183
  name: 'bootstrapUser',
181
184
  message: 'bootstrapUser',
182
185
  required: false,
186
+ skipPrompt: true,
183
187
  },
184
188
  {
185
189
  type: 'text',
186
190
  name: 'status',
187
191
  message: 'status',
188
192
  required: false,
193
+ skipPrompt: true,
189
194
  },
190
195
  {
191
196
  type: 'text',
192
197
  name: 'errorMessage',
193
198
  message: 'errorMessage',
194
199
  required: false,
200
+ skipPrompt: true,
195
201
  },
196
202
  {
197
203
  type: 'text',
198
204
  name: 'databaseId',
199
205
  message: 'databaseId',
200
206
  required: false,
207
+ skipPrompt: true,
201
208
  },
202
209
  {
203
210
  type: 'text',
204
211
  name: 'completedAt',
205
212
  message: 'completedAt',
206
213
  required: false,
214
+ skipPrompt: true,
207
215
  },
208
216
  ]);
209
217
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -278,6 +286,7 @@ async function handleUpdate(argv, prompter) {
278
286
  name: 'subdomain',
279
287
  message: 'subdomain',
280
288
  required: false,
289
+ skipPrompt: true,
281
290
  },
282
291
  {
283
292
  type: 'text',
@@ -290,42 +299,49 @@ async function handleUpdate(argv, prompter) {
290
299
  name: 'modules',
291
300
  message: 'modules',
292
301
  required: false,
302
+ skipPrompt: true,
293
303
  },
294
304
  {
295
- type: 'text',
305
+ type: 'json',
296
306
  name: 'options',
297
307
  message: 'options',
298
308
  required: false,
309
+ skipPrompt: true,
299
310
  },
300
311
  {
301
- type: 'text',
312
+ type: 'boolean',
302
313
  name: 'bootstrapUser',
303
314
  message: 'bootstrapUser',
304
315
  required: false,
316
+ skipPrompt: true,
305
317
  },
306
318
  {
307
319
  type: 'text',
308
320
  name: 'status',
309
321
  message: 'status',
310
322
  required: false,
323
+ skipPrompt: true,
311
324
  },
312
325
  {
313
326
  type: 'text',
314
327
  name: 'errorMessage',
315
328
  message: 'errorMessage',
316
329
  required: false,
330
+ skipPrompt: true,
317
331
  },
318
332
  {
319
333
  type: 'text',
320
334
  name: 'databaseId',
321
335
  message: 'databaseId',
322
336
  required: false,
337
+ skipPrompt: true,
323
338
  },
324
339
  {
325
340
  type: 'text',
326
341
  name: 'completedAt',
327
342
  message: 'completedAt',
328
343
  required: false,
344
+ skipPrompt: true,
329
345
  },
330
346
  ]);
331
347
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -126,30 +126,35 @@ async function handleCreate(argv, prompter) {
126
126
  name: 'ownerId',
127
127
  message: 'ownerId',
128
128
  required: false,
129
+ skipPrompt: true,
129
130
  },
130
131
  {
131
132
  type: 'text',
132
133
  name: 'schemaHash',
133
134
  message: 'schemaHash',
134
135
  required: false,
136
+ skipPrompt: true,
135
137
  },
136
138
  {
137
139
  type: 'text',
138
140
  name: 'name',
139
141
  message: 'name',
140
142
  required: false,
143
+ skipPrompt: true,
141
144
  },
142
145
  {
143
146
  type: 'text',
144
147
  name: 'label',
145
148
  message: 'label',
146
149
  required: false,
150
+ skipPrompt: true,
147
151
  },
148
152
  {
149
153
  type: 'text',
150
154
  name: 'hash',
151
155
  message: 'hash',
152
156
  required: false,
157
+ skipPrompt: true,
153
158
  },
154
159
  ]);
155
160
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -200,30 +205,35 @@ async function handleUpdate(argv, prompter) {
200
205
  name: 'ownerId',
201
206
  message: 'ownerId',
202
207
  required: false,
208
+ skipPrompt: true,
203
209
  },
204
210
  {
205
211
  type: 'text',
206
212
  name: 'schemaHash',
207
213
  message: 'schemaHash',
208
214
  required: false,
215
+ skipPrompt: true,
209
216
  },
210
217
  {
211
218
  type: 'text',
212
219
  name: 'name',
213
220
  message: 'name',
214
221
  required: false,
222
+ skipPrompt: true,
215
223
  },
216
224
  {
217
225
  type: 'text',
218
226
  name: 'label',
219
227
  message: 'label',
220
228
  required: false,
229
+ skipPrompt: true,
221
230
  },
222
231
  {
223
232
  type: 'text',
224
233
  name: 'hash',
225
234
  message: 'hash',
226
235
  required: false,
236
+ skipPrompt: true,
227
237
  },
228
238
  ]);
229
239
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -123,6 +123,7 @@ async function handleCreate(argv, prompter) {
123
123
  name: 'databaseId',
124
124
  message: 'databaseId',
125
125
  required: false,
126
+ skipPrompt: true,
126
127
  },
127
128
  {
128
129
  type: 'text',
@@ -149,10 +150,11 @@ 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
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -203,6 +205,7 @@ async function handleUpdate(argv, prompter) {
203
205
  name: 'databaseId',
204
206
  message: 'databaseId',
205
207
  required: false,
208
+ skipPrompt: true,
206
209
  },
207
210
  {
208
211
  type: 'text',
@@ -229,10 +232,11 @@ async function handleUpdate(argv, prompter) {
229
232
  required: false,
230
233
  },
231
234
  {
232
- type: 'text',
235
+ type: 'boolean',
233
236
  name: 'isGrant',
234
237
  message: 'isGrant',
235
238
  required: false,
239
+ skipPrompt: true,
236
240
  },
237
241
  ]);
238
242
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -156,6 +156,7 @@ async function handleCreate(argv, prompter) {
156
156
  name: 'setIds',
157
157
  message: 'setIds',
158
158
  required: false,
159
+ skipPrompt: true,
159
160
  },
160
161
  {
161
162
  type: 'text',
@@ -174,30 +175,35 @@ async function handleCreate(argv, prompter) {
174
175
  name: 'refIds',
175
176
  message: 'refIds',
176
177
  required: false,
178
+ skipPrompt: true,
177
179
  },
178
180
  {
179
- type: 'text',
181
+ type: 'boolean',
180
182
  name: 'useUpdates',
181
183
  message: 'useUpdates',
182
184
  required: false,
185
+ skipPrompt: true,
183
186
  },
184
187
  {
185
- type: 'text',
188
+ type: 'boolean',
186
189
  name: 'updateDefaults',
187
190
  message: 'updateDefaults',
188
191
  required: false,
192
+ skipPrompt: true,
189
193
  },
190
194
  {
191
195
  type: 'text',
192
196
  name: 'funcName',
193
197
  message: 'funcName',
194
198
  required: false,
199
+ skipPrompt: true,
195
200
  },
196
201
  {
197
202
  type: 'text',
198
203
  name: 'funcOrder',
199
204
  message: 'funcOrder',
200
205
  required: false,
206
+ skipPrompt: true,
201
207
  },
202
208
  ]);
203
209
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -276,6 +282,7 @@ async function handleUpdate(argv, prompter) {
276
282
  name: 'setIds',
277
283
  message: 'setIds',
278
284
  required: false,
285
+ skipPrompt: true,
279
286
  },
280
287
  {
281
288
  type: 'text',
@@ -294,30 +301,35 @@ async function handleUpdate(argv, prompter) {
294
301
  name: 'refIds',
295
302
  message: 'refIds',
296
303
  required: false,
304
+ skipPrompt: true,
297
305
  },
298
306
  {
299
- type: 'text',
307
+ type: 'boolean',
300
308
  name: 'useUpdates',
301
309
  message: 'useUpdates',
302
310
  required: false,
311
+ skipPrompt: true,
303
312
  },
304
313
  {
305
- type: 'text',
314
+ type: 'boolean',
306
315
  name: 'updateDefaults',
307
316
  message: 'updateDefaults',
308
317
  required: false,
318
+ skipPrompt: true,
309
319
  },
310
320
  {
311
321
  type: 'text',
312
322
  name: 'funcName',
313
323
  message: 'funcName',
314
324
  required: false,
325
+ skipPrompt: true,
315
326
  },
316
327
  {
317
328
  type: 'text',
318
329
  name: 'funcOrder',
319
330
  message: 'funcOrder',
320
331
  required: false,
332
+ skipPrompt: true,
321
333
  },
322
334
  ]);
323
335
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -126,24 +126,28 @@ async function handleCreate(argv, prompter) {
126
126
  name: 'apiId',
127
127
  message: 'apiId',
128
128
  required: false,
129
+ skipPrompt: true,
129
130
  },
130
131
  {
131
132
  type: 'text',
132
133
  name: 'siteId',
133
134
  message: 'siteId',
134
135
  required: false,
136
+ skipPrompt: true,
135
137
  },
136
138
  {
137
139
  type: 'text',
138
140
  name: 'subdomain',
139
141
  message: 'subdomain',
140
142
  required: false,
143
+ skipPrompt: true,
141
144
  },
142
145
  {
143
146
  type: 'text',
144
147
  name: 'domain',
145
148
  message: 'domain',
146
149
  required: false,
150
+ skipPrompt: true,
147
151
  },
148
152
  ]);
149
153
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -198,24 +202,28 @@ async function handleUpdate(argv, prompter) {
198
202
  name: 'apiId',
199
203
  message: 'apiId',
200
204
  required: false,
205
+ skipPrompt: true,
201
206
  },
202
207
  {
203
208
  type: 'text',
204
209
  name: 'siteId',
205
210
  message: 'siteId',
206
211
  required: false,
212
+ skipPrompt: true,
207
213
  },
208
214
  {
209
215
  type: 'text',
210
216
  name: 'subdomain',
211
217
  message: 'subdomain',
212
218
  required: false,
219
+ skipPrompt: true,
213
220
  },
214
221
  {
215
222
  type: 'text',
216
223
  name: 'domain',
217
224
  message: 'domain',
218
225
  required: false,
226
+ skipPrompt: true,
219
227
  },
220
228
  ]);
221
229
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -123,6 +123,7 @@ async function handleCreate(argv, prompter) {
123
123
  name: 'ownerId',
124
124
  message: 'ownerId',
125
125
  required: false,
126
+ skipPrompt: true,
126
127
  },
127
128
  {
128
129
  type: 'text',
@@ -131,16 +132,18 @@ async function handleCreate(argv, prompter) {
131
132
  required: true,
132
133
  },
133
134
  {
134
- type: 'text',
135
+ type: 'boolean',
135
136
  name: 'isVerified',
136
137
  message: 'isVerified',
137
138
  required: false,
139
+ skipPrompt: true,
138
140
  },
139
141
  {
140
- type: 'text',
142
+ type: 'boolean',
141
143
  name: 'isPrimary',
142
144
  message: 'isPrimary',
143
145
  required: false,
146
+ skipPrompt: true,
144
147
  },
145
148
  ]);
146
149
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -189,6 +192,7 @@ async function handleUpdate(argv, prompter) {
189
192
  name: 'ownerId',
190
193
  message: 'ownerId',
191
194
  required: false,
195
+ skipPrompt: true,
192
196
  },
193
197
  {
194
198
  type: 'text',
@@ -197,16 +201,18 @@ async function handleUpdate(argv, prompter) {
197
201
  required: false,
198
202
  },
199
203
  {
200
- type: 'text',
204
+ type: 'boolean',
201
205
  name: 'isVerified',
202
206
  message: 'isVerified',
203
207
  required: false,
208
+ skipPrompt: true,
204
209
  },
205
210
  {
206
- type: 'text',
211
+ type: 'boolean',
207
212
  name: 'isPrimary',
208
213
  message: 'isPrimary',
209
214
  required: false,
215
+ skipPrompt: true,
210
216
  },
211
217
  ]);
212
218
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -129,24 +129,28 @@ async function handleCreate(argv, prompter) {
129
129
  name: 'schemaId',
130
130
  message: 'schemaId',
131
131
  required: false,
132
+ skipPrompt: true,
132
133
  },
133
134
  {
134
135
  type: 'text',
135
136
  name: 'privateSchemaId',
136
137
  message: 'privateSchemaId',
137
138
  required: false,
139
+ skipPrompt: true,
138
140
  },
139
141
  {
140
142
  type: 'text',
141
143
  name: 'tableId',
142
144
  message: 'tableId',
143
145
  required: false,
146
+ skipPrompt: true,
144
147
  },
145
148
  {
146
149
  type: 'text',
147
150
  name: 'ownerTableId',
148
151
  message: 'ownerTableId',
149
152
  required: false,
153
+ skipPrompt: true,
150
154
  },
151
155
  {
152
156
  type: 'text',
@@ -209,24 +213,28 @@ async function handleUpdate(argv, prompter) {
209
213
  name: 'schemaId',
210
214
  message: 'schemaId',
211
215
  required: false,
216
+ skipPrompt: true,
212
217
  },
213
218
  {
214
219
  type: 'text',
215
220
  name: 'privateSchemaId',
216
221
  message: 'privateSchemaId',
217
222
  required: false,
223
+ skipPrompt: true,
218
224
  },
219
225
  {
220
226
  type: 'text',
221
227
  name: 'tableId',
222
228
  message: 'tableId',
223
229
  required: false,
230
+ skipPrompt: true,
224
231
  },
225
232
  {
226
233
  type: 'text',
227
234
  name: 'ownerTableId',
228
235
  message: 'ownerTableId',
229
236
  required: false,
237
+ skipPrompt: true,
230
238
  },
231
239
  {
232
240
  type: 'text',