@tailor-platform/sdk 1.76.1 → 1.76.2

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 (273) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/application-6zsDLGKv.mjs +3 -0
  3. package/dist/{application-BUfYmf0O.mjs → application-CqjCcZ2n.mjs} +372 -1673
  4. package/dist/application-CqjCcZ2n.mjs.map +1 -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 +5 -0
  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/service.d.mts +5 -1
  33. package/dist/cli/commands/generate/types.d.mts +3 -1
  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 +0 -1
  51. package/dist/cli/commands/tailordb/migrate/config.d.mts +0 -1
  52. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -1
  53. package/dist/cli/commands/tailordb/migrate/generate.d.mts +0 -1
  54. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
  55. package/dist/cli/commands/tailordb/truncate.d.mts +0 -1
  56. package/dist/cli/commands/workflow/executions.d.mts +0 -1
  57. package/dist/cli/commands/workflow/get.d.mts +2 -1
  58. package/dist/cli/commands/workflow/list.d.mts +0 -1
  59. package/dist/cli/commands/workflow/resume.d.mts +0 -1
  60. package/dist/cli/commands/workflow/start.d.mts +0 -1
  61. package/dist/cli/commands/workflow/status.d.mts +1 -0
  62. package/dist/cli/commands/workflow/transform.d.mts +1 -0
  63. package/dist/cli/commands/workflow/wait.d.mts +0 -1
  64. package/dist/cli/commands/workflow/waiter.d.mts +1 -1
  65. package/dist/cli/commands/workspace/app/health.d.mts +0 -1
  66. package/dist/cli/commands/workspace/app/list.d.mts +0 -1
  67. package/dist/cli/commands/workspace/app/transform.d.mts +2 -0
  68. package/dist/cli/commands/workspace/create.d.mts +0 -1
  69. package/dist/cli/commands/workspace/delete.d.mts +0 -1
  70. package/dist/cli/commands/workspace/get.d.mts +0 -1
  71. package/dist/cli/commands/workspace/list.d.mts +0 -1
  72. package/dist/cli/commands/workspace/restore.d.mts +0 -1
  73. package/dist/cli/commands/workspace/transform.d.mts +2 -0
  74. package/dist/cli/commands/workspace/user/invite.d.mts +0 -1
  75. package/dist/cli/commands/workspace/user/list.d.mts +0 -1
  76. package/dist/cli/commands/workspace/user/remove.d.mts +0 -1
  77. package/dist/cli/commands/workspace/user/transform.d.mts +1 -0
  78. package/dist/cli/commands/workspace/user/update.d.mts +0 -1
  79. package/dist/cli/index.d.mts +3 -1
  80. package/dist/cli/index.mjs +599 -42
  81. package/dist/cli/index.mjs.map +1 -1
  82. package/dist/cli/lib.d.mts +2 -0
  83. package/dist/cli/lib.mjs +3 -3
  84. package/dist/cli/query/index.d.mts +0 -1
  85. package/dist/cli/services/application.d.mts +12 -1
  86. package/dist/cli/services/auth/service.d.mts +2 -0
  87. package/dist/cli/services/executor/service.d.mts +1 -1
  88. package/dist/cli/services/http-adapter/bundler.d.mts +3 -1
  89. package/dist/cli/services/http-adapter/service.d.mts +2 -1
  90. package/dist/cli/services/resolver/service.d.mts +1 -1
  91. package/dist/cli/services/tailordb/service.d.mts +3 -1
  92. package/dist/cli/services/workflow/bundler.d.mts +2 -1
  93. package/dist/cli/services/workflow/service.d.mts +1 -1
  94. package/dist/cli/shared/args.d.mts +1 -1
  95. package/dist/cli/shared/client.d.mts +1 -1
  96. package/dist/cli/shared/config-loader.d.mts +0 -1
  97. package/dist/cli/shared/context.d.mts +2 -1
  98. package/dist/cli/shared/script-executor.d.mts +0 -1
  99. package/dist/cli/shared/seed-chunker.d.mts +7 -3
  100. package/dist/cli/shared/type-generator.d.mts +0 -1
  101. package/dist/completion/zsh-worker.zsh +1 -1
  102. package/dist/configure/config/index.d.mts +0 -1
  103. package/dist/configure/config/types.d.mts +2 -2
  104. package/dist/configure/index.d.mts +2 -1
  105. package/dist/configure/index.mjs +54 -4
  106. package/dist/configure/index.mjs.map +1 -1
  107. package/dist/configure/services/aigateway/index.d.mts +0 -1
  108. package/dist/configure/services/aigateway/types.d.mts +0 -1
  109. package/dist/configure/services/auth/index.d.mts +0 -1
  110. package/dist/configure/services/auth/types.d.mts +14 -13
  111. package/dist/configure/services/executor/executor.d.mts +0 -1
  112. package/dist/configure/services/executor/index.d.mts +1 -0
  113. package/dist/configure/services/executor/operation.d.mts +1 -2
  114. package/dist/configure/services/executor/trigger/event.d.mts +0 -1
  115. package/dist/configure/services/executor/trigger/index.d.mts +0 -1
  116. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -1
  117. package/dist/configure/services/executor/trigger/webhook.d.mts +0 -1
  118. package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -2
  119. package/dist/configure/services/idp/index.d.mts +0 -1
  120. package/dist/configure/services/idp/permission.d.mts +4 -5
  121. package/dist/configure/services/idp/types.d.mts +0 -1
  122. package/dist/configure/services/index.d.mts +5 -0
  123. package/dist/configure/services/resolver/resolver.d.mts +0 -1
  124. package/dist/configure/services/resolver/types.d.mts +0 -1
  125. package/dist/configure/services/secrets/index.d.mts +0 -1
  126. package/dist/configure/services/secrets/types.d.mts +0 -1
  127. package/dist/configure/services/staticwebsite/index.d.mts +0 -1
  128. package/dist/configure/services/staticwebsite/types.d.mts +0 -1
  129. package/dist/configure/services/tailordb/permission.d.mts +4 -5
  130. package/dist/configure/services/tailordb/schema.d.mts +21 -8
  131. package/dist/configure/services/tailordb/types.d.mts +4 -5
  132. package/dist/configure/services/workflow/execution-policy.d.mts +0 -1
  133. package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -1
  134. package/dist/configure/services/workflow/index.d.mts +1 -0
  135. package/dist/configure/services/workflow/job.d.mts +0 -1
  136. package/dist/configure/services/workflow/wait-point.d.mts +0 -1
  137. package/dist/configure/services/workflow/workflow.d.mts +0 -1
  138. package/dist/configure/types/field-runtime.d.mts +1 -1
  139. package/dist/configure/types/field.d.mts +1 -2
  140. package/dist/configure/types/field.types.d.mts +1 -2
  141. package/dist/configure/types/type.d.mts +1 -1
  142. package/dist/configure/user.d.mts +0 -1
  143. package/dist/{crashreport-ayWANEZ6.mjs → crashreport-DZDr-TvH.mjs} +3 -2
  144. package/dist/{crashreport-ayWANEZ6.mjs.map → crashreport-DZDr-TvH.mjs.map} +1 -1
  145. package/dist/{crashreport-Dy4ZzSkd.mjs → crashreport-np4-_DX2.mjs} +1 -1
  146. package/dist/{field-runtime-9bfXBAOK.mjs → field-runtime-D4QWRiB1.mjs} +66 -46
  147. package/dist/field-runtime-D4QWRiB1.mjs.map +1 -0
  148. package/dist/{globals-CcU1ONiK.mjs → globals-z6zYMjlr.mjs} +2 -2
  149. package/dist/{globals-CcU1ONiK.mjs.map → globals-z6zYMjlr.mjs.map} +1 -1
  150. package/dist/kysely/index.d.mts +3 -4
  151. package/dist/parser/service/auth/index.d.mts +1 -1
  152. package/dist/parser/service/auth/schema.d.mts +1 -0
  153. package/dist/parser/service/http-adapter/index.d.mts +1 -1
  154. package/dist/parser/service/idp/types.d.mts +1 -0
  155. package/dist/parser/service/tailordb/types.d.mts +0 -1
  156. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -1
  157. package/dist/plugin/builtin/file-utils/index.d.mts +0 -1
  158. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -1
  159. package/dist/plugin/builtin/seed/index.d.mts +0 -1
  160. package/dist/plugin/builtin/seed/index.mjs +1 -1
  161. package/dist/plugin/get-generated-type.d.mts +0 -1
  162. package/dist/plugin/manager.d.mts +3 -1
  163. package/dist/plugin/types.d.mts +0 -1
  164. package/dist/plugin/with-context.d.mts +0 -1
  165. package/dist/{registry-NfSW0BRo.mjs → registry-CTgoVWc_.mjs} +4 -49
  166. package/dist/registry-CTgoVWc_.mjs.map +1 -0
  167. package/dist/runtime/aigateway.d.mts +0 -2
  168. package/dist/runtime/authconnection.d.mts +0 -2
  169. package/dist/runtime/globals.d.mts +0 -1
  170. package/dist/runtime/index.d.mts +0 -1
  171. package/dist/runtime/types.d.mts +16 -7
  172. package/dist/{runtime-_vUgjiqT.mjs → runtime-DlklyuHN.mjs} +1301 -716
  173. package/dist/runtime-DlklyuHN.mjs.map +1 -0
  174. package/dist/{schema-DrVyN-LP.mjs → schema-DbTR1c6M.mjs} +3 -2
  175. package/dist/schema-DbTR1c6M.mjs.map +1 -0
  176. package/dist/{secret-file-VSVGy1V0.mjs → secret-file-DBqZhjFQ.mjs} +2 -27
  177. package/dist/{secret-file-VSVGy1V0.mjs.map → secret-file-DBqZhjFQ.mjs.map} +1 -1
  178. package/dist/seed/index.d.mts +3 -2
  179. package/dist/{seed-fm0LeYP2.mjs → seed-DFFigL8V.mjs} +3 -13
  180. package/dist/seed-DFFigL8V.mjs.map +1 -0
  181. package/dist/service_pb-BoLM0X4K.mjs +167 -0
  182. package/dist/service_pb-BoLM0X4K.mjs.map +1 -0
  183. package/dist/{service_pb-B2FF59sP.mjs → service_pb-r1T7kpJc.mjs} +1 -1
  184. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +0 -1
  185. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +0 -1
  186. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +0 -1
  187. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +0 -1
  188. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +0 -1
  189. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +0 -1
  190. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +0 -1
  191. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +0 -1
  192. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +0 -1
  193. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +0 -1
  194. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +0 -1
  195. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +0 -1
  196. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -1
  197. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +0 -1
  198. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +0 -1
  199. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +0 -1
  200. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +0 -1
  201. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +0 -1
  202. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +0 -1
  203. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +0 -1
  204. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +0 -1
  205. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +0 -1
  206. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +0 -1
  207. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +0 -1
  208. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +0 -1
  209. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +0 -1
  210. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +0 -1
  211. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +0 -1
  212. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +0 -1
  213. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +0 -1
  214. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +0 -1
  215. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +0 -1
  216. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +0 -1
  217. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +0 -1
  218. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +0 -1
  219. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +0 -1
  220. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +0 -1
  221. package/dist/test-env-key-IPapa1KJ.mjs +49 -0
  222. package/dist/test-env-key-IPapa1KJ.mjs.map +1 -0
  223. package/dist/type-source-DH_LH20p.mjs +13 -0
  224. package/dist/type-source-DH_LH20p.mjs.map +1 -0
  225. package/dist/types/aigateway.generated.d.mts +5 -2
  226. package/dist/types/auth-connection.generated.d.mts +11 -5
  227. package/dist/types/auth.generated.d.mts +111 -51
  228. package/dist/types/executor.generated.d.mts +59 -27
  229. package/dist/types/helpers.d.mts +5 -5
  230. package/dist/types/http-adapter.generated.d.mts +11 -5
  231. package/dist/types/idp.generated.d.mts +20 -9
  232. package/dist/types/resolver.generated.d.mts +19 -9
  233. package/dist/types/staticwebsite.generated.d.mts +7 -3
  234. package/dist/types/tailordb.generated.d.mts +47 -22
  235. package/dist/types/workflow.generated.d.mts +9 -4
  236. package/dist/{types-BwzB2okW.mjs → types-BzJ7A_fn.mjs} +2 -2
  237. package/dist/{types-BwzB2okW.mjs.map → types-BzJ7A_fn.mjs.map} +1 -1
  238. package/dist/types-CG9H7HuE.mjs +4 -0
  239. package/dist/user-agent-DX2Jnw0-.mjs +28 -0
  240. package/dist/user-agent-DX2Jnw0-.mjs.map +1 -0
  241. package/dist/utils/test/index.d.mts +0 -1
  242. package/dist/utils/test/index.mjs +1 -1
  243. package/dist/utils/test/mock.d.mts +0 -1
  244. package/dist/vitest/environment.mjs +1 -1
  245. package/dist/vitest/index.d.mts +1 -1
  246. package/dist/vitest/index.mjs +2 -1
  247. package/dist/vitest/index.mjs.map +1 -1
  248. package/dist/vitest/mock-kysely.d.mts +0 -1
  249. package/dist/vitest/mocks/aigateway.d.mts +2 -2
  250. package/dist/vitest/mocks/authconnection.d.mts +2 -2
  251. package/dist/vitest/mocks/idp.d.mts +2 -2
  252. package/dist/vitest/mocks/secretmanager.d.mts +3 -1
  253. package/dist/vitest/mocks/tailordb.d.mts +6 -3
  254. package/dist/vitest/mocks/workflow.d.mts +11 -6
  255. package/dist/vitest/setup.mjs +1 -1
  256. package/dist/{service_pb-B5w9rjPY.mjs → workspace_resource_pb-Db3fv68L.mjs} +57 -165
  257. package/dist/workspace_resource_pb-Db3fv68L.mjs.map +1 -0
  258. package/docs/services/tailordb.md +10 -1
  259. package/package.json +11 -11
  260. package/dist/application-BUfYmf0O.mjs.map +0 -1
  261. package/dist/application-DbvD5UUz.mjs +0 -3
  262. package/dist/cli/shared/trigger-context.d.mts +0 -1
  263. package/dist/field-runtime-9bfXBAOK.mjs.map +0 -1
  264. package/dist/job-D-PbD1P3.mjs +0 -55
  265. package/dist/job-D-PbD1P3.mjs.map +0 -1
  266. package/dist/registry-NfSW0BRo.mjs.map +0 -1
  267. package/dist/resource_pb-BRv7AMXK.mjs +0 -49
  268. package/dist/resource_pb-BRv7AMXK.mjs.map +0 -1
  269. package/dist/runtime-_vUgjiqT.mjs.map +0 -1
  270. package/dist/schema-DrVyN-LP.mjs.map +0 -1
  271. package/dist/seed-fm0LeYP2.mjs.map +0 -1
  272. package/dist/service_pb-B5w9rjPY.mjs.map +0 -1
  273. package/dist/types-KlawuVKa.mjs +0 -4
