@constructive-sdk/cli 0.30.3 → 0.31.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 (707) hide show
  1. package/admin/cli/commands/app-admin-grant.js +34 -34
  2. package/admin/cli/commands/app-claimed-invite.js +28 -28
  3. package/admin/cli/commands/app-grant.js +48 -48
  4. package/admin/cli/commands/app-invite.js +104 -104
  5. package/admin/cli/commands/app-membership-default.js +34 -34
  6. package/admin/cli/commands/app-membership.js +108 -108
  7. package/admin/cli/commands/app-owner-grant.js +34 -34
  8. package/admin/cli/commands/app-permission-default-grant.js +34 -34
  9. package/admin/cli/commands/app-permission-default-permission.js +6 -6
  10. package/admin/cli/commands/app-permission.js +28 -28
  11. package/admin/cli/commands/app-permissions-get-by-mask.js +6 -6
  12. package/admin/cli/commands/membership-type.js +48 -48
  13. package/admin/cli/commands/org-admin-grant.js +34 -34
  14. package/admin/cli/commands/org-chart-edge-grant.js +59 -59
  15. package/admin/cli/commands/org-chart-edge.js +44 -44
  16. package/admin/cli/commands/org-claimed-invite.js +40 -40
  17. package/admin/cli/commands/org-get-managers-record.js +9 -9
  18. package/admin/cli/commands/org-get-subordinates-record.js +9 -9
  19. package/admin/cli/commands/org-grant.js +55 -55
  20. package/admin/cli/commands/org-invite.js +144 -144
  21. package/admin/cli/commands/org-is-manager-of.js +4 -4
  22. package/admin/cli/commands/org-member-profile.js +85 -85
  23. package/admin/cli/commands/org-member.js +28 -28
  24. package/admin/cli/commands/org-membership-default.js +40 -40
  25. package/admin/cli/commands/org-membership-setting.js +119 -119
  26. package/admin/cli/commands/org-membership.js +136 -136
  27. package/admin/cli/commands/org-owner-grant.js +34 -34
  28. package/admin/cli/commands/org-permission-default-grant.js +50 -50
  29. package/admin/cli/commands/org-permission-default-permission.js +22 -22
  30. package/admin/cli/commands/org-permission-default.js +19 -19
  31. package/admin/cli/commands/org-permission.js +28 -28
  32. package/admin/cli/commands/org-permissions-get-by-mask.js +6 -6
  33. package/admin/cli/commands.js +57 -57
  34. package/admin/cli/executor.d.ts +45 -45
  35. package/admin/orm/index.d.ts +67 -67
  36. package/admin/orm/index.js +44 -44
  37. package/admin/orm/input-types.d.ts +3168 -3168
  38. package/admin/orm/input-types.js +1 -1
  39. package/admin/orm/models/index.d.ts +22 -22
  40. package/admin/orm/models/index.js +45 -45
  41. package/admin/orm/mutation/index.d.ts +12 -12
  42. package/admin/orm/mutation/index.js +12 -12
  43. package/admin/orm/query/index.d.ts +47 -47
  44. package/admin/orm/query/index.js +68 -68
  45. package/agent/cli/commands/agent-message.js +77 -77
  46. package/agent/cli/commands/agent-persona.js +110 -110
  47. package/agent/cli/commands/agent-plan.js +69 -69
  48. package/agent/cli/commands/agent-prompt.js +71 -71
  49. package/agent/cli/commands/agent-resource-chunk.js +16 -16
  50. package/agent/cli/commands/agent-resource.js +189 -189
  51. package/agent/cli/commands/agent-task.js +132 -132
  52. package/agent/cli/commands/agent-thread.js +120 -120
  53. package/agent/cli/commands/agent.js +100 -100
  54. package/agent/cli/commands.js +9 -9
  55. package/agent/cli/executor.d.ts +4 -4
  56. package/agent/orm/index.d.ts +8 -8
  57. package/agent/orm/index.js +8 -8
  58. package/agent/orm/input-types.d.ts +1788 -1788
  59. package/agent/orm/input-types.js +9 -9
  60. package/agent/orm/models/index.d.ts +4 -4
  61. package/agent/orm/models/index.js +9 -9
  62. package/api/cli/commands/api-module.js +42 -42
  63. package/api/cli/commands/api-schema.js +26 -26
  64. package/api/cli/commands/api-setting.js +126 -126
  65. package/api/cli/commands/api.js +78 -78
  66. package/api/cli/commands/app.js +82 -82
  67. package/api/cli/commands/apply-registry-defaults.js +4 -4
  68. package/api/cli/commands/ast-migration.js +66 -66
  69. package/api/cli/commands/check-constraint.js +91 -91
  70. package/api/cli/commands/composite-type.js +90 -90
  71. package/api/cli/commands/cors-setting.js +34 -34
  72. package/api/cli/commands/database-setting.js +142 -142
  73. package/api/cli/commands/database-transfer.js +125 -125
  74. package/api/cli/commands/database.js +62 -62
  75. package/api/cli/commands/default-privilege.js +52 -52
  76. package/api/cli/commands/domain.js +86 -86
  77. package/api/cli/commands/embedding-chunk.js +178 -178
  78. package/api/cli/commands/enum.js +82 -82
  79. package/api/cli/commands/field.js +231 -231
  80. package/api/cli/commands/foreign-key-constraint.js +132 -132
  81. package/api/cli/commands/full-text-search.js +60 -60
  82. package/api/cli/commands/function.js +22 -22
  83. package/api/cli/commands/index.js +118 -118
  84. package/api/cli/commands/migrate-file.js +4 -4
  85. package/api/cli/commands/node-type-registry.js +48 -48
  86. package/api/cli/commands/partition.js +102 -102
  87. package/api/cli/commands/policy.js +128 -128
  88. package/api/cli/commands/primary-key-constraint.js +80 -80
  89. package/api/cli/commands/pubkey-setting.js +72 -72
  90. package/api/cli/commands/rls-setting.js +69 -69
  91. package/api/cli/commands/schema-grant.js +28 -28
  92. package/api/cli/commands/schema.js +106 -106
  93. package/api/cli/commands/site-metadatum.js +42 -42
  94. package/api/cli/commands/site-module.js +38 -38
  95. package/api/cli/commands/site-theme.js +6 -6
  96. package/api/cli/commands/site.js +102 -102
  97. package/api/cli/commands/spatial-relation.js +83 -83
  98. package/api/cli/commands/sql-action.js +57 -57
  99. package/api/cli/commands/table-grant.js +66 -66
  100. package/api/cli/commands/table.js +203 -203
  101. package/api/cli/commands/trigger-function.js +34 -34
  102. package/api/cli/commands/trigger.js +64 -64
  103. package/api/cli/commands/unique-constraint.js +94 -94
  104. package/api/cli/commands/view-grant.js +46 -46
  105. package/api/cli/commands/view-rule.js +52 -52
  106. package/api/cli/commands/view-table.js +34 -34
  107. package/api/cli/commands/view.js +135 -135
  108. package/api/cli/commands/webauthn-setting.js +174 -174
  109. package/api/cli/commands.js +71 -71
  110. package/api/cli/executor.d.ts +45 -45
  111. package/api/orm/index.d.ts +77 -77
  112. package/api/orm/index.js +64 -64
  113. package/api/orm/input-types.d.ts +8781 -8781
  114. package/api/orm/input-types.js +48 -48
  115. package/api/orm/models/index.d.ts +32 -32
  116. package/api/orm/models/index.js +65 -65
  117. package/api/orm/mutation/index.d.ts +29 -29
  118. package/api/orm/mutation/index.js +30 -30
  119. package/api/orm/query/index.d.ts +1 -1
  120. package/api/orm/query/index.js +4 -4
  121. package/auth/cli/commands/audit-log-auth.js +57 -57
  122. package/auth/cli/commands/crypto-address.js +50 -50
  123. package/auth/cli/commands/email.js +50 -50
  124. package/auth/cli/commands/identity-provider.js +20 -32
  125. package/auth/cli/commands/org-api-key-list.js +47 -47
  126. package/auth/cli/commands/phone-number.js +67 -67
  127. package/auth/cli/commands/principal-entity.js +32 -32
  128. package/auth/cli/commands/principal-scope-override.js +43 -43
  129. package/auth/cli/commands/principal.js +42 -42
  130. package/auth/cli/commands/user-connected-account.js +33 -33
  131. package/auth/cli/commands/user.js +43 -43
  132. package/auth/cli/commands/webauthn-credential.js +123 -123
  133. package/auth/cli/commands.js +59 -59
  134. package/auth/cli/executor.d.ts +96 -96
  135. package/auth/orm/index.d.ts +103 -103
  136. package/auth/orm/index.js +14 -14
  137. package/auth/orm/input-types.d.ts +2102 -2109
  138. package/auth/orm/input-types.js +5 -5
  139. package/auth/orm/models/index.d.ts +7 -7
  140. package/auth/orm/models/index.js +15 -15
  141. package/auth/orm/mutation/index.d.ts +138 -138
  142. package/auth/orm/mutation/index.js +168 -168
  143. package/auth/orm/query/index.d.ts +10 -10
  144. package/auth/orm/query/index.js +14 -14
  145. package/compute/cli/commands/db-preset.js +96 -96
  146. package/compute/cli/commands/function-api-binding.js +41 -41
  147. package/compute/cli/commands/function-definition.js +375 -397
  148. package/compute/cli/commands/function-deployment-event.js +48 -48
  149. package/compute/cli/commands/function-deployment.js +220 -220
  150. package/compute/cli/commands/function-execution-log.js +48 -48
  151. package/compute/cli/commands/function-graph-commit.js +69 -69
  152. package/compute/cli/commands/function-graph-execution-node-state.js +106 -106
  153. package/compute/cli/commands/function-graph-execution-output.js +28 -28
  154. package/compute/cli/commands/function-graph-execution.js +233 -233
  155. package/compute/cli/commands/function-graph-object.js +37 -37
  156. package/compute/cli/commands/function-graph-ref.js +22 -22
  157. package/compute/cli/commands/function-graph-store.js +28 -28
  158. package/compute/cli/commands/function-graph.js +100 -100
  159. package/compute/cli/commands/function-invocation.js +175 -131
  160. package/compute/cli/commands/get-all-record.js +11 -11
  161. package/compute/cli/commands/infra-commit.js +69 -69
  162. package/compute/cli/commands/infra-get-all-record.js +11 -11
  163. package/compute/cli/commands/infra-object.js +37 -37
  164. package/compute/cli/commands/infra-ref.js +22 -22
  165. package/compute/cli/commands/infra-store.js +28 -28
  166. package/compute/cli/commands/integration-provider.js +91 -91
  167. package/compute/cli/commands/namespace-event.js +127 -127
  168. package/compute/cli/commands/namespace.js +115 -115
  169. package/compute/cli/commands/platform-function-api-binding.js +41 -41
  170. package/compute/cli/commands/platform-function-definition.js +357 -379
  171. package/compute/cli/commands/platform-function-deployment-event.js +28 -28
  172. package/compute/cli/commands/platform-function-deployment.js +206 -206
  173. package/compute/cli/commands/platform-function-execution-log.js +28 -28
  174. package/compute/cli/commands/platform-function-invocation.js +161 -117
  175. package/compute/cli/commands/platform-namespace-event.js +108 -108
  176. package/compute/cli/commands/platform-namespace.js +109 -109
  177. package/compute/cli/commands/platform-resource-definition.js +157 -157
  178. package/compute/cli/commands/platform-resource-event.js +41 -41
  179. package/compute/cli/commands/platform-resource-status-check.js +59 -59
  180. package/compute/cli/commands/platform-resource.js +182 -182
  181. package/compute/cli/commands/platform-resources-requirements-state.js +32 -32
  182. package/compute/cli/commands/platform-resources-resolved-requirement.js +53 -53
  183. package/compute/cli/commands/resource-definition.js +172 -172
  184. package/compute/cli/commands/resource-event.js +50 -50
  185. package/compute/cli/commands/resource-status-check.js +68 -68
  186. package/compute/cli/commands/resource.js +192 -192
  187. package/compute/cli/commands/resources-requirements-state.js +32 -32
  188. package/compute/cli/commands/resources-resolved-requirement.js +53 -53
  189. package/compute/cli/commands.js +87 -87
  190. package/compute/cli/executor.d.ts +78 -78
  191. package/compute/orm/index.d.ts +110 -110
  192. package/compute/orm/index.js +64 -64
  193. package/compute/orm/input-types.d.ts +7256 -7037
  194. package/compute/orm/input-types.js +15 -13
  195. package/compute/orm/models/index.d.ts +32 -32
  196. package/compute/orm/models/index.js +65 -65
  197. package/compute/orm/mutation/index.d.ts +77 -77
  198. package/compute/orm/mutation/index.js +96 -96
  199. package/config/cli/commands/config.js +102 -102
  200. package/config/cli/commands/platform-config.js +96 -96
  201. package/config/cli/commands/platform-internal-secret.js +43 -43
  202. package/config/cli/commands/platform-secret.js +53 -53
  203. package/config/cli/commands/secret.js +55 -55
  204. package/config/cli/commands.js +15 -15
  205. package/config/cli/executor.d.ts +29 -29
  206. package/config/orm/index.d.ts +30 -30
  207. package/config/orm/index.js +2 -2
  208. package/config/orm/input-types.d.ts +416 -416
  209. package/config/orm/models/index.d.ts +1 -1
  210. package/config/orm/models/index.js +3 -3
  211. package/config/orm/mutation/index.d.ts +47 -47
  212. package/config/orm/mutation/index.js +60 -60
  213. package/esm/admin/cli/commands/app-admin-grant.js +34 -34
  214. package/esm/admin/cli/commands/app-claimed-invite.js +28 -28
  215. package/esm/admin/cli/commands/app-grant.js +48 -48
  216. package/esm/admin/cli/commands/app-invite.js +104 -104
  217. package/esm/admin/cli/commands/app-membership-default.js +34 -34
  218. package/esm/admin/cli/commands/app-membership.js +108 -108
  219. package/esm/admin/cli/commands/app-owner-grant.js +34 -34
  220. package/esm/admin/cli/commands/app-permission-default-grant.js +34 -34
  221. package/esm/admin/cli/commands/app-permission-default-permission.js +6 -6
  222. package/esm/admin/cli/commands/app-permission.js +28 -28
  223. package/esm/admin/cli/commands/app-permissions-get-by-mask.js +6 -6
  224. package/esm/admin/cli/commands/membership-type.js +48 -48
  225. package/esm/admin/cli/commands/org-admin-grant.js +34 -34
  226. package/esm/admin/cli/commands/org-chart-edge-grant.js +59 -59
  227. package/esm/admin/cli/commands/org-chart-edge.js +44 -44
  228. package/esm/admin/cli/commands/org-claimed-invite.js +40 -40
  229. package/esm/admin/cli/commands/org-get-managers-record.js +9 -9
  230. package/esm/admin/cli/commands/org-get-subordinates-record.js +9 -9
  231. package/esm/admin/cli/commands/org-grant.js +55 -55
  232. package/esm/admin/cli/commands/org-invite.js +144 -144
  233. package/esm/admin/cli/commands/org-is-manager-of.js +4 -4
  234. package/esm/admin/cli/commands/org-member-profile.js +85 -85
  235. package/esm/admin/cli/commands/org-member.js +28 -28
  236. package/esm/admin/cli/commands/org-membership-default.js +40 -40
  237. package/esm/admin/cli/commands/org-membership-setting.js +119 -119
  238. package/esm/admin/cli/commands/org-membership.js +136 -136
  239. package/esm/admin/cli/commands/org-owner-grant.js +34 -34
  240. package/esm/admin/cli/commands/org-permission-default-grant.js +50 -50
  241. package/esm/admin/cli/commands/org-permission-default-permission.js +22 -22
  242. package/esm/admin/cli/commands/org-permission-default.js +19 -19
  243. package/esm/admin/cli/commands/org-permission.js +28 -28
  244. package/esm/admin/cli/commands/org-permissions-get-by-mask.js +6 -6
  245. package/esm/admin/cli/commands.js +57 -57
  246. package/esm/admin/cli/executor.d.ts +45 -45
  247. package/esm/admin/orm/index.d.ts +67 -67
  248. package/esm/admin/orm/index.js +44 -44
  249. package/esm/admin/orm/input-types.d.ts +3168 -3168
  250. package/esm/admin/orm/input-types.js +1 -1
  251. package/esm/admin/orm/models/index.d.ts +22 -22
  252. package/esm/admin/orm/models/index.js +22 -22
  253. package/esm/admin/orm/mutation/index.d.ts +12 -12
  254. package/esm/admin/orm/mutation/index.js +12 -12
  255. package/esm/admin/orm/query/index.d.ts +47 -47
  256. package/esm/admin/orm/query/index.js +68 -68
  257. package/esm/agent/cli/commands/agent-message.js +77 -77
  258. package/esm/agent/cli/commands/agent-persona.js +110 -110
  259. package/esm/agent/cli/commands/agent-plan.js +69 -69
  260. package/esm/agent/cli/commands/agent-prompt.js +71 -71
  261. package/esm/agent/cli/commands/agent-resource-chunk.js +16 -16
  262. package/esm/agent/cli/commands/agent-resource.js +189 -189
  263. package/esm/agent/cli/commands/agent-task.js +132 -132
  264. package/esm/agent/cli/commands/agent-thread.js +120 -120
  265. package/esm/agent/cli/commands/agent.js +100 -100
  266. package/esm/agent/cli/commands.js +9 -9
  267. package/esm/agent/cli/executor.d.ts +4 -4
  268. package/esm/agent/orm/index.d.ts +8 -8
  269. package/esm/agent/orm/index.js +8 -8
  270. package/esm/agent/orm/input-types.d.ts +1788 -1788
  271. package/esm/agent/orm/input-types.js +9 -9
  272. package/esm/agent/orm/models/index.d.ts +4 -4
  273. package/esm/agent/orm/models/index.js +4 -4
  274. package/esm/api/cli/commands/api-module.js +42 -42
  275. package/esm/api/cli/commands/api-schema.js +26 -26
  276. package/esm/api/cli/commands/api-setting.js +126 -126
  277. package/esm/api/cli/commands/api.js +78 -78
  278. package/esm/api/cli/commands/app.js +82 -82
  279. package/esm/api/cli/commands/apply-registry-defaults.js +4 -4
  280. package/esm/api/cli/commands/ast-migration.js +66 -66
  281. package/esm/api/cli/commands/check-constraint.js +91 -91
  282. package/esm/api/cli/commands/composite-type.js +90 -90
  283. package/esm/api/cli/commands/cors-setting.js +34 -34
  284. package/esm/api/cli/commands/database-setting.js +142 -142
  285. package/esm/api/cli/commands/database-transfer.js +125 -125
  286. package/esm/api/cli/commands/database.js +62 -62
  287. package/esm/api/cli/commands/default-privilege.js +52 -52
  288. package/esm/api/cli/commands/domain.js +86 -86
  289. package/esm/api/cli/commands/embedding-chunk.js +178 -178
  290. package/esm/api/cli/commands/enum.js +82 -82
  291. package/esm/api/cli/commands/field.js +231 -231
  292. package/esm/api/cli/commands/foreign-key-constraint.js +132 -132
  293. package/esm/api/cli/commands/full-text-search.js +60 -60
  294. package/esm/api/cli/commands/function.js +22 -22
  295. package/esm/api/cli/commands/index.js +118 -118
  296. package/esm/api/cli/commands/migrate-file.js +4 -4
  297. package/esm/api/cli/commands/node-type-registry.js +48 -48
  298. package/esm/api/cli/commands/partition.js +102 -102
  299. package/esm/api/cli/commands/policy.js +128 -128
  300. package/esm/api/cli/commands/primary-key-constraint.js +80 -80
  301. package/esm/api/cli/commands/pubkey-setting.js +72 -72
  302. package/esm/api/cli/commands/rls-setting.js +69 -69
  303. package/esm/api/cli/commands/schema-grant.js +28 -28
  304. package/esm/api/cli/commands/schema.js +106 -106
  305. package/esm/api/cli/commands/site-metadatum.js +42 -42
  306. package/esm/api/cli/commands/site-module.js +38 -38
  307. package/esm/api/cli/commands/site-theme.js +6 -6
  308. package/esm/api/cli/commands/site.js +102 -102
  309. package/esm/api/cli/commands/spatial-relation.js +83 -83
  310. package/esm/api/cli/commands/sql-action.js +57 -57
  311. package/esm/api/cli/commands/table-grant.js +66 -66
  312. package/esm/api/cli/commands/table.js +203 -203
  313. package/esm/api/cli/commands/trigger-function.js +34 -34
  314. package/esm/api/cli/commands/trigger.js +64 -64
  315. package/esm/api/cli/commands/unique-constraint.js +94 -94
  316. package/esm/api/cli/commands/view-grant.js +46 -46
  317. package/esm/api/cli/commands/view-rule.js +52 -52
  318. package/esm/api/cli/commands/view-table.js +34 -34
  319. package/esm/api/cli/commands/view.js +135 -135
  320. package/esm/api/cli/commands/webauthn-setting.js +174 -174
  321. package/esm/api/cli/commands.js +71 -71
  322. package/esm/api/cli/executor.d.ts +45 -45
  323. package/esm/api/orm/index.d.ts +77 -77
  324. package/esm/api/orm/index.js +64 -64
  325. package/esm/api/orm/input-types.d.ts +8781 -8781
  326. package/esm/api/orm/input-types.js +48 -48
  327. package/esm/api/orm/models/index.d.ts +32 -32
  328. package/esm/api/orm/models/index.js +32 -32
  329. package/esm/api/orm/mutation/index.d.ts +29 -29
  330. package/esm/api/orm/mutation/index.js +30 -30
  331. package/esm/api/orm/query/index.d.ts +1 -1
  332. package/esm/api/orm/query/index.js +4 -4
  333. package/esm/auth/cli/commands/audit-log-auth.js +57 -57
  334. package/esm/auth/cli/commands/crypto-address.js +50 -50
  335. package/esm/auth/cli/commands/email.js +50 -50
  336. package/esm/auth/cli/commands/identity-provider.js +20 -32
  337. package/esm/auth/cli/commands/org-api-key-list.js +47 -47
  338. package/esm/auth/cli/commands/phone-number.js +67 -67
  339. package/esm/auth/cli/commands/principal-entity.js +32 -32
  340. package/esm/auth/cli/commands/principal-scope-override.js +43 -43
  341. package/esm/auth/cli/commands/principal.js +42 -42
  342. package/esm/auth/cli/commands/user-connected-account.js +33 -33
  343. package/esm/auth/cli/commands/user.js +43 -43
  344. package/esm/auth/cli/commands/webauthn-credential.js +123 -123
  345. package/esm/auth/cli/commands.js +59 -59
  346. package/esm/auth/cli/executor.d.ts +96 -96
  347. package/esm/auth/orm/index.d.ts +103 -103
  348. package/esm/auth/orm/index.js +14 -14
  349. package/esm/auth/orm/input-types.d.ts +2102 -2109
  350. package/esm/auth/orm/input-types.js +5 -5
  351. package/esm/auth/orm/models/index.d.ts +7 -7
  352. package/esm/auth/orm/models/index.js +7 -7
  353. package/esm/auth/orm/mutation/index.d.ts +138 -138
  354. package/esm/auth/orm/mutation/index.js +168 -168
  355. package/esm/auth/orm/query/index.d.ts +10 -10
  356. package/esm/auth/orm/query/index.js +14 -14
  357. package/esm/compute/cli/commands/db-preset.js +96 -96
  358. package/esm/compute/cli/commands/function-api-binding.js +41 -41
  359. package/esm/compute/cli/commands/function-definition.js +375 -397
  360. package/esm/compute/cli/commands/function-deployment-event.js +48 -48
  361. package/esm/compute/cli/commands/function-deployment.js +220 -220
  362. package/esm/compute/cli/commands/function-execution-log.js +48 -48
  363. package/esm/compute/cli/commands/function-graph-commit.js +69 -69
  364. package/esm/compute/cli/commands/function-graph-execution-node-state.js +106 -106
  365. package/esm/compute/cli/commands/function-graph-execution-output.js +28 -28
  366. package/esm/compute/cli/commands/function-graph-execution.js +233 -233
  367. package/esm/compute/cli/commands/function-graph-object.js +37 -37
  368. package/esm/compute/cli/commands/function-graph-ref.js +22 -22
  369. package/esm/compute/cli/commands/function-graph-store.js +28 -28
  370. package/esm/compute/cli/commands/function-graph.js +100 -100
  371. package/esm/compute/cli/commands/function-invocation.js +175 -131
  372. package/esm/compute/cli/commands/get-all-record.js +11 -11
  373. package/esm/compute/cli/commands/infra-commit.js +69 -69
  374. package/esm/compute/cli/commands/infra-get-all-record.js +11 -11
  375. package/esm/compute/cli/commands/infra-object.js +37 -37
  376. package/esm/compute/cli/commands/infra-ref.js +22 -22
  377. package/esm/compute/cli/commands/infra-store.js +28 -28
  378. package/esm/compute/cli/commands/integration-provider.js +91 -91
  379. package/esm/compute/cli/commands/namespace-event.js +127 -127
  380. package/esm/compute/cli/commands/namespace.js +115 -115
  381. package/esm/compute/cli/commands/platform-function-api-binding.js +41 -41
  382. package/esm/compute/cli/commands/platform-function-definition.js +357 -379
  383. package/esm/compute/cli/commands/platform-function-deployment-event.js +28 -28
  384. package/esm/compute/cli/commands/platform-function-deployment.js +206 -206
  385. package/esm/compute/cli/commands/platform-function-execution-log.js +28 -28
  386. package/esm/compute/cli/commands/platform-function-invocation.js +161 -117
  387. package/esm/compute/cli/commands/platform-namespace-event.js +108 -108
  388. package/esm/compute/cli/commands/platform-namespace.js +109 -109
  389. package/esm/compute/cli/commands/platform-resource-definition.js +157 -157
  390. package/esm/compute/cli/commands/platform-resource-event.js +41 -41
  391. package/esm/compute/cli/commands/platform-resource-status-check.js +59 -59
  392. package/esm/compute/cli/commands/platform-resource.js +182 -182
  393. package/esm/compute/cli/commands/platform-resources-requirements-state.js +32 -32
  394. package/esm/compute/cli/commands/platform-resources-resolved-requirement.js +53 -53
  395. package/esm/compute/cli/commands/resource-definition.js +172 -172
  396. package/esm/compute/cli/commands/resource-event.js +50 -50
  397. package/esm/compute/cli/commands/resource-status-check.js +68 -68
  398. package/esm/compute/cli/commands/resource.js +192 -192
  399. package/esm/compute/cli/commands/resources-requirements-state.js +32 -32
  400. package/esm/compute/cli/commands/resources-resolved-requirement.js +53 -53
  401. package/esm/compute/cli/commands.js +87 -87
  402. package/esm/compute/cli/executor.d.ts +78 -78
  403. package/esm/compute/orm/index.d.ts +110 -110
  404. package/esm/compute/orm/index.js +64 -64
  405. package/esm/compute/orm/input-types.d.ts +7256 -7037
  406. package/esm/compute/orm/input-types.js +15 -13
  407. package/esm/compute/orm/models/index.d.ts +32 -32
  408. package/esm/compute/orm/models/index.js +32 -32
  409. package/esm/compute/orm/mutation/index.d.ts +77 -77
  410. package/esm/compute/orm/mutation/index.js +96 -96
  411. package/esm/config/cli/commands/config.js +102 -102
  412. package/esm/config/cli/commands/platform-config.js +96 -96
  413. package/esm/config/cli/commands/platform-internal-secret.js +43 -43
  414. package/esm/config/cli/commands/platform-secret.js +53 -53
  415. package/esm/config/cli/commands/secret.js +55 -55
  416. package/esm/config/cli/commands.js +15 -15
  417. package/esm/config/cli/executor.d.ts +29 -29
  418. package/esm/config/orm/index.d.ts +30 -30
  419. package/esm/config/orm/index.js +2 -2
  420. package/esm/config/orm/input-types.d.ts +416 -416
  421. package/esm/config/orm/models/index.d.ts +1 -1
  422. package/esm/config/orm/models/index.js +1 -1
  423. package/esm/config/orm/mutation/index.d.ts +47 -47
  424. package/esm/config/orm/mutation/index.js +60 -60
  425. package/esm/infra/cli/commands/db-preset.js +96 -96
  426. package/esm/infra/cli/commands/infra-commit.js +69 -69
  427. package/esm/infra/cli/commands/infra-get-all-record.js +11 -11
  428. package/esm/infra/cli/commands/infra-object.js +37 -37
  429. package/esm/infra/cli/commands/infra-ref.js +22 -22
  430. package/esm/infra/cli/commands/infra-store.js +28 -28
  431. package/esm/infra/cli/commands/namespace-event.js +127 -127
  432. package/esm/infra/cli/commands/namespace.js +115 -115
  433. package/esm/infra/cli/commands/platform-namespace-event.js +108 -108
  434. package/esm/infra/cli/commands/platform-namespace.js +109 -109
  435. package/esm/infra/cli/commands.js +13 -13
  436. package/esm/infra/cli/executor.d.ts +10 -10
  437. package/esm/infra/orm/index.d.ts +15 -15
  438. package/esm/infra/orm/index.js +10 -10
  439. package/esm/infra/orm/input-types.d.ts +971 -971
  440. package/esm/infra/orm/models/index.d.ts +5 -5
  441. package/esm/infra/orm/models/index.js +5 -5
  442. package/esm/infra/orm/mutation/index.d.ts +9 -9
  443. package/esm/infra/orm/mutation/index.js +12 -12
  444. package/esm/modules/cli/commands/agent-module.js +388 -388
  445. package/esm/modules/cli/commands/billing-module.js +250 -250
  446. package/esm/modules/cli/commands/billing-provider-module.js +182 -182
  447. package/esm/modules/cli/commands/blueprint-construction.js +72 -72
  448. package/esm/modules/cli/commands/blueprint-template.js +187 -187
  449. package/esm/modules/cli/commands/blueprint.js +95 -95
  450. package/esm/modules/cli/commands/compute-log-module.js +190 -190
  451. package/esm/modules/cli/commands/config-secrets-user-module.js +50 -50
  452. package/esm/modules/cli/commands/connected-accounts-module.js +76 -76
  453. package/esm/modules/cli/commands/crypto-addresses-module.js +89 -89
  454. package/esm/modules/cli/commands/crypto-auth-module.js +114 -114
  455. package/esm/modules/cli/commands/database-provision-module.js +174 -174
  456. package/esm/modules/cli/commands/db-pool-config.js +86 -86
  457. package/esm/modules/cli/commands/db-pool.js +112 -112
  458. package/esm/modules/cli/commands/db-preset-module.js +170 -170
  459. package/esm/modules/cli/commands/db-usage-module.js +249 -249
  460. package/esm/modules/cli/commands/default-ids-module.js +6 -6
  461. package/esm/modules/cli/commands/denormalized-table-field.js +100 -100
  462. package/esm/modules/cli/commands/devices-module.js +46 -46
  463. package/esm/modules/cli/commands/emails-module.js +76 -76
  464. package/esm/modules/cli/commands/entity-type-provision.js +405 -405
  465. package/esm/modules/cli/commands/events-module.js +399 -399
  466. package/esm/modules/cli/commands/function-deployment-module.js +189 -189
  467. package/esm/modules/cli/commands/function-invocation-module.js +176 -176
  468. package/esm/modules/cli/commands/function-module.js +193 -149
  469. package/esm/modules/cli/commands/graph-execution-module.js +214 -214
  470. package/esm/modules/cli/commands/graph-module.js +175 -175
  471. package/esm/modules/cli/commands/hierarchy-module.js +212 -212
  472. package/esm/modules/cli/commands/i-18-n-module.js +56 -56
  473. package/esm/modules/cli/commands/identity-providers-module.js +112 -112
  474. package/esm/modules/cli/commands/inference-log-module.js +181 -181
  475. package/esm/modules/cli/commands/infra-config-module.js +158 -158
  476. package/esm/modules/cli/commands/infra-secrets-module.js +157 -157
  477. package/esm/modules/cli/commands/integration-providers-module.js +112 -112
  478. package/esm/modules/cli/commands/internal-secrets-module.js +151 -151
  479. package/esm/modules/cli/commands/invites-module.js +178 -178
  480. package/esm/modules/cli/commands/limits-module.js +362 -362
  481. package/esm/modules/cli/commands/membership-types-module.js +6 -6
  482. package/esm/modules/cli/commands/memberships-module.js +411 -411
  483. package/esm/modules/cli/commands/merkle-store-module.js +160 -160
  484. package/esm/modules/cli/commands/namespace-module.js +176 -176
  485. package/esm/modules/cli/commands/notifications-module.js +250 -250
  486. package/esm/modules/cli/commands/permissions-module.js +202 -202
  487. package/esm/modules/cli/commands/phone-numbers-module.js +76 -76
  488. package/esm/modules/cli/commands/plans-module.js +190 -190
  489. package/esm/modules/cli/commands/principal-auth-module.js +174 -174
  490. package/esm/modules/cli/commands/profiles-module.js +225 -225
  491. package/esm/modules/cli/commands/rate-limit-meters-module.js +146 -146
  492. package/esm/modules/cli/commands/rate-limits-module.js +66 -66
  493. package/esm/modules/cli/commands/realtime-module.js +134 -134
  494. package/esm/modules/cli/commands/relation-provision.js +228 -228
  495. package/esm/modules/cli/commands/resolve-blueprint-field.js +4 -4
  496. package/esm/modules/cli/commands/resolve-blueprint-table.js +4 -4
  497. package/esm/modules/cli/commands/resource-module.js +250 -250
  498. package/esm/modules/cli/commands/rls-module.js +114 -114
  499. package/esm/modules/cli/commands/secure-table-provision.js +98 -98
  500. package/esm/modules/cli/commands/session-secrets-module.js +26 -26
  501. package/esm/modules/cli/commands/sessions-module.js +82 -82
  502. package/esm/modules/cli/commands/storage-log-module.js +173 -173
  503. package/esm/modules/cli/commands/storage-module.js +437 -437
  504. package/esm/modules/cli/commands/transfer-log-module.js +173 -173
  505. package/esm/modules/cli/commands/user-auth-module.js +266 -266
  506. package/esm/modules/cli/commands/user-credentials-module.js +28 -28
  507. package/esm/modules/cli/commands/user-settings-module.js +48 -48
  508. package/esm/modules/cli/commands/user-state-module.js +6 -6
  509. package/esm/modules/cli/commands/users-module.js +50 -50
  510. package/esm/modules/cli/commands/webauthn-auth-module.js +150 -150
  511. package/esm/modules/cli/commands/webauthn-credentials-module.js +74 -74
  512. package/esm/modules/cli/commands.js +117 -117
  513. package/esm/modules/cli/executor.d.ts +73 -73
  514. package/esm/modules/orm/index.d.ts +126 -126
  515. package/esm/modules/orm/index.js +106 -106
  516. package/esm/modules/orm/input-types.d.ts +11482 -11468
  517. package/esm/modules/orm/input-types.js +1 -1
  518. package/esm/modules/orm/models/index.d.ts +53 -53
  519. package/esm/modules/orm/models/index.js +53 -53
  520. package/esm/modules/orm/mutation/index.d.ts +51 -51
  521. package/esm/modules/orm/mutation/index.js +42 -42
  522. package/esm/modules/orm/query/index.d.ts +3 -3
  523. package/esm/modules/orm/query/index.js +8 -8
  524. package/esm/objects/cli/commands/commit.js +73 -73
  525. package/esm/objects/cli/commands/get-all-record.js +11 -11
  526. package/esm/objects/cli/commands/object.js +34 -34
  527. package/esm/objects/cli/commands/ref.js +31 -31
  528. package/esm/objects/cli/commands/store.js +32 -32
  529. package/esm/objects/cli/commands.js +7 -7
  530. package/esm/objects/cli/executor.d.ts +7 -7
  531. package/esm/objects/orm/index.d.ts +9 -9
  532. package/esm/objects/orm/index.js +4 -4
  533. package/esm/objects/orm/input-types.d.ts +384 -384
  534. package/esm/objects/orm/models/index.d.ts +2 -2
  535. package/esm/objects/orm/models/index.js +2 -2
  536. package/esm/objects/orm/mutation/index.d.ts +9 -9
  537. package/esm/objects/orm/mutation/index.js +12 -12
  538. package/esm/usage/cli/commands/app-limit-cap.js +26 -26
  539. package/esm/usage/cli/commands/app-limit-caps-default.js +19 -19
  540. package/esm/usage/cli/commands/app-limit-credit-code-item.js +41 -41
  541. package/esm/usage/cli/commands/app-limit-credit-code.js +26 -26
  542. package/esm/usage/cli/commands/app-limit-credit-redemption.js +22 -22
  543. package/esm/usage/cli/commands/app-limit-credit.js +26 -26
  544. package/esm/usage/cli/commands/app-limit-default.js +19 -19
  545. package/esm/usage/cli/commands/app-limit-event.js +86 -86
  546. package/esm/usage/cli/commands/app-limit-warning.js +24 -24
  547. package/esm/usage/cli/commands/app-limit.js +106 -106
  548. package/esm/usage/cli/commands/org-limit-aggregate.js +110 -110
  549. package/esm/usage/cli/commands/org-limit-cap.js +26 -26
  550. package/esm/usage/cli/commands/org-limit-caps-default.js +19 -19
  551. package/esm/usage/cli/commands/org-limit-credit.js +72 -72
  552. package/esm/usage/cli/commands/org-limit-default.js +19 -19
  553. package/esm/usage/cli/commands/org-limit-event.js +86 -86
  554. package/esm/usage/cli/commands/org-limit-warning.js +46 -46
  555. package/esm/usage/cli/commands/org-limit.js +123 -123
  556. package/esm/usage/cli/commands.js +27 -27
  557. package/esm/usage/cli/executor.d.ts +17 -17
  558. package/esm/usage/orm/index.d.ts +29 -29
  559. package/esm/usage/orm/index.js +24 -24
  560. package/esm/usage/orm/input-types.d.ts +2049 -2049
  561. package/esm/usage/orm/input-types.js +5 -5
  562. package/esm/usage/orm/models/index.d.ts +12 -12
  563. package/esm/usage/orm/models/index.js +12 -12
  564. package/esm/usage/orm/mutation/index.d.ts +16 -16
  565. package/esm/usage/orm/mutation/index.js +12 -12
  566. package/infra/cli/commands/db-preset.js +96 -96
  567. package/infra/cli/commands/infra-commit.js +69 -69
  568. package/infra/cli/commands/infra-get-all-record.js +11 -11
  569. package/infra/cli/commands/infra-object.js +37 -37
  570. package/infra/cli/commands/infra-ref.js +22 -22
  571. package/infra/cli/commands/infra-store.js +28 -28
  572. package/infra/cli/commands/namespace-event.js +127 -127
  573. package/infra/cli/commands/namespace.js +115 -115
  574. package/infra/cli/commands/platform-namespace-event.js +108 -108
  575. package/infra/cli/commands/platform-namespace.js +109 -109
  576. package/infra/cli/commands.js +13 -13
  577. package/infra/cli/executor.d.ts +10 -10
  578. package/infra/orm/index.d.ts +15 -15
  579. package/infra/orm/index.js +10 -10
  580. package/infra/orm/input-types.d.ts +971 -971
  581. package/infra/orm/models/index.d.ts +5 -5
  582. package/infra/orm/models/index.js +11 -11
  583. package/infra/orm/mutation/index.d.ts +9 -9
  584. package/infra/orm/mutation/index.js +12 -12
  585. package/modules/cli/commands/agent-module.js +388 -388
  586. package/modules/cli/commands/billing-module.js +250 -250
  587. package/modules/cli/commands/billing-provider-module.js +182 -182
  588. package/modules/cli/commands/blueprint-construction.js +72 -72
  589. package/modules/cli/commands/blueprint-template.js +187 -187
  590. package/modules/cli/commands/blueprint.js +95 -95
  591. package/modules/cli/commands/compute-log-module.js +190 -190
  592. package/modules/cli/commands/config-secrets-user-module.js +50 -50
  593. package/modules/cli/commands/connected-accounts-module.js +76 -76
  594. package/modules/cli/commands/crypto-addresses-module.js +89 -89
  595. package/modules/cli/commands/crypto-auth-module.js +114 -114
  596. package/modules/cli/commands/database-provision-module.js +174 -174
  597. package/modules/cli/commands/db-pool-config.js +86 -86
  598. package/modules/cli/commands/db-pool.js +112 -112
  599. package/modules/cli/commands/db-preset-module.js +170 -170
  600. package/modules/cli/commands/db-usage-module.js +249 -249
  601. package/modules/cli/commands/default-ids-module.js +6 -6
  602. package/modules/cli/commands/denormalized-table-field.js +100 -100
  603. package/modules/cli/commands/devices-module.js +46 -46
  604. package/modules/cli/commands/emails-module.js +76 -76
  605. package/modules/cli/commands/entity-type-provision.js +405 -405
  606. package/modules/cli/commands/events-module.js +399 -399
  607. package/modules/cli/commands/function-deployment-module.js +189 -189
  608. package/modules/cli/commands/function-invocation-module.js +176 -176
  609. package/modules/cli/commands/function-module.js +193 -149
  610. package/modules/cli/commands/graph-execution-module.js +214 -214
  611. package/modules/cli/commands/graph-module.js +175 -175
  612. package/modules/cli/commands/hierarchy-module.js +212 -212
  613. package/modules/cli/commands/i-18-n-module.js +56 -56
  614. package/modules/cli/commands/identity-providers-module.js +112 -112
  615. package/modules/cli/commands/inference-log-module.js +181 -181
  616. package/modules/cli/commands/infra-config-module.js +158 -158
  617. package/modules/cli/commands/infra-secrets-module.js +157 -157
  618. package/modules/cli/commands/integration-providers-module.js +112 -112
  619. package/modules/cli/commands/internal-secrets-module.js +151 -151
  620. package/modules/cli/commands/invites-module.js +178 -178
  621. package/modules/cli/commands/limits-module.js +362 -362
  622. package/modules/cli/commands/membership-types-module.js +6 -6
  623. package/modules/cli/commands/memberships-module.js +411 -411
  624. package/modules/cli/commands/merkle-store-module.js +160 -160
  625. package/modules/cli/commands/namespace-module.js +176 -176
  626. package/modules/cli/commands/notifications-module.js +250 -250
  627. package/modules/cli/commands/permissions-module.js +202 -202
  628. package/modules/cli/commands/phone-numbers-module.js +76 -76
  629. package/modules/cli/commands/plans-module.js +190 -190
  630. package/modules/cli/commands/principal-auth-module.js +174 -174
  631. package/modules/cli/commands/profiles-module.js +225 -225
  632. package/modules/cli/commands/rate-limit-meters-module.js +146 -146
  633. package/modules/cli/commands/rate-limits-module.js +66 -66
  634. package/modules/cli/commands/realtime-module.js +134 -134
  635. package/modules/cli/commands/relation-provision.js +228 -228
  636. package/modules/cli/commands/resolve-blueprint-field.js +4 -4
  637. package/modules/cli/commands/resolve-blueprint-table.js +4 -4
  638. package/modules/cli/commands/resource-module.js +250 -250
  639. package/modules/cli/commands/rls-module.js +114 -114
  640. package/modules/cli/commands/secure-table-provision.js +98 -98
  641. package/modules/cli/commands/session-secrets-module.js +26 -26
  642. package/modules/cli/commands/sessions-module.js +82 -82
  643. package/modules/cli/commands/storage-log-module.js +173 -173
  644. package/modules/cli/commands/storage-module.js +437 -437
  645. package/modules/cli/commands/transfer-log-module.js +173 -173
  646. package/modules/cli/commands/user-auth-module.js +266 -266
  647. package/modules/cli/commands/user-credentials-module.js +28 -28
  648. package/modules/cli/commands/user-settings-module.js +48 -48
  649. package/modules/cli/commands/user-state-module.js +6 -6
  650. package/modules/cli/commands/users-module.js +50 -50
  651. package/modules/cli/commands/webauthn-auth-module.js +150 -150
  652. package/modules/cli/commands/webauthn-credentials-module.js +74 -74
  653. package/modules/cli/commands.js +117 -117
  654. package/modules/cli/executor.d.ts +73 -73
  655. package/modules/orm/index.d.ts +126 -126
  656. package/modules/orm/index.js +106 -106
  657. package/modules/orm/input-types.d.ts +11482 -11468
  658. package/modules/orm/input-types.js +1 -1
  659. package/modules/orm/models/index.d.ts +53 -53
  660. package/modules/orm/models/index.js +108 -108
  661. package/modules/orm/mutation/index.d.ts +51 -51
  662. package/modules/orm/mutation/index.js +42 -42
  663. package/modules/orm/query/index.d.ts +3 -3
  664. package/modules/orm/query/index.js +8 -8
  665. package/objects/cli/commands/commit.js +73 -73
  666. package/objects/cli/commands/get-all-record.js +11 -11
  667. package/objects/cli/commands/object.js +34 -34
  668. package/objects/cli/commands/ref.js +31 -31
  669. package/objects/cli/commands/store.js +32 -32
  670. package/objects/cli/commands.js +7 -7
  671. package/objects/cli/executor.d.ts +7 -7
  672. package/objects/orm/index.d.ts +9 -9
  673. package/objects/orm/index.js +4 -4
  674. package/objects/orm/input-types.d.ts +384 -384
  675. package/objects/orm/models/index.d.ts +2 -2
  676. package/objects/orm/models/index.js +5 -5
  677. package/objects/orm/mutation/index.d.ts +9 -9
  678. package/objects/orm/mutation/index.js +12 -12
  679. package/package.json +4 -4
  680. package/usage/cli/commands/app-limit-cap.js +26 -26
  681. package/usage/cli/commands/app-limit-caps-default.js +19 -19
  682. package/usage/cli/commands/app-limit-credit-code-item.js +41 -41
  683. package/usage/cli/commands/app-limit-credit-code.js +26 -26
  684. package/usage/cli/commands/app-limit-credit-redemption.js +22 -22
  685. package/usage/cli/commands/app-limit-credit.js +26 -26
  686. package/usage/cli/commands/app-limit-default.js +19 -19
  687. package/usage/cli/commands/app-limit-event.js +86 -86
  688. package/usage/cli/commands/app-limit-warning.js +24 -24
  689. package/usage/cli/commands/app-limit.js +106 -106
  690. package/usage/cli/commands/org-limit-aggregate.js +110 -110
  691. package/usage/cli/commands/org-limit-cap.js +26 -26
  692. package/usage/cli/commands/org-limit-caps-default.js +19 -19
  693. package/usage/cli/commands/org-limit-credit.js +72 -72
  694. package/usage/cli/commands/org-limit-default.js +19 -19
  695. package/usage/cli/commands/org-limit-event.js +86 -86
  696. package/usage/cli/commands/org-limit-warning.js +46 -46
  697. package/usage/cli/commands/org-limit.js +123 -123
  698. package/usage/cli/commands.js +27 -27
  699. package/usage/cli/executor.d.ts +17 -17
  700. package/usage/orm/index.d.ts +29 -29
  701. package/usage/orm/index.js +24 -24
  702. package/usage/orm/input-types.d.ts +2049 -2049
  703. package/usage/orm/input-types.js +5 -5
  704. package/usage/orm/models/index.d.ts +12 -12
  705. package/usage/orm/models/index.js +25 -25
  706. package/usage/orm/mutation/index.d.ts +16 -16
  707. package/usage/orm/mutation/index.js +12 -12
