@constructive-sdk/cli 0.23.2 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/admin/cli/commands/app-limit-event.js +248 -2
  2. package/admin/cli/commands/app-limit.js +44 -0
  3. package/admin/cli/commands/org-limit-aggregate.js +44 -0
  4. package/admin/cli/commands/org-limit-event.js +248 -2
  5. package/admin/cli/commands/org-limit.js +44 -0
  6. package/admin/cli/commands.js +31 -33
  7. package/admin/cli/executor.d.ts +15 -16
  8. package/admin/orm/index.d.ts +31 -33
  9. package/admin/orm/index.js +32 -33
  10. package/admin/orm/input-types.d.ts +2090 -2039
  11. package/admin/orm/input-types.js +4 -4
  12. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  13. package/admin/orm/models/appLimitEvent.js +45 -0
  14. package/admin/orm/models/index.d.ts +15 -16
  15. package/admin/orm/models/index.js +31 -33
  16. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  17. package/admin/orm/models/orgLimitEvent.js +45 -0
  18. package/{esm/public/cli/commands/agent-message.d.ts → auth/cli/commands/audit-log-auth.d.ts} +1 -1
  19. package/auth/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  20. package/auth/cli/commands.js +5 -5
  21. package/auth/cli/executor.d.ts +6 -6
  22. package/auth/orm/index.d.ts +8 -8
  23. package/auth/orm/index.js +4 -3
  24. package/auth/orm/input-types.d.ts +94 -94
  25. package/auth/orm/input-types.js +1 -1
  26. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  27. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  28. package/auth/orm/models/index.d.ts +1 -1
  29. package/auth/orm/models/index.js +3 -3
  30. package/auth/orm/mutation/index.d.ts +9 -9
  31. package/auth/orm/mutation/index.js +12 -12
  32. package/esm/admin/cli/commands/app-limit-event.js +248 -2
  33. package/esm/admin/cli/commands/app-limit.js +44 -0
  34. package/esm/admin/cli/commands/org-limit-aggregate.js +44 -0
  35. package/esm/admin/cli/commands/org-limit-event.js +248 -2
  36. package/esm/admin/cli/commands/org-limit.js +44 -0
  37. package/esm/admin/cli/commands.js +31 -33
  38. package/esm/admin/cli/executor.d.ts +15 -16
  39. package/esm/admin/orm/index.d.ts +31 -33
  40. package/esm/admin/orm/index.js +31 -33
  41. package/esm/admin/orm/input-types.d.ts +2090 -2039
  42. package/esm/admin/orm/input-types.js +4 -4
  43. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  44. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  45. package/esm/admin/orm/models/index.d.ts +15 -16
  46. package/esm/admin/orm/models/index.js +15 -16
  47. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  48. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  49. package/esm/auth/cli/commands/audit-log-auth.d.ts +8 -0
  50. package/esm/{public/cli/commands/audit-log.js → auth/cli/commands/audit-log-auth.js} +14 -14
  51. package/esm/auth/cli/commands.js +5 -5
  52. package/esm/auth/cli/executor.d.ts +6 -6
  53. package/esm/auth/orm/index.d.ts +8 -8
  54. package/esm/auth/orm/index.js +3 -3
  55. package/esm/auth/orm/input-types.d.ts +94 -94
  56. package/esm/auth/orm/input-types.js +1 -1
  57. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  58. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  59. package/esm/auth/orm/models/index.d.ts +1 -1
  60. package/esm/auth/orm/models/index.js +1 -1
  61. package/esm/auth/orm/mutation/index.d.ts +9 -9
  62. package/esm/auth/orm/mutation/index.js +12 -12
  63. package/esm/objects/orm/index.d.ts +1 -1
  64. package/esm/objects/orm/index.js +1 -1
  65. package/esm/public/cli/commands/{agent-thread.d.ts → agent-module.d.ts} +1 -1
  66. package/esm/public/cli/commands/agent-module.js +690 -0
  67. package/esm/public/cli/commands/app-limit-event.js +248 -2
  68. package/esm/public/cli/commands/app-limit.js +44 -0
  69. package/esm/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  70. package/esm/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  71. package/esm/public/cli/commands/audit-log-auth.d.ts +8 -0
  72. package/esm/{auth/cli/commands/audit-log.js → public/cli/commands/audit-log-auth.js} +14 -14
  73. package/esm/public/cli/commands/billing-module.js +88 -0
  74. package/esm/public/cli/commands/compute-log-module.d.ts +8 -0
  75. package/esm/public/cli/commands/compute-log-module.js +514 -0
  76. package/esm/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  77. package/esm/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  78. package/esm/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  79. package/esm/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  80. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  81. package/{admin/cli/commands/usage-snapshot.d.ts → esm/public/cli/commands/db-usage-module.d.ts} +1 -1
  82. package/esm/public/cli/commands/db-usage-module.js +558 -0
  83. package/esm/public/cli/commands/entity-type-provision.js +386 -34
  84. package/esm/public/cli/commands/field.js +4 -26
  85. package/esm/public/cli/commands/function-module.d.ts +8 -0
  86. package/esm/public/cli/commands/function-module.js +778 -0
  87. package/{auth/cli/commands/audit-log.d.ts → esm/public/cli/commands/graph-module.d.ts} +1 -1
  88. package/esm/public/cli/commands/graph-module.js +584 -0
  89. package/esm/public/cli/commands/inference-log-module.d.ts +8 -0
  90. package/esm/public/cli/commands/inference-log-module.js +514 -0
  91. package/esm/public/cli/commands/memberships-module.js +22 -0
  92. package/esm/public/cli/commands/merkle-store-module.d.ts +8 -0
  93. package/esm/public/cli/commands/merkle-store-module.js +498 -0
  94. package/esm/public/cli/commands/namespace-module.d.ts +8 -0
  95. package/esm/public/cli/commands/namespace-module.js +558 -0
  96. package/esm/public/cli/commands/org-limit-aggregate.js +44 -0
  97. package/esm/public/cli/commands/org-limit-event.js +248 -2
  98. package/esm/public/cli/commands/org-limit.js +44 -0
  99. package/esm/public/cli/commands/partition.js +44 -0
  100. package/esm/public/cli/commands/storage-log-module.d.ts +8 -0
  101. package/esm/public/cli/commands/storage-log-module.js +514 -0
  102. package/esm/public/cli/commands/storage-module.js +36 -14
  103. package/esm/public/cli/commands/transfer-log-module.d.ts +8 -0
  104. package/esm/public/cli/commands/transfer-log-module.js +514 -0
  105. package/esm/public/cli/commands.js +83 -101
  106. package/esm/public/cli/executor.d.ts +72 -125
  107. package/esm/public/orm/index.d.ts +102 -153
  108. package/esm/public/orm/index.js +59 -55
  109. package/esm/public/orm/input-types.d.ts +6255 -3877
  110. package/esm/public/orm/input-types.js +24 -15
  111. package/esm/public/orm/models/agentModule.d.ts +54 -0
  112. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  113. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  114. package/esm/public/orm/models/appLimitEvent.js +46 -1
  115. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  116. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  117. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  118. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  119. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  120. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  121. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  122. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  123. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  124. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  125. package/esm/public/orm/models/functionModule.d.ts +54 -0
  126. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  127. package/esm/public/orm/models/graphModule.d.ts +54 -0
  128. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  129. package/esm/public/orm/models/index.d.ts +29 -27
  130. package/esm/public/orm/models/index.js +29 -27
  131. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  132. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  133. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  134. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  135. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  136. package/esm/public/orm/models/namespaceModule.js +100 -0
  137. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  138. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  139. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  140. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  141. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  142. package/esm/public/orm/models/transferLogModule.js +100 -0
  143. package/esm/public/orm/mutation/index.d.ts +69 -133
  144. package/esm/public/orm/mutation/index.js +78 -174
  145. package/esm/public/orm/query/index.d.ts +22 -71
  146. package/esm/public/orm/query/index.js +36 -124
  147. package/objects/orm/index.d.ts +1 -1
  148. package/objects/orm/index.js +2 -1
  149. package/package.json +6 -6
  150. package/{esm/public/cli/commands/agent-task.d.ts → public/cli/commands/agent-module.d.ts} +1 -1
  151. package/public/cli/commands/agent-module.js +692 -0
  152. package/public/cli/commands/app-limit-event.js +248 -2
  153. package/public/cli/commands/app-limit.js +44 -0
  154. package/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  155. package/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  156. package/public/cli/commands/audit-log-auth.d.ts +8 -0
  157. package/public/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  158. package/public/cli/commands/billing-module.js +88 -0
  159. package/public/cli/commands/compute-log-module.d.ts +8 -0
  160. package/public/cli/commands/compute-log-module.js +516 -0
  161. package/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  162. package/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  163. package/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  164. package/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  165. package/public/cli/commands/construct-blueprint.js +1 -1
  166. package/{esm/admin/cli/commands/usage-snapshot.d.ts → public/cli/commands/db-usage-module.d.ts} +1 -1
  167. package/public/cli/commands/db-usage-module.js +560 -0
  168. package/public/cli/commands/entity-type-provision.js +386 -34
  169. package/public/cli/commands/field.js +4 -26
  170. package/public/cli/commands/function-module.d.ts +8 -0
  171. package/public/cli/commands/function-module.js +780 -0
  172. package/{esm/auth/cli/commands/audit-log.d.ts → public/cli/commands/graph-module.d.ts} +1 -1
  173. package/public/cli/commands/graph-module.js +586 -0
  174. package/public/cli/commands/inference-log-module.d.ts +8 -0
  175. package/public/cli/commands/inference-log-module.js +516 -0
  176. package/public/cli/commands/memberships-module.js +22 -0
  177. package/public/cli/commands/merkle-store-module.d.ts +8 -0
  178. package/public/cli/commands/merkle-store-module.js +500 -0
  179. package/public/cli/commands/namespace-module.d.ts +8 -0
  180. package/public/cli/commands/namespace-module.js +560 -0
  181. package/public/cli/commands/org-limit-aggregate.js +44 -0
  182. package/public/cli/commands/org-limit-event.js +248 -2
  183. package/public/cli/commands/org-limit.js +44 -0
  184. package/public/cli/commands/partition.js +44 -0
  185. package/public/cli/commands/storage-log-module.d.ts +8 -0
  186. package/public/cli/commands/storage-log-module.js +516 -0
  187. package/public/cli/commands/storage-module.js +36 -14
  188. package/public/cli/commands/transfer-log-module.d.ts +8 -0
  189. package/public/cli/commands/transfer-log-module.js +516 -0
  190. package/public/cli/commands.js +83 -101
  191. package/public/cli/executor.d.ts +72 -125
  192. package/public/orm/index.d.ts +102 -153
  193. package/public/orm/index.js +60 -55
  194. package/public/orm/input-types.d.ts +6255 -3877
  195. package/public/orm/input-types.js +24 -15
  196. package/public/orm/models/agentModule.d.ts +54 -0
  197. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  198. package/public/orm/models/appLimitEvent.d.ts +26 -2
  199. package/public/orm/models/appLimitEvent.js +45 -0
  200. package/public/orm/models/auditLogAuth.d.ts +54 -0
  201. package/{admin/orm/models/usageSnapshot.js → public/orm/models/auditLogAuth.js} +27 -27
  202. package/public/orm/models/computeLogModule.d.ts +54 -0
  203. package/{auth/orm/models/auditLog.js → public/orm/models/computeLogModule.js} +27 -27
  204. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  205. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  206. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  207. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  208. package/public/orm/models/dbUsageModule.d.ts +54 -0
  209. package/public/orm/models/{usageSnapshot.js → dbUsageModule.js} +27 -27
  210. package/public/orm/models/functionModule.d.ts +54 -0
  211. package/public/orm/models/functionModule.js +104 -0
  212. package/public/orm/models/graphModule.d.ts +54 -0
  213. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  214. package/public/orm/models/index.d.ts +29 -27
  215. package/public/orm/models/index.js +61 -57
  216. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  217. package/public/orm/models/inferenceLogModule.js +104 -0
  218. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  219. package/public/orm/models/merkleStoreModule.js +104 -0
  220. package/public/orm/models/namespaceModule.d.ts +54 -0
  221. package/public/orm/models/namespaceModule.js +104 -0
  222. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  223. package/public/orm/models/orgLimitEvent.js +45 -0
  224. package/public/orm/models/storageLogModule.d.ts +54 -0
  225. package/public/orm/models/storageLogModule.js +104 -0
  226. package/public/orm/models/transferLogModule.d.ts +54 -0
  227. package/public/orm/models/transferLogModule.js +104 -0
  228. package/public/orm/mutation/index.d.ts +69 -133
  229. package/public/orm/mutation/index.js +78 -174
  230. package/public/orm/query/index.d.ts +22 -71
  231. package/public/orm/query/index.js +36 -124
  232. package/admin/cli/commands/usage-snapshot.js +0 -316
  233. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  234. package/auth/orm/models/auditLog.d.ts +0 -54
  235. package/esm/admin/cli/commands/usage-snapshot.js +0 -314
  236. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  237. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  238. package/esm/public/cli/commands/agent-message.js +0 -324
  239. package/esm/public/cli/commands/agent-task.js +0 -368
  240. package/esm/public/cli/commands/agent-thread.js +0 -372
  241. package/esm/public/cli/commands/audit-log.d.ts +0 -8
  242. package/esm/public/cli/commands/commit.d.ts +0 -8
  243. package/esm/public/cli/commands/commit.js +0 -380
  244. package/esm/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  245. package/esm/public/cli/commands/freeze-objects.d.ts +0 -8
  246. package/esm/public/cli/commands/freeze-objects.js +0 -34
  247. package/esm/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  248. package/esm/public/cli/commands/get-all-objects-from-root.js +0 -52
  249. package/esm/public/cli/commands/get-all-record.d.ts +0 -8
  250. package/esm/public/cli/commands/get-all-record.js +0 -124
  251. package/esm/public/cli/commands/get-object-at-path.d.ts +0 -8
  252. package/esm/public/cli/commands/get-object-at-path.js +0 -47
  253. package/esm/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  254. package/esm/public/cli/commands/get-path-objects-from-root.js +0 -57
  255. package/esm/public/cli/commands/init-empty-repo.d.ts +0 -8
  256. package/esm/public/cli/commands/init-empty-repo.js +0 -34
  257. package/esm/public/cli/commands/insert-node-at-path.d.ts +0 -8
  258. package/esm/public/cli/commands/insert-node-at-path.js +0 -34
  259. package/esm/public/cli/commands/object.d.ts +0 -8
  260. package/esm/public/cli/commands/ref.d.ts +0 -8
  261. package/esm/public/cli/commands/ref.js +0 -290
  262. package/esm/public/cli/commands/remove-node-at-path.d.ts +0 -8
  263. package/esm/public/cli/commands/remove-node-at-path.js +0 -34
  264. package/esm/public/cli/commands/rev-parse.d.ts +0 -8
  265. package/esm/public/cli/commands/set-and-commit.d.ts +0 -8
  266. package/esm/public/cli/commands/set-and-commit.js +0 -34
  267. package/esm/public/cli/commands/set-data-at-path.d.ts +0 -8
  268. package/esm/public/cli/commands/set-data-at-path.js +0 -34
  269. package/esm/public/cli/commands/set-props-and-commit.d.ts +0 -8
  270. package/esm/public/cli/commands/set-props-and-commit.js +0 -34
  271. package/esm/public/cli/commands/store.d.ts +0 -8
  272. package/esm/public/cli/commands/store.js +0 -276
  273. package/esm/public/cli/commands/update-node-at-path.d.ts +0 -8
  274. package/esm/public/cli/commands/update-node-at-path.js +0 -34
  275. package/esm/public/cli/commands/usage-snapshot.d.ts +0 -8
  276. package/esm/public/cli/commands/usage-snapshot.js +0 -314
  277. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  278. package/esm/public/orm/models/agentTask.d.ts +0 -54
  279. package/esm/public/orm/models/agentThread.d.ts +0 -54
  280. package/esm/public/orm/models/auditLog.d.ts +0 -54
  281. package/esm/public/orm/models/commit.d.ts +0 -54
  282. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  283. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  284. package/esm/public/orm/models/getAllRecord.js +0 -55
  285. package/esm/public/orm/models/object.d.ts +0 -54
  286. package/esm/public/orm/models/object.js +0 -90
  287. package/esm/public/orm/models/ref.d.ts +0 -54
  288. package/esm/public/orm/models/ref.js +0 -100
  289. package/esm/public/orm/models/store.d.ts +0 -54
  290. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  291. package/esm/public/orm/models/usageSnapshot.js +0 -100
  292. package/public/cli/commands/agent-message.d.ts +0 -8
  293. package/public/cli/commands/agent-message.js +0 -326
  294. package/public/cli/commands/agent-task.d.ts +0 -8
  295. package/public/cli/commands/agent-task.js +0 -370
  296. package/public/cli/commands/agent-thread.d.ts +0 -8
  297. package/public/cli/commands/agent-thread.js +0 -374
  298. package/public/cli/commands/audit-log.d.ts +0 -8
  299. package/public/cli/commands/commit.d.ts +0 -8
  300. package/public/cli/commands/commit.js +0 -382
  301. package/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  302. package/public/cli/commands/freeze-objects.d.ts +0 -8
  303. package/public/cli/commands/freeze-objects.js +0 -36
  304. package/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  305. package/public/cli/commands/get-all-objects-from-root.js +0 -54
  306. package/public/cli/commands/get-all-record.d.ts +0 -8
  307. package/public/cli/commands/get-all-record.js +0 -126
  308. package/public/cli/commands/get-object-at-path.d.ts +0 -8
  309. package/public/cli/commands/get-object-at-path.js +0 -49
  310. package/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  311. package/public/cli/commands/get-path-objects-from-root.js +0 -59
  312. package/public/cli/commands/init-empty-repo.d.ts +0 -8
  313. package/public/cli/commands/init-empty-repo.js +0 -36
  314. package/public/cli/commands/insert-node-at-path.d.ts +0 -8
  315. package/public/cli/commands/insert-node-at-path.js +0 -36
  316. package/public/cli/commands/object.d.ts +0 -8
  317. package/public/cli/commands/ref.d.ts +0 -8
  318. package/public/cli/commands/ref.js +0 -292
  319. package/public/cli/commands/remove-node-at-path.d.ts +0 -8
  320. package/public/cli/commands/remove-node-at-path.js +0 -36
  321. package/public/cli/commands/rev-parse.d.ts +0 -8
  322. package/public/cli/commands/set-and-commit.d.ts +0 -8
  323. package/public/cli/commands/set-and-commit.js +0 -36
  324. package/public/cli/commands/set-data-at-path.d.ts +0 -8
  325. package/public/cli/commands/set-data-at-path.js +0 -36
  326. package/public/cli/commands/set-props-and-commit.d.ts +0 -8
  327. package/public/cli/commands/set-props-and-commit.js +0 -36
  328. package/public/cli/commands/store.d.ts +0 -8
  329. package/public/cli/commands/store.js +0 -278
  330. package/public/cli/commands/update-node-at-path.d.ts +0 -8
  331. package/public/cli/commands/update-node-at-path.js +0 -36
  332. package/public/cli/commands/usage-snapshot.d.ts +0 -8
  333. package/public/cli/commands/usage-snapshot.js +0 -316
  334. package/public/orm/models/agentMessage.d.ts +0 -54
  335. package/public/orm/models/agentTask.d.ts +0 -54
  336. package/public/orm/models/agentThread.d.ts +0 -54
  337. package/public/orm/models/auditLog.d.ts +0 -54
  338. package/public/orm/models/auditLog.js +0 -104
  339. package/public/orm/models/commit.d.ts +0 -54
  340. package/public/orm/models/commit.js +0 -104
  341. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  342. package/public/orm/models/getAllRecord.d.ts +0 -30
  343. package/public/orm/models/getAllRecord.js +0 -59
  344. package/public/orm/models/object.d.ts +0 -54
  345. package/public/orm/models/object.js +0 -94
  346. package/public/orm/models/ref.d.ts +0 -54
  347. package/public/orm/models/store.d.ts +0 -54
  348. package/public/orm/models/store.js +0 -104
  349. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -0,0 +1,514 @@
