@tailor-platform/sdk 2.0.0-next.1 → 2.0.0-next.3

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 (429) hide show
  1. package/CHANGELOG.md +514 -2
  2. package/README.md +9 -9
  3. package/agent-skills/{tailor-sdk → tailor}/SKILL.md +3 -1
  4. package/dist/aigateway-B3oZZE6v.mjs +15 -0
  5. package/dist/aigateway-B3oZZE6v.mjs.map +1 -0
  6. package/dist/application-D2hSK1ZL.mjs +3 -0
  7. package/dist/{application-DqS1yBg3.mjs → application-eHp9jXld.mjs} +1397 -684
  8. package/dist/application-eHp9jXld.mjs.map +1 -0
  9. package/dist/{authconnection-D2MhtTN5.mjs → authconnection-BGQM8FZI.mjs} +2 -2
  10. package/dist/authconnection-BGQM8FZI.mjs.map +1 -0
  11. package/dist/cli/cache/bundle-cache.d.mts +1 -0
  12. package/dist/cli/cache/store.d.mts +1 -0
  13. package/dist/cli/cache/types.d.mts +1 -0
  14. package/dist/cli/commands/api/api-call.d.mts +19 -0
  15. package/dist/cli/commands/api/index.d.mts +3 -0
  16. package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
  17. package/dist/cli/commands/deploy/application.d.mts +1 -0
  18. package/dist/cli/commands/deploy/apply-phases.d.mts +1 -0
  19. package/dist/cli/commands/deploy/auth.d.mts +1 -0
  20. package/dist/cli/commands/deploy/deploy.d.mts +24 -0
  21. package/dist/cli/commands/deploy/executor.d.mts +1 -0
  22. package/dist/cli/commands/deploy/function-registry-types.d.mts +12 -0
  23. package/dist/cli/commands/deploy/function-registry.d.mts +2 -0
  24. package/dist/cli/commands/deploy/idp.d.mts +1 -0
  25. package/dist/cli/commands/deploy/resolver.d.mts +1 -0
  26. package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
  27. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
  28. package/dist/cli/commands/deploy/tailordb/index.d.mts +1 -0
  29. package/dist/cli/commands/deploy/types.d.mts +1 -0
  30. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  31. package/dist/cli/commands/executor/get.d.mts +29 -0
  32. package/dist/cli/commands/executor/jobs.d.mts +123 -0
  33. package/dist/cli/commands/executor/list.d.mts +19 -0
  34. package/dist/cli/commands/executor/transform.d.mts +41 -0
  35. package/dist/cli/commands/executor/trigger.d.mts +41 -0
  36. package/dist/cli/commands/executor/webhook.d.mts +22 -0
  37. package/dist/cli/commands/function/get.d.mts +18 -0
  38. package/dist/cli/commands/function/list.d.mts +22 -0
  39. package/dist/cli/commands/function/transform.d.mts +11 -0
  40. package/dist/cli/commands/generate/options.d.mts +7 -0
  41. package/dist/cli/commands/generate/seed/bundler.d.mts +26 -0
  42. package/dist/cli/commands/generate/service.d.mts +11 -0
  43. package/dist/cli/commands/machineuser/list.d.mts +27 -0
  44. package/dist/cli/commands/machineuser/token.d.mts +22 -0
  45. package/dist/cli/commands/oauth2client/get.d.mts +18 -0
  46. package/dist/cli/commands/oauth2client/list.d.mts +20 -0
  47. package/dist/cli/commands/oauth2client/transform.d.mts +20 -0
  48. package/dist/cli/commands/organization/folder/create.d.mts +18 -0
  49. package/dist/cli/commands/organization/folder/delete.d.mts +16 -0
  50. package/dist/cli/commands/organization/folder/get.d.mts +17 -0
  51. package/dist/cli/commands/organization/folder/list.d.mts +22 -0
  52. package/dist/cli/commands/organization/folder/update.d.mts +18 -0
  53. package/dist/cli/commands/organization/get.d.mts +16 -0
  54. package/dist/cli/commands/organization/list.d.mts +15 -0
  55. package/dist/cli/commands/organization/transform.d.mts +27 -0
  56. package/dist/cli/commands/organization/tree.d.mts +25 -0
  57. package/dist/cli/commands/organization/update.d.mts +17 -0
  58. package/dist/cli/commands/remove.d.mts +16 -0
  59. package/dist/cli/commands/show.d.mts +34 -0
  60. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +28 -0
  61. package/dist/cli/commands/tailordb/migrate/config.d.mts +19 -0
  62. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +223 -0
  63. package/dist/cli/commands/tailordb/migrate/generate.d.mts +17 -0
  64. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +202 -0
  65. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +98 -0
  66. package/dist/cli/commands/tailordb/migrate/types.d.mts +7 -0
  67. package/dist/cli/commands/tailordb/truncate.d.mts +19 -0
  68. package/dist/cli/commands/workflow/executions.d.mts +75 -0
  69. package/dist/cli/commands/workflow/get.d.mts +29 -0
  70. package/dist/cli/commands/workflow/list.d.mts +19 -0
  71. package/dist/cli/commands/workflow/resume.d.mts +23 -0
  72. package/dist/cli/commands/workflow/start.d.mts +61 -0
  73. package/dist/cli/commands/workflow/status.d.mts +5 -0
  74. package/dist/cli/commands/workflow/transform.d.mts +33 -0
  75. package/dist/cli/commands/workflow/wait.d.mts +16 -0
  76. package/dist/cli/commands/workflow/waiter.d.mts +23 -0
  77. package/dist/cli/commands/workspace/app/health.d.mts +18 -0
  78. package/dist/cli/commands/workspace/app/list.d.mts +22 -0
  79. package/dist/cli/commands/workspace/app/transform.d.mts +18 -0
  80. package/dist/cli/commands/workspace/create.d.mts +25 -0
  81. package/dist/cli/commands/workspace/delete.d.mts +15 -0
  82. package/dist/cli/commands/workspace/get.d.mts +17 -0
  83. package/dist/cli/commands/workspace/list.d.mts +17 -0
  84. package/dist/cli/commands/workspace/restore.d.mts +15 -0
  85. package/dist/cli/commands/workspace/transform.d.mts +16 -0
  86. package/dist/cli/commands/workspace/user/invite.d.mts +22 -0
  87. package/dist/cli/commands/workspace/user/list.d.mts +22 -0
  88. package/dist/cli/commands/workspace/user/remove.d.mts +17 -0
  89. package/dist/cli/commands/workspace/user/transform.d.mts +8 -0
  90. package/dist/cli/commands/workspace/user/update.d.mts +22 -0
  91. package/dist/cli/erd-viewer-assets/app.js +279 -36
  92. package/dist/cli/erd-viewer-assets/index.html +4 -0
  93. package/dist/cli/erd-viewer-assets/styles.css +252 -5
  94. package/dist/cli/index.d.mts +18 -3
  95. package/dist/cli/index.mjs +2193 -519
  96. package/dist/cli/index.mjs.map +1 -1
  97. package/dist/cli/lib.d.mts +81 -21048
  98. package/dist/cli/lib.mjs +8 -12
  99. package/dist/cli/lib.mjs.map +1 -1
  100. package/dist/cli/query/index.d.mts +35 -0
  101. package/dist/cli/services/application.d.mts +1 -0
  102. package/dist/cli/services/auth/service.d.mts +1 -0
  103. package/dist/cli/services/executor/service.d.mts +1 -0
  104. package/dist/cli/services/http-adapter/bundler.d.mts +1 -0
  105. package/dist/cli/services/http-adapter/service.d.mts +1 -0
  106. package/dist/cli/services/resolver/service.d.mts +1 -0
  107. package/dist/cli/services/tailordb/service.d.mts +1 -0
  108. package/dist/cli/services/workflow/bundler.d.mts +1 -0
  109. package/dist/cli/services/workflow/service.d.mts +1 -0
  110. package/dist/cli/shared/args.d.mts +13 -0
  111. package/dist/cli/shared/client.d.mts +1273 -0
  112. package/dist/cli/shared/config-loader.d.mts +26 -0
  113. package/dist/cli/shared/context.d.mts +28 -0
  114. package/dist/cli/shared/script-executor.d.mts +75 -0
  115. package/dist/cli/shared/seed-chunker.d.mts +46 -0
  116. package/dist/cli/shared/trigger-context.d.mts +1 -0
  117. package/dist/cli/shared/type-generator.d.mts +20 -0
  118. package/dist/cli/ts-hook.d.mts +4 -0
  119. package/dist/cli/ts-hook.mjs +303 -0
  120. package/dist/completion/zsh-worker.zsh +1577 -1098
  121. package/dist/configure/config/index.d.mts +21 -0
  122. package/dist/configure/config/types.d.mts +103 -0
  123. package/dist/configure/index.d.mts +122 -8
  124. package/dist/configure/index.mjs +74 -34
  125. package/dist/configure/index.mjs.map +1 -1
  126. package/dist/configure/services/aigateway/index.d.mts +17 -0
  127. package/dist/configure/services/aigateway/types.d.mts +11 -0
  128. package/dist/configure/services/auth/index.d.mts +34 -0
  129. package/dist/configure/services/auth/types.d.mts +172 -0
  130. package/dist/configure/services/executor/executor.d.mts +81 -0
  131. package/dist/configure/services/executor/index.d.mts +8 -0
  132. package/dist/configure/services/executor/operation.d.mts +45 -0
  133. package/dist/configure/services/executor/trigger/event.d.mts +272 -0
  134. package/dist/configure/services/executor/trigger/index.d.mts +8 -0
  135. package/dist/configure/services/executor/trigger/schedule.d.mts +25 -0
  136. package/dist/configure/services/executor/trigger/webhook.d.mts +44 -0
  137. package/dist/configure/services/executor/types.d.mts +2 -0
  138. package/dist/configure/services/http-adapter/http-adapter.d.mts +125 -0
  139. package/dist/configure/services/http-adapter/index.d.mts +2 -0
  140. package/dist/configure/services/idp/index.d.mts +64 -0
  141. package/dist/configure/services/idp/permission.d.mts +80 -0
  142. package/dist/configure/services/idp/types.d.mts +20 -0
  143. package/dist/configure/services/index.d.mts +32 -0
  144. package/dist/configure/services/resolver/index.d.mts +5 -0
  145. package/dist/configure/services/resolver/resolver.d.mts +75 -0
  146. package/dist/configure/services/resolver/types.d.mts +6 -0
  147. package/dist/configure/services/secrets/index.d.mts +38 -0
  148. package/dist/configure/services/secrets/types.d.mts +11 -0
  149. package/dist/configure/services/staticwebsite/index.d.mts +19 -0
  150. package/dist/configure/services/staticwebsite/types.d.mts +11 -0
  151. package/dist/configure/services/tailordb/index.d.mts +4 -0
  152. package/dist/configure/services/tailordb/permission.d.mts +119 -0
  153. package/dist/configure/services/tailordb/schema.d.mts +456 -0
  154. package/dist/configure/services/tailordb/types.d.mts +149 -0
  155. package/dist/configure/services/workflow/index.d.mts +6 -0
  156. package/dist/configure/services/workflow/job.d.mts +79 -0
  157. package/dist/configure/services/workflow/types.d.mts +2 -0
  158. package/dist/configure/services/workflow/wait-point.d.mts +73 -0
  159. package/dist/configure/services/workflow/workflow.d.mts +54 -0
  160. package/dist/configure/types/aigateway-name.d.mts +12 -0
  161. package/dist/configure/types/connection-name.d.mts +12 -0
  162. package/dist/configure/types/field-runtime.d.mts +17 -0
  163. package/dist/configure/types/field.d.mts +9 -0
  164. package/dist/configure/types/field.types.d.mts +109 -0
  165. package/dist/configure/types/idp-name.d.mts +12 -0
  166. package/dist/configure/types/index.d.mts +4 -0
  167. package/dist/configure/types/machine-user.d.mts +2 -0
  168. package/dist/configure/types/type.d.mts +82 -0
  169. package/dist/context-Bd266-ru.mjs.map +1 -1
  170. package/dist/{crashreport-BsjAkFWw.mjs → crashreport-Cg-pqRJV.mjs} +9 -11
  171. package/dist/{crashreport-BsjAkFWw.mjs.map → crashreport-Cg-pqRJV.mjs.map} +1 -1
  172. package/dist/{crashreport-pr6Rhvza.mjs → crashreport-D3RjuSYb.mjs} +1 -1
  173. package/dist/enum-constants-j9QBF0cB.mjs.map +1 -1
  174. package/dist/{errors-Dtf2WPaW.mjs → errors-118wUDRr.mjs} +2 -2
  175. package/dist/errors-118wUDRr.mjs.map +1 -0
  176. package/dist/field-runtime-CAnh_oow.mjs +183 -0
  177. package/dist/field-runtime-CAnh_oow.mjs.map +1 -0
  178. package/dist/{file-_oUZo76X.mjs → file-BbdFGdMV.mjs} +2 -10
  179. package/dist/file-BbdFGdMV.mjs.map +1 -0
  180. package/dist/{file-utils-DcyIPFQh.mjs → file-utils-CYZnO1pX.mjs} +5 -5
  181. package/dist/file-utils-CYZnO1pX.mjs.map +1 -0
  182. package/dist/{globals-Crz8o65k.mjs → globals-DhwZj0RB.mjs} +5 -47
  183. package/dist/globals-DhwZj0RB.mjs.map +1 -0
  184. package/dist/{idp-BDbK5gjm.mjs → idp-Bx25ZBdN.mjs} +9 -1
  185. package/dist/idp-Bx25ZBdN.mjs.map +1 -0
  186. package/dist/{interceptor-D-q1rvRl.mjs → interceptor-e33JtsC-.mjs} +2 -2
  187. package/dist/interceptor-e33JtsC-.mjs.map +1 -0
  188. package/dist/kysely/index.d.mts +2 -3
  189. package/dist/{kysely-type-DR8uzZTA.mjs → kysely-type-5eAChaHO.mjs} +4 -2
  190. package/dist/kysely-type-5eAChaHO.mjs.map +1 -0
  191. package/dist/{logger-CxF-Ex5d.mjs → logger-BEiZZ3qT.mjs} +3 -3
  192. package/dist/{logger-CxF-Ex5d.mjs.map → logger-BEiZZ3qT.mjs.map} +1 -1
  193. package/dist/parser/service/auth/index.d.mts +1 -0
  194. package/dist/parser/service/auth/schema.d.mts +1 -0
  195. package/dist/parser/service/http-adapter/index.d.mts +1 -0
  196. package/dist/parser/service/http-adapter/schema.d.mts +1 -0
  197. package/dist/parser/service/idp/types.d.mts +4 -0
  198. package/dist/parser/service/tailordb/types.d.mts +126 -0
  199. package/dist/platform-serialize-RoRtBS0v.mjs +46 -0
  200. package/dist/platform-serialize-RoRtBS0v.mjs.map +1 -0
  201. package/dist/plugin/builtin/enum-constants/index.d.mts +16 -1
  202. package/dist/plugin/builtin/file-utils/index.d.mts +16 -1
  203. package/dist/plugin/builtin/file-utils/index.mjs +1 -1
  204. package/dist/plugin/builtin/kysely-type/index.d.mts +16 -1
  205. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  206. package/dist/plugin/builtin/seed/index.d.mts +45 -1
  207. package/dist/plugin/builtin/seed/index.mjs +1 -1
  208. package/dist/plugin/get-generated-type.d.mts +17 -0
  209. package/dist/plugin/index.d.mts +3 -117
  210. package/dist/plugin/index.mjs +1 -1
  211. package/dist/plugin/index.mjs.map +1 -1
  212. package/dist/plugin/manager.d.mts +1 -0
  213. package/dist/plugin/types.d.mts +243 -0
  214. package/dist/plugin/with-context.d.mts +102 -0
  215. package/dist/{runtime-n9NCkjee.mjs → register-ts-hook-ZpBacA07.mjs} +4374 -2446
  216. package/dist/register-ts-hook-ZpBacA07.mjs.map +1 -0
  217. package/dist/{registry-DdsYlL_P.mjs → registry-DH4m7eYo.mjs} +4 -2
  218. package/dist/registry-DH4m7eYo.mjs.map +1 -0
  219. package/dist/{repl-editor-DmGr9zMw.mjs → repl-editor-BCozyiNq.mjs} +6 -5
  220. package/dist/{repl-editor-DmGr9zMw.mjs.map → repl-editor-BCozyiNq.mjs.map} +1 -1
  221. package/dist/runtime/aigateway.d.mts +35 -0
  222. package/dist/runtime/aigateway.mjs +3 -0
  223. package/dist/runtime/authconnection.d.mts +31 -2
  224. package/dist/runtime/authconnection.mjs +1 -1
  225. package/dist/runtime/context.d.mts +46 -2
  226. package/dist/runtime/file.d.mts +210 -2
  227. package/dist/runtime/file.mjs +2 -2
  228. package/dist/runtime/globals.d.mts +31 -19
  229. package/dist/runtime/iconv.d.mts +121 -2
  230. package/dist/runtime/idp.d.mts +186 -2
  231. package/dist/runtime/idp.mjs +1 -1
  232. package/dist/runtime/index.d.mts +47 -9
  233. package/dist/runtime/index.mjs +6 -5
  234. package/dist/runtime/secretmanager.d.mts +54 -2
  235. package/dist/runtime/types.d.mts +20 -0
  236. package/dist/runtime/workflow.d.mts +112 -2
  237. package/dist/runtime/workflow.mjs +2 -2
  238. package/dist/{schema-BhkpP5Hw.mjs → schema-89dYxNC2.mjs} +25 -187
  239. package/dist/schema-89dYxNC2.mjs.map +1 -0
  240. package/dist/{secret-file-DBqZhjFQ.mjs → secret-file-aoNXJmKa.mjs} +28 -3
  241. package/dist/secret-file-aoNXJmKa.mjs.map +1 -0
  242. package/dist/secretmanager-Bd45j7an.mjs +98 -0
  243. package/dist/secretmanager-Bd45j7an.mjs.map +1 -0
  244. package/dist/seed/index.d.mts +1 -2
  245. package/dist/{seed-jf3008-h.mjs → seed-CRSQJI_z.mjs} +16 -6
  246. package/dist/seed-CRSQJI_z.mjs.map +1 -0
  247. package/dist/service-CkIwEctX.mjs +3 -0
  248. package/dist/{service-DU1mVzri.mjs → service-DeZeYa06.mjs} +3 -3
  249. package/dist/{service-DU1mVzri.mjs.map → service-DeZeYa06.mjs.map} +1 -1
  250. package/dist/service-ufH7sS8o.mjs +797 -0
  251. package/dist/service-ufH7sS8o.mjs.map +1 -0
  252. package/dist/{client-z_oHGVNy.mjs → service_pb-CIrhGwHk.mjs} +38 -466
  253. package/dist/service_pb-CIrhGwHk.mjs.map +1 -0
  254. package/dist/service_pb-DjwIn4jO.mjs +3 -0
  255. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +204 -0
  256. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +58 -0
  257. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +316 -0
  258. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +161 -0
  259. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +2070 -0
  260. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +861 -0
  261. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +112 -0
  262. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +69 -0
  263. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +439 -0
  264. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +564 -0
  265. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +145 -0
  266. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +451 -0
  267. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +192 -0
  268. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +50 -0
  269. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +407 -0
  270. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +430 -0
  271. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +73 -0
  272. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +17 -0
  273. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +309 -0
  274. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +591 -0
  275. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +330 -0
  276. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +113 -0
  277. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +346 -0
  278. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +54 -0
  279. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +3576 -0
  280. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +187 -0
  281. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +29 -0
  282. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +429 -0
  283. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +90 -0
  284. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +684 -0
  285. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +797 -0
  286. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +330 -0
  287. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +183 -0
  288. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +842 -0
  289. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +276 -0
  290. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +2015 -0
  291. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +483 -0
  292. package/dist/{telemetry-CdqJEzkj.mjs → telemetry-BRVdwh14.mjs} +3 -3
  293. package/dist/telemetry-BRVdwh14.mjs.map +1 -0
  294. package/dist/telemetry-CkbkeJxl.mjs +3 -0
  295. package/dist/test-env-key-D7UkZp99.mjs +75 -0
  296. package/dist/test-env-key-D7UkZp99.mjs.map +1 -0
  297. package/dist/types/aigateway.generated.d.mts +9 -0
  298. package/dist/types/app-config.generated.d.mts +4 -0
  299. package/dist/types/auth-connection.generated.d.mts +20 -0
  300. package/dist/types/auth.generated.d.mts +145 -0
  301. package/dist/types/executor.generated.d.mts +177 -0
  302. package/dist/types/helpers.d.mts +39 -0
  303. package/dist/types/http-adapter.generated.d.mts +17 -0
  304. package/dist/{workflow.generated-DtQwEo-x.d.mts → types/idp.generated.d.mts} +98 -185
  305. package/dist/types/resolver.generated.d.mts +39 -0
  306. package/dist/types/secrets.generated.d.mts +14 -0
  307. package/dist/types/staticwebsite.generated.d.mts +10 -0
  308. package/dist/types/tailordb.generated.d.mts +428 -0
  309. package/dist/types/workflow.generated.d.mts +12 -0
  310. package/dist/types-C-lQ4se3.mjs +4 -0
  311. package/dist/types-CXF2OYdR.mjs +199 -0
  312. package/dist/types-CXF2OYdR.mjs.map +1 -0
  313. package/dist/utils/test/index.d.mts +5 -98
  314. package/dist/utils/test/index.mjs +4 -13
  315. package/dist/utils/test/index.mjs.map +1 -1
  316. package/dist/utils/test/mock.d.mts +87 -0
  317. package/dist/vitest/environment.d.mts +1 -2
  318. package/dist/vitest/environment.mjs +2 -2
  319. package/dist/vitest/environment.mjs.map +1 -1
  320. package/dist/vitest/index.d.mts +12 -428
  321. package/dist/vitest/index.mjs +741 -10
  322. package/dist/vitest/index.mjs.map +1 -1
  323. package/dist/vitest/mock-kysely.d.mts +62 -0
  324. package/dist/vitest/mock.d.mts +9 -0
  325. package/dist/vitest/mocks/aigateway.d.mts +30 -0
  326. package/dist/vitest/mocks/authconnection.d.mts +28 -0
  327. package/dist/vitest/mocks/file.d.mts +41 -0
  328. package/dist/vitest/mocks/iconv.d.mts +27 -0
  329. package/dist/vitest/mocks/idp.d.mts +44 -0
  330. package/dist/vitest/mocks/secretmanager.d.mts +33 -0
  331. package/dist/vitest/mocks/tailordb.d.mts +71 -0
  332. package/dist/vitest/mocks/workflow.d.mts +115 -0
  333. package/dist/vitest/setup.d.mts +1 -2
  334. package/dist/vitest/setup.mjs +2 -2
  335. package/dist/vitest/workflow-local.d.mts +40 -0
  336. package/dist/{workflow-DgemCAz3.mjs → workflow-Bo59B75H.mjs} +16 -4
  337. package/dist/workflow-Bo59B75H.mjs.map +1 -0
  338. package/docs/cli/application.md +98 -250
  339. package/docs/cli/auth.md +48 -292
  340. package/docs/cli/completion.md +1 -25
  341. package/docs/cli/crashreport.md +3 -61
  342. package/docs/cli/executor.md +72 -183
  343. package/docs/cli/function.md +14 -130
  344. package/docs/cli/organization.md +11 -221
  345. package/docs/cli/plugin.md +29 -0
  346. package/docs/cli/query.md +2 -22
  347. package/docs/cli/secret.md +71 -251
  348. package/docs/cli/setup.md +138 -40
  349. package/docs/cli/skills.md +50 -39
  350. package/docs/cli/staticwebsite.md +32 -180
  351. package/docs/cli/tailordb.md +97 -323
  352. package/docs/cli/upgrade.md +2 -22
  353. package/docs/cli/user.md +78 -247
  354. package/docs/cli/workflow.md +150 -172
  355. package/docs/cli/workspace.md +165 -538
  356. package/docs/cli-reference.md +184 -78
  357. package/docs/configuration.md +10 -4
  358. package/docs/github-actions.md +64 -24
  359. package/docs/migration/v2.md +735 -0
  360. package/docs/multi-environment.md +29 -7
  361. package/docs/plugin/index.md +6 -6
  362. package/docs/quickstart.md +8 -7
  363. package/docs/runtime.md +6 -2
  364. package/docs/services/aigateway.md +18 -2
  365. package/docs/services/auth.md +44 -52
  366. package/docs/services/executor.md +3 -3
  367. package/docs/services/http-adapter.md +16 -1
  368. package/docs/services/idp.md +55 -2
  369. package/docs/services/resolver.md +7 -7
  370. package/docs/services/secret.md +11 -11
  371. package/docs/services/staticwebsite.md +8 -2
  372. package/docs/services/tailordb-migration.md +24 -22
  373. package/docs/services/tailordb.md +39 -14
  374. package/docs/services/workflow.md +18 -18
  375. package/docs/testing.md +108 -50
  376. package/package.json +46 -35
  377. package/postinstall.mjs +4 -6
  378. package/dist/application-DB2r36Et.mjs +0 -3
  379. package/dist/application-DqS1yBg3.mjs.map +0 -1
  380. package/dist/authconnection-D2MhtTN5.mjs.map +0 -1
  381. package/dist/authconnection-DvUQAjQS.d.mts +0 -39
  382. package/dist/client-Dbohmtkv.mjs +0 -3
  383. package/dist/client-z_oHGVNy.mjs.map +0 -1
  384. package/dist/context-BuuIb8CC.d.mts +0 -68
  385. package/dist/errors-Dtf2WPaW.mjs.map +0 -1
  386. package/dist/field-DOsJCPFa.mjs +0 -22
  387. package/dist/field-DOsJCPFa.mjs.map +0 -1
  388. package/dist/file-BB8Vs9O_.d.mts +0 -250
  389. package/dist/file-_oUZo76X.mjs.map +0 -1
  390. package/dist/file-utils-DcyIPFQh.mjs.map +0 -1
  391. package/dist/globals-Crz8o65k.mjs.map +0 -1
  392. package/dist/http-adapter.generated-WgMnb7Sb.d.mts +0 -580
  393. package/dist/iconv-Co-TOPuH.d.mts +0 -122
  394. package/dist/idp-BDbK5gjm.mjs.map +0 -1
  395. package/dist/idp-DrhVrLmV.d.mts +0 -160
  396. package/dist/index-5vPyRu1y.d.mts +0 -18
  397. package/dist/index-B7AKc18V.d.mts +0 -47
  398. package/dist/index-BlpzXncY.d.mts +0 -1016
  399. package/dist/index-CK7u9isy.d.mts +0 -46
  400. package/dist/index-CNYe5lnW.d.mts +0 -18
  401. package/dist/index-DjUdWlzf.d.mts +0 -18
  402. package/dist/index-ZePLwxw7.d.mts +0 -208
  403. package/dist/interceptor-D-q1rvRl.mjs.map +0 -1
  404. package/dist/job-fuc3j1Ma.mjs +0 -53
  405. package/dist/job-fuc3j1Ma.mjs.map +0 -1
  406. package/dist/kysely-type-DR8uzZTA.mjs.map +0 -1
  407. package/dist/mock-BjFj5o1I.mjs +0 -804
  408. package/dist/mock-BjFj5o1I.mjs.map +0 -1
  409. package/dist/registry-DdsYlL_P.mjs.map +0 -1
  410. package/dist/runtime-n9NCkjee.mjs.map +0 -1
  411. package/dist/schema-BhkpP5Hw.mjs.map +0 -1
  412. package/dist/secret-file-DBqZhjFQ.mjs.map +0 -1
  413. package/dist/secretmanager-B3n4KHfm.d.mts +0 -55
  414. package/dist/seed-jf3008-h.mjs.map +0 -1
  415. package/dist/service-CCL8ruDf.mjs +0 -459
  416. package/dist/service-CCL8ruDf.mjs.map +0 -1
  417. package/dist/service-D6yonf2I.mjs +0 -3
  418. package/dist/telemetry-CdqJEzkj.mjs.map +0 -1
  419. package/dist/telemetry-ClwW5ohF.mjs +0 -3
  420. package/dist/test-env-key-D9kM6ETE.mjs +0 -49
  421. package/dist/test-env-key-D9kM6ETE.mjs.map +0 -1
  422. package/dist/types-B2RpYyA_.mjs +0 -371
  423. package/dist/types-B2RpYyA_.mjs.map +0 -1
  424. package/dist/types-ClhIrW_C.mjs +0 -4
  425. package/dist/types-DCUhgpyI.d.mts +0 -784
  426. package/dist/types-DhO_VEZd.d.mts +0 -574
  427. package/dist/types-DwDgacni.d.mts +0 -338
  428. package/dist/workflow-BbKvGLQg.d.mts +0 -96
  429. package/dist/workflow-DgemCAz3.mjs.map +0 -1
