@tailor-platform/sdk 2.0.0-next.0 → 2.0.0-next.10

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 (497) hide show
  1. package/CHANGELOG.md +972 -0
  2. package/README.md +9 -9
  3. package/agent-skills/{tailor-sdk → tailor}/SKILL.md +3 -1
  4. package/dist/aigateway-DR4Kwuik.mjs +9 -0
  5. package/dist/aigateway-DR4Kwuik.mjs.map +1 -0
  6. package/dist/application-DArFTTJ9.mjs +3 -0
  7. package/dist/{application-76hhIhnJ.mjs → application-miwiXtB4.mjs} +1963 -1953
  8. package/dist/application-miwiXtB4.mjs.map +1 -0
  9. package/dist/{assert-CKfwrmCV.mjs → assert-DBxo8jPo.mjs} +1 -2
  10. package/dist/{assert-CKfwrmCV.mjs.map → assert-DBxo8jPo.mjs.map} +1 -1
  11. package/dist/authconnection-CZvi9ANm.mjs +9 -0
  12. package/dist/authconnection-CZvi9ANm.mjs.map +1 -0
  13. package/dist/{brand-DlnJ375c.mjs → brand-Eo4pLXPJ.mjs} +1 -2
  14. package/dist/brand-Eo4pLXPJ.mjs.map +1 -0
  15. package/dist/cli/cache/bundle-cache.d.mts +2 -0
  16. package/dist/cli/cache/store.d.mts +1 -0
  17. package/dist/cli/cache/types.d.mts +1 -0
  18. package/dist/cli/commands/api/api-call.d.mts +19 -0
  19. package/dist/cli/commands/api/index.d.mts +4 -0
  20. package/dist/cli/commands/deploy/aigateway.d.mts +5 -0
  21. package/dist/cli/commands/deploy/application.d.mts +7 -0
  22. package/dist/cli/commands/deploy/apply-phases.d.mts +14 -0
  23. package/dist/cli/commands/deploy/auth.d.mts +5 -0
  24. package/dist/cli/commands/deploy/deploy.d.mts +34 -0
  25. package/dist/cli/commands/deploy/executor.d.mts +7 -0
  26. package/dist/cli/commands/deploy/function-registry-types.d.mts +12 -0
  27. package/dist/cli/commands/deploy/function-registry.d.mts +7 -0
  28. package/dist/cli/commands/deploy/idp.d.mts +5 -0
  29. package/dist/cli/commands/deploy/resolver.d.mts +5 -0
  30. package/dist/cli/commands/deploy/secret-manager.d.mts +5 -0
  31. package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -0
  32. package/dist/cli/commands/deploy/tailordb/index.d.mts +9 -0
  33. package/dist/cli/commands/deploy/types.d.mts +3 -0
  34. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +3 -0
  35. package/dist/cli/commands/deploy/workflow.d.mts +4 -0
  36. package/dist/cli/commands/executor/get.d.mts +28 -0
  37. package/dist/cli/commands/executor/jobs.d.mts +122 -0
  38. package/dist/cli/commands/executor/list.d.mts +18 -0
  39. package/dist/cli/commands/executor/transform.d.mts +42 -0
  40. package/dist/cli/commands/executor/trigger.d.mts +40 -0
  41. package/dist/cli/commands/executor/webhook.d.mts +21 -0
  42. package/dist/cli/commands/function/get.d.mts +17 -0
  43. package/dist/cli/commands/function/list.d.mts +21 -0
  44. package/dist/cli/commands/function/transform.d.mts +12 -0
  45. package/dist/cli/commands/generate/options.d.mts +6 -0
  46. package/dist/cli/commands/generate/seed/bundler.d.mts +26 -0
  47. package/dist/cli/commands/generate/service.d.mts +15 -0
  48. package/dist/cli/commands/machineuser/list.d.mts +26 -0
  49. package/dist/cli/commands/machineuser/token.d.mts +21 -0
  50. package/dist/cli/commands/oauth2client/get.d.mts +17 -0
  51. package/dist/cli/commands/oauth2client/list.d.mts +19 -0
  52. package/dist/cli/commands/oauth2client/transform.d.mts +21 -0
  53. package/dist/cli/commands/organization/folder/create.d.mts +17 -0
  54. package/dist/cli/commands/organization/folder/delete.d.mts +15 -0
  55. package/dist/cli/commands/organization/folder/get.d.mts +16 -0
  56. package/dist/cli/commands/organization/folder/list.d.mts +21 -0
  57. package/dist/cli/commands/organization/folder/update.d.mts +17 -0
  58. package/dist/cli/commands/organization/get.d.mts +15 -0
  59. package/dist/cli/commands/organization/list.d.mts +14 -0
  60. package/dist/cli/commands/organization/transform.d.mts +29 -0
  61. package/dist/cli/commands/organization/tree.d.mts +24 -0
  62. package/dist/cli/commands/organization/update.d.mts +16 -0
  63. package/dist/cli/commands/remove.d.mts +15 -0
  64. package/dist/cli/commands/show.d.mts +39 -0
  65. package/dist/cli/commands/staticwebsite/deploy.d.mts +19 -0
  66. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +29 -0
  67. package/dist/cli/commands/tailordb/migrate/config.d.mts +18 -0
  68. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +246 -0
  69. package/dist/cli/commands/tailordb/migrate/generate.d.mts +16 -0
  70. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +208 -0
  71. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +98 -0
  72. package/dist/cli/commands/tailordb/migrate/types.d.mts +7 -0
  73. package/dist/cli/commands/tailordb/truncate.d.mts +18 -0
  74. package/dist/cli/commands/workflow/executions.d.mts +74 -0
  75. package/dist/cli/commands/workflow/get.d.mts +30 -0
  76. package/dist/cli/commands/workflow/list.d.mts +18 -0
  77. package/dist/cli/commands/workflow/resume.d.mts +22 -0
  78. package/dist/cli/commands/workflow/start.d.mts +60 -0
  79. package/dist/cli/commands/workflow/status.d.mts +6 -0
  80. package/dist/cli/commands/workflow/transform.d.mts +34 -0
  81. package/dist/cli/commands/workflow/wait.d.mts +15 -0
  82. package/dist/cli/commands/workflow/waiter.d.mts +23 -0
  83. package/dist/cli/commands/workspace/app/health.d.mts +17 -0
  84. package/dist/cli/commands/workspace/app/list.d.mts +21 -0
  85. package/dist/cli/commands/workspace/app/transform.d.mts +20 -0
  86. package/dist/cli/commands/workspace/create.d.mts +27 -0
  87. package/dist/cli/commands/workspace/delete.d.mts +14 -0
  88. package/dist/cli/commands/workspace/get.d.mts +16 -0
  89. package/dist/cli/commands/workspace/list.d.mts +17 -0
  90. package/dist/cli/commands/workspace/restore.d.mts +14 -0
  91. package/dist/cli/commands/workspace/transform.d.mts +20 -0
  92. package/dist/cli/commands/workspace/user/invite.d.mts +21 -0
  93. package/dist/cli/commands/workspace/user/list.d.mts +21 -0
  94. package/dist/cli/commands/workspace/user/remove.d.mts +16 -0
  95. package/dist/cli/commands/workspace/user/transform.d.mts +9 -0
  96. package/dist/cli/commands/workspace/user/update.d.mts +21 -0
  97. package/dist/cli/index.mjs +12 -5534
  98. package/dist/cli/lib.d.mts +90 -21180
  99. package/dist/cli/lib.mjs +157 -16
  100. package/dist/cli/lib.mjs.map +1 -1
  101. package/dist/cli/main.d.mts +23 -0
  102. package/dist/cli/main.mjs +6583 -0
  103. package/dist/cli/main.mjs.map +1 -0
  104. package/dist/cli/query/index.d.mts +38 -0
  105. package/dist/cli/services/application.d.mts +12 -0
  106. package/dist/cli/services/auth/service.d.mts +3 -0
  107. package/dist/cli/services/executor/service.d.mts +1 -0
  108. package/dist/cli/services/http-adapter/bundler.d.mts +3 -0
  109. package/dist/cli/services/http-adapter/service.d.mts +2 -0
  110. package/dist/cli/services/resolver/service.d.mts +1 -0
  111. package/dist/cli/services/tailordb/service.d.mts +3 -0
  112. package/dist/cli/services/workflow/bundler.d.mts +2 -0
  113. package/dist/cli/services/workflow/service.d.mts +1 -0
  114. package/dist/cli/shared/args.d.mts +13 -0
  115. package/dist/cli/shared/client.d.mts +1273 -0
  116. package/dist/cli/shared/config-loader.d.mts +25 -0
  117. package/dist/cli/shared/context.d.mts +29 -0
  118. package/dist/cli/shared/error-json.d.mts +23 -0
  119. package/dist/cli/shared/readonly-guard.d.mts +25 -0
  120. package/dist/cli/shared/script-executor.d.mts +77 -0
  121. package/dist/cli/shared/seed-chunker.d.mts +45 -0
  122. package/dist/cli/shared/seed-context.d.mts +49 -0
  123. package/dist/cli/shared/tailordb-namespaces.d.mts +40 -0
  124. package/dist/cli/shared/type-generator.d.mts +19 -0
  125. package/dist/cli/shared/workspace-name.d.mts +1 -0
  126. package/dist/cli/ts-hook.d.mts +4 -0
  127. package/dist/cli/ts-hook.mjs +333 -0
  128. package/dist/completion/zsh-worker.zsh +4223 -0
  129. package/dist/configure/config/index.d.mts +20 -0
  130. package/dist/configure/config/types.d.mts +111 -0
  131. package/dist/configure/index.d.mts +135 -7
  132. package/dist/configure/index.mjs +409 -56
  133. package/dist/configure/index.mjs.map +1 -1
  134. package/dist/configure/services/aigateway/index.d.mts +16 -0
  135. package/dist/configure/services/aigateway/types.d.mts +10 -0
  136. package/dist/configure/services/auth/index.d.mts +33 -0
  137. package/dist/configure/services/auth/types.d.mts +168 -0
  138. package/dist/configure/services/executor/executor.d.mts +70 -0
  139. package/dist/configure/services/executor/index.d.mts +9 -0
  140. package/dist/configure/services/executor/operation.d.mts +50 -0
  141. package/dist/configure/services/executor/trigger/event.d.mts +271 -0
  142. package/dist/configure/services/executor/trigger/index.d.mts +7 -0
  143. package/dist/configure/services/executor/trigger/schedule.d.mts +24 -0
  144. package/dist/configure/services/executor/trigger/webhook.d.mts +43 -0
  145. package/dist/configure/services/executor/types.d.mts +2 -0
  146. package/dist/configure/services/http-adapter/http-adapter.d.mts +124 -0
  147. package/dist/configure/services/http-adapter/index.d.mts +2 -0
  148. package/dist/configure/services/idp/index.d.mts +60 -0
  149. package/dist/configure/services/idp/permission.d.mts +64 -0
  150. package/dist/configure/services/idp/types.d.mts +23 -0
  151. package/dist/configure/services/index.d.mts +40 -0
  152. package/dist/configure/services/resolver/index.d.mts +6 -0
  153. package/dist/configure/services/resolver/permission.d.mts +64 -0
  154. package/dist/configure/services/resolver/resolver.d.mts +88 -0
  155. package/dist/configure/services/resolver/types.d.mts +5 -0
  156. package/dist/configure/services/secrets/index.d.mts +37 -0
  157. package/dist/configure/services/secrets/types.d.mts +10 -0
  158. package/dist/configure/services/staticwebsite/index.d.mts +18 -0
  159. package/dist/configure/services/staticwebsite/types.d.mts +10 -0
  160. package/dist/configure/services/tailordb/index.d.mts +4 -0
  161. package/dist/configure/services/tailordb/permission.d.mts +103 -0
  162. package/dist/configure/services/tailordb/schema.d.mts +486 -0
  163. package/dist/configure/services/tailordb/types.d.mts +198 -0
  164. package/dist/configure/services/workflow/execution-policy.d.mts +70 -0
  165. package/dist/configure/services/workflow/execution-policy.types.d.mts +103 -0
  166. package/dist/configure/services/workflow/index.d.mts +9 -0
  167. package/dist/configure/services/workflow/job.d.mts +83 -0
  168. package/dist/configure/services/workflow/types.d.mts +2 -0
  169. package/dist/configure/services/workflow/wait-point.d.mts +72 -0
  170. package/dist/configure/services/workflow/workflow.d.mts +56 -0
  171. package/dist/configure/types/aigateway-name.d.mts +12 -0
  172. package/dist/configure/types/connection-name.d.mts +12 -0
  173. package/dist/configure/types/field.d.mts +8 -0
  174. package/dist/configure/types/field.types.d.mts +70 -0
  175. package/dist/configure/types/idp-name.d.mts +12 -0
  176. package/dist/configure/types/index.d.mts +5 -0
  177. package/dist/configure/types/machine-user.d.mts +2 -0
  178. package/dist/configure/types/permission-operand.types.d.mts +20 -0
  179. package/dist/configure/types/type.d.mts +73 -0
  180. package/dist/{context-s0lxhu8_.mjs → context-DYQVYWqZ.mjs} +4 -6
  181. package/dist/context-DYQVYWqZ.mjs.map +1 -0
  182. package/dist/{crashreport-BhD0y14F.mjs → crashreport-B5LqCTfF.mjs} +25 -17
  183. package/dist/{crashreport-BhD0y14F.mjs.map → crashreport-B5LqCTfF.mjs.map} +1 -1
  184. package/dist/{crashreport-D1wKBJ8N.mjs → crashreport-eI7ty7ok.mjs} +1 -2
  185. package/dist/{enum-constants-C7DaWeQo.mjs → enum-constants-j9QBF0cB.mjs} +1 -2
  186. package/dist/enum-constants-j9QBF0cB.mjs.map +1 -0
  187. package/dist/{errors-EsY4XO6O.mjs → errors-D7583Zz7.mjs} +18 -3
  188. package/dist/errors-D7583Zz7.mjs.map +1 -0
  189. package/dist/{file-B58Dm-2P.mjs → file-BUcmVIH2.mjs} +12 -23
  190. package/dist/file-BUcmVIH2.mjs.map +1 -0
  191. package/dist/{file-utils-BHPxPXmn.mjs → file-utils-yEiIS4nJ.mjs} +7 -8
  192. package/dist/file-utils-yEiIS4nJ.mjs.map +1 -0
  193. package/dist/{globals-ByrCoDip.mjs → globals-DQotNuwK.mjs} +32 -6
  194. package/dist/globals-DQotNuwK.mjs.map +1 -0
  195. package/dist/iconv-QWaZh0TT.mjs +38 -0
  196. package/dist/iconv-QWaZh0TT.mjs.map +1 -0
  197. package/dist/{idp-Ch95ag8h.mjs → idp-RA_swu-h.mjs} +12 -6
  198. package/dist/idp-RA_swu-h.mjs.map +1 -0
  199. package/dist/{interceptor-DOqRkCya.mjs → interceptor-e33JtsC-.mjs} +2 -3
  200. package/dist/interceptor-e33JtsC-.mjs.map +1 -0
  201. package/dist/kysely/index.d.mts +5 -7
  202. package/dist/kysely/index.mjs +0 -1
  203. package/dist/kysely/index.mjs.map +1 -1
  204. package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-DqIRgDYR.mjs} +6 -6
  205. package/dist/kysely-type-DqIRgDYR.mjs.map +1 -0
  206. package/dist/logger-BtX0suGY.mjs +48 -0
  207. package/dist/logger-BtX0suGY.mjs.map +1 -0
  208. package/dist/logger-CXQq9YIp.mjs +317 -0
  209. package/dist/logger-CXQq9YIp.mjs.map +1 -0
  210. package/dist/{multiline-Cf9ODpr1.mjs → multiline-sfHpTZZK.mjs} +1 -2
  211. package/dist/{multiline-Cf9ODpr1.mjs.map → multiline-sfHpTZZK.mjs.map} +1 -1
  212. package/dist/{package-json-DcQApfPQ.mjs → package-json-8b0O9TlX.mjs} +1 -2
  213. package/dist/{package-json-DcQApfPQ.mjs.map → package-json-8b0O9TlX.mjs.map} +1 -1
  214. package/dist/package-json-Cv2Z-TqQ.mjs +3 -0
  215. package/dist/parser/service/auth/index.d.mts +1 -0
  216. package/dist/parser/service/auth/schema.d.mts +3 -0
  217. package/dist/parser/service/http-adapter/index.d.mts +1 -0
  218. package/dist/parser/service/http-adapter/schema.d.mts +1 -0
  219. package/dist/parser/service/idp/types.d.mts +5 -0
  220. package/dist/parser/service/tailordb/type-source.d.mts +10 -0
  221. package/dist/parser/service/tailordb/types.d.mts +131 -0
  222. package/dist/platform-serialize-RoRtBS0v.mjs +46 -0
  223. package/dist/platform-serialize-RoRtBS0v.mjs.map +1 -0
  224. package/dist/plugin/builtin/enum-constants/index.d.mts +15 -1
  225. package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
  226. package/dist/plugin/builtin/file-utils/index.d.mts +15 -1
  227. package/dist/plugin/builtin/file-utils/index.mjs +1 -2
  228. package/dist/plugin/builtin/kysely-type/index.d.mts +15 -1
  229. package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
  230. package/dist/plugin/builtin/seed/index.d.mts +46 -2
  231. package/dist/plugin/builtin/seed/index.mjs +1 -2
  232. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +19 -0
  233. package/dist/plugin/builtin/seed/types.d.mts +2 -0
  234. package/dist/plugin/get-generated-type.d.mts +16 -0
  235. package/dist/plugin/index.d.mts +3 -119
  236. package/dist/plugin/index.mjs +1 -2
  237. package/dist/plugin/index.mjs.map +1 -1
  238. package/dist/plugin/manager.d.mts +2 -0
  239. package/dist/plugin/types.d.mts +242 -0
  240. package/dist/plugin/with-context.d.mts +101 -0
  241. package/dist/{runtime-C7qTBDD2.mjs → register-ts-hook-BAHMwxfG.mjs} +12374 -8672
  242. package/dist/register-ts-hook-BAHMwxfG.mjs.map +1 -0
  243. package/dist/registry-BIGVUrMB.mjs +54 -0
  244. package/dist/registry-BIGVUrMB.mjs.map +1 -0
  245. package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-BCozyiNq.mjs} +7 -7
  246. package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-BCozyiNq.mjs.map} +1 -1
  247. package/dist/runtime/aigateway.d.mts +25 -0
  248. package/dist/runtime/aigateway.mjs +3 -0
  249. package/dist/runtime/authconnection.d.mts +21 -2
  250. package/dist/runtime/authconnection.mjs +2 -3
  251. package/dist/runtime/context.d.mts +54 -2
  252. package/dist/runtime/context.mjs +2 -3
  253. package/dist/runtime/field-parse.d.mts +10 -0
  254. package/dist/runtime/file.d.mts +170 -2
  255. package/dist/runtime/file.mjs +2 -3
  256. package/dist/runtime/globals.d.mts +38 -53
  257. package/dist/runtime/globals.mjs +0 -1
  258. package/dist/runtime/iconv.d.mts +73 -2
  259. package/dist/runtime/iconv.mjs +2 -3
  260. package/dist/runtime/idp.d.mts +129 -2
  261. package/dist/runtime/idp.mjs +2 -3
  262. package/dist/runtime/index.d.mts +48 -9
  263. package/dist/runtime/index.mjs +10 -9
  264. package/dist/runtime/logger.d.mts +98 -0
  265. package/dist/runtime/logger.mjs +3 -0
  266. package/dist/runtime/secretmanager.d.mts +41 -2
  267. package/dist/runtime/secretmanager.mjs +2 -3
  268. package/dist/runtime/types.d.mts +25 -0
  269. package/dist/runtime/workflow.d.mts +124 -2
  270. package/dist/runtime/workflow.mjs +2 -3
  271. package/dist/{schema-1msIhXwA.mjs → schema--xYWRGfe.mjs} +289 -231
  272. package/dist/schema--xYWRGfe.mjs.map +1 -0
  273. package/dist/{secret-file-CWzF8rry.mjs → secret-file-C3J4Gy8r.mjs} +2 -3
  274. package/dist/{secret-file-CWzF8rry.mjs.map → secret-file-C3J4Gy8r.mjs.map} +1 -1
  275. package/dist/secretmanager-CYlpffsz.mjs +13 -0
  276. package/dist/secretmanager-CYlpffsz.mjs.map +1 -0
  277. package/dist/secretmanager-IY4UvinW.mjs +131 -0
  278. package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
  279. package/dist/seed/index.d.mts +4 -4
  280. package/dist/seed/index.mjs +0 -1
  281. package/dist/seed/index.mjs.map +1 -1
  282. package/dist/seed-LUVr7jHL.mjs +444 -0
  283. package/dist/seed-LUVr7jHL.mjs.map +1 -0
  284. package/dist/{service-DMohAx8a2.mjs → service-B5WynBHQ.mjs} +3 -4
  285. package/dist/service-B5WynBHQ.mjs.map +1 -0
  286. package/dist/service-BNtPsK9Q.mjs +837 -0
  287. package/dist/service-BNtPsK9Q.mjs.map +1 -0
  288. package/dist/service-D5jn05ZI.mjs +3 -0
  289. package/dist/service_pb-BwZRiNug.mjs +167 -0
  290. package/dist/service_pb-BwZRiNug.mjs.map +1 -0
  291. package/dist/service_pb-wRkxUta6.mjs +3 -0
  292. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +203 -0
  293. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +57 -0
  294. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +315 -0
  295. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +160 -0
  296. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +2069 -0
  297. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +865 -0
  298. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +111 -0
  299. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +68 -0
  300. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +438 -0
  301. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +563 -0
  302. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +144 -0
  303. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +450 -0
  304. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +191 -0
  305. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +49 -0
  306. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +406 -0
  307. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +429 -0
  308. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +72 -0
  309. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +16 -0
  310. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +308 -0
  311. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +590 -0
  312. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +329 -0
  313. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +112 -0
  314. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +345 -0
  315. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +53 -0
  316. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +3575 -0
  317. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +186 -0
  318. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +28 -0
  319. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +428 -0
  320. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +89 -0
  321. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +683 -0
  322. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +796 -0
  323. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +329 -0
  324. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +182 -0
  325. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +861 -0
  326. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +309 -0
  327. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +2014 -0
  328. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +482 -0
  329. package/dist/{telemetry-BQbbVo2t.mjs → telemetry-BRVdwh14.mjs} +4 -5
  330. package/dist/telemetry-BRVdwh14.mjs.map +1 -0
  331. package/dist/telemetry-CkbkeJxl.mjs +3 -0
  332. package/dist/test-env-key-D7UkZp99.mjs +75 -0
  333. package/dist/test-env-key-D7UkZp99.mjs.map +1 -0
  334. package/dist/type-source-DH_LH20p.mjs +13 -0
  335. package/dist/type-source-DH_LH20p.mjs.map +1 -0
  336. package/dist/types/aigateway.generated.d.mts +12 -0
  337. package/dist/types/app-config.generated.d.mts +4 -0
  338. package/dist/types/auth-connection.generated.d.mts +33 -0
  339. package/dist/types/auth.generated.d.mts +188 -0
  340. package/dist/types/executor.generated.d.mts +209 -0
  341. package/dist/types/helpers.d.mts +40 -0
  342. package/dist/types/http-adapter.generated.d.mts +28 -0
  343. package/dist/types/idp.generated.d.mts +626 -0
  344. package/dist/types/resolver.generated.d.mts +82 -0
  345. package/dist/types/secrets.generated.d.mts +14 -0
  346. package/dist/types/staticwebsite.generated.d.mts +14 -0
  347. package/dist/types/tailordb.generated.d.mts +468 -0
  348. package/dist/types/workflow.generated.d.mts +17 -0
  349. package/dist/user-agent-Bgsszb5I.mjs +28 -0
  350. package/dist/user-agent-Bgsszb5I.mjs.map +1 -0
  351. package/dist/utils/test/index.d.mts +6 -99
  352. package/dist/utils/test/index.mjs +60 -40
  353. package/dist/utils/test/index.mjs.map +1 -1
  354. package/dist/utils/test/mock.d.mts +86 -0
  355. package/dist/vitest/environment.d.mts +1 -2
  356. package/dist/vitest/environment.mjs +2 -3
  357. package/dist/vitest/environment.mjs.map +1 -1
  358. package/dist/vitest/index.d.mts +15 -392
  359. package/dist/vitest/index.mjs +1347 -9
  360. package/dist/vitest/index.mjs.map +1 -1
  361. package/dist/vitest/mock-kysely.d.mts +61 -0
  362. package/dist/vitest/mock.d.mts +10 -0
  363. package/dist/vitest/mocks/aigateway.d.mts +40 -0
  364. package/dist/vitest/mocks/authconnection.d.mts +38 -0
  365. package/dist/vitest/mocks/file.d.mts +58 -0
  366. package/dist/vitest/mocks/iconv.d.mts +51 -0
  367. package/dist/vitest/mocks/idp.d.mts +60 -0
  368. package/dist/vitest/mocks/logger.d.mts +45 -0
  369. package/dist/vitest/mocks/secretmanager.d.mts +44 -0
  370. package/dist/vitest/mocks/tailordb.d.mts +115 -0
  371. package/dist/vitest/mocks/workflow.d.mts +157 -0
  372. package/dist/vitest/setup.d.mts +1 -2
  373. package/dist/vitest/setup.mjs +2 -3
  374. package/dist/vitest/setup.mjs.map +1 -1
  375. package/dist/vitest/workflow-local.d.mts +41 -0
  376. package/dist/workflow-CsaQ9qK-.mjs +42 -0
  377. package/dist/workflow-CsaQ9qK-.mjs.map +1 -0
  378. package/dist/{client-CobIRHl-.mjs → workspace_resource_pb-UGK1SSn_.mjs} +55 -616
  379. package/dist/workspace_resource_pb-UGK1SSn_.mjs.map +1 -0
  380. package/docs/cli/application.md +150 -252
  381. package/docs/cli/auth.md +51 -295
  382. package/docs/cli/completion.md +4 -25
  383. package/docs/cli/crashreport.md +3 -63
  384. package/docs/cli/executor.md +72 -183
  385. package/docs/cli/function.md +17 -133
  386. package/docs/cli/organization.md +11 -221
  387. package/docs/cli/plugin.md +29 -0
  388. package/docs/cli/query.md +2 -22
  389. package/docs/cli/secret.md +71 -251
  390. package/docs/cli/setup.md +138 -40
  391. package/docs/cli/skills.md +50 -39
  392. package/docs/cli/staticwebsite.md +32 -180
  393. package/docs/cli/tailordb.md +71 -427
  394. package/docs/cli/upgrade.md +2 -22
  395. package/docs/cli/user.md +78 -247
  396. package/docs/cli/workflow.md +150 -172
  397. package/docs/cli/workspace.md +167 -538
  398. package/docs/cli-reference.md +213 -96
  399. package/docs/configuration.md +40 -8
  400. package/docs/github-actions.md +72 -24
  401. package/docs/migration/v2.md +1316 -0
  402. package/docs/multi-environment.md +29 -7
  403. package/docs/plugin/custom.md +6 -6
  404. package/docs/plugin/index.md +9 -9
  405. package/docs/quickstart.md +8 -7
  406. package/docs/runtime.md +21 -12
  407. package/docs/services/aigateway.md +115 -0
  408. package/docs/services/auth.md +70 -61
  409. package/docs/services/executor.md +8 -5
  410. package/docs/services/http-adapter.md +16 -1
  411. package/docs/services/idp.md +55 -2
  412. package/docs/services/resolver.md +63 -11
  413. package/docs/services/secret.md +11 -11
  414. package/docs/services/staticwebsite.md +8 -2
  415. package/docs/services/tailordb-migration.md +43 -28
  416. package/docs/services/tailordb.md +200 -99
  417. package/docs/services/workflow.md +135 -59
  418. package/docs/testing.md +253 -145
  419. package/package.json +61 -47
  420. package/postinstall.mjs +4 -6
  421. package/dist/actor-J2gJ0eK5.d.mts +0 -24
  422. package/dist/application-76hhIhnJ.mjs.map +0 -1
  423. package/dist/application-av2raLs6.mjs +0 -4
  424. package/dist/authconnection-BIYzEh2p.d.mts +0 -39
  425. package/dist/authconnection-D8SJGMpj.mjs +0 -16
  426. package/dist/authconnection-D8SJGMpj.mjs.map +0 -1
  427. package/dist/brand-DlnJ375c.mjs.map +0 -1
  428. package/dist/chunk-BkoGK1jX.mjs +0 -21
  429. package/dist/cli/erd-viewer-assets/app.js +0 -1181
  430. package/dist/cli/erd-viewer-assets/index.html +0 -73
  431. package/dist/cli/erd-viewer-assets/serve.json +0 -13
  432. package/dist/cli/erd-viewer-assets/styles.css +0 -789
  433. package/dist/cli/index.d.mts +0 -5
  434. package/dist/cli/index.mjs.map +0 -1
  435. package/dist/cli/skills.d.mts +0 -1
  436. package/dist/cli/skills.mjs +0 -22
  437. package/dist/cli/skills.mjs.map +0 -1
  438. package/dist/client-C68VWo4g.mjs +0 -4
  439. package/dist/client-CobIRHl-.mjs.map +0 -1
  440. package/dist/context-CUBwSBq4.d.mts +0 -68
  441. package/dist/context-s0lxhu8_.mjs.map +0 -1
  442. package/dist/enum-constants-C7DaWeQo.mjs.map +0 -1
  443. package/dist/env-B-g-qgE4.d.mts +0 -7
  444. package/dist/errors-EsY4XO6O.mjs.map +0 -1
  445. package/dist/field-C4zdJLW5.mjs +0 -23
  446. package/dist/field-C4zdJLW5.mjs.map +0 -1
  447. package/dist/file-B58Dm-2P.mjs.map +0 -1
  448. package/dist/file-BzK8z3X-.d.mts +0 -250
  449. package/dist/file-utils-BHPxPXmn.mjs.map +0 -1
  450. package/dist/globals-ByrCoDip.mjs.map +0 -1
  451. package/dist/iconv-DreIffeM.mjs +0 -64
  452. package/dist/iconv-DreIffeM.mjs.map +0 -1
  453. package/dist/iconv-kwrmd1U_.d.mts +0 -122
  454. package/dist/idp-BlBPtXJ-.d.mts +0 -160
  455. package/dist/idp-Ch95ag8h.mjs.map +0 -1
  456. package/dist/index-CLxubakC.d.mts +0 -1225
  457. package/dist/index-CPRnOjjt.d.mts +0 -18
  458. package/dist/index-CQZVJ5SX.d.mts +0 -18
  459. package/dist/index-CfRFkXIO.d.mts +0 -47
  460. package/dist/index-DRhMpdnA.d.mts +0 -46
  461. package/dist/index-DUupuPhZ.d.mts +0 -18
  462. package/dist/interceptor-DOqRkCya.mjs.map +0 -1
  463. package/dist/job-BpsFXPbi.mjs +0 -54
  464. package/dist/job-BpsFXPbi.mjs.map +0 -1
  465. package/dist/kysely-type-D1e0Vwkd.mjs.map +0 -1
  466. package/dist/logger-DpJyJvNz.mjs +0 -221
  467. package/dist/logger-DpJyJvNz.mjs.map +0 -1
  468. package/dist/mock-DMgIygjE.mjs +0 -806
  469. package/dist/mock-DMgIygjE.mjs.map +0 -1
  470. package/dist/package-json-wzO6nV9O.mjs +0 -4
  471. package/dist/plugin-C_FyVSdl.d.mts +0 -634
  472. package/dist/registry-D0uB0OrK.mjs +0 -178
  473. package/dist/registry-D0uB0OrK.mjs.map +0 -1
  474. package/dist/runtime-C7qTBDD2.mjs.map +0 -1
  475. package/dist/schema-1msIhXwA.mjs.map +0 -1
  476. package/dist/secretmanager-B9h-U_8U.mjs +0 -25
  477. package/dist/secretmanager-B9h-U_8U.mjs.map +0 -1
  478. package/dist/secretmanager-CKLB3wAQ.d.mts +0 -55
  479. package/dist/seed-BH2FbrPV.mjs +0 -1171
  480. package/dist/seed-BH2FbrPV.mjs.map +0 -1
  481. package/dist/service-BHQIerYh.mjs +0 -4
  482. package/dist/service-DMohAx8a2.mjs.map +0 -1
  483. package/dist/service-wI3Hvrgx.mjs +0 -460
  484. package/dist/service-wI3Hvrgx.mjs.map +0 -1
  485. package/dist/tailordb-BlBGmQK-.d.mts +0 -863
  486. package/dist/telemetry-BQbbVo2t.mjs.map +0 -1
  487. package/dist/telemetry-w92bvGdC.mjs +0 -4
  488. package/dist/types-2Be3wSMc.mjs +0 -5
  489. package/dist/types-CmzfQP_m.mjs +0 -372
  490. package/dist/types-CmzfQP_m.mjs.map +0 -1
  491. package/dist/workflow--aPbA8Uq.mjs +0 -39
  492. package/dist/workflow--aPbA8Uq.mjs.map +0 -1
  493. package/dist/workflow-CMamswkK.d.mts +0 -96
  494. package/dist/workflow.generated-Bf1tWylx.d.mts +0 -1416
  495. package/docs/generator/builtin.md +0 -257
  496. package/docs/generator/custom.md +0 -147
  497. package/docs/generator/index.md +0 -66
