@constructive-sdk/cli 0.23.3 → 0.24.0

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 (349) hide show
  1. package/admin/cli/commands/app-limit-event.js +248 -2
  2. package/admin/cli/commands/app-limit.js +44 -0
  3. package/admin/cli/commands/org-limit-aggregate.js +44 -0
  4. package/admin/cli/commands/org-limit-event.js +248 -2
  5. package/admin/cli/commands/org-limit.js +44 -0
  6. package/admin/cli/commands.js +31 -33
  7. package/admin/cli/executor.d.ts +15 -16
  8. package/admin/orm/index.d.ts +31 -33
  9. package/admin/orm/index.js +32 -33
  10. package/admin/orm/input-types.d.ts +2090 -2039
  11. package/admin/orm/input-types.js +4 -4
  12. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  13. package/admin/orm/models/appLimitEvent.js +45 -0
  14. package/admin/orm/models/index.d.ts +15 -16
  15. package/admin/orm/models/index.js +31 -33
  16. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  17. package/admin/orm/models/orgLimitEvent.js +45 -0
  18. package/{esm/public/cli/commands/agent-message.d.ts → auth/cli/commands/audit-log-auth.d.ts} +1 -1
  19. package/auth/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  20. package/auth/cli/commands.js +5 -5
  21. package/auth/cli/executor.d.ts +6 -6
  22. package/auth/orm/index.d.ts +8 -8
  23. package/auth/orm/index.js +4 -3
  24. package/auth/orm/input-types.d.ts +94 -94
  25. package/auth/orm/input-types.js +1 -1
  26. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  27. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  28. package/auth/orm/models/index.d.ts +1 -1
  29. package/auth/orm/models/index.js +3 -3
  30. package/auth/orm/mutation/index.d.ts +9 -9
  31. package/auth/orm/mutation/index.js +12 -12
  32. package/esm/admin/cli/commands/app-limit-event.js +248 -2
  33. package/esm/admin/cli/commands/app-limit.js +44 -0
  34. package/esm/admin/cli/commands/org-limit-aggregate.js +44 -0
  35. package/esm/admin/cli/commands/org-limit-event.js +248 -2
  36. package/esm/admin/cli/commands/org-limit.js +44 -0
  37. package/esm/admin/cli/commands.js +31 -33
  38. package/esm/admin/cli/executor.d.ts +15 -16
  39. package/esm/admin/orm/index.d.ts +31 -33
  40. package/esm/admin/orm/index.js +31 -33
  41. package/esm/admin/orm/input-types.d.ts +2090 -2039
  42. package/esm/admin/orm/input-types.js +4 -4
  43. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  44. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  45. package/esm/admin/orm/models/index.d.ts +15 -16
  46. package/esm/admin/orm/models/index.js +15 -16
  47. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  48. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  49. package/esm/auth/cli/commands/audit-log-auth.d.ts +8 -0
  50. package/esm/{public/cli/commands/audit-log.js → auth/cli/commands/audit-log-auth.js} +14 -14
  51. package/esm/auth/cli/commands.js +5 -5
  52. package/esm/auth/cli/executor.d.ts +6 -6
  53. package/esm/auth/orm/index.d.ts +8 -8
  54. package/esm/auth/orm/index.js +3 -3
  55. package/esm/auth/orm/input-types.d.ts +94 -94
  56. package/esm/auth/orm/input-types.js +1 -1
  57. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  58. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  59. package/esm/auth/orm/models/index.d.ts +1 -1
  60. package/esm/auth/orm/models/index.js +1 -1
  61. package/esm/auth/orm/mutation/index.d.ts +9 -9
  62. package/esm/auth/orm/mutation/index.js +12 -12
  63. package/esm/objects/orm/index.d.ts +1 -1
  64. package/esm/objects/orm/index.js +1 -1
  65. package/esm/public/cli/commands/{agent-thread.d.ts → agent-module.d.ts} +1 -1
  66. package/esm/public/cli/commands/agent-module.js +690 -0
  67. package/esm/public/cli/commands/app-limit-event.js +248 -2
  68. package/esm/public/cli/commands/app-limit.js +44 -0
  69. package/esm/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  70. package/esm/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  71. package/esm/public/cli/commands/audit-log-auth.d.ts +8 -0
  72. package/esm/{auth/cli/commands/audit-log.js → public/cli/commands/audit-log-auth.js} +14 -14
  73. package/esm/public/cli/commands/billing-module.js +88 -0
  74. package/esm/public/cli/commands/compute-log-module.d.ts +8 -0
  75. package/esm/public/cli/commands/compute-log-module.js +514 -0
  76. package/esm/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  77. package/esm/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  78. package/esm/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  79. package/esm/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  80. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  81. package/{admin/cli/commands/usage-snapshot.d.ts → esm/public/cli/commands/db-usage-module.d.ts} +1 -1
  82. package/esm/public/cli/commands/db-usage-module.js +558 -0
  83. package/esm/public/cli/commands/entity-type-provision.js +386 -34
  84. package/esm/public/cli/commands/field.js +4 -26
  85. package/esm/public/cli/commands/function-module.d.ts +8 -0
  86. package/esm/public/cli/commands/function-module.js +778 -0
  87. package/{auth/cli/commands/audit-log.d.ts → esm/public/cli/commands/graph-module.d.ts} +1 -1
  88. package/esm/public/cli/commands/graph-module.js +584 -0
  89. package/esm/public/cli/commands/inference-log-module.d.ts +8 -0
  90. package/esm/public/cli/commands/inference-log-module.js +514 -0
  91. package/esm/public/cli/commands/memberships-module.js +22 -0
  92. package/esm/public/cli/commands/merkle-store-module.d.ts +8 -0
  93. package/esm/public/cli/commands/merkle-store-module.js +498 -0
  94. package/esm/public/cli/commands/namespace-module.d.ts +8 -0
  95. package/esm/public/cli/commands/namespace-module.js +558 -0
  96. package/esm/public/cli/commands/org-limit-aggregate.js +44 -0
  97. package/esm/public/cli/commands/org-limit-event.js +248 -2
  98. package/esm/public/cli/commands/org-limit.js +44 -0
  99. package/esm/public/cli/commands/partition.js +44 -0
  100. package/esm/public/cli/commands/storage-log-module.d.ts +8 -0
  101. package/esm/public/cli/commands/storage-log-module.js +514 -0
  102. package/esm/public/cli/commands/storage-module.js +36 -14
  103. package/esm/public/cli/commands/transfer-log-module.d.ts +8 -0
  104. package/esm/public/cli/commands/transfer-log-module.js +514 -0
  105. package/esm/public/cli/commands.js +83 -101
  106. package/esm/public/cli/executor.d.ts +72 -125
  107. package/esm/public/orm/index.d.ts +102 -153
  108. package/esm/public/orm/index.js +59 -55
  109. package/esm/public/orm/input-types.d.ts +6255 -3877
  110. package/esm/public/orm/input-types.js +24 -15
  111. package/esm/public/orm/models/agentModule.d.ts +54 -0
  112. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  113. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  114. package/esm/public/orm/models/appLimitEvent.js +46 -1
  115. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  116. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  117. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  118. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  119. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  120. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  121. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  122. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  123. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  124. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  125. package/esm/public/orm/models/functionModule.d.ts +54 -0
  126. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  127. package/esm/public/orm/models/graphModule.d.ts +54 -0
  128. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  129. package/esm/public/orm/models/index.d.ts +29 -27
  130. package/esm/public/orm/models/index.js +29 -27
  131. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  132. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  133. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  134. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  135. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  136. package/esm/public/orm/models/namespaceModule.js +100 -0
  137. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  138. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  139. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  140. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  141. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  142. package/esm/public/orm/models/transferLogModule.js +100 -0
  143. package/esm/public/orm/mutation/index.d.ts +69 -133
  144. package/esm/public/orm/mutation/index.js +78 -174
  145. package/esm/public/orm/query/index.d.ts +22 -71
  146. package/esm/public/orm/query/index.js +36 -124
  147. package/objects/orm/index.d.ts +1 -1
  148. package/objects/orm/index.js +2 -1
  149. package/package.json +6 -6
  150. package/{esm/public/cli/commands/agent-task.d.ts → public/cli/commands/agent-module.d.ts} +1 -1
  151. package/public/cli/commands/agent-module.js +692 -0
  152. package/public/cli/commands/app-limit-event.js +248 -2
  153. package/public/cli/commands/app-limit.js +44 -0
  154. package/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  155. package/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  156. package/public/cli/commands/audit-log-auth.d.ts +8 -0
  157. package/public/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  158. package/public/cli/commands/billing-module.js +88 -0
  159. package/public/cli/commands/compute-log-module.d.ts +8 -0
  160. package/public/cli/commands/compute-log-module.js +516 -0
  161. package/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  162. package/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  163. package/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  164. package/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  165. package/public/cli/commands/construct-blueprint.js +1 -1
  166. package/{esm/admin/cli/commands/usage-snapshot.d.ts → public/cli/commands/db-usage-module.d.ts} +1 -1
  167. package/public/cli/commands/db-usage-module.js +560 -0
  168. package/public/cli/commands/entity-type-provision.js +386 -34
  169. package/public/cli/commands/field.js +4 -26
  170. package/public/cli/commands/function-module.d.ts +8 -0
  171. package/public/cli/commands/function-module.js +780 -0
  172. package/{esm/auth/cli/commands/audit-log.d.ts → public/cli/commands/graph-module.d.ts} +1 -1
  173. package/public/cli/commands/graph-module.js +586 -0
  174. package/public/cli/commands/inference-log-module.d.ts +8 -0
  175. package/public/cli/commands/inference-log-module.js +516 -0
  176. package/public/cli/commands/memberships-module.js +22 -0
  177. package/public/cli/commands/merkle-store-module.d.ts +8 -0
  178. package/public/cli/commands/merkle-store-module.js +500 -0
  179. package/public/cli/commands/namespace-module.d.ts +8 -0
  180. package/public/cli/commands/namespace-module.js +560 -0
  181. package/public/cli/commands/org-limit-aggregate.js +44 -0
  182. package/public/cli/commands/org-limit-event.js +248 -2
  183. package/public/cli/commands/org-limit.js +44 -0
  184. package/public/cli/commands/partition.js +44 -0
  185. package/public/cli/commands/storage-log-module.d.ts +8 -0
  186. package/public/cli/commands/storage-log-module.js +516 -0
  187. package/public/cli/commands/storage-module.js +36 -14
  188. package/public/cli/commands/transfer-log-module.d.ts +8 -0
  189. package/public/cli/commands/transfer-log-module.js +516 -0
  190. package/public/cli/commands.js +83 -101
  191. package/public/cli/executor.d.ts +72 -125
  192. package/public/orm/index.d.ts +102 -153
  193. package/public/orm/index.js +60 -55
  194. package/public/orm/input-types.d.ts +6255 -3877
  195. package/public/orm/input-types.js +24 -15
  196. package/public/orm/models/agentModule.d.ts +54 -0
  197. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  198. package/public/orm/models/appLimitEvent.d.ts +26 -2
  199. package/public/orm/models/appLimitEvent.js +45 -0
  200. package/public/orm/models/auditLogAuth.d.ts +54 -0
  201. package/{admin/orm/models/usageSnapshot.js → public/orm/models/auditLogAuth.js} +27 -27
  202. package/public/orm/models/computeLogModule.d.ts +54 -0
  203. package/{auth/orm/models/auditLog.js → public/orm/models/computeLogModule.js} +27 -27
  204. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  205. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  206. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  207. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  208. package/public/orm/models/dbUsageModule.d.ts +54 -0
  209. package/public/orm/models/{usageSnapshot.js → dbUsageModule.js} +27 -27
  210. package/public/orm/models/functionModule.d.ts +54 -0
  211. package/public/orm/models/functionModule.js +104 -0
  212. package/public/orm/models/graphModule.d.ts +54 -0
  213. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  214. package/public/orm/models/index.d.ts +29 -27
  215. package/public/orm/models/index.js +61 -57
  216. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  217. package/public/orm/models/inferenceLogModule.js +104 -0
  218. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  219. package/public/orm/models/merkleStoreModule.js +104 -0
  220. package/public/orm/models/namespaceModule.d.ts +54 -0
  221. package/public/orm/models/namespaceModule.js +104 -0
  222. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  223. package/public/orm/models/orgLimitEvent.js +45 -0
  224. package/public/orm/models/storageLogModule.d.ts +54 -0
  225. package/public/orm/models/storageLogModule.js +104 -0
  226. package/public/orm/models/transferLogModule.d.ts +54 -0
  227. package/public/orm/models/transferLogModule.js +104 -0
  228. package/public/orm/mutation/index.d.ts +69 -133
  229. package/public/orm/mutation/index.js +78 -174
  230. package/public/orm/query/index.d.ts +22 -71
  231. package/public/orm/query/index.js +36 -124
  232. package/admin/cli/commands/usage-snapshot.js +0 -316
  233. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  234. package/auth/orm/models/auditLog.d.ts +0 -54
  235. package/esm/admin/cli/commands/usage-snapshot.js +0 -314
  236. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  237. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  238. package/esm/public/cli/commands/agent-message.js +0 -324
  239. package/esm/public/cli/commands/agent-task.js +0 -368
  240. package/esm/public/cli/commands/agent-thread.js +0 -372
  241. package/esm/public/cli/commands/audit-log.d.ts +0 -8
  242. package/esm/public/cli/commands/commit.d.ts +0 -8
  243. package/esm/public/cli/commands/commit.js +0 -380
  244. package/esm/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  245. package/esm/public/cli/commands/freeze-objects.d.ts +0 -8
  246. package/esm/public/cli/commands/freeze-objects.js +0 -34
  247. package/esm/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  248. package/esm/public/cli/commands/get-all-objects-from-root.js +0 -52
  249. package/esm/public/cli/commands/get-all-record.d.ts +0 -8
  250. package/esm/public/cli/commands/get-all-record.js +0 -124
  251. package/esm/public/cli/commands/get-object-at-path.d.ts +0 -8
  252. package/esm/public/cli/commands/get-object-at-path.js +0 -47
  253. package/esm/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  254. package/esm/public/cli/commands/get-path-objects-from-root.js +0 -57
  255. package/esm/public/cli/commands/init-empty-repo.d.ts +0 -8
  256. package/esm/public/cli/commands/init-empty-repo.js +0 -34
  257. package/esm/public/cli/commands/insert-node-at-path.d.ts +0 -8
  258. package/esm/public/cli/commands/insert-node-at-path.js +0 -34
  259. package/esm/public/cli/commands/object.d.ts +0 -8
  260. package/esm/public/cli/commands/ref.d.ts +0 -8
  261. package/esm/public/cli/commands/ref.js +0 -290
  262. package/esm/public/cli/commands/remove-node-at-path.d.ts +0 -8
  263. package/esm/public/cli/commands/remove-node-at-path.js +0 -34
  264. package/esm/public/cli/commands/rev-parse.d.ts +0 -8
  265. package/esm/public/cli/commands/set-and-commit.d.ts +0 -8
  266. package/esm/public/cli/commands/set-and-commit.js +0 -34
  267. package/esm/public/cli/commands/set-data-at-path.d.ts +0 -8
  268. package/esm/public/cli/commands/set-data-at-path.js +0 -34
  269. package/esm/public/cli/commands/set-props-and-commit.d.ts +0 -8
  270. package/esm/public/cli/commands/set-props-and-commit.js +0 -34
  271. package/esm/public/cli/commands/store.d.ts +0 -8
  272. package/esm/public/cli/commands/store.js +0 -276
  273. package/esm/public/cli/commands/update-node-at-path.d.ts +0 -8
  274. package/esm/public/cli/commands/update-node-at-path.js +0 -34
  275. package/esm/public/cli/commands/usage-snapshot.d.ts +0 -8
  276. package/esm/public/cli/commands/usage-snapshot.js +0 -314
  277. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  278. package/esm/public/orm/models/agentTask.d.ts +0 -54
  279. package/esm/public/orm/models/agentThread.d.ts +0 -54
  280. package/esm/public/orm/models/auditLog.d.ts +0 -54
  281. package/esm/public/orm/models/commit.d.ts +0 -54
  282. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  283. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  284. package/esm/public/orm/models/getAllRecord.js +0 -55
  285. package/esm/public/orm/models/object.d.ts +0 -54
  286. package/esm/public/orm/models/object.js +0 -90
  287. package/esm/public/orm/models/ref.d.ts +0 -54
  288. package/esm/public/orm/models/ref.js +0 -100
  289. package/esm/public/orm/models/store.d.ts +0 -54
  290. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  291. package/esm/public/orm/models/usageSnapshot.js +0 -100
  292. package/public/cli/commands/agent-message.d.ts +0 -8
  293. package/public/cli/commands/agent-message.js +0 -326
  294. package/public/cli/commands/agent-task.d.ts +0 -8
  295. package/public/cli/commands/agent-task.js +0 -370
  296. package/public/cli/commands/agent-thread.d.ts +0 -8
  297. package/public/cli/commands/agent-thread.js +0 -374
  298. package/public/cli/commands/audit-log.d.ts +0 -8
  299. package/public/cli/commands/commit.d.ts +0 -8
  300. package/public/cli/commands/commit.js +0 -382
  301. package/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  302. package/public/cli/commands/freeze-objects.d.ts +0 -8
  303. package/public/cli/commands/freeze-objects.js +0 -36
  304. package/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  305. package/public/cli/commands/get-all-objects-from-root.js +0 -54
  306. package/public/cli/commands/get-all-record.d.ts +0 -8
  307. package/public/cli/commands/get-all-record.js +0 -126
  308. package/public/cli/commands/get-object-at-path.d.ts +0 -8
  309. package/public/cli/commands/get-object-at-path.js +0 -49
  310. package/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  311. package/public/cli/commands/get-path-objects-from-root.js +0 -59
  312. package/public/cli/commands/init-empty-repo.d.ts +0 -8
  313. package/public/cli/commands/init-empty-repo.js +0 -36
  314. package/public/cli/commands/insert-node-at-path.d.ts +0 -8
  315. package/public/cli/commands/insert-node-at-path.js +0 -36
  316. package/public/cli/commands/object.d.ts +0 -8
  317. package/public/cli/commands/ref.d.ts +0 -8
  318. package/public/cli/commands/ref.js +0 -292
  319. package/public/cli/commands/remove-node-at-path.d.ts +0 -8
  320. package/public/cli/commands/remove-node-at-path.js +0 -36
  321. package/public/cli/commands/rev-parse.d.ts +0 -8
  322. package/public/cli/commands/set-and-commit.d.ts +0 -8
  323. package/public/cli/commands/set-and-commit.js +0 -36
  324. package/public/cli/commands/set-data-at-path.d.ts +0 -8
  325. package/public/cli/commands/set-data-at-path.js +0 -36
  326. package/public/cli/commands/set-props-and-commit.d.ts +0 -8
  327. package/public/cli/commands/set-props-and-commit.js +0 -36
  328. package/public/cli/commands/store.d.ts +0 -8
  329. package/public/cli/commands/store.js +0 -278
  330. package/public/cli/commands/update-node-at-path.d.ts +0 -8
  331. package/public/cli/commands/update-node-at-path.js +0 -36
  332. package/public/cli/commands/usage-snapshot.d.ts +0 -8
  333. package/public/cli/commands/usage-snapshot.js +0 -316
  334. package/public/orm/models/agentMessage.d.ts +0 -54
  335. package/public/orm/models/agentTask.d.ts +0 -54
  336. package/public/orm/models/agentThread.d.ts +0 -54
  337. package/public/orm/models/auditLog.d.ts +0 -54
  338. package/public/orm/models/auditLog.js +0 -104
  339. package/public/orm/models/commit.d.ts +0 -54
  340. package/public/orm/models/commit.js +0 -104
  341. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  342. package/public/orm/models/getAllRecord.d.ts +0 -30
  343. package/public/orm/models/getAllRecord.js +0 -59
  344. package/public/orm/models/object.d.ts +0 -54
  345. package/public/orm/models/object.js +0 -94
  346. package/public/orm/models/ref.d.ts +0 -54
  347. package/public/orm/models/store.d.ts +0 -54
  348. package/public/orm/models/store.js +0 -104
  349. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -8,10 +8,8 @@ import contextCmd from './commands/context';
