@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
@@ -210,138 +210,161 @@ async function handleCreate(argv, prompter) {
210
210
  name: 'fieldName',
211
211
  message: 'fieldName',
212
212
  required: false,
213
+ skipPrompt: true,
213
214
  },
214
215
  {
215
216
  type: 'text',
216
217
  name: 'deleteAction',
217
218
  message: 'deleteAction',
218
219
  required: false,
220
+ skipPrompt: true,
219
221
  },
220
222
  {
221
- type: 'text',
223
+ type: 'boolean',
222
224
  name: 'isRequired',
223
225
  message: 'isRequired',
224
226
  required: false,
227
+ skipPrompt: true,
225
228
  },
226
229
  {
227
230
  type: 'text',
228
231
  name: 'junctionTableId',
229
232
  message: 'junctionTableId',
230
233
  required: false,
234
+ skipPrompt: true,
231
235
  },
232
236
  {
233
237
  type: 'text',
234
238
  name: 'junctionTableName',
235
239
  message: 'junctionTableName',
236
240
  required: false,
241
+ skipPrompt: true,
237
242
  },
238
243
  {
239
244
  type: 'text',
240
245
  name: 'junctionSchemaId',
241
246
  message: 'junctionSchemaId',
242
247
  required: false,
248
+ skipPrompt: true,
243
249
  },
244
250
  {
245
251
  type: 'text',
246
252
  name: 'sourceFieldName',
247
253
  message: 'sourceFieldName',
248
254
  required: false,
255
+ skipPrompt: true,
249
256
  },
250
257
  {
251
258
  type: 'text',
252
259
  name: 'targetFieldName',
253
260
  message: 'targetFieldName',
254
261
  required: false,
262
+ skipPrompt: true,
255
263
  },
256
264
  {
257
- type: 'text',
265
+ type: 'boolean',
258
266
  name: 'useCompositeKey',
259
267
  message: 'useCompositeKey',
260
268
  required: false,
269
+ skipPrompt: true,
261
270
  },
262
271
  {
263
272
  type: 'text',
264
273
  name: 'nodeType',
265
274
  message: 'nodeType',
266
275
  required: false,
276
+ skipPrompt: true,
267
277
  },
268
278
  {
269
- type: 'text',
279
+ type: 'json',
270
280
  name: 'nodeData',
271
281
  message: 'nodeData',
272
282
  required: false,
283
+ skipPrompt: true,
273
284
  },
274
285
  {
275
286
  type: 'text',
276
287
  name: 'grantRoles',
277
288
  message: 'grantRoles',
278
289
  required: false,
290
+ skipPrompt: true,
279
291
  },
280
292
  {
281
- type: 'text',
293
+ type: 'json',
282
294
  name: 'grantPrivileges',
283
295
  message: 'grantPrivileges',
284
296
  required: false,
297
+ skipPrompt: true,
285
298
  },
286
299
  {
287
300
  type: 'text',
288
301
  name: 'policyType',
289
302
  message: 'policyType',
290
303
  required: false,
304
+ skipPrompt: true,
291
305
  },
292
306
  {
293
307
  type: 'text',
294
308
  name: 'policyPrivileges',
295
309
  message: 'policyPrivileges',
296
310
  required: false,
311
+ skipPrompt: true,
297
312
  },
298
313
  {
299
314
  type: 'text',
300
315
  name: 'policyRole',
301
316
  message: 'policyRole',
302
317
  required: false,
318
+ skipPrompt: true,
303
319
  },
304
320
  {
305
- type: 'text',
321
+ type: 'boolean',
306
322
  name: 'policyPermissive',
307
323
  message: 'policyPermissive',
308
324
  required: false,
325
+ skipPrompt: true,
309
326
  },
310
327
  {
311
328
  type: 'text',
312
329
  name: 'policyName',
313
330
  message: 'policyName',
314
331
  required: false,
332
+ skipPrompt: true,
315
333
  },
316
334
  {
317
- type: 'text',
335
+ type: 'json',
318
336
  name: 'policyData',
319
337
  message: 'policyData',
320
338
  required: false,
339
+ skipPrompt: true,
321
340
  },