@@ -3,7 +3,6 @@ import { TailorDBGQLPermission, TailorDBService, TailorDBType } from "./tailordb
3
3
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
4
4
  import { Message } from "@bufbuild/protobuf";
5
5
  import { FieldMask } from "@bufbuild/protobuf/wkt";
6
-
7
6
  //#region ../tailor-proto/src/tailor/v1/tailordb_pb.d.ts
8
7
  /**
9
8
  * @generated from message tailor.v1.ComposeTailorDBSDLRequest
@@ -2,7 +2,6 @@ import { Namespace, Script } from "./resource_pb.mjs";
2
2
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
3
3
  import { Message } from "@bufbuild/protobuf";
4
4
  import { Value } from "@bufbuild/protobuf/wkt";
5
-
6
5
  //#region ../tailor-proto/src/tailor/v1/tailordb_resource_pb.d.ts
7
6
  /**
8
7
  * @generated from message tailor.v1.TailorDBService
@@ -2,7 +2,6 @@ import { PageDirection } from "./resource_pb.mjs";
2
2
  import { OTLPExporter, ResourceAttributesConfig } from "./telemetryrouter_resource_pb.mjs";
3
3
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
4
4
  import { Message } from "@bufbuild/protobuf";
5
-
6
5
  //#region ../tailor-proto/src/tailor/v1/telemetryrouter_pb.d.ts
7
6
  /**
8
7
  * @generated from message tailor.v1.CreateOTLPExporterRequest
@@ -2,7 +2,6 @@ import { SecretValue } from "./secret_manager_resource_pb.mjs";
2
2
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
3
3
  import { Message } from "@bufbuild/protobuf";
4
4
  import { Timestamp } from "@bufbuild/protobuf/wkt";
5
-
6
5
  //#region ../tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.ts
7
6
  /**
8
7
  * @generated from message tailor.v1.OTLPExporter
@@ -3,7 +3,6 @@ import { AuthInvoker } from "./auth_resource_pb.mjs";
3
3
  import { ConcurrencyPolicy, RetryPolicy, Workflow, WorkflowExecution, WorkflowJobFunction, WorkflowJobFunctionExecutionPolicy, WorkflowJobFunctionSummary } from "./workflow_resource_pb.mjs";
4
4
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
5
5
  import { Message } from "@bufbuild/protobuf";
6
-
7
6
  //#region ../tailor-proto/src/tailor/v1/workflow_pb.d.ts
8
7
  /**
9
8
  * @generated from message tailor.v1.CreateWorkflowRequest
@@ -1,7 +1,6 @@
1
1
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import { Message } from "@bufbuild/protobuf";
3
3
  import { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
4
-
5
4
  //#region ../tailor-proto/src/tailor/v1/workflow_resource_pb.d.ts
6
5
  /**
7
6
  * @generated from message tailor.v1.WorkflowJobFunction
@@ -3,7 +3,6 @@ import { PageDirection } from "./resource_pb.mjs";
3
3
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
4
4
  import { Message } from "@bufbuild/protobuf";
5
5
  import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
6
-
7
6
  //#region ../tailor-proto/src/tailor/v1/workspace_pb.d.ts
8
7
  /**
9
8
  * @generated from message tailor.v1.ListAvailableWorkspaceRegionsRequest
@@ -1,7 +1,6 @@
1
1
  import { GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import { Message } from "@bufbuild/protobuf";
3
3
  import { Timestamp } from "@bufbuild/protobuf/wkt";
4
-
5
4
  //#region ../tailor-proto/src/tailor/v1/workspace_resource_pb.d.ts
6
5
  /**
7
6
  * @generated from message tailor.v1.Organization
@@ -0,0 +1,49 @@
1
+ //#region src/configure/services/workflow/test-env-key.ts
2
+ const SLOT_KEY = "__tailorWorkflowTestEnv";
3
+ /**
4
+ * Read the test-time env slot.
5
+ * @returns Current env, or `undefined` when unset.
6
+ * @internal
7
+ */
8
+ function readWorkflowTestEnv() {
9
+ return globalThis[SLOT_KEY];
10
+ }
11
+ /**
12
+ * Write the test-time env slot.
13
+ * @param env - Env value to expose to `.trigger()` bodies.
14
+ * @internal
15
+ */
16
+ function writeWorkflowTestEnv(env) {
17
+ globalThis[SLOT_KEY] = env;
18
+ }
19
+ /**
20
+ * Clear the test-time env slot.
21
+ * @internal
22
+ */
23
+ function clearWorkflowTestEnv() {
24
+ delete globalThis[SLOT_KEY];
25
+ }
26
+ /**
27
+ * Env-var fallback read by `.trigger()` when `mockWorkflow().setEnv()` is unset.
28
+ * @deprecated Use `mockWorkflow().setEnv()` from `@tailor-platform/sdk/vitest`.
29
+ * @internal
30
+ */
31
+ const WORKFLOW_TEST_ENV_KEY = "TAILOR_TEST_WORKFLOW_ENV";
32
+ function buildJobContext() {
33
+ const fromGlobal = readWorkflowTestEnv();
34
+ if (fromGlobal !== void 0) return { env: { ...fromGlobal } };
35
+ const raw = process.env[WORKFLOW_TEST_ENV_KEY];
36
+ if (!raw) return { env: {} };
37
+ let parsed;
38
+ try {
39
+ parsed = JSON.parse(raw);
40
+ } catch (cause) {
41
+ throw new Error(`Invalid JSON in ${WORKFLOW_TEST_ENV_KEY}; provide valid JSON or use mockWorkflow().setEnv().`, { cause });
42
+ }
43
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error(`${WORKFLOW_TEST_ENV_KEY} must be a JSON object; provide a record or use mockWorkflow().setEnv().`);
44
+ return { env: { ...parsed } };
45
+ }
46
+
47
+ //#endregion
48
+ export { writeWorkflowTestEnv as i, buildJobContext as n, clearWorkflowTestEnv as r, WORKFLOW_TEST_ENV_KEY as t };
49
+ //# sourceMappingURL=test-env-key-IPapa1KJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-env-key-IPapa1KJ.mjs","names":[],"sources":["../src/configure/services/workflow/test-env-key.ts"],"sourcesContent":["/**\n * Typed accessors for the test-time globalThis slot used to pass `env` from\n * `mockWorkflow().setEnv()` (in `@tailor-platform/sdk/vitest`) to\n * `createWorkflowJob().trigger()` bodies. The slot key is private to this\n * module; callers go through the get/set/clear functions below so both sides\n * share the same access path.\n *\n * Lives in its own file (with no `@/` imports) so `vitest/mock.ts` can load\n * it from nested Vitest configs that do not resolve `@/` aliases.\n * @internal\n */\nimport type { TailorEnv, TailorInvoker } from \"../../../runtime/types\";\n\nconst SLOT_KEY = \"__tailorWorkflowTestEnv\";\n\n/**\n * Read the test-time env slot.\n * @returns Current env, or `undefined` when unset.\n * @internal\n */\nexport function readWorkflowTestEnv(): TailorEnv | undefined {\n return (globalThis as unknown as Record<string, TailorEnv | undefined>)[SLOT_KEY];\n}\n\n/**\n * Write the test-time env slot.\n * @param env - Env value to expose to `.trigger()` bodies.\n * @internal\n */\nexport function writeWorkflowTestEnv(env: TailorEnv): void {\n (globalThis as unknown as Record<string, TailorEnv>)[SLOT_KEY] = env;\n}\n\n/**\n * Clear the test-time env slot.\n * @internal\n */\nexport function clearWorkflowTestEnv(): void {\n delete (globalThis as unknown as Record<string, unknown>)[SLOT_KEY];\n}\n\n/**\n * Env-var fallback read by `.trigger()` when `mockWorkflow().setEnv()` is unset.\n * @deprecated Use `mockWorkflow().setEnv()` from `@tailor-platform/sdk/vitest`.\n * @internal\n */\nexport const WORKFLOW_TEST_ENV_KEY = \"TAILOR_TEST_WORKFLOW_ENV\";\n\n// env from `mockWorkflow().setEnv()`, else the deprecated env-var. Shallow-copied\n// to isolate against cross-trigger mutation.\nexport function buildJobContext(): { env: TailorEnv; invoker?: TailorInvoker } {\n const fromGlobal = readWorkflowTestEnv();\n if (fromGlobal !== undefined) return { env: { ...fromGlobal } };\n const raw = process.env[WORKFLOW_TEST_ENV_KEY];\n if (!raw) return { env: {} as TailorEnv };\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch (cause) {\n throw new Error(\n `Invalid JSON in ${WORKFLOW_TEST_ENV_KEY}; provide valid JSON or use mockWorkflow().setEnv().`,\n { cause },\n );\n }\n if (parsed === null || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n throw new Error(\n `${WORKFLOW_TEST_ENV_KEY} must be a JSON object; provide a record or use mockWorkflow().setEnv().`,\n );\n }\n return { env: { ...(parsed as TailorEnv) } };\n}\n"],"mappings":";AAaA,MAAM,WAAW;;;;;;AAOjB,SAAgB,sBAA6C;CAC3D,OAAQ,WAAgE;AAC1E;;;;;;AAOA,SAAgB,qBAAqB,KAAsB;CACzD,AAAC,WAAoD,YAAY;AACnE;;;;;AAMA,SAAgB,uBAA6B;CAC3C,OAAQ,WAAkD;AAC5D;;;;;;AAOA,MAAa,wBAAwB;AAIrC,SAAgB,kBAA+D;CAC7E,MAAM,aAAa,oBAAoB;CACvC,IAAI,eAAe,QAAW,OAAO,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE;CAC9D,MAAM,MAAM,QAAQ,IAAI;CACxB,IAAI,CAAC,KAAK,OAAO,EAAE,KAAK,CAAC,EAAe;CACxC,IAAI;CACJ,IAAI;EACF,SAAS,KAAK,MAAM,GAAG;CACzB,SAAS,OAAO;EACd,MAAM,IAAI,MACR,mBAAmB,sBAAsB,uDACzC,EAAE,MAAM,CACV;CACF;CACA,IAAI,WAAW,QAAQ,OAAO,WAAW,YAAY,MAAM,QAAQ,MAAM,GACvE,MAAM,IAAI,MACR,GAAG,sBAAsB,yEAC3B;CAEF,OAAO,EAAE,KAAK,EAAE,GAAI,OAAqB,EAAE;AAC7C"}
@@ -0,0 +1,13 @@
1
+ //#region src/parser/service/tailordb/type-source.ts
2
+ /**
3
+ * Checks if a type source is generated by a plugin.
4
+ * @param source - The type source entry to check.
5
+ * @returns True if the source was generated by a plugin.
6
+ */
7
+ function isPluginGeneratedType(source) {
8
+ return source.pluginId !== void 0;
9
+ }
10
+
11
+ //#endregion
12
+ export { isPluginGeneratedType as t };
13
+ //# sourceMappingURL=type-source-DH_LH20p.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-source-DH_LH20p.mjs","names":[],"sources":["../src/parser/service/tailordb/type-source.ts"],"sourcesContent":["import type { PluginGeneratedTypeSource, TypeSourceInfoEntry } from \"./types\";\n\n/**\n * Checks if a type source is generated by a plugin.\n * @param source - The type source entry to check.\n * @returns True if the source was generated by a plugin.\n */\nexport function isPluginGeneratedType(\n source: TypeSourceInfoEntry,\n): source is PluginGeneratedTypeSource {\n return source.pluginId !== undefined;\n}\n"],"mappings":";;;;;;AAOA,SAAgB,sBACd,QACqC;CACrC,OAAO,OAAO,aAAa;AAC7B"}
@@ -1,7 +1,10 @@
1
1
  //#region src/types/aigateway.generated.d.ts
