@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
@@ -1,382 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * CLI commands for Commit
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
- message: 'string',
14
- databaseId: 'uuid',
15
- storeId: 'uuid',
16
- parentIds: 'uuid',
17
- authorId: 'uuid',
18
- committerId: 'uuid',
19
- treeId: 'uuid',
20
- date: 'string',
21
- };
22
- const usage = '\ncommit <command>\n\nCommands:\n list List commit records\n find-first Find first matching commit record\n get Get a commit by ID\n create Create a new commit\n update Update an existing commit\n delete Delete a commit\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';
23
- exports.default = async (argv, prompter, _options) => {
24
- if (argv.help || argv.h) {
25
- console.log(usage);
26
- process.exit(0);
27
- }
28
- const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
29
- if (!subcommand) {
30
- const answer = await prompter.prompt(argv, [
31
- {
32
- type: 'autocomplete',
33
- name: 'subcommand',
34
- message: 'What do you want to do?',
35
- options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
36
- },
37
- ]);
38
- return handleTableSubcommand(answer.subcommand, newArgv, prompter);
39
- }
40
- return handleTableSubcommand(subcommand, newArgv, prompter);
41
- };
42
- async function handleTableSubcommand(subcommand, argv, prompter) {
43
- switch (subcommand) {
44
- case 'list':
45
- return handleList(argv, prompter);
46
- case 'find-first':
47
- return handleFindFirst(argv, prompter);
48
- case 'get':
49
- return handleGet(argv, prompter);
50
- case 'create':
51
- return handleCreate(argv, prompter);
52
- case 'update':
53
- return handleUpdate(argv, prompter);
54
- case 'delete':
55
- return handleDelete(argv, prompter);
56
- default:
57
- console.log(usage);
58
- process.exit(1);
59
- }
60
- }
61
- async function handleList(argv, _prompter) {
62
- try {
63
- const defaultSelect = {
64
- id: true,
65
- message: true,
66
- databaseId: true,
67
- storeId: true,
68
- parentIds: true,
69
- authorId: true,
70
- committerId: true,
71
- treeId: true,
72
- date: true,
73
- };
74
- const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
75
- const client = (0, executor_1.getClient)();
76
- const result = await client.commit.findMany(findManyArgs).execute();
77
- console.log(JSON.stringify(result, null, 2));
78
- }
79
- catch (error) {
80
- console.error('Failed to list records.');
81
- if (error instanceof Error) {
82
- console.error(error.message);
83
- }
84
- process.exit(1);
85
- }
86
- }
87
- async function handleFindFirst(argv, _prompter) {
88
- try {
89
- const defaultSelect = {
90
- id: true,
91
- message: true,
92
- databaseId: true,
93
- storeId: true,
94
- parentIds: true,
95
- authorId: true,
96
- committerId: true,
97
- treeId: true,
98
- date: true,
99
- };
100
- const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
101
- const client = (0, executor_1.getClient)();
102
- const result = await client.commit.findFirst(findFirstArgs).execute();
103
- console.log(JSON.stringify(result, null, 2));
104
- }
105
- catch (error) {
106
- console.error('Failed to find record.');
107
- if (error instanceof Error) {
108
- console.error(error.message);
109
- }
110
- process.exit(1);
111
- }
112
- }
113
- async function handleGet(argv, prompter) {
114
- try {
115
- const answers = await prompter.prompt(argv, [
116
- {
117
- type: 'text',
118
- name: 'id',
119
- message: 'id',
120
- required: true,
121
- },
122
- ]);
123
- const client = (0, executor_1.getClient)();
124
- const result = await client.commit
125
- .findOne({
126
- id: answers.id,
127
- select: {
128
- id: true,
129
- message: true,
130
- databaseId: true,
131
- storeId: true,
132
- parentIds: true,
133
- authorId: true,
134
- committerId: true,
135
- treeId: true,
136
- date: true,
137
- },
138
- })
139
- .execute();
140
- console.log(JSON.stringify(result, null, 2));
141
- }
142
- catch (error) {
143
- console.error('Record not found.');
144
- if (error instanceof Error) {
145
- console.error(error.message);
146
- }
147
- process.exit(1);
148
- }
149
- }
150
- async function handleCreate(argv, prompter) {
151
- try {
152
- const rawAnswers = await prompter.prompt(argv, [
153
- {
154
- type: 'text',
155
- name: 'message',
156
- message: 'message',
157
- required: false,
158
- skipPrompt: true,
159
- },
160
- {
161
- type: 'text',
162
- name: 'databaseId',
163
- message: 'databaseId',
164
- required: true,
165
- },
166
- {
167
- type: 'text',
168
- name: 'storeId',
169
- message: 'storeId',
170
- required: true,
171
- },
172
- {
173
- type: 'text',
174
- name: 'parentIds',
175
- message: 'parentIds',
176
- required: false,
177
- skipPrompt: true,
178
- },
179
- {
180
- type: 'text',
181
- name: 'authorId',
182
- message: 'authorId',
183
- required: false,
184
- skipPrompt: true,
185
- },
186
- {
187
- type: 'text',
188
- name: 'committerId',
189
- message: 'committerId',
190
- required: false,
191
- skipPrompt: true,
192
- },
193
- {
194
- type: 'text',
195
- name: 'treeId',
196
- message: 'treeId',
197
- required: false,
198
- skipPrompt: true,
199
- },
200
- {
201
- type: 'text',
202
- name: 'date',
203
- message: 'date',
204
- required: false,
205
- skipPrompt: true,
206
- },
207
- ]);
208
- const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
209
- const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
210
- const client = (0, executor_1.getClient)();
211
- const result = await client.commit
212
- .create({
213
- data: {
214
- message: cleanedData.message,
215
- databaseId: cleanedData.databaseId,
216
- storeId: cleanedData.storeId,
217
- parentIds: cleanedData.parentIds,
218
- authorId: cleanedData.authorId,
219
- committerId: cleanedData.committerId,
220
- treeId: cleanedData.treeId,
221
- date: cleanedData.date,
222
- },
223
- select: {
224
- id: true,
225
- message: true,
226
- databaseId: true,
227
- storeId: true,
228
- parentIds: true,
229
- authorId: true,
230
- committerId: true,
231
- treeId: true,
232
- date: true,
233
- },
234
- })
235
- .execute();
236
- console.log(JSON.stringify(result, null, 2));
237
- }
238
- catch (error) {
239
- console.error('Failed to create record.');
240
- if (error instanceof Error) {
241
- console.error(error.message);
242
- }
243
- process.exit(1);
244
- }
245
- }
246
- async function handleUpdate(argv, prompter) {
247
- try {
248
- const rawAnswers = await prompter.prompt(argv, [
249
- {
250
- type: 'text',
251
- name: 'id',
252
- message: 'id',
253
- required: true,
254
- },
255
- {
256
- type: 'text',
257
- name: 'message',
258
- message: 'message',
259
- required: false,
260
- skipPrompt: true,
261
- },
262
- {
263
- type: 'text',
264
- name: 'databaseId',
265
- message: 'databaseId',
266
- required: false,
267
- },
268
- {
269
- type: 'text',
270
- name: 'storeId',
271
- message: 'storeId',
272
- required: false,
273
- },
274
- {
275
- type: 'text',
276
- name: 'parentIds',
277
- message: 'parentIds',
278
- required: false,
279
- skipPrompt: true,
280
- },
281
- {
282
- type: 'text',
283
- name: 'authorId',
284
- message: 'authorId',
285
- required: false,
286
- skipPrompt: true,
287
- },
288
- {
289
- type: 'text',
290
- name: 'committerId',
291
- message: 'committerId',
292
- required: false,
293
- skipPrompt: true,
294
- },
295
- {
296
- type: 'text',
297
- name: 'treeId',
298
- message: 'treeId',
299
- required: false,
300
- skipPrompt: true,
301
- },
302
- {
303
- type: 'text',
304
- name: 'date',
305
- message: 'date',
306
- required: false,
307
- skipPrompt: true,
308
- },
309
- ]);
310
- const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
311
- const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
312
- const client = (0, executor_1.getClient)();
313
- const result = await client.commit
314
- .update({
315
- where: {
316
- id: answers.id,
317
- },
318
- data: {
319
- message: cleanedData.message,
320
- databaseId: cleanedData.databaseId,
321
- storeId: cleanedData.storeId,
322
- parentIds: cleanedData.parentIds,
323
- authorId: cleanedData.authorId,
324
- committerId: cleanedData.committerId,
325
- treeId: cleanedData.treeId,
326
- date: cleanedData.date,
327
- },
328
- select: {
329
- id: true,
330
- message: true,
331
- databaseId: true,
332
- storeId: true,
333
- parentIds: true,
334
- authorId: true,
335
- committerId: true,
336
- treeId: true,
337
- date: true,
338
- },
339
- })
340
- .execute();
341
- console.log(JSON.stringify(result, null, 2));
342
- }
343
- catch (error) {
344
- console.error('Failed to update record.');
345
- if (error instanceof Error) {
346
- console.error(error.message);
347
- }
348
- process.exit(1);
349
- }
350
- }
351
- async function handleDelete(argv, prompter) {
352
- try {
353
- const rawAnswers = await prompter.prompt(argv, [
354
- {
355
- type: 'text',
356
- name: 'id',
357
- message: 'id',
358
- required: true,
359
- },
360
- ]);
361
- const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
362
- const client = (0, executor_1.getClient)();
363
- const result = await client.commit
364
- .delete({
365
- where: {
366
- id: answers.id,
367
- },
368
- select: {
369
- id: true,
370
- },
371
- })
372
- .execute();
373
- console.log(JSON.stringify(result, null, 2));
374
- }
375
- catch (error) {
376
- console.error('Failed to delete record.');
377
- if (error instanceof Error) {
378
- console.error(error.message);
379
- }
380
- process.exit(1);
381
- }
382
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI commands for EncryptedSecretsModule
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;
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI command for mutation freezeObjects
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;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const executor_1 = require("../executor");
4
- const utils_1 = require("../utils");
5
- exports.default = async (argv, prompter, _options) => {
6
- try {
7
- if (argv.help || argv.h) {
8
- console.log('freeze-objects - freezeObjects\n\nUsage: freeze-objects [OPTIONS]\n');
9
- process.exit(0);
10
- }
11
- const answers = await prompter.prompt(argv, [
12
- {
13
- type: 'text',
14
- name: 'input',
15
- message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
16
- required: true,
17
- },
18
- ]);
19
- const client = (0, executor_1.getClient)();
20
- const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
21
- const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
22
- const result = await client.mutation
23
- .freezeObjects(parsedAnswers, {
24
- select: selectFields,
25
- })
26
- .execute();
27
- console.log(JSON.stringify(result, null, 2));
28
- }
29
- catch (error) {
30
- console.error('Failed: freezeObjects');
31
- if (error instanceof Error) {
32
- console.error(error.message);
33
- }
34
- process.exit(1);
35
- }
36
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI command for query getAllObjectsFromRoot
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;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const executor_1 = require("../executor");
4
- const utils_1 = require("../utils");
5
- exports.default = async (argv, prompter, _options) => {
6
- try {
7
- if (argv.help || argv.h) {
8
- console.log('get-all-objects-from-root - Reads and enables pagination through a set of `Object`.\n\nUsage: get-all-objects-from-root [OPTIONS]\n');
9
- process.exit(0);
10
- }
11
- const answers = await prompter.prompt(argv, [
12
- {
13
- type: 'text',
14
- name: 'databaseId',
15
- message: 'databaseId',
16
- },
17
- {
18
- type: 'text',
19
- name: 'id',
20
- message: 'id',
21
- },
22
- {
23
- type: 'text',
24
- name: 'first',
25
- message: 'Only read the first `n` values of the set.',
26
- },
27
- {
28
- type: 'text',
29
- name: 'offset',
30
- message: 'Skip the first `n` values from our `after` cursor, an alternative to cursor\nbased pagination. May not be used with `last`.',
31
- },
32
- {
33
- type: 'text',
34
- name: 'after',
35
- message: 'Read all values in the set after (below) this cursor.',
36
- },
37
- ]);
38
- const client = (0, executor_1.getClient)();
39
- const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? '');
40
- const result = await client.query
41
- .getAllObjectsFromRoot(answers, {
42
- select: selectFields,
43
- })
44
- .execute();
45
- console.log(JSON.stringify(result, null, 2));
46
- }
47
- catch (error) {
48
- console.error('Failed: getAllObjectsFromRoot');
49
- if (error instanceof Error) {
50
- console.error(error.message);
51
- }
52
- process.exit(1);
53
- }
54
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI commands for GetAllRecord
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;
@@ -1,126 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * CLI commands for GetAllRecord
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
- path: 'string',
13
- data: 'json',
14
- };
15
- const usage = '\nget-all-record <command>\n\nCommands:\n list List getAllRecord records\n find-first Find first matching getAllRecord record\n create Create a new getAllRecord\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';
16
- exports.default = async (argv, prompter, _options) => {
17
- if (argv.help || argv.h) {
18
- console.log(usage);
19
- process.exit(0);
20
- }
21
- const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
22
- if (!subcommand) {
23
- const answer = await prompter.prompt(argv, [
24
- {
25
- type: 'autocomplete',
26
- name: 'subcommand',
27
- message: 'What do you want to do?',
28
- options: ['list', 'find-first', 'create'],
29
- },
30
- ]);
31
- return handleTableSubcommand(answer.subcommand, newArgv, prompter);
32
- }
33
- return handleTableSubcommand(subcommand, newArgv, prompter);
34
- };
35
- async function handleTableSubcommand(subcommand, argv, prompter) {
36
- switch (subcommand) {
37
- case 'list':
38
- return handleList(argv, prompter);
39
- case 'find-first':
40
- return handleFindFirst(argv, prompter);
41
- case 'create':
42
- return handleCreate(argv, prompter);
43
- default:
44
- console.log(usage);
45
- process.exit(1);
46
- }
47
- }
48
- async function handleList(argv, _prompter) {
49
- try {
50
- const defaultSelect = {
51
- path: true,
52
- data: true,
53
- };
54
- const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
55
- const client = (0, executor_1.getClient)();
56
- const result = await client.getAllRecord.findMany(findManyArgs).execute();
57
- console.log(JSON.stringify(result, null, 2));
58
- }
59
- catch (error) {
60
- console.error('Failed to list records.');
61
- if (error instanceof Error) {
62
- console.error(error.message);
63
- }
64
- process.exit(1);
65
- }
66
- }
67
- async function handleFindFirst(argv, _prompter) {
68
- try {
69
- const defaultSelect = {
70
- path: true,
71
- data: true,
72
- };
73
- const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
74
- const client = (0, executor_1.getClient)();
75
- const result = await client.getAllRecord.findFirst(findFirstArgs).execute();
76
- console.log(JSON.stringify(result, null, 2));
77
- }
78
- catch (error) {
79
- console.error('Failed to find record.');
80
- if (error instanceof Error) {
81
- console.error(error.message);
82
- }
83
- process.exit(1);
84
- }
85
- }
86
- async function handleCreate(argv, prompter) {
87
- try {
88
- const rawAnswers = await prompter.prompt(argv, [
89
- {
90
- type: 'text',
91
- name: 'path',
92
- message: 'path',
93
- required: true,
94
- },
95
- {
96
- type: 'json',
97
- name: 'data',
98
- message: 'data',
99
- required: true,
100
- },
101
- ]);
102
- const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
103
- const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
104
- const client = (0, executor_1.getClient)();
105
- const result = await client.getAllRecord
106
- .create({
107
- data: {
108
- path: cleanedData.path,
109
- data: cleanedData.data,
110
- },
111
- select: {
112
- path: true,
113
- data: true,
114
- },
115
- })
116
- .execute();
117
- console.log(JSON.stringify(result, null, 2));
118
- }
119
- catch (error) {
120
- console.error('Failed to create record.');
121
- if (error instanceof Error) {
122
- console.error(error.message);
123
- }
124
- process.exit(1);
125
- }
126
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI command for query getObjectAtPath
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;