@@ -0,0 +1,797 @@
1
+ import { n as isSdkBranded } from "./brand-Eo4pLXPJ.mjs";
2
+ import { n as logger, r as styles } from "./logger-BEiZZ3qT.mjs";
3
+ import * as path from "pathe";
4
+ import { z } from "zod";
5
+ import * as fs from "node:fs";
6
+ import { pathToFileURL } from "node:url";
7
+ import * as inflection from "inflection";
8
+
9
+ //#region src/parser/service/common.ts
10
+ const functionSchema = z.custom((val) => typeof val === "function");
11
+
12
+ //#endregion
13
+ //#region src/cli/services/file-loader.ts
14
+ const DEFAULT_IGNORE_PATTERNS = ["**/*.test.ts", "**/*.spec.ts"];
15
+ /**
16
+ * Load files matching the given patterns, excluding files that match ignore patterns.
17
+ * By default, test files (*.test.ts, *.spec.ts) are excluded unless ignores is explicitly specified.
18
+ * @param config - Configuration with files patterns and optional ignores patterns
19
+ * @returns Array of absolute file paths
20
+ */
21
+ function loadFilesWithIgnores(config) {
22
+ const ignorePatterns = config.ignores ?? DEFAULT_IGNORE_PATTERNS;
23
+ const ignoreFiles = /* @__PURE__ */ new Set();
24
+ for (const ignorePattern of ignorePatterns) {
25
+ const absoluteIgnorePattern = path.resolve(process.cwd(), ignorePattern);
26
+ try {
27
+ fs.globSync(absoluteIgnorePattern).forEach((file) => ignoreFiles.add(file));
28
+ } catch (error) {
29
+ logger.warn(`Failed to glob ignore pattern "${ignorePattern}": ${String(error)}`);
30
+ }
31
+ }
32
+ const files = [];
33
+ for (const pattern of config.files) {
34
+ const absolutePattern = path.resolve(process.cwd(), pattern);
35
+ try {
36
+ const filteredFiles = fs.globSync(absolutePattern).filter((file) => !ignoreFiles.has(file));
37
+ files.push(...filteredFiles);
38
+ } catch (error) {
39
+ logger.warn(`Failed to glob pattern "${pattern}": ${String(error)}`);
40
+ }
41
+ }
42
+ return files;
43
+ }
44
+
45
+ //#endregion
46
+ //#region src/parser/service/tailordb/relation.ts
47
+ const relationTypes = {
48
+ "1-1": "1-1",
49
+ oneToOne: "1-1",
50
+ "n-1": "n-1",
51
+ manyToOne: "n-1",
52
+ "N-1": "n-1",
53
+ keyOnly: "keyOnly"
54
+ };
55
+ const relationTypesKeys = Object.keys(relationTypes);
56
+ function fieldRef(context) {
57
+ return `Field "${context.fieldName}" on type "${context.typeName}"`;
58
+ }
59
+ /**
60
+ * Validate relation configuration.
61
+ * @param rawRelation - Raw relation configuration from TailorDB type definition
62
+ * @param context - Context information for the relation (type name, field name, all type names)
63
+ */
64
+ function validateRelationConfig(rawRelation, context) {
65
+ if (!rawRelation.type) throw new Error(`${fieldRef(context)} has a relation but is missing the required 'type' property. Valid values: ${relationTypesKeys.join(", ")}.`);
66
+ if (!(rawRelation.type in relationTypes)) throw new Error(`${fieldRef(context)} has invalid relation type '${rawRelation.type}'. Valid values: ${relationTypesKeys.join(", ")}.`);
67
+ if (rawRelation.toward.type !== "self" && !context.allTypeNames.has(rawRelation.toward.type)) throw new Error(`${fieldRef(context)} references unknown type "${rawRelation.toward.type}".`);
68
+ }
69
+ /**
70
+ * Process raw relation config and compute derived metadata values.
71
+ * @param rawRelation - Raw relation configuration
72
+ * @param context - Context information for the relation
73
+ * @param isArrayField - Whether the target field is an array field
74
+ * @returns Computed relation metadata to apply to field config
75
+ */
76
+ function processRelationMetadata(rawRelation, context, isArrayField = false) {
77
+ const isUnique = relationTypes[rawRelation.type] === "1-1";
78
+ const key = rawRelation.toward.key ?? "id";
79
+ const targetTypeName = rawRelation.toward.type === "self" ? context.typeName : rawRelation.toward.type;
80
+ const shouldSetIndex = !isArrayField;
81
+ const shouldSetUnique = !isArrayField && isUnique;
82
+ return {
83
+ index: shouldSetIndex,
84
+ foreignKey: true,
85
+ relationType: rawRelation.type,
86
+ unique: shouldSetUnique,
87
+ foreignKeyType: targetTypeName,
88
+ foreignKeyField: key
89
+ };
90
+ }
91
+ /**
92
+ * Build relation info for creating forward/backward relationships.
93
+ * Returns undefined for keyOnly relations.
94
+ * @param rawRelation - Raw relation configuration
95
+ * @param context - Context information for the relation
96
+ * @returns Relation information or undefined for keyOnly relations
97
+ */
98
+ function buildRelationInfo(rawRelation, context) {
99
+ if (rawRelation.type === "keyOnly") return;
100
+ const isUnique = relationTypes[rawRelation.type] === "1-1";
101
+ const key = rawRelation.toward.key ?? "id";
102
+ const targetTypeName = rawRelation.toward.type === "self" ? context.typeName : rawRelation.toward.type;
103
+ let forwardName = rawRelation.toward.as;
104
+ if (!forwardName) if (rawRelation.toward.type === "self") forwardName = context.fieldName.replace(/(ID|Id|id)$/u, "");
105
+ else forwardName = inflection.camelize(targetTypeName, true);
106
+ return {
107
+ targetType: targetTypeName,
108
+ forwardName,
109
+ backwardName: rawRelation.backward ?? "",
110
+ key,
111
+ unique: isUnique
112
+ };
113
+ }
114
+ /**
115
+ * Apply processed relation metadata to field config.
116
+ * @param fieldConfig - Original operator field configuration
117
+ * @param metadata - Processed relation metadata to apply
118
+ * @returns Field config with relation metadata applied
119
+ */
120
+ function applyRelationMetadataToFieldConfig(fieldConfig, metadata) {
121
+ return {
122
+ ...fieldConfig,
123
+ index: metadata.index,
124
+ foreignKey: metadata.foreignKey,
125
+ unique: metadata.unique,
126
+ foreignKeyType: metadata.foreignKeyType,
127
+ foreignKeyField: metadata.foreignKeyField
128
+ };
129
+ }
130
+
131
+ //#endregion
132
+ //#region src/parser/service/tailordb/schema.ts
133
+ /**
134
+ * Normalize GqlOperationsConfig (alias or object) to GqlOperations object.
135
+ * "query" alias expands to read-only mode: { create: false, update: false, delete: false, read: true }
136
+ * @param config - The config to normalize
137
+ * @returns The normalized GqlOperations object
138
+ */
139
+ function normalizeGqlOperations(config) {
140
+ if (config === "query") return {
141
+ create: false,
142
+ update: false,
143
+ delete: false,
144
+ read: true
145
+ };
146
+ return config;
147
+ }
148
+ /**
149
+ * Zod schema for GqlOperations configuration with normalization transform.
150
+ * Accepts "query" alias or detailed object, normalizes to GqlOperations object.
151
+ */
152
+ const GqlOperationsSchema = z.union([z.literal("query"), z.strictObject({
153
+ create: z.boolean().optional().describe("Enable create mutation (default: true)"),
154
+ update: z.boolean().optional().describe("Enable update mutation (default: true)"),
155
+ delete: z.boolean().optional().describe("Enable delete mutation (default: true)"),
156
+ read: z.boolean().optional().describe("Enable read queries - get, list, aggregation (default: true)")
157
+ })]).describe("Configuration for GraphQL operations on a TailorDB type.\nAll operations are enabled by default (undefined or true = enabled, false = disabled).").transform((val) => normalizeGqlOperations(val));
158
+ const TailorFieldTypeSchema$1 = z.enum([
159
+ "uuid",
160
+ "string",
161
+ "boolean",
162
+ "integer",
163
+ "float",
164
+ "decimal",
165
+ "enum",
166
+ "date",
167
+ "datetime",
168
+ "time",
169
+ "nested"
170
+ ]);
171
+ const AllowedValueSchema$1 = z.strictObject({
172
+ value: z.string(),
173
+ description: z.string().optional()
174
+ });
175
+ const DBFieldMetadataSchema = z.strictObject({
176
+ required: z.boolean().optional().describe("Whether the field is required"),
177
+ array: z.boolean().optional().describe("Whether the field is an array"),
178
+ description: z.string().optional().describe("Field description"),
179
+ typeName: z.string().optional().describe("Type name for nested or enum fields"),
180
+ allowedValues: z.array(AllowedValueSchema$1).optional().describe("Allowed values for enum fields"),
181
+ index: z.boolean().optional().describe("Whether the field is indexed for faster queries"),
182
+ unique: z.boolean().optional().describe("Whether the field value must be unique"),
183
+ vector: z.boolean().optional().describe("Whether the field is a vector field for similarity search"),
184
+ foreignKey: z.boolean().optional().describe("Whether the field is a foreign key"),
185
+ foreignKeyType: z.string().optional().describe("Target type name for foreign key relations"),
186
+ foreignKeyField: z.string().optional().describe("Target field name for foreign key relations"),
187
+ hooks: z.strictObject({
188
+ create: functionSchema.optional().describe("Hook function called on record creation"),
189
+ update: functionSchema.optional().describe("Hook function called on record update")
190
+ }).optional().describe("Lifecycle hooks for the field"),
191
+ validate: z.array(z.union([functionSchema, z.tuple([functionSchema, z.string()])])).optional().describe("Validation functions for the field"),
192
+ serial: z.strictObject({
193
+ start: z.number().describe("Starting value for the serial sequence"),
194
+ maxValue: z.number().optional().describe("Maximum value for the serial sequence"),
195
+ format: z.string().optional().describe("Format string for serial value (string type only)")
196
+ }).optional().describe("Serial (auto-increment) configuration"),
197
+ scale: z.number().int().min(0).max(12).optional().describe("Decimal scale (number of digits after decimal point, 0-12)")
198
+ });
199
+ const RelationTypeSchema = z.enum(relationTypesKeys);
200
+ const RawRelationConfigSchema = z.strictObject({
201
+ type: RelationTypeSchema.describe("Relation cardinality type"),
202
+ toward: z.strictObject({
203
+ type: z.string().describe("Target type name, or 'self' for self-relations"),
204
+ as: z.string().optional().describe("Custom forward relation name"),
205
+ key: z.string().optional().describe("Target field to join on (default: 'id')")
206
+ }),
207
+ backward: z.string().optional().describe("Backward relation name on the target type")
208
+ });
209
+ const TailorDBFieldSchema = z.lazy(() => z.object({
210
+ type: TailorFieldTypeSchema$1,
211
+ fields: z.record(z.string(), TailorDBFieldSchema).optional(),
212
+ metadata: DBFieldMetadataSchema,
213
+ rawRelation: RawRelationConfigSchema.optional()
214
+ }));
215
+ /**
216
+ * Schema for TailorDB type settings.
217
+ * Normalizes gqlOperations from alias ("query") to object format.
218
+ */
219
+ const TailorDBTypeSettingsSchema = z.strictObject({
220
+ pluralForm: z.string().optional().describe("Custom plural form of the type name for GraphQL"),
221
+ aggregation: z.boolean().optional().describe("Enable aggregation queries for this type"),
222
+ bulkUpsert: z.boolean().optional().describe("Enable bulk upsert mutation for this type"),
223
+ gqlOperations: GqlOperationsSchema.optional().describe("Configure GraphQL operations for this type. Use \"query\" for read-only mode, or an object for granular control."),
224
+ publishEvents: z.boolean().optional().describe("Enable publishing events for this type.\nWhen enabled, record creation/update/deletion events are published.\nIf not specified, this is automatically set to true when an executor uses this type\nwith recordCreated/recordUpdated/recordDeleted triggers. If explicitly set to false\nwhile an executor uses this type, an error will be thrown during apply.")
225
+ });
226
+ const GQL_PERMISSION_INVALID_OPERAND_MESSAGE = "operand is not supported in gqlPermission. Use permission() for record-level conditions.";
227
+ const GqlPermissionOperandSchema = z.union([
228
+ z.strictObject({ user: z.string() }),
229
+ z.string(),
230
+ z.boolean(),
231
+ z.array(z.string()),
232
+ z.array(z.boolean())
233
+ ], { error: (issue) => {
234
+ if (typeof issue.input === "object" && issue.input !== null) {
235
+ const keys = Object.keys(issue.input);
236
+ if (keys.length === 1) return `"${keys[0]}" ${GQL_PERMISSION_INVALID_OPERAND_MESSAGE}`;
237
+ return "Operand object must have exactly 1 key";
238
+ }
239
+ return "Invalid operand in gqlPermission";
240
+ } });
241
+ const RecordPermissionOperandSchema = z.union([
242
+ GqlPermissionOperandSchema,
243
+ z.strictObject({ record: z.string() }),
244
+ z.strictObject({ oldRecord: z.string() }),
245
+ z.strictObject({ newRecord: z.string() })
246
+ ]);
247
+ const PermissionOperatorSchema = z.enum([
248
+ "=",
249
+ "!=",
250
+ "in",
251
+ "not in",
252
+ "hasAny",
253
+ "not hasAny"
254
+ ]);
255
+ const RecordPermissionConditionSchema = z.tuple([
256
+ RecordPermissionOperandSchema,
257
+ PermissionOperatorSchema,
258
+ RecordPermissionOperandSchema
259
+ ]).readonly();
260
+ const GqlPermissionConditionSchema = z.tuple([
261
+ GqlPermissionOperandSchema,
262
+ PermissionOperatorSchema,
263
+ GqlPermissionOperandSchema
264
+ ]).readonly();
265
+ const ActionPermissionSchema = z.union([
266
+ z.strictObject({
267
+ conditions: z.union([RecordPermissionConditionSchema, z.array(RecordPermissionConditionSchema).readonly()]),
268
+ description: z.string().optional(),
269
+ permit: z.boolean().optional()
270
+ }),
271
+ z.tuple([
272
+ RecordPermissionOperandSchema,
273
+ PermissionOperatorSchema,
274
+ RecordPermissionOperandSchema
275
+ ]).readonly(),
276
+ z.tuple([
277
+ RecordPermissionOperandSchema,
278
+ PermissionOperatorSchema,
279
+ RecordPermissionOperandSchema,
280
+ z.boolean()
281
+ ]).readonly(),
282
+ z.array(z.union([RecordPermissionConditionSchema, z.boolean()])).refine((arr) => {
283
+ const boolIndex = arr.findIndex((item) => typeof item === "boolean");
284
+ return boolIndex === -1 || boolIndex === arr.length - 1;
285
+ }, { message: "Boolean permit flag must only appear at the end" }).readonly()
286
+ ]);
287
+ const GqlPermissionActionSchema = z.enum([
288
+ "read",
289
+ "create",
290
+ "update",
291
+ "delete",
292
+ "aggregate",
293
+ "bulkUpsert"
294
+ ]);
295
+ const GqlPermissionPolicySchema = z.strictObject({
296
+ conditions: z.array(GqlPermissionConditionSchema).readonly(),
297
+ actions: z.union([z.literal("all"), z.array(GqlPermissionActionSchema).readonly()]),
298
+ permit: z.boolean().optional(),
299
+ description: z.string().optional()
300
+ });
301
+ const RawPermissionsSchema = z.strictObject({
302
+ record: z.strictObject({
303
+ create: z.array(ActionPermissionSchema).readonly(),
304
+ read: z.array(ActionPermissionSchema).readonly(),
305
+ update: z.array(ActionPermissionSchema).readonly(),
306
+ delete: z.array(ActionPermissionSchema).readonly()
307
+ }).optional(),
308
+ gql: z.array(GqlPermissionPolicySchema).readonly().optional()
309
+ });
310
+ const TailorDBTypeSchema = z.strictObject({
311
+ name: z.string(),
312
+ fields: z.record(z.string(), TailorDBFieldSchema),
313
+ metadata: z.object({
314
+ name: z.string(),
315
+ description: z.string().optional(),
316
+ settings: TailorDBTypeSettingsSchema.optional(),
317
+ permissions: RawPermissionsSchema,
318
+ files: z.record(z.string(), z.string()),
319
+ indexes: z.record(z.string(), z.strictObject({
320
+ fields: z.array(z.string()),
321
+ unique: z.boolean().optional()
322
+ })).optional()
323
+ }).strict()
324
+ });
325
+ const TailorDBMigrationConfigSchema = z.strictObject({
326
+ directory: z.string().describe("Directory containing migration files"),
327
+ machineUser: z.string().optional().describe("Machine user name for migration execution")
328
+ });
329
+ /**
330
+ * Schema for TailorDB service configuration.
331
+ * Normalizes gqlOperations from alias ("query") to object format.
332
+ */
333
+ const TailorDBServiceConfigSchema = z.strictObject({
334
+ files: z.array(z.string()).describe("Glob patterns for TailorDB type definition files"),
335
+ ignores: z.array(z.string()).optional().describe("Glob patterns to exclude from type discovery"),
336
+ erdSite: z.string().optional().describe("URL for the ERD (Entity Relationship Diagram) site"),
337
+ migration: TailorDBMigrationConfigSchema.optional().describe("Migration configuration"),
338
+ gqlOperations: GqlOperationsSchema.optional().describe("Default GraphQL operations for all types in this service")
339
+ });
340
+
341
+ //#endregion
342
+ //#region src/parser/service/tailordb/builder-helpers.ts
343
+ const TAILORDB_TYPE_SCHEMA_KEYS = TailorDBTypeSchema.keyof().options;
344
+ function stripTailorDBTypeBuilderHelpers(type) {
345
+ if (!isSdkBranded(type, "tailordb-type")) return type;
346
+ const config = {};
347
+ const input = type;
348
+ for (const key of TAILORDB_TYPE_SCHEMA_KEYS) if (Object.prototype.hasOwnProperty.call(input, key)) config[key] = input[key];
349
+ return config;
350
+ }
351
+
352
+ //#endregion
353
+ //#region src/parser/service/auth-connection/schema.ts
354
+ const AuthConnectionOAuth2ConfigSchema = z.strictObject({
355
+ providerUrl: z.string().describe("OAuth2 provider URL"),
356
+ issuerUrl: z.string().describe("OAuth2 issuer URL"),
357
+ clientId: z.string().describe("OAuth2 client ID"),
358
+ clientSecret: z.string().describe("OAuth2 client secret"),
359
+ authUrl: z.string().optional().describe("OAuth2 authorization endpoint override"),
360
+ tokenUrl: z.string().optional().describe("OAuth2 token endpoint override")
361
+ });
362
+ const AuthConnectionConfigSchema = AuthConnectionOAuth2ConfigSchema.extend({ type: z.literal("oauth2").describe("Connection type") });
363
+
364
+ //#endregion
365
+ //#region src/parser/service/field/schema.ts
366
+ const TailorFieldTypeSchema = z.enum([
367
+ "uuid",
368
+ "string",
369
+ "boolean",
370
+ "integer",
371
+ "float",
372
+ "decimal",
373
+ "enum",
374
+ "date",
375
+ "datetime",
376
+ "time",
377
+ "nested"
378
+ ]);
379
+ const AllowedValueSchema = z.strictObject({
380
+ value: z.string().describe("The allowed value"),
381
+ description: z.string().optional().describe("Description of the allowed value")
382
+ });
383
+ const FieldMetadataSchema = z.strictObject({
384
+ required: z.boolean().optional().describe("Whether the field is required"),
385
+ array: z.boolean().optional().describe("Whether the field is an array"),
386
+ description: z.string().optional().describe("Field description"),
387
+ allowedValues: z.array(AllowedValueSchema).optional().describe("Allowed values for enum fields"),
388
+ hooks: z.strictObject({
389
+ create: functionSchema.optional().describe("Hook function called on creation"),
390
+ update: functionSchema.optional().describe("Hook function called on update")
391
+ }).optional().describe("Lifecycle hooks"),
392
+ validate: z.array(z.union([functionSchema, z.tuple([functionSchema, z.string()])])).optional().describe("Validation functions for the field"),
393
+ typeName: z.string().optional().describe("Type name for nested or enum fields")
394
+ });
395
+ const TailorFieldSchema = z.object({
396
+ type: TailorFieldTypeSchema.describe("Field data type"),
397
+ metadata: FieldMetadataSchema.describe("Field metadata configuration"),
398
+ get fields() {
399
+ return z.record(z.string(), TailorFieldSchema);
400
+ }
401
+ });
402
+
403
+ //#endregion
404
+ //#region src/parser/service/auth/schema.ts
405
+ const AuthInvokerObjectSchema = z.strictObject({
406
+ namespace: z.string().describe("Auth namespace"),
407
+ machineUserName: z.string().describe("Machine user name for authentication")
408
+ });
409
+ const AuthInvokerSchema = z.union([z.string().describe("Machine user name (namespace auto-resolved from auth service)"), AuthInvokerObjectSchema]);
410
+ const secretValueSchema = z.strictObject({
411
+ vaultName: z.string().describe("Vault name containing the secret"),
412
+ secretKey: z.string().describe("Key of the secret in the vault")
413
+ });
414
+ const OIDCSchema = z.strictObject({
415
+ name: z.string().describe("Identity provider name"),
416
+ kind: z.literal("OIDC"),
417
+ clientID: z.string().describe("OAuth2 client ID"),
418
+ clientSecret: secretValueSchema.describe("OAuth2 client secret"),
419
+ providerURL: z.string().describe("OIDC provider URL"),
420
+ issuerURL: z.string().optional().describe("OIDC issuer URL (defaults to providerURL)"),
421
+ usernameClaim: z.string().optional().describe("JWT claim to use as username")
422
+ });
423
+ const SAMLSchema = z.strictObject({
424
+ name: z.string().describe("Identity provider name"),
425
+ kind: z.literal("SAML"),
426
+ enableSignRequest: z.boolean().default(false).describe("Enable signing of SAML requests"),
427
+ metadataURL: z.string().optional().describe("URL to fetch SAML metadata (mutually exclusive with rawMetadata)"),
428
+ rawMetadata: z.string().optional().describe("Raw SAML metadata XML (mutually exclusive with metadataURL)"),
429
+ defaultRedirectURL: z.string().optional().describe("URL to redirect to when SAML ACS receives a response with an empty RelayState.")
430
+ }).refine((value) => {
431
+ return value.metadataURL !== void 0 !== (value.rawMetadata !== void 0);
432
+ }, "Provide either metadataURL or rawMetadata");
433
+ const IDTokenSchema = z.strictObject({
434
+ name: z.string().describe("Identity provider name"),
435
+ kind: z.literal("IDToken"),
436
+ providerURL: z.string().describe("ID token provider URL"),
437
+ issuerURL: z.string().optional().describe("ID token issuer URL"),
438
+ clientID: z.string().describe("Client ID for ID token validation"),
439
+ usernameClaim: z.string().optional().describe("JWT claim to use as username")
440
+ });
441
+ const BuiltinIdPSchema = z.strictObject({
442
+ name: z.string().describe("Identity provider name"),
443
+ kind: z.literal("BuiltInIdP"),
444
+ namespace: z.string().describe("IdP namespace"),
445
+ clientName: z.string().describe("OAuth2 client name in the IdP")
446
+ });
447
+ const IdProviderSchema = z.discriminatedUnion("kind", [
448
+ OIDCSchema,
449
+ SAMLSchema,
450
+ IDTokenSchema,
451
+ BuiltinIdPSchema
452
+ ]);
453
+ const OAuth2ClientGrantTypeSchema = z.union([z.literal("authorization_code"), z.literal("refresh_token")]).describe("OAuth2 grant type");
454
+ const OAuth2ClientSchema = z.strictObject({
455
+ description: z.string().optional().describe("Client description"),
456
+ grantTypes: z.array(OAuth2ClientGrantTypeSchema).default(["authorization_code", "refresh_token"]).describe("Allowed OAuth2 grant types"),
457
+ redirectURIs: z.array(z.union([
458
+ z.templateLiteral(["https://", z.string()]),
459
+ z.templateLiteral(["http://", z.string()]),
460
+ z.templateLiteral([z.string(), ":url"]),
461
+ z.templateLiteral([
462
+ z.string(),
463
+ ":url/",
464
+ z.string()
465
+ ])
466
+ ])).describe("Allowed redirect URIs"),
467
+ clientType: z.union([
468
+ z.literal("confidential"),
469
+ z.literal("public"),
470
+ z.literal("browser")
471
+ ]).optional().describe("OAuth2 client type"),
472
+ accessTokenLifetimeSeconds: z.number().int().min(60, "Minimum access token lifetime is 60 seconds").max(86400, "Maximum access token lifetime is 1 day (86400 seconds)").optional().describe("Access token lifetime in seconds (60-86400)").transform((val) => val ? {
473
+ seconds: BigInt(val),
474
+ nanos: 0
475
+ } : void 0),
476
+ refreshTokenLifetimeSeconds: z.number().int().min(60, "Minimum refresh token lifetime is 60 seconds").max(604800, "Maximum refresh token lifetime is 7 days (604800 seconds)").optional().describe("Refresh token lifetime in seconds (60-604800)").transform((val) => val ? {
477
+ seconds: BigInt(val),
478
+ nanos: 0
479
+ } : void 0),
480
+ requireDpop: z.boolean().optional().describe("Require DPoP (Demonstrating Proof-of-Possession) for token requests")
481
+ }).refine((data) => !(data.clientType === "browser" && data.requireDpop === true), {
482
+ message: "requireDpop cannot be set to true for browser clients as they don't support DPoP",
483
+ path: ["requireDpop"]
484
+ });
485
+ const SCIMAuthorizationSchema = z.strictObject({
486
+ type: z.union([z.literal("oauth2"), z.literal("bearer")]).describe("SCIM authorization type"),
487
+ bearerSecret: secretValueSchema.optional().describe("Bearer token secret (required for bearer type)")
488
+ });
489
+ const SCIMAttributeTypeSchema = z.union([
490
+ z.literal("string"),
491
+ z.literal("number"),
492
+ z.literal("boolean"),
493
+ z.literal("datetime"),
494
+ z.literal("complex")
495
+ ]).describe("SCIM attribute data type");
496
+ const SCIMAttributeSchema = z.strictObject({
497
+ type: SCIMAttributeTypeSchema.describe("Attribute data type"),
498
+ name: z.string().describe("Attribute name"),
499
+ description: z.string().optional().describe("Attribute description"),
500
+ mutability: z.union([
501
+ z.literal("readOnly"),
502
+ z.literal("readWrite"),
503
+ z.literal("writeOnly")
504
+ ]).optional().describe("Attribute mutability"),
505
+ required: z.boolean().optional().describe("Whether the attribute is required"),
506
+ multiValued: z.boolean().optional().describe("Whether the attribute can have multiple values"),
507
+ uniqueness: z.union([
508
+ z.literal("none"),
509
+ z.literal("server"),
510
+ z.literal("global")
511
+ ]).optional().describe("Uniqueness constraint"),
512
+ canonicalValues: z.array(z.string()).nullable().optional().describe("List of canonical values"),
513
+ get subAttributes() {
514
+ return z.array(SCIMAttributeSchema).nullable().optional();
515
+ }
516
+ });
517
+ const SCIMSchemaSchema = z.strictObject({
518
+ name: z.string().describe("SCIM schema name"),
519
+ attributes: z.array(SCIMAttributeSchema).describe("Schema attributes")
520
+ });
521
+ const SCIMAttributeMappingSchema = z.strictObject({
522
+ tailorDBField: z.string().describe("TailorDB field name to map to"),
523
+ scimPath: z.string().describe("SCIM attribute path")
524
+ });
525
+ const SCIMResourceSchema = z.strictObject({
526
+ name: z.string().describe("SCIM resource name"),
527
+ tailorDBNamespace: z.string().describe("TailorDB namespace for the resource"),
528
+ tailorDBType: z.string().describe("TailorDB type name for the resource"),
529
+ coreSchema: SCIMSchemaSchema.describe("Core SCIM schema definition"),
530
+ attributeMapping: z.array(SCIMAttributeMappingSchema).describe("Attribute mapping configuration")
531
+ });
532
+ const SCIMSchema = z.strictObject({
533
+ machineUserName: z.string().describe("Machine user name for SCIM operations"),
534
+ authorization: SCIMAuthorizationSchema.describe("SCIM authorization configuration"),
535
+ resources: z.array(SCIMResourceSchema).describe("SCIM resource definitions")
536
+ });
537
+ const TenantProviderSchema = z.strictObject({
538
+ namespace: z.string().describe("TailorDB namespace for the tenant type"),
539
+ type: z.string().describe("TailorDB type name for tenants"),
540
+ signatureField: z.string().describe("Field used as the tenant signature")
541
+ });
542
+ const UserProfileSchema = z.strictObject({
543
+ namespace: z.string().optional().describe("TailorDB namespace where the user type is defined"),
544
+ type: z.custom().transform(stripTailorDBTypeBuilderHelpers).pipe(TailorDBTypeSchema),
545
+ usernameField: z.string(),
546
+ attributes: z.record(z.string(), z.literal(true)).optional(),
547
+ attributeList: z.array(z.string()).optional()
548
+ });
549
+ const ValueOperandSchema = z.union([
550
+ z.string(),
551
+ z.boolean(),
552
+ z.array(z.string()),
553
+ z.array(z.boolean())
554
+ ]);
555
+ const MachineUserSchema = z.strictObject({
556
+ attributes: z.record(z.string(), ValueOperandSchema).optional(),
557
+ attributeList: z.array(z.uuid()).optional()
558
+ });
559
+ const BeforeLoginHookSchema = z.strictObject({
560
+ handler: z.function(),
561
+ invoker: z.string()
562
+ });
563
+ const AuthConfigBaseSchema = z.strictObject({
564
+ name: z.string().describe("Auth service name"),
565
+ hooks: z.strictObject({ beforeLogin: BeforeLoginHookSchema.optional().describe("Before login auth hook") }).optional().describe("Auth hooks"),
566
+ machineUsers: z.record(z.string(), MachineUserSchema).optional().describe("Machine user definitions"),
567
+ oauth2Clients: z.record(z.string(), OAuth2ClientSchema).optional().describe("OAuth2 client definitions"),
568
+ idProvider: IdProviderSchema.optional().describe("Identity provider configuration"),
569
+ scim: SCIMSchema.optional().describe("SCIM provisioning configuration"),
570
+ tenantProvider: TenantProviderSchema.optional().describe("Multi-tenant provider configuration"),
571
+ connections: z.record(z.string(), AuthConnectionConfigSchema).optional().describe("Auth connection definitions for external OAuth2 providers"),
572
+ publishSessionEvents: z.boolean().optional().describe("Enable publishing session events")
573
+ });
574
+ const AuthConfigSchema = z.xor([AuthConfigBaseSchema.extend({
575
+ userProfile: UserProfileSchema.optional().describe("User profile configuration"),
576
+ machineUserAttributes: z.undefined().optional()
577
+ }), AuthConfigBaseSchema.extend({
578
+ userProfile: z.undefined().optional(),
579
+ machineUserAttributes: z.record(z.string(), TailorFieldSchema).describe("Machine user attribute fields")
580
+ })], { error: (iss) => {
581
+ if (iss.code !== "invalid_union") return void 0;
582
+ if (iss.errors.length < 2) return void 0;
583
+ if (iss.errors.every((variantErrors) => variantErrors.every((e) => e.path.length === 1 && (e.path[0] === "userProfile" || e.path[0] === "machineUserAttributes")))) return "Specify either `userProfile` or `machineUserAttributes`, not both.";
584
+ } }).brand("AuthConfig");
585
+
586
+ //#endregion
587
+ //#region src/parser/service/executor/schema.ts
588
+ const TailorDBTriggerSchema = z.strictObject({
589
+ kind: z.literal("tailordb").describe("TailorDB record event trigger"),
590
+ events: z.array(z.enum([
591
+ "tailordb.type_record.created",
592
+ "tailordb.type_record.updated",
593
+ "tailordb.type_record.deleted"
594
+ ])).min(1).transform((arr) => [...new Set(arr)]).describe("TailorDB event types to trigger on"),
595
+ typeName: z.string().describe("TailorDB type name to watch for events"),
596
+ condition: functionSchema.optional().describe("Condition function to filter events")
597
+ });
598
+ const ResolverExecutedTriggerSchema = z.strictObject({
599
+ kind: z.literal("resolverExecuted"),
600
+ resolverName: z.string().describe("Name of the resolver to trigger on"),
601
+ condition: functionSchema.optional().describe("Condition function to filter events")
602
+ });
603
+ const ScheduleTriggerSchema = z.strictObject({
604
+ kind: z.literal("schedule"),
605
+ cron: z.string().describe("CRON expression for the schedule"),
606
+ timezone: z.string().optional().default("UTC").describe("Timezone for the CRON schedule (default: UTC)")
607
+ });
608
+ const IncomingWebhookTriggerResponseSchema = z.strictObject({
609
+ body: functionSchema.optional().describe("Function returning the response body"),
610
+ statusCode: z.number().int().optional().describe("HTTP status code for the response")
611
+ });
612
+ const IncomingWebhookTriggerSchema = z.strictObject({
613
+ kind: z.literal("incomingWebhook"),
614
+ response: IncomingWebhookTriggerResponseSchema.optional().describe("Response configuration")
615
+ });
616
+ const IdpUserTriggerSchema = z.strictObject({
617
+ kind: z.literal("idpUser").describe("IdP user event trigger"),
618
+ events: z.array(z.enum([
619
+ "idp.user.created",
620
+ "idp.user.updated",
621
+ "idp.user.deleted"
622
+ ])).min(1).transform((arr) => [...new Set(arr)]).describe("IdP user event types to trigger on"),
623
+ idp: z.string().optional().describe("IdP namespace name to subscribe to. If omitted, the project's only IdP is used; throws when multiple IdPs exist.")
624
+ });
625
+ const AuthAccessTokenTriggerSchema = z.strictObject({
626
+ kind: z.literal("authAccessToken").describe("Auth access token event trigger"),
627
+ events: z.array(z.enum([
628
+ "auth.access_token.issued",
629
+ "auth.access_token.refreshed",
630
+ "auth.access_token.revoked"
631
+ ])).min(1).transform((arr) => [...new Set(arr)]).describe("Auth access token event types to trigger on")
632
+ });
633
+ const TriggerSchema = z.discriminatedUnion("kind", [
634
+ TailorDBTriggerSchema,
635
+ ResolverExecutedTriggerSchema,
636
+ ScheduleTriggerSchema,
637
+ IncomingWebhookTriggerSchema,
638
+ IdpUserTriggerSchema,
639
+ AuthAccessTokenTriggerSchema
640
+ ]);
641
+ const FunctionOperationSchema = z.strictObject({
642
+ kind: z.enum(["function", "jobFunction"]),
643
+ body: functionSchema.describe("Function implementation"),
644
+ invoker: AuthInvokerSchema.optional().describe("Invoker for the function execution")
645
+ });
646
+ const GqlOperationSchema = z.strictObject({
647
+ kind: z.literal("graphql"),
648
+ appName: z.string().optional().describe("Target application name for the GraphQL query"),
649
+ query: z.preprocess((val) => String(val), z.string().describe("GraphQL query string")),
650
+ variables: functionSchema.optional().describe("Function to compute GraphQL variables"),
651
+ invoker: AuthInvokerSchema.optional().describe("Invoker for the GraphQL execution")
652
+ });
653
+ const WebhookOperationSchema = z.strictObject({
654
+ kind: z.literal("webhook"),
655
+ url: functionSchema.describe("Function returning the webhook URL"),
656
+ requestBody: functionSchema.optional().describe("Function to compute the request body"),
657
+ headers: z.record(z.string(), z.union([z.string(), z.strictObject({
658
+ vault: z.string(),
659
+ key: z.string()
660
+ })])).optional().describe("HTTP headers for the webhook request")
661
+ });
662
+ const WorkflowOperationSchema = z.preprocess((val) => {
663
+ if (val == null || typeof val !== "object" || !("workflow" in val) || typeof val.workflow !== "object" || val.workflow === null) return val;
664
+ const { workflow, ...rest } = val;
665
+ return {
666
+ ...rest,
667
+ workflowName: workflow.name
668
+ };
669
+ }, z.strictObject({
670
+ kind: z.literal("workflow"),
671
+ workflowName: z.string().describe("Name of the workflow to execute"),
672
+ args: z.union([z.record(z.string(), z.unknown()), functionSchema]).optional().describe("Arguments to pass to the workflow"),
673
+ invoker: AuthInvokerSchema.optional().describe("Invoker for the workflow execution")
674
+ }));
675
+ const OperationSchema = z.union([
676
+ FunctionOperationSchema,
677
+ GqlOperationSchema,
678
+ WebhookOperationSchema,
679
+ WorkflowOperationSchema
680
+ ]);
681
+ const ExecutorSchema = z.strictObject({
682
+ name: z.string().describe("Executor name"),
683
+ description: z.string().optional().describe("Executor description"),
684
+ disabled: z.boolean().optional().default(false).describe("Whether the executor is disabled"),
685
+ trigger: TriggerSchema.describe("Event trigger configuration"),
686
+ operation: OperationSchema.describe("Operation to execute when triggered")
687
+ });
688
+
689
+ //#endregion
690
+ //#region src/cli/services/executor/loader.ts
691
+ function stripExecutorTriggerArgs(executor) {
692
+ if (!isSdkBranded(executor, "executor")) return executor;
693
+ const trigger = executor.trigger;
694
+ if (trigger === null || typeof trigger !== "object" || !("__args" in trigger)) return executor;
695
+ const { __args: _args, ...triggerConfig } = trigger;
696
+ return {
697
+ ...executor,
698
+ trigger: triggerConfig
699
+ };
700
+ }
701
+ /**
702
+ * Load and validate an executor definition from a file.
703
+ * @param executorFilePath - Path to the executor file
704
+ * @returns Parsed executor or null if invalid
705
+ */
706
+ async function loadExecutor(executorFilePath) {
707
+ const executor = (await import(pathToFileURL(executorFilePath).href)).default;
708
+ const parseResult = ExecutorSchema.safeParse(stripExecutorTriggerArgs(executor));
709
+ if (!parseResult.success) return null;
710
+ return parseResult.data;
711
+ }
712
+
713
+ //#endregion
714
+ //#region src/cli/services/executor/service.ts
715
+ /**
716
+ * Creates a new ExecutorService instance.
717
+ * @param params - Parameters for creating the service
718
+ * @returns A new ExecutorService instance
719
+ */
720
+ function createExecutorService(params) {
721
+ const { config } = params;
722
+ const executors = {};
723
+ const pluginExecutors = [];
724
+ let loadPromise;
725
+ const loadExecutorForFile = async (executorFile) => {
726
+ try {
727
+ const executorModule = await import(pathToFileURL(executorFile).href);
728
+ const result = ExecutorSchema.safeParse(stripExecutorTriggerArgs(executorModule.default));
729
+ if (result.success) {
730
+ const relativePath = path.relative(process.cwd(), executorFile);
731
+ logger.log(`Executor: ${styles.successBright(`"${result.data.name}"`)} loaded from ${styles.path(relativePath)}`);
732
+ executors[executorFile] = result.data;
733
+ return result.data;
734
+ }
735
+ if (isSdkBranded(executorModule.default, "executor")) throw result.error;
736
+ } catch (error) {
737
+ const relativePath = path.relative(process.cwd(), executorFile);
738
+ logger.error(`Failed to load executor from ${styles.bold(relativePath)}`);
739
+ logger.error(String(error));
740
+ throw error;
741
+ }
742
+ };
743
+ return {
744
+ config,
745
+ get executors() {
746
+ return executors;
747
+ },
748
+ get pluginExecutors() {
749
+ return pluginExecutors;
750
+ },
751
+ loadExecutors: async () => {
752
+ if (!loadPromise) loadPromise = (async () => {
753
+ if (config.files.length === 0) return;
754
+ const executorFiles = loadFilesWithIgnores(config);
755
+ logger.newline();
756
+ logger.log(`Found ${styles.highlight(executorFiles.length.toString())} executor files`);
757
+ await Promise.all(executorFiles.map((executorFile) => loadExecutorForFile(executorFile)));
758
+ assertUniqueExecutorNames(executors);
759
+ return executors;
760
+ })();
761
+ return loadPromise;
762
+ },
763
+ loadPluginExecutorFiles: async (filePaths) => {
764
+ if (filePaths.length === 0) return;
765
+ logger.newline();
766
+ logger.log(`Loading ${styles.highlight(filePaths.length.toString())} plugin-generated executor files`);
767
+ for (const filePath of filePaths) {
768
+ const executor = await loadExecutorForFile(filePath);
769
+ if (executor) pluginExecutors.push({
770
+ executor,
771
+ pluginId: "plugin-generated",
772
+ sourceTypeName: void 0
773
+ });
774
+ }
775
+ assertUniqueExecutorNames(executors);
776
+ }
777
+ };
778
+ }
779
+ /**
780
+ * Assert that every loaded executor has a unique name.
781
+ * Executors are stored by source file, so two files declaring the same
782
+ * `name` would otherwise silently share a single bundle cache entry.
783
+ * @param executors - Loaded executors keyed by source file
784
+ */
785
+ function assertUniqueExecutorNames(executors) {
786
+ const seenNames = /* @__PURE__ */ new Map();
787
+ for (const [file, executor] of Object.entries(executors)) {
788
+ const relativePath = path.relative(process.cwd(), file);
789
+ const existing = seenNames.get(executor.name);
790
+ if (existing) throw new Error(`Duplicate executor name "${executor.name}" found:\n - ${existing}\n - ${relativePath}\nEach executor must have a unique name.`);
791
+ seenNames.set(executor.name, relativePath);
792
+ }
793
+ }
794
+
795
+ //#endregion
796
+ export { AuthConfigSchema as a, stripTailorDBTypeBuilderHelpers as c, applyRelationMetadataToFieldConfig as d, buildRelationInfo as f, functionSchema as g, loadFilesWithIgnores as h, ExecutorSchema as i, TailorDBServiceConfigSchema as l, validateRelationConfig as m, loadExecutor as n, AuthInvokerSchema as o, processRelationMetadata as p, stripExecutorTriggerArgs as r, TailorFieldSchema as s, createExecutorService as t, TailorDBTypeSchema as u };
797
+ //# sourceMappingURL=service-ufH7sS8o.mjs.map