2
2
  type AIGateway = {
3
- /** AI Gateway name */name: string; /** Auth namespace used to resolve request tokens against the workspace's auth */
4
- authNamespace: string; /** Allowed CORS origins for browser-based clients. Each entry is `*`, `http(s)://*`, `http(s)://*.example.com`, or `http(s)://app.example.com`, optionally with `:port`. Empty list disables cross-origin access. */
3
+ /** AI Gateway name */
4
+ name: string;
5
+ /** Auth namespace used to resolve request tokens against the workspace's auth */
6
+ authNamespace: string;
7
+ /** Allowed CORS origins for browser-based clients. Each entry is `*`, `http(s)://*`, `http(s)://*.example.com`, or `http(s)://app.example.com`, optionally with `:port`. Empty list disables cross-origin access. */
5
8
  cors?: string[] | undefined;
6
9
  };
7
10
  type AIGatewayInput = AIGateway;
@@ -1,10 +1,16 @@
1
1
  //#region src/types/auth-connection.generated.d.ts
2
2
  type AuthConnectionOAuth2Config = {
3
- /** OAuth2 provider URL */providerUrl: string; /** OAuth2 issuer URL */
4
- issuerUrl: string; /** OAuth2 client ID */
5
- clientId: string; /** OAuth2 client secret */
6
- clientSecret: string; /** OAuth2 authorization endpoint override */
7
- authUrl?: string | undefined; /** OAuth2 token endpoint override */
3
+ /** OAuth2 provider URL */
4
+ providerUrl: string;
5
+ /** OAuth2 issuer URL */
6
+ issuerUrl: string;
7
+ /** OAuth2 client ID */
8
+ clientId: string;
9
+ /** OAuth2 client secret */
10
+ clientSecret: string;
11
+ /** OAuth2 authorization endpoint override */
12
+ authUrl?: string | undefined;
13
+ /** OAuth2 token endpoint override */
8
14
  tokenUrl?: string | undefined;
9
15
  };