322
341
  {
323
342
  type: 'text',
324
343
  name: 'outFieldId',
325
344
  message: 'outFieldId',
326
345
  required: false,
346
+ skipPrompt: true,
327
347
  },
328
348
  {
329
349
  type: 'text',
330
350
  name: 'outJunctionTableId',
331
351
  message: 'outJunctionTableId',
332
352
  required: false,
353
+ skipPrompt: true,
333
354
  },
334
355
  {
335
356
  type: 'text',
336
357
  name: 'outSourceFieldId',
337
358
  message: 'outSourceFieldId',
338
359
  required: false,
360
+ skipPrompt: true,
339
361
  },
340
362
  {
341
363
  type: 'text',
342
364
  name: 'outTargetFieldId',
343
365
  message: 'outTargetFieldId',
344
366
  required: false,
367
+ skipPrompt: true,
345
368
  },
346
369
  ]);
347
370
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -458,138 +481,161 @@ async function handleUpdate(argv, prompter) {
458
481
  name: 'fieldName',
459
482
  message: 'fieldName',
460
483
  required: false,
484
+ skipPrompt: true,
461
485
  },
462
486
  {
463
487
  type: 'text',
464
488
  name: 'deleteAction',
465
489
  message: 'deleteAction',
466
490
  required: false,
491
+ skipPrompt: true,
467
492
  },
468
493
  {
469
- type: 'text',
494
+ type: 'boolean',
470
495
  name: 'isRequired',
471
496
  message: 'isRequired',
472
497
  required: false,
498
+ skipPrompt: true,
473
499
  },
474
500
  {
475
501
  type: 'text',
476
502
  name: 'junctionTableId',
477
503
  message: 'junctionTableId',
478
504
  required: false,
505
+ skipPrompt: true,
479
506
  },
480
507
  {
481
508
  type: 'text',
482
509
  name: 'junctionTableName',
483
510
  message: 'junctionTableName',
484
511
  required: false,
512
+ skipPrompt: true,
485
513
  },
486
514
  {
487
515
  type: 'text',
488
516
  name: 'junctionSchemaId',
489
517
  message: 'junctionSchemaId',
490
518
  required: false,
519
+ skipPrompt: true,
491
520
  },
492
521
  {
493
522
  type: 'text',
494
523
  name: 'sourceFieldName',
495
524
  message: 'sourceFieldName',
496
525
  required: false,
526
+ skipPrompt: true,
497
527
  },
498
528
  {
499
529
  type: 'text',
500
530
  name: 'targetFieldName',
501
531
  message: 'targetFieldName',
502
532
  required: false,
533
+ skipPrompt: true,
503
534
  },
504
535
  {
505
- type: 'text',
536
+ type: 'boolean',
506
537
  name: 'useCompositeKey',
507
538
  message: 'useCompositeKey',
508
539
  required: false,
540
+ skipPrompt: true,
509
541
  },
510
542
  {
511
543
  type: 'text',
512
544
  name: 'nodeType',
513
545
  message: 'nodeType',
514
546
  required: false,
547
+ skipPrompt: true,
515
548
  },
516
549
  {
517
- type: 'text',
550
+ type: 'json',
518
551
  name: 'nodeData',
519
552
  message: 'nodeData',
520
553
  required: false,
554
+ skipPrompt: true,
521
555
  },
522
556
  {
523
557
  type: 'text',
524
558
  name: 'grantRoles',
525
559
  message: 'grantRoles',
526
560
  required: false,
561
+ skipPrompt: true,
527
562
  },
528
563
  {
529
- type: 'text',
564
+ type: 'json',
530
565
  name: 'grantPrivileges',
531
566
  message: 'grantPrivileges',
532
567
  required: false,
568
+ skipPrompt: true,
533
569
  },
534
570
  {
535
571
  type: 'text',
536
572
  name: 'policyType',
537
573
  message: 'policyType',
538
574
  required: false,
575
+ skipPrompt: true,
539
576
  },
