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