10
16
  type AuthConnectionConfig = {
@@ -1,98 +1,151 @@
1
1
  //#region src/types/auth.generated.d.ts
2
2
  type AuthInvokerObject = {
3
- /** Auth namespace */namespace: string; /** Machine user name for authentication */
3
+ /** Auth namespace */
4
+ namespace: string;
5
+ /** Machine user name for authentication */
4
6
  machineUserName: string;
5
7
  };
6
8
  type AuthInvoker = AuthInvokerObject;
7
9
  type OIDC = {
8
- /** Identity provider name */name: string;
9
- kind: "OIDC"; /** OAuth2 client ID */
10
- clientID: string; /** OAuth2 client secret */
10
+ /** Identity provider name */
11
+ name: string;
12
+ kind: "OIDC";
13
+ /** OAuth2 client ID */
14
+ clientID: string;
15
+ /** OAuth2 client secret */
11
16
  clientSecret: {
12
17
  vaultName: string;
13
18
  secretKey: string;
14
- }; /** OIDC provider URL */
15
- providerURL: string; /** OIDC issuer URL (defaults to providerURL) */
16
- issuerURL?: string | undefined; /** JWT claim to use as username */
19
+ };
20
+ /** OIDC provider URL */
21
+ providerURL: string;
22
+ /** OIDC issuer URL (defaults to providerURL) */
23
+ issuerURL?: string | undefined;
24
+ /** JWT claim to use as username */
17
25
  usernameClaim?: string | undefined;
18
26
  };