540
577
  {
541
578
  type: 'text',
542
579
  name: 'policyPrivileges',
543
580
  message: 'policyPrivileges',
544
581
  required: false,
582
+ skipPrompt: true,
545
583
  },
546
584
  {
547
585
  type: 'text',
548
586
  name: 'policyRole',
549
587
  message: 'policyRole',
550
588
  required: false,
589
+ skipPrompt: true,
551
590
  },
552
591
  {
553
- type: 'text',
592
+ type: 'boolean',
554
593
  name: 'policyPermissive',
555
594
  message: 'policyPermissive',
556
595
  required: false,
596
+ skipPrompt: true,
557
597
  },
558
598
  {
559
599
  type: 'text',
560
600
  name: 'policyName',
561
601
  message: 'policyName',
562
602
  required: false,
603
+ skipPrompt: true,
563
604
  },
564
605
  {
565
- type: 'text',
606
+ type: 'json',
566
607
  name: 'policyData',
567
608
  message: 'policyData',
568
609
  required: false,
610
+ skipPrompt: true,
569
611
  },
570
612
  {
571
613
  type: 'text',
572
614
  name: 'outFieldId',
573
615
  message: 'outFieldId',
574
616
  required: false,
617
+ skipPrompt: true,
575
618
  },
576
619
  {
577
620
  type: 'text',
578
621
  name: 'outJunctionTableId',
579
622
  message: 'outJunctionTableId',
580
623
  required: false,
624
+ skipPrompt: true,
581
625
  },
582
626
  {
583
627
  type: 'text',
584
628
  name: 'outSourceFieldId',
585
629
  message: 'outSourceFieldId',
586
630
  required: false,
631
+ skipPrompt: true,
587
632
  },
588
633
  {
589
634
  type: 'text',
590
635
  name: 'outTargetFieldId',
591
636
  message: 'outTargetFieldId',
592
637
  required: false,
638
+ skipPrompt: true,
593
639
  },
594
640
  ]);
595
641
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
17
17
  },
18
18
  ]);
19
19
  const client = (0, executor_1.getClient)();
20
- const parsedAnswers = (0, utils_1.parseMutationInput)(answers);
20
+ const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
21
21
  const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
22
22
  const result = await client.mutation
23
23
  .removeNodeAtPath(parsedAnswers, {
@@ -17,7 +17,7 @@ exports.default = async (argv, prompter, _options) => {
17
17
  },
18
18
  ]);
19
19
  const client = (0, executor_1.getClient)();
20
- const parsedAnswers = (0, utils_1.parseMutationInput)(answers);
20
+ const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
21
21
  const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
22
22
  const result = await client.mutation
23
23
  .resetPassword(parsedAnswers, {
@@ -144,60 +144,70 @@ async function handleCreate(argv, prompter) {
144
144
  name: 'apiId',
145
145
  message: 'apiId',
146
146
  required: false,
147
+ skipPrompt: true,
147
148
  },
148
149
  {
149
150
  type: 'text',
150
151
  name: 'schemaId',
151
152
  message: 'schemaId',
152
153
  required: false,
154
+ skipPrompt: true,
153
155
  },
154
156
  {
155
157
  type: 'text',
156
158
  name: 'privateSchemaId',
157
159
  message: 'privateSchemaId',
158
160
  required: false,
161
+ skipPrompt: true,
159
162
  },
160
163
  {
161
164
  type: 'text',
162
165
  name: 'sessionCredentialsTableId',
163
166
  message: 'sessionCredentialsTableId',
164
167
  required: false,
168
+ skipPrompt: true,
165
169
  },
166
170
  {
167
171
  type: 'text',
168
172
  name: 'sessionsTableId',
169
173
  message: 'sessionsTableId',
170
174
  required: false,
175
+ skipPrompt: true,
171
176
  },
172
177
  {
173
178
  type: 'text',
174
179
  name: 'usersTableId',
175
180
  message: 'usersTableId',
176
181
  required: false,
182
+ skipPrompt: true,
177
183
  },
178
184
  {
179
185
  type: 'text',
180
186
  name: 'authenticate',
181
187
  message: 'authenticate',
182
188
  required: false,
189
+ skipPrompt: true,
183
190
  },
184
191
  {
185
192
  type: 'text',
186
193
  name: 'authenticateStrict',
187
194
  message: 'authenticateStrict',
188
195
  required: false,
196
+ skipPrompt: true,
189
197
  },
190
198
  {
191
199
  type: 'text',
192
200
  name: 'currentRole',
193
201
  message: 'currentRole',
194
202
  required: false,
203
+ skipPrompt: true,
195
204
  },
196
205
  {
197
206
  type: 'text',
198
207
  name: 'currentRoleId',
199
208
  message: 'currentRoleId',
200
209
  required: false,
210
+ skipPrompt: true,
201
211
  },
202
212
  ]);