8
8
  import authCmd from './commands/auth';
9
9
  import orgGetManagersRecordCmd from './commands/org-get-managers-record';
10
10
  import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record';
11
- import getAllRecordCmd from './commands/get-all-record';
12
11
  import appPermissionCmd from './commands/app-permission';
13
12
  import orgPermissionCmd from './commands/org-permission';
14
- import objectCmd from './commands/object';
15
13
  import databaseCmd from './commands/database';
16
14
  import schemaCmd from './commands/schema';
17
15
  import tableCmd from './commands/table';
@@ -36,6 +34,7 @@ import relationProvisionCmd from './commands/relation-provision';
36
34
  import sessionSecretsModuleCmd from './commands/session-secrets-module';
37
35
  import identityProvidersModuleCmd from './commands/identity-providers-module';
38
36
  import realtimeModuleCmd from './commands/realtime-module';
37
+ import configSecretsOrgModuleCmd from './commands/config-secrets-org-module';
39
38
  import schemaGrantCmd from './commands/schema-grant';
40
39
  import defaultPrivilegeCmd from './commands/default-privilege';
41
40
  import enumCmd from './commands/enum';
@@ -47,9 +46,11 @@ import siteMetadatumCmd from './commands/site-metadatum';
47
46
  import siteModuleCmd from './commands/site-module';