19
27
  type SAML = {
20
- /** Identity provider name */name: string;
21
- kind: "SAML"; /** Enable signing of SAML requests */
22
- enableSignRequest: boolean; /** URL to fetch SAML metadata (mutually exclusive with rawMetadata) */
23
- metadataURL?: string | undefined; /** Raw SAML metadata XML (mutually exclusive with metadataURL) */
24
- rawMetadata?: string | undefined; /** URL to redirect to when SAML ACS receives a response with an empty RelayState. */
28
+ /** Identity provider name */
29
+ name: string;
30
+ kind: "SAML";
31
+ /** Enable signing of SAML requests */
32
+ enableSignRequest: boolean;
33
+ /** URL to fetch SAML metadata (mutually exclusive with rawMetadata) */
34
+ metadataURL?: string | undefined;
35
+ /** Raw SAML metadata XML (mutually exclusive with metadataURL) */
36
+ rawMetadata?: string | undefined;
37
+ /** URL to redirect to when SAML ACS receives a response with an empty RelayState. */
25
38
  defaultRedirectURL?: string | undefined;
26
39
  };
27
40
  type IDToken = {
28
- /** Identity provider name */name: string;
29
- kind: "IDToken"; /** ID token provider URL */
30
- providerURL: string; /** Client ID for ID token validation */
31
- clientID: string; /** ID token issuer URL */
32
- issuerURL?: string | undefined; /** JWT claim to use as username */
41
+ /** Identity provider name */
42
+ name: string;
43
+ kind: "IDToken";
44
+ /** ID token provider URL */
45
+ providerURL: string;
46
+ /** Client ID for ID token validation */
47
+ clientID: string;
48
+ /** ID token issuer URL */
49
+ issuerURL?: string | undefined;
50
+ /** JWT claim to use as username */
33
51
  usernameClaim?: string | undefined;
34
52
  };