203
213
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -264,60 +274,70 @@ async function handleUpdate(argv, prompter) {
264
274
  name: 'apiId',
265
275
  message: 'apiId',
266
276
  required: false,
277
+ skipPrompt: true,
267
278
  },
268
279
  {
269
280
  type: 'text',
270
281
  name: 'schemaId',
271
282
  message: 'schemaId',
272
283
  required: false,
284
+ skipPrompt: true,
273
285
  },
274
286
  {
275
287
  type: 'text',
276
288
  name: 'privateSchemaId',
277
289
  message: 'privateSchemaId',
278
290
  required: false,
291
+ skipPrompt: true,
279
292
  },
280
293
  {
281
294
  type: 'text',
282
295
  name: 'sessionCredentialsTableId',
283
296
  message: 'sessionCredentialsTableId',
284
297
  required: false,
298
+ skipPrompt: true,
285
299
  },
286
300
  {
287
301
  type: 'text',
288
302
  name: 'sessionsTableId',
289
303
  message: 'sessionsTableId',
290
304
  required: false,
305
+ skipPrompt: true,
291
306
  },
292
307
  {
293
308
  type: 'text',
294
309
  name: 'usersTableId',
295
310
  message: 'usersTableId',
296
311
  required: false,
312
+ skipPrompt: true,
297
313
  },
298
314
  {
299
315
  type: 'text',
300
316
  name: 'authenticate',
301
317
  message: 'authenticate',
302
318
  required: false,
319
+ skipPrompt: true,
303
320
  },
304
321
  {
305
322
  type: 'text',
306
323
  name: 'authenticateStrict',
307
324
  message: 'authenticateStrict',
308
325
  required: false,
326
+ skipPrompt: true,
309
327
  },
310
328
  {
311
329
  type: 'text',
312
330
  name: 'currentRole',
313
331
  message: 'currentRole',
314
332
  required: false,
333
+ skipPrompt: true,
315
334
  },
316
335
  {
317
336
  type: 'text',
318
337
  name: 'currentRoleId',
319
338
  message: 'currentRoleId',
320
339
  required: false,
340
+ skipPrompt: true,
321
341
  },
322
342
  ]);
323
343
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -120,6 +120,7 @@ async function handleCreate(argv, prompter) {
120
120
  name: 'databaseId',
121
121
  message: 'databaseId',
122
122
  required: false,
123
+ skipPrompt: true,
123
124
  },