@@ -7,44 +7,43 @@ import { extractFirst } from 'inquirerer';
7
7
  import { getClient } from '../executor';
8
8
  import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
9
  const fieldSchema = {
10
- id: 'uuid',
10
+ accessChannels: 'string',
11
+ category: 'string',
12
+ concurrency: 'int',
11
13
  createdAt: 'string',
12
- updatedAt: 'string',
13
- scope: 'string',
14
- name: 'string',
15
- taskIdentifier: 'string',
14
+ databaseId: 'uuid',
16
15
  description: 'string',
16
+ fnCategory: 'string',
17
+ functionColumns: 'json',
18
+ icon: 'string',
19
+ id: 'uuid',
20
+ image: 'string',
21
+ inputs: 'json',
22
+ integrations: 'string',
17
23
  isPublished: 'boolean',
18
- accessChannels: 'string',
19
- publishedAt: 'string',
20
24
  maxAttempts: 'int',
25
+ moduleTable: 'string',
26
+ name: 'string',
27
+ outputs: 'json',
28
+ payloadArgs: 'json',
21
29
  priority: 'int',
30
+ props: 'json',
31
+ publishedAt: 'string',
22
32
  queueName: 'string',
33
+ requiredBuckets: 'string',
34
+ requiredConfigs: 'string',
35
+ requiredModels: 'string',
36
+ requiredSecrets: 'string',
37
+ resources: 'json',
23
38
  runtime: 'string',
24
- targetSchema: 'string',
25
- targetFunction: 'string',
26
- moduleTable: 'string',
27
- functionColumns: 'json',
28
- payloadArgs: 'json',
29
- image: 'string',
30
- concurrency: 'int',
31
- scaleMin: 'int',
32
39
  scaleMax: 'int',
40
+ scaleMin: 'int',
41
+ targetFunction: 'string',
42
+ targetSchema: 'string',
43
+ taskIdentifier: 'string',
33
44
  timeoutSeconds: 'int',
34
- resources: 'json',
35
- isBuiltIn: 'boolean',
36
- requiredSecrets: 'string',
37
- requiredConfigs: 'string',
38
- integrations: 'string',
39
- requiredBuckets: 'string',
40
- requiredModels: 'string',
41
- inputs: 'json',
42
- outputs: 'json',
43
- props: 'json',
45
+ updatedAt: 'string',
44
46
  volatile: 'boolean',
45
- icon: 'string',
46
- category: 'string',
47
- databaseId: 'uuid',
48
47
  };