35
53
  type BuiltinIdP = {
36
- /** Identity provider name */name: string;
37
- kind: "BuiltInIdP"; /** IdP namespace */
38
- namespace: string; /** OAuth2 client name in the IdP */
54
+ /** Identity provider name */
55
+ name: string;
56
+ kind: "BuiltInIdP";
57
+ /** IdP namespace */
58
+ namespace: string;
59
+ /** OAuth2 client name in the IdP */
39
60
  clientName: string;
40
61
  };
41
62
  type IdProvider = OIDC | SAML | IDToken | BuiltinIdP;
42
63
  type OAuth2ClientInput = {
43
- /** Allowed redirect URIs */redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[]; /** Client description */
44
- description?: string | undefined; /** Allowed OAuth2 grant types */
45
- grantTypes?: ("authorization_code" | "refresh_token")[] | undefined; /** OAuth2 client type */
46
- clientType?: "confidential" | "public" | "browser" | undefined; /** Access token lifetime in seconds (60-86400) */
47
- accessTokenLifetimeSeconds?: number | undefined; /** Refresh token lifetime in seconds (60-604800) */
48
- refreshTokenLifetimeSeconds?: number | undefined; /** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
64
+ /** Allowed redirect URIs */
65
+ redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[];
66
+ /** Client description */
67
+ description?: string | undefined;
68
+ /** Allowed OAuth2 grant types */
69
+ grantTypes?: ("authorization_code" | "refresh_token")[] | undefined;
70
+ /** OAuth2 client type */
71
+ clientType?: "confidential" | "public" | "browser" | undefined;
72
+ /** Access token lifetime in seconds (60-86400) */
73
+ accessTokenLifetimeSeconds?: number | undefined;
74
+ /** Refresh token lifetime in seconds (60-604800) */
75
+ refreshTokenLifetimeSeconds?: number | undefined;
76
+ /** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
49
77
  requireDpop?: boolean | undefined;
50
78
  };
51
79
  type OAuth2Client = {
52
- /** Allowed OAuth2 grant types */grantTypes: ("authorization_code" | "refresh_token")[]; /** Allowed redirect URIs */
53
- redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[]; /** Access token lifetime in seconds (60-86400) */
80
+ /** Allowed OAuth2 grant types */
81
+ grantTypes: ("authorization_code" | "refresh_token")[];
82
+ /** Allowed redirect URIs */
83
+ redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[];
84
+ /** Access token lifetime in seconds (60-86400) */
54
85
  accessTokenLifetimeSeconds: {
55
86
  seconds: bigint;
56
87
  nanos: number;
57
- } | undefined; /** Refresh token lifetime in seconds (60-604800) */
88
+ } | undefined;
89
+ /** Refresh token lifetime in seconds (60-604800) */
58
90
  refreshTokenLifetimeSeconds: {
59
91
  seconds: bigint;
60
92
  nanos: number;
61
- } | undefined; /** Client description */
62
- description?: string | undefined; /** OAuth2 client type */
63
- clientType?: "confidential" | "public" | "browser" | undefined; /** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
93
+ } | undefined;
94
+ /** Client description */
95
+ description?: string | undefined;
96
+ /** OAuth2 client type */
97
+ clientType?: "confidential" | "public" | "browser" | undefined;
98
+ /** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
64
99
  requireDpop?: boolean | undefined;
65
100
  };
66
101
  type SCIMAuthorization = {
67
- /** SCIM authorization type */type: "oauth2" | "bearer"; /** Bearer token secret (required for bearer type) */
102
+ /** SCIM authorization type */
103
+ type: "oauth2" | "bearer";
104
+ /** Bearer token secret (required for bearer type) */
68
105
  bearerSecret?: {
69
106
  vaultName: string;
70
107
  secretKey: string;
71
108
  } | undefined;
72
109
  };
73
110
  type SCIMAttribute = {
74
- /** Attribute data type */type: "string" | "number" | "boolean" | "datetime" | "complex"; /** Attribute name */
75
- name: string; /** Attribute description */
76
- description?: string | undefined; /** Attribute mutability */
77
- mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined; /** Whether the attribute is required */
78
- required?: boolean | undefined; /** Whether the attribute can have multiple values */
79
- multiValued?: boolean | undefined; /** Uniqueness constraint */
80
- uniqueness?: "none" | "server" | "global" | undefined; /** List of canonical values */
111
+ /** Attribute data type */
112
+ type: "string" | "number" | "boolean" | "datetime" | "complex";
113
+ /** Attribute name */
114
+ name: string;
115
+ /** Attribute description */
116
+ description?: string | undefined;
117
+ /** Attribute mutability */
118
+ mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
119
+ /** Whether the attribute is required */
120
+ required?: boolean | undefined;
121
+ /** Whether the attribute can have multiple values */
122
+ multiValued?: boolean | undefined;
123
+ /** Uniqueness constraint */
124
+ uniqueness?: "none" | "server" | "global" | undefined;
125
+ /** List of canonical values */
81
126
  canonicalValues?: string[] | null | undefined;
82
127
  subAttributes?: SCIMAttribute[] | null | undefined;
83
128
  };