48
47
  import siteThemeCmd from './commands/site-theme';
49
48
  import corsSettingCmd from './commands/cors-setting';
49
+ import merkleStoreModuleCmd from './commands/merkle-store-module';
50
+ import graphModuleCmd from './commands/graph-module';
50
51
  import triggerFunctionCmd from './commands/trigger-function';
51
- import databaseTransferCmd from './commands/database-transfer';
52
52
  import partitionCmd from './commands/partition';
53
+ import databaseTransferCmd from './commands/database-transfer';
53
54
  import apiCmd from './commands/api';
54
55
  import siteCmd from './commands/site';
55
56
  import appCmd from './commands/app';
@@ -60,7 +61,7 @@ import cryptoAuthModuleCmd from './commands/crypto-auth-module';
60
61
  import defaultIdsModuleCmd from './commands/default-ids-module';
61
62
  import denormalizedTableFieldCmd from './commands/denormalized-table-field';
62
63
  import emailsModuleCmd from './commands/emails-module';
63
- import encryptedSecretsModuleCmd from './commands/encrypted-secrets-module';
64
+ import configSecretsUserModuleCmd from './commands/config-secrets-user-module';
64
65
  import invitesModuleCmd from './commands/invites-module';
65
66
  import eventsModuleCmd from './commands/events-module';