49
48
  const usage = '\nfunction-definition <command>\n\nCommands:\n list List functionDefinition records\n find-first Find first matching functionDefinition record\n get Get a functionDefinition by ID\n create Create a new functionDefinition\n update Update an existing functionDefinition\n delete Delete a functionDefinition\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';
50
49
  export default async (argv, prompter, _options) => {
@@ -88,44 +87,43 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
88
87
  async function handleList(argv, _prompter) {
89
88
  try {
90
89
  const defaultSelect = {
91
- id: true,
90
+ accessChannels: true,
91
+ category: true,
92
+ concurrency: true,
92
93
  createdAt: true,
93
- updatedAt: true,
94
- scope: true,
95
- name: true,
96
- taskIdentifier: true,
94
+ databaseId: true,
97
95
  description: true,
96
+ fnCategory: true,
97
+ functionColumns: true,
98
+ icon: true,
99
+ id: true,
100
+ image: true,
101
+ inputs: true,
102
+ integrations: true,
98
103
  isPublished: true,
99
- accessChannels: true,
100
- publishedAt: true,
101
104
  maxAttempts: true,
105
+ moduleTable: true,
106
+ name: true,
107
+ outputs: true,
108
+ payloadArgs: true,
102
109
  priority: true,
110
+ props: true,
111
+ publishedAt: true,
103
112
  queueName: true,
113
+ requiredBuckets: true,
114
+ requiredConfigs: true,
115
+ requiredModels: true,
116
+ requiredSecrets: true,
117
+ resources: true,
104
118
  runtime: true,
105
- targetSchema: true,
106
- targetFunction: true,
107
- moduleTable: true,
108
- functionColumns: true,
109
- payloadArgs: true,
110
- image: true,
111
- concurrency: true,
112
- scaleMin: true,
113
119
  scaleMax: true,
120
+ scaleMin: true,
121
+ targetFunction: true,
122
+ targetSchema: true,
123
+ taskIdentifier: true,
114
124
  timeoutSeconds: true,
115
- resources: true,
116
- isBuiltIn: true,
117
- requiredSecrets: true,
118
- requiredConfigs: true,
119
- integrations: true,
120
- requiredBuckets: true,
121
- requiredModels: true,
122
- inputs: true,
123
- outputs: true,
124
- props: true,
125
+ updatedAt: true,
125
126
  volatile: true,
126
- icon: true,
127
- category: true,
128
- databaseId: true,
129
127
  };
130
128
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
131
129
  const client = getClient();
@@ -143,44 +141,43 @@ async function handleList(argv, _prompter) {
143
141
  async function handleFindFirst(argv, _prompter) {
144
142
  try {
145
143
  const defaultSelect = {
146
- id: true,
144
+ accessChannels: true,
145
+ category: true,
146
+ concurrency: true,
147
147
  createdAt: true,
148
- updatedAt: true,
149
- scope: true,
150
- name: true,
151
- taskIdentifier: true,
148
+ databaseId: true,
152
149
  description: true,
150
+ fnCategory: true,
151
+ functionColumns: true,
152
+ icon: true,
153
+ id: true,
154
+ image: true,
155
+ inputs: true,
156
+ integrations: true,
153
157
  isPublished: true,
154
- accessChannels: true,
155
- publishedAt: true,
156
158
  maxAttempts: true,
159
+ moduleTable: true,
160
+ name: true,
161
+ outputs: true,
162
+ payloadArgs: true,
157
163
  priority: true,
164
+ props: true,
165
+ publishedAt: true,
158
166
  queueName: true,
167
+ requiredBuckets: true,
168
+ requiredConfigs: true,
169
+ requiredModels: true,
170
+ requiredSecrets: true,
171
+ resources: true,
159
172
  runtime: true,
160
- targetSchema: true,
161
- targetFunction: true,
162
- moduleTable: true,
163
- functionColumns: true,
164
- payloadArgs: true,
165
- image: true,
166
- concurrency: true,
167
- scaleMin: true,
168
173
  scaleMax: true,
174
+ scaleMin: true,
175
+ targetFunction: true,
176
+ targetSchema: true,
177
+ taskIdentifier: true,
169
178
  timeoutSeconds: true,
170
- resources: true,
171
- isBuiltIn: true,
172
- requiredSecrets: true,
173
- requiredConfigs: true,
174
- integrations: true,
175
- requiredBuckets: true,
176
- requiredModels: true,
177
- inputs: true,
178
- outputs: true,
179
- props: true,
179
+ updatedAt: true,
180
180
  volatile: true,
181
- icon: true,
182
- category: true,
183
- databaseId: true,
184
181
  };
185
182
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
186
183
  const client = getClient();
@@ -210,44 +207,43 @@ async function handleGet(argv, prompter) {
210
207
  .findOne({
211
208
  id: answers.id,
212
209
  select: {
213
- id: true,
210
+ accessChannels: true,
211
+ category: true,
212
+ concurrency: true,
214
213
  createdAt: true,
215
- updatedAt: true,
216
- scope: true,
217
- name: true,
218
- taskIdentifier: true,
214
+ databaseId: true,
219
215
  description: true,
216
+ fnCategory: true,
217
+ functionColumns: true,
218
+ icon: true,
219
+ id: true,
220
+ image: true,
221
+ inputs: true,
222
+ integrations: true,
220
223
  isPublished: true,
221
- accessChannels: true,
222
- publishedAt: true,
223
224
  maxAttempts: true,
225
+ moduleTable: true,
226
+ name: true,
227
+ outputs: true,
228
+ payloadArgs: true,
224
229
  priority: true,
230
+ props: true,
231
+ publishedAt: true,
225
232
  queueName: true,
233
+ requiredBuckets: true,
234
+ requiredConfigs: true,
235
+ requiredModels: true,
236
+ requiredSecrets: true,
237
+ resources: true,
226
238
  runtime: true,
227
- targetSchema: true,
228
- targetFunction: true,
229
- moduleTable: true,
230
- functionColumns: true,
231
- payloadArgs: true,
232
- image: true,
233
- concurrency: true,
234
- scaleMin: true,
235
239
  scaleMax: true,
240
+ scaleMin: true,
241
+ targetFunction: true,
242
+ targetSchema: true,
243
+ taskIdentifier: true,
236
244
  timeoutSeconds: true,
237
- resources: true,
238
- isBuiltIn: true,
239
- requiredSecrets: true,
240
- requiredConfigs: true,
241
- integrations: true,
242
- requiredBuckets: true,
243
- requiredModels: true,
244
- inputs: true,
245
- outputs: true,
246
- props: true,
245
+ updatedAt: true,
247
246
  volatile: true,
248
- icon: true,
249
- category: true,
250
- databaseId: true,
251
247
  },
252
248
  })
253
249
  .execute();
@@ -266,20 +262,28 @@ async function handleCreate(argv, prompter) {
266
262
  const rawAnswers = await prompter.prompt(argv, [
267
263
  {
268
264
  type: 'text',
269
- name: 'scope',
270
- message: 'scope',
271
- required: true,
265
+ name: 'accessChannels',
266
+ message: 'accessChannels',
267
+ required: false,
268
+ skipPrompt: true,
272
269
  },
273
270
  {
274
271
  type: 'text',
275
- name: 'name',
276
- message: 'name',
272
+ name: 'category',
273
+ message: 'category',
277
274
  required: true,
278
275
  },
279
276
  {
280
277
  type: 'text',
281
- name: 'taskIdentifier',
282
- message: 'taskIdentifier',
278
+ name: 'concurrency',
279
+ message: 'concurrency',
280
+ required: false,
281
+ skipPrompt: true,
282
+ },
283
+ {
284
+ type: 'text',
285
+ name: 'databaseId',
286
+ message: 'databaseId',
283
287
  required: true,
284
288
  },
285
289
  {
@@ -290,79 +294,78 @@ async function handleCreate(argv, prompter) {
290
294
  skipPrompt: true,
291
295
  },
292
296
  {
293
- type: 'boolean',
294
- name: 'isPublished',
295
- message: 'isPublished',
297
+ type: 'text',
298
+ name: 'fnCategory',
299
+ message: 'fnCategory',
296
300
  required: false,
297
301
  skipPrompt: true,
298
302
  },
299
303
  {
300
- type: 'text',
301
- name: 'accessChannels',
302
- message: 'accessChannels',
304
+ type: 'json',
305
+ name: 'functionColumns',
306
+ message: 'functionColumns',
303
307
  required: false,
304
308
  skipPrompt: true,
305
309
  },
306
310
  {
307
311
  type: 'text',
308
- name: 'publishedAt',
309
- message: 'publishedAt',
312
+ name: 'icon',
313
+ message: 'icon',
310
314
  required: false,
311
315
  skipPrompt: true,
312
316
  },
313
317
  {
314
318
  type: 'text',
315
- name: 'maxAttempts',
316
- message: 'maxAttempts',
319
+ name: 'image',
320
+ message: 'image',
317
321
  required: false,
318
322
  skipPrompt: true,
319
323
  },
320
324
  {
321
- type: 'text',
322
- name: 'priority',
323
- message: 'priority',
325
+ type: 'json',
326
+ name: 'inputs',
327
+ message: 'inputs',
324
328
  required: false,
325
329
  skipPrompt: true,
326
330
  },
327
331
  {
328
332
  type: 'text',
329
- name: 'queueName',
330
- message: 'queueName',
333
+ name: 'integrations',
334
+ message: 'integrations',
331
335
  required: false,
332
336
  skipPrompt: true,
333
337
  },
334
338
  {
335
- type: 'text',
336
- name: 'runtime',
337
- message: 'runtime',
339
+ type: 'boolean',
340
+ name: 'isPublished',
341
+ message: 'isPublished',
338
342
  required: false,
339
343
  skipPrompt: true,
340
344
  },
341
345
  {
342
346
  type: 'text',
343
- name: 'targetSchema',
344
- message: 'targetSchema',
347
+ name: 'maxAttempts',
348
+ message: 'maxAttempts',
345
349
  required: false,
346
350
  skipPrompt: true,
347
351
  },
348
352
  {
349
353
  type: 'text',
350
- name: 'targetFunction',
351
- message: 'targetFunction',
354
+ name: 'moduleTable',
355
+ message: 'moduleTable',
352
356
  required: false,
353
357
  skipPrompt: true,
354
358
  },
355
359
  {
356
360
  type: 'text',
357
- name: 'moduleTable',
358
- message: 'moduleTable',
359
- required: false,
360
- skipPrompt: true,
361
+ name: 'name',
362
+ message: 'name',
363
+ required: true,
361
364
  },
362
365
  {
363
366
  type: 'json',
364
- name: 'functionColumns',
365
- message: 'functionColumns',
367
+ name: 'outputs',
368
+ message: 'outputs',
366
369
  required: false,
367
370
  skipPrompt: true,
368
371
  },
@@ -375,50 +378,50 @@ async function handleCreate(argv, prompter) {
375
378
  },
376
379
  {
377
380
  type: 'text',
378
- name: 'image',
379
- message: 'image',
381
+ name: 'priority',
382
+ message: 'priority',
380
383
  required: false,
381
384
  skipPrompt: true,
382
385
  },
383
386
  {
384
- type: 'text',
385
- name: 'concurrency',
386
- message: 'concurrency',
387
+ type: 'json',
388
+ name: 'props',
389
+ message: 'props',
387
390
  required: false,
388
391
  skipPrompt: true,
389
392
  },
390
393
  {
391
394
  type: 'text',
392
- name: 'scaleMin',
393
- message: 'scaleMin',
395
+ name: 'publishedAt',
396
+ message: 'publishedAt',
394
397
  required: false,
395
398
  skipPrompt: true,
396
399
  },
397
400
  {
398
401
  type: 'text',
399
- name: 'scaleMax',
400
- message: 'scaleMax',
402
+ name: 'queueName',
403
+ message: 'queueName',
401
404
  required: false,
402
405
  skipPrompt: true,
403
406
  },
404
407
  {
405
408
  type: 'text',
406
- name: 'timeoutSeconds',
407
- message: 'timeoutSeconds',
409
+ name: 'requiredBuckets',
410
+ message: 'requiredBuckets',
408
411
  required: false,
409
412
  skipPrompt: true,
410
413
  },
411
414
  {
412
- type: 'json',
413
- name: 'resources',
414
- message: 'resources',
415
+ type: 'text',
416
+ name: 'requiredConfigs',
417
+ message: 'requiredConfigs',
415
418
  required: false,
416
419
  skipPrompt: true,
417
420
  },
418
421
  {
419
- type: 'boolean',
420
- name: 'isBuiltIn',
421
- message: 'isBuiltIn',
422
+ type: 'text',
423
+ name: 'requiredModels',
424
+ message: 'requiredModels',
422
425
  required: false,
423
426
  skipPrompt: true,
424
427
  },
@@ -430,81 +433,67 @@ async function handleCreate(argv, prompter) {
430
433
  skipPrompt: true,
431
434
  },
432
435
  {
433
- type: 'text',
434
- name: 'requiredConfigs',
435
- message: 'requiredConfigs',
436
+ type: 'json',
437
+ name: 'resources',
438
+ message: 'resources',
436
439
  required: false,
437
440
  skipPrompt: true,
438
441
  },
439
442
  {
440
443
  type: 'text',
441
- name: 'integrations',
442
- message: 'integrations',
444
+ name: 'runtime',
445
+ message: 'runtime',
443
446
  required: false,
444
447
  skipPrompt: true,
445
448
  },
446
449
  {
447
450
  type: 'text',
448
- name: 'requiredBuckets',
449
- message: 'requiredBuckets',
451
+ name: 'scaleMax',
452
+ message: 'scaleMax',
450
453
  required: false,
451
454
  skipPrompt: true,
452
455
  },
453
456
  {
454
457
  type: 'text',
455
- name: 'requiredModels',
456
- message: 'requiredModels',
457
- required: false,
458
- skipPrompt: true,
459
- },
460
- {
461
- type: 'json',
462
- name: 'inputs',
463
- message: 'inputs',
458
+ name: 'scaleMin',
459
+ message: 'scaleMin',
464
460
  required: false,
465
461
  skipPrompt: true,
466
462
  },
467
463
  {
468
- type: 'json',
469
- name: 'outputs',
470
- message: 'outputs',
464
+ type: 'text',
465
+ name: 'targetFunction',
466
+ message: 'targetFunction',
471
467
  required: false,
472
468
  skipPrompt: true,
473
469
  },
474
470
  {
475
- type: 'json',
476
- name: 'props',
477
- message: 'props',
471
+ type: 'text',
472
+ name: 'targetSchema',
473
+ message: 'targetSchema',
478
474
  required: false,
479
475
  skipPrompt: true,
480
476
  },
481
477
  {
482
- type: 'boolean',
483
- name: 'volatile',
484
- message: 'volatile',
485
- required: false,
486
- skipPrompt: true,
478
+ type: 'text',
479
+ name: 'taskIdentifier',
480
+ message: 'taskIdentifier',
481
+ required: true,
487
482
  },
488
483
  {
489
484
  type: 'text',
490
- name: 'icon',
491
- message: 'icon',
485
+ name: 'timeoutSeconds',
486
+ message: 'timeoutSeconds',
492
487
  required: false,
493
488
  skipPrompt: true,
494
489
  },
495
490
  {
496
- type: 'text',
497
- name: 'category',
498
- message: 'category',
491
+ type: 'boolean',
492
+ name: 'volatile',
493
+ message: 'volatile',
499
494
  required: false,
500
495
  skipPrompt: true,
501
496
  },
502
- {
503
- type: 'text',
504
- name: 'databaseId',
505
- message: 'databaseId',
506
- required: true,
507
- },
508
497
  ]);
509
498
  const answers = coerceAnswers(rawAnswers, fieldSchema);
510
499
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -512,81 +501,79 @@ async function handleCreate(argv, prompter) {
512
501
  const result = await client.functionDefinition
513
502
  .create({
514
503
  data: {
515
- scope: cleanedData.scope,
516
- name: cleanedData.name,
517
- taskIdentifier: cleanedData.taskIdentifier,
504
+ accessChannels: cleanedData.accessChannels,
505
+ category: cleanedData.category,
506
+ concurrency: cleanedData.concurrency,
507
+ databaseId: cleanedData.databaseId,
518
508
  description: cleanedData.description,
509
+ fnCategory: cleanedData.fnCategory,
510
+ functionColumns: cleanedData.functionColumns,
511
+ icon: cleanedData.icon,
512
+ image: cleanedData.image,
513
+ inputs: cleanedData.inputs,
514
+ integrations: cleanedData.integrations,
519
515
  isPublished: cleanedData.isPublished,
520
- accessChannels: cleanedData.accessChannels,
521
- publishedAt: cleanedData.publishedAt,
522
516
  maxAttempts: cleanedData.maxAttempts,
517
+ moduleTable: cleanedData.moduleTable,
518
+ name: cleanedData.name,
519
+ outputs: cleanedData.outputs,
520
+ payloadArgs: cleanedData.payloadArgs,
523
521
  priority: cleanedData.priority,
522
+ props: cleanedData.props,
523
+ publishedAt: cleanedData.publishedAt,
524
524
  queueName: cleanedData.queueName,
525
+ requiredBuckets: cleanedData.requiredBuckets,
526
+ requiredConfigs: cleanedData.requiredConfigs,
527
+ requiredModels: cleanedData.requiredModels,
528
+ requiredSecrets: cleanedData.requiredSecrets,
529
+ resources: cleanedData.resources,
525
530
  runtime: cleanedData.runtime,
526
- targetSchema: cleanedData.targetSchema,
527
- targetFunction: cleanedData.targetFunction,
528
- moduleTable: cleanedData.moduleTable,
529
- functionColumns: cleanedData.functionColumns,
530
- payloadArgs: cleanedData.payloadArgs,
531
- image: cleanedData.image,
532
- concurrency: cleanedData.concurrency,
533
- scaleMin: cleanedData.scaleMin,
534
531
  scaleMax: cleanedData.scaleMax,
532
+ scaleMin: cleanedData.scaleMin,
533
+ targetFunction: cleanedData.targetFunction,
534
+ targetSchema: cleanedData.targetSchema,
535
+ taskIdentifier: cleanedData.taskIdentifier,
535
536
  timeoutSeconds: cleanedData.timeoutSeconds,
536
- resources: cleanedData.resources,
537
- isBuiltIn: cleanedData.isBuiltIn,
538
- requiredSecrets: cleanedData.requiredSecrets,
539
- requiredConfigs: cleanedData.requiredConfigs,
540
- integrations: cleanedData.integrations,
541
- requiredBuckets: cleanedData.requiredBuckets,
542
- requiredModels: cleanedData.requiredModels,
543
- inputs: cleanedData.inputs,
544
- outputs: cleanedData.outputs,
545
- props: cleanedData.props,
546
537
  volatile: cleanedData.volatile,
547
- icon: cleanedData.icon,
548
- category: cleanedData.category,
549
- databaseId: cleanedData.databaseId,
550
538
  },
551
539
  select: {
552
- id: true,
540
+ accessChannels: true,
541
+ category: true,
542
+ concurrency: true,
553
543
  createdAt: true,
554
- updatedAt: true,
555
- scope: true,
556
- name: true,
557
- taskIdentifier: true,
544
+ databaseId: true,
558
545
  description: true,
546
+ fnCategory: true,
547
+ functionColumns: true,
548
+ icon: true,
549
+ id: true,
550
+ image: true,
551
+ inputs: true,
552
+ integrations: true,
559
553
  isPublished: true,
560
- accessChannels: true,
561
- publishedAt: true,
562
554
  maxAttempts: true,
555
+ moduleTable: true,
556
+ name: true,
557
+ outputs: true,
558
+ payloadArgs: true,
563
559
  priority: true,
560
+ props: true,
561
+ publishedAt: true,
564
562
  queueName: true,
563
+ requiredBuckets: true,
564
+ requiredConfigs: true,
565
+ requiredModels: true,
566
+ requiredSecrets: true,
567
+ resources: true,
565
568
  runtime: true,
566
- targetSchema: true,
567
- targetFunction: true,
568
- moduleTable: true,
569
- functionColumns: true,
570
- payloadArgs: true,
571
- image: true,
572
- concurrency: true,
573
- scaleMin: true,
574
569
  scaleMax: true,
570
+ scaleMin: true,
571
+ targetFunction: true,
572
+ targetSchema: true,
573
+ taskIdentifier: true,
575
574
  timeoutSeconds: true,
576
- resources: true,
577
- isBuiltIn: true,
578
- requiredSecrets: true,
579
- requiredConfigs: true,
580
- integrations: true,
581
- requiredBuckets: true,
582
- requiredModels: true,
583
- inputs: true,
584
- outputs: true,
585
- props: true,
575
+ updatedAt: true,
586
576
  volatile: true,
587
- icon: true,
588
- category: true,
589
- databaseId: true,
590
577
  },
591
578
  })
592
579
  .execute();
@@ -611,89 +598,90 @@ async function handleUpdate(argv, prompter) {
611
598
  },
612
599
  {
613
600
  type: 'text',
614
- name: 'scope',
615
- message: 'scope',
601
+ name: 'accessChannels',
602
+ message: 'accessChannels',
616
603
  required: false,
604
+ skipPrompt: true,
617
605
  },
618
606
  {
619
607
  type: 'text',
620
- name: 'name',
621
- message: 'name',
608
+ name: 'category',
609
+ message: 'category',
622
610
  required: false,
623
611
  },
624
612
  {
625
613
  type: 'text',
626
- name: 'taskIdentifier',
627
- message: 'taskIdentifier',
614
+ name: 'concurrency',
615
+ message: 'concurrency',
628
616
  required: false,
617
+ skipPrompt: true,
629
618
  },
630
619
  {
631
620
  type: 'text',
632
- name: 'description',
633
- message: 'description',
621
+ name: 'databaseId',
622
+ message: 'databaseId',
634
623
  required: false,
635
- skipPrompt: true,
636
624
  },
637
625
  {
638
- type: 'boolean',
639
- name: 'isPublished',
640
- message: 'isPublished',
626
+ type: 'text',
627
+ name: 'description',
628
+ message: 'description',
641
629
  required: false,
642
630
  skipPrompt: true,
643
631
  },
644
632
  {
645
633
  type: 'text',
646
- name: 'accessChannels',
647
- message: 'accessChannels',
634
+ name: 'fnCategory',
635
+ message: 'fnCategory',
648
636
  required: false,
649
637
  skipPrompt: true,
650
638
  },
651
639
  {
652
- type: 'text',
653
- name: 'publishedAt',
654
- message: 'publishedAt',
640
+ type: 'json',
641
+ name: 'functionColumns',
642
+ message: 'functionColumns',
655
643
  required: false,
656
644
  skipPrompt: true,
657
645
  },
658
646
  {
659
647
  type: 'text',
660
- name: 'maxAttempts',
661
- message: 'maxAttempts',
648
+ name: 'icon',
649
+ message: 'icon',
662
650
  required: false,
663
651
  skipPrompt: true,
664
652
  },
665
653
  {
666
654
  type: 'text',
667
- name: 'priority',
668
- message: 'priority',
655
+ name: 'image',
656
+ message: 'image',
669
657
  required: false,
670
658
  skipPrompt: true,
671
659
  },
672
660
  {
673
- type: 'text',
674
- name: 'queueName',
675
- message: 'queueName',
661
+ type: 'json',
662
+ name: 'inputs',
663
+ message: 'inputs',
676
664
  required: false,
677
665
  skipPrompt: true,
678
666
  },
679
667
  {
680
668
  type: 'text',
681
- name: 'runtime',
682
- message: 'runtime',
669
+ name: 'integrations',
670
+ message: 'integrations',
683
671
  required: false,
684
672
  skipPrompt: true,
685
673
  },
686
674
  {
687
- type: 'text',
688
- name: 'targetSchema',
689
- message: 'targetSchema',
675
+ type: 'boolean',
676
+ name: 'isPublished',
677
+ message: 'isPublished',
690
678
  required: false,
691
679
  skipPrompt: true,
692
680
  },
693
681
  {
694
682
  type: 'text',
695
- name: 'targetFunction',
696
- message: 'targetFunction',
683
+ name: 'maxAttempts',
684
+ message: 'maxAttempts',
697
685
  required: false,
698
686
  skipPrompt: true,
699
687
  },
@@ -704,10 +692,16 @@ async function handleUpdate(argv, prompter) {
704
692
  required: false,
705
693
  skipPrompt: true,
706
694
  },
695
+ {
696
+ type: 'text',
697
+ name: 'name',
698
+ message: 'name',
699
+ required: false,
700
+ },
707
701
  {
708
702
  type: 'json',
709
- name: 'functionColumns',
710
- message: 'functionColumns',
703
+ name: 'outputs',
704
+ message: 'outputs',
711
705
  required: false,
712
706
  skipPrompt: true,
713
707
  },
@@ -720,50 +714,50 @@ async function handleUpdate(argv, prompter) {
720
714
  },
721
715
  {
722
716
  type: 'text',
723
- name: 'image',
724
- message: 'image',
717
+ name: 'priority',
718
+ message: 'priority',
725
719
  required: false,
726
720
  skipPrompt: true,
727
721
  },
728
722
  {
729
- type: 'text',
730
- name: 'concurrency',
731
- message: 'concurrency',
723
+ type: 'json',
724
+ name: 'props',
725
+ message: 'props',
732
726
  required: false,
733
727
  skipPrompt: true,
734
728
  },
735
729
  {
736
730
  type: 'text',
737
- name: 'scaleMin',
738
- message: 'scaleMin',
731
+ name: 'publishedAt',
732
+ message: 'publishedAt',
739
733
  required: false,
740
734
  skipPrompt: true,
741
735
  },
742
736
  {
743
737
  type: 'text',
744
- name: 'scaleMax',
745
- message: 'scaleMax',
738
+ name: 'queueName',
739
+ message: 'queueName',
746
740
  required: false,
747
741
  skipPrompt: true,
748
742
  },
749
743
  {
750
744
  type: 'text',
751
- name: 'timeoutSeconds',
752
- message: 'timeoutSeconds',
745
+ name: 'requiredBuckets',
746
+ message: 'requiredBuckets',
753
747
  required: false,
754
748
  skipPrompt: true,
755
749
  },
756
750
  {
757
- type: 'json',
758
- name: 'resources',
759
- message: 'resources',
751
+ type: 'text',
752
+ name: 'requiredConfigs',
753
+ message: 'requiredConfigs',
760
754
  required: false,
761
755
  skipPrompt: true,
762
756
  },
763
757
  {
764
- type: 'boolean',
765
- name: 'isBuiltIn',
766
- message: 'isBuiltIn',
758
+ type: 'text',
759
+ name: 'requiredModels',
760
+ message: 'requiredModels',
767
761
  required: false,
768
762
  skipPrompt: true,
769
763
  },
@@ -775,80 +769,66 @@ async function handleUpdate(argv, prompter) {
775
769
  skipPrompt: true,
776
770
  },
777
771
  {
778
- type: 'text',
779
- name: 'requiredConfigs',
780
- message: 'requiredConfigs',
772
+ type: 'json',
773
+ name: 'resources',
774
+ message: 'resources',
781
775
  required: false,
782
776
  skipPrompt: true,
783
777
  },
784
778
  {
785
779
  type: 'text',
786
- name: 'integrations',
787
- message: 'integrations',
780
+ name: 'runtime',
781
+ message: 'runtime',
788
782
  required: false,
789
783
  skipPrompt: true,
790
784
  },
791
785
  {
792
786
  type: 'text',
793
- name: 'requiredBuckets',
794
- message: 'requiredBuckets',
787
+ name: 'scaleMax',
788
+ message: 'scaleMax',
795
789
  required: false,
796
790
  skipPrompt: true,
797
791
  },
798
792
  {
799
793
  type: 'text',
800
- name: 'requiredModels',
801
- message: 'requiredModels',
802
- required: false,
803
- skipPrompt: true,
804
- },
805
- {
806
- type: 'json',
807
- name: 'inputs',
808
- message: 'inputs',
809
- required: false,
810
- skipPrompt: true,
811
- },
812
- {
813
- type: 'json',
814
- name: 'outputs',
815
- message: 'outputs',
794
+ name: 'scaleMin',
795
+ message: 'scaleMin',
816
796
  required: false,
817
797
  skipPrompt: true,
818
798
  },
819
799
  {
820
- type: 'json',
821
- name: 'props',
822
- message: 'props',
800
+ type: 'text',
801
+ name: 'targetFunction',
802
+ message: 'targetFunction',
823
803
  required: false,
824
804
  skipPrompt: true,
825
805
  },
826
806
  {
827
- type: 'boolean',
828
- name: 'volatile',
829
- message: 'volatile',
807
+ type: 'text',
808
+ name: 'targetSchema',
809
+ message: 'targetSchema',
830
810
  required: false,
831
811
  skipPrompt: true,
832
812
  },
833
813
  {
834
814
  type: 'text',
835
- name: 'icon',
836
- message: 'icon',
815
+ name: 'taskIdentifier',
816
+ message: 'taskIdentifier',
837
817
  required: false,
838
- skipPrompt: true,
839
818
  },
840
819
  {
841
820
  type: 'text',
842
- name: 'category',
843
- message: 'category',
821
+ name: 'timeoutSeconds',
822
+ message: 'timeoutSeconds',
844
823
  required: false,
845
824
  skipPrompt: true,
846
825
  },
847
826
  {
848
- type: 'text',
849
- name: 'databaseId',
850
- message: 'databaseId',
827
+ type: 'boolean',
828
+ name: 'volatile',
829
+ message: 'volatile',
851
830
  required: false,
831
+ skipPrompt: true,
852
832
  },
853
833
  ]);
854
834
  const answers = coerceAnswers(rawAnswers, fieldSchema);
@@ -860,81 +840,79 @@ async function handleUpdate(argv, prompter) {
860
840
  id: answers.id,
861
841
  },
862
842
  data: {
863
- scope: cleanedData.scope,
864
- name: cleanedData.name,
865
- taskIdentifier: cleanedData.taskIdentifier,
843
+ accessChannels: cleanedData.accessChannels,
844
+ category: cleanedData.category,
845
+ concurrency: cleanedData.concurrency,
846
+ databaseId: cleanedData.databaseId,
866
847
  description: cleanedData.description,
848
+ fnCategory: cleanedData.fnCategory,
849
+ functionColumns: cleanedData.functionColumns,
850
+ icon: cleanedData.icon,
851
+ image: cleanedData.image,
852
+ inputs: cleanedData.inputs,
853
+ integrations: cleanedData.integrations,
867
854
  isPublished: cleanedData.isPublished,
868
- accessChannels: cleanedData.accessChannels,
869
- publishedAt: cleanedData.publishedAt,
870
855
  maxAttempts: cleanedData.maxAttempts,
856
+ moduleTable: cleanedData.moduleTable,
857
+ name: cleanedData.name,
858
+ outputs: cleanedData.outputs,
859
+ payloadArgs: cleanedData.payloadArgs,
871
860
  priority: cleanedData.priority,
861
+ props: cleanedData.props,
862
+ publishedAt: cleanedData.publishedAt,
872
863
  queueName: cleanedData.queueName,
864
+ requiredBuckets: cleanedData.requiredBuckets,
865
+ requiredConfigs: cleanedData.requiredConfigs,
866
+ requiredModels: cleanedData.requiredModels,
867
+ requiredSecrets: cleanedData.requiredSecrets,
868
+ resources: cleanedData.resources,
873
869
  runtime: cleanedData.runtime,
874
- targetSchema: cleanedData.targetSchema,
875
- targetFunction: cleanedData.targetFunction,
876
- moduleTable: cleanedData.moduleTable,
877
- functionColumns: cleanedData.functionColumns,
878
- payloadArgs: cleanedData.payloadArgs,
879
- image: cleanedData.image,
880
- concurrency: cleanedData.concurrency,
881
- scaleMin: cleanedData.scaleMin,
882
870
  scaleMax: cleanedData.scaleMax,
871
+ scaleMin: cleanedData.scaleMin,
872
+ targetFunction: cleanedData.targetFunction,
873
+ targetSchema: cleanedData.targetSchema,
874
+ taskIdentifier: cleanedData.taskIdentifier,
883
875
  timeoutSeconds: cleanedData.timeoutSeconds,
884
- resources: cleanedData.resources,
885
- isBuiltIn: cleanedData.isBuiltIn,
886
- requiredSecrets: cleanedData.requiredSecrets,
887
- requiredConfigs: cleanedData.requiredConfigs,
888
- integrations: cleanedData.integrations,
889
- requiredBuckets: cleanedData.requiredBuckets,
890
- requiredModels: cleanedData.requiredModels,
891
- inputs: cleanedData.inputs,
892
- outputs: cleanedData.outputs,
893
- props: cleanedData.props,
894
876
  volatile: cleanedData.volatile,
895
- icon: cleanedData.icon,
896
- category: cleanedData.category,
897
- databaseId: cleanedData.databaseId,
898
877
  },
899
878
  select: {
900
- id: true,
879
+ accessChannels: true,
880
+ category: true,
881
+ concurrency: true,
901
882
  createdAt: true,
902
- updatedAt: true,
903
- scope: true,
904
- name: true,
905
- taskIdentifier: true,
883
+ databaseId: true,
906
884
  description: true,
885
+ fnCategory: true,
886
+ functionColumns: true,
887
+ icon: true,
888
+ id: true,
889
+ image: true,
890
+ inputs: true,
891
+ integrations: true,
907
892
  isPublished: true,
908
- accessChannels: true,
909
- publishedAt: true,
910
893
  maxAttempts: true,
894
+ moduleTable: true,
895
+ name: true,
896
+ outputs: true,
897
+ payloadArgs: true,
911
898
  priority: true,
899
+ props: true,
900
+ publishedAt: true,
912
901
  queueName: true,
902
+ requiredBuckets: true,
903
+ requiredConfigs: true,
904
+ requiredModels: true,
905
+ requiredSecrets: true,
906
+ resources: true,
913
907
  runtime: true,
914
- targetSchema: true,
915
- targetFunction: true,
916
- moduleTable: true,
917
- functionColumns: true,
918
- payloadArgs: true,
919
- image: true,
920
- concurrency: true,
921
- scaleMin: true,
922
908
  scaleMax: true,
909
+ scaleMin: true,
910
+ targetFunction: true,
911
+ targetSchema: true,
912
+ taskIdentifier: true,
923
913
  timeoutSeconds: true,
924
- resources: true,
925
- isBuiltIn: true,
926
- requiredSecrets: true,
927
- requiredConfigs: true,
928
- integrations: true,
929
- requiredBuckets: true,
930
- requiredModels: true,
931
- inputs: true,
932
- outputs: true,
933
- props: true,
914
+ updatedAt: true,
934
915
  volatile: true,
935
- icon: true,
936
- category: true,
937
- databaseId: true,
938
916
  },
939
917
  })
940
918
  .execute();