@constructive-sdk/cli 0.23.2 → 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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for AuditLog
2
+ * CLI commands for GraphModule
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -0,0 +1,586 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * CLI commands for GraphModule
5
+ * @generated by @constructive-io/graphql-codegen
6
+ * DO NOT EDIT - changes will be overwritten
7
+ */
8
+ const inquirerer_1 = require("inquirerer");
9
+ const executor_1 = require("../executor");
10
+ const utils_1 = require("../utils");
11
+ const fieldSchema = {
12
+ id: 'uuid',
13
+ databaseId: 'uuid',
14
+ publicSchemaId: 'uuid',
15
+ privateSchemaId: 'uuid',
16
+ publicSchemaName: 'string',
17
+ privateSchemaName: 'string',
18
+ prefix: 'string',
19
+ merkleStoreModuleId: 'uuid',
20
+ graphsTableId: 'uuid',
21
+ executionsTableId: 'uuid',
22
+ outputsTableId: 'uuid',
23
+ apiName: 'string',
24
+ privateApiName: 'string',
25
+ scopeField: 'string',
26
+ membershipType: 'int',
27
+ entityTableId: 'uuid',
28
+ policies: 'json',
29
+ provisions: 'json',
30
+ createdAt: 'string',
31
+ };
32
+ const usage = '\ngraph-module <command>\n\nCommands:\n list List graphModule records\n find-first Find first matching graphModule record\n get Get a graphModule by ID\n create Create a new graphModule\n update Update an existing graphModule\n delete Delete a graphModule\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';
33
+ exports.default = async (argv, prompter, _options) => {
34
+ if (argv.help || argv.h) {
35
+ console.log(usage);
36
+ process.exit(0);
37
+ }
38
+ const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
39
+ if (!subcommand) {
40
+ const answer = await prompter.prompt(argv, [
41
+ {
42
+ type: 'autocomplete',
43
+ name: 'subcommand',
44
+ message: 'What do you want to do?',
45
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
46
+ },
47
+ ]);
48
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
49
+ }
50
+ return handleTableSubcommand(subcommand, newArgv, prompter);
51
+ };
52
+ async function handleTableSubcommand(subcommand, argv, prompter) {
53
+ switch (subcommand) {
54
+ case 'list':
55
+ return handleList(argv, prompter);
56
+ case 'find-first':
57
+ return handleFindFirst(argv, prompter);
58
+ case 'get':
59
+ return handleGet(argv, prompter);
60
+ case 'create':
61
+ return handleCreate(argv, prompter);
62
+ case 'update':
63
+ return handleUpdate(argv, prompter);
64
+ case 'delete':
65
+ return handleDelete(argv, prompter);
66
+ default:
67
+ console.log(usage);
68
+ process.exit(1);
69
+ }
70
+ }
71
+ async function handleList(argv, _prompter) {
72
+ try {
73
+ const defaultSelect = {
74
+ id: true,
75
+ databaseId: true,
76
+ publicSchemaId: true,
77
+ privateSchemaId: true,
78
+ publicSchemaName: true,
79
+ privateSchemaName: true,
80
+ prefix: true,
81
+ merkleStoreModuleId: true,
82
+ graphsTableId: true,
83
+ executionsTableId: true,
84
+ outputsTableId: true,
85
+ apiName: true,
86
+ privateApiName: true,
87
+ scopeField: true,
88
+ membershipType: true,
89
+ entityTableId: true,
90
+ policies: true,
91
+ provisions: true,
92
+ createdAt: true,
93
+ };
94
+ const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
95
+ const client = (0, executor_1.getClient)();
96
+ const result = await client.graphModule.findMany(findManyArgs).execute();
97
+ console.log(JSON.stringify(result, null, 2));
98
+ }
99
+ catch (error) {
100
+ console.error('Failed to list records.');
101
+ if (error instanceof Error) {
102
+ console.error(error.message);
103
+ }
104
+ process.exit(1);
105
+ }
106
+ }
107
+ async function handleFindFirst(argv, _prompter) {
108
+ try {
109
+ const defaultSelect = {
110
+ id: true,
111
+ databaseId: true,
112
+ publicSchemaId: true,
113
+ privateSchemaId: true,
114
+ publicSchemaName: true,
115
+ privateSchemaName: true,
116
+ prefix: true,
117
+ merkleStoreModuleId: true,
118
+ graphsTableId: true,
119
+ executionsTableId: true,
120
+ outputsTableId: true,
121
+ apiName: true,
122
+ privateApiName: true,
123
+ scopeField: true,
124
+ membershipType: true,
125
+ entityTableId: true,
126
+ policies: true,
127
+ provisions: true,
128
+ createdAt: true,
129
+ };
130
+ const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
131
+ const client = (0, executor_1.getClient)();
132
+ const result = await client.graphModule.findFirst(findFirstArgs).execute();
133
+ console.log(JSON.stringify(result, null, 2));
134
+ }
135
+ catch (error) {
136
+ console.error('Failed to find record.');
137
+ if (error instanceof Error) {
138
+ console.error(error.message);
139
+ }
140
+ process.exit(1);
141
+ }
142
+ }
143
+ async function handleGet(argv, prompter) {
144
+ try {
145
+ const answers = await prompter.prompt(argv, [
146
+ {
147
+ type: 'text',
148
+ name: 'id',
149
+ message: 'id',
150
+ required: true,
151
+ },
152
+ ]);
153
+ const client = (0, executor_1.getClient)();
154
+ const result = await client.graphModule
155
+ .findOne({
156
+ id: answers.id,
157
+ select: {
158
+ id: true,
159
+ databaseId: true,
160
+ publicSchemaId: true,
161
+ privateSchemaId: true,
162
+ publicSchemaName: true,
163
+ privateSchemaName: true,
164
+ prefix: true,
165
+ merkleStoreModuleId: true,
166
+ graphsTableId: true,
167
+ executionsTableId: true,
168
+ outputsTableId: true,
169
+ apiName: true,
170
+ privateApiName: true,
171
+ scopeField: true,
172
+ membershipType: true,
173
+ entityTableId: true,
174
+ policies: true,
175
+ provisions: true,
176
+ createdAt: true,
177
+ },
178
+ })
179
+ .execute();
180
+ console.log(JSON.stringify(result, null, 2));
181
+ }
182
+ catch (error) {
183
+ console.error('Record not found.');
184
+ if (error instanceof Error) {
185
+ console.error(error.message);
186
+ }
187
+ process.exit(1);
188
+ }
189
+ }
190
+ async function handleCreate(argv, prompter) {
191
+ try {
192
+ const rawAnswers = await prompter.prompt(argv, [
193
+ {
194
+ type: 'text',
195
+ name: 'databaseId',
196
+ message: 'databaseId',
197
+ required: true,
198
+ },
199
+ {
200
+ type: 'text',
201
+ name: 'publicSchemaId',
202
+ message: 'publicSchemaId',
203
+ required: false,
204
+ skipPrompt: true,
205
+ },
206
+ {
207
+ type: 'text',
208
+ name: 'privateSchemaId',
209
+ message: 'privateSchemaId',
210
+ required: false,
211
+ skipPrompt: true,
212
+ },
213
+ {
214
+ type: 'text',
215
+ name: 'publicSchemaName',
216
+ message: 'publicSchemaName',
217
+ required: false,
218
+ skipPrompt: true,
219
+ },
220
+ {
221
+ type: 'text',
222
+ name: 'privateSchemaName',
223
+ message: 'privateSchemaName',
224
+ required: false,
225
+ skipPrompt: true,
226
+ },
227
+ {
228
+ type: 'text',
229
+ name: 'prefix',
230
+ message: 'prefix',
231
+ required: false,
232
+ skipPrompt: true,
233
+ },
234
+ {
235
+ type: 'text',
236
+ name: 'merkleStoreModuleId',
237
+ message: 'merkleStoreModuleId',
238
+ required: true,
239
+ },
240
+ {
241
+ type: 'text',
242
+ name: 'graphsTableId',
243
+ message: 'graphsTableId',
244
+ required: false,
245
+ skipPrompt: true,
246
+ },
247
+ {
248
+ type: 'text',
249
+ name: 'executionsTableId',
250
+ message: 'executionsTableId',
251
+ required: false,
252
+ skipPrompt: true,
253
+ },
254
+ {
255
+ type: 'text',
256
+ name: 'outputsTableId',
257
+ message: 'outputsTableId',
258
+ required: false,
259
+ skipPrompt: true,
260
+ },
261
+ {
262
+ type: 'text',
263
+ name: 'apiName',
264
+ message: 'apiName',
265
+ required: false,
266
+ skipPrompt: true,
267
+ },
268
+ {
269
+ type: 'text',
270
+ name: 'privateApiName',
271
+ message: 'privateApiName',
272
+ required: false,
273
+ skipPrompt: true,
274
+ },
275
+ {
276
+ type: 'text',
277
+ name: 'scopeField',
278
+ message: 'scopeField',
279
+ required: false,
280
+ skipPrompt: true,
281
+ },
282
+ {
283
+ type: 'text',
284
+ name: 'membershipType',
285
+ message: 'membershipType',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
289
+ {
290
+ type: 'text',
291
+ name: 'entityTableId',
292
+ message: 'entityTableId',
293
+ required: false,
294
+ skipPrompt: true,
295
+ },
296
+ {
297
+ type: 'json',
298
+ name: 'policies',
299
+ message: 'policies',
300
+ required: false,
301
+ skipPrompt: true,
302
+ },
303
+ {
304
+ type: 'json',
305
+ name: 'provisions',
306
+ message: 'provisions',
307
+ required: false,
308
+ skipPrompt: true,
309
+ },
310
+ ]);
311
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
312
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
313
+ const client = (0, executor_1.getClient)();
314
+ const result = await client.graphModule
315
+ .create({
316
+ data: {
317
+ databaseId: cleanedData.databaseId,
318
+ publicSchemaId: cleanedData.publicSchemaId,
319
+ privateSchemaId: cleanedData.privateSchemaId,
320
+ publicSchemaName: cleanedData.publicSchemaName,
321
+ privateSchemaName: cleanedData.privateSchemaName,
322
+ prefix: cleanedData.prefix,
323
+ merkleStoreModuleId: cleanedData.merkleStoreModuleId,
324
+ graphsTableId: cleanedData.graphsTableId,
325
+ executionsTableId: cleanedData.executionsTableId,
326
+ outputsTableId: cleanedData.outputsTableId,
327
+ apiName: cleanedData.apiName,
328
+ privateApiName: cleanedData.privateApiName,
329
+ scopeField: cleanedData.scopeField,
330
+ membershipType: cleanedData.membershipType,
331
+ entityTableId: cleanedData.entityTableId,
332
+ policies: cleanedData.policies,
333
+ provisions: cleanedData.provisions,
334
+ },
335
+ select: {
336
+ id: true,
337
+ databaseId: true,
338
+ publicSchemaId: true,
339
+ privateSchemaId: true,
340
+ publicSchemaName: true,
341
+ privateSchemaName: true,
342
+ prefix: true,
343
+ merkleStoreModuleId: true,
344
+ graphsTableId: true,
345
+ executionsTableId: true,
346
+ outputsTableId: true,
347
+ apiName: true,
348
+ privateApiName: true,
349
+ scopeField: true,
350
+ membershipType: true,
351
+ entityTableId: true,
352
+ policies: true,
353
+ provisions: true,
354
+ createdAt: true,
355
+ },
356
+ })
357
+ .execute();
358
+ console.log(JSON.stringify(result, null, 2));
359
+ }
360
+ catch (error) {
361
+ console.error('Failed to create record.');
362
+ if (error instanceof Error) {
363
+ console.error(error.message);
364
+ }
365
+ process.exit(1);
366
+ }
367
+ }
368
+ async function handleUpdate(argv, prompter) {
369
+ try {
370
+ const rawAnswers = await prompter.prompt(argv, [
371
+ {
372
+ type: 'text',
373
+ name: 'id',
374
+ message: 'id',
375
+ required: true,
376
+ },
377
+ {
378
+ type: 'text',
379
+ name: 'databaseId',
380
+ message: 'databaseId',
381
+ required: false,
382
+ },
383
+ {
384
+ type: 'text',
385
+ name: 'publicSchemaId',
386
+ message: 'publicSchemaId',
387
+ required: false,
388
+ skipPrompt: true,
389
+ },
390
+ {
391
+ type: 'text',
392
+ name: 'privateSchemaId',
393
+ message: 'privateSchemaId',
394
+ required: false,
395
+ skipPrompt: true,
396
+ },
397
+ {
398
+ type: 'text',
399
+ name: 'publicSchemaName',
400
+ message: 'publicSchemaName',
401
+ required: false,
402
+ skipPrompt: true,
403
+ },
404
+ {
405
+ type: 'text',
406
+ name: 'privateSchemaName',
407
+ message: 'privateSchemaName',
408
+ required: false,
409
+ skipPrompt: true,
410
+ },
411
+ {
412
+ type: 'text',
413
+ name: 'prefix',
414
+ message: 'prefix',
415
+ required: false,
416
+ skipPrompt: true,
417
+ },
418
+ {
419
+ type: 'text',
420
+ name: 'merkleStoreModuleId',
421
+ message: 'merkleStoreModuleId',
422
+ required: false,
423
+ },
424
+ {
425
+ type: 'text',
426
+ name: 'graphsTableId',
427
+ message: 'graphsTableId',
428
+ required: false,
429
+ skipPrompt: true,
430
+ },
431
+ {
432
+ type: 'text',
433
+ name: 'executionsTableId',
434
+ message: 'executionsTableId',
435
+ required: false,
436
+ skipPrompt: true,
437
+ },
438
+ {
439
+ type: 'text',
440
+ name: 'outputsTableId',
441
+ message: 'outputsTableId',
442
+ required: false,
443
+ skipPrompt: true,
444
+ },
445
+ {
446
+ type: 'text',
447
+ name: 'apiName',
448
+ message: 'apiName',
449
+ required: false,
450
+ skipPrompt: true,
451
+ },
452
+ {
453
+ type: 'text',
454
+ name: 'privateApiName',
455
+ message: 'privateApiName',
456
+ required: false,
457
+ skipPrompt: true,
458
+ },
459
+ {
460
+ type: 'text',
461
+ name: 'scopeField',
462
+ message: 'scopeField',
463
+ required: false,
464
+ skipPrompt: true,
465
+ },
466
+ {
467
+ type: 'text',
468
+ name: 'membershipType',
469
+ message: 'membershipType',
470
+ required: false,
471
+ skipPrompt: true,
472
+ },
473
+ {
474
+ type: 'text',
475
+ name: 'entityTableId',
476
+ message: 'entityTableId',
477
+ required: false,
478
+ skipPrompt: true,
479
+ },
480
+ {
481
+ type: 'json',
482
+ name: 'policies',
483
+ message: 'policies',
484
+ required: false,
485
+ skipPrompt: true,
486
+ },
487
+ {
488
+ type: 'json',
489
+ name: 'provisions',
490
+ message: 'provisions',
491
+ required: false,
492
+ skipPrompt: true,
493
+ },
494
+ ]);
495
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
496
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
497
+ const client = (0, executor_1.getClient)();
498
+ const result = await client.graphModule
499
+ .update({
500
+ where: {
501
+ id: answers.id,
502
+ },
503
+ data: {
504
+ databaseId: cleanedData.databaseId,
505
+ publicSchemaId: cleanedData.publicSchemaId,
506
+ privateSchemaId: cleanedData.privateSchemaId,
507
+ publicSchemaName: cleanedData.publicSchemaName,
508
+ privateSchemaName: cleanedData.privateSchemaName,
509
+ prefix: cleanedData.prefix,
510
+ merkleStoreModuleId: cleanedData.merkleStoreModuleId,
511
+ graphsTableId: cleanedData.graphsTableId,
512
+ executionsTableId: cleanedData.executionsTableId,
513
+ outputsTableId: cleanedData.outputsTableId,
514
+ apiName: cleanedData.apiName,
515
+ privateApiName: cleanedData.privateApiName,
516
+ scopeField: cleanedData.scopeField,
517
+ membershipType: cleanedData.membershipType,
518
+ entityTableId: cleanedData.entityTableId,
519
+ policies: cleanedData.policies,
520
+ provisions: cleanedData.provisions,
521
+ },
522
+ select: {
523
+ id: true,
524
+ databaseId: true,
525
+ publicSchemaId: true,
526
+ privateSchemaId: true,
527
+ publicSchemaName: true,
528
+ privateSchemaName: true,
529
+ prefix: true,
530
+ merkleStoreModuleId: true,
531
+ graphsTableId: true,
532
+ executionsTableId: true,
533
+ outputsTableId: true,
534
+ apiName: true,
535
+ privateApiName: true,
536
+ scopeField: true,
537
+ membershipType: true,
538
+ entityTableId: true,
539
+ policies: true,
540
+ provisions: true,
541
+ createdAt: true,
542
+ },
543
+ })
544
+ .execute();
545
+ console.log(JSON.stringify(result, null, 2));
546
+ }
547
+ catch (error) {
548
+ console.error('Failed to update record.');
549
+ if (error instanceof Error) {
550
+ console.error(error.message);
551
+ }
552
+ process.exit(1);
553
+ }
554
+ }
555
+ async function handleDelete(argv, prompter) {
556
+ try {
557
+ const rawAnswers = await prompter.prompt(argv, [
558
+ {
559
+ type: 'text',
560
+ name: 'id',
561
+ message: 'id',
562
+ required: true,
563
+ },
564
+ ]);
565
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
566
+ const client = (0, executor_1.getClient)();
567
+ const result = await client.graphModule
568
+ .delete({
569
+ where: {
570
+ id: answers.id,
571
+ },
572
+ select: {
573
+ id: true,
574
+ },
575
+ })
576
+ .execute();
577
+ console.log(JSON.stringify(result, null, 2));
578
+ }
579
+ catch (error) {
580
+ console.error('Failed to delete record.');
581
+ if (error instanceof Error) {
582
+ console.error(error.message);
583
+ }
584
+ process.exit(1);
585
+ }
586
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for InferenceLogModule
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;