66
67
  import limitsModuleCmd from './commands/limits-module';
@@ -81,6 +82,14 @@ import entityTypeProvisionCmd from './commands/entity-type-provision';
81
82
  import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module';
82
83
  import webauthnAuthModuleCmd from './commands/webauthn-auth-module';
83
84
  import notificationsModuleCmd from './commands/notifications-module';
85
+ import inferenceLogModuleCmd from './commands/inference-log-module';
86
+ import computeLogModuleCmd from './commands/compute-log-module';
87
+ import transferLogModuleCmd from './commands/transfer-log-module';
88
+ import storageLogModuleCmd from './commands/storage-log-module';
89
+ import dbUsageModuleCmd from './commands/db-usage-module';
90
+ import agentModuleCmd from './commands/agent-module';
91
+ import namespaceModuleCmd from './commands/namespace-module';
92
+ import functionModuleCmd from './commands/function-module';
84
93
  import databaseProvisionModuleCmd from './commands/database-provision-module';
85
94
  import appAdminGrantCmd from './commands/app-admin-grant';
86
95
  import appOwnerGrantCmd from './commands/app-owner-grant';
@@ -110,48 +119,41 @@ import appInviteCmd from './commands/app-invite';
110
119
  import appClaimedInviteCmd from './commands/app-claimed-invite';