1
+ /**
2
+ * CLI commands for StorageLogModule
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
+ storageLogTableId: 'uuid',
15
+ storageLogTableName: 'string',
16
+ usageDailyTableId: 'uuid',
17
+ usageDailyTableName: 'string',
18
+ interval: 'string',
19
+ retention: 'string',
20
+ premake: 'int',
21
+ scope: 'string',
22
+ actorFkTableId: 'uuid',
23
+ entityFkTableId: 'uuid',
24
+ prefix: 'string',
25
+ };
26
+ const usage = '\nstorage-log-module <command>\n\nCommands:\n list List storageLogModule records\n find-first Find first matching storageLogModule record\n get Get a storageLogModule by ID\n create Create a new storageLogModule\n update Update an existing storageLogModule\n delete Delete a storageLogModule\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';
27
+ export default async (argv, prompter, _options) => {
28
+ if (argv.help || argv.h) {
29
+ console.log(usage);
30
+ process.exit(0);
31
+ }
32
+ const { first: subcommand, newArgv } = extractFirst(argv);
33
+ if (!subcommand) {
34
+ const answer = await prompter.prompt(argv, [
35
+ {
36
+ type: 'autocomplete',
37
+ name: 'subcommand',
38
+ message: 'What do you want to do?',
39
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
40
+ },
41
+ ]);
42
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
43
+ }
44
+ return handleTableSubcommand(subcommand, newArgv, prompter);
45
+ };
46
+ async function handleTableSubcommand(subcommand, argv, prompter) {
47
+ switch (subcommand) {
48
+ case 'list':
49
+ return handleList(argv, prompter);
50
+ case 'find-first':
51
+ return handleFindFirst(argv, prompter);
52
+ case 'get':
53
+ return handleGet(argv, prompter);
54
+ case 'create':
55
+ return handleCreate(argv, prompter);
56
+ case 'update':
57
+ return handleUpdate(argv, prompter);
58
+ case 'delete':
59
+ return handleDelete(argv, prompter);
60
+ default:
61
+ console.log(usage);
62
+ process.exit(1);
63
+ }
64
+ }
65
+ async function handleList(argv, _prompter) {
66
+ try {
67
+ const defaultSelect = {
68
+ id: true,
69
+ databaseId: true,
70
+ schemaId: true,
71
+ privateSchemaId: true,
72
+ storageLogTableId: true,
73
+ storageLogTableName: true,
74
+ usageDailyTableId: true,
75
+ usageDailyTableName: true,
76
+ interval: true,
77
+ retention: true,
78
+ premake: true,
79
+ scope: true,
80
+ actorFkTableId: true,
81
+ entityFkTableId: true,
82
+ prefix: true,
83
+ };
84
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
85
+ const client = getClient();
86
+ const result = await client.storageLogModule.findMany(findManyArgs).execute();
87
+ console.log(JSON.stringify(result, null, 2));
88
+ }
89
+ catch (error) {
90
+ console.error('Failed to list records.');
91
+ if (error instanceof Error) {
92
+ console.error(error.message);
93
+ }
94
+ process.exit(1);
95
+ }
96
+ }
97
+ async function handleFindFirst(argv, _prompter) {
98
+ try {
99
+ const defaultSelect = {
100
+ id: true,
101
+ databaseId: true,
102
+ schemaId: true,
103
+ privateSchemaId: true,
104
+ storageLogTableId: true,
105
+ storageLogTableName: true,
106
+ usageDailyTableId: true,
107
+ usageDailyTableName: true,
108
+ interval: true,
109
+ retention: true,
110
+ premake: true,
111
+ scope: true,
112
+ actorFkTableId: true,
113
+ entityFkTableId: true,
114
+ prefix: true,
115
+ };
116
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
117
+ const client = getClient();
118
+ const result = await client.storageLogModule.findFirst(findFirstArgs).execute();
119
+ console.log(JSON.stringify(result, null, 2));
120
+ }
121
+ catch (error) {
122
+ console.error('Failed to find record.');
123
+ if (error instanceof Error) {
124
+ console.error(error.message);
125
+ }
126
+ process.exit(1);
127
+ }
128
+ }
129
+ async function handleGet(argv, prompter) {
130
+ try {
131
+ const answers = await prompter.prompt(argv, [
132
+ {
133
+ type: 'text',
134
+ name: 'id',
135
+ message: 'id',
136
+ required: true,
137
+ },
138
+ ]);
139
+ const client = getClient();
140
+ const result = await client.storageLogModule
141
+ .findOne({
142
+ id: answers.id,
143
+ select: {
144
+ id: true,
145
+ databaseId: true,
146
+ schemaId: true,
147
+ privateSchemaId: true,
148
+ storageLogTableId: true,
149
+ storageLogTableName: true,
150
+ usageDailyTableId: true,
151
+ usageDailyTableName: true,
152
+ interval: true,
153
+ retention: true,
154
+ premake: true,
155
+ scope: true,
156
+ actorFkTableId: true,
157
+ entityFkTableId: true,
158
+ prefix: true,
159
+ },
160
+ })
161
+ .execute();
162
+ console.log(JSON.stringify(result, null, 2));
163
+ }
164
+ catch (error) {
165
+ console.error('Record not found.');
166
+ if (error instanceof Error) {
167
+ console.error(error.message);
168
+ }
169
+ process.exit(1);
170
+ }
171
+ }
172
+ async function handleCreate(argv, prompter) {
173
+ try {
174
+ const rawAnswers = await prompter.prompt(argv, [
175
+ {
176
+ type: 'text',
177
+ name: 'databaseId',
178
+ message: 'databaseId',
179
+ required: true,
180
+ },
181
+ {
182
+ type: 'text',
183
+ name: 'schemaId',
184
+ message: 'schemaId',
185
+ required: false,
186
+ skipPrompt: true,
187
+ },
188
+ {
189
+ type: 'text',
190
+ name: 'privateSchemaId',
191
+ message: 'privateSchemaId',
192
+ required: false,
193
+ skipPrompt: true,
194
+ },
195
+ {
196
+ type: 'text',
197
+ name: 'storageLogTableId',
198
+ message: 'storageLogTableId',
199
+ required: false,
200
+ skipPrompt: true,
201
+ },
202
+ {
203
+ type: 'text',
204
+ name: 'storageLogTableName',
205
+ message: 'storageLogTableName',
206
+ required: false,
207
+ skipPrompt: true,
208
+ },
209
+ {
210
+ type: 'text',
211
+ name: 'usageDailyTableId',
212
+ message: 'usageDailyTableId',
213
+ required: false,
214
+ skipPrompt: true,
215
+ },
216
+ {
217
+ type: 'text',
218
+ name: 'usageDailyTableName',
219
+ message: 'usageDailyTableName',
220
+ required: false,
221
+ skipPrompt: true,
222
+ },
223
+ {
224
+ type: 'text',
225
+ name: 'interval',
226
+ message: 'interval',
227
+ required: false,
228
+ skipPrompt: true,
229
+ },
230
+ {
231
+ type: 'text',
232
+ name: 'retention',
233
+ message: 'retention',
234
+ required: false,
235
+ skipPrompt: true,
236
+ },
237
+ {
238
+ type: 'text',
239
+ name: 'premake',
240
+ message: 'premake',
241
+ required: false,
242
+ skipPrompt: true,
243
+ },
244
+ {
245
+ type: 'text',
246
+ name: 'scope',
247
+ message: 'scope',
248
+ required: false,
249
+ skipPrompt: true,
250
+ },
251
+ {
252
+ type: 'text',
253
+ name: 'actorFkTableId',
254
+ message: 'actorFkTableId',
255
+ required: false,
256
+ skipPrompt: true,
257
+ },
258
+ {
259
+ type: 'text',
260
+ name: 'entityFkTableId',
261
+ message: 'entityFkTableId',
262
+ required: false,
263
+ skipPrompt: true,
264
+ },
265
+ {
266
+ type: 'text',
267
+ name: 'prefix',
268
+ message: 'prefix',
269
+ required: false,
270
+ skipPrompt: true,
271
+ },
272
+ ]);
273
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
274
+ const cleanedData = stripUndefined(answers, fieldSchema);
275
+ const client = getClient();
276
+ const result = await client.storageLogModule
277
+ .create({
278
+ data: {
279
+ databaseId: cleanedData.databaseId,
280
+ schemaId: cleanedData.schemaId,
281
+ privateSchemaId: cleanedData.privateSchemaId,
282
+ storageLogTableId: cleanedData.storageLogTableId,
283
+ storageLogTableName: cleanedData.storageLogTableName,
284
+ usageDailyTableId: cleanedData.usageDailyTableId,
285
+ usageDailyTableName: cleanedData.usageDailyTableName,
286
+ interval: cleanedData.interval,
287
+ retention: cleanedData.retention,
288
+ premake: cleanedData.premake,
289
+ scope: cleanedData.scope,
290
+ actorFkTableId: cleanedData.actorFkTableId,
291
+ entityFkTableId: cleanedData.entityFkTableId,
292
+ prefix: cleanedData.prefix,
293
+ },
294
+ select: {
295
+ id: true,
296
+ databaseId: true,
297
+ schemaId: true,
298
+ privateSchemaId: true,
299
+ storageLogTableId: true,
300
+ storageLogTableName: true,
301
+ usageDailyTableId: true,
302
+ usageDailyTableName: true,
303
+ interval: true,
304
+ retention: true,
305
+ premake: true,
306
+ scope: true,
307
+ actorFkTableId: true,
308
+ entityFkTableId: true,
309
+ prefix: true,
310
+ },
311
+ })
312
+ .execute();
313
+ console.log(JSON.stringify(result, null, 2));
314
+ }
315
+ catch (error) {
316
+ console.error('Failed to create record.');
317
+ if (error instanceof Error) {
318
+ console.error(error.message);
319
+ }
320
+ process.exit(1);
321
+ }
322
+ }
323
+ async function handleUpdate(argv, prompter) {
324
+ try {
325
+ const rawAnswers = await prompter.prompt(argv, [
326
+ {
327
+ type: 'text',
328
+ name: 'id',
329
+ message: 'id',
330
+ required: true,
331
+ },
332
+ {
333
+ type: 'text',
334
+ name: 'databaseId',
335
+ message: 'databaseId',
336
+ required: false,
337
+ },
338
+ {
339
+ type: 'text',
340
+ name: 'schemaId',
341
+ message: 'schemaId',
342
+ required: false,
343
+ skipPrompt: true,
344
+ },
345
+ {
346
+ type: 'text',
347
+ name: 'privateSchemaId',
348
+ message: 'privateSchemaId',
349
+ required: false,
350
+ skipPrompt: true,
351
+ },
352
+ {
353
+ type: 'text',
354
+ name: 'storageLogTableId',
355
+ message: 'storageLogTableId',
356
+ required: false,
357
+ skipPrompt: true,
358
+ },
359
+ {
360
+ type: 'text',
361
+ name: 'storageLogTableName',
362
+ message: 'storageLogTableName',
363
+ required: false,
364
+ skipPrompt: true,
365
+ },
366
+ {
367
+ type: 'text',
368
+ name: 'usageDailyTableId',
369
+ message: 'usageDailyTableId',
370
+ required: false,
371
+ skipPrompt: true,
372
+ },
373
+ {
374
+ type: 'text',
375
+ name: 'usageDailyTableName',
376
+ message: 'usageDailyTableName',
377
+ required: false,
378
+ skipPrompt: true,
379
+ },
380
+ {
381
+ type: 'text',
382
+ name: 'interval',
383
+ message: 'interval',
384
+ required: false,
385
+ skipPrompt: true,
386
+ },
387
+ {
388
+ type: 'text',
389
+ name: 'retention',
390
+ message: 'retention',
391
+ required: false,
392
+ skipPrompt: true,
393
+ },
394
+ {
395
+ type: 'text',
396
+ name: 'premake',
397
+ message: 'premake',
398
+ required: false,
399
+ skipPrompt: true,
400
+ },
401
+ {
402
+ type: 'text',
403
+ name: 'scope',
404
+ message: 'scope',
405
+ required: false,
406
+ skipPrompt: true,
407
+ },
408
+ {
409
+ type: 'text',
410
+ name: 'actorFkTableId',
411
+ message: 'actorFkTableId',
412
+ required: false,
413
+ skipPrompt: true,
414
+ },
415
+ {
416
+ type: 'text',
417
+ name: 'entityFkTableId',
418
+ message: 'entityFkTableId',
419
+ required: false,
420
+ skipPrompt: true,
421
+ },
422
+ {
423
+ type: 'text',
424
+ name: 'prefix',
425
+ message: 'prefix',
426
+ required: false,
427
+ skipPrompt: true,
428
+ },
429
+ ]);
430
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
431
+ const cleanedData = stripUndefined(answers, fieldSchema);
432
+ const client = getClient();
433
+ const result = await client.storageLogModule
434
+ .update({
435
+ where: {
436
+ id: answers.id,
437
+ },
438
+ data: {
439
+ databaseId: cleanedData.databaseId,
440
+ schemaId: cleanedData.schemaId,
441
+ privateSchemaId: cleanedData.privateSchemaId,
442
+ storageLogTableId: cleanedData.storageLogTableId,
443
+ storageLogTableName: cleanedData.storageLogTableName,
444
+ usageDailyTableId: cleanedData.usageDailyTableId,
445
+ usageDailyTableName: cleanedData.usageDailyTableName,
446
+ interval: cleanedData.interval,
447
+ retention: cleanedData.retention,
448
+ premake: cleanedData.premake,
449
+ scope: cleanedData.scope,
450
+ actorFkTableId: cleanedData.actorFkTableId,
451
+ entityFkTableId: cleanedData.entityFkTableId,
452
+ prefix: cleanedData.prefix,
453
+ },
454
+ select: {
455
+ id: true,
456
+ databaseId: true,
457
+ schemaId: true,
458
+ privateSchemaId: true,
459
+ storageLogTableId: true,
460
+ storageLogTableName: true,
461
+ usageDailyTableId: true,
462
+ usageDailyTableName: true,
463
+ interval: true,
464
+ retention: true,
465
+ premake: true,
466
+ scope: true,
467
+ actorFkTableId: true,
468
+ entityFkTableId: true,
469
+ prefix: true,
470
+ },
471
+ })
472
+ .execute();
473
+ console.log(JSON.stringify(result, null, 2));
474
+ }
475
+ catch (error) {
476
+ console.error('Failed to update record.');
477
+ if (error instanceof Error) {
478
+ console.error(error.message);
479
+ }
480
+ process.exit(1);
481
+ }
482
+ }
483
+ async function handleDelete(argv, prompter) {
484
+ try {
485
+ const rawAnswers = await prompter.prompt(argv, [
486
+ {
487
+ type: 'text',
488
+ name: 'id',
489
+ message: 'id',
490
+ required: true,
491
+ },
492
+ ]);
493
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
494
+ const client = getClient();
495
+ const result = await client.storageLogModule
496
+ .delete({
497
+ where: {
498
+ id: answers.id,
499
+ },
500
+ select: {
501
+ id: true,
502
+ },
503
+ })
504
+ .execute();
505
+ console.log(JSON.stringify(result, null, 2));
506
+ }
507
+ catch (error) {
508
+ console.error('Failed to delete record.');
509
+ if (error instanceof Error) {
510
+ console.error(error.message);
511
+ }
512
+ process.exit(1);
513
+ }
514
+ }
@@ -16,8 +16,9 @@ const fieldSchema = {
16
16
  bucketsTableName: 'string',
17
17
  filesTableName: 'string',
18
18
  membershipType: 'int',
19
+ key: 'string',
19
20
  policies: 'json',
20
- skipDefaultPolicyTables: 'string',
21
+ provisions: 'json',
21
22
  entityTableId: 'uuid',
22
23
  endpoint: 'string',
23
24
  publicUrlPrefix: 'string',
@@ -92,8 +93,9 @@ async function handleList(argv, _prompter) {
92
93
  bucketsTableName: true,
93
94
  filesTableName: true,
94
95
  membershipType: true,
96
+ key: true,
95
97
  policies: true,
96
- skipDefaultPolicyTables: true,
98
+ provisions: true,
97
99
  entityTableId: true,
98
100
  endpoint: true,
99
101
  publicUrlPrefix: true,
@@ -142,8 +144,9 @@ async function handleFindFirst(argv, _prompter) {
142
144
  bucketsTableName: true,
143
145
  filesTableName: true,
144
146
  membershipType: true,
147
+ key: true,
145
148
  policies: true,
146
- skipDefaultPolicyTables: true,
149
+ provisions: true,
147
150
  entityTableId: true,
148
151
  endpoint: true,
149
152
  publicUrlPrefix: true,
@@ -204,8 +207,9 @@ async function handleGet(argv, prompter) {
204
207
  bucketsTableName: true,
205
208
  filesTableName: true,
206
209
  membershipType: true,
210
+ key: true,
207
211
  policies: true,
208
- skipDefaultPolicyTables: true,
212
+ provisions: true,
209
213
  entityTableId: true,
210
214
  endpoint: true,
211
215
  publicUrlPrefix: true,
@@ -299,6 +303,13 @@ async function handleCreate(argv, prompter) {
299
303
  required: false,
300
304
  skipPrompt: true,
301
305
  },
306
+ {
307
+ type: 'text',
308
+ name: 'key',
309
+ message: 'key',
310
+ required: false,
311
+ skipPrompt: true,
312
+ },
302
313
  {
303
314
  type: 'json',
304
315
  name: 'policies',
@@ -307,9 +318,9 @@ async function handleCreate(argv, prompter) {
307
318
  skipPrompt: true,
308
319
  },
309
320
  {
310
- type: 'text',
311
- name: 'skipDefaultPolicyTables',
312
- message: 'skipDefaultPolicyTables',
321
+ type: 'json',
322
+ name: 'provisions',
323
+ message: 'provisions',
313
324
  required: false,
314
325
  skipPrompt: true,
315
326
  },
@@ -482,8 +493,9 @@ async function handleCreate(argv, prompter) {
482
493
  bucketsTableName: cleanedData.bucketsTableName,
483
494
  filesTableName: cleanedData.filesTableName,
484
495
  membershipType: cleanedData.membershipType,
496
+ key: cleanedData.key,
485
497
  policies: cleanedData.policies,
486
- skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables,
498
+ provisions: cleanedData.provisions,
487
499
  entityTableId: cleanedData.entityTableId,
488
500
  endpoint: cleanedData.endpoint,
489
501
  publicUrlPrefix: cleanedData.publicUrlPrefix,
@@ -517,8 +529,9 @@ async function handleCreate(argv, prompter) {
517
529
  bucketsTableName: true,
518
530
  filesTableName: true,
519
531
  membershipType: true,
532
+ key: true,
520
533
  policies: true,
521
- skipDefaultPolicyTables: true,
534
+ provisions: true,
522
535
  entityTableId: true,
523
536
  endpoint: true,
524
537
  publicUrlPrefix: true,
@@ -618,6 +631,13 @@ async function handleUpdate(argv, prompter) {
618
631
  required: false,
619
632
  skipPrompt: true,
620
633
  },
634
+ {
635
+ type: 'text',
636
+ name: 'key',
637
+ message: 'key',
638
+ required: false,
639
+ skipPrompt: true,
640
+ },
621
641
  {
622
642
  type: 'json',
623
643
  name: 'policies',
@@ -626,9 +646,9 @@ async function handleUpdate(argv, prompter) {
626
646
  skipPrompt: true,
627
647
  },
628
648
  {
629
- type: 'text',
630
- name: 'skipDefaultPolicyTables',
631
- message: 'skipDefaultPolicyTables',
649
+ type: 'json',
650
+ name: 'provisions',
651
+ message: 'provisions',
632
652
  required: false,
633
653
  skipPrompt: true,
634
654
  },
@@ -804,8 +824,9 @@ async function handleUpdate(argv, prompter) {
804
824
  bucketsTableName: cleanedData.bucketsTableName,
805
825
  filesTableName: cleanedData.filesTableName,
806
826
  membershipType: cleanedData.membershipType,
827
+ key: cleanedData.key,
807
828
  policies: cleanedData.policies,
808
- skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables,
829
+ provisions: cleanedData.provisions,
809
830
  entityTableId: cleanedData.entityTableId,
810
831
  endpoint: cleanedData.endpoint,
811
832
  publicUrlPrefix: cleanedData.publicUrlPrefix,
@@ -839,8 +860,9 @@ async function handleUpdate(argv, prompter) {
839
860
  bucketsTableName: true,
840
861
  filesTableName: true,
841
862
  membershipType: true,
863
+ key: true,
842
864
  policies: true,
843
- skipDefaultPolicyTables: true,
865
+ provisions: true,
844
866
  entityTableId: true,
845
867
  endpoint: true,
846
868
  publicUrlPrefix: true,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for TransferLogModule
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;