@constructive-sdk/cli 0.23.3 → 0.24.1

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 (350) hide show
  1. package/README.md +4 -0
  2. package/admin/cli/commands/app-limit-event.js +248 -2
  3. package/admin/cli/commands/app-limit.js +44 -0
  4. package/admin/cli/commands/org-limit-aggregate.js +44 -0
  5. package/admin/cli/commands/org-limit-event.js +248 -2
  6. package/admin/cli/commands/org-limit.js +44 -0
  7. package/admin/cli/commands.js +31 -33
  8. package/admin/cli/executor.d.ts +15 -16
  9. package/admin/orm/index.d.ts +31 -33
  10. package/admin/orm/index.js +32 -33
  11. package/admin/orm/input-types.d.ts +2090 -2039
  12. package/admin/orm/input-types.js +4 -4
  13. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  14. package/admin/orm/models/appLimitEvent.js +45 -0
  15. package/admin/orm/models/index.d.ts +15 -16
  16. package/admin/orm/models/index.js +31 -33
  17. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  18. package/admin/orm/models/orgLimitEvent.js +45 -0
  19. package/{esm/public/cli/commands/agent-message.d.ts → auth/cli/commands/audit-log-auth.d.ts} +1 -1
  20. package/auth/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  21. package/auth/cli/commands.js +5 -5
  22. package/auth/cli/executor.d.ts +6 -6
  23. package/auth/orm/index.d.ts +8 -8
  24. package/auth/orm/index.js +4 -3
  25. package/auth/orm/input-types.d.ts +94 -94
  26. package/auth/orm/input-types.js +1 -1
  27. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  28. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  29. package/auth/orm/models/index.d.ts +1 -1
  30. package/auth/orm/models/index.js +3 -3
  31. package/auth/orm/mutation/index.d.ts +9 -9
  32. package/auth/orm/mutation/index.js +12 -12
  33. package/esm/admin/cli/commands/app-limit-event.js +248 -2
  34. package/esm/admin/cli/commands/app-limit.js +44 -0
  35. package/esm/admin/cli/commands/org-limit-aggregate.js +44 -0
  36. package/esm/admin/cli/commands/org-limit-event.js +248 -2
  37. package/esm/admin/cli/commands/org-limit.js +44 -0
  38. package/esm/admin/cli/commands.js +31 -33
  39. package/esm/admin/cli/executor.d.ts +15 -16
  40. package/esm/admin/orm/index.d.ts +31 -33
  41. package/esm/admin/orm/index.js +31 -33
  42. package/esm/admin/orm/input-types.d.ts +2090 -2039
  43. package/esm/admin/orm/input-types.js +4 -4
  44. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  45. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  46. package/esm/admin/orm/models/index.d.ts +15 -16
  47. package/esm/admin/orm/models/index.js +15 -16
  48. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  49. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  50. package/esm/auth/cli/commands/audit-log-auth.d.ts +8 -0
  51. package/esm/{public/cli/commands/audit-log.js → auth/cli/commands/audit-log-auth.js} +14 -14
  52. package/esm/auth/cli/commands.js +5 -5
  53. package/esm/auth/cli/executor.d.ts +6 -6
  54. package/esm/auth/orm/index.d.ts +8 -8
  55. package/esm/auth/orm/index.js +3 -3
  56. package/esm/auth/orm/input-types.d.ts +94 -94
  57. package/esm/auth/orm/input-types.js +1 -1
  58. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  59. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  60. package/esm/auth/orm/models/index.d.ts +1 -1
  61. package/esm/auth/orm/models/index.js +1 -1
  62. package/esm/auth/orm/mutation/index.d.ts +9 -9
  63. package/esm/auth/orm/mutation/index.js +12 -12
  64. package/esm/objects/orm/index.d.ts +1 -1
  65. package/esm/objects/orm/index.js +1 -1
  66. package/esm/public/cli/commands/{agent-thread.d.ts → agent-module.d.ts} +1 -1
  67. package/esm/public/cli/commands/agent-module.js +690 -0
  68. package/esm/public/cli/commands/app-limit-event.js +248 -2
  69. package/esm/public/cli/commands/app-limit.js +44 -0
  70. package/esm/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  71. package/esm/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  72. package/esm/public/cli/commands/audit-log-auth.d.ts +8 -0
  73. package/esm/{auth/cli/commands/audit-log.js → public/cli/commands/audit-log-auth.js} +14 -14
  74. package/esm/public/cli/commands/billing-module.js +88 -0
  75. package/esm/public/cli/commands/compute-log-module.d.ts +8 -0
  76. package/esm/public/cli/commands/compute-log-module.js +514 -0
  77. package/esm/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  78. package/esm/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  79. package/esm/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  80. package/esm/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  81. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  82. package/{admin/cli/commands/usage-snapshot.d.ts → esm/public/cli/commands/db-usage-module.d.ts} +1 -1
  83. package/esm/public/cli/commands/db-usage-module.js +558 -0
  84. package/esm/public/cli/commands/entity-type-provision.js +386 -34
  85. package/esm/public/cli/commands/field.js +4 -26
  86. package/esm/public/cli/commands/function-module.d.ts +8 -0
  87. package/esm/public/cli/commands/function-module.js +778 -0
  88. package/{auth/cli/commands/audit-log.d.ts → esm/public/cli/commands/graph-module.d.ts} +1 -1
  89. package/esm/public/cli/commands/graph-module.js +584 -0
  90. package/esm/public/cli/commands/inference-log-module.d.ts +8 -0
  91. package/esm/public/cli/commands/inference-log-module.js +514 -0
  92. package/esm/public/cli/commands/memberships-module.js +22 -0
  93. package/esm/public/cli/commands/merkle-store-module.d.ts +8 -0
  94. package/esm/public/cli/commands/merkle-store-module.js +498 -0
  95. package/esm/public/cli/commands/namespace-module.d.ts +8 -0
  96. package/esm/public/cli/commands/namespace-module.js +558 -0
  97. package/esm/public/cli/commands/org-limit-aggregate.js +44 -0
  98. package/esm/public/cli/commands/org-limit-event.js +248 -2
  99. package/esm/public/cli/commands/org-limit.js +44 -0
  100. package/esm/public/cli/commands/partition.js +44 -0
  101. package/esm/public/cli/commands/storage-log-module.d.ts +8 -0
  102. package/esm/public/cli/commands/storage-log-module.js +514 -0
  103. package/esm/public/cli/commands/storage-module.js +36 -14
  104. package/esm/public/cli/commands/transfer-log-module.d.ts +8 -0
  105. package/esm/public/cli/commands/transfer-log-module.js +514 -0
  106. package/esm/public/cli/commands.js +83 -101
  107. package/esm/public/cli/executor.d.ts +72 -125
  108. package/esm/public/orm/index.d.ts +102 -153
  109. package/esm/public/orm/index.js +59 -55
  110. package/esm/public/orm/input-types.d.ts +6255 -3877
  111. package/esm/public/orm/input-types.js +24 -15
  112. package/esm/public/orm/models/agentModule.d.ts +54 -0
  113. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  114. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  115. package/esm/public/orm/models/appLimitEvent.js +46 -1
  116. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  117. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  118. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  119. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  120. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  121. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  122. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  123. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  124. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  125. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  126. package/esm/public/orm/models/functionModule.d.ts +54 -0
  127. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  128. package/esm/public/orm/models/graphModule.d.ts +54 -0
  129. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  130. package/esm/public/orm/models/index.d.ts +29 -27
  131. package/esm/public/orm/models/index.js +29 -27
  132. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  133. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  134. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  135. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  136. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  137. package/esm/public/orm/models/namespaceModule.js +100 -0
  138. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  139. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  140. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  141. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  142. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  143. package/esm/public/orm/models/transferLogModule.js +100 -0
  144. package/esm/public/orm/mutation/index.d.ts +69 -133
  145. package/esm/public/orm/mutation/index.js +78 -174
  146. package/esm/public/orm/query/index.d.ts +22 -71
  147. package/esm/public/orm/query/index.js +36 -124
  148. package/objects/orm/index.d.ts +1 -1
  149. package/objects/orm/index.js +2 -1
  150. package/package.json +6 -6
  151. package/{esm/public/cli/commands/agent-task.d.ts → public/cli/commands/agent-module.d.ts} +1 -1
  152. package/public/cli/commands/agent-module.js +692 -0
  153. package/public/cli/commands/app-limit-event.js +248 -2
  154. package/public/cli/commands/app-limit.js +44 -0
  155. package/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  156. package/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  157. package/public/cli/commands/audit-log-auth.d.ts +8 -0
  158. package/public/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  159. package/public/cli/commands/billing-module.js +88 -0
  160. package/public/cli/commands/compute-log-module.d.ts +8 -0
  161. package/public/cli/commands/compute-log-module.js +516 -0
  162. package/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  163. package/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  164. package/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  165. package/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  166. package/public/cli/commands/construct-blueprint.js +1 -1
  167. package/{esm/admin/cli/commands/usage-snapshot.d.ts → public/cli/commands/db-usage-module.d.ts} +1 -1
  168. package/public/cli/commands/db-usage-module.js +560 -0
  169. package/public/cli/commands/entity-type-provision.js +386 -34
  170. package/public/cli/commands/field.js +4 -26
  171. package/public/cli/commands/function-module.d.ts +8 -0
  172. package/public/cli/commands/function-module.js +780 -0
  173. package/{esm/auth/cli/commands/audit-log.d.ts → public/cli/commands/graph-module.d.ts} +1 -1
  174. package/public/cli/commands/graph-module.js +586 -0
  175. package/public/cli/commands/inference-log-module.d.ts +8 -0
  176. package/public/cli/commands/inference-log-module.js +516 -0
  177. package/public/cli/commands/memberships-module.js +22 -0
  178. package/public/cli/commands/merkle-store-module.d.ts +8 -0
  179. package/public/cli/commands/merkle-store-module.js +500 -0
  180. package/public/cli/commands/namespace-module.d.ts +8 -0
  181. package/public/cli/commands/namespace-module.js +560 -0
  182. package/public/cli/commands/org-limit-aggregate.js +44 -0
  183. package/public/cli/commands/org-limit-event.js +248 -2
  184. package/public/cli/commands/org-limit.js +44 -0
  185. package/public/cli/commands/partition.js +44 -0
  186. package/public/cli/commands/storage-log-module.d.ts +8 -0
  187. package/public/cli/commands/storage-log-module.js +516 -0
  188. package/public/cli/commands/storage-module.js +36 -14
  189. package/public/cli/commands/transfer-log-module.d.ts +8 -0
  190. package/public/cli/commands/transfer-log-module.js +516 -0
  191. package/public/cli/commands.js +83 -101
  192. package/public/cli/executor.d.ts +72 -125
  193. package/public/orm/index.d.ts +102 -153
  194. package/public/orm/index.js +60 -55
  195. package/public/orm/input-types.d.ts +6255 -3877
  196. package/public/orm/input-types.js +24 -15
  197. package/public/orm/models/agentModule.d.ts +54 -0
  198. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  199. package/public/orm/models/appLimitEvent.d.ts +26 -2
  200. package/public/orm/models/appLimitEvent.js +45 -0
  201. package/public/orm/models/auditLogAuth.d.ts +54 -0
  202. package/{admin/orm/models/usageSnapshot.js → public/orm/models/auditLogAuth.js} +27 -27
  203. package/public/orm/models/computeLogModule.d.ts +54 -0
  204. package/{auth/orm/models/auditLog.js → public/orm/models/computeLogModule.js} +27 -27
  205. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  206. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  207. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  208. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  209. package/public/orm/models/dbUsageModule.d.ts +54 -0
  210. package/public/orm/models/{usageSnapshot.js → dbUsageModule.js} +27 -27
  211. package/public/orm/models/functionModule.d.ts +54 -0
  212. package/public/orm/models/functionModule.js +104 -0
  213. package/public/orm/models/graphModule.d.ts +54 -0
  214. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  215. package/public/orm/models/index.d.ts +29 -27
  216. package/public/orm/models/index.js +61 -57
  217. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  218. package/public/orm/models/inferenceLogModule.js +104 -0
  219. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  220. package/public/orm/models/merkleStoreModule.js +104 -0
  221. package/public/orm/models/namespaceModule.d.ts +54 -0
  222. package/public/orm/models/namespaceModule.js +104 -0
  223. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  224. package/public/orm/models/orgLimitEvent.js +45 -0
  225. package/public/orm/models/storageLogModule.d.ts +54 -0
  226. package/public/orm/models/storageLogModule.js +104 -0
  227. package/public/orm/models/transferLogModule.d.ts +54 -0
  228. package/public/orm/models/transferLogModule.js +104 -0
  229. package/public/orm/mutation/index.d.ts +69 -133
  230. package/public/orm/mutation/index.js +78 -174
  231. package/public/orm/query/index.d.ts +22 -71
  232. package/public/orm/query/index.js +36 -124
  233. package/admin/cli/commands/usage-snapshot.js +0 -316
  234. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  235. package/auth/orm/models/auditLog.d.ts +0 -54
  236. package/esm/admin/cli/commands/usage-snapshot.js +0 -314
  237. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  238. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  239. package/esm/public/cli/commands/agent-message.js +0 -324
  240. package/esm/public/cli/commands/agent-task.js +0 -368
  241. package/esm/public/cli/commands/agent-thread.js +0 -372
  242. package/esm/public/cli/commands/audit-log.d.ts +0 -8
  243. package/esm/public/cli/commands/commit.d.ts +0 -8
  244. package/esm/public/cli/commands/commit.js +0 -380
  245. package/esm/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  246. package/esm/public/cli/commands/freeze-objects.d.ts +0 -8
  247. package/esm/public/cli/commands/freeze-objects.js +0 -34
  248. package/esm/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  249. package/esm/public/cli/commands/get-all-objects-from-root.js +0 -52
  250. package/esm/public/cli/commands/get-all-record.d.ts +0 -8
  251. package/esm/public/cli/commands/get-all-record.js +0 -124
  252. package/esm/public/cli/commands/get-object-at-path.d.ts +0 -8
  253. package/esm/public/cli/commands/get-object-at-path.js +0 -47
  254. package/esm/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  255. package/esm/public/cli/commands/get-path-objects-from-root.js +0 -57
  256. package/esm/public/cli/commands/init-empty-repo.d.ts +0 -8
  257. package/esm/public/cli/commands/init-empty-repo.js +0 -34
  258. package/esm/public/cli/commands/insert-node-at-path.d.ts +0 -8
  259. package/esm/public/cli/commands/insert-node-at-path.js +0 -34
  260. package/esm/public/cli/commands/object.d.ts +0 -8
  261. package/esm/public/cli/commands/ref.d.ts +0 -8
  262. package/esm/public/cli/commands/ref.js +0 -290
  263. package/esm/public/cli/commands/remove-node-at-path.d.ts +0 -8
  264. package/esm/public/cli/commands/remove-node-at-path.js +0 -34
  265. package/esm/public/cli/commands/rev-parse.d.ts +0 -8
  266. package/esm/public/cli/commands/set-and-commit.d.ts +0 -8
  267. package/esm/public/cli/commands/set-and-commit.js +0 -34
  268. package/esm/public/cli/commands/set-data-at-path.d.ts +0 -8
  269. package/esm/public/cli/commands/set-data-at-path.js +0 -34
  270. package/esm/public/cli/commands/set-props-and-commit.d.ts +0 -8
  271. package/esm/public/cli/commands/set-props-and-commit.js +0 -34
  272. package/esm/public/cli/commands/store.d.ts +0 -8
  273. package/esm/public/cli/commands/store.js +0 -276
  274. package/esm/public/cli/commands/update-node-at-path.d.ts +0 -8
  275. package/esm/public/cli/commands/update-node-at-path.js +0 -34
  276. package/esm/public/cli/commands/usage-snapshot.d.ts +0 -8
  277. package/esm/public/cli/commands/usage-snapshot.js +0 -314
  278. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  279. package/esm/public/orm/models/agentTask.d.ts +0 -54
  280. package/esm/public/orm/models/agentThread.d.ts +0 -54
  281. package/esm/public/orm/models/auditLog.d.ts +0 -54
  282. package/esm/public/orm/models/commit.d.ts +0 -54
  283. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  284. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  285. package/esm/public/orm/models/getAllRecord.js +0 -55
  286. package/esm/public/orm/models/object.d.ts +0 -54
  287. package/esm/public/orm/models/object.js +0 -90
  288. package/esm/public/orm/models/ref.d.ts +0 -54
  289. package/esm/public/orm/models/ref.js +0 -100
  290. package/esm/public/orm/models/store.d.ts +0 -54
  291. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  292. package/esm/public/orm/models/usageSnapshot.js +0 -100
  293. package/public/cli/commands/agent-message.d.ts +0 -8
  294. package/public/cli/commands/agent-message.js +0 -326
  295. package/public/cli/commands/agent-task.d.ts +0 -8
  296. package/public/cli/commands/agent-task.js +0 -370
  297. package/public/cli/commands/agent-thread.d.ts +0 -8
  298. package/public/cli/commands/agent-thread.js +0 -374
  299. package/public/cli/commands/audit-log.d.ts +0 -8
  300. package/public/cli/commands/commit.d.ts +0 -8
  301. package/public/cli/commands/commit.js +0 -382
  302. package/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  303. package/public/cli/commands/freeze-objects.d.ts +0 -8
  304. package/public/cli/commands/freeze-objects.js +0 -36
  305. package/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  306. package/public/cli/commands/get-all-objects-from-root.js +0 -54
  307. package/public/cli/commands/get-all-record.d.ts +0 -8
  308. package/public/cli/commands/get-all-record.js +0 -126
  309. package/public/cli/commands/get-object-at-path.d.ts +0 -8
  310. package/public/cli/commands/get-object-at-path.js +0 -49
  311. package/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  312. package/public/cli/commands/get-path-objects-from-root.js +0 -59
  313. package/public/cli/commands/init-empty-repo.d.ts +0 -8
  314. package/public/cli/commands/init-empty-repo.js +0 -36
  315. package/public/cli/commands/insert-node-at-path.d.ts +0 -8
  316. package/public/cli/commands/insert-node-at-path.js +0 -36
  317. package/public/cli/commands/object.d.ts +0 -8
  318. package/public/cli/commands/ref.d.ts +0 -8
  319. package/public/cli/commands/ref.js +0 -292
  320. package/public/cli/commands/remove-node-at-path.d.ts +0 -8
  321. package/public/cli/commands/remove-node-at-path.js +0 -36
  322. package/public/cli/commands/rev-parse.d.ts +0 -8
  323. package/public/cli/commands/set-and-commit.d.ts +0 -8
  324. package/public/cli/commands/set-and-commit.js +0 -36
  325. package/public/cli/commands/set-data-at-path.d.ts +0 -8
  326. package/public/cli/commands/set-data-at-path.js +0 -36
  327. package/public/cli/commands/set-props-and-commit.d.ts +0 -8
  328. package/public/cli/commands/set-props-and-commit.js +0 -36
  329. package/public/cli/commands/store.d.ts +0 -8
  330. package/public/cli/commands/store.js +0 -278
  331. package/public/cli/commands/update-node-at-path.d.ts +0 -8
  332. package/public/cli/commands/update-node-at-path.js +0 -36
  333. package/public/cli/commands/usage-snapshot.d.ts +0 -8
  334. package/public/cli/commands/usage-snapshot.js +0 -316
  335. package/public/orm/models/agentMessage.d.ts +0 -54
  336. package/public/orm/models/agentTask.d.ts +0 -54
  337. package/public/orm/models/agentThread.d.ts +0 -54
  338. package/public/orm/models/auditLog.d.ts +0 -54
  339. package/public/orm/models/auditLog.js +0 -104
  340. package/public/orm/models/commit.d.ts +0 -54
  341. package/public/orm/models/commit.js +0 -104
  342. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  343. package/public/orm/models/getAllRecord.d.ts +0 -30
  344. package/public/orm/models/getAllRecord.js +0 -59
  345. package/public/orm/models/object.d.ts +0 -54
  346. package/public/orm/models/object.js +0 -94
  347. package/public/orm/models/ref.d.ts +0 -54
  348. package/public/orm/models/store.d.ts +0 -54
  349. package/public/orm/models/store.js +0 -104
  350. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -0,0 +1,498 @@
