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

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 (478) hide show
  1. package/CHANGELOG.md +1056 -24
  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-DqS1yBg3.mjs → application-CM6hKnSK.mjs} +2155 -2008
  7. package/dist/application-CM6hKnSK.mjs.map +1 -0
  8. package/dist/application-CXNaUNhv.mjs +3 -0
  9. package/dist/authconnection-CZvi9ANm.mjs +9 -0
  10. package/dist/authconnection-CZvi9ANm.mjs.map +1 -0
  11. package/dist/brand-Eo4pLXPJ.mjs.map +1 -1
  12. package/dist/cli/cache/bundle-cache.d.mts +2 -0
  13. package/dist/cli/cache/store.d.mts +1 -0
  14. package/dist/cli/cache/types.d.mts +1 -0
  15. package/dist/cli/commands/api/api-call.d.mts +19 -0
  16. package/dist/cli/commands/api/index.d.mts +4 -0
  17. package/dist/cli/commands/deploy/aigateway.d.mts +5 -0
  18. package/dist/cli/commands/deploy/application.d.mts +7 -0
  19. package/dist/cli/commands/deploy/apply-phases.d.mts +14 -0
  20. package/dist/cli/commands/deploy/auth.d.mts +5 -0
  21. package/dist/cli/commands/deploy/deploy.d.mts +35 -0
  22. package/dist/cli/commands/deploy/executor.d.mts +7 -0
  23. package/dist/cli/commands/deploy/function-registry-types.d.mts +12 -0
  24. package/dist/cli/commands/deploy/function-registry.d.mts +6 -0
  25. package/dist/cli/commands/deploy/idp.d.mts +5 -0
  26. package/dist/cli/commands/deploy/label.d.mts +2 -0
  27. package/dist/cli/commands/deploy/resolver.d.mts +5 -0
  28. package/dist/cli/commands/deploy/secret-manager.d.mts +5 -0
  29. package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -0
  30. package/dist/cli/commands/deploy/tailordb/index.d.mts +10 -0
  31. package/dist/cli/commands/deploy/types.d.mts +4 -0
  32. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -0
  33. package/dist/cli/commands/deploy/workflow.d.mts +4 -0
  34. package/dist/cli/commands/executor/get.d.mts +19 -0
  35. package/dist/cli/commands/executor/jobs.d.mts +85 -0
  36. package/dist/cli/commands/executor/list.d.mts +18 -0
  37. package/dist/cli/commands/executor/transform.d.mts +42 -0
  38. package/dist/cli/commands/executor/trigger.d.mts +30 -0
  39. package/dist/cli/commands/executor/webhook.d.mts +21 -0
  40. package/dist/cli/commands/function/get.d.mts +17 -0
  41. package/dist/cli/commands/function/list.d.mts +21 -0
  42. package/dist/cli/commands/function/transform.d.mts +12 -0
  43. package/dist/cli/commands/generate/options.d.mts +6 -0
  44. package/dist/cli/commands/generate/seed/bundler.d.mts +27 -0
  45. package/dist/cli/commands/generate/service.d.mts +15 -0
  46. package/dist/cli/commands/machineuser/list.d.mts +26 -0
  47. package/dist/cli/commands/machineuser/token.d.mts +21 -0
  48. package/dist/cli/commands/oauth2client/get.d.mts +17 -0
  49. package/dist/cli/commands/oauth2client/list.d.mts +19 -0
  50. package/dist/cli/commands/oauth2client/transform.d.mts +21 -0
  51. package/dist/cli/commands/organization/folder/create.d.mts +17 -0
  52. package/dist/cli/commands/organization/folder/delete.d.mts +15 -0
  53. package/dist/cli/commands/organization/folder/get.d.mts +16 -0
  54. package/dist/cli/commands/organization/folder/list.d.mts +21 -0
  55. package/dist/cli/commands/organization/folder/update.d.mts +17 -0
  56. package/dist/cli/commands/organization/get.d.mts +15 -0
  57. package/dist/cli/commands/organization/list.d.mts +14 -0
  58. package/dist/cli/commands/organization/transform.d.mts +29 -0
  59. package/dist/cli/commands/organization/tree.d.mts +24 -0
  60. package/dist/cli/commands/organization/update.d.mts +16 -0
  61. package/dist/cli/commands/remove.d.mts +15 -0
  62. package/dist/cli/commands/show.d.mts +39 -0
  63. package/dist/cli/commands/staticwebsite/deploy.d.mts +19 -0
  64. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +29 -0
  65. package/dist/cli/commands/tailordb/migrate/config.d.mts +18 -0
  66. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +246 -0
  67. package/dist/cli/commands/tailordb/migrate/generate.d.mts +16 -0
  68. package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +5 -0
  69. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +208 -0
  70. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +98 -0
  71. package/dist/cli/commands/tailordb/migrate/types.d.mts +7 -0
  72. package/dist/cli/commands/tailordb/truncate.d.mts +18 -0
  73. package/dist/cli/commands/workflow/executions.d.mts +62 -0
  74. package/dist/cli/commands/workflow/get.d.mts +21 -0
  75. package/dist/cli/commands/workflow/list.d.mts +18 -0
  76. package/dist/cli/commands/workflow/resume.d.mts +22 -0
  77. package/dist/cli/commands/workflow/start.d.mts +48 -0
  78. package/dist/cli/commands/workflow/status.d.mts +6 -0
  79. package/dist/cli/commands/workflow/transform.d.mts +34 -0
  80. package/dist/cli/commands/workflow/wait.d.mts +15 -0
  81. package/dist/cli/commands/workflow/waiter.d.mts +23 -0
  82. package/dist/cli/commands/workspace/app/health.d.mts +17 -0
  83. package/dist/cli/commands/workspace/app/list.d.mts +21 -0
  84. package/dist/cli/commands/workspace/app/transform.d.mts +20 -0
  85. package/dist/cli/commands/workspace/create.d.mts +27 -0
  86. package/dist/cli/commands/workspace/delete.d.mts +14 -0
  87. package/dist/cli/commands/workspace/get.d.mts +16 -0
  88. package/dist/cli/commands/workspace/list.d.mts +17 -0
  89. package/dist/cli/commands/workspace/restore.d.mts +14 -0
  90. package/dist/cli/commands/workspace/transform.d.mts +20 -0
  91. package/dist/cli/commands/workspace/user/invite.d.mts +21 -0
  92. package/dist/cli/commands/workspace/user/list.d.mts +21 -0
  93. package/dist/cli/commands/workspace/user/remove.d.mts +16 -0
  94. package/dist/cli/commands/workspace/user/transform.d.mts +9 -0
  95. package/dist/cli/commands/workspace/user/update.d.mts +21 -0
  96. package/dist/cli/index.mjs +12 -5481
  97. package/dist/cli/lib.d.mts +86 -21048
  98. package/dist/cli/lib.mjs +245 -46
  99. package/dist/cli/lib.mjs.map +1 -1
  100. package/dist/cli/main.d.mts +23 -0
  101. package/dist/cli/main.mjs +6777 -0
  102. package/dist/cli/main.mjs.map +1 -0
  103. package/dist/cli/query/index.d.mts +38 -0
  104. package/dist/cli/services/application.d.mts +12 -0
  105. package/dist/cli/services/auth/service.d.mts +3 -0
  106. package/dist/cli/services/executor/service.d.mts +1 -0
  107. package/dist/cli/services/http-adapter/bundler.d.mts +4 -0
  108. package/dist/cli/services/http-adapter/service.d.mts +2 -0
  109. package/dist/cli/services/resolver/service.d.mts +1 -0
  110. package/dist/cli/services/tailordb/service.d.mts +3 -0
  111. package/dist/cli/services/workflow/bundler.d.mts +3 -0
  112. package/dist/cli/services/workflow/service.d.mts +1 -0
  113. package/dist/cli/shared/args.d.mts +13 -0
  114. package/dist/cli/shared/client.d.mts +1298 -0
  115. package/dist/cli/shared/config-loader.d.mts +32 -0
  116. package/dist/cli/shared/context.d.mts +29 -0
  117. package/dist/cli/shared/error-json.d.mts +23 -0
  118. package/dist/cli/shared/readonly-guard.d.mts +25 -0
  119. package/dist/cli/shared/script-executor.d.mts +77 -0
  120. package/dist/cli/shared/seed-chunker.d.mts +45 -0
  121. package/dist/cli/shared/seed-context.d.mts +49 -0
  122. package/dist/cli/shared/tailordb-namespaces.d.mts +40 -0
  123. package/dist/cli/shared/tsconfig-paths-plugin.d.mts +2 -0
  124. package/dist/cli/shared/type-generator.d.mts +20 -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 +1471 -1217
  129. package/dist/configure/config/index.d.mts +20 -0
  130. package/dist/configure/config/types.d.mts +134 -0
  131. package/dist/configure/index.d.mts +135 -8
  132. package/dist/configure/index.mjs +558 -36
  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 +514 -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 +3 -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 +92 -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 +66 -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-Bd266-ru.mjs → context-DYQVYWqZ.mjs} +4 -5
  181. package/dist/context-DYQVYWqZ.mjs.map +1 -0
  182. package/dist/{crashreport-BsjAkFWw.mjs → crashreport-B5LqCTfF.mjs} +10 -11
  183. package/dist/{crashreport-BsjAkFWw.mjs.map → crashreport-B5LqCTfF.mjs.map} +1 -1
  184. package/dist/{crashreport-pr6Rhvza.mjs → crashreport-eI7ty7ok.mjs} +1 -1
  185. package/dist/{errors-Dtf2WPaW.mjs → errors-D7583Zz7.mjs} +18 -2
  186. package/dist/errors-D7583Zz7.mjs.map +1 -0
  187. package/dist/{file-_oUZo76X.mjs → file-BUcmVIH2.mjs} +12 -22
  188. package/dist/file-BUcmVIH2.mjs.map +1 -0
  189. package/dist/{globals-Crz8o65k.mjs → globals-TfAVItuK.mjs} +32 -55
  190. package/dist/globals-TfAVItuK.mjs.map +1 -0
  191. package/dist/iconv-QWaZh0TT.mjs +38 -0
  192. package/dist/iconv-QWaZh0TT.mjs.map +1 -0
  193. package/dist/{idp-BDbK5gjm.mjs → idp-RA_swu-h.mjs} +12 -5
  194. package/dist/idp-RA_swu-h.mjs.map +1 -0
  195. package/dist/{interceptor-D-q1rvRl.mjs → interceptor-e33JtsC-.mjs} +2 -2
  196. package/dist/interceptor-e33JtsC-.mjs.map +1 -0
  197. package/dist/kysely/index.d.mts +5 -7
  198. package/dist/logger-BtX0suGY.mjs +48 -0
  199. package/dist/logger-BtX0suGY.mjs.map +1 -0
  200. package/dist/logger-CXQq9YIp.mjs +317 -0
  201. package/dist/logger-CXQq9YIp.mjs.map +1 -0
  202. package/dist/node-builtins-CmaL2Cbq.mjs +36 -0
  203. package/dist/node-builtins-CmaL2Cbq.mjs.map +1 -0
  204. package/dist/parser/service/auth/index.d.mts +1 -0
  205. package/dist/parser/service/auth/schema.d.mts +3 -0
  206. package/dist/parser/service/http-adapter/index.d.mts +1 -0
  207. package/dist/parser/service/http-adapter/schema.d.mts +1 -0
  208. package/dist/parser/service/idp/types.d.mts +5 -0
  209. package/dist/parser/service/tailordb/type-source.d.mts +10 -0
  210. package/dist/parser/service/tailordb/types.d.mts +131 -0
  211. package/dist/platform-serialize-RoRtBS0v.mjs +46 -0
  212. package/dist/platform-serialize-RoRtBS0v.mjs.map +1 -0
  213. package/dist/plugin/builtin/enum-constants/index.d.mts +15 -1
  214. package/dist/plugin/builtin/enum-constants/index.mjs +115 -2
  215. package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -0
  216. package/dist/plugin/builtin/file-utils/index.d.mts +15 -1
  217. package/dist/plugin/builtin/file-utils/index.mjs +149 -2
  218. package/dist/plugin/builtin/file-utils/index.mjs.map +1 -0
  219. package/dist/plugin/builtin/kysely-type/index.d.mts +15 -1
  220. package/dist/plugin/builtin/kysely-type/index.mjs +274 -2
  221. package/dist/plugin/builtin/kysely-type/index.mjs.map +1 -0
  222. package/dist/plugin/builtin/seed/index.d.mts +46 -2
  223. package/dist/plugin/builtin/seed/index.mjs +1 -1
  224. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +21 -0
  225. package/dist/plugin/builtin/seed/types.d.mts +2 -0
  226. package/dist/plugin/get-generated-type.d.mts +16 -0
  227. package/dist/plugin/index.d.mts +3 -117
  228. package/dist/plugin/index.mjs +1 -1
  229. package/dist/plugin/index.mjs.map +1 -1
  230. package/dist/plugin/manager.d.mts +2 -0
  231. package/dist/plugin/types.d.mts +242 -0
  232. package/dist/plugin/with-context.d.mts +101 -0
  233. package/dist/{runtime-n9NCkjee.mjs → register-ts-hook-LYV7zH-e.mjs} +9652 -4479
  234. package/dist/register-ts-hook-LYV7zH-e.mjs.map +1 -0
  235. package/dist/{registry-DdsYlL_P.mjs → registry-BIGVUrMB.mjs} +12 -9
  236. package/dist/registry-BIGVUrMB.mjs.map +1 -0
  237. package/dist/{repl-editor-DmGr9zMw.mjs → repl-editor-BCozyiNq.mjs} +6 -5
  238. package/dist/{repl-editor-DmGr9zMw.mjs.map → repl-editor-BCozyiNq.mjs.map} +1 -1
  239. package/dist/runtime/aigateway.d.mts +25 -0
  240. package/dist/runtime/aigateway.mjs +3 -0
  241. package/dist/runtime/authconnection.d.mts +21 -2
  242. package/dist/runtime/authconnection.mjs +2 -2
  243. package/dist/runtime/context.d.mts +54 -2
  244. package/dist/runtime/context.mjs +2 -2
  245. package/dist/runtime/field-parse.d.mts +10 -0
  246. package/dist/runtime/file.d.mts +170 -2
  247. package/dist/runtime/file.mjs +2 -2
  248. package/dist/runtime/globals.d.mts +38 -20
  249. package/dist/runtime/iconv.d.mts +73 -2
  250. package/dist/runtime/iconv.mjs +2 -2
  251. package/dist/runtime/idp.d.mts +129 -2
  252. package/dist/runtime/idp.mjs +2 -2
  253. package/dist/runtime/index.d.mts +48 -9
  254. package/dist/runtime/index.mjs +10 -8
  255. package/dist/runtime/logger.d.mts +98 -0
  256. package/dist/runtime/logger.mjs +3 -0
  257. package/dist/runtime/secretmanager.d.mts +41 -2
  258. package/dist/runtime/secretmanager.mjs +2 -2
  259. package/dist/runtime/types.d.mts +25 -0
  260. package/dist/runtime/workflow.d.mts +106 -2
  261. package/dist/runtime/workflow.mjs +2 -2
  262. package/dist/{schema-BhkpP5Hw.mjs → schema--xYWRGfe.mjs} +288 -229
  263. package/dist/schema--xYWRGfe.mjs.map +1 -0
  264. package/dist/{secret-file-DBqZhjFQ.mjs → secret-file-C3J4Gy8r.mjs} +2 -2
  265. package/dist/{secret-file-DBqZhjFQ.mjs.map → secret-file-C3J4Gy8r.mjs.map} +1 -1
  266. package/dist/secretmanager-CYlpffsz.mjs +13 -0
  267. package/dist/secretmanager-CYlpffsz.mjs.map +1 -0
  268. package/dist/secretmanager-IY4UvinW.mjs +131 -0
  269. package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
  270. package/dist/seed/index.d.mts +4 -4
  271. package/dist/seed-B-yckgQY.mjs +483 -0
  272. package/dist/seed-B-yckgQY.mjs.map +1 -0
  273. package/dist/{service-DU1mVzri.mjs → service-B5WynBHQ.mjs} +3 -3
  274. package/dist/{service-DU1mVzri.mjs.map → service-B5WynBHQ.mjs.map} +1 -1
  275. package/dist/service-M7OYziQP.mjs +3 -0
  276. package/dist/service-k1xy_A5G.mjs +864 -0
  277. package/dist/service-k1xy_A5G.mjs.map +1 -0
  278. package/dist/service_pb-D5--My_M.mjs +167 -0
  279. package/dist/service_pb-D5--My_M.mjs.map +1 -0
  280. package/dist/service_pb-i8CmnQP4.mjs +3 -0
  281. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +203 -0
  282. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +57 -0
  283. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +420 -0
  284. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +160 -0
  285. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +2069 -0
  286. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +865 -0
  287. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +111 -0
  288. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +68 -0
  289. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +438 -0
  290. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +586 -0
  291. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +192 -0
  292. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +450 -0
  293. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +191 -0
  294. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +49 -0
  295. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +406 -0
  296. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +429 -0
  297. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +72 -0
  298. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +16 -0
  299. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +308 -0
  300. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +590 -0
  301. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +329 -0
  302. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +112 -0
  303. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +345 -0
  304. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +53 -0
  305. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +3658 -0
  306. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +186 -0
  307. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +28 -0
  308. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +428 -0
  309. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +89 -0
  310. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +683 -0
  311. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +796 -0
  312. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +329 -0
  313. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +207 -0
  314. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +961 -0
  315. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +330 -0
  316. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +2014 -0
  317. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +482 -0
  318. package/dist/{telemetry-CdqJEzkj.mjs → telemetry-BRVdwh14.mjs} +3 -3
  319. package/dist/telemetry-BRVdwh14.mjs.map +1 -0
  320. package/dist/telemetry-CkbkeJxl.mjs +3 -0
  321. package/dist/test-env-key-D7UkZp99.mjs +75 -0
  322. package/dist/test-env-key-D7UkZp99.mjs.map +1 -0
  323. package/dist/types/aigateway.generated.d.mts +12 -0
  324. package/dist/types/app-config.generated.d.mts +4 -0
  325. package/dist/types/auth-connection.generated.d.mts +33 -0
  326. package/dist/types/auth.generated.d.mts +188 -0
  327. package/dist/types/executor.generated.d.mts +229 -0
  328. package/dist/types/helpers.d.mts +40 -0
  329. package/dist/types/http-adapter.generated.d.mts +28 -0
  330. package/dist/types/idp.generated.d.mts +626 -0
  331. package/dist/types/resolver.generated.d.mts +82 -0
  332. package/dist/types/secrets.generated.d.mts +14 -0
  333. package/dist/types/staticwebsite.generated.d.mts +14 -0
  334. package/dist/types/tailordb.generated.d.mts +468 -0
  335. package/dist/types/workflow.generated.d.mts +17 -0
  336. package/dist/user-agent-Bgsszb5I.mjs +28 -0
  337. package/dist/user-agent-Bgsszb5I.mjs.map +1 -0
  338. package/dist/utils/test/index.d.mts +5 -100
  339. package/dist/utils/test/index.mjs +38 -189
  340. package/dist/utils/test/index.mjs.map +1 -1
  341. package/dist/vitest/environment.d.mts +1 -2
  342. package/dist/vitest/environment.mjs +2 -2
  343. package/dist/vitest/environment.mjs.map +1 -1
  344. package/dist/vitest/index.d.mts +17 -431
  345. package/dist/vitest/index.mjs +1234 -67
  346. package/dist/vitest/index.mjs.map +1 -1
  347. package/dist/vitest/mock-kysely.d.mts +61 -0
  348. package/dist/vitest/mock.d.mts +10 -0
  349. package/dist/vitest/mocks/aigateway.d.mts +40 -0
  350. package/dist/vitest/mocks/authconnection.d.mts +38 -0
  351. package/dist/vitest/mocks/file.d.mts +58 -0
  352. package/dist/vitest/mocks/iconv.d.mts +51 -0
  353. package/dist/vitest/mocks/idp.d.mts +60 -0
  354. package/dist/vitest/mocks/logger.d.mts +45 -0
  355. package/dist/vitest/mocks/secretmanager.d.mts +44 -0
  356. package/dist/vitest/mocks/tailordb.d.mts +115 -0
  357. package/dist/vitest/mocks/workflow.d.mts +148 -0
  358. package/dist/vitest/setup.d.mts +1 -2
  359. package/dist/vitest/setup.mjs +2 -2
  360. package/dist/vitest/workflow-local.d.mts +41 -0
  361. package/dist/workflow-Bamae_Yc.mjs +34 -0
  362. package/dist/workflow-Bamae_Yc.mjs.map +1 -0
  363. package/dist/{client-z_oHGVNy.mjs → workspace_resource_pb-DXnO2AT-.mjs} +57 -621
  364. package/dist/workspace_resource_pb-DXnO2AT-.mjs.map +1 -0
  365. package/docs/cli/application.md +150 -250
  366. package/docs/cli/auth.md +51 -295
  367. package/docs/cli/completion.md +1 -25
  368. package/docs/cli/crashreport.md +3 -61
  369. package/docs/cli/executor.md +72 -183
  370. package/docs/cli/function.md +16 -132
  371. package/docs/cli/organization.md +11 -221
  372. package/docs/cli/plugin.md +29 -0
  373. package/docs/cli/query.md +2 -22
  374. package/docs/cli/secret.md +71 -251
  375. package/docs/cli/setup.md +138 -40
  376. package/docs/cli/skills.md +50 -39
  377. package/docs/cli/staticwebsite.md +32 -180
  378. package/docs/cli/tailordb.md +89 -413
  379. package/docs/cli/upgrade.md +2 -22
  380. package/docs/cli/user.md +78 -247
  381. package/docs/cli/workflow.md +150 -172
  382. package/docs/cli/workspace.md +167 -538
  383. package/docs/cli-reference.md +214 -96
  384. package/docs/configuration.md +90 -6
  385. package/docs/github-actions.md +72 -24
  386. package/docs/migration/v2.md +1613 -0
  387. package/docs/multi-environment.md +29 -7
  388. package/docs/plugin/custom.md +4 -4
  389. package/docs/plugin/index.md +8 -8
  390. package/docs/quickstart.md +8 -7
  391. package/docs/runtime.md +18 -9
  392. package/docs/services/aigateway.md +20 -2
  393. package/docs/services/auth.md +51 -59
  394. package/docs/services/executor.md +91 -6
  395. package/docs/services/http-adapter.md +16 -1
  396. package/docs/services/idp.md +62 -7
  397. package/docs/services/resolver.md +67 -11
  398. package/docs/services/secret.md +11 -11
  399. package/docs/services/staticwebsite.md +8 -2
  400. package/docs/services/tailordb-migration.md +55 -29
  401. package/docs/services/tailordb.md +205 -102
  402. package/docs/services/workflow.md +163 -55
  403. package/docs/testing.md +244 -143
  404. package/package.json +61 -46
  405. package/postinstall.mjs +4 -6
  406. package/dist/application-DB2r36Et.mjs +0 -3
  407. package/dist/application-DqS1yBg3.mjs.map +0 -1
  408. package/dist/authconnection-D2MhtTN5.mjs +0 -15
  409. package/dist/authconnection-D2MhtTN5.mjs.map +0 -1
  410. package/dist/authconnection-DvUQAjQS.d.mts +0 -39
  411. package/dist/cli/erd-viewer-assets/app.js +0 -1181
  412. package/dist/cli/erd-viewer-assets/index.html +0 -73
  413. package/dist/cli/erd-viewer-assets/serve.json +0 -13
  414. package/dist/cli/erd-viewer-assets/styles.css +0 -789
  415. package/dist/cli/index.d.mts +0 -5
  416. package/dist/cli/index.mjs.map +0 -1
  417. package/dist/client-Dbohmtkv.mjs +0 -3
  418. package/dist/client-z_oHGVNy.mjs.map +0 -1
  419. package/dist/context-Bd266-ru.mjs.map +0 -1
  420. package/dist/context-BuuIb8CC.d.mts +0 -68
  421. package/dist/enum-constants-j9QBF0cB.mjs +0 -116
  422. package/dist/enum-constants-j9QBF0cB.mjs.map +0 -1
  423. package/dist/errors-Dtf2WPaW.mjs.map +0 -1
  424. package/dist/field-DOsJCPFa.mjs +0 -22
  425. package/dist/field-DOsJCPFa.mjs.map +0 -1
  426. package/dist/file-BB8Vs9O_.d.mts +0 -250
  427. package/dist/file-_oUZo76X.mjs.map +0 -1
  428. package/dist/file-utils-DcyIPFQh.mjs +0 -150
  429. package/dist/file-utils-DcyIPFQh.mjs.map +0 -1
  430. package/dist/globals-Crz8o65k.mjs.map +0 -1
  431. package/dist/http-adapter.generated-WgMnb7Sb.d.mts +0 -580
  432. package/dist/iconv-Co-TOPuH.d.mts +0 -122
  433. package/dist/iconv-D2vi8G36.mjs +0 -63
  434. package/dist/iconv-D2vi8G36.mjs.map +0 -1
  435. package/dist/idp-BDbK5gjm.mjs.map +0 -1
  436. package/dist/idp-DrhVrLmV.d.mts +0 -160
  437. package/dist/index-5vPyRu1y.d.mts +0 -18
  438. package/dist/index-B7AKc18V.d.mts +0 -47
  439. package/dist/index-BlpzXncY.d.mts +0 -1016
  440. package/dist/index-CK7u9isy.d.mts +0 -46
  441. package/dist/index-CNYe5lnW.d.mts +0 -18
  442. package/dist/index-DjUdWlzf.d.mts +0 -18
  443. package/dist/index-ZePLwxw7.d.mts +0 -208
  444. package/dist/interceptor-D-q1rvRl.mjs.map +0 -1
  445. package/dist/job-fuc3j1Ma.mjs +0 -53
  446. package/dist/job-fuc3j1Ma.mjs.map +0 -1
  447. package/dist/kysely-type-DR8uzZTA.mjs +0 -274
  448. package/dist/kysely-type-DR8uzZTA.mjs.map +0 -1
  449. package/dist/logger-CxF-Ex5d.mjs +0 -220
  450. package/dist/logger-CxF-Ex5d.mjs.map +0 -1
  451. package/dist/mock-BjFj5o1I.mjs +0 -804
  452. package/dist/mock-BjFj5o1I.mjs.map +0 -1
  453. package/dist/registry-DdsYlL_P.mjs.map +0 -1
  454. package/dist/rolldown-runtime-DXywRVcq.mjs +0 -20
  455. package/dist/runtime-n9NCkjee.mjs.map +0 -1
  456. package/dist/schema-BhkpP5Hw.mjs.map +0 -1
  457. package/dist/secretmanager-B3n4KHfm.d.mts +0 -55
  458. package/dist/secretmanager-BVxw3ih_.mjs +0 -24
  459. package/dist/secretmanager-BVxw3ih_.mjs.map +0 -1
  460. package/dist/seed-jf3008-h.mjs +0 -1160
  461. package/dist/seed-jf3008-h.mjs.map +0 -1
  462. package/dist/service-CCL8ruDf.mjs +0 -459
  463. package/dist/service-CCL8ruDf.mjs.map +0 -1
  464. package/dist/service-D6yonf2I.mjs +0 -3
  465. package/dist/telemetry-CdqJEzkj.mjs.map +0 -1
  466. package/dist/telemetry-ClwW5ohF.mjs +0 -3
  467. package/dist/test-env-key-D9kM6ETE.mjs +0 -49
  468. package/dist/test-env-key-D9kM6ETE.mjs.map +0 -1
  469. package/dist/types-B2RpYyA_.mjs +0 -371
  470. package/dist/types-B2RpYyA_.mjs.map +0 -1
  471. package/dist/types-ClhIrW_C.mjs +0 -4
  472. package/dist/types-DCUhgpyI.d.mts +0 -784
  473. package/dist/types-DhO_VEZd.d.mts +0 -574
  474. package/dist/types-DwDgacni.d.mts +0 -338
  475. package/dist/workflow-BbKvGLQg.d.mts +0 -96
  476. package/dist/workflow-DgemCAz3.mjs +0 -38
  477. package/dist/workflow-DgemCAz3.mjs.map +0 -1
  478. package/dist/workflow.generated-DtQwEo-x.d.mts +0 -671
