@constructive-sdk/cli 0.23.3 → 0.24.0

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