111
120
  import orgInviteCmd from './commands/org-invite';
112
121
  import orgClaimedInviteCmd from './commands/org-claimed-invite';
113
- import auditLogCmd from './commands/audit-log';
114
- import agentThreadCmd from './commands/agent-thread';
115
- import agentMessageCmd from './commands/agent-message';
116
- import agentTaskCmd from './commands/agent-task';
117
- import roleTypeCmd from './commands/role-type';
122
+ import auditLogAuthCmd from './commands/audit-log-auth';
118
123
  import identityProviderCmd from './commands/identity-provider';
119
- import refCmd from './commands/ref';
120
- import storeCmd from './commands/store';
121
124
  import appPermissionDefaultCmd from './commands/app-permission-default';
122
- import appLimitCreditCodeCmd from './commands/app-limit-credit-code';
125
+ import roleTypeCmd from './commands/role-type';
126
+ import migrateFileCmd from './commands/migrate-file';
127
+ import devicesModuleCmd from './commands/devices-module';
128
+ import appMembershipDefaultCmd from './commands/app-membership-default';
129
+ import orgMembershipDefaultCmd from './commands/org-membership-default';
130
+ import nodeTypeRegistryCmd from './commands/node-type-registry';
123
131
  import appLimitCapsDefaultCmd from './commands/app-limit-caps-default';
124
132
  import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default';
125
133
  import appLimitCapCmd from './commands/app-limit-cap';
126
134
  import orgLimitCapCmd from './commands/org-limit-cap';
127
- import membershipTypeCmd from './commands/membership-type';
128
- import migrateFileCmd from './commands/migrate-file';
129
- import devicesModuleCmd from './commands/devices-module';
130
- import nodeTypeRegistryCmd from './commands/node-type-registry';
135
+ import userConnectedAccountCmd from './commands/user-connected-account';
131
136
  import appLimitDefaultCmd from './commands/app-limit-default';
132
137
  import orgLimitDefaultCmd from './commands/org-limit-default';
138
+ import appLimitCreditCodeCmd from './commands/app-limit-credit-code';
133
139
  import appLimitWarningCmd from './commands/app-limit-warning';
134
- import userConnectedAccountCmd from './commands/user-connected-account';
135
- import commitCmd from './commands/commit';
136
140
  import pubkeySettingCmd from './commands/pubkey-setting';
137
141
  import rateLimitsModuleCmd from './commands/rate-limits-module';
138
- import usageSnapshotCmd from './commands/usage-snapshot';
139
- import appMembershipDefaultCmd from './commands/app-membership-default';
140
- import orgMembershipDefaultCmd from './commands/org-membership-default';
142
+ import membershipTypeCmd from './commands/membership-type';
141
143
  import rlsSettingCmd from './commands/rls-setting';
142
- import appLimitEventCmd from './commands/app-limit-event';
143
- import orgLimitEventCmd from './commands/org-limit-event';
144
144
  import rlsModuleCmd from './commands/rls-module';
145
145
  import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module';
146
146
  import plansModuleCmd from './commands/plans-module';
147
147
  import sqlActionCmd from './commands/sql-action';
148
148
  import databaseSettingCmd from './commands/database-setting';
149
- import billingModuleCmd from './commands/billing-module';
150
- import astMigrationCmd from './commands/ast-migration';
151
- import userCmd from './commands/user';
152
149
  import orgMembershipSettingCmd from './commands/org-membership-setting';
153
- import webauthnSettingCmd from './commands/webauthn-setting';
150
+ import appLimitEventCmd from './commands/app-limit-event';
151
+ import orgLimitEventCmd from './commands/org-limit-event';
154
152
  import appMembershipCmd from './commands/app-membership';
153
+ import userCmd from './commands/user';
154
+ import astMigrationCmd from './commands/ast-migration';
155
+ import webauthnSettingCmd from './commands/webauthn-setting';
156
+ import billingModuleCmd from './commands/billing-module';
155
157
  import billingProviderModuleCmd from './commands/billing-provider-module';
