@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
@@ -148,60 +148,70 @@ async function handleCreate(argv, prompter) {
148
148
  name: 'createdBy',
149
149
  message: 'createdBy',
150
150
  required: false,
151
+ skipPrompt: true,
151
152
  },
152
153
  {
153
154
  type: 'text',
154
155
  name: 'updatedBy',
155
156
  message: 'updatedBy',
156
157
  required: false,
158
+ skipPrompt: true,
157
159
  },
158
160
  {
159
- type: 'text',
161
+ type: 'boolean',
160
162
  name: 'isApproved',
161
163
  message: 'isApproved',
162
164
  required: false,
165
+ skipPrompt: true,
163
166
  },
164
167
  {
165
- type: 'text',
168
+ type: 'boolean',
166
169
  name: 'isBanned',
167
170
  message: 'isBanned',
168
171
  required: false,
172
+ skipPrompt: true,
169
173
  },
170
174
  {
171
- type: 'text',
175
+ type: 'boolean',
172
176
  name: 'isDisabled',
173
177
  message: 'isDisabled',
174
178
  required: false,
179
+ skipPrompt: true,
175
180
  },
176
181
  {
177
- type: 'text',
182
+ type: 'boolean',
178
183
  name: 'isActive',
179
184
  message: 'isActive',
180
185
  required: false,
186
+ skipPrompt: true,
181
187
  },
182
188
  {
183
- type: 'text',
189
+ type: 'boolean',
184
190
  name: 'isOwner',
185
191
  message: 'isOwner',
186
192
  required: false,
193
+ skipPrompt: true,
187
194
  },
188
195
  {
189
- type: 'text',
196
+ type: 'boolean',
190
197
  name: 'isAdmin',
191
198
  message: 'isAdmin',
192
199
  required: false,
200
+ skipPrompt: true,
193
201
  },
194
202
  {
195
203
  type: 'text',
196
204
  name: 'permissions',
197
205
  message: 'permissions',
198
206
  required: false,
207
+ skipPrompt: true,
199
208
  },
200
209
  {
201
210
  type: 'text',
202
211
  name: 'granted',
203
212
  message: 'granted',
204
213
  required: false,
214
+ skipPrompt: true,
205
215
  },
206
216
  {
207
217
  type: 'text',
@@ -220,6 +230,7 @@ async function handleCreate(argv, prompter) {
220
230
  name: 'profileId',
221
231
  message: 'profileId',
222
232
  required: false,
233
+ skipPrompt: true,
223
234
  },
224
235
  ]);
225
236
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -286,60 +297,70 @@ async function handleUpdate(argv, prompter) {
286
297
  name: 'createdBy',
287
298
  message: 'createdBy',
288
299
  required: false,
300
+ skipPrompt: true,
289
301
  },
290
302
  {
291
303
  type: 'text',
292
304
  name: 'updatedBy',
293
305
  message: 'updatedBy',
294
306
  required: false,
307
+ skipPrompt: true,
295
308
  },
296
309
  {
297
- type: 'text',
310
+ type: 'boolean',
298
311
  name: 'isApproved',
299
312
  message: 'isApproved',
300
313
  required: false,
314
+ skipPrompt: true,
301
315
  },
302
316
  {
303
- type: 'text',
317
+ type: 'boolean',
304
318
  name: 'isBanned',
305
319
  message: 'isBanned',
306
320
  required: false,
321
+ skipPrompt: true,
307
322
  },
308
323
  {
309
- type: 'text',
324
+ type: 'boolean',
310
325
  name: 'isDisabled',
311
326
  message: 'isDisabled',
312
327
  required: false,
328
+ skipPrompt: true,
313
329
  },
314
330
  {
315
- type: 'text',
331
+ type: 'boolean',
316
332
  name: 'isActive',
317
333
  message: 'isActive',
318
334
  required: false,
335
+ skipPrompt: true,
319
336
  },