@@ -0,0 +1,58 @@
1
+ import { FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions } from "../../runtime/file.mjs";
2
+ import { Mock } from "vitest";
3
+ //#region src/vitest/mocks/file.d.ts
4
+ type FileResolver = (method: string, call: FileCall) => unknown;
5
+ interface FileCall {
6
+ method: string;
7
+ namespace: string;
8
+ typeName: string;
9
+ fieldName: string;
10
+ recordId: string;
11
+ }
12
+ /** Controls fallback behavior for File calls without a configured result. */
13
+ interface MockFileOptions {
14
+ /** Return a type-compatible fixture or throw when no behavior is configured. */
15
+ onUnhandled?: "fallback" | "error";
16
+ }
17
+ /**
18
+ * Acquire a disposable mock for `tailordb.file`. Restored on dispose.
19
+ * @param options - Controls behavior for calls without a configured result
20
+ * @returns Disposable File mock control object
21
+ * @example
22
+ * ```typescript
23
+ * import { mockFile } from "@tailor-platform/sdk/vitest";
24
+ *
25
+ * test("mock file download", async () => {
26
+ * using file = mockFile();
27
+ * file.download.mockResolvedValue({ data: new Uint8Array(), metadata: { ... } });
28
+ * // …
29
+ * });
30
+ * ```
31
+ */
32
+ declare function mockFile(options?: MockFileOptions): {
33
+ setResolver(value: FileResolver): void;
34
+ /**
35
+ * Enqueue a single result for the next `tailordb.file` call.
36
+ * The queue is shared across all methods and namespaces.
37
+ * @param result - Result to return from the next file call
38
+ */
39
+ enqueueResult(result: unknown): void;
40
+ /**
41
+ * Enqueue results for multiple subsequent `tailordb.file` calls.
42
+ * The queue is shared across all methods and namespaces.
43
+ * @param results - Results to enqueue, one per upcoming call
44
+ */
45
+ enqueueResults(...results: unknown[]): void;
46
+ calls: FileCall[];
47
+ clear(): void;
48
+ reset(): void;
49
+ delete: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<void>>;
50
+ upload: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string, data: string | ArrayBuffer | Uint8Array | number[], options?: FileUploadOptions) => Promise<FileUploadResponse>>;
51
+ download: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileDownloadResponse>>;
52
+ downloadAsBase64: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileDownloadAsBase64Response>>;
53
+ getMetadata: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileMetadata>>;
54
+ downloadStream: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileDownloadStreamResponse>>;
55
+ uploadStream: Mock<(namespace: string, typeName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions) => Promise<FileUploadResponse>>;
56
+ } & Disposable;
57
+ //#endregion
58
+ export { MockFileOptions, mockFile };
@@ -0,0 +1,51 @@
1
+ import { MockInstance } from "vitest";
2
+ //#region src/vitest/mocks/iconv.d.ts
3
+ type IconvResolver = (method: string, args: unknown[]) => unknown;
4
+ type IconvMethod = "convert" | "convertBuffer" | "decode" | "encode" | "encodings";
5
+ interface IconvCall {
6
+ method: IconvMethod;
7
+ args: unknown[];
8
+ }
9
+ type ConversionResult = string | Uint8Array;
10
+ type ConvertMockProcedure = (input: string | Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: string) => ConversionResult;
11
+ type ConvertBufferMockProcedure = (input: Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: string) => ConversionResult;
12
+ type EncodeMockProcedure = (input: string, encoding: string) => ConversionResult;
13
+ type TypedOperationMock<RuntimeProcedure, MockProcedure extends (...args: never[]) => unknown> = RuntimeProcedure & MockInstance<MockProcedure>;
14
+ /** Controls how unconfigured Iconv operations are handled. */
15
+ interface MockIconvOptions {
16
+ /** Return an empty type-compatible value or throw when no behavior is configured. */
17
+ onUnhandled?: "fallback" | "error";
18
+ }
19
+ /**
20
+ * Acquire a disposable mock for `tailor.iconv`. Restored on dispose.
21
+ * @param options - Fallback behavior for unconfigured operations
22
+ * @returns Disposable Iconv mock control object
23
+ * @example
24
+ * ```typescript
25
+ * import { mockIconv } from "@tailor-platform/sdk/vitest";
26
+ *
27
+ * test("mock encoding conversion", () => {
28
+ * using iconv = mockIconv();
29
+ * iconv.decode.mockReturnValue("decoded-text");
30
+ * // …
31
+ * });
32
+ * ```
33
+ */
34
+ declare function mockIconv(options?: MockIconvOptions): {
35
+ /** The `convert` `vi.fn`. */
36
+ convert: TypedOperationMock<(<T extends string>(str: string | Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: T) => T extends "UTF8" | "UTF-8" ? string : Uint8Array), ConvertMockProcedure>;
37
+ /** The `convertBuffer` `vi.fn`. */
38
+ convertBuffer: TypedOperationMock<(<T extends string>(buffer: Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: T) => T extends "UTF8" | "UTF-8" ? string : Uint8Array), ConvertBufferMockProcedure>;
39
+ /** The `decode` `vi.fn`. */
40
+ decode: import("vitest").Mock<(input: Uint8Array | ArrayBuffer, encoding: string) => string>;
41
+ /** The `encode` `vi.fn`. */
42
+ encode: TypedOperationMock<(<T extends string>(str: string, encoding: T) => T extends "UTF8" | "UTF-8" ? string : Uint8Array), EncodeMockProcedure>;
43
+ /** The `encodings` `vi.fn`. */
44
+ encodings: import("vitest").Mock<() => string[]>;
45
+ setResolver(value: IconvResolver): void;
46
+ readonly calls: IconvCall[];
47
+ clear: () => void;
48
+ reset(): void;
49
+ } & Disposable;
50
+ //#endregion
51
+ export { MockIconvOptions, mockIconv };
@@ -0,0 +1,60 @@
1
+ import { IdpClientConstructor, IdpClientInstance } from "../../runtime/idp.mjs";
2
+ import { Mock } from "vitest";
3
+ //#region src/vitest/mocks/idp.d.ts
4
+ type IdpMethod = keyof IdpClientInstance;
5
+ type IdpResolver = (method: string, args: unknown[], namespace: string) => unknown;
6
+ interface IdpCall {
7
+ method: string;
8
+ args: unknown[];
9
+ namespace: string;
10
+ }
11
+ /** Controls fallback behavior for IdP calls without a configured result. */
12
+ interface MockIdpOptions {
13
+ /** Return a type-compatible fixture or throw when no behavior is configured. */
14
+ onUnhandled?: "fallback" | "error";
15
+ }
16
+ type IdpNamespaceMocks = { [Method in IdpMethod]: Mock<IdpClientInstance[Method]>; };
17
+ /**
18
+ * Acquire a disposable mock for `tailor.idp`. Restored on dispose.
19
+ * @param options - Controls behavior for calls without a configured result
20
+ * @returns Disposable IDP mock control object
21
+ * @example
22
+ * ```typescript
23
+ * import { mockIdp } from "@tailor-platform/sdk/vitest";
24
+ *
25
+ * test("returns a user", async () => {
26
+ * using idp = mockIdp();
27
+ * idp.namespace("my-idp").user.mockResolvedValue({
28
+ * id: "u-1",
29
+ * name: "alice",
30
+ * disabled: false,
31
+ * mfaEnrolled: false,
32
+ * mfaFactorIds: [],
33
+ * });
34
+ * // …
35
+ * });
36
+ * ```
37
+ */
38
+ declare function mockIdp(options?: MockIdpOptions): {
39
+ /** The mock IDP `Client` constructor (`vi.fn`). */
40
+ Client: Mock<IdpClientConstructor>;
41
+ namespace: (name: string) => IdpNamespaceMocks;
42
+ setResolver(value: IdpResolver): void;
43
+ /**
44
+ * Enqueue a single result for the next IDP call.
45
+ * The queue is shared across all methods and namespaces.
46
+ * @param result - Result to return from the next IDP call
47
+ */
48
+ enqueueResult(result: unknown): void;
49
+ /**
50
+ * Enqueue results for multiple subsequent IDP calls.
51
+ * The queue is shared across all methods and namespaces.
52
+ * @param results - Results to enqueue, one per upcoming call
53
+ */
54
+ enqueueResults(...results: unknown[]): void;
55
+ readonly calls: IdpCall[];
56
+ clear(): void;
57
+ reset(): void;
58
+ } & Disposable;
59
+ //#endregion
60
+ export { MockIdpOptions, mockIdp };
@@ -0,0 +1,45 @@
1
+ import { LogAttributes } from "../../runtime/logger.mjs";
2
+ //#region src/vitest/mocks/logger.d.ts
3
+ type LogSeverity = "debug" | "info" | "warn" | "error";
4
+ /** A recorded `debug`/`info`/`warn`/`error` call. */
5
+ interface LogCall {
6
+ severity: LogSeverity;
7
+ message: string;
8
+ attributes?: LogAttributes;
9
+ }
10
+ /** Initial fixtures for a logger mock. */
11
+ interface MockLoggerOptions {}
12
+ /**
13
+ * Acquire a disposable mock for `tailor.logger`. Each method is a `vi.fn`, so
14
+ * calls can be asserted directly; `calls` returns the `debug`/`info`/`warn`/
15
+ * `error` entries in the order they were emitted. Restored on dispose.
16
+ * @param _options - Reserved for future initial fixtures
17
+ * @returns Disposable logger mock control object
18
+ * @example
19
+ * ```typescript
20
+ * import { mockLogger } from "@tailor-platform/sdk/vitest";
21
+ *
22
+ * test("logs the processed order", () => {
23
+ * using logger = mockLogger();
24
+ * // …run code that calls tailor.logger.info…
25
+ * expect(logger.info).toHaveBeenCalledWith("order processed", { orderId: "o-1" });
26
+ * });
27
+ * ```
28
+ */
29
+ declare function mockLogger(_options?: MockLoggerOptions): {
30
+ /** The `debug` `vi.fn`. */
31
+ debug: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>;
32
+ /** The `info` `vi.fn`. */
33
+ info: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>;
34
+ /** The `warn` `vi.fn`. */
35
+ warn: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>;
36
+ /** The `error` `vi.fn`. */
37
+ error: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>;
38
+ /** The `setAttributes` `vi.fn`. */
39
+ setAttributes: import("vitest").Mock<(_attributes: LogAttributes) => void>;
40
+ readonly calls: LogCall[];
41
+ clear(): void;
42
+ reset(): void;
43
+ } & Disposable;
44
+ //#endregion
45
+ export { MockLoggerOptions, mockLogger };
@@ -0,0 +1,44 @@
1
+ //#region src/vitest/mocks/secretmanager.d.ts
2
+ interface SecretCall {
3
+ method: "getSecret" | "getSecrets";
4
+ vault: string;
5
+ name?: string;
6
+ names?: readonly string[];
7
+ }
8
+ /** Initial fixtures for a Secret Manager mock. */
9
+ interface MockSecretmanagerOptions {
10
+ /** Secrets to merge over fixtures inherited from the currently installed mock. */
11
+ secrets?: Record<string, Record<string, string>>;
12
+ }
13
+ /**
14
+ * Acquire a disposable mock for `tailor.secretmanager`. The secret store is
15
+ * inherited (cloned) from the currently-installed mock on acquisition and
16
+ * restored on dispose, so secrets seeded outside the test survive across
17
+ * `using` scopes while per-test `setSecrets()` overrides stay isolated.
18
+ * @param options - Initial Secret Manager fixtures
19
+ * @returns Disposable SecretManager mock control object
20
+ * @example
21
+ * ```typescript
22
+ * import { mockSecretmanager } from "@tailor-platform/sdk/vitest";
23
+ *
24
+ * test("reads secrets from vault", async () => {
25
+ * using sm = mockSecretmanager({ secrets: { "my-vault": { API_KEY: "sk-123" } } });
26
+ * sm.setSecret("my-vault", "API_KEY", "replacement");
27
+ * // …
28
+ * });
29
+ * ```
30
+ */
31
+ declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
32
+ /** The `getSecret` `vi.fn`. */
33
+ getSecret: import("vitest").Mock<(vault: string, name: string) => Promise<string | undefined>>;
34
+ /** The `getSecrets` `vi.fn`. */
35
+ getSecrets: import("vitest").Mock<(<const T extends readonly string[]>(vault: string, names: T) => Promise<Partial<Record<T[number], string>>>)>;
36
+ setSecrets(secrets: Record<string, Record<string, string>>): void;
37
+ setSecret(vault: string, name: string, value: string): void;
38
+ mergeSecrets(vault: string, secrets: Record<string, string>): void;
39
+ readonly calls: SecretCall[];
40
+ clear(): void;
41
+ reset(): void;
42
+ } & Disposable;
43
+ //#endregion
44
+ export { MockSecretmanagerOptions, mockSecretmanager };
@@ -0,0 +1,115 @@
1
+ //#region src/vitest/mocks/tailordb.d.ts
2
+ type QueryResolver = (query: string, params: unknown[]) => unknown[] | undefined;
3
+ /** Controls how unmatched TailorDB queries are handled. */
4
+ interface MockTailordbOptions {
5
+ /** Return an empty result or throw when no configured query behavior matches. */
6
+ onUnhandled?: "fallback" | "error";
7
+ }
8
+ /** Matches a TailorDB query by SQL text and optionally by parameters. */
9
+ interface QueryMatch {
10
+ /** Exact SQL text or regular expression to match. */
11
+ sql: string | RegExp;
12
+ /** Exact parameters or a predicate for parameter matching. */
13
+ params?: readonly unknown[] | ((params: unknown[]) => boolean);
14
+ }
15
+ /** Selects TailorDB queries that receive a configured response. */
16
+ type QueryMatcher = string | RegExp | QueryMatch | ((query: string, params: unknown[]) => boolean);
17
+ /** Configures persistent and one-time responses for matched queries. */
18
+ interface QueryBehavior<Row> {
19
+ /** Return these rows for every matching query after one-time responses are consumed. */
20
+ returnsRows(rows: Row[]): QueryBehavior<Row>;
21
+ /** Return these rows for the next matching query. */
22
+ returnsRowsOnce(rows: Row[]): QueryBehavior<Row>;
23
+ /** Reject every matching query after one-time responses are consumed. */
24
+ rejects(error: unknown): QueryBehavior<Row>;
25
+ /** Reject the next matching query. */
26
+ rejectsOnce(error: unknown): QueryBehavior<Row>;
27
+ }
28
+ interface ExecutedQuery {
29
+ query: string;
30
+ params: unknown[];
31
+ }
32
+ interface CreatedClient {
33
+ namespace: string | undefined;
34
+ ended: boolean;
35
+ }
36
+ declare class MockQueryResult {
37
+ command: string;
38
+ rowCount: number;
39
+ rows: unknown[];
40
+ constructor(rows: unknown[]);
41
+ }
42
+ /**
43
+ * Acquire a disposable mock for TailorDB operations. Installs a mock
44
+ * `tailordb.Client` whose `queryObject` is a shared `vi.fn()` (so query
45
+ * responses can be staged before the client is constructed). Restored on
46
+ * dispose.
47
+ * @param options - Query fallback behavior
48
+ * @returns Disposable TailorDB mock control object
49
+ * @example
50
+ * ```typescript
51
+ * import { mockTailordb } from "@tailor-platform/sdk/vitest";
52
+ *
53
+ * test("query-based", async () => {
54
+ * using db = mockTailordb();
55
+ * db.onQuery({ sql: /FROM users/, params: ["u-1"] }).returnsRows([{ age: 30 }]);
56
+ * // …
57
+ * expect(db.queryObject).toHaveBeenCalled();
58
+ * expect(db.Client).toHaveBeenCalledWith({ namespace: "tailordb" });
59
+ * });
60
+ * ```
61
+ */
62
+ declare function mockTailordb(options?: MockTailordbOptions): {
63
+ /** The mock `tailordb.Client` constructor (`vi.fn`). */
64
+ Client: import("vitest").Mock<(this: any, config?: {
65
+ namespace?: string;
66
+ }) => void>;
67
+ /** The shared `queryObject` `vi.fn` used by every client and transaction. */
68
+ queryObject: import("vitest").Mock<(query: string, params?: unknown[]) => Promise<MockQueryResult>>;
69
+ /**
70
+ * Set a fallback query resolver. Called when the enqueue queue is empty.
71
+ * @param resolver - Function that returns rows for a given query and params
72
+ */
73
+ setQueryResolver(resolver: QueryResolver): void;
74
+ /**
75
+ * Configure responses for queries matching SQL text, parameters, or a predicate.
76
+ * More recently registered matchers take precedence.
77
+ * Do not combine matchers with a direct `queryObject.mockImplementation()` override.
78
+ * @param matcher - Query matcher
79
+ * @returns Chainable query behavior
80
+ */
81
+ onQuery<Row = unknown>(matcher: QueryMatcher): QueryBehavior<Row>;
82
+ /**
83
+ * Enqueue rows for the next `queryObject` call (FIFO; takes priority over
84
+ * `setQueryResolver`). Call with no arguments for an empty result.
85
+ * @param rows - Row objects to return from the next `queryObject` call
86
+ */
87
+ enqueueResult(...rows: unknown[]): void;
88
+ /**
89
+ * Enqueue rows for multiple subsequent `queryObject` calls (FIFO).
90
+ * @param rowsList - Rows arrays, one per upcoming query
91
+ */
92
+ enqueueResults(...rowsList: unknown[][]): void;
93
+ /**
94
+ * Enqueue row arrays for subsequent queries whose exact order is under test.
95
+ * @param rowsList - Rows arrays, one per upcoming query
96
+ */
97
+ enqueueRows(...rowsList: unknown[][]): void;
98
+ /**
99
+ * All queries executed via `queryObject`, in order, derived from the vi.fn
100
+ * call records.
101
+ * @returns Executed queries array
102
+ */
103
+ readonly executedQueries: ExecutedQuery[];
104
+ /**
105
+ * All TailorDB clients created, with their namespace and end state.
106
+ * @returns Created clients array
107
+ */
108
+ readonly createdClients: CreatedClient[];
109
+ /** Clear recorded calls while preserving configured query behavior. */
110
+ clear(): void;
111
+ /** Reset query responses and recorded calls (keeps the mock installed). */
112
+ reset(): void;
113
+ } & Disposable;
114
+ //#endregion
115
+ export { MockTailordbOptions, QueryBehavior, QueryMatch, QueryMatcher, mockTailordb };
@@ -0,0 +1,148 @@
1
+ import { TailorEnv } from "../../runtime/types.mjs";
2
+ import { ExecJobFunctionOptions, StartWorkflowOptions } from "../../runtime/workflow.mjs";
3
+ import { WorkflowJob } from "../../configure/services/workflow/job.mjs";
4
+ import { Workflow } from "../../configure/services/workflow/workflow.mjs";
5
+ import { WaitPointInstance } from "../../configure/services/workflow/wait-point.mjs";
6
+ import { Mock } from "vitest";
7
+ //#region src/vitest/mocks/workflow.d.ts
8
+ type JobHandler = (jobName: string, args: unknown, options?: ExecJobFunctionOptions) => unknown;
9
+ type StartHandlerFn = (workflowName: string, args: unknown, options?: StartWorkflowOptions) => string;
10
+ type ResumeHandlerFn = (executionId: string) => string;
11
+ type WaitHandlerFn = (key: string, payload: unknown) => unknown;
12
+ type ResolveHandler = (executionId: string, key: string, callback: (payload: unknown) => unknown) => unknown | Promise<unknown>;
13
+ type SetWaitHandler = {
14
+ (handler: WaitHandlerFn): void;
15
+ (handler: unknown): void;
16
+ };
17
+ interface StartedJob {
18
+ jobName: string;
19
+ args: unknown;
20
+ options?: ExecJobFunctionOptions;
21
+ }
22
+ type WaitPayload<Payload> = [Payload] extends [undefined] ? undefined : Payload;
23
+ /**
24
+ * Acquire a disposable mock for workflow operations (`tailor.workflow`).
25
+ * Restored on dispose.
26
+ * @returns Disposable workflow mock control object
27
+ * @example
28
+ * ```typescript
29
+ * import { mockWorkflow } from "@tailor-platform/sdk/vitest";
30
+ *
31
+ * test("job start", async () => {
32
+ * using wf = mockWorkflow();
33
+ * const job = wf.job(validateOrder);
34
+ * job.mockResolvedValue({ valid: true });
35
+ * await runWorkflowUnderTest();
36
+ * expect(job).toHaveBeenCalled();
37
+ * });
38
+ * ```
39
+ */
40
+ declare function mockWorkflow(): {
41
+ /** The `execJobFunction` `vi.fn`. */
42
+ execJobFunction: Mock<(jobName: string, _args?: unknown, _options?: ExecJobFunctionOptions) => unknown>;
43
+ /** The `startWorkflow` `vi.fn`. */
44
+ startWorkflow: Mock<(_workflowName: string, _args?: unknown, _options?: StartWorkflowOptions) => Promise<string>>;
45
+ /** The `resumeWorkflowExecution` `vi.fn`. */
46
+ resumeWorkflowExecution: Mock<(executionId: string) => Promise<string>>;
47
+ /** The `wait` `vi.fn`. */
48
+ wait: Mock<(_key: string, _payload?: unknown) => unknown>;
49
+ /** The `resolve` `vi.fn`. */
50
+ resolve: Mock<(_executionId: string, _key: string, _callback: (payload: unknown) => unknown) => Promise<void>>;
51
+ /**
52
+ * Get a stable, typed mock for a workflow job's `start` method.
53
+ * The real start behavior is used until an implementation or result is configured.
54
+ * @param definition - Workflow job definition to mock
55
+ * @returns Typed `start` mock for the definition
56
+ */
57
+ job<Name extends string, Input, Output>(definition: WorkflowJob<Name, Input, Output>): Mock<WorkflowJob<Name, Input, Output>["start"]>;
58
+ /**
59
+ * Get a stable, typed mock for a workflow definition's `start` method.
60
+ * The real start behavior is used until an implementation or result is configured.
61
+ * @param definition - Workflow definition to mock
62
+ * @returns Typed `start` mock for the definition
63
+ */
64
+ workflow<Definition extends Workflow>(definition: Definition): Mock<Definition["start"]>;
65
+ /**
66
+ * Get stable, typed mocks for a wait point's `wait` and `resolve` methods.
67
+ * @param definition - Wait point definition to mock
68
+ * @returns Typed wait point mock control object
69
+ */
70
+ waitPoint<Payload, Result>(definition: WaitPointInstance<Payload, Result>): {
71
+ wait: Mock<WaitPointInstance<Payload, Result>["wait"]>;
72
+ resolve: Mock<WaitPointInstance<Payload, Result>["resolve"]>;
73
+ setResolvePayload(payload: WaitPayload<Payload>): void;
74
+ };
75
+ /**
76
+ * Set a fallback job handler. Called when the enqueue queue is empty.
77
+ * @param handler - Function returning a result for a job name, args, and options
78
+ */
79
+ setJobHandler(handler: JobHandler): void;
80
+ /**
81
+ * Enqueue a single result for the next `execJobFunction` call (FIFO;
82
+ * takes priority over `setJobHandler`).
83
+ * @param result - Result to return from the next call
84
+ */
85
+ enqueueResult(result: unknown): void;
86
+ /**
87
+ * Enqueue results for multiple subsequent `execJobFunction` calls (FIFO).
88
+ * @param results - Results to enqueue, one per upcoming call
89
+ */
90
+ enqueueResults(...results: unknown[]): void;
91
+ /**
92
+ * All jobs executed via `execJobFunction`, in order.
93
+ * @returns Started jobs array
94
+ */
95
+ readonly startedJobs: StartedJob[];
96
+ /**
97
+ * Configure what `startWorkflow` returns. Pass a string (same id every
98
+ * call) or `(name, args, options) => string`. Default: a placeholder UUID.
99
+ * @param handler - Static execution ID or a function returning one
100
+ */
101
+ setStartHandler(handler: string | StartHandlerFn): void;
102
+ /**
103
+ * Configure what `resumeWorkflowExecution` returns. Pass a string (same id
104
+ * every call) or `(executionId) => string`. Default: echoes the input executionId.
105
+ * @param handler - Static execution ID or a function returning one
106
+ */
107
+ setResumeHandler(handler: string | ResumeHandlerFn): void;
108
+ /**
109
+ * Configure what `wait` returns. Pass `(key, payload) => unknown` or any
110
+ * other value to return it for every call. Default: `null`.
111
+ * @param handler - Static value or a function returning one
112
+ */
113
+ setWaitHandler: SetWaitHandler;
114
+ /**
115
+ * Set the `env` passed to job bodies invoked via `createWorkflowJob().start()`.
116
+ * Cleared on dispose / reset.
117
+ * @param env - Env passed to job bodies.
118
+ */
119
+ setEnv(env: TailorEnv): void;
120
+ /**
121
+ * Configure how `resolve` runs the user-supplied callback. Default: callback
122
+ * is not invoked (records the call only).
123
+ * @param handler - Function invoked per `resolve` call
124
+ */
125
+ setResolveHandler(handler: ResolveHandler): void;
126
+ /**
127
+ * `wait` calls reshaped as `{ key, payload }` for assertions.
128
+ * @returns Wait call records
129
+ */
130
+ readonly waitCalls: {
131
+ key: string;
132
+ payload: unknown;
133
+ }[];
134
+ /**
135
+ * `resolve` calls reshaped as `{ executionId, key }` for assertions.
136
+ * @returns Resolve call records
137
+ */
138
+ readonly resolveCalls: {
139
+ executionId: string;
140
+ key: string;
141
+ }[];
142
+ /** Clear recorded calls while preserving configured responses. */
143
+ clear(): void;
144
+ /** Reset all workflow responses and recorded calls (keeps the mock installed). */
145
+ reset(): void;
146
+ } & Disposable;
147
+ //#endregion
148
+ export { mockWorkflow };
@@ -59,5 +59,4 @@ declare function removeBlockedGlobals(globalObj: Record<string, unknown>, keys:
59
59
  */
60
60
  declare function restoreBlockedGlobals(globalObj: Record<string, unknown>, saved: SavedGlobals): void;
61
61
  //#endregion
62
- export { createBlockedGlobalsLifecycle, extractVaultStore, loadSecretsFromConfig, removeBlockedGlobals, restoreBlockedGlobals };
63
- //# sourceMappingURL=setup.d.mts.map
62
+ export { createBlockedGlobalsLifecycle, extractVaultStore, loadSecretsFromConfig, removeBlockedGlobals, restoreBlockedGlobals };
@@ -1,5 +1,5 @@
1
- import { t as RUNTIME_FLAG_KEY } from "../globals-Crz8o65k.mjs";
2
- import { a as mockSecretmanager } from "../mock-BjFj5o1I.mjs";
1
+ import { t as RUNTIME_FLAG_KEY } from "../globals-TfAVItuK.mjs";
2
+ import { t as mockSecretmanager } from "../secretmanager-IY4UvinW.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import { afterEach, beforeAll, beforeEach } from "vitest";
5
5
 
@@ -0,0 +1,41 @@
1
+ import { TailorEnv } from "../runtime/types.mjs";
2
+ import { WorkflowJob } from "../configure/services/workflow/job.mjs";
3
+ import { Workflow } from "../configure/services/workflow/workflow.mjs";
4
+ import "../configure/services/workflow/index.mjs";
5
+ //#region src/vitest/workflow-local.d.ts
6
+ type AnyWorkflowJob = WorkflowJob<string, any, any>;
7
+ type AnyWorkflow = Workflow<AnyWorkflowJob>;
8
+ type WorkflowInput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, infer I, any> ? I : never;
9
+ type WorkflowOutput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, any, infer O> ? Awaited<O> : never;
10
+ interface RunWorkflowLocallyOptions {
11
+ /** Env passed to workflow job bodies during this local run. */
12
+ env?: TailorEnv;
13
+ }
14
+ /**
15
+ * Run a workflow's main job and dependent job starts locally with real job bodies.
16
+ *
17
+ * Use this for local full-chain workflow tests. Regular `.start()` calls
18
+ * delegate to the platform workflow runtime and should be mocked with
19
+ * `mockWorkflow()` when you are not intentionally running the local chain.
20
+ * @param workflow - Workflow definition to run
21
+ * @returns The main job output
22
+ */
23
+ declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undefined, any>>>(workflow: W): Promise<WorkflowOutput<W>>;
24
+ /**
25
+ * Run a no-input workflow locally with optional runner settings.
26
+ * @param workflow - Workflow definition to run
27
+ * @param args - Must be `undefined` for no-input workflows
28
+ * @param options - Local runner options
29
+ * @returns The main job output
30
+ */
31
+ declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undefined, any>>>(workflow: W, args: undefined, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
32
+ /**
33
+ * Run a workflow locally with real job bodies.
34
+ * @param workflow - Workflow definition to run
35
+ * @param args - Arguments passed to the workflow's main job
36
+ * @param options - Local runner options
37
+ * @returns The main job output
38
+ */
39
+ declare function runWorkflowLocally<W extends AnyWorkflow>(workflow: W, args: WorkflowInput<W>, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
40
+ //#endregion
41
+ export { RunWorkflowLocallyOptions, runWorkflowLocally };
@@ -0,0 +1,34 @@
1
+ //#region src/runtime/workflow.ts
2
+ const api = () => globalThis.tailor.workflow;
3
+ /**
4
+ * See {@link PlatformWorkflowAPI.startWorkflow}.
5
+ * @param args - Forwarded to {@link PlatformWorkflowAPI.startWorkflow}
6
+ * @returns The execution ID of the started workflow
7
+ */
8
+ const startWorkflow = (...args) => api().startWorkflow(...args);
9
+ /**
10
+ * See {@link PlatformWorkflowAPI.resumeWorkflowExecution}.
11
+ * @param args - Forwarded to {@link PlatformWorkflowAPI.resumeWorkflowExecution}
12
+ * @returns The execution ID of the resumed workflow
13
+ */
14
+ const resumeWorkflowExecution = (...args) => api().resumeWorkflowExecution(...args);
15
+ /**
16
+ * See {@link PlatformWorkflowAPI.execJobFunction}.
17
+ * @param args - Forwarded to {@link PlatformWorkflowAPI.execJobFunction}
18
+ * @returns The job's return value
19
+ */
20
+ const execJobFunction = (...args) => api().execJobFunction(...args);
21
+ const wait = (...args) => api().wait(...args);
22
+ const resolve = (...args) => api().resolve(...args);
23
+ /** Runtime wrapper namespace for `tailor.workflow`. */
24
+ const workflow = {
25
+ startWorkflow,
26
+ resumeWorkflowExecution,
27
+ execJobFunction,
28
+ wait,
29
+ resolve
30
+ };
31
+
32
+ //#endregion
33
+ export { workflow as t };
34
+ //# sourceMappingURL=workflow-Bamae_Yc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-Bamae_Yc.mjs","names":[],"sources":["../src/runtime/workflow.ts"],"sourcesContent":["/**\n * Workflow utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.workflow` runtime API.\n * At runtime this delegates to `globalThis.tailor.workflow`. Use `mockWorkflow`\n * from `@tailor-platform/sdk/vitest` to mock these calls in unit tests.\n *\n * The canonical names (`startWorkflow`, `execJobFunction`,\n * `resumeWorkflowExecution`) mirror the public `tailor.v1` RPC vocabulary:\n * `Exec*` is a blocking call that returns the job's result, while `Start*`\n * returns only an execution ID.\n * @example\n * import { workflow } from \"@tailor-platform/sdk/runtime\";\n *\n * const executionId = await workflow.startWorkflow(\"myWorkflow\", { data: \"value\" });\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Specifies the machine user that should be used to execute the workflow.\n * This allows workflows to run with specific authentication context.\n */\nexport interface Invoker {\n /** The namespace where the machine user is defined */\n namespace: string;\n /** The name of the machine user to use for workflow execution */\n machineUserName: string;\n}\n\n/** Options for {@link startWorkflow}. */\nexport interface StartWorkflowOptions {\n /** Optional authentication invoker to specify which machine user should execute the workflow */\n authInvoker?: Invoker;\n}\n\ndeclare const executionPolicyKeyBrand: unique symbol;\n\n/**\n * A concrete runtime key produced by an execution policy instance — either an\n * exact-match policy's `.key`, or a wildcard policy's `.keyFor(suffix)` (see\n * `defineWorkflowExecutionPolicies`). Branded so an arbitrary string that\n * wasn't derived from a declared policy can't be passed as `executionPolicyKey`.\n */\nexport type ExecutionPolicyKey = string & { readonly [executionPolicyKeyBrand]: never };\n\n/** Options for {@link execJobFunction}. */\nexport interface ExecJobFunctionOptions {\n /**\n * Execution policy key matched by the platform against the policies\n * declared with `defineWorkflowExecutionPolicies` in `tailor.config.ts`.\n */\n executionPolicyKey?: ExecutionPolicyKey;\n}\n\n/**\n * Platform API surface for `tailor.workflow`. Describes the shape the platform\n * runtime injects on `globalThis.tailor.workflow`.\n */\nexport interface PlatformWorkflowAPI {\n /**\n * Starts a workflow and returns its execution ID.\n * @param workflowName - Workflow name as defined in tailor.config\n * @param args - Arguments forwarded to the workflow's main job\n * @param options - Optional start options (e.g. `authInvoker`)\n * @returns The execution ID of the started workflow\n */\n startWorkflow(workflowName: string, args?: any, options?: StartWorkflowOptions): Promise<string>;\n\n /**\n * Resumes a failed or pending-retry workflow execution and returns its execution ID.\n * @param executionId - The execution to resume\n * @returns The execution ID of the resumed workflow\n */\n resumeWorkflowExecution(executionId: string): Promise<string>;\n\n /**\n * Executes a job function and returns its result via durable suspend/replay.\n *\n * Canonical name under the platform verb convention: `Exec*` blocks and\n * returns the job's result, while `Start*` returns only an execution ID.\n * @param jobName - Job name as defined in the workflow\n * @param args - Arguments forwarded to the job\n * @param options - Optional execution options (e.g. `executionPolicyKey`)\n * @returns The job's return value\n */\n execJobFunction(jobName: string, args?: any, options?: ExecJobFunctionOptions): any;\n\n /**\n * Suspends the current workflow execution and waits for an external signal to resume.\n * @param key - Wait point key\n * @param payload - Optional payload to record with the wait point\n * @returns The payload supplied by the corresponding `resolve` call\n */\n wait(key: string, payload?: any): any;\n\n /**\n * Resolves a waiting workflow execution, causing it to resume.\n * @param executionId - The execution to resume\n * @param key - Wait point key to resolve\n * @param callback - Callback receiving the wait payload; its return value is forwarded to `wait`\n * @returns A promise that resolves once the resolve has been recorded\n */\n resolve(executionId: string, key: string, callback: (waitPayload: any) => any): Promise<void>;\n}\n\nconst api = (): PlatformWorkflowAPI =>\n (globalThis as unknown as { tailor: { workflow: PlatformWorkflowAPI } }).tailor.workflow;\n\n/**\n * See {@link PlatformWorkflowAPI.startWorkflow}.\n * @param args - Forwarded to {@link PlatformWorkflowAPI.startWorkflow}\n * @returns The execution ID of the started workflow\n */\nconst startWorkflow: PlatformWorkflowAPI[\"startWorkflow\"] = (...args) =>\n api().startWorkflow(...args);\n\n/**\n * See {@link PlatformWorkflowAPI.resumeWorkflowExecution}.\n * @param args - Forwarded to {@link PlatformWorkflowAPI.resumeWorkflowExecution}\n * @returns The execution ID of the resumed workflow\n */\nconst resumeWorkflowExecution: PlatformWorkflowAPI[\"resumeWorkflowExecution\"] = (...args) =>\n api().resumeWorkflowExecution(...args);\n\n/**\n * See {@link PlatformWorkflowAPI.execJobFunction}.\n * @param args - Forwarded to {@link PlatformWorkflowAPI.execJobFunction}\n * @returns The job's return value\n */\nconst execJobFunction: PlatformWorkflowAPI[\"execJobFunction\"] = (...args) =>\n api().execJobFunction(...args);\n\nconst wait: PlatformWorkflowAPI[\"wait\"] = (...args) => api().wait(...args);\n\nconst resolve: PlatformWorkflowAPI[\"resolve\"] = (...args) => api().resolve(...args);\n\n/** Runtime wrapper namespace for `tailor.workflow`. */\nexport const workflow = {\n startWorkflow,\n resumeWorkflowExecution,\n execJobFunction,\n wait,\n resolve,\n} as const satisfies PlatformWorkflowAPI;\n"],"mappings":";AA0GA,MAAM,YACH,WAAwE,OAAO;;;;;;AAOlF,MAAM,iBAAuD,GAAG,SAC9D,IAAI,CAAC,CAAC,cAAc,GAAG,IAAI;;;;;;AAO7B,MAAM,2BAA2E,GAAG,SAClF,IAAI,CAAC,CAAC,wBAAwB,GAAG,IAAI;;;;;;AAOvC,MAAM,mBAA2D,GAAG,SAClE,IAAI,CAAC,CAAC,gBAAgB,GAAG,IAAI;AAE/B,MAAM,QAAqC,GAAG,SAAS,IAAI,CAAC,CAAC,KAAK,GAAG,IAAI;AAEzE,MAAM,WAA2C,GAAG,SAAS,IAAI,CAAC,CAAC,QAAQ,GAAG,IAAI;;AAGlF,MAAa,WAAW;CACtB;CACA;CACA;CACA;CACA;AACF"}