84
129
  type SCIMAttributeMapping = {
85
- /** TailorDB field name to map to */tailorDBField: string; /** SCIM attribute path */
130
+ /** TailorDB field name to map to */
131
+ tailorDBField: string;
132
+ /** SCIM attribute path */
86
133
  scimPath: string;
87
134
  };
88
135
  type SCIMResource = {
89
- /** SCIM resource name */name: string; /** TailorDB namespace for the resource */
90
- tailorDBNamespace: string; /** TailorDB type name for the resource */
91
- tailorDBType: string; /** Core SCIM schema definition */
136
+ /** SCIM resource name */
137
+ name: string;
138
+ /** TailorDB namespace for the resource */
139
+ tailorDBNamespace: string;
140
+ /** TailorDB type name for the resource */
141
+ tailorDBType: string;
142
+ /** Core SCIM schema definition */
92
143
  coreSchema: {
93
- /** SCIM resource name */name: string;
144
+ /** SCIM resource name */
145
+ name: string;
94
146
  attributes: {
95
- type: "string" | "number" | "boolean" | "datetime" | "complex"; /** SCIM resource name */
147
+ type: "string" | "number" | "boolean" | "datetime" | "complex";
148
+ /** SCIM resource name */
96
149
  name: string;
97
150
  description?: string | undefined;
98
151
  mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
@@ -102,21 +155,25 @@ type SCIMResource = {
102
155
  canonicalValues?: string[] | null | undefined;
103
156
  subAttributes?: any[] | null | undefined;
104
157
  }[];
105
- }; /** Attribute mapping configuration */
158
+ };
159
+ /** Attribute mapping configuration */
106
160
  attributeMapping: {
107
161
  tailorDBField: string;
108
162
  scimPath: string;
109
163
  }[];
110
164
  };
111
165
  type SCIMConfig = {
112
- /** Machine user name for SCIM operations */machineUserName: string; /** SCIM authorization configuration */
166
+ /** Machine user name for SCIM operations */
167
+ machineUserName: string;
168
+ /** SCIM authorization configuration */
113
169
  authorization: {
114
170
  type: "oauth2" | "bearer";
115
171
  bearerSecret?: {
116
172
  vaultName: string;
117
173
  secretKey: string;
118
174
  } | undefined;
119
- }; /** SCIM resource definitions */
175
+ };
176
+ /** SCIM resource definitions */
120
177
  resources: {
121
178
  name: string;
122
179
  tailorDBNamespace: string;
@@ -142,8 +199,11 @@ type SCIMConfig = {
142
199
  }[];
143
200
  };
144
201
  type TenantProvider = {
145
- /** TailorDB namespace for the tenant type */namespace: string; /** TailorDB type name for tenants */
146
- type: string; /** Field used as the tenant signature */
202
+ /** TailorDB namespace for the tenant type */
203
+ namespace: string;
204
+ /** TailorDB type name for tenants */
205
+ type: string;
206
+ /** Field used as the tenant signature */
147
207
  signatureField: string;
148
208
  };
149
209
  //#endregion
@@ -1,39 +1,55 @@
1
1
  //#region src/types/executor.generated.d.ts
2
2
  type TailorDBTrigger = {
3
- /** TailorDB record event trigger */kind: "tailordb"; /** TailorDB event types to trigger on */
4
- events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[]; /** TailorDB type name to watch for events */
5
- typeName: string; /** Condition function to filter events */
3
+ /** TailorDB record event trigger */
4
+ kind: "tailordb";
5
+ /** TailorDB event types to trigger on */
6
+ events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[];
7
+ /** TailorDB type name to watch for events */
8
+ typeName: string;
9
+ /** Condition function to filter events */
6
10
  condition?: Function | undefined;
7
11
  };
8
12
  type ResolverExecutedTrigger = {
9
- kind: "resolverExecuted"; /** Name of the resolver to trigger on */
10
- resolverName: string; /** Condition function to filter events */
13
+ kind: "resolverExecuted";
14
+ /** Name of the resolver to trigger on */
15
+ resolverName: string;
16
+ /** Condition function to filter events */
11
17
  condition?: Function | undefined;
12
18
  };
13
19
  type ScheduleTriggerInput = {
14
- kind: "schedule"; /** CRON expression for the schedule */
15
- cron: string; /** Timezone for the CRON schedule (default: UTC) */
20
+ kind: "schedule";
21
+ /** CRON expression for the schedule */
22
+ cron: string;
23
+ /** Timezone for the CRON schedule (default: UTC) */
16
24
  timezone?: string | undefined;
17
25
  };
18
26
  type IncomingWebhookTrigger = {
19
- kind: "incomingWebhook"; /** Response configuration */
27
+ kind: "incomingWebhook";
28
+ /** Response configuration */
20
29
  response?: {
21
30
  body?: Function | undefined;
22
31
  statusCode?: number | undefined;
23
32
  } | undefined;
24
33
  };
25
34
  type IdpUserTrigger = {
26
- /** IdP user event trigger */kind: "idpUser"; /** IdP user event types to trigger on */
27
- events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[]; /** IdP namespace name to subscribe to. If omitted, the project's only IdP is used; throws when multiple IdPs exist. */
35
+ /** IdP user event trigger */
36
+ kind: "idpUser";
37
+ /** IdP user event types to trigger on */
38
+ events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[];
39
+ /** IdP namespace name to subscribe to. If omitted, the project's only IdP is used; throws when multiple IdPs exist. */
28
40
  idp?: string | undefined;
29
41
  };