124
125
  {
125
126
  type: 'text',
@@ -178,6 +179,7 @@ async function handleUpdate(argv, prompter) {
178
179
  name: 'databaseId',
179
180
  message: 'databaseId',
180
181
  required: false,
182
+ skipPrompt: true,
181
183
  },
182
184
  {
183
185
  type: 'text',
@@ -162,48 +162,56 @@ async function handleCreate(argv, prompter) {
162
162
  name: 'label',
163
163
  message: 'label',
164
164
  required: false,
165
+ skipPrompt: true,
165
166
  },
166
167
  {
167
168
  type: 'text',
168
169
  name: 'description',
169
170
  message: 'description',
170
171
  required: false,
172
+ skipPrompt: true,
171
173
  },
172
174
  {
173
- type: 'text',
175
+ type: 'json',
174
176
  name: 'smartTags',
175
177
  message: 'smartTags',
176
178
  required: false,
179
+ skipPrompt: true,
177
180
  },
178
181
  {
179
182
  type: 'text',
180
183
  name: 'category',
181
184
  message: 'category',
182
185
  required: false,
186
+ skipPrompt: true,
183
187
  },
184
188
  {
185
189
  type: 'text',
186
190
  name: 'module',
187
191
  message: 'module',
188
192
  required: false,
193
+ skipPrompt: true,
189
194
  },
190
195
  {
191
196
  type: 'text',
192
197
  name: 'scope',
193
198
  message: 'scope',
194
199
  required: false,
200
+ skipPrompt: true,
195
201
  },
196
202
  {
197
203
  type: 'text',
198
204
  name: 'tags',
199
205
  message: 'tags',
200
206
  required: false,
207
+ skipPrompt: true,
201
208
  },
202
209
  {
203
- type: 'text',
210
+ type: 'boolean',
204
211
  name: 'isPublic',
205
212
  message: 'isPublic',
206
213
  required: false,
214
+ skipPrompt: true,
207
215
  },
208
216
  ]);
209
217
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -284,48 +292,56 @@ async function handleUpdate(argv, prompter) {
284
292
  name: 'label',
285
293
  message: 'label',
286
294
  required: false,
295
+ skipPrompt: true,
287
296
  },
288
297
  {
289
298
  type: 'text',
290
299
  name: 'description',
291
300
  message: 'description',
292
301
  required: false,
302
+ skipPrompt: true,
293
303
  },
294
304
  {
295
- type: 'text',
305
+ type: 'json',
296
306
  name: 'smartTags',
297
307
  message: 'smartTags',
298
308
  required: false,
309
+ skipPrompt: true,
299
310
  },
300
311
  {
301
312
  type: 'text',
302
313
  name: 'category',
303
314
  message: 'category',
304
315
  required: false,
316
+ skipPrompt: true,
305
317
  },
306
318
  {
307
319
  type: 'text',
308
320
  name: 'module',
309
321
  message: 'module',
310
322
  required: false,
323
+ skipPrompt: true,
311
324
  },
312
325
  {
313
326
  type: 'text',
314
327
  name: 'scope',
315
328
  message: 'scope',
316
329
  required: false,
330
+ skipPrompt: true,
317
331
  },
318
332
  {
319
333
  type: 'text',
320
334
  name: 'tags',
321
335
  message: 'tags',
322
336
  required: false,
337
+ skipPrompt: true,
323
338
  },
324
339
  {
325
- type: 'text',
340
+ type: 'boolean',
326
341
  name: 'isPublic',
327
342
  message: 'isPublic',
328
343
  required: false,
344
+ skipPrompt: true,
329
345
  },
330
346
  ]);
331
347
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -123,18 +123,21 @@ async function handleCreate(argv, prompter) {
123
123
  name: 'schemaId',
124
124
  message: 'schemaId',
125
125
  required: false,
126
+ skipPrompt: true,
126
127
  },
127
128
  {
128
129
  type: 'text',
129
130
  name: 'tableId',
130
131
  message: 'tableId',
131
132
  required: false,
133
+ skipPrompt: true,
132
134
  },
133
135
  {
134
136
  type: 'text',
135
137
  name: 'tableName',
136
138
  message: 'tableName',
137
139
  required: false,
140
+ skipPrompt: true,
138
141
  },
139
142
  ]);
140
143
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
@@ -187,18 +190,21 @@ async function handleUpdate(argv, prompter) {
187
190
  name: 'schemaId',
188
191
  message: 'schemaId',
189
192
  required: false,
193
+ skipPrompt: true,
190
194
  },
191
195
  {
192
196
  type: 'text',
193
197
  name: 'tableId',
194
198
  message: 'tableId',
195
199
  required: false,
200
+ skipPrompt: true,
196
201
  },
197
202
  {
198
203
  type: 'text',
199
204
  name: 'tableName',
200
205
  message: 'tableName',
201
206
  required: false,
207
+ skipPrompt: true,
202
208
  },
203
209
  ]);
204
210
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);