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