@tailor-platform/sdk 2.0.0-next.4 → 2.0.0-next.6

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 (321) hide show
  1. package/CHANGELOG.md +135 -0
  2. package/dist/{application-BX13RArL.mjs → application-BJXRpQj5.mjs} +602 -1842
  3. package/dist/application-BJXRpQj5.mjs.map +1 -0
  4. package/dist/application-BV-AXawv.mjs +3 -0
  5. package/dist/cli/cache/bundle-cache.d.mts +2 -1
  6. package/dist/cli/cache/store.d.mts +1 -1
  7. package/dist/cli/commands/api/index.d.mts +1 -0
  8. package/dist/cli/commands/deploy/aigateway.d.mts +5 -1
  9. package/dist/cli/commands/deploy/application.d.mts +7 -1
  10. package/dist/cli/commands/deploy/apply-phases.d.mts +14 -1
  11. package/dist/cli/commands/deploy/auth.d.mts +5 -1
  12. package/dist/cli/commands/deploy/deploy.d.mts +13 -3
  13. package/dist/cli/commands/deploy/executor.d.mts +7 -1
  14. package/dist/cli/commands/deploy/function-registry.d.mts +5 -0
  15. package/dist/cli/commands/deploy/idp.d.mts +5 -1
  16. package/dist/cli/commands/deploy/resolver.d.mts +5 -1
  17. package/dist/cli/commands/deploy/secret-manager.d.mts +5 -1
  18. package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -1
  19. package/dist/cli/commands/deploy/tailordb/index.d.mts +8 -1
  20. package/dist/cli/commands/deploy/types.d.mts +3 -1
  21. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +3 -1
  22. package/dist/cli/commands/deploy/workflow.d.mts +4 -1
  23. package/dist/cli/commands/executor/get.d.mts +0 -1
  24. package/dist/cli/commands/executor/jobs.d.mts +0 -1
  25. package/dist/cli/commands/executor/list.d.mts +0 -1
  26. package/dist/cli/commands/executor/transform.d.mts +1 -0
  27. package/dist/cli/commands/executor/trigger.d.mts +0 -1
  28. package/dist/cli/commands/executor/webhook.d.mts +0 -1
  29. package/dist/cli/commands/function/get.d.mts +0 -1
  30. package/dist/cli/commands/function/list.d.mts +0 -1
  31. package/dist/cli/commands/function/transform.d.mts +1 -0
  32. package/dist/cli/commands/generate/options.d.mts +0 -1
  33. package/dist/cli/commands/generate/service.d.mts +6 -2
  34. package/dist/cli/commands/machineuser/list.d.mts +0 -1
  35. package/dist/cli/commands/machineuser/token.d.mts +0 -1
  36. package/dist/cli/commands/oauth2client/get.d.mts +0 -1
  37. package/dist/cli/commands/oauth2client/list.d.mts +0 -1
  38. package/dist/cli/commands/oauth2client/transform.d.mts +1 -0
  39. package/dist/cli/commands/organization/folder/create.d.mts +0 -1
  40. package/dist/cli/commands/organization/folder/delete.d.mts +0 -1
  41. package/dist/cli/commands/organization/folder/get.d.mts +0 -1
  42. package/dist/cli/commands/organization/folder/list.d.mts +0 -1
  43. package/dist/cli/commands/organization/folder/update.d.mts +0 -1
  44. package/dist/cli/commands/organization/get.d.mts +0 -1
  45. package/dist/cli/commands/organization/list.d.mts +0 -1
  46. package/dist/cli/commands/organization/transform.d.mts +2 -0
  47. package/dist/cli/commands/organization/tree.d.mts +0 -1
  48. package/dist/cli/commands/organization/update.d.mts +0 -1
  49. package/dist/cli/commands/remove.d.mts +0 -1
  50. package/dist/cli/commands/show.d.mts +9 -4
  51. package/dist/cli/commands/staticwebsite/deploy.d.mts +19 -0
  52. package/dist/cli/commands/tailordb/migrate/config.d.mts +0 -1
  53. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +16 -3
  54. package/dist/cli/commands/tailordb/migrate/generate.d.mts +0 -1
  55. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +6 -0
  56. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
  57. package/dist/cli/commands/tailordb/truncate.d.mts +0 -1
  58. package/dist/cli/commands/workflow/executions.d.mts +0 -1
  59. package/dist/cli/commands/workflow/get.d.mts +2 -1
  60. package/dist/cli/commands/workflow/list.d.mts +0 -1
  61. package/dist/cli/commands/workflow/resume.d.mts +0 -1
  62. package/dist/cli/commands/workflow/start.d.mts +0 -1
  63. package/dist/cli/commands/workflow/status.d.mts +1 -0
  64. package/dist/cli/commands/workflow/transform.d.mts +1 -0
  65. package/dist/cli/commands/workflow/wait.d.mts +0 -1
  66. package/dist/cli/commands/workflow/waiter.d.mts +1 -1
  67. package/dist/cli/commands/workspace/app/health.d.mts +0 -1
  68. package/dist/cli/commands/workspace/app/list.d.mts +0 -1
  69. package/dist/cli/commands/workspace/app/transform.d.mts +2 -0
  70. package/dist/cli/commands/workspace/create.d.mts +3 -1
  71. package/dist/cli/commands/workspace/delete.d.mts +0 -1
  72. package/dist/cli/commands/workspace/get.d.mts +0 -1
  73. package/dist/cli/commands/workspace/list.d.mts +1 -1
  74. package/dist/cli/commands/workspace/restore.d.mts +0 -1
  75. package/dist/cli/commands/workspace/transform.d.mts +4 -0
  76. package/dist/cli/commands/workspace/user/invite.d.mts +0 -1
  77. package/dist/cli/commands/workspace/user/list.d.mts +0 -1
  78. package/dist/cli/commands/workspace/user/remove.d.mts +0 -1
  79. package/dist/cli/commands/workspace/user/transform.d.mts +1 -0
  80. package/dist/cli/commands/workspace/user/update.d.mts +0 -1
  81. package/dist/cli/index.d.mts +6 -3
  82. package/dist/cli/index.mjs +871 -1577
  83. package/dist/cli/index.mjs.map +1 -1
  84. package/dist/cli/lib.d.mts +10 -4
  85. package/dist/cli/lib.mjs +50 -4
  86. package/dist/cli/lib.mjs.map +1 -1
  87. package/dist/cli/query/index.d.mts +0 -1
  88. package/dist/cli/services/application.d.mts +12 -1
  89. package/dist/cli/services/auth/service.d.mts +2 -0
  90. package/dist/cli/services/executor/service.d.mts +1 -1
  91. package/dist/cli/services/http-adapter/bundler.d.mts +3 -1
  92. package/dist/cli/services/http-adapter/service.d.mts +2 -1
  93. package/dist/cli/services/resolver/service.d.mts +1 -1
  94. package/dist/cli/services/tailordb/service.d.mts +3 -1
  95. package/dist/cli/services/workflow/bundler.d.mts +2 -1
  96. package/dist/cli/services/workflow/service.d.mts +1 -1
  97. package/dist/cli/shared/args.d.mts +1 -1
  98. package/dist/cli/shared/client.d.mts +1 -1
  99. package/dist/cli/shared/config-loader.d.mts +1 -2
  100. package/dist/cli/shared/context.d.mts +2 -1
  101. package/dist/cli/shared/readonly-guard.d.mts +25 -0
  102. package/dist/cli/shared/script-executor.d.mts +0 -1
  103. package/dist/cli/shared/seed-chunker.d.mts +7 -3
  104. package/dist/cli/shared/tailordb-namespaces.d.mts +37 -0
  105. package/dist/cli/shared/type-generator.d.mts +0 -1
  106. package/dist/cli/shared/workspace-name.d.mts +1 -0
  107. package/dist/completion/zsh-worker.zsh +15 -303
  108. package/dist/configure/config/index.d.mts +0 -1
  109. package/dist/configure/config/types.d.mts +2 -2
  110. package/dist/configure/index.d.mts +14 -4
  111. package/dist/configure/index.mjs +201 -6
  112. package/dist/configure/index.mjs.map +1 -1
  113. package/dist/configure/services/aigateway/index.d.mts +0 -1
  114. package/dist/configure/services/aigateway/types.d.mts +0 -1
  115. package/dist/configure/services/auth/index.d.mts +0 -1
  116. package/dist/configure/services/auth/types.d.mts +15 -14
  117. package/dist/configure/services/executor/executor.d.mts +2 -13
  118. package/dist/configure/services/executor/index.d.mts +1 -0
  119. package/dist/configure/services/executor/operation.d.mts +9 -4
  120. package/dist/configure/services/executor/trigger/event.d.mts +0 -1
  121. package/dist/configure/services/executor/trigger/index.d.mts +0 -1
  122. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -1
  123. package/dist/configure/services/executor/trigger/webhook.d.mts +0 -1
  124. package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -2
  125. package/dist/configure/services/idp/index.d.mts +1 -5
  126. package/dist/configure/services/idp/permission.d.mts +4 -5
  127. package/dist/configure/services/idp/types.d.mts +0 -1
  128. package/dist/configure/services/index.d.mts +5 -0
  129. package/dist/configure/services/resolver/resolver.d.mts +1 -0
  130. package/dist/configure/services/resolver/types.d.mts +0 -1
  131. package/dist/configure/services/secrets/index.d.mts +0 -1
  132. package/dist/configure/services/secrets/types.d.mts +0 -1
  133. package/dist/configure/services/staticwebsite/index.d.mts +0 -1
  134. package/dist/configure/services/staticwebsite/types.d.mts +0 -1
  135. package/dist/configure/services/tailordb/permission.d.mts +4 -5
  136. package/dist/configure/services/tailordb/schema.d.mts +86 -56
  137. package/dist/configure/services/tailordb/types.d.mts +66 -17
  138. package/dist/configure/services/workflow/execution-policy.d.mts +2 -3
  139. package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -1
  140. package/dist/configure/services/workflow/index.d.mts +1 -0
  141. package/dist/configure/services/workflow/job.d.mts +0 -1
  142. package/dist/configure/services/workflow/wait-point.d.mts +0 -1
  143. package/dist/configure/services/workflow/workflow.d.mts +1 -1
  144. package/dist/configure/types/field.d.mts +1 -2
  145. package/dist/configure/types/field.types.d.mts +6 -45
  146. package/dist/configure/types/index.d.mts +1 -0
  147. package/dist/configure/types/type.d.mts +2 -11
  148. package/dist/{crashreport-D3RjuSYb.mjs → crashreport-0ioNRZ4K.mjs} +1 -1
  149. package/dist/{crashreport-Cg-pqRJV.mjs → crashreport-CxHne11E.mjs} +4 -3
  150. package/dist/{crashreport-Cg-pqRJV.mjs.map → crashreport-CxHne11E.mjs.map} +1 -1
  151. package/dist/errors-DfnF4ibq.mjs +100 -0
  152. package/dist/errors-DfnF4ibq.mjs.map +1 -0
  153. package/dist/{globals-BjhJJ2dN.mjs → globals-D-YbJKW-.mjs} +16 -10
  154. package/dist/globals-D-YbJKW-.mjs.map +1 -0
  155. package/dist/kysely/index.d.mts +3 -4
  156. package/dist/{kysely-type-D-zflMGf.mjs → kysely-type-DqIRgDYR.mjs} +4 -3
  157. package/dist/kysely-type-DqIRgDYR.mjs.map +1 -0
  158. package/dist/{logger-BEiZZ3qT.mjs → logger-BwS4ppwO.mjs} +3 -3
  159. package/dist/logger-BwS4ppwO.mjs.map +1 -0
  160. package/dist/parser/service/auth/index.d.mts +1 -1
  161. package/dist/parser/service/auth/schema.d.mts +2 -0
  162. package/dist/parser/service/http-adapter/index.d.mts +1 -1
  163. package/dist/parser/service/idp/types.d.mts +1 -0
  164. package/dist/parser/service/tailordb/type-source.d.mts +10 -0
  165. package/dist/parser/service/tailordb/types.d.mts +6 -1
  166. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -1
  167. package/dist/plugin/builtin/file-utils/index.d.mts +0 -1
  168. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -1
  169. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  170. package/dist/plugin/builtin/seed/index.d.mts +0 -1
  171. package/dist/plugin/get-generated-type.d.mts +0 -1
  172. package/dist/plugin/manager.d.mts +2 -1
  173. package/dist/plugin/types.d.mts +0 -1
  174. package/dist/plugin/with-context.d.mts +0 -1
  175. package/dist/{register-ts-hook-BM1caLT0.mjs → register-ts-hook-DL31O2W9.mjs} +3076 -1744
  176. package/dist/register-ts-hook-DL31O2W9.mjs.map +1 -0
  177. package/dist/{registry-BSbq6SPo.mjs → registry-CC3CbQiF.mjs} +3 -3
  178. package/dist/registry-CC3CbQiF.mjs.map +1 -0
  179. package/dist/runtime/aigateway.d.mts +0 -1
  180. package/dist/runtime/authconnection.d.mts +0 -1
  181. package/dist/runtime/context.d.mts +0 -1
  182. package/dist/runtime/field-parse.d.mts +10 -0
  183. package/dist/runtime/globals.d.mts +5 -3
  184. package/dist/runtime/index.d.mts +0 -1
  185. package/dist/runtime/index.mjs +1 -1
  186. package/dist/runtime/types.d.mts +9 -4
  187. package/dist/runtime/workflow.d.mts +70 -10
  188. package/dist/runtime/workflow.mjs +1 -1
  189. package/dist/{schema-C4LYbXVG.mjs → schema--xYWRGfe.mjs} +272 -51
  190. package/dist/schema--xYWRGfe.mjs.map +1 -0
  191. package/dist/{secret-file-aoNXJmKa.mjs → secret-file-C3J4Gy8r.mjs} +2 -27
  192. package/dist/secret-file-C3J4Gy8r.mjs.map +1 -0
  193. package/dist/{secretmanager-Bd45j7an.mjs → secretmanager-IY4UvinW.mjs} +42 -9
  194. package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
  195. package/dist/seed/index.d.mts +3 -2
  196. package/dist/{service-ufH7sS8o.mjs → service-CnHz9rwz.mjs} +47 -20
  197. package/dist/service-CnHz9rwz.mjs.map +1 -0
  198. package/dist/{service-DeZeYa06.mjs → service-DaeJlBoH.mjs} +3 -3
  199. package/dist/{service-DeZeYa06.mjs.map → service-DaeJlBoH.mjs.map} +1 -1
  200. package/dist/service-nU6ITOHL.mjs +3 -0
  201. package/dist/service_pb-BoLM0X4K.mjs +167 -0
  202. package/dist/service_pb-BoLM0X4K.mjs.map +1 -0
  203. package/dist/{service_pb-B2FF59sP.mjs → service_pb-r1T7kpJc.mjs} +1 -1
  204. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +0 -1
  205. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +0 -1
  206. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +0 -1
  207. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +0 -1
  208. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +0 -1
  209. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +0 -1
  210. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +0 -1
  211. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +0 -1
  212. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +0 -1
  213. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +0 -1
  214. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +0 -1
  215. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +0 -1
  216. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -1
  217. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +0 -1
  218. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +0 -1
  219. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +0 -1
  220. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +0 -1
  221. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +0 -1
  222. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +0 -1
  223. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +0 -1
  224. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +0 -1
  225. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +0 -1
  226. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +0 -1
  227. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +0 -1
  228. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +0 -1
  229. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +0 -1
  230. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +0 -1
  231. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +0 -1
  232. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +0 -1
  233. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +0 -1
  234. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +0 -1
  235. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +0 -1
  236. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +0 -1
  237. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +0 -1
  238. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +0 -1
  239. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +0 -1
  240. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +0 -1
  241. package/dist/types/aigateway.generated.d.mts +5 -2
  242. package/dist/types/auth-connection.generated.d.mts +24 -11
  243. package/dist/types/auth.generated.d.mts +115 -84
  244. package/dist/types/executor.generated.d.mts +133 -123
  245. package/dist/types/helpers.d.mts +7 -6
  246. package/dist/types/http-adapter.generated.d.mts +11 -5
  247. package/dist/types/idp.generated.d.mts +536 -524
  248. package/dist/types/resolver.generated.d.mts +26 -11
  249. package/dist/types/staticwebsite.generated.d.mts +7 -3
  250. package/dist/types/tailordb.generated.d.mts +57 -29
  251. package/dist/types/workflow.generated.d.mts +9 -4
  252. package/dist/user-agent-Bgsszb5I.mjs +28 -0
  253. package/dist/user-agent-Bgsszb5I.mjs.map +1 -0
  254. package/dist/utils/test/index.d.mts +1 -2
  255. package/dist/utils/test/index.mjs +36 -10
  256. package/dist/utils/test/index.mjs.map +1 -1
  257. package/dist/utils/test/mock.d.mts +0 -1
  258. package/dist/vitest/environment.mjs +1 -1
  259. package/dist/vitest/index.d.mts +9 -9
  260. package/dist/vitest/index.mjs +591 -173
  261. package/dist/vitest/index.mjs.map +1 -1
  262. package/dist/vitest/mock-kysely.d.mts +0 -1
  263. package/dist/vitest/mock.d.mts +8 -8
  264. package/dist/vitest/mocks/aigateway.d.mts +16 -6
  265. package/dist/vitest/mocks/authconnection.d.mts +16 -6
  266. package/dist/vitest/mocks/file.d.mts +23 -6
  267. package/dist/vitest/mocks/iconv.d.mts +28 -4
  268. package/dist/vitest/mocks/idp.d.mts +26 -10
  269. package/dist/vitest/mocks/secretmanager.d.mts +16 -5
  270. package/dist/vitest/mocks/tailordb.d.mts +54 -10
  271. package/dist/vitest/mocks/workflow.d.mts +72 -21
  272. package/dist/vitest/setup.mjs +2 -2
  273. package/dist/vitest/workflow-local.d.mts +1 -0
  274. package/dist/workflow-9kHGKxF2.mjs +64 -0
  275. package/dist/workflow-9kHGKxF2.mjs.map +1 -0
  276. package/dist/{service_pb-B5w9rjPY.mjs → workspace_resource_pb-Db3fv68L.mjs} +57 -165
  277. package/dist/workspace_resource_pb-Db3fv68L.mjs.map +1 -0
  278. package/docs/cli/application.md +61 -15
  279. package/docs/cli/setup.md +1 -1
  280. package/docs/cli/tailordb.md +8 -140
  281. package/docs/cli/workspace.md +6 -4
  282. package/docs/cli-reference.md +18 -14
  283. package/docs/github-actions.md +8 -0
  284. package/docs/migration/v2.md +247 -0
  285. package/docs/runtime.md +5 -6
  286. package/docs/services/aigateway.md +2 -0
  287. package/docs/services/executor.md +5 -0
  288. package/docs/services/tailordb.md +144 -68
  289. package/docs/services/workflow.md +3 -3
  290. package/docs/testing.md +105 -89
  291. package/package.json +22 -25
  292. package/dist/application-BO4ZF8wP.mjs +0 -3
  293. package/dist/application-BX13RArL.mjs.map +0 -1
  294. package/dist/cli/erd-viewer-assets/app.js +0 -1424
  295. package/dist/cli/erd-viewer-assets/index.html +0 -77
  296. package/dist/cli/erd-viewer-assets/serve.json +0 -13
  297. package/dist/cli/erd-viewer-assets/styles.css +0 -1036
  298. package/dist/cli/shared/trigger-context.d.mts +0 -1
  299. package/dist/configure/types/field-runtime.d.mts +0 -17
  300. package/dist/errors-118wUDRr.mjs +0 -42
  301. package/dist/errors-118wUDRr.mjs.map +0 -1
  302. package/dist/field-runtime-CAnh_oow.mjs +0 -183
  303. package/dist/field-runtime-CAnh_oow.mjs.map +0 -1
  304. package/dist/globals-BjhJJ2dN.mjs.map +0 -1
  305. package/dist/kysely-type-D-zflMGf.mjs.map +0 -1
  306. package/dist/logger-BEiZZ3qT.mjs.map +0 -1
  307. package/dist/register-ts-hook-BM1caLT0.mjs.map +0 -1
  308. package/dist/registry-BSbq6SPo.mjs.map +0 -1
  309. package/dist/resource_pb-BRv7AMXK.mjs +0 -49
  310. package/dist/resource_pb-BRv7AMXK.mjs.map +0 -1
  311. package/dist/schema-C4LYbXVG.mjs.map +0 -1
  312. package/dist/secret-file-aoNXJmKa.mjs.map +0 -1
  313. package/dist/secretmanager-Bd45j7an.mjs.map +0 -1
  314. package/dist/service-CkIwEctX.mjs +0 -3
  315. package/dist/service-ufH7sS8o.mjs.map +0 -1
  316. package/dist/service_pb-B5w9rjPY.mjs.map +0 -1
  317. package/dist/types-C-lQ4se3.mjs +0 -4
  318. package/dist/types-CXF2OYdR.mjs +0 -199
  319. package/dist/types-CXF2OYdR.mjs.map +0 -1
  320. package/dist/workflow-GNuSnsTx.mjs +0 -22
  321. package/dist/workflow-GNuSnsTx.mjs.map +0 -1