@@ -1,1225 +0,0 @@
1
- import { C as FieldOutput, E as FieldValidateInput, F as InferFieldsOutput, I as JsonCompatible, L as JsonValue, M as TailorInvoker, N as TailorUser, R as Prettify, S as FieldOptions, g as TailorField$1, j as InferredAttributeMap, v as ArrayFieldOutput, w as TailorFieldType, x as FieldMetadata, y as DefinedFieldMetadata, z as output$1 } from "./tailordb-BlBGmQK-.mjs";
2
- import { F as UserAttributeListKey, I as UserAttributeMap, Q as AllowedValuesOutput, U as TailorDBInstance, W as TailorDBType, Z as AllowedValues, b as IdpDefinitionBrand, g as SecretsDefinitionBrand, i as AppConfig, j as DefinedAuth, k as AuthServiceInput, m as StaticWebsiteInput, n as RetryPolicy, p as StaticWebsiteDefinitionBrand, r as HttpAdapterConfigInput, t as ConcurrencyPolicy, w as IdPInput, y as IdPUserField } from "./workflow.generated-Bf1tWylx.mjs";
3
- import { A as IdpUserTrigger$1, C as GeneratorConfig, D as ExecutorInput, F as WebhookOperation$1, I as WorkflowOperation$1, L as AuthInvoker$1, M as ResolverExecutedTrigger$1, N as ScheduleTriggerInput, O as FunctionOperation$1, P as TailorDBTrigger$1, S as ResolverInput, T as AuthAccessTokenTrigger$1, j as IncomingWebhookTrigger$1, k as GqlOperation$1, n as Plugin, w as BaseGeneratorConfig, x as Resolver } from "./plugin-C_FyVSdl.mjs";
4
- import { n as TailorEnv } from "./env-B-g-qgE4.mjs";
5
- import { t as TailorActor } from "./actor-J2gJ0eK5.mjs";
6
- import { StandardSchemaV1 } from "@standard-schema/spec";
7
- import { Client } from "@urql/core";
8
- import { StandardCRON } from "ts-cron-validator";
9
-
10
- //#region src/configure/types/machine-user.d.ts
11
- interface MachineUserNameRegistry {}
12
- /**
13
- * Machine user name.
14
- *
15
- * When `tailor.d.ts` is generated (via `tailor-sdk deploy`/`generate`), this is narrowed
16
- * to the union of defined machine user names. When no machine users are registered yet,
17
- * falls back to `string` to avoid blocking editing before the first generate run.
18
- */
19
- type MachineUserName = keyof MachineUserNameRegistry extends never ? string : keyof MachineUserNameRegistry & string;
20
- //#endregion
21
- //#region src/configure/types/type.d.ts
22
- type TailorAnyField = TailorField<any>;
23
- /**
24
- * Full TailorField interface with builder methods.
25
- * Extends the minimal structural interface from types/ with fluent API methods.
26
- */
27
- interface TailorField<Defined extends DefinedFieldMetadata = DefinedFieldMetadata, Output = any, M extends FieldMetadata = FieldMetadata, T extends TailorFieldType = TailorFieldType> extends TailorField$1<Defined, Output, M, T> {
28
- readonly fields: Record<string, TailorAnyField>;
29
- _metadata: M;
30
- /**
31
- * Set a description for the field
32
- * @param description - The description text
33
- * @returns The field with updated metadata
34
- */
35
- description<CurrentDefined extends Defined>(this: CurrentDefined extends {
36
- description: unknown;
37
- } ? never : TailorField<CurrentDefined, Output>, description: string): TailorField<Prettify<CurrentDefined & {
38
- description: true;
39
- }>, Output>;
40
- /**
41
- * Set a custom type name for enum or nested types
42
- * @param typeName - The custom type name
43
- * @returns The field with updated metadata
44
- */
45
- typeName<CurrentDefined extends Defined>(this: CurrentDefined extends {
46
- typeName: unknown;
47
- } ? never : CurrentDefined extends {
48
- type: "enum" | "nested";
49
- } ? TailorField<CurrentDefined, Output> : never, typeName: string): TailorField<Prettify<CurrentDefined & {
50
- typeName: true;
51
- }>, Output>;
52
- /**
53
- * Add validation functions to the field
54
- * @param validate - One or more validation functions
55
- * @returns The field with updated metadata
56
- */
57
- validate<CurrentDefined extends Defined>(this: CurrentDefined extends {
58
- validate: unknown;
59
- } ? never : TailorField<CurrentDefined, Output>, ...validate: FieldValidateInput<Output>[]): TailorField<Prettify<CurrentDefined & {
60
- validate: true;
61
- }>, Output>;
62
- /**
63
- * Parse and validate a value against this field's validation rules
64
- * Returns StandardSchema Result type with success or failure
65
- * @param args - Value, context data, and user
66
- * @returns Validation result
67
- */
68
- parse(args: FieldParseArgs): StandardSchemaV1.Result<Output>;
69
- /**
70
- * Internal parse method that tracks field path for nested validation
71
- * @private
72
- * @param args - Parse arguments
73
- * @returns Validation result
74
- */
75
- _parseInternal(args: FieldParseInternalArgs): StandardSchemaV1.Result<Output>;
76
- }
77
- type FieldParseArgs = {
78
- value: unknown;
79
- data: unknown;
80
- user: TailorUser;
81
- };
82
- type FieldParseInternalArgs = {
83
- value: any;
84
- data: unknown;
85
- user: TailorUser;
86
- pathArray: string[];
87
- };
88
- /**
89
- * Create a UUID field for resolver input/output.
90
- * @param options - Field configuration options
91
- * @returns A UUID field
92
- * @example t.uuid()
93
- */
94
- //#endregion
95
- //#region src/configure/types/idp-name.d.ts
96
- interface IdpNameRegistry {}
97
- /**
98
- * IdP namespace name.
99
- *
100
- * When `tailor.d.ts` is generated (via `tailor-sdk deploy`/`generate`), this is narrowed
101
- * to the union of defined IdP names. When no IdPs are registered yet, falls back to
102
- * `string` to avoid blocking editing before the first generate run.
103
- */
104
- type IdpName = keyof IdpNameRegistry extends never ? string : keyof IdpNameRegistry & string;
105
- //#endregion
106
- //#region src/configure/services/auth/index.d.ts
107
- type MachineUserAttributeFields = Record<string, TailorField$1<DefinedFieldMetadata, unknown, FieldMetadata, TailorFieldType>>;
108
- type PlaceholderUser = TailorDBInstance<Record<string, never>, Record<string, never>>;
109
- type PlaceholderAttributeMap = UserAttributeMap<PlaceholderUser>;
110
- type PlaceholderAttributeList = UserAttributeListKey<PlaceholderUser>[];
111
- type UserProfileAuthInput<User extends TailorDBInstance, AttributeMap extends UserAttributeMap<User>, AttributeList extends UserAttributeListKey<User>[], MachineUserNames extends string, ConnectionNames extends string = string> = Omit<AuthServiceInput<User, AttributeMap, AttributeList, MachineUserNames, undefined, ConnectionNames>, "userProfile" | "machineUserAttributes"> & {
112
- userProfile: NonNullable<AuthServiceInput<User, AttributeMap, AttributeList, MachineUserNames, undefined>["userProfile"]>;
113
- machineUserAttributes?: never;
114
- };
115
- type MachineUserOnlyAuthInput<MachineUserNames extends string, MachineUserAttributes extends MachineUserAttributeFields, ConnectionNames extends string = string> = Omit<AuthServiceInput<PlaceholderUser, PlaceholderAttributeMap, PlaceholderAttributeList, MachineUserNames, MachineUserAttributes, ConnectionNames>, "userProfile" | "machineUserAttributes"> & {
116
- userProfile?: never;
117
- machineUserAttributes: MachineUserAttributes;
118
- };
119
- /**
120
- * Invoker type compatible with tailor.v1.AuthInvoker
121
- * - namespace: auth service name
122
- * - machineUserName: machine user name
123
- */
124
- type AuthInvoker<M extends string> = Omit<AuthInvoker$1, "machineUserName"> & {
125
- machineUserName: M;
126
- };
127
- /**
128
- * Define an auth service for the Tailor SDK.
129
- * @template Name
130
- * @template User
131
- * @template AttributeMap
132
- * @template AttributeList
133
- * @template MachineUserNames
134
- * @template M
135
- * @param name - Auth service name
136
- * @param config - Auth service configuration
137
- * @returns Defined auth service
138
- */
139
- declare function defineAuth<const Name extends string, const User extends TailorDBInstance, const AttributeMap extends UserAttributeMap<User>, const AttributeList extends UserAttributeListKey<User>[], const MachineUserNames extends string, const ConnectionNames extends string = string>(name: Name, config: UserProfileAuthInput<User, AttributeMap, AttributeList, MachineUserNames, ConnectionNames>): DefinedAuth<Name, UserProfileAuthInput<User, AttributeMap, AttributeList, MachineUserNames, ConnectionNames>, MachineUserNames>;
140
- declare function defineAuth<const Name extends string, const MachineUserAttributes extends MachineUserAttributeFields, const MachineUserNames extends string, const ConnectionNames extends string = string>(name: Name, config: MachineUserOnlyAuthInput<MachineUserNames, MachineUserAttributes, ConnectionNames>): DefinedAuth<Name, MachineUserOnlyAuthInput<MachineUserNames, MachineUserAttributes, ConnectionNames>, MachineUserNames>;
141
- //#endregion
142
- //#region src/configure/services/resolver/resolver.d.ts
143
- type Context<Input extends Record<string, TailorAnyField> | undefined> = {
144
- input: Input extends Record<string, TailorAnyField> ? InferFieldsOutput<Input> : never;
145
- user: TailorUser;
146
- invoker?: TailorInvoker;
147
- env: TailorEnv;
148
- };
149
- type OutputType<O> = O extends TailorAnyField ? output$1<O> : O extends Record<string, TailorAnyField> ? InferFieldsOutput<O> : never;
150
- /**
151
- * Normalized output type that preserves generic type information.
152
- * - If Output is already a TailorField, use it as-is
153
- * - If Output is a Record of fields, wrap it as a nested TailorField
154
- */
155
- type NormalizedOutput<Output extends TailorAnyField | Record<string, TailorAnyField>> = Output extends TailorAnyField ? Output : TailorField<{
156
- type: "nested";
157
- array: false;
158
- }, InferFieldsOutput<Extract<Output, Record<string, TailorAnyField>>>>;
159
- type ResolverReturn<Input extends Record<string, TailorAnyField> | undefined, Output extends TailorAnyField | Record<string, TailorAnyField>> = Omit<ResolverInput, "input" | "output" | "body" | "authInvoker"> & Readonly<{
160
- input?: Input;
161
- output: NormalizedOutput<Output>;
162
- body: (context: Context<Input>) => OutputType<Output> | Promise<OutputType<Output>>;
163
- authInvoker?: AuthInvoker<string> | MachineUserName;
164
- }>;
165
- /**
166
- * Create a resolver definition for the Tailor SDK.
167
- *
168
- * The `body` function receives a context with `input` (typed from `config.input`),
169
- * `user`, `invoker` (reflects `authInvoker` delegation), and `env`.
170
- * The return value of `body` must match the `output` type.
171
- *
172
- * `output` accepts either a single TailorField (e.g. `t.string()`) or a
173
- * Record of fields (e.g. `{ name: t.string(), age: t.int() }`).
174
- *
175
- * `publishEvents` enables publishing execution events for this resolver.
176
- * If not specified, this is automatically set to true when an executor uses this resolver
177
- * with `resolverExecutedTrigger`. If explicitly set to false while an executor uses this
178
- * resolver, an error will be thrown during apply.
179
- * @template Input
180
- * @template Output
181
- * @param config - Resolver configuration
182
- * @returns Normalized resolver configuration
183
- * @example
184
- * import { createResolver, t } from "@tailor-platform/sdk";
185
- *
186
- * export default createResolver({
187
- * name: "getUser",
188
- * operation: "query",
189
- * input: {
190
- * id: t.string(),
191
- * },
192
- * body: async ({ input, user }) => {
193
- * const db = getDB("tailordb");
194
- * const result = await db.selectFrom("User").selectAll().where("id", "=", input.id).executeTakeFirst();
195
- * return { name: result?.name ?? "", email: result?.email ?? "" };
196
- * },
197
- * output: t.object({
198
- * name: t.string(),
199
- * email: t.string(),
200
- * }),
201
- * });
202
- */
203
- declare function createResolver<Input extends Record<string, TailorAnyField> | undefined = undefined, Output extends TailorAnyField | Record<string, TailorAnyField> = TailorAnyField>(config: Omit<ResolverInput, "input" | "output" | "body" | "authInvoker"> & Readonly<{
204
- input?: Input;
205
- output: Output;
206
- body: (context: Context<Input>) => OutputType<Output> | Promise<OutputType<Output>>;
207
- authInvoker?: AuthInvoker<string> | MachineUserName;
208
- }>): ResolverReturn<Input, Output>;
209
- type ResolverConfig = ReturnType<typeof createResolver<any, any>>;
210
- //#endregion
211
- //#region src/types/resolver.d.ts
212
- type QueryType = Resolver["operation"];
213
- //#endregion
214
- //#region src/configure/services/workflow/test-env-key.d.ts
215
- /**
216
- * Env-var fallback read by `.trigger()` when `mockWorkflow().setEnv()` is unset.
217
- * @deprecated Use `mockWorkflow().setEnv()` from `@tailor-platform/sdk/vitest`.
218
- * @internal
219
- */
220
- declare const WORKFLOW_TEST_ENV_KEY = "TAILOR_TEST_WORKFLOW_ENV";
221
- //#endregion
222
- //#region src/configure/services/workflow/job.d.ts
223
- /**
224
- * Context object passed as the second argument to workflow job body functions.
225
- */
226
- type WorkflowJobContext = {
227
- env: TailorEnv;
228
- invoker?: TailorInvoker;
229
- };
230
- /**
231
- * The body function type for a workflow job.
232
- * Resolves to the callable signature when `I` / `O` are JsonValue-compatible,
233
- * or to a template-literal error string that surfaces at the `body:` property.
234
- */
235
- type JobBody<I, O> = [null] extends [I] ? "ERROR: Input cannot be null at the top level" : [I] extends [undefined] ? [O] extends [JsonCompatible<O> | undefined | void] ? (input: I, context: WorkflowJobContext) => O | Promise<O> : "ERROR: Output must be JsonValue-compatible (plain objects/arrays; no class instances or functions)" : [undefined] extends [I] ? "ERROR: Input cannot include undefined at the top level" : [I] extends [JsonCompatible<I>] ? [O] extends [JsonCompatible<O> | undefined | void] ? (input: I, context: WorkflowJobContext) => O | Promise<O> : "ERROR: Output must be JsonValue-compatible (plain objects/arrays; no class instances or functions)" : "ERROR: Input must be JsonValue-compatible (plain objects/arrays; no class instances or functions)";
236
- /**
237
- * WorkflowJob represents a job that can be triggered in a workflow.
238
- *
239
- * Type constraints:
240
- * - Input: Must be JsonValue-compatible (plain objects/arrays; no class instances or functions) or undefined.
241
- * - Output: Must be JsonValue-compatible (plain objects/arrays; no class instances or functions), undefined, or void.
242
- * - Trigger returns `Awaited<Output>` as-is (no Jsonify transformation).
243
- */
244
- interface WorkflowJob<Name extends string = string, Input = undefined, Output = undefined> {
245
- name: Name;
246
- /**
247
- * Trigger this job with the given input. Returns a Promise that resolves
248
- * to the job's output value.
249
- * @example
250
- * body: async (input) => {
251
- * const a = await jobA.trigger({ id: input.id });
252
- * const b = await jobB.trigger({ id: input.id });
253
- * return { a, b };
254
- * }
255
- */
256
- trigger: [Input] extends [undefined] ? () => Promise<Awaited<Output>> : (input: Input) => Promise<Awaited<Output>>;
257
- body: (input: Input, context: WorkflowJobContext) => Output | Promise<Output>;
258
- }
259
- interface CreateWorkflowJobConfig<Name extends string, I, O> {
260
- readonly name: Name;
261
- readonly body: JobBody<I, O>;
262
- }
263
- /**
264
- * Create a workflow job definition.
265
- *
266
- * All jobs must be named exports from the workflow file.
267
- * Job names must be unique across the entire project.
268
- *
269
- * Input and output must be JsonValue-compatible (primitives, plain objects, arrays).
270
- * Functions and objects with a `toJSON` method are rejected at the type level;
271
- * class instances exposing methods are rejected via the property walk.
272
- * @param config - Job configuration with name and body function.
273
- * @param config.name - Unique job name across the project.
274
- * @param config.body - Async function that processes the job input.
275
- * @returns A WorkflowJob that can be triggered from other jobs.
276
- * @example
277
- * // Simple job with async body:
278
- * export const fetchData = createWorkflowJob({
279
- * name: "fetch-data",
280
- * body: async (input: { id: string }) => {
281
- * const db = getDB("tailordb");
282
- * return await db.selectFrom("Table").selectAll().where("id", "=", input.id).executeTakeFirst();
283
- * },
284
- * });
285
- * @example
286
- * // Orchestrator job that fans out to other jobs.
287
- * export const orchestrate = createWorkflowJob({
288
- * name: "orchestrate",
289
- * body: async (input: { orderId: string }) => {
290
- * const inventory = await checkInventory.trigger({ orderId: input.orderId });
291
- * const payment = await processPayment.trigger({ orderId: input.orderId });
292
- * return { inventory, payment };
293
- * },
294
- * });
295
- */
296
- declare function createWorkflowJob<const Name extends string, I = undefined, O = undefined>(config: CreateWorkflowJobConfig<Name, I, O>): WorkflowJob<Name, I, Awaited<O>>;
297
- //#endregion
298
- //#region src/configure/services/workflow/workflow.d.ts
299
- interface WorkflowConfig<Job extends WorkflowJob<any, any, any> = WorkflowJob<any, any, any>> {
300
- name: string;
301
- mainJob: Job;
302
- retryPolicy?: RetryPolicy;
303
- concurrencyPolicy?: ConcurrencyPolicy;
304
- }
305
- interface Workflow<Job extends WorkflowJob<any, any, any> = WorkflowJob<any, any, any>> {
306
- name: string;
307
- mainJob: Job;
308
- retryPolicy?: RetryPolicy;
309
- concurrencyPolicy?: ConcurrencyPolicy;
310
- trigger: (args: Parameters<Job["trigger"]>[0], options?: {
311
- authInvoker: AuthInvoker<string> | MachineUserName;
312
- }) => Promise<string>;
313
- }
314
- interface WorkflowDefinition<Job extends WorkflowJob<any, any, any>> {
315
- name: string;
316
- mainJob: Job;
317
- retryPolicy?: RetryPolicy;
318
- concurrencyPolicy?: ConcurrencyPolicy;
319
- }
320
- /**
321
- * Create a workflow definition that can be triggered via the Tailor SDK.
322
- * In production, bundler transforms .trigger() calls to tailor.workflow.triggerWorkflow().
323
- *
324
- * The workflow MUST be the default export of the file.
325
- * All jobs referenced by the workflow MUST be named exports.
326
- * @template Job
327
- * @param config - Workflow configuration
328
- * @returns Defined workflow
329
- * @example
330
- * export const fetchData = createWorkflowJob({ name: "fetch-data", body: async (input: { id: string }) => ({ id: input.id }) });
331
- * export const processData = createWorkflowJob({
332
- * name: "process-data",
333
- * body: async (input: { id: string }) => {
334
- * const data = await fetchData.trigger({ id: input.id });
335
- * return { data };
336
- * },
337
- * });
338
- *
339
- * // Workflow must be default export; mainJob is the entry point
340
- * export default createWorkflow({
341
- * name: "data-processing",
342
- * mainJob: processData,
343
- * });
344
- */
345
- declare function createWorkflow<Job extends WorkflowJob<any, any, any>>(config: WorkflowDefinition<Job>): Workflow<Job>;
346
- //#endregion
347
- //#region src/configure/services/executor/operation.d.ts
348
- /** Function-based executor operation. The body receives the trigger args and the `invoker`. */
349
- type FunctionOperation<Args> = Omit<FunctionOperation$1, "body" | "authInvoker"> & {
350
- body: (args: Args & {
351
- invoker?: TailorInvoker;
352
- }) => void | Promise<void>;
353
- authInvoker?: AuthInvoker<string> | MachineUserName;
354
- };
355
- type UrqlOperationArgs = Parameters<Client["query"] | Client["mutation"]>;
356
- /** GraphQL-based executor operation. Executes a GraphQL query or mutation. */
357
- type GqlOperation<Args> = Omit<GqlOperation$1, "query" | "variables" | "authInvoker"> & {
358
- query: UrqlOperationArgs[0];
359
- variables?: (args: Args) => UrqlOperationArgs[1];
360
- authInvoker?: AuthInvoker<string> | MachineUserName;
361
- };
362
- type RequestHeader = "A-IM" | "Accept" | "Accept-Additions" | "Accept-CH" | "Accept-Charset" | "Accept-Datetime" | "Accept-Encoding" | "Accept-Features" | "Accept-Language" | "Accept-Patch" | "Accept-Post" | "Accept-Ranges" | "Accept-Signature" | "Access-Control" | "Access-Control-Allow-Credentials" | "Access-Control-Allow-Headers" | "Access-Control-Allow-Methods" | "Access-Control-Allow-Origin" | "Access-Control-Expose-Headers" | "Access-Control-Max-Age" | "Access-Control-Request-Headers" | "Access-Control-Request-Method" | "Age" | "Allow" | "ALPN" | "Alt-Svc" | "Alt-Used" | "Alternates" | "AMP-Cache-Transform" | "Apply-To-Redirect-Ref" | "Authentication-Control" | "Authentication-Info" | "Authorization" | "Available-Dictionary" | "C-Ext" | "C-Man" | "C-Opt" | "C-PEP" | "C-PEP-Info" | "Cache-Control" | "Cache-Status" | "Cal-Managed-ID" | "CalDAV-Timezones" | "Capsule-Protocol" | "CDN-Cache-Control" | "CDN-Loop" | "Cert-Not-After" | "Cert-Not-Before" | "Clear-Site-Data" | "Client-Cert" | "Client-Cert-Chain" | "Close" | "CMCD-Object" | "CMCD-Request" | "CMCD-Session" | "CMCD-Status" | "CMSD-Dynamic" | "CMSD-Static" | "Concealed-Auth-Export" | "Configuration-Context" | "Connection" | "Content-Base" | "Content-Digest" | "Content-Disposition" | "Content-Encoding" | "Content-ID" | "Content-Language" | "Content-Length" | "Content-Location" | "Content-MD5" | "Content-Range" | "Content-Script-Type" | "Content-Security-Policy" | "Content-Security-Policy-Report-Only" | "Content-Style-Type" | "Content-Type" | "Content-Version" | "Cookie" | "Cookie2" | "Cross-Origin-Embedder-Policy" | "Cross-Origin-Embedder-Policy-Report-Only" | "Cross-Origin-Opener-Policy" | "Cross-Origin-Opener-Policy-Report-Only" | "Cross-Origin-Resource-Policy" | "CTA-Common-Access-Token" | "DASL" | "Date" | "DAV" | "Default-Style" | "Delta-Base" | "Deprecation" | "Depth" | "Derived-From" | "Destination" | "Differential-ID" | "Dictionary-ID" | "Digest" | "DPoP" | "DPoP-Nonce" | "Early-Data" | "EDIINT-Features" | "ETag" | "Expect" | "Expect-CT" | "Expires" | "Ext" | "Forwarded" | "From" | "GetProfile" | "Hobareg" | "Host" | "HTTP2-Settings" | "If" | "If-Match" | "If-Modified-Since" | "If-None-Match" | "If-Range" | "If-Schedule-Tag-Match" | "If-Unmodified-Since" | "IM" | "Include-Referred-Token-Binding-ID" | "Isolation" | "Keep-Alive" | "Label" | "Last-Event-ID" | "Last-Modified" | "Link" | "Link-Template" | "Location" | "Lock-Token" | "Man" | "Max-Forwards" | "Memento-Datetime" | "Meter" | "Method-Check" | "Method-Check-Expires" | "MIME-Version" | "Negotiate" | "NEL" | "OData-EntityId" | "OData-Isolation" | "OData-MaxVersion" | "OData-Version" | "Opt" | "Optional-WWW-Authenticate" | "Ordering-Type" | "Origin" | "Origin-Agent-Cluster" | "OSCORE" | "OSLC-Core-Version" | "Overwrite" | "P3P" | "PEP" | "PEP-Info" | "Permissions-Policy" | "PICS-Label" | "Ping-From" | "Ping-To" | "Position" | "Pragma" | "Prefer" | "Preference-Applied" | "Priority" | "ProfileObject" | "Protocol" | "Protocol-Info" | "Protocol-Query" | "Protocol-Request" | "Proxy-Authenticate" | "Proxy-Authentication-Info" | "Proxy-Authorization" | "Proxy-Features" | "Proxy-Instruction" | "Proxy-Status" | "Public" | "Public-Key-Pins" | "Public-Key-Pins-Report-Only" | "Range" | "Redirect-Ref" | "Referer" | "Referer-Root" | "Referrer-Policy" | "Refresh" | "Repeatability-Client-ID" | "Repeatability-First-Sent" | "Repeatability-Request-ID" | "Repeatability-Result" | "Replay-Nonce" | "Reporting-Endpoints" | "Repr-Digest" | "Retry-After" | "Safe" | "Schedule-Reply" | "Schedule-Tag" | "Sec-GPC" | "Sec-Purpose" | "Sec-Token-Binding" | "Sec-WebSocket-Accept" | "Sec-WebSocket-Extensions" | "Sec-WebSocket-Key" | "Sec-WebSocket-Protocol" | "Sec-WebSocket-Version" | "Security-Scheme" | "Server" | "Server-Timing" | "Set-Cookie" | "Set-Cookie2" | "SetProfile" | "Signature" | "Signature-Input" | "SLUG" | "SoapAction" | "Status-URI" | "Strict-Transport-Security" | "Sunset" | "Surrogate-Capability" | "Surrogate-Control" | "TCN" | "TE" | "Timeout" | "Timing-Allow-Origin" | "Topic" | "Traceparent" | "Tracestate" | "Trailer" | "Transfer-Encoding" | "TTL" | "Upgrade" | "Urgency" | "URI" | "Use-As-Dictionary" | "User-Agent" | "Variant-Vary" | "Vary" | "Via" | "Want-Content-Digest" | "Want-Digest" | "Want-Repr-Digest" | "Warning" | "WWW-Authenticate" | "X-Content-Type-Options" | "X-Frame-Options" | (string & {});
363
- /** Outbound webhook executor operation. Sends HTTP requests to external URLs. */
364
- type WebhookOperation<Args> = Omit<WebhookOperation$1, "url" | "requestBody" | "headers"> & {
365
- url: (args: Args) => string;
366
- requestBody?: (args: Args) => Record<string, unknown>;
367
- headers?: { [key in RequestHeader]?: string | {
368
- vault: string;
369
- key: string;
370
- } };
371
- };
372
- /**
373
- * Extract mainJob's Input type from Workflow.
374
- * Workflow<Job> -> Job is WorkflowJob<Name, Input, Output> -> Input
375
- */
376
- type WorkflowInput$1<W extends Workflow> = Parameters<W["trigger"]>[0];
377
- /** Workflow-triggering executor operation. Triggers a workflow in response to an event. */
378
- type WorkflowOperation<Args, W extends Workflow = Workflow> = Omit<WorkflowOperation$1, "workflowName" | "args" | "authInvoker"> & {
379
- workflow: W;
380
- args?: WorkflowInput$1<W> | ((args: Args) => WorkflowInput$1<W>);
381
- authInvoker?: AuthInvoker<string> | MachineUserName;
382
- };
383
- type Operation<Args> = FunctionOperation<Args> | GqlOperation<Args> | WebhookOperation<Args> | WorkflowOperation<Args>;
384
- //#endregion
385
- //#region src/configure/services/executor/trigger/event.d.ts
386
- interface EventArgs {
387
- workspaceId: string;
388
- appNamespace: string;
389
- env: TailorEnv;
390
- actor: TailorActor | null;
391
- }
392
- interface RecordArgs extends EventArgs {
393
- typeName: string;
394
- }
395
- interface RecordCreatedArgs<T extends TailorDBType> extends RecordArgs {
396
- event: "created";
397
- rawEvent: "tailordb.type_record.created";
398
- newRecord: output$1<T>;
399
- }
400
- interface RecordUpdatedArgs<T extends TailorDBType> extends RecordArgs {
401
- event: "updated";
402
- rawEvent: "tailordb.type_record.updated";
403
- newRecord: output$1<T>;
404
- oldRecord: output$1<T>;
405
- }
406
- interface RecordDeletedArgs<T extends TailorDBType> extends RecordArgs {
407
- event: "deleted";
408
- rawEvent: "tailordb.type_record.deleted";
409
- oldRecord: output$1<T>;
410
- }
411
- /**
412
- * Args for resolverExecutedTrigger. This is a discriminated union on `success`.
413
- *
414
- * When `success` is true, `result` contains the resolver output and `error` is never.
415
- * When `success` is false, `error` contains the error message and `result` is never.
416
- *
417
- * Narrow on `success` to safely access either `result` or `error`.
418
- * @example
419
- * body: async (args) => {
420
- * if (args.success) {
421
- * console.log(args.result);
422
- * } else {
423
- * console.error(args.error);
424
- * }
425
- * }
426
- */
427
- type ResolverExecutedArgs<R extends ResolverConfig> = EventArgs & {
428
- resolverName: string;
429
- } & ({
430
- success: true;
431
- result: output$1<R["output"]>;
432
- error?: never;
433
- } | {
434
- success: false;
435
- result?: never;
436
- error: string;
437
- });
438
- interface IdpUserCreatedArgs extends EventArgs {
439
- event: "created";
440
- rawEvent: "idp.user.created";
441
- namespaceName: string;
442
- userId: string;
443
- }
444
- interface IdpUserUpdatedArgs extends EventArgs {
445
- event: "updated";
446
- rawEvent: "idp.user.updated";
447
- namespaceName: string;
448
- userId: string;
449
- }
450
- interface IdpUserDeletedArgs extends EventArgs {
451
- event: "deleted";
452
- rawEvent: "idp.user.deleted";
453
- namespaceName: string;
454
- userId: string;
455
- }
456
- type IdpUserArgs = IdpUserCreatedArgs | IdpUserUpdatedArgs | IdpUserDeletedArgs;
457
- interface AuthAccessTokenIssuedArgs extends EventArgs {
458
- event: "issued";
459
- rawEvent: "auth.access_token.issued";
460
- namespaceName: string;
461
- userId: string;
462
- }
463
- interface AuthAccessTokenRefreshedArgs extends EventArgs {
464
- event: "refreshed";
465
- rawEvent: "auth.access_token.refreshed";
466
- namespaceName: string;
467
- userId: string;
468
- }
469
- interface AuthAccessTokenRevokedArgs extends EventArgs {
470
- event: "revoked";
471
- rawEvent: "auth.access_token.revoked";
472
- namespaceName: string;
473
- userId: string;
474
- }
475
- type AuthAccessTokenArgs = AuthAccessTokenIssuedArgs | AuthAccessTokenRefreshedArgs | AuthAccessTokenRevokedArgs;
476
- declare const recordEventMap: {
477
- readonly created: "tailordb.type_record.created";
478
- readonly updated: "tailordb.type_record.updated";
479
- readonly deleted: "tailordb.type_record.deleted";
480
- };
481
- type RecordEventMap = typeof recordEventMap;
482
- type RecordEventKind = keyof RecordEventMap;
483
- type RecordArgsMap<T extends TailorDBType> = {
484
- created: RecordCreatedArgs<T>;
485
- updated: RecordUpdatedArgs<T>;
486
- deleted: RecordDeletedArgs<T>;
487
- };
488
- type RecordMultiArgs<T extends TailorDBType, K extends RecordEventKind[]> = RecordArgsMap<T>[K[number]];
489
- type TailorDBTrigger<Args> = TailorDBTrigger$1 & {
490
- __args: Args;
491
- };
492
- type RecordTriggerOptions<T extends TailorDBType, Args> = {
493
- type: T;
494
- condition?: (args: Args) => boolean;
495
- };
496
- /**
497
- * Create a trigger that fires when a TailorDB record is created.
498
- * @template T
499
- * @param options - Trigger options
500
- * @returns Record created trigger
501
- */
502
- declare function recordCreatedTrigger<T extends TailorDBType>(options: RecordTriggerOptions<T, RecordCreatedArgs<T>>): TailorDBTrigger<RecordCreatedArgs<T>>;
503
- /**
504
- * Create a trigger that fires when a TailorDB record is updated.
505
- * @template T
506
- * @param options - Trigger options
507
- * @returns Record updated trigger
508
- */
509
- declare function recordUpdatedTrigger<T extends TailorDBType>(options: RecordTriggerOptions<T, RecordUpdatedArgs<T>>): TailorDBTrigger<RecordUpdatedArgs<T>>;
510
- /**
511
- * Create a trigger that fires when a TailorDB record is deleted.
512
- * @template T
513
- * @param options - Trigger options
514
- * @returns Record deleted trigger
515
- */
516
- declare function recordDeletedTrigger<T extends TailorDBType>(options: RecordTriggerOptions<T, RecordDeletedArgs<T>>): TailorDBTrigger<RecordDeletedArgs<T>>;
517
- type RecordTriggerMultiOptions<T extends TailorDBType, K extends RecordEventKind[]> = {
518
- type: T;
519
- events: K;
520
- condition?: (args: RecordMultiArgs<T, K>) => boolean;
521
- };
522
- /**
523
- * Create a trigger that fires on multiple TailorDB record event types.
524
- * @template T
525
- * @template K
526
- * @param options - Trigger options with events array
527
- * @returns TailorDB record trigger
528
- */
529
- declare function recordTrigger<T extends TailorDBType, const K extends [RecordEventKind, ...RecordEventKind[]]>(options: RecordTriggerMultiOptions<T, K>): TailorDBTrigger<RecordMultiArgs<T, K>>;
530
- type ResolverExecutedTrigger<Args> = ResolverExecutedTrigger$1 & {
531
- __args: Args;
532
- };
533
- type ResolverExecutedTriggerOptions<R extends ResolverConfig> = {
534
- resolver: R;
535
- condition?: (args: ResolverExecutedArgs<R>) => boolean;
536
- };
537
- /**
538
- * Create a trigger that fires when a resolver is executed.
539
- * @template R
540
- * @param options - Trigger options
541
- * @returns Resolver executed trigger
542
- */
543
- declare function resolverExecutedTrigger<R extends ResolverConfig>(options: ResolverExecutedTriggerOptions<R>): ResolverExecutedTrigger<ResolverExecutedArgs<R>>;
544
- declare const idpUserEventMap: {
545
- readonly created: "idp.user.created";
546
- readonly updated: "idp.user.updated";
547
- readonly deleted: "idp.user.deleted";
548
- };
549
- type IdpUserEventMap = typeof idpUserEventMap;
550
- type IdpUserEventKind = keyof IdpUserEventMap;
551
- type IdpUserArgsMap = {
552
- created: IdpUserCreatedArgs;
553
- updated: IdpUserUpdatedArgs;
554
- deleted: IdpUserDeletedArgs;
555
- };
556
- type IdpUserMultiArgs<K extends IdpUserEventKind[]> = IdpUserArgsMap[K[number]];
557
- type IdpUserTrigger<Args> = IdpUserTrigger$1 & {
558
- __args: Args;
559
- };
560
- type IdpUserSingleTriggerOptions = {
561
- /**
562
- * IdP namespace name to subscribe to. Required when the project defines
563
- * multiple IdPs; optional when a single IdP exists. Must match an IdP name
564
- * declared in `defineConfig({ idp: [...] })`.
565
- */
566
- idp?: IdpName;
567
- };
568
- /**
569
- * Create a trigger that fires when an IdP user is created.
570
- * @param options - Trigger options
571
- * @param options.idp - IdP namespace name to subscribe to
572
- * @returns IdP user created trigger
573
- */
574
- declare function idpUserCreatedTrigger(options?: IdpUserSingleTriggerOptions): IdpUserTrigger<IdpUserCreatedArgs>;
575
- /**
576
- * Create a trigger that fires when an IdP user is updated.
577
- * @param options - Trigger options
578
- * @param options.idp - IdP namespace name to subscribe to
579
- * @returns IdP user updated trigger
580
- */
581
- declare function idpUserUpdatedTrigger(options?: IdpUserSingleTriggerOptions): IdpUserTrigger<IdpUserUpdatedArgs>;
582
- /**
583
- * Create a trigger that fires when an IdP user is deleted.
584
- * @param options - Trigger options
585
- * @param options.idp - IdP namespace name to subscribe to
586
- * @returns IdP user deleted trigger
587
- */
588
- declare function idpUserDeletedTrigger(options?: IdpUserSingleTriggerOptions): IdpUserTrigger<IdpUserDeletedArgs>;
589
- type IdpUserTriggerOptions<K extends IdpUserEventKind[]> = {
590
- events: K;
591
- /**
592
- * IdP namespace name to subscribe to. Required when the project defines
593
- * multiple IdPs; optional when a single IdP exists. Must match an IdP name
594
- * declared in `defineConfig({ idp: [...] })`.
595
- */
596
- idp?: IdpName;
597
- };
598
- /**
599
- * Create a trigger that fires on multiple IdP user event types.
600
- * @template K
601
- * @param options - Trigger options with events array
602
- * @param options.events - IdP user event kinds to subscribe to
603
- * @param options.idp - IdP namespace name to subscribe to
604
- * @returns IdP user trigger
605
- */
606
- declare function idpUserTrigger<const K extends [IdpUserEventKind, ...IdpUserEventKind[]]>(options: IdpUserTriggerOptions<K>): IdpUserTrigger<IdpUserMultiArgs<K>>;
607
- declare const authAccessTokenEventMap: {
608
- readonly issued: "auth.access_token.issued";
609
- readonly refreshed: "auth.access_token.refreshed";
610
- readonly revoked: "auth.access_token.revoked";
611
- };
612
- type AuthAccessTokenEventMap = typeof authAccessTokenEventMap;
613
- type AuthAccessTokenEventKind = keyof AuthAccessTokenEventMap;
614
- type AuthAccessTokenArgsMap = {
615
- issued: AuthAccessTokenIssuedArgs;
616
- refreshed: AuthAccessTokenRefreshedArgs;
617
- revoked: AuthAccessTokenRevokedArgs;
618
- };
619
- type AuthAccessTokenMultiArgs<K extends AuthAccessTokenEventKind[]> = AuthAccessTokenArgsMap[K[number]];
620
- type AuthAccessTokenTrigger<Args> = AuthAccessTokenTrigger$1 & {
621
- __args: Args;
622
- };
623
- /**
624
- * Create a trigger that fires when an access token is issued.
625
- * @returns Auth access token issued trigger
626
- */
627
- declare function authAccessTokenIssuedTrigger(): AuthAccessTokenTrigger<AuthAccessTokenIssuedArgs>;
628
- /**
629
- * Create a trigger that fires when an access token is refreshed.
630
- * @returns Auth access token refreshed trigger
631
- */
632
- declare function authAccessTokenRefreshedTrigger(): AuthAccessTokenTrigger<AuthAccessTokenRefreshedArgs>;
633
- /**
634
- * Create a trigger that fires when an access token is revoked.
635
- * @returns Auth access token revoked trigger
636
- */
637
- declare function authAccessTokenRevokedTrigger(): AuthAccessTokenTrigger<AuthAccessTokenRevokedArgs>;
638
- type AuthAccessTokenTriggerOptions<K extends AuthAccessTokenEventKind[]> = {
639
- events: K;
640
- };
641
- /**
642
- * Create a trigger that fires on multiple auth access token event types.
643
- * @template K
644
- * @param options - Trigger options with events array
645
- * @returns Auth access token trigger
646
- */
647
- declare function authAccessTokenTrigger<const K extends [AuthAccessTokenEventKind, ...AuthAccessTokenEventKind[]]>(options: AuthAccessTokenTriggerOptions<K>): AuthAccessTokenTrigger<AuthAccessTokenMultiArgs<K>>;
648
- //#endregion
649
- //#region src/configure/services/executor/trigger/schedule.d.ts
650
- type Timezone = "UTC" | "Pacific/Midway" | "Pacific/Niue" | "Pacific/Pago_Pago" | "America/Adak" | "Pacific/Honolulu" | "Pacific/Rarotonga" | "Pacific/Tahiti" | "Pacific/Marquesas" | "America/Anchorage" | "America/Juneau" | "America/Metlakatla" | "America/Nome" | "America/Sitka" | "America/Yakutat" | "Pacific/Gambier" | "America/Los_Angeles" | "America/Tijuana" | "America/Vancouver" | "Pacific/Pitcairn" | "America/Boise" | "America/Cambridge_Bay" | "America/Chihuahua" | "America/Creston" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Edmonton" | "America/Fort_Nelson" | "America/Hermosillo" | "America/Inuvik" | "America/Mazatlan" | "America/Ojinaga" | "America/Phoenix" | "America/Whitehorse" | "America/Yellowknife" | "America/Bahia_Banderas" | "America/Belize" | "America/Chicago" | "America/Costa_Rica" | "America/El_Salvador" | "America/Guatemala" | "America/Indiana/Knox" | "America/Indiana/Tell_City" | "America/Managua" | "America/Matamoros" | "America/Menominee" | "America/Merida" | "America/Mexico_City" | "America/Monterrey" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Regina" | "America/Resolute" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Winnipeg" | "Pacific/Easter" | "Pacific/Galapagos" | "America/Atikokan" | "America/Bogota" | "America/Cancun" | "America/Cayman" | "America/Detroit" | "America/Eirunepe" | "America/Grand_Turk" | "America/Guayaquil" | "America/Havana" | "America/Indiana/Indianapolis" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Iqaluit" | "America/Jamaica" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Lima" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Panama" | "America/Pangnirtung" | "America/Port-au-Prince" | "America/Rio_Branco" | "America/Thunder_Bay" | "America/Toronto" | "America/Anguilla" | "America/Antigua" | "America/Aruba" | "America/Asuncion" | "America/Barbados" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Campo_Grande" | "America/Caracas" | "America/Cuiaba" | "America/Curacao" | "America/Dominica" | "America/Glace_Bay" | "America/Goose_Bay" | "America/Grenada" | "America/Guadeloupe" | "America/Guyana" | "America/Halifax" | "America/Kralendijk" | "America/La_Paz" | "America/Lower_Princes" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Moncton" | "America/Montserrat" | "America/Porto_Velho" | "America/Port_of_Spain" | "America/Puerto_Rico" | "America/Santiago" | "America/Santo_Domingo" | "America/St_Barthelemy" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Thule" | "America/Tortola" | "Atlantic/Bermuda" | "America/St_Johns" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Bahia" | "America/Belem" | "America/Cayenne" | "America/Fortaleza" | "America/Godthab" | "America/Maceio" | "America/Miquelon" | "America/Montevideo" | "America/Paramaribo" | "America/Punta_Arenas" | "America/Recife" | "America/Santarem" | "America/Sao_Paulo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Atlantic/Stanley" | "America/Noronha" | "Atlantic/South_Georgia" | "America/Scoresbysund" | "Atlantic/Azores" | "Atlantic/Cape_Verde" | "Africa/Abidjan" | "Africa/Accra" | "Africa/Bamako" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Casablanca" | "Africa/Conakry" | "Africa/Dakar" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Lome" | "Africa/Monrovia" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Sao_Tome" | "America/Danmarkshavn" | "Antarctica/Troll" | "Atlantic/Canary" | "Atlantic/Faroe" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/St_Helena" | "Europe/Dublin" | "Europe/Guernsey" | "Europe/Isle_of_Man" | "Europe/Jersey" | "Europe/Lisbon" | "Europe/London" | "Africa/Algiers" | "Africa/Bangui" | "Africa/Brazzaville" | "Africa/Ceuta" | "Africa/Douala" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Luanda" | "Africa/Malabo" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Porto-Novo" | "Africa/Tunis" | "Africa/Windhoek" | "Arctic/Longyearbyen" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Budapest" | "Europe/Copenhagen" | "Europe/Gibraltar" | "Europe/Ljubljana" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Monaco" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Rome" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Skopje" | "Europe/Stockholm" | "Europe/Tirane" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zurich" | "Africa/Blantyre" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Tripoli" | "Asia/Amman" | "Asia/Beirut" | "Asia/Damascus" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Hebron" | "Asia/Jerusalem" | "Asia/Nicosia" | "Europe/Athens" | "Europe/Bucharest" | "Europe/Chisinau" | "Europe/Helsinki" | "Europe/Kaliningrad" | "Europe/Kyiv" | "Europe/Mariehamn" | "Europe/Riga" | "Europe/Sofia" | "Europe/Tallinn" | "Europe/Uzhgorod" | "Europe/Vilnius" | "Europe/Zaporizhzhia" | "Africa/Addis_Ababa" | "Africa/Asmara" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Kampala" | "Africa/Mogadishu" | "Africa/Nairobi" | "Antarctica/Syowa" | "Asia/Aden" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Kuwait" | "Asia/Qatar" | "Asia/Riyadh" | "Europe/Istanbul" | "Europe/Kirov" | "Europe/Minsk" | "Europe/Moscow" | "Europe/Simferopol" | "Europe/Volgograd" | "Indian/Antananarivo" | "Indian/Comoro" | "Indian/Mayotte" | "Asia/Tehran" | "Asia/Baku" | "Asia/Dubai" | "Asia/Muscat" | "Asia/Tbilisi" | "Asia/Yerevan" | "Europe/Astrakhan" | "Europe/Samara" | "Europe/Saratov" | "Europe/Ulyanovsk" | "Indian/Mahe" | "Indian/Mauritius" | "Indian/Reunion" | "Asia/Kabul" | "Antarctica/Mawson" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Atyrau" | "Asia/Dushanbe" | "Asia/Karachi" | "Asia/Oral" | "Asia/Qyzylorda" | "Asia/Samarkand" | "Asia/Tashkent" | "Asia/Yekaterinburg" | "Indian/Kerguelen" | "Indian/Maldives" | "Asia/Colombo" | "Asia/Kolkata" | "Asia/Kathmandu" | "Antarctica/Vostok" | "Asia/Almaty" | "Asia/Bishkek" | "Asia/Dhaka" | "Asia/Omsk" | "Asia/Qostanay" | "Asia/Thimphu" | "Asia/Urumqi" | "Indian/Chagos" | "Asia/Yangon" | "Indian/Cocos" | "Antarctica/Davis" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Hovd" | "Asia/Ho_Chi_Minh" | "Asia/Jakarta" | "Asia/Krasnoyarsk" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Tomsk" | "Asia/Vientiane" | "Indian/Christmas" | "Asia/Brunei" | "Asia/Choibalsan" | "Asia/Hong_Kong" | "Asia/Irkutsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Macau" | "Asia/Makassar" | "Asia/Manila" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Taipei" | "Asia/Ulaanbaatar" | "Australia/Perth" | "Australia/Eucla" | "Asia/Chita" | "Asia/Dili" | "Asia/Jayapura" | "Asia/Khandyga" | "Asia/Pyongyang" | "Asia/Seoul" | "Asia/Tokyo" | "Asia/Yakutsk" | "Pacific/Palau" | "Australia/Adelaide" | "Australia/Broken_Hill" | "Australia/Darwin" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Asia/Ust-Nera" | "Asia/Vladivostok" | "Australia/Brisbane" | "Australia/Currie" | "Australia/Hobart" | "Australia/Lindeman" | "Australia/Melbourne" | "Australia/Sydney" | "Pacific/Chuuk" | "Pacific/Guam" | "Pacific/Port_Moresby" | "Pacific/Saipan" | "Australia/Lord_Howe" | "Antarctica/Casey" | "Asia/Magadan" | "Asia/Sakhalin" | "Asia/Srednekolymsk" | "Pacific/Bougainville" | "Pacific/Efate" | "Pacific/Guadalcanal" | "Pacific/Kosrae" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pohnpei" | "Antarctica/McMurdo" | "Asia/Anadyr" | "Asia/Kamchatka" | "Pacific/Auckland" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Nauru" | "Pacific/Tarawa" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Chatham" | "Pacific/Apia" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Tongatapu" | "Pacific/Kiritimati";
651
- type ScheduleTrigger<Args> = ScheduleTriggerInput & {
652
- __args: Args;
653
- };
654
- interface ScheduleArgs {
655
- env: TailorEnv;
656
- }
657
- interface ScheduleTriggerOptions<T extends string> {
658
- cron: StandardCRON<T> extends never ? never : T;
659
- timezone?: Timezone;
660
- }
661
- /**
662
- * Create a schedule-based trigger using a CRON expression and optional timezone.
663
- * @template T
664
- * @param options - Schedule options
665
- * @returns Schedule trigger
666
- */
667
- declare function scheduleTrigger<T extends string>(options: ScheduleTriggerOptions<T>): ScheduleTrigger<ScheduleArgs>;
668
- //#endregion
669
- //#region src/configure/services/executor/trigger/webhook.d.ts
670
- interface IncomingWebhookArgs<T extends IncomingWebhookRequest> {
671
- body: T["body"];
672
- headers: T["headers"];
673
- method: "POST" | "GET" | "PUT" | "DELETE";
674
- rawBody: string;
675
- env: TailorEnv;
676
- }
677
- interface IncomingWebhookRequest {
678
- body: Record<string, unknown>;
679
- headers: Record<string, string>;
680
- }
681
- interface IncomingWebhookResponseConfig<Args> {
682
- /**
683
- * Expression that returns the webhook HTTP response body.
684
- * Receives the same args as the executor operation.
685
- */
686
- body?: (args: Args) => JsonValue;
687
- /**
688
- * HTTP status code for the response.
689
- * If omitted and `body` is set, the platform uses 200.
690
- */
691
- statusCode?: number;
692
- }
693
- type IncomingWebhookResponse<Args> = ((args: Args) => JsonValue) | IncomingWebhookResponseConfig<Args>;
694
- interface IncomingWebhookTriggerOptions<Args> {
695
- response?: IncomingWebhookResponse<Args>;
696
- }
697
- type IncomingWebhookTrigger<Args> = IncomingWebhookTrigger$1 & {
698
- __args: Args;
699
- };
700
- /**
701
- * Create a trigger for incoming webhook requests.
702
- * @template T
703
- * @param options - Optional trigger options including response configuration
704
- * @returns Incoming webhook trigger
705
- */
706
- declare function incomingWebhookTrigger<T extends IncomingWebhookRequest>(options?: IncomingWebhookTriggerOptions<IncomingWebhookArgs<T>>): IncomingWebhookTrigger<IncomingWebhookArgs<T>>;
707
- //#endregion
708
- //#region src/configure/services/executor/trigger/index.d.ts
709
- type Trigger<Args> = TailorDBTrigger<Args> | ResolverExecutedTrigger<Args> | ScheduleTrigger<Args> | IncomingWebhookTrigger<Args> | IdpUserTrigger<Args> | AuthAccessTokenTrigger<Args>;
710
- //#endregion
711
- //#region src/configure/services/executor/executor.d.ts
712
- /**
713
- * Extract mainJob's Input type from Workflow.
714
- */
715
- type WorkflowInput<W extends Workflow> = Parameters<W["trigger"]>[0];
716
- type TriggerArgs<T extends Trigger<unknown>> = T extends {
717
- __args: infer Args;
718
- } ? Args : never;
719
- type ExecutorBase<T extends Trigger<unknown>> = Omit<ExecutorInput, "trigger" | "operation"> & {
720
- trigger: T;
721
- };
722
- /**
723
- * Executor type with conditional inference for workflow operations.
724
- * When operation.kind is "workflow", infers W from the workflow property
725
- * to ensure args type matches the workflow's mainJob input type.
726
- */
727
- type Executor<T extends Trigger<unknown>, O> = O extends {
728
- kind: "workflow";
729
- workflow: infer W extends Workflow;
730
- } ? ExecutorBase<T> & {
731
- operation: {
732
- kind: "workflow";
733
- workflow: W;
734
- args?: WorkflowInput<W> | ((args: TriggerArgs<T>) => WorkflowInput<W>);
735
- authInvoker?: AuthInvoker<string> | MachineUserName;
736
- };
737
- } : ExecutorBase<T> & {
738
- operation: O;
739
- };
740
- /**
741
- * Create an executor configuration for the Tailor SDK.
742
- *
743
- * Executors are event-driven handlers that respond to record changes,
744
- * resolver executions, or other events.
745
- *
746
- * Operation kinds: "function", "graphql", "webhook", "workflow".
747
- * @template T
748
- * @template O
749
- * @param config - Executor configuration
750
- * @returns The same executor configuration
751
- * @example
752
- * import { createExecutor, recordCreatedTrigger } from "@tailor-platform/sdk";
753
- * import { order } from "../tailordb/order";
754
- *
755
- * export default createExecutor({
756
- * name: "order-created",
757
- * description: "Handles new order creation",
758
- * trigger: recordCreatedTrigger({ type: order }),
759
- * operation: {
760
- * kind: "function",
761
- * body: async ({ newRecord }) => {
762
- * console.log("New order:", newRecord.id);
763
- * },
764
- * },
765
- * });
766
- */
767
- declare function createExecutor<T extends Trigger<unknown>, O extends Operation<TriggerArgs<T>> | {
768
- kind: "workflow";
769
- workflow: Workflow;
770
- }>(config: Executor<T, O>): Executor<T, O>;
771
- /**
772
- * Create an executor configuration for the Tailor SDK.
773
- * This overload preserves source compatibility for legacy explicit generic calls,
774
- * where the first generic argument represents trigger args.
775
- * @template Args
776
- * @template O
777
- * @param config - Executor configuration
778
- * @returns The same executor configuration
779
- */
780
- declare function createExecutor<Args, O extends Operation<Args> | {
781
- kind: "workflow";
782
- workflow: Workflow;
783
- }>(config: Executor<Trigger<Args>, O>): Executor<Trigger<Args>, O>;
784
- //#endregion
785
- //#region src/configure/services/workflow/wait-point.d.ts
786
- /**
787
- * A single wait point instance with typed `.wait()` and `.resolve()` methods.
788
- *
789
- * - `.wait(payload?)` suspends execution until resolved. Returns the result from `.resolve()`.
790
- * - `.resolve(executionId, callback)` resumes a suspended execution.
791
- *
792
- * Both `Payload` and `Result` must be JsonValue-compatible (primitives, plain objects, arrays).
793
- * Functions and objects with a `toJSON` method are rejected at the type level.
794
- */
795
- interface WaitPointInstance<Payload = undefined, Result = undefined> {
796
- wait: [Payload] extends [undefined] ? () => Promise<Result> : (payload: Payload) => Promise<Result>;
797
- resolve: (executionId: string, callback: (payload: [Payload] extends [undefined] ? undefined : Payload) => Result | Promise<Result>) => Promise<void>;
798
- }
799
- /**
800
- * The type produced by `define<Payload, Result>()` / `defineWaitPoint<Payload, Result>(key)`.
801
- * Resolves to `WaitPointInstance<Payload, Result>` when both types are JsonValue-compatible,
802
- * or to a template-literal error string that surfaces at the call site.
803
- */
804
- type WaitPointDef<Payload, Result> = [null] extends [Payload] ? "ERROR: Payload cannot be null at the top level" : [undefined] extends [Result] ? "ERROR: Result cannot be (or include) undefined (resolve callback must return a value)" : [Payload] extends [undefined] ? [Result] extends [JsonCompatible<Result>] ? WaitPointInstance<Payload, Result> : "ERROR: Result must be JsonValue-compatible (plain objects/arrays; no class instances or functions)" : [undefined] extends [Payload] ? "ERROR: Payload cannot include undefined at the top level" : [Payload] extends [JsonCompatible<Payload>] ? [Result] extends [JsonCompatible<Result>] ? WaitPointInstance<Payload, Result> : "ERROR: Result must be JsonValue-compatible (plain objects/arrays; no class instances or functions)" : "ERROR: Payload must be JsonValue-compatible (plain objects/arrays; no class instances or functions)";
805
- /**
806
- * The `define` function passed to the `defineWaitPoints` builder callback.
807
- * Returns an actual WaitPointInstance (not a phantom marker) so that the
808
- * builder's return type can flow through as-is, preserving JSDoc comments
809
- * on each property for IDE autocompletion.
810
- *
811
- * JSON validation is encoded in the return type rather than in type-parameter
812
- * constraints, because tsgo rejects self-referential constraints like
813
- * `Payload extends JsonCompatible<Payload>` as circular.
814
- */
815
- type DefineFn = <Payload = undefined, Result = undefined>() => WaitPointDef<Payload, Result>;
816
- /**
817
- * Define a single typed wait point with an explicit key.
818
- *
819
- * `Payload` and `Result` must be JsonValue-compatible.
820
- * Functions and objects with a `toJSON` method are rejected at the type level;
821
- * class instances exposing methods are rejected via the property walk.
822
- * @param key - The wait point key used to match wait and resolve calls
823
- * @returns A WaitPointInstance with typed `.wait()` and `.resolve()` methods
824
- * @example
825
- * export const approval = defineWaitPoint<{ message: string }, { approved: boolean }>("approval");
826
- *
827
- * await approval.wait({ message: "Please approve" });
828
- */
829
- declare function defineWaitPoint<Payload = undefined, Result = undefined>(key: string): WaitPointDef<Payload, Result>;
830
- /**
831
- * Define a group of typed wait points for human-in-the-loop workflows.
832
- * Property names become the wait point keys.
833
- *
834
- * The return type is the same as the builder's return type, so JSDoc on each
835
- * property is preserved and visible in IDE autocompletion.
836
- *
837
- * `Payload` and `Result` must be JsonValue-compatible.
838
- * Functions and objects with a `toJSON` method are rejected at the type level;
839
- * class instances exposing methods are rejected via the property walk.
840
- * @param builder - Callback that receives a `define` factory and returns an object of wait points
841
- * @returns The same object returned by the builder (with correct keys set on each instance)
842
- * @example
843
- * export const waitPoints = defineWaitPoints(define => ({
844
- * // Preceding JSDoc on this property is shown in IDE autocompletion
845
- * approval: define<{ message: string }, { approved: boolean }>(),
846
- * }));
847
- *
848
- * // IDE shows the JSDoc when typing `waitPoints.`
849
- * await waitPoints.approval.wait({ message: "Please approve" });
850
- *
851
- * // For 2-level access, use destructured export with JSDoc attached to the export itself.
852
- */
853
- declare function defineWaitPoints<T extends Record<string, WaitPointInstance<any, any>>>(builder: (define: DefineFn) => T): T;
854
- //#endregion
855
- //#region src/configure/services/staticwebsite/index.d.ts
856
- /**
857
- * Define a static website configuration for the Tailor SDK.
858
- * @param name - Static website name
859
- * @param config - Static website configuration
860
- * @returns Defined static website
861
- */
862
- declare function defineStaticWebSite(name: string, config: Omit<StaticWebsiteInput, "name">): {
863
- readonly name: string;
864
- readonly url: `${string}:url`;
865
- readonly description?: string | undefined;
866
- readonly allowedIpAddresses?: string[] | undefined;
867
- readonly customDomains?: string[] | undefined;
868
- } & StaticWebsiteDefinitionBrand;
869
- //#endregion
870
- //#region src/configure/services/idp/permission.d.ts
871
- type EqualityOperator = "=" | "!=";
872
- type ContainsOperator = "in" | "not in";
873
- type StringFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string ? K : never }[keyof User];
874
- type StringArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string[] ? K : never }[keyof User];
875
- type BooleanFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean ? K : never }[keyof User];
876
- type BooleanArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean[] ? K : never }[keyof User];
877
- type UserStringOperand<User extends object = InferredAttributeMap> = {
878
- user: StringFieldKeys<User> | "id";
879
- };
880
- type UserStringArrayOperand<User extends object = InferredAttributeMap> = {
881
- user: StringArrayFieldKeys<User>;
882
- };
883
- type UserBooleanOperand<User extends object = InferredAttributeMap> = {
884
- user: BooleanFieldKeys<User> | "_loggedIn";
885
- };
886
- type UserBooleanArrayOperand<User extends object = InferredAttributeMap> = {
887
- user: BooleanArrayFieldKeys<User>;
888
- };
889
- type IdPUserOperand<Update extends boolean = false> = Update extends true ? {
890
- oldIdpUser: IdPUserField;
891
- } | {
892
- newIdpUser: IdPUserField;
893
- } : {
894
- idpUser: IdPUserField;
895
- };
896
- type StringEqualityCondition<User extends object, Update extends boolean> = readonly [string, EqualityOperator, string] | readonly [UserStringOperand<User>, EqualityOperator, string] | readonly [string, EqualityOperator, UserStringOperand<User>] | readonly [IdPUserOperand<Update>, EqualityOperator, string | UserStringOperand<User> | IdPUserOperand<Update>] | readonly [string | UserStringOperand<User>, EqualityOperator, IdPUserOperand<Update>];
897
- type BooleanEqualityCondition<User extends object, Update extends boolean> = readonly [boolean, EqualityOperator, boolean] | readonly [UserBooleanOperand<User>, EqualityOperator, boolean] | readonly [boolean, EqualityOperator, UserBooleanOperand<User>] | readonly [IdPUserOperand<Update>, EqualityOperator, boolean | UserBooleanOperand<User> | IdPUserOperand<Update>] | readonly [boolean | UserBooleanOperand<User>, EqualityOperator, IdPUserOperand<Update>];
898
- type EqualityCondition<User extends object = InferredAttributeMap, Update extends boolean = boolean> = StringEqualityCondition<User, Update> | BooleanEqualityCondition<User, Update>;
899
- type StringContainsCondition<User extends object, Update extends boolean> = readonly [string, ContainsOperator, string[]] | readonly [UserStringOperand<User>, ContainsOperator, string[]] | readonly [string, ContainsOperator, UserStringArrayOperand<User>] | readonly [IdPUserOperand<Update>, ContainsOperator, string[] | UserStringArrayOperand<User>];
900
- type BooleanContainsCondition<User extends object, Update extends boolean> = readonly [boolean, ContainsOperator, boolean[]] | readonly [UserBooleanOperand<User>, ContainsOperator, boolean[]] | readonly [boolean, ContainsOperator, UserBooleanArrayOperand<User>] | readonly [IdPUserOperand<Update>, ContainsOperator, boolean[] | UserBooleanArrayOperand<User>];
901
- type ContainsCondition<User extends object = InferredAttributeMap, Update extends boolean = boolean> = StringContainsCondition<User, Update> | BooleanContainsCondition<User, Update>;
902
- type IdPPermissionCondition<User extends object = InferredAttributeMap, Update extends boolean = boolean> = EqualityCondition<User, Update> | ContainsCondition<User, Update>;
903
- type IdPActionPermission<User extends object = InferredAttributeMap, Update extends boolean = boolean> = {
904
- conditions: IdPPermissionCondition<User, Update> | readonly IdPPermissionCondition<User, Update>[];
905
- description?: string | undefined;
906
- /**
907
- * Whether matching users are granted (`true`) or denied (`false`).
908
- * Omitting `permit` in this object form defaults to `deny` and emits a
909
- * warning; set it explicitly. (The array shorthand defaults to `allow`.)
910
- */
911
- permit?: boolean;
912
- } | readonly [...IdPPermissionCondition<User, Update>, ...([] | [boolean])] | readonly [...IdPPermissionCondition<User, Update>[], ...([] | [boolean])];
913
- /**
914
- * Per-operation permission policies for an IdP service.
915
- * Defines create, read, update, delete, and sendPasswordResetEmail permissions.
916
- *
917
- * For update operations, use `newIdpUser`/`oldIdpUser` operands instead of `idpUser`.
918
- * @example
919
- * const permission: IdPPermission = {
920
- * create: [{ conditions: [[{ user: "role" }, "=", "ADMIN"]], permit: true }],
921
- * read: [{ conditions: [[{ user: "_loggedIn" }, "=", true]], permit: true }],
922
- * update: [{ conditions: [[{ newIdpUser: "name" }, "=", { user: "id" }]], permit: true }],
923
- * delete: [{ conditions: [[{ user: "role" }, "=", "ADMIN"]], permit: true }],
924
- * sendPasswordResetEmail: [{ conditions: [], permit: true }],
925
- * };
926
- */
927
- type IdPPermission<User extends object = InferredAttributeMap> = {
928
- create: readonly IdPActionPermission<User, false>[];
929
- read: readonly IdPActionPermission<User, false>[];
930
- update: readonly IdPActionPermission<User, true>[];
931
- delete: readonly IdPActionPermission<User, false>[];
932
- sendPasswordResetEmail: readonly IdPActionPermission<User, false>[];
933
- };
934
- /**
935
- * Grants full IdP permission access without any conditions.
936
- *
937
- * Unsafe and intended only for local development, prototyping, or tests.
938
- * Do not use this in production environments, as it effectively disables
939
- * authorization checks.
940
- */
941
- declare const unsafeAllowAllIdPPermission: IdPPermission;
942
- //#endregion
943
- //#region src/configure/services/idp/index.d.ts
944
- /**
945
- * Define an IdP service configuration for the Tailor SDK.
946
- * @template TClients
947
- * @param name - IdP service name
948
- * @param config - IdP configuration
949
- * @returns Defined IdP service
950
- */
951
- declare function defineIdp<const TClients extends string[]>(name: string, config: Omit<IdPInput, "name" | "clients" | "permission"> & {
952
- clients: TClients;
953
- permission?: IdPPermission;
954
- }): {
955
- readonly name: string;
956
- readonly provider: (providerName: string, clientName: TClients[number]) => {
957
- readonly name: string;
958
- readonly kind: "BuiltInIdP";
959
- readonly namespace: string;
960
- readonly clientName: TClients[number];
961
- };
962
- readonly authorization?: "insecure" | "loggedIn" | {
963
- cel: string;
964
- } | undefined;
965
- readonly lang?: "en" | "ja" | undefined;
966
- readonly userAuthPolicy?: {
967
- useNonEmailIdentifier?: boolean | undefined;
968
- allowSelfPasswordReset?: boolean | undefined;
969
- passwordRequireUppercase?: boolean | undefined;
970
- passwordRequireLowercase?: boolean | undefined;
971
- passwordRequireNonAlphanumeric?: boolean | undefined;
972
- passwordRequireNumeric?: boolean | undefined;
973
- passwordMinLength?: number | undefined;
974
- passwordMaxLength?: number | undefined;
975
- allowedEmailDomains?: string[] | undefined;
976
- allowGoogleOauth?: boolean | undefined;
977
- allowMicrosoftOauth?: boolean | undefined;
978
- disablePasswordAuth?: boolean | undefined;
979
- } | undefined;
980
- readonly publishUserEvents?: boolean | undefined;
981
- readonly gqlOperations?: "query" | {
982
- create?: boolean | undefined;
983
- update?: boolean | undefined;
984
- delete?: boolean | undefined;
985
- read?: boolean | undefined;
986
- sendPasswordResetEmail?: boolean | undefined;
987
- } | undefined;
988
- readonly emailConfig?: {
989
- fromName?: string | undefined;
990
- passwordResetSubject?: string | undefined;
991
- } | undefined;
992
- readonly clients: TClients;
993
- readonly permission?: IdPPermission;
994
- } & IdpDefinitionBrand;
995
- //#endregion
996
- //#region src/configure/services/secrets/index.d.ts
997
- type SecretsVaultInput = Record<string, string>;
998
- type SecretsVaultInputNullish = Record<string, string | undefined | null>;
999
- type SecretsInput = Record<string, SecretsVaultInput>;
1000
- type SecretsInputNullish = Record<string, SecretsVaultInputNullish>;
1001
- type SecretsOptions = {
1002
- readonly ignoreNullishValues: boolean;
1003
- };
1004
- type DefinedSecrets<T extends SecretsInputNullish> = {
1005
- readonly vaults: T;
1006
- readonly options: SecretsOptions;
1007
- get<V extends Extract<keyof T, string>, S extends Extract<keyof T[V], string>>(vault: V, secret: S): Promise<string | undefined>;
1008
- getAll<V extends Extract<keyof T, string>, S extends Extract<keyof T[V], string>>(vault: V, secrets: readonly S[]): Promise<(string | undefined)[]>;
1009
- } & SecretsDefinitionBrand;
1010
- /**
1011
- * Define secrets configuration for the Tailor SDK.
1012
- * Each key is a vault name, and its value is a record of secret name to secret value.
1013
- * @param config - Secrets configuration mapping vault names to their secrets
1014
- * @returns Defined secrets with typed runtime access methods
1015
- */
1016
- declare function defineSecretManager<const T extends SecretsInput>(config: T): DefinedSecrets<T>;
1017
- /**
1018
- * Define secrets configuration for the Tailor SDK with ignoreNullishValues option.
1019
- * When `ignoreNullishValues` is true, secrets with nullish values are skipped during deploy
1020
- * instead of causing an error. This is useful for CI environments where not all
1021
- * secret values are available.
1022
- * @param config - Secrets configuration mapping vault names to their secrets
1023
- * @param options - Options for secret management behavior
1024
- * @param options.ignoreNullishValues - When true, secrets with nullish values are skipped during deploy
1025
- * @returns Defined secrets with typed runtime access methods
1026
- */
1027
- declare function defineSecretManager<const T extends SecretsInputNullish>(config: T, options: {
1028
- ignoreNullishValues: true;
1029
- }): DefinedSecrets<T>;
1030
- //#endregion
1031
- //#region src/configure/services/http-adapter/http-adapter.d.ts
1032
- /**
1033
- * Lowercase HTTP method keys accepted in `input`, derived from the config
1034
- * schema via the generated type so they cannot drift.
1035
- */
1036
- type HttpMethodKey = keyof Required<HttpAdapterConfigInput["input"]>;
1037
- /** Incoming HTTP request passed to an `input` handler. */
1038
- type HttpAdapterRequest = {
1039
- method: Uppercase<HttpMethodKey>;
1040
- path: string;
1041
- headers: Record<string, string>;
1042
- query: Record<string, string>;
1043
- body: string;
1044
- };
1045
- /** GraphQL request returned by an `input` handler. */
1046
- type HttpAdapterGraphQLRequest = {
1047
- query: string;
1048
- variables?: Record<string, unknown>;
1049
- operationName?: string;
1050
- };
1051
- /** Converts an incoming HTTP request into a GraphQL request. */
1052
- type HttpAdapterInputFn = (req: HttpAdapterRequest) => HttpAdapterGraphQLRequest;
1053
- /** GraphQL execution result passed to the `output` handler. */
1054
- type HttpAdapterGraphQLResponse = {
1055
- data?: unknown;
1056
- errors?: unknown;
1057
- extensions?: unknown;
1058
- };
1059
- /** HTTP response returned by the `output` handler. */
1060
- type HttpAdapterResponse = {
1061
- statusCode?: number;
1062
- headers?: Record<string, string>;
1063
- body: string;
1064
- };
1065
- /** Converts a GraphQL response into an HTTP response. */
1066
- type HttpAdapterOutputFn = (resp: HttpAdapterGraphQLResponse) => HttpAdapterResponse;
1067
- /**
1068
- * Per-method input handlers. At least one method must be provided.
1069
- * Each handler transforms an HTTP request into a GraphQL request.
1070
- */
1071
- type HttpAdapterInput = Partial<Record<HttpMethodKey, HttpAdapterInputFn>>;
1072
- /**
1073
- * HTTP adapter configuration accepted by `createHttpAdapter` with typed
1074
- * `input` and `output` signatures.
1075
- */
1076
- type HttpAdapter = Omit<HttpAdapterConfigInput, "input" | "output"> & {
1077
- input: HttpAdapterInput;
1078
- output?: HttpAdapterOutputFn;
1079
- };
1080
- /**
1081
- * Defines an HTTP adapter that translates HTTP requests to GraphQL queries
1082
- * and shapes the GraphQL response back into an HTTP response.
1083
- *
1084
- * The adapter MUST be the default export of its file.
1085
- * Files are discovered via the `httpAdapter.files` glob in `defineConfig()`.
1086
- *
1087
- * `input` is an object keyed by lowercase HTTP method (`get`, `post`, `put`,
1088
- * `patch`, `delete`). At least one method must be declared; the methods the
1089
- * adapter serves are derived from these keys.
1090
- *
1091
- * `output` is optional and shared across all methods. If you need different
1092
- * response shapes per method, discriminate inside `output` based on the
1093
- * GraphQL response shape.
1094
- *
1095
- * Each handler runs server-side and must be synchronous: Node APIs, `fetch`,
1096
- * `async`/`await`, Promises, and top-level `await` are not available.
1097
- *
1098
- * Optional fields: `enabled` (default `true`; set `false` to deploy the adapter
1099
- * without serving it) and `priority` (non-negative integer, default `0`; when
1100
- * multiple adapters match the same request path, the lowest value wins).
1101
- * @param config - HTTP adapter configuration
1102
- * @returns Branded HTTP adapter definition
1103
- * @example
1104
- * export default createHttpAdapter({
1105
- * name: "get-user",
1106
- * pathPattern: "/users/*",
1107
- * input: {
1108
- * get: (req) => ({
1109
- * query: `query($id: ID!) { user(id: $id) { id name } }`,
1110
- * variables: { id: req.path.split("/")[2] },
1111
- * }),
1112
- * },
1113
- * output: (resp) => ({
1114
- * statusCode: 200,
1115
- * headers: { "content-type": "application/json" },
1116
- * body: JSON.stringify(resp.data),
1117
- * }),
1118
- * });
1119
- */
1120
- declare function createHttpAdapter(config: HttpAdapter): HttpAdapter;
1121
- //#endregion
1122
- //#region src/configure/config.d.ts
1123
- /**
1124
- * Define a Tailor SDK application configuration with shallow exactness.
1125
- * @template Config
1126
- * @param config - Application configuration
1127
- * @returns The same configuration object
1128
- */
1129
- declare function defineConfig<const Config extends AppConfig & Record<Exclude<keyof Config, keyof AppConfig>, never>>(config: Config): Config;
1130
- /**
1131
- * Define generators to be used with the Tailor SDK.
1132
- * @deprecated Use definePlugins() with generation hooks (onTypeLoaded, generate, etc.) instead.
1133
- * @param configs - Generator configurations
1134
- * @returns Generator configurations as given
1135
- */
1136
- declare function defineGenerators(...configs: GeneratorConfig[]): BaseGeneratorConfig[];
1137
- /**
1138
- * Define plugins to be used with the Tailor SDK.
1139
- * Plugins can generate additional types, resolvers, and executors
1140
- * based on existing TailorDB types.
1141
- * @param configs - Plugin configurations
1142
- * @returns Plugin configurations as given
1143
- */
1144
- declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any>[];
1145
- //#endregion
1146
- //#region src/configure/index.d.ts
1147
- type TailorOutput<T> = output$1<T>;
1148
- type infer<T> = TailorOutput<T>;
1149
- type output<T> = TailorOutput<T>;
1150
- /** TailorDB field type builders. */
1151
- declare const t: {
1152
- uuid: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1153
- type: "uuid";
1154
- array: Opt extends {
1155
- array: true;
1156
- } ? true : false;
1157
- }, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
1158
- string: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1159
- type: "string";
1160
- array: Opt extends {
1161
- array: true;
1162
- } ? true : false;
1163
- }, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
1164
- bool: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1165
- type: "boolean";
1166
- array: Opt extends {
1167
- array: true;
1168
- } ? true : false;
1169
- }, Opt["optional"] extends true ? ArrayFieldOutput<boolean, Opt> | null : ArrayFieldOutput<boolean, Opt>, FieldMetadata, TailorFieldType>;
1170
- int: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1171
- type: "integer";
1172
- array: Opt extends {
1173
- array: true;
1174
- } ? true : false;
1175
- }, Opt["optional"] extends true ? ArrayFieldOutput<number, Opt> | null : ArrayFieldOutput<number, Opt>, FieldMetadata, TailorFieldType>;
1176
- float: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1177
- type: "float";
1178
- array: Opt extends {
1179
- array: true;
1180
- } ? true : false;
1181
- }, Opt["optional"] extends true ? ArrayFieldOutput<number, Opt> | null : ArrayFieldOutput<number, Opt>, FieldMetadata, TailorFieldType>;
1182
- decimal: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1183
- type: "decimal";
1184
- array: Opt extends {
1185
- array: true;
1186
- } ? true : false;
1187
- }, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
1188
- date: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1189
- type: "date";
1190
- array: Opt extends {
1191
- array: true;
1192
- } ? true : false;
1193
- }, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
1194
- datetime: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1195
- type: "datetime";
1196
- array: Opt extends {
1197
- array: true;
1198
- } ? true : false;
1199
- }, Opt["optional"] extends true ? ArrayFieldOutput<string | Date, Opt> | null : ArrayFieldOutput<string | Date, Opt>, FieldMetadata, TailorFieldType>;
1200
- time: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
1201
- type: "time";
1202
- array: Opt extends {
1203
- array: true;
1204
- } ? true : false;
1205
- }, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
1206
- enum: <const V extends AllowedValues, const Opt extends FieldOptions>(values: V, options?: Opt) => TailorField<{
1207
- type: "enum";
1208
- array: Opt extends {
1209
- array: true;
1210
- } ? true : false;
1211
- }, FieldOutput<AllowedValuesOutput<V>, Opt>>;
1212
- object: <const F extends Record<string, TailorAnyField>, const Opt extends FieldOptions>(fields: F, options?: Opt) => TailorField<{
1213
- type: "nested";
1214
- array: Opt extends {
1215
- array: true;
1216
- } ? true : false;
1217
- }, FieldOutput<InferFieldsOutput<F>, Opt>, FieldMetadata, TailorFieldType>;
1218
- };
1219
- declare namespace t {
1220
- type output<T> = TailorOutput<T>;
1221
- type infer<T> = TailorOutput<T>;
1222
- }
1223
- //#endregion
1224
- export { authAccessTokenIssuedTrigger as $, IncomingWebhookResponseConfig as A, TailorField as At, AuthAccessTokenRevokedArgs as B, defineWaitPoint as C, WORKFLOW_TEST_ENV_KEY as Ct, IncomingWebhookArgs as D, defineAuth as Dt, Trigger as E, AuthInvoker as Et, ScheduleTrigger as F, IdpUserTrigger as G, IdpUserArgs as H, scheduleTrigger as I, RecordDeletedArgs as J, IdpUserUpdatedArgs as K, AuthAccessTokenArgs as L, IncomingWebhookTriggerOptions as M, MachineUserNameRegistry as Mt, incomingWebhookTrigger as N, IncomingWebhookRequest as O, IdpName as Ot, ScheduleArgs as P, TailorDBTrigger as Q, AuthAccessTokenIssuedArgs as R, WaitPointInstance as S, createWorkflowJob as St, createExecutor as T, createResolver as Tt, IdpUserCreatedArgs as U, AuthAccessTokenTrigger as V, IdpUserDeletedArgs as W, ResolverExecutedArgs as X, RecordUpdatedArgs as Y, ResolverExecutedTrigger as Z, defineIdp as _, Workflow as _t, defineGenerators as a, idpUserTrigger as at, unsafeAllowAllIdPPermission as b, WorkflowJob as bt, HttpAdapterGraphQLRequest as c, recordDeletedTrigger as ct, HttpAdapterInputFn as d, resolverExecutedTrigger as dt, authAccessTokenRefreshedTrigger as et, HttpAdapterOutputFn as f, FunctionOperation as ft, defineSecretManager as g, WorkflowOperation as gt, createHttpAdapter as h, WebhookOperation as ht, defineConfig as i, idpUserDeletedTrigger as it, IncomingWebhookTrigger as j, MachineUserName as jt, IncomingWebhookResponse as k, IdpNameRegistry as kt, HttpAdapterGraphQLResponse as l, recordTrigger as lt, HttpAdapterResponse as m, Operation as mt, output as n, authAccessTokenTrigger as nt, definePlugins as o, idpUserUpdatedTrigger as ot, HttpAdapterRequest as p, GqlOperation as pt, RecordCreatedArgs as q, t as r, idpUserCreatedTrigger as rt, HttpAdapter as s, recordCreatedTrigger as st, infer as t, authAccessTokenRevokedTrigger as tt, HttpAdapterInput as u, recordUpdatedTrigger as ut, IdPPermission as v, WorkflowConfig as vt, defineWaitPoints as w, QueryType as wt, defineStaticWebSite as x, WorkflowJobContext as xt, IdPPermissionCondition as y, createWorkflow as yt, AuthAccessTokenRefreshedArgs as z };
1225
- //# sourceMappingURL=index-CLxubakC.d.mts.map