156
158
  import hierarchyModuleCmd from './commands/hierarchy-module';
157
159
  import currentUserIdCmd from './commands/current-user-id';
@@ -160,19 +162,16 @@ import currentIpAddressCmd from './commands/current-ip-address';
160
162
  import requireStepUpCmd from './commands/require-step-up';
161
163
  import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask';
162
164
  import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask';
163
- import revParseCmd from './commands/rev-parse';
165
+ import applyRegistryDefaultsCmd from './commands/apply-registry-defaults';
164
166
  import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field';
167
+ import resolveBlueprintTableCmd from './commands/resolve-blueprint-table';
165
168
  import orgIsManagerOfCmd from './commands/org-is-manager-of';
166
169
  import appPermissionsGetMaskCmd from './commands/app-permissions-get-mask';
167
170
  import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask';
168
- import resolveBlueprintTableCmd from './commands/resolve-blueprint-table';
169
171
  import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names';
170
172
  import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names';
171
173
  import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask';
172
174
  import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask';
173
- import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root';
174
- import getPathObjectsFromRootCmd from './commands/get-path-objects-from-root';
175
- import getObjectAtPathCmd from './commands/get-object-at-path';
176
175
  import currentUserCmd from './commands/current-user';
177
176
  import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email';
178
177
  import signOutCmd from './commands/sign-out';
@@ -190,48 +189,38 @@ import checkPasswordCmd from './commands/check-password';
190
189
  import confirmDeleteAccountCmd from './commands/confirm-delete-account';
191
190
  import setPasswordCmd from './commands/set-password';
192
191
  import verifyEmailCmd from './commands/verify-email';
193
- import freezeObjectsCmd from './commands/freeze-objects';
194
- import initEmptyRepoCmd from './commands/init-empty-repo';
195
192
  import constructBlueprintCmd from './commands/construct-blueprint';
196
193
  import provisionNewUserCmd from './commands/provision-new-user';
197
194
  import resetPasswordCmd from './commands/reset-password';
198
- import removeNodeAtPathCmd from './commands/remove-node-at-path';
199
- import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint';
200
- import provisionSpatialRelationCmd from './commands/provision-spatial-relation';
201
- import bootstrapUserCmd from './commands/bootstrap-user';
202
- import setFieldOrderCmd from './commands/set-field-order';
203
195
  import provisionCheckConstraintCmd from './commands/provision-check-constraint';
204
196
  import provisionUniqueConstraintCmd from './commands/provision-unique-constraint';
205
197
  import provisionFullTextSearchCmd from './commands/provision-full-text-search';
206
198
  import provisionIndexCmd from './commands/provision-index';
207
- import setDataAtPathCmd from './commands/set-data-at-path';
208
- import setPropsAndCommitCmd from './commands/set-props-and-commit';
209
- import provisionDatabaseWithUserCmd from './commands/provision-database-with-user';
210
- import insertNodeAtPathCmd from './commands/insert-node-at-path';
211
- import updateNodeAtPathCmd from './commands/update-node-at-path';
212
- import setAndCommitCmd from './commands/set-and-commit';
199
+ import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint';
200
+ import provisionSpatialRelationCmd from './commands/provision-spatial-relation';
201
+ import signInCrossOriginCmd from './commands/sign-in-cross-origin';
202
+ import bootstrapUserCmd from './commands/bootstrap-user';
203
+ import signUpCmd from './commands/sign-up';
204
+ import signInCmd from './commands/sign-in';
213
205
  import provisionRelationCmd from './commands/provision-relation';
206
+ import setFieldOrderCmd from './commands/set-field-order';
214
207
  import applyRlsCmd from './commands/apply-rls';
215
- import signInCrossOriginCmd from './commands/sign-in-cross-origin';
208
+ import provisionDatabaseWithUserCmd from './commands/provision-database-with-user';
216
209
  import createUserDatabaseCmd from './commands/create-user-database';
217
210
  import extendTokenExpiresCmd from './commands/extend-token-expires';
218
211
  import createApiKeyCmd from './commands/create-api-key';
219
- import sendVerificationEmailCmd from './commands/send-verification-email';
220
- import forgotPasswordCmd from './commands/forgot-password';
221
- import signUpCmd from './commands/sign-up';
222
212
  import requestCrossOriginTokenCmd from './commands/request-cross-origin-token';
223
- import signInCmd from './commands/sign-in';
224
213
  import provisionTableCmd from './commands/provision-table';
214
+ import sendVerificationEmailCmd from './commands/send-verification-email';
215
+ import forgotPasswordCmd from './commands/forgot-password';
225
216
  import provisionBucketCmd from './commands/provision-bucket';