320
337
  {
321
- type: 'text',
338
+ type: 'boolean',
322
339
  name: 'isOwner',
323
340
  message: 'isOwner',
324
341
  required: false,
342
+ skipPrompt: true,
325
343
  },
326
344
  {
327
- type: 'text',
345
+ type: 'boolean',
328
346
  name: 'isAdmin',
329
347
  message: 'isAdmin',
330
348
  required: false,
349
+ skipPrompt: true,
331
350
  },
332
351
  {
333
352
  type: 'text',
334
353
  name: 'permissions',
335
354
  message: 'permissions',
336
355
  required: false,
356
+ skipPrompt: true,
337
357
  },
338
358
  {
339
359
  type: 'text',
340
360
  name: 'granted',
341
361
  message: 'granted',
342
362
  required: false,
363
+ skipPrompt: true,
343
364
  },
344
365
  {
345
366
  type: 'text',
@@ -358,6 +379,7 @@ async function handleUpdate(argv, prompter) {
358
379
  name: 'profileId',
359
380
  message: 'profileId',
360
381
  required: false,
382
+ skipPrompt: true,
361
383
  },
362
384
  ]);
363
385
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -117,10 +117,11 @@ async function handleCreate(argv, prompter) {
117
117
  try {
118
118
  const rawAnswers = await prompter.prompt(argv, [
119
119
  {
120
- type: 'text',
120
+ type: 'boolean',
121
121
  name: 'isGrant',
122
122
  message: 'isGrant',
123
123
  required: false,
124
+ skipPrompt: true,
124
125
  },
125
126
  {
126
127
  type: 'text',
@@ -139,6 +140,7 @@ async function handleCreate(argv, prompter) {
139
140
  name: 'grantorId',
140
141
  message: 'grantorId',
141
142
  required: false,
143
+ skipPrompt: true,
142
144
  },
143
145
  ]);
144
146
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -183,10 +185,11 @@ async function handleUpdate(argv, prompter) {
183
185
  required: true,
184
186
  },
185
187
  {
186
- type: 'text',
188
+ type: 'boolean',
187
189
  name: 'isGrant',
188
190
  message: 'isGrant',
189
191
  required: false,
192
+ skipPrompt: true,
190
193
  },
191
194
  {
192
195
  type: 'text',
@@ -205,6 +208,7 @@ async function handleUpdate(argv, prompter) {
205
208
  name: 'grantorId',
206
209
  message: 'grantorId',
207
210
  required: false,
211
+ skipPrompt: true,
208
212
  },
209
213
  ]);
210
214
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -109,6 +109,7 @@ async function handleCreate(argv, prompter) {
109
109
  name: 'permissions',
110
110
  message: 'permissions',
111
111
  required: false,
112
+ skipPrompt: true,
112
113
  },
113
114
  {
114
115
  type: 'text',
@@ -157,6 +158,7 @@ async function handleUpdate(argv, prompter) {
157
158
  name: 'permissions',
158
159
  message: 'permissions',
159
160
  required: false,
161
+ skipPrompt: true,
160
162
  },
161
163
  {
162
164
  type: 'text',
@@ -115,24 +115,28 @@ async function handleCreate(argv, prompter) {
115
115
  name: 'name',
116
116
  message: 'name',
117
117
  required: false,
118
+ skipPrompt: true,
118
119
  },
119
120
  {
120
121
  type: 'text',
121
122
  name: 'bitnum',
122
123
  message: 'bitnum',
123
124
  required: false,
125
+ skipPrompt: true,
124
126
  },
125
127
  {
126
128
  type: 'text',
127
129
  name: 'bitstr',
128
130
  message: 'bitstr',
129
131
  required: false,
132
+ skipPrompt: true,
130
133
  },
131
134
  {
132
135
  type: 'text',
133
136
  name: 'description',
134
137
  message: 'description',
135
138
  required: false,
139
+ skipPrompt: true,
136
140
  },
137
141
  ]);
138
142
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -179,24 +183,28 @@ async function handleUpdate(argv, prompter) {
179
183
  name: 'name',
180
184
  message: 'name',
181
185
  required: false,
186
+ skipPrompt: true,
182
187
  },
183
188
  {
184
189
  type: 'text',
185
190
  name: 'bitnum',
186
191
  message: 'bitnum',
187
192
  required: false,
193
+ skipPrompt: true,
188
194
  },
189
195
  {
190
196
  type: 'text',
191
197
  name: 'bitstr',
192
198
  message: 'bitstr',
193
199
  required: false,
200
+ skipPrompt: true,
194
201
  },
195
202
  {
196
203
  type: 'text',
197
204
  name: 'description',
198
205
  message: 'description',
199
206
  required: false,
207
+ skipPrompt: true,
200
208
  },
201
209
  ]);