1
+ /**
2
+ * CLI commands for MerkleStoreModule
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { extractFirst } from 'inquirerer';
7
+ import { getClient } from '../executor';
8
+ import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
+ const fieldSchema = {
10
+ id: 'uuid',
11
+ databaseId: 'uuid',
12
+ schemaId: 'uuid',
13
+ privateSchemaId: 'uuid',
14
+ publicSchemaName: 'string',
15
+ privateSchemaName: 'string',
16
+ objectTableId: 'uuid',
17
+ storeTableId: 'uuid',
18
+ commitTableId: 'uuid',
19
+ refTableId: 'uuid',
20
+ prefix: 'string',
21
+ apiName: 'string',
22
+ privateApiName: 'string',
23
+ scopeField: 'string',
24
+ createdAt: 'string',
25
+ };
26
+ const usage = '\nmerkle-store-module <command>\n\nCommands:\n list List merkleStoreModule records\n find-first Find first matching merkleStoreModule record\n get Get a merkleStoreModule by ID\n create Create a new merkleStoreModule\n update Update an existing merkleStoreModule\n delete Delete a merkleStoreModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
27
+ export default async (argv, prompter, _options) => {
28
+ if (argv.help || argv.h) {
29
+ console.log(usage);
30
+ process.exit(0);
31
+ }
32
+ const { first: subcommand, newArgv } = extractFirst(argv);
33
+ if (!subcommand) {
34
+ const answer = await prompter.prompt(argv, [
35
+ {
36
+ type: 'autocomplete',
37
+ name: 'subcommand',
38
+ message: 'What do you want to do?',
39
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
40
+ },
41
+ ]);
42
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
43
+ }
44
+ return handleTableSubcommand(subcommand, newArgv, prompter);
45
+ };
46
+ async function handleTableSubcommand(subcommand, argv, prompter) {
47
+ switch (subcommand) {
48
+ case 'list':
49
+ return handleList(argv, prompter);
50
+ case 'find-first':
51
+ return handleFindFirst(argv, prompter);
52
+ case 'get':
53
+ return handleGet(argv, prompter);
54
+ case 'create':
55
+ return handleCreate(argv, prompter);
56
+ case 'update':
57
+ return handleUpdate(argv, prompter);
58
+ case 'delete':
59
+ return handleDelete(argv, prompter);
60
+ default:
61
+ console.log(usage);
62
+ process.exit(1);
63
+ }
64
+ }
65
+ async function handleList(argv, _prompter) {
66
+ try {
67
+ const defaultSelect = {
68
+ id: true,
69
+ databaseId: true,
70
+ schemaId: true,
71
+ privateSchemaId: true,
72
+ publicSchemaName: true,
73
+ privateSchemaName: true,
74
+ objectTableId: true,
75
+ storeTableId: true,
76
+ commitTableId: true,
77
+ refTableId: true,
78
+ prefix: true,
79
+ apiName: true,
80
+ privateApiName: true,
81
+ scopeField: true,
82
+ createdAt: true,
83
+ };
84
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
85
+ const client = getClient();
86
+ const result = await client.merkleStoreModule.findMany(findManyArgs).execute();
87
+ console.log(JSON.stringify(result, null, 2));
88
+ }
89
+ catch (error) {
90
+ console.error('Failed to list records.');
91
+ if (error instanceof Error) {
92
+ console.error(error.message);
93
+ }
94
+ process.exit(1);
95
+ }
96
+ }
97
+ async function handleFindFirst(argv, _prompter) {
98
+ try {
99
+ const defaultSelect = {
100
+ id: true,
101
+ databaseId: true,
102
+ schemaId: true,
103
+ privateSchemaId: true,
104
+ publicSchemaName: true,
105
+ privateSchemaName: true,
106
+ objectTableId: true,
107
+ storeTableId: true,
108
+ commitTableId: true,
109
+ refTableId: true,
110
+ prefix: true,
111
+ apiName: true,
112
+ privateApiName: true,
113
+ scopeField: true,
114
+ createdAt: true,
115
+ };
116
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
117
+ const client = getClient();
118
+ const result = await client.merkleStoreModule.findFirst(findFirstArgs).execute();
119
+ console.log(JSON.stringify(result, null, 2));
120
+ }
121
+ catch (error) {
122
+ console.error('Failed to find record.');
123
+ if (error instanceof Error) {
124
+ console.error(error.message);
125
+ }
126
+ process.exit(1);
127
+ }
128
+ }
129
+ async function handleGet(argv, prompter) {
130
+ try {
131
+ const answers = await prompter.prompt(argv, [
132
+ {
133
+ type: 'text',
134
+ name: 'id',
135
+ message: 'id',
136
+ required: true,
137
+ },
138
+ ]);
139
+ const client = getClient();
140
+ const result = await client.merkleStoreModule
141
+ .findOne({
142
+ id: answers.id,
143
+ select: {
144
+ id: true,
145
+ databaseId: true,
146
+ schemaId: true,
147
+ privateSchemaId: true,
148
+ publicSchemaName: true,
149
+ privateSchemaName: true,
150
+ objectTableId: true,
151
+ storeTableId: true,
152
+ commitTableId: true,
153
+ refTableId: true,
154
+ prefix: true,
155
+ apiName: true,
156
+ privateApiName: true,
157
+ scopeField: true,
158
+ createdAt: true,
159
+ },
160
+ })
161
+ .execute();
162
+ console.log(JSON.stringify(result, null, 2));
163
+ }
164
+ catch (error) {
165
+ console.error('Record not found.');
166
+ if (error instanceof Error) {
167
+ console.error(error.message);
168
+ }
169
+ process.exit(1);
170
+ }
171
+ }
172
+ async function handleCreate(argv, prompter) {
173
+ try {
174
+ const rawAnswers = await prompter.prompt(argv, [
175
+ {
176
+ type: 'text',
177
+ name: 'databaseId',
178
+ message: 'databaseId',
179
+ required: true,
180
+ },
181
+ {
182
+ type: 'text',
183
+ name: 'schemaId',
184
+ message: 'schemaId',
185
+ required: false,
186
+ skipPrompt: true,
187
+ },
188
+ {
189
+ type: 'text',
190
+ name: 'privateSchemaId',
191
+ message: 'privateSchemaId',
192
+ required: false,
193
+ skipPrompt: true,
194
+ },
195
+ {
196
+ type: 'text',
197
+ name: 'publicSchemaName',
198
+ message: 'publicSchemaName',
199
+ required: false,
200
+ skipPrompt: true,
201
+ },
202
+ {
203
+ type: 'text',
204
+ name: 'privateSchemaName',
205
+ message: 'privateSchemaName',
206
+ required: false,
207
+ skipPrompt: true,
208
+ },
209
+ {
210
+ type: 'text',
211
+ name: 'objectTableId',
212
+ message: 'objectTableId',
213
+ required: false,
214
+ skipPrompt: true,
215
+ },
216
+ {
217
+ type: 'text',
218
+ name: 'storeTableId',
219
+ message: 'storeTableId',
220
+ required: false,
221
+ skipPrompt: true,
222
+ },
223
+ {
224
+ type: 'text',
225
+ name: 'commitTableId',
226
+ message: 'commitTableId',
227
+ required: false,
228
+ skipPrompt: true,
229
+ },
230
+ {
231
+ type: 'text',
232
+ name: 'refTableId',
233
+ message: 'refTableId',
234
+ required: false,
235
+ skipPrompt: true,
236
+ },
237
+ {
238
+ type: 'text',
239
+ name: 'prefix',
240
+ message: 'prefix',
241
+ required: false,
242
+ skipPrompt: true,
243
+ },
244
+ {
245
+ type: 'text',
246
+ name: 'apiName',
247
+ message: 'apiName',
248
+ required: false,
249
+ skipPrompt: true,
250
+ },
251
+ {
252
+ type: 'text',
253
+ name: 'privateApiName',
254
+ message: 'privateApiName',
255
+ required: false,
256
+ skipPrompt: true,
257
+ },
258
+ {
259
+ type: 'text',
260
+ name: 'scopeField',
261
+ message: 'scopeField',
262
+ required: false,
263
+ skipPrompt: true,
264
+ },
265
+ ]);
266
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
267
+ const cleanedData = stripUndefined(answers, fieldSchema);
268
+ const client = getClient();
269
+ const result = await client.merkleStoreModule
270
+ .create({
271
+ data: {
272
+ databaseId: cleanedData.databaseId,
273
+ schemaId: cleanedData.schemaId,
274
+ privateSchemaId: cleanedData.privateSchemaId,
275
+ publicSchemaName: cleanedData.publicSchemaName,
276
+ privateSchemaName: cleanedData.privateSchemaName,
277
+ objectTableId: cleanedData.objectTableId,
278
+ storeTableId: cleanedData.storeTableId,
279
+ commitTableId: cleanedData.commitTableId,
280
+ refTableId: cleanedData.refTableId,
281
+ prefix: cleanedData.prefix,
282
+ apiName: cleanedData.apiName,
283
+ privateApiName: cleanedData.privateApiName,
284
+ scopeField: cleanedData.scopeField,
285
+ },
286
+ select: {
287
+ id: true,
288
+ databaseId: true,
289
+ schemaId: true,
290
+ privateSchemaId: true,
291
+ publicSchemaName: true,
292
+ privateSchemaName: true,
293
+ objectTableId: true,
294
+ storeTableId: true,
295
+ commitTableId: true,
296
+ refTableId: true,
297
+ prefix: true,
298
+ apiName: true,
299
+ privateApiName: true,
300
+ scopeField: true,
301
+ createdAt: true,
302
+ },
303
+ })
304
+ .execute();
305
+ console.log(JSON.stringify(result, null, 2));
306
+ }
307
+ catch (error) {
308
+ console.error('Failed to create record.');
309
+ if (error instanceof Error) {
310
+ console.error(error.message);
311
+ }
312
+ process.exit(1);
313
+ }
314
+ }
315
+ async function handleUpdate(argv, prompter) {
316
+ try {
317
+ const rawAnswers = await prompter.prompt(argv, [
318
+ {
319
+ type: 'text',
320
+ name: 'id',
321
+ message: 'id',
322
+ required: true,
323
+ },
324
+ {
325
+ type: 'text',
326
+ name: 'databaseId',
327
+ message: 'databaseId',
328
+ required: false,
329
+ },
330
+ {
331
+ type: 'text',
332
+ name: 'schemaId',
333
+ message: 'schemaId',
334
+ required: false,
335
+ skipPrompt: true,
336
+ },
337
+ {
338
+ type: 'text',
339
+ name: 'privateSchemaId',
340
+ message: 'privateSchemaId',
341
+ required: false,
342
+ skipPrompt: true,
343
+ },
344
+ {
345
+ type: 'text',
346
+ name: 'publicSchemaName',
347
+ message: 'publicSchemaName',
348
+ required: false,
349
+ skipPrompt: true,
350
+ },
351
+ {
352
+ type: 'text',
353
+ name: 'privateSchemaName',
354
+ message: 'privateSchemaName',
355
+ required: false,
356
+ skipPrompt: true,
357
+ },
358
+ {
359
+ type: 'text',
360
+ name: 'objectTableId',
361
+ message: 'objectTableId',
362
+ required: false,
363
+ skipPrompt: true,
364
+ },
365
+ {
366
+ type: 'text',
367
+ name: 'storeTableId',
368
+ message: 'storeTableId',
369
+ required: false,
370
+ skipPrompt: true,
371
+ },
372
+ {
373
+ type: 'text',
374
+ name: 'commitTableId',
375
+ message: 'commitTableId',
376
+ required: false,
377
+ skipPrompt: true,
378
+ },
379
+ {
380
+ type: 'text',
381
+ name: 'refTableId',
382
+ message: 'refTableId',
383
+ required: false,
384
+ skipPrompt: true,
385
+ },
386
+ {
387
+ type: 'text',
388
+ name: 'prefix',
389
+ message: 'prefix',
390
+ required: false,
391
+ skipPrompt: true,
392
+ },
393
+ {
394
+ type: 'text',
395
+ name: 'apiName',
396
+ message: 'apiName',
397
+ required: false,
398
+ skipPrompt: true,
399
+ },
400
+ {
401
+ type: 'text',
402
+ name: 'privateApiName',
403
+ message: 'privateApiName',
404
+ required: false,
405
+ skipPrompt: true,
406
+ },
407
+ {
408
+ type: 'text',
409
+ name: 'scopeField',
410
+ message: 'scopeField',
411
+ required: false,
412
+ skipPrompt: true,
413
+ },
414
+ ]);
415
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
416
+ const cleanedData = stripUndefined(answers, fieldSchema);
417
+ const client = getClient();
418
+ const result = await client.merkleStoreModule
419
+ .update({
420
+ where: {
421
+ id: answers.id,
422
+ },
423
+ data: {
424
+ databaseId: cleanedData.databaseId,
425
+ schemaId: cleanedData.schemaId,
426
+ privateSchemaId: cleanedData.privateSchemaId,
427
+ publicSchemaName: cleanedData.publicSchemaName,
428
+ privateSchemaName: cleanedData.privateSchemaName,
429
+ objectTableId: cleanedData.objectTableId,
430
+ storeTableId: cleanedData.storeTableId,
431
+ commitTableId: cleanedData.commitTableId,
432
+ refTableId: cleanedData.refTableId,
433
+ prefix: cleanedData.prefix,
434
+ apiName: cleanedData.apiName,
435
+ privateApiName: cleanedData.privateApiName,
436
+ scopeField: cleanedData.scopeField,
437
+ },
438
+ select: {
439
+ id: true,
440
+ databaseId: true,
441
+ schemaId: true,
442
+ privateSchemaId: true,
443
+ publicSchemaName: true,
444
+ privateSchemaName: true,
445
+ objectTableId: true,
446
+ storeTableId: true,
447
+ commitTableId: true,
448
+ refTableId: true,
449
+ prefix: true,
450
+ apiName: true,
451
+ privateApiName: true,
452
+ scopeField: true,
453
+ createdAt: true,
454
+ },
455
+ })
456
+ .execute();
457
+ console.log(JSON.stringify(result, null, 2));
458
+ }
459
+ catch (error) {
460
+ console.error('Failed to update record.');
461
+ if (error instanceof Error) {
462
+ console.error(error.message);
463
+ }
464
+ process.exit(1);
465
+ }
466
+ }
467
+ async function handleDelete(argv, prompter) {
468
+ try {
469
+ const rawAnswers = await prompter.prompt(argv, [
470
+ {
471
+ type: 'text',
472
+ name: 'id',
473
+ message: 'id',
474
+ required: true,
475
+ },
476
+ ]);
477
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
478
+ const client = getClient();
479
+ const result = await client.merkleStoreModule
480
+ .delete({
481
+ where: {
482
+ id: answers.id,
483
+ },
484
+ select: {
485
+ id: true,
486
+ },
487
+ })
488
+ .execute();
489
+ console.log(JSON.stringify(result, null, 2));
490
+ }
491
+ catch (error) {
492
+ console.error('Failed to delete record.');
493
+ if (error instanceof Error) {
494
+ console.error(error.message);
495
+ }
496
+ process.exit(1);
497
+ }
498
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for NamespaceModule
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;