226
217
  const createCommandMap = () => ({
227
218
  context: contextCmd,
228
219
  auth: authCmd,
229
220
  'org-get-managers-record': orgGetManagersRecordCmd,
230
221
  'org-get-subordinates-record': orgGetSubordinatesRecordCmd,
231
- 'get-all-record': getAllRecordCmd,
232
222
  'app-permission': appPermissionCmd,
233
223
  'org-permission': orgPermissionCmd,
234
- object: objectCmd,
235
224
  database: databaseCmd,
236
225
  schema: schemaCmd,
237
226
  table: tableCmd,
@@ -256,6 +245,7 @@ const createCommandMap = () => ({
256
245
  'session-secrets-module': sessionSecretsModuleCmd,
257
246
  'identity-providers-module': identityProvidersModuleCmd,
258
247
  'realtime-module': realtimeModuleCmd,
248
+ 'config-secrets-org-module': configSecretsOrgModuleCmd,
259
249
  'schema-grant': schemaGrantCmd,
260
250
  'default-privilege': defaultPrivilegeCmd,
261
251
  enum: enumCmd,
@@ -267,9 +257,11 @@ const createCommandMap = () => ({
267
257
  'site-module': siteModuleCmd,
268
258
  'site-theme': siteThemeCmd,
269
259
  'cors-setting': corsSettingCmd,
260
+ 'merkle-store-module': merkleStoreModuleCmd,
261
+ 'graph-module': graphModuleCmd,
270
262
  'trigger-function': triggerFunctionCmd,
271
- 'database-transfer': databaseTransferCmd,
272
263
  partition: partitionCmd,
264
+ 'database-transfer': databaseTransferCmd,
273
265
  api: apiCmd,
274
266
  site: siteCmd,
275
267
  app: appCmd,
@@ -280,7 +272,7 @@ const createCommandMap = () => ({
280
272
  'default-ids-module': defaultIdsModuleCmd,
281
273
  'denormalized-table-field': denormalizedTableFieldCmd,
282
274
  'emails-module': emailsModuleCmd,
283
- 'encrypted-secrets-module': encryptedSecretsModuleCmd,
275
+ 'config-secrets-user-module': configSecretsUserModuleCmd,
284
276
  'invites-module': invitesModuleCmd,
285
277
  'events-module': eventsModuleCmd,
286
278
  'limits-module': limitsModuleCmd,
@@ -301,6 +293,14 @@ const createCommandMap = () => ({
301
293
  'webauthn-credentials-module': webauthnCredentialsModuleCmd,
302
294
  'webauthn-auth-module': webauthnAuthModuleCmd,
303
295
  'notifications-module': notificationsModuleCmd,
296
+ 'inference-log-module': inferenceLogModuleCmd,
297
+ 'compute-log-module': computeLogModuleCmd,
298
+ 'transfer-log-module': transferLogModuleCmd,
299
+ 'storage-log-module': storageLogModuleCmd,
300
+ 'db-usage-module': dbUsageModuleCmd,
301
+ 'agent-module': agentModuleCmd,
302
+ 'namespace-module': namespaceModuleCmd,
303
+ 'function-module': functionModuleCmd,
304
304
  'database-provision-module': databaseProvisionModuleCmd,
305
305
  'app-admin-grant': appAdminGrantCmd,
306
306
  'app-owner-grant': appOwnerGrantCmd,
@@ -330,48 +330,41 @@ const createCommandMap = () => ({
330
330
  'app-claimed-invite': appClaimedInviteCmd,
331
331
  'org-invite': orgInviteCmd,
332
332
  'org-claimed-invite': orgClaimedInviteCmd,
333
- 'audit-log': auditLogCmd,
334
- 'agent-thread': agentThreadCmd,
335
- 'agent-message': agentMessageCmd,
336
- 'agent-task': agentTaskCmd,
337
- 'role-type': roleTypeCmd,
333
+ 'audit-log-auth': auditLogAuthCmd,
338
334
  'identity-provider': identityProviderCmd,
339
- ref: refCmd,
340
- store: storeCmd,
341
335
  'app-permission-default': appPermissionDefaultCmd,
342
- 'app-limit-credit-code': appLimitCreditCodeCmd,
336
+ 'role-type': roleTypeCmd,
337
+ 'migrate-file': migrateFileCmd,
338
+ 'devices-module': devicesModuleCmd,
339
+ 'app-membership-default': appMembershipDefaultCmd,
340
+ 'org-membership-default': orgMembershipDefaultCmd,
341
+ 'node-type-registry': nodeTypeRegistryCmd,
343
342
  'app-limit-caps-default': appLimitCapsDefaultCmd,
344
343
  'org-limit-caps-default': orgLimitCapsDefaultCmd,
345
344
  'app-limit-cap': appLimitCapCmd,
346
345
  'org-limit-cap': orgLimitCapCmd,
347
- 'membership-type': membershipTypeCmd,
348
- 'migrate-file': migrateFileCmd,
349
- 'devices-module': devicesModuleCmd,
350
- 'node-type-registry': nodeTypeRegistryCmd,
346
+ 'user-connected-account': userConnectedAccountCmd,
351
347
  'app-limit-default': appLimitDefaultCmd,
352
348
  'org-limit-default': orgLimitDefaultCmd,
349
+ 'app-limit-credit-code': appLimitCreditCodeCmd,
353
350
  'app-limit-warning': appLimitWarningCmd,
354
- 'user-connected-account': userConnectedAccountCmd,
355
- commit: commitCmd,
356
351
  'pubkey-setting': pubkeySettingCmd,
357
352
  'rate-limits-module': rateLimitsModuleCmd,
358
- 'usage-snapshot': usageSnapshotCmd,
359
- 'app-membership-default': appMembershipDefaultCmd,
360
- 'org-membership-default': orgMembershipDefaultCmd,
353
+ 'membership-type': membershipTypeCmd,
361
354
  'rls-setting': rlsSettingCmd,
362
- 'app-limit-event': appLimitEventCmd,
363
- 'org-limit-event': orgLimitEventCmd,
364
355
  'rls-module': rlsModuleCmd,
365
356
  'rate-limit-meters-module': rateLimitMetersModuleCmd,
366
357
  'plans-module': plansModuleCmd,
367
358
  'sql-action': sqlActionCmd,
368
359
  'database-setting': databaseSettingCmd,
369
- 'billing-module': billingModuleCmd,
370
- 'ast-migration': astMigrationCmd,
371
- user: userCmd,
372
360
  'org-membership-setting': orgMembershipSettingCmd,
373
- 'webauthn-setting': webauthnSettingCmd,
361
+ 'app-limit-event': appLimitEventCmd,
362
+ 'org-limit-event': orgLimitEventCmd,
374
363
  'app-membership': appMembershipCmd,
364
+ user: userCmd,
365
+ 'ast-migration': astMigrationCmd,
366
+ 'webauthn-setting': webauthnSettingCmd,
367
+ 'billing-module': billingModuleCmd,
375
368
  'billing-provider-module': billingProviderModuleCmd,
376
369
  'hierarchy-module': hierarchyModuleCmd,
377
370
  'current-user-id': currentUserIdCmd,
@@ -380,19 +373,16 @@ const createCommandMap = () => ({
380
373
  'require-step-up': requireStepUpCmd,
381
374
  'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd,
382
375
  'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd,
383
- 'rev-parse': revParseCmd,
376
+ 'apply-registry-defaults': applyRegistryDefaultsCmd,
384
377
  'resolve-blueprint-field': resolveBlueprintFieldCmd,
378
+ 'resolve-blueprint-table': resolveBlueprintTableCmd,
385
379
  'org-is-manager-of': orgIsManagerOfCmd,
386
380
  'app-permissions-get-mask': appPermissionsGetMaskCmd,
387
381
  'org-permissions-get-mask': orgPermissionsGetMaskCmd,
388
- 'resolve-blueprint-table': resolveBlueprintTableCmd,
389
382
  'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd,
390
383
  'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd,
391
384
  'app-permissions-get-by-mask': appPermissionsGetByMaskCmd,
392
385
  'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd,
393
- 'get-all-objects-from-root': getAllObjectsFromRootCmd,
394
- 'get-path-objects-from-root': getPathObjectsFromRootCmd,
395
- 'get-object-at-path': getObjectAtPathCmd,
396
386
  'current-user': currentUserCmd,
397
387
  'send-account-deletion-email': sendAccountDeletionEmailCmd,
398
388
  'sign-out': signOutCmd,
@@ -410,41 +400,33 @@ const createCommandMap = () => ({
410
400
  'confirm-delete-account': confirmDeleteAccountCmd,
411
401
  'set-password': setPasswordCmd,
412
402
  'verify-email': verifyEmailCmd,
413
- 'freeze-objects': freezeObjectsCmd,
414
- 'init-empty-repo': initEmptyRepoCmd,
415
403
  'construct-blueprint': constructBlueprintCmd,
416
404
  'provision-new-user': provisionNewUserCmd,
417
405
  'reset-password': resetPasswordCmd,
418
- 'remove-node-at-path': removeNodeAtPathCmd,
419
- 'copy-template-to-blueprint': copyTemplateToBlueprintCmd,
420
- 'provision-spatial-relation': provisionSpatialRelationCmd,
421
- 'bootstrap-user': bootstrapUserCmd,
422
- 'set-field-order': setFieldOrderCmd,
423
406
  'provision-check-constraint': provisionCheckConstraintCmd,
424
407
  'provision-unique-constraint': provisionUniqueConstraintCmd,
425
408
  'provision-full-text-search': provisionFullTextSearchCmd,
426
409
  'provision-index': provisionIndexCmd,
427
- 'set-data-at-path': setDataAtPathCmd,
428
- 'set-props-and-commit': setPropsAndCommitCmd,
429
- 'provision-database-with-user': provisionDatabaseWithUserCmd,
430
- 'insert-node-at-path': insertNodeAtPathCmd,
431
- 'update-node-at-path': updateNodeAtPathCmd,
432
- 'set-and-commit': setAndCommitCmd,
410
+ 'copy-template-to-blueprint': copyTemplateToBlueprintCmd,
411
+ 'provision-spatial-relation': provisionSpatialRelationCmd,
412
+ 'sign-in-cross-origin': signInCrossOriginCmd,
413
+ 'bootstrap-user': bootstrapUserCmd,
414
+ 'sign-up': signUpCmd,
415
+ 'sign-in': signInCmd,
433
416
  'provision-relation': provisionRelationCmd,
417
+ 'set-field-order': setFieldOrderCmd,
434
418
  'apply-rls': applyRlsCmd,
435
- 'sign-in-cross-origin': signInCrossOriginCmd,
419
+ 'provision-database-with-user': provisionDatabaseWithUserCmd,
436
420
  'create-user-database': createUserDatabaseCmd,
437
421
  'extend-token-expires': extendTokenExpiresCmd,
438
422
  'create-api-key': createApiKeyCmd,
439
- 'send-verification-email': sendVerificationEmailCmd,
440
- 'forgot-password': forgotPasswordCmd,
441
- 'sign-up': signUpCmd,
442
423
  'request-cross-origin-token': requestCrossOriginTokenCmd,
443
- 'sign-in': signInCmd,
444
424
  'provision-table': provisionTableCmd,
425
+ 'send-verification-email': sendVerificationEmailCmd,
426
+ 'forgot-password': forgotPasswordCmd,
445
427
  'provision-bucket': provisionBucketCmd,
446
428
  });
447
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
429
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n agent-module agentModule CRUD operations\n namespace-module namespaceModule CRUD operations\n function-module functionModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n membership-type membershipType CRUD operations\n rls-setting rlsSetting CRUD operations\n rls-module rlsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n app-membership appMembership CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n apply-registry-defaults applyRegistryDefaults\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n sign-in-cross-origin signInCrossOrigin\n bootstrap-user bootstrapUser\n sign-up signUp\n sign-in signIn\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n set-field-order setFieldOrder\n apply-rls applyRls\n provision-database-with-user provisionDatabaseWithUser\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
448
430
  export const commands = async (argv, prompter, options) => {
449
431
  if (argv.help || argv.h) {
450
432
  console.log(usage);