202
210
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .submitInviteCode(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .submitOrgInviteCode(parsedAnswers, {
@@ -10,9 +10,9 @@ if (process.argv.includes('--version') || process.argv.includes('-v')) {
10
10
  console.log(pkg.version);
11
11
  process.exit(0);
12
12
  }
13
- // Check for --tty false to enable non-interactive mode (noTty)
13
+ // Check for --tty false or --no-tty to enable non-interactive mode (noTty)
14
14
  const ttyIdx = process.argv.indexOf('--tty');
15
- const noTty = ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false';
15
+ const noTty = (ttyIdx !== -1 && process.argv[ttyIdx + 1] === 'false') || process.argv.includes('--no-tty');
16
16
  const options = {
17
17
  noTty,
18
18
  minimistOpts: { alias: { v: 'version', h: 'help' } },
@@ -20,6 +20,19 @@ export declare function stripUndefined(obj: Record<string, unknown>, schema?: Fi
20
20
  * from the CLI prompt. This parses it into a proper object.
21
21
  */
22
22
  export declare function parseMutationInput(answers: Record<string, unknown>): Record<string, unknown>;
23
+ /**
24
+ * Reconstruct nested objects from dot-notation CLI answers.
25
+ * When INPUT_OBJECT args are flattened to dot-notation questions
26
+ * (e.g. `--input.email foo --input.password bar`), this function
27
+ * rebuilds the nested structure expected by the ORM:
28
+ *
29
+ * { 'input.email': 'foo', 'input.password': 'bar' }
30
+ * → { input: { email: 'foo', password: 'bar' } }
31
+ *
32
+ * Non-dotted keys are passed through unchanged.
33
+ * Uses `nested-obj` for safe nested property setting.
34
+ */
35
+ export declare function unflattenDotNotation(answers: Record<string, unknown>): Record<string, unknown>;
23
36
  /**
24
37
  * Build a select object from a comma-separated list of dot-notation paths.
25
38
  * Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
@@ -115,6 +115,30 @@ export function parseMutationInput(answers) {
115
115
  }
116
116
  return answers;
117
117
  }
118
+ /**
119
+ * Reconstruct nested objects from dot-notation CLI answers.
120
+ * When INPUT_OBJECT args are flattened to dot-notation questions
121
+ * (e.g. `--input.email foo --input.password bar`), this function
122
+ * rebuilds the nested structure expected by the ORM:
123
+ *
124
+ * { 'input.email': 'foo', 'input.password': 'bar' }
125
+ * → { input: { email: 'foo', password: 'bar' } }
126
+ *
127
+ * Non-dotted keys are passed through unchanged.
128
+ * Uses `nested-obj` for safe nested property setting.
129
+ */
130
+ export function unflattenDotNotation(answers) {
131
+ const result = {};
132
+ for (const [key, value] of Object.entries(answers)) {
133
+ if (key.includes('.')) {
134
+ objectPath.set(result, key, value);
135
+ }
136
+ else {
137
+ result[key] = value;
138
+ }
139
+ }
140
+ return result;
141
+ }
118
142
  /**
119
143
  * Build a select object from a comma-separated list of dot-notation paths.
120
144
  * Uses `nested-obj` to parse paths like 'clientMutationId,result.accessToken,result.userId'
@@ -130,27 +130,31 @@ async function handleCreate(argv, prompter) {
130
130
  name: 'actorId',
131
131
  message: 'actorId',
132
132
  required: false,
133
+ skipPrompt: true,
133
134
  },
134
135
  {
135
136
  type: 'text',
136
137
  name: 'origin',
137
138
  message: 'origin',
138
139
  required: false,
140
+ skipPrompt: true,
139
141
  },
140
142
  {
141
143
  type: 'text',
142
144
  name: 'userAgent',
143
145
  message: 'userAgent',
144
146
  required: false,
147
+ skipPrompt: true,
145
148
  },
146
149
  {
147
150
  type: 'text',
148
151
  name: 'ipAddress',
149
152
  message: 'ipAddress',
150
153
  required: false,
154
+ skipPrompt: true,
151
155
  },
152
156
  {
153
- type: 'text',
157
+ type: 'boolean',
154
158
  name: 'success',
155
159
  message: 'success',
156
160
  required: true,
@@ -211,27 +215,31 @@ async function handleUpdate(argv, prompter) {
211
215
  name: 'actorId',
212
216
  message: 'actorId',
213
217
  required: false,
218
+ skipPrompt: true,
214
219
  },
215
220
  {
216
221
  type: 'text',
217
222
  name: 'origin',
218
223
  message: 'origin',
219
224
  required: false,
225
+ skipPrompt: true,
220
226
  },
221
227
  {
222
228
  type: 'text',
223
229
  name: 'userAgent',
224
230
  message: 'userAgent',
225
231
  required: false,
232
+ skipPrompt: true,
226
233
  },
227
234
  {
228
235
  type: 'text',
229
236
  name: 'ipAddress',
230
237
  message: 'ipAddress',
231
238
  required: false,
239
+ skipPrompt: true,
232
240
  },
233
241
  {
234
- type: 'text',
242
+ type: 'boolean',
235
243
  name: 'success',
236
244
  message: 'success',
237
245
  required: false,
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .checkPassword(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .confirmDeleteAccount(parsedAnswers, {
@@ -124,6 +124,7 @@ async function handleCreate(argv, prompter) {
124
124
  name: 'ownerId',
125
125
  message: 'ownerId',
126
126
  required: false,
127
+ skipPrompt: true,
127
128
  },
128
129
  {
129
130
  type: 'text',
@@ -138,16 +139,17 @@ async function handleCreate(argv, prompter) {
138
139
  required: true,
139
140
  },
140
141
  {
141
- type: 'text',
142
+ type: 'json',
142
143
  name: 'details',
143
144
  message: 'details',
144
145
  required: true,
145
146
  },
146
147
  {
147
- type: 'text',
148
+ type: 'boolean',
148
149
  name: 'isVerified',
149
150
  message: 'isVerified',
150
151
  required: false,
152
+ skipPrompt: true,
151
153
  },
152
154
  ]);
153
155
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -198,6 +200,7 @@ async function handleUpdate(argv, prompter) {
198
200
  name: 'ownerId',
199
201
  message: 'ownerId',
200
202
  required: false,
203
+ skipPrompt: true,
201
204
  },
202
205
  {
203
206
  type: 'text',
@@ -212,16 +215,17 @@ async function handleUpdate(argv, prompter) {
212
215
  required: false,
213
216
  },
214
217
  {
215
- type: 'text',
218
+ type: 'json',
216
219
  name: 'details',
217
220
  message: 'details',
218
221
  required: false,
219
222
  },
220
223
  {
221
- type: 'text',
224
+ type: 'boolean',
222
225
  name: 'isVerified',
223
226
  message: 'isVerified',
224
227
  required: false,
228
+ skipPrompt: true,
225
229
  },
226
230
  ]);
227
231
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -121,6 +121,7 @@ async function handleCreate(argv, prompter) {
121
121
  name: 'ownerId',
122
122
  message: 'ownerId',
123
123
  required: false,
124
+ skipPrompt: true,
124
125
  },
125
126
  {
126
127
  type: 'text',
@@ -129,16 +130,18 @@ async function handleCreate(argv, prompter) {
129
130
  required: true,
130
131
  },
131
132
  {
132
- type: 'text',
133
+ type: 'boolean',
133
134
  name: 'isVerified',
134
135
  message: 'isVerified',
135
136
  required: false,
137
+ skipPrompt: true,
136
138
  },
137
139
  {
138
- type: 'text',
140
+ type: 'boolean',
139
141
  name: 'isPrimary',
140
142
  message: 'isPrimary',
141
143
  required: false,
144
+ skipPrompt: true,
142
145
  },
143
146
  ]);
144
147
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -187,6 +190,7 @@ async function handleUpdate(argv, prompter) {
187
190
  name: 'ownerId',
188
191
  message: 'ownerId',
189
192
  required: false,
193
+ skipPrompt: true,
190
194
  },
191
195
  {
192
196
  type: 'text',
@@ -195,16 +199,18 @@ async function handleUpdate(argv, prompter) {
195
199
  required: false,
196
200
  },
197
201
  {
198
- type: 'text',
202
+ type: 'boolean',
199
203
  name: 'isVerified',
200
204
  message: 'isVerified',
201
205
  required: false,
206
+ skipPrompt: true,
202
207
  },
203
208
  {
204
- type: 'text',
209
+ type: 'boolean',
205
210
  name: 'isPrimary',
206
211
  message: 'isPrimary',
207
212
  required: false,
213
+ skipPrompt: true,
208
214
  },
209
215
  ]);
210
216
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -121,6 +121,7 @@ async function handleCreate(argv, prompter) {
121
121
  name: 'ownerId',
122
122
  message: 'ownerId',
123
123
  required: false,
124
+ skipPrompt: true,
124
125
  },
125
126
  {
126
127
  type: 'text',
@@ -129,16 +130,18 @@ async function handleCreate(argv, prompter) {
129
130
  required: true,
130
131
  },
131
132
  {
132
- type: 'text',
133
+ type: 'boolean',
133
134
  name: 'isVerified',
134
135
  message: 'isVerified',
135
136
  required: false,
137
+ skipPrompt: true,
136
138
  },
137
139
  {
138
- type: 'text',
140
+ type: 'boolean',
139
141
  name: 'isPrimary',
140
142
  message: 'isPrimary',
141
143
  required: false,
144
+ skipPrompt: true,
142
145
  },
143
146
  ]);
144
147
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -187,6 +190,7 @@ async function handleUpdate(argv, prompter) {
187
190
  name: 'ownerId',
188
191
  message: 'ownerId',
189
192
  required: false,
193
+ skipPrompt: true,
190
194
  },
191
195
  {
192
196
  type: 'text',
@@ -195,16 +199,18 @@ async function handleUpdate(argv, prompter) {
195
199
  required: false,
196
200
  },
197
201
  {
198
- type: 'text',
202
+ type: 'boolean',
199
203
  name: 'isVerified',
200
204
  message: 'isVerified',
201
205
  required: false,
206
+ skipPrompt: true,
202
207
  },
203
208
  {
204
- type: 'text',
209
+ type: 'boolean',
205
210
  name: 'isPrimary',
206
211
  message: 'isPrimary',
207
212
  required: false,
213
+ skipPrompt: true,
208
214
  },
209
215
  ]);
210
216
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .extendTokenExpires(parsedAnswers, {