30
42
  type AuthAccessTokenTrigger = {
31
- /** Auth access token event trigger */kind: "authAccessToken"; /** Auth access token event types to trigger on */
43
+ /** Auth access token event trigger */
44
+ kind: "authAccessToken";
45
+ /** Auth access token event types to trigger on */
32
46
  events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
33
47
  };
34
48
  type FunctionOperation = {
35
- kind: "function" | "jobFunction"; /** Function implementation */
36
- body: Function; /** Auth invoker for the function execution */
49
+ kind: "function" | "jobFunction";
50
+ /** Function implementation */
51
+ body: Function;
52
+ /** Auth invoker for the function execution */
37
53
  authInvoker?: string | {
38
54
  namespace: string;
39
55
  machineUserName: string;
@@ -41,18 +57,24 @@ type FunctionOperation = {
41
57
  };
42
58
  type GqlOperation = {
43
59
  kind: "graphql";
44
- query: string; /** Target application name for the GraphQL query */
45
- appName?: string | undefined; /** Function to compute GraphQL variables */
46
- variables?: Function | undefined; /** Auth invoker for the GraphQL execution */
60
+ query: string;
61
+ /** Target application name for the GraphQL query */
62
+ appName?: string | undefined;
63
+ /** Function to compute GraphQL variables */
64
+ variables?: Function | undefined;
65
+ /** Auth invoker for the GraphQL execution */
47
66
  authInvoker?: string | {
48
67
  namespace: string;
49
68
  machineUserName: string;
50
69
  } | undefined;
51
70
  };
52
71
  type WebhookOperation = {
53
- kind: "webhook"; /** Function returning the webhook URL */
54
- url: Function; /** Function to compute the request body */
55
- requestBody?: Function | undefined; /** HTTP headers for the webhook request */
72
+ kind: "webhook";
73
+ /** Function returning the webhook URL */
74
+ url: Function;
75
+ /** Function to compute the request body */
76
+ requestBody?: Function | undefined;
77
+ /** HTTP headers for the webhook request */
56
78
  headers?: {
57
79
  [x: string]: string | {
58
80
  vault: string;
@@ -72,7 +94,9 @@ type WorkflowOperation = {
72
94
  } | undefined;
73
95
  };
74
96
  type ExecutorInput = {
75
- /** Executor name */name: string; /** Event trigger configuration */
97
+ /** Executor name */
98
+ name: string;
99
+ /** Event trigger configuration */
76
100
  trigger: {
77
101
  kind: "tailordb";
78
102
  events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[];
@@ -99,14 +123,20 @@ type ExecutorInput = {
99
123
  } | {
100
124
  kind: "authAccessToken";
101
125
  events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
102
- }; /** Operation to execute when triggered */
103
- operation: unknown; /** Executor description */
104
- description?: string | undefined; /** Whether the executor is disabled */
126
+ };
127
+ /** Operation to execute when triggered */
128
+ operation: unknown;
129
+ /** Executor description */
130
+ description?: string | undefined;
131
+ /** Whether the executor is disabled */
105
132
  disabled?: boolean | undefined;
106
133
  };
107
134
  type Executor = {
108
- /** Executor name */name: string; /** Whether the executor is disabled */
109
- disabled: boolean; /** Event trigger configuration */
135
+ /** Executor name */
136
+ name: string;
137
+ /** Whether the executor is disabled */
138
+ disabled: boolean;
139
+ /** Event trigger configuration */
110
140
  trigger: {
111
141
  kind: "tailordb";
112
142
  events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[];
@@ -133,7 +163,8 @@ type Executor = {
133
163
  } | {
134
164
  kind: "authAccessToken";
135
165
  events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
136
- }; /** Operation to execute when triggered */
166
+ };
167
+ /** Operation to execute when triggered */
137
168
  operation: {
138
169
  kind: "workflow";
139
170
  workflowName: string;
@@ -170,7 +201,8 @@ type Executor = {
170
201
  key: string;
171
202
  };
172
203
  } | undefined;
173
- }; /** Executor description */
204
+ };
205
+ /** Executor description */
174
206
  description?: string | undefined;
175
207
  };
176
208
  //#endregion
@@ -1,17 +1,17 @@
1
1
  //#region src/types/helpers.d.ts
2
- type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
2
+ type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K]; } & {};
3
3
  type TypeLevelError<Message extends string> = {
4
4
  readonly $error: Message;
5
5
  };
6
- type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]> } & {} : T;
6
+ type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]>; } & {} : T;
7
7
  type output<T> = T extends {
8
8
  _output: infer U;
9
9
  } ? DeepWritable<U> : never;
10
- type NullableToOptional<T> = { [K in keyof T as null extends T[K] ? never : K]: T[K] } & { [K in keyof T as null extends T[K] ? K : never]?: T[K] };
10
+ type NullableToOptional<T> = { [K in keyof T as null extends T[K] ? never : K]: T[K]; } & { [K in keyof T as null extends T[K] ? K : never]?: T[K]; };
11
11
  type InferFieldsOutput<F extends Record<string, {
12
12
  _output: any;
13
13
  [key: string]: any;
14
- }>> = DeepWritable<Prettify<NullableToOptional<{ [K in keyof F]: output<F[K]> }>>>;
14
+ }>> = DeepWritable<Prettify<NullableToOptional<{ [K in keyof F]: output<F[K]>; }>>>;
15
15
  type JsonValue = string | number | boolean | null | JsonValue[] | {
16
16
  [key: string]: JsonValue;
17
17
  };
@@ -34,6 +34,6 @@ type JsonValue = string | number | boolean | null | JsonValue[] | {
34
34
  */
35
35
  type JsonCompatible<T> = T extends string | number | boolean | null | undefined ? T : T extends readonly (infer U)[] ? JsonCompatible<U>[] : T extends Function ? never : T extends object ? T extends {
36
36
  toJSON: () => unknown;
37
- } ? never : { [K in keyof T]: JsonCompatible<T[K]> } : never;
37
+ } ? never : { [K in keyof T]: JsonCompatible<T[K]>; } : never;
38
38
  //#endregion
39
39
  export { DeepWritable, InferFieldsOutput, JsonCompatible, JsonValue, NullableToOptional, Prettify, TypeLevelError, output };