@@ -0,0 +1,3 @@
1
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-BJXRpQj5.mjs";
2
+
3
+ export { defineApplication, generatePluginFilesIfNeeded };
@@ -1 +1,2 @@
1
- export { };
1
+ import "./store.mjs";
2
+ import "rolldown";
@@ -1 +1 @@
1
- export { };
1
+ import "./types.mjs";
@@ -1,3 +1,4 @@
1
1
  import { ApiCallOptions, ApiCallResult, apiCall } from "./api-call.mjs";
2
2
  import { z } from "zod";
3
+ import "@bufbuild/protobuf";
3
4
  export { type ApiCallOptions, type ApiCallResult, apiCall };
@@ -1 +1,5 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/aigateway_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./types.mjs";
5
+ import "@bufbuild/protobuf";
@@ -1 +1,7 @@
1
- export { };
1
+ import "../../services/http-adapter/bundler.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/http_adapter_resource_pb.mjs";
3
+ import "../../../tailor-proto/src/tailor/v1/application_pb.mjs";
4
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
+ import "../../shared/client.mjs";
6
+ import "./types.mjs";
7
+ import "@bufbuild/protobuf";
@@ -1 +1,14 @@
1
- export { };
1
+ import "../../services/application.mjs";
2
+ import "../../shared/client.mjs";
3
+ import "./aigateway.mjs";
4
+ import "./application.mjs";
5
+ import "./auth.mjs";
6
+ import "./executor.mjs";
7
+ import "./function-registry.mjs";
8
+ import "./idp.mjs";
9
+ import "./resolver.mjs";
10
+ import "./secret-manager.mjs";
11
+ import "./staticwebsite.mjs";
12
+ import "./tailordb/index.mjs";
13
+ import "./workflow.mjs";
14
+ import "./workflow-execution-policy.mjs";
@@ -1 +1,5 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/auth_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./types.mjs";
5
+ import "@bufbuild/protobuf";
@@ -1,4 +1,9 @@
1
1
  import { BundledScripts } from "./function-registry-types.mjs";
2
+ import "../../shared/config-loader.mjs";
3
+ import "../../services/application.mjs";
4
+ import "../../shared/client.mjs";
5
+ import "./types.mjs";
6
+ import "./apply-phases.mjs";
2
7
  //#region src/cli/commands/deploy/deploy.d.ts
3
8
  interface DeployOptions {
4
9
  workspaceId?: string;
@@ -10,12 +15,17 @@ interface DeployOptions {
10
15
  noValidate?: boolean;
11
16
  noCache?: boolean;
12
17
  cleanCache?: boolean;
18
+ createWorkspace?: boolean;
19
+ workspaceName?: string;
20
+ workspaceRegion?: string;
21
+ organizationId?: string;
22
+ folderId?: string;
13
23
  buildOnly?: boolean;
14
24
  }
15
25
  /**
16
- * Deploy the configured application to the Tailor platform.
17
- * @param options - Options for deploy execution
18
- * @returns Promise that resolves to `{ bundledScripts }` when `buildOnly` is true, otherwise void
26
+ * Deploy using the programmatic CLI API.
27
+ * @param options - Deploy execution options
28
+ * @returns Deploy result
19
29
  */
20
30
  declare function deploy(options?: DeployOptions): Promise<{
21
31
  bundledScripts: BundledScripts;
@@ -1 +1,7 @@
1
- export { };
1
+ import "../../services/application.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/executor_resource_pb.mjs";
3
+ import "../../../tailor-proto/src/tailor/v1/executor_pb.mjs";
4
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
+ import "../../shared/client.mjs";
6
+ import "./types.mjs";
7
+ import "@bufbuild/protobuf";
@@ -1,2 +1,7 @@
1
1
  import { BundledScripts } from "./function-registry-types.mjs";
2
+ import "../../services/workflow/service.mjs";
3
+ import "../../services/application.mjs";
4
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
+ import "../../shared/client.mjs";
6
+ import "@bufbuild/protobuf";
2
7
  export type { BundledScripts };
@@ -1 +1,5 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/idp_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./types.mjs";
5
+ import "@bufbuild/protobuf";
@@ -1 +1,5 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/pipeline_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./types.mjs";
5
+ import "@bufbuild/protobuf";
@@ -1 +1,5 @@
1
- export { };
1
+ import "../../services/application.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/secret_manager_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./types.mjs";
5
+ import "@bufbuild/protobuf";
@@ -1 +1,5 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/staticwebsite_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./types.mjs";
5
+ import "@bufbuild/protobuf";
@@ -1 +1,8 @@
1
- export { };
1
+ import "../../../shared/config-loader.mjs";
2
+ import "../../../services/application.mjs";
3
+ import "../../../../tailor-proto/src/tailor/v1/tailordb_pb.mjs";
4
+ import "../../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
+ import "../../../shared/client.mjs";
6
+ import "../types.mjs";
7
+ import "../../tailordb/migrate/snapshot.mjs";
8
+ import "@bufbuild/protobuf";
@@ -1 +1,3 @@
1
- export { };
1
+ import "../../shared/config-loader.mjs";
2
+ import "../../services/application.mjs";
3
+ import "../../shared/client.mjs";
@@ -1 +1,3 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
2
+ import "../../shared/client.mjs";
3
+ import "@bufbuild/protobuf";
@@ -1 +1,4 @@
1
- export { };
1
+ import "../../../tailor-proto/src/tailor/v1/workflow_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "@bufbuild/protobuf";
@@ -1,6 +1,5 @@
1
1
  import { ExecutorInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/executor/get.d.ts
5
4
  type ExecutorLike = {
6
5
  name: string;
@@ -1,7 +1,6 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
2
  import { ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo } from "./transform.mjs";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/cli/commands/executor/jobs.d.ts
6
5
  type ExecutorLike = {
7
6
  name: string;
@@ -1,7 +1,6 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
2
  import { ExecutorListInfo } from "./transform.mjs";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/cli/commands/executor/list.d.ts
6
5
  interface ListExecutorsOptions {
7
6
  workspaceId?: string;
@@ -1,3 +1,4 @@
1
+ import "../../../tailor-proto/src/tailor/v1/executor_resource_pb.mjs";
1
2
  //#region src/cli/commands/executor/transform.d.ts
2
3
  interface ExecutorJobListInfo {
3
4
  id: string;
@@ -1,7 +1,6 @@
1
1
  import { IncomingWebhookTrigger, ScheduleTriggerInput } from "../../../types/executor.generated.mjs";
2
2
  import { z } from "zod";
3
3
  import { JsonObject } from "@bufbuild/protobuf";
4
-
5
4
  //#region src/cli/commands/executor/trigger.d.ts
6
5
  type ManualTrigger = IncomingWebhookTrigger | ScheduleTriggerInput;
7
6
  type ManualTriggerExecutor<T extends ManualTrigger = ManualTrigger> = T extends ManualTrigger ? {
@@ -1,5 +1,4 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
-
3
2
  //#region src/cli/commands/executor/webhook.d.ts
4
3
  interface WebhookExecutorInfo {
5
4
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { FunctionRegistryInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/function/get.d.ts
5
4
  declare const getFunctionRegistryOptionsSchema: z.ZodObject<{
6
5
  workspaceId: z.ZodOptional<z.ZodUUID>;
@@ -1,6 +1,5 @@
1
1
  import { FunctionRegistryInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/function/list.d.ts
5
4
  declare const listFunctionRegistriesOptionsSchema: z.ZodObject<{
6
5
  workspaceId: z.ZodOptional<z.ZodUUID>;
@@ -1,3 +1,4 @@
1
+ import "../../../tailor-proto/src/tailor/v1/function_registry_pb.mjs";
1
2
  //#region src/cli/commands/function/transform.d.ts
2
3
  interface FunctionRegistryInfo {
3
4
  name: string;
@@ -1,7 +1,6 @@
1
1
  //#region src/cli/commands/generate/options.d.ts
2
2
  type GenerateOptions = {
3
3
  configPath?: string;
4
- watch?: boolean;
5
4
  };
6
5
  //#endregion
7
6
  export { GenerateOptions };
@@ -1,10 +1,14 @@
1
+ import "../../../parser/service/tailordb/types.mjs";
2
+ import "../../../plugin/types.mjs";
3
+ import "../../../plugin/manager.mjs";
4
+ import "../../shared/config-loader.mjs";
5
+ import "../../services/application.mjs";
1
6
  import { GenerateOptions } from "./options.mjs";
2
-
3
7
  //#region src/cli/commands/generate/service.d.ts
4
8
  /**
5
9
  * Run code generation using the Tailor configuration.
6
10
  * @param options - Generation options
7
- * @returns Promise that resolves when generation (and watch, if enabled) completes
11
+ * @returns Promise that resolves when generation completes
8
12
  */
9
13
  declare function generate(options?: GenerateOptions): Promise<void>;
10
14
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/machineuser/list.d.ts
5
4
  interface ListMachineUsersOptions {
6
5
  workspaceId?: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/machineuser/token.d.ts
4
3
  interface GetMachineUserTokenOptions {
5
4
  name?: string;
@@ -1,6 +1,5 @@
1
1
  import { OAuth2ClientCredentials } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/oauth2client/get.d.ts
5
4
  interface GetOAuth2ClientOptions {
6
5
  name: string;
@@ -1,7 +1,6 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
2
  import { OAuth2ClientInfo } from "./transform.mjs";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/cli/commands/oauth2client/list.d.ts
6
5
  interface ListOAuth2ClientsOptions {
7
6
  workspaceId?: string;
@@ -1,3 +1,4 @@
1
+ import "../../../tailor-proto/src/tailor/v1/auth_resource_pb.mjs";
1
2
  //#region src/cli/commands/oauth2client/transform.d.ts
2
3
  interface OAuth2ClientInfo {
3
4
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { FolderInfo } from "../transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/folder/create.d.ts
5
4
  declare const createFolderOptionsSchema: z.ZodObject<{
6
5
  organizationId: z.ZodUUID;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/organization/folder/delete.d.ts
4
3
  declare const deleteFolderOptionsSchema: z.ZodObject<{
5
4
  organizationId: z.ZodUUID;
@@ -1,6 +1,5 @@
1
1
  import { FolderInfo } from "../transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/folder/get.d.ts
5
4
  declare const getFolderOptionsSchema: z.ZodObject<{
6
5
  organizationId: z.ZodUUID;
@@ -1,6 +1,5 @@
1
1
  import { FolderListInfo } from "../transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/folder/list.d.ts
5
4
  declare const listFoldersOptionsSchema: z.ZodObject<{
6
5
  organizationId: z.ZodUUID;
@@ -1,6 +1,5 @@
1
1
  import { FolderInfo } from "../transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/folder/update.d.ts
5
4
  declare const updateFolderOptionsSchema: z.ZodObject<{
6
5
  organizationId: z.ZodUUID;
@@ -1,6 +1,5 @@
1
1
  import { OrganizationInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/get.d.ts
5
4
  declare const getOrganizationOptionsSchema: z.ZodObject<{
6
5
  organizationId: z.ZodUUID;
@@ -1,6 +1,5 @@
1
1
  import { UserOrganizationInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/list.d.ts
5
4
  interface ListOrganizationsOptions {
6
5
  limit?: number;
@@ -1,3 +1,5 @@
1
+ import "../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
2
+ import "../../../tailor-proto/src/tailor/v1/workspace_pb.mjs";
1
3
  //#region src/cli/commands/organization/transform.d.ts
2
4
  interface UserOrganizationInfo {
3
5
  organizationId: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/organization/tree.d.ts
4
3
  interface OrganizationTreeOptions {
5
4
  organizationId?: string;
@@ -1,6 +1,5 @@
1
1
  import { OrganizationInfo } from "./transform.mjs";
2
2
  import { z } from "zod";
3
-
4
3
  //#region src/cli/commands/organization/update.d.ts
5
4
  declare const updateOrganizationOptionsSchema: z.ZodObject<{
6
5
  organizationId: z.ZodUUID;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/remove.d.ts
4
3
  interface RemoveOptions {
5
4
  workspaceId?: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/show.d.ts
4
3
  interface ShowOptions {
5
4
  workspaceId?: string;
@@ -23,12 +22,18 @@ interface ApplicationInfo {
23
22
  createdAt: Date | null;
24
23
  updatedAt: Date | null;
25
24
  }
26
- interface ShowInfo extends ApplicationInfo, WorkspaceInfo {}
25
+ interface AIGatewayInfo {
26
+ name: string;
27
+ url: string;
28
+ }
29
+ interface ShowInfo extends ApplicationInfo, WorkspaceInfo {
30
+ aiGateways: AIGatewayInfo[];
31
+ }
27
32
  /**
28
33
  * Show applied application information for the current workspace.
29
34
  * @param options - Show options
30
- * @returns Application information
35
+ * @returns Deployed application, workspace, and AI Gateway information
31
36
  */
32
37
  declare function show(options?: ShowOptions): Promise<ShowInfo>;
33
38
  //#endregion
34
- export { ApplicationInfo, ShowInfo, ShowOptions, WorkspaceInfo, show };
39
+ export { AIGatewayInfo, ApplicationInfo, ShowInfo, ShowOptions, WorkspaceInfo, show };
@@ -0,0 +1,19 @@
1
+ import { OperatorClient } from "../../shared/client.mjs";
2
+ import { z } from "zod";
3
+ //#region src/cli/commands/staticwebsite/deploy.d.ts
4
+ type DeployResult = {
5
+ url: string;
6
+ skippedFiles: string[];
7
+ };
8
+ /**
9
+ * Deploy a static website by creating a deployment, uploading files, and publishing it.
10
+ * @param client - Operator client instance
11
+ * @param workspaceId - Workspace ID
12
+ * @param name - Static website name
13
+ * @param distDir - Directory containing static site files
14
+ * @param showProgress - Whether to show upload progress
15
+ * @returns Deployment result with URL and skipped files
16
+ */
17
+ declare function deployStaticWebsite(client: OperatorClient, workspaceId: string, name: string, distDir: string, showProgress?: boolean): Promise<DeployResult>;
18
+ //#endregion
19
+ export { DeployResult, deployStaticWebsite };
@@ -1,5 +1,4 @@
1
1
  import { AppConfig } from "../../../../configure/config/types.mjs";
2
-
3
2
  //#region src/cli/commands/tailordb/migrate/config.d.ts
4
3
  /**
5
4
  * Namespace with migrations configuration
@@ -1,5 +1,4 @@
1
1
  import { SnapshotFieldConfig, SnapshotGqlPermission, SnapshotIndexConfig, SnapshotRecordPermission, SnapshotRelationship, TailorDBSnapshotType } from "./snapshot-types.mjs";
2
-
3
2
  //#region src/cli/commands/tailordb/migrate/diff-calculator.d.ts
4
3
  /**
5
4
  * Properties shared by all diff change variants
@@ -149,11 +148,25 @@ interface PermissionModifiedChange extends DiffChangeBase {
149
148
  before?: SnapshotPermissionState;
150
149
  after?: SnapshotPermissionState;
151
150
  }
151
+ /** Type-level hook/validate script state for diff tracking. */
152
+ interface TypeScriptsState {
153
+ typeHookExpr?: {
154
+ create?: string;
155
+ update?: string;
156
+ };
157
+ typeValidateExpr?: string;
158
+ }
159
+ /** Type-level hook/validate scripts changed. */
160
+ interface TypeScriptsModifiedChange extends DiffChangeBase {
161
+ kind: "type_scripts_modified";
162
+ before: TypeScriptsState;
163
+ after: TypeScriptsState;
164
+ }
152
165
  /**
153
166
  * Single change in migration diff, discriminated by `kind` so that
154
167
  * `before`/`after` are typed per change kind.
155
168
  */
156
- type DiffChange = TypeAddedChange | TypeRemovedChange | TypeModifiedChange | TypeSettingsModifiedChange | FieldAddedChange | FieldRemovedChange | FieldModifiedChange | IndexAddedChange | IndexRemovedChange | IndexModifiedChange | FileAddedChange | FileRemovedChange | FileModifiedChange | RelationshipAddedChange | RelationshipRemovedChange | RelationshipModifiedChange | PermissionModifiedChange;
169
+ type DiffChange = TypeAddedChange | TypeRemovedChange | TypeModifiedChange | TypeSettingsModifiedChange | FieldAddedChange | FieldRemovedChange | FieldModifiedChange | IndexAddedChange | IndexRemovedChange | IndexModifiedChange | FileAddedChange | FileRemovedChange | FileModifiedChange | RelationshipAddedChange | RelationshipRemovedChange | RelationshipModifiedChange | PermissionModifiedChange | TypeScriptsModifiedChange;
157
170
  /**
158
171
  * Migration diff - changes between two schema versions
159
172
  * Stored as XXXX/diff.json (e.g., 0001/diff.json)
@@ -220,4 +233,4 @@ declare function formatMigrationDiff(diff: MigrationDiff): string;
220
233
  */
221
234
  declare function formatDiffSummary(diff: MigrationDiff): string;
222
235
  //#endregion
223
- export { BreakingChangeInfo, DiffChange, FieldAddedChange, FieldModifiedChange, FieldRemovedChange, FileAddedChange, FileModifiedChange, FileRemovedChange, IndexAddedChange, IndexModifiedChange, IndexRemovedChange, MigrationDiff, PermissionModifiedChange, RelationshipAddedChange, RelationshipModifiedChange, RelationshipRemovedChange, SnapshotPermissionState, SnapshotTypeSettingsState, TypeAddedChange, TypeModifiedChange, TypeRemovedChange, TypeSettingsModifiedChange, TypeSettingsPatch, WarningChangeInfo, formatDiffSummary, formatMigrationDiff, hasChanges };
236
+ export { BreakingChangeInfo, DiffChange, FieldAddedChange, FieldModifiedChange, FieldRemovedChange, FileAddedChange, FileModifiedChange, FileRemovedChange, IndexAddedChange, IndexModifiedChange, IndexRemovedChange, MigrationDiff, PermissionModifiedChange, RelationshipAddedChange, RelationshipModifiedChange, RelationshipRemovedChange, SnapshotPermissionState, SnapshotTypeSettingsState, TypeAddedChange, TypeModifiedChange, TypeRemovedChange, TypeScriptsModifiedChange, TypeScriptsState, TypeSettingsModifiedChange, TypeSettingsPatch, WarningChangeInfo, formatDiffSummary, formatMigrationDiff, hasChanges };
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/tailordb/migrate/generate.d.ts
4
3
  interface GenerateOptions {
5
4
  configPath?: string;
@@ -59,6 +59,7 @@ interface SnapshotFieldConfig {
59
59
  validate?: SnapshotValidation[];
60
60
  serial?: SnapshotSerial;
61
61
  scale?: number;
62
+ default?: unknown;
62
63
  /** Nested fields (recursive) */
63
64
  fields?: Record<string, SnapshotFieldConfig>;
64
65
  }
@@ -175,6 +176,11 @@ interface TailorDBSnapshotType {
175
176
  record?: SnapshotRecordPermission;
176
177
  gql?: SnapshotGqlPermission;
177
178
  };
179
+ typeHookExpr?: {
180
+ create?: string;
181
+ update?: string;
182
+ };
183
+ typeValidateExpr?: string;
178
184
  }
179
185
  /**
180
186
  * Schema snapshot - full schema state at a point in time.
@@ -1,7 +1,7 @@
1
1
  import { TailorDBType } from "../../../../parser/service/tailordb/types.mjs";
2
+ import "../../../../tailor-proto/src/tailor/v1/tailordb_resource_pb.mjs";
2
3
  import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotActionPermission, SnapshotEnumValue, SnapshotFieldConfig, SnapshotFieldRefOperand, SnapshotGqlAction, SnapshotGqlPermission, SnapshotGqlPermissionPolicy, SnapshotHook, SnapshotIndexConfig, SnapshotPermissionCondition, SnapshotPermissionOperand, SnapshotPermissionOperator, SnapshotRecordPermission, SnapshotRelationship, SnapshotSerial, SnapshotValidation, SnapshotValueOperand, TailorDBSnapshotType } from "./snapshot-types.mjs";
3
4
  import { MigrationDiff } from "./diff-calculator.mjs";
4
-
5
5
  //#region src/cli/commands/tailordb/migrate/snapshot.d.ts
6
6
  /**
7
7
  * Initial schema migration number (0000)
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region src/cli/commands/tailordb/truncate.d.ts
4
3
  interface TruncateOptions {
5
4
  workspaceId?: string;
@@ -3,7 +3,6 @@ import { WorkflowExecutionInfo, WorkflowJobExecutionInfo } from "./transform.mjs
3
3
  import { WorkflowWaitUntil } from "./status.mjs";
4
4
  import { WorkflowWaitResult } from "./waiter.mjs";
5
5
  import { z } from "zod";
6
-
7
6
  //#region src/cli/commands/workflow/executions.d.ts
8
7
  type WorkflowLike = {
9
8
  name: string;
@@ -1,6 +1,7 @@
1
+ import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
2
+ import "../../shared/client.mjs";
1
3
  import { WorkflowInfo } from "./transform.mjs";
2
4
  import { z } from "zod";
3
-
4
5
  //#region src/cli/commands/workflow/get.d.ts
5
6
  type WorkflowLike = {
6
7
  name: string;
@@ -1,7 +1,6 @@
1
1
  import { Order } from "../../shared/args.mjs";
2
2
  import { WorkflowListInfo } from "./transform.mjs";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/cli/commands/workflow/list.d.ts
6
5
  interface ListWorkflowsOptions {
7
6
  workspaceId?: string;
@@ -1,7 +1,6 @@
1
1
  import { WorkflowWaitResult } from "./waiter.mjs";
2
2
  import { WaitOptions } from "./start.mjs";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/cli/commands/workflow/resume.d.ts
6
5
  interface ResumeWorkflowOptions {
7
6
  executionId: string;
@@ -3,7 +3,6 @@ import { WorkflowWaitResult } from "./waiter.mjs";
3
3
  import { Jsonifiable } from "type-fest";
4
4
  import { z } from "zod";
5
5
  import { MachineUserName } from "@tailor-platform/sdk";
6
-
7
6
  //#region src/cli/commands/workflow/start.d.ts
8
7
  type WorkflowLike = {
9
8
  name: string;
@@ -1,3 +1,4 @@
1
+ import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
1
2
  //#region src/cli/commands/workflow/status.d.ts
2
3
  type WorkflowWaitUntil = "success" | "suspended" | "terminal";
3
4
  type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
@@ -1,3 +1,4 @@
1
+ import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
1
2
  //#region src/cli/commands/workflow/transform.d.ts
2
3
  interface WorkflowListInfo {
3
4
  name: string;
@@ -1,7 +1,6 @@
1
1
  import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./waiter.mjs";
2
2
  import { getWorkflowExecution } from "./executions.mjs";
3
3
  import { z } from "zod";
4
-
5
4
  //#region src/cli/commands/workflow/wait.d.ts
6
5
  interface WorkflowWaitOutput extends WorkflowWaitResult {
7
6
  jobDetails?: Awaited<ReturnType<typeof getWorkflowExecution>>["execution"]["jobDetails"];
@@ -1,6 +1,6 @@
1
+ import "../../shared/client.mjs";
1
2
  import { WorkflowExecutionInfo } from "./transform.mjs";
2
3
  import { WorkflowExecutionStatusClass, WorkflowWaitUntil } from "./status.mjs";
3
-
4
4
  //#region src/cli/commands/workflow/waiter.d.ts
5
5
  interface WaitWorkflowExecutionOptions {
6
6
  executionId: string;