@tailor-platform/sdk 1.72.0 → 1.73.0

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 (380) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/aigateway-B3oZZE6v.mjs +15 -0
  3. package/dist/aigateway-B3oZZE6v.mjs.map +1 -0
  4. package/dist/application-BhRnH42h.mjs +3 -0
  5. package/dist/{application-DmjIKQ-a.mjs → application-Dxhdq_nu.mjs} +21 -19
  6. package/dist/application-Dxhdq_nu.mjs.map +1 -0
  7. package/dist/{assert-CKfwrmCV.mjs → assert-DBxo8jPo.mjs} +1 -2
  8. package/dist/{assert-CKfwrmCV.mjs.map → assert-DBxo8jPo.mjs.map} +1 -1
  9. package/dist/{authconnection-D7lsvsKY.mjs → authconnection-BGQM8FZI.mjs} +2 -3
  10. package/dist/{authconnection-D7lsvsKY.mjs.map → authconnection-BGQM8FZI.mjs.map} +1 -1
  11. package/dist/{brand-DlnJ375c.mjs → brand-Eo4pLXPJ.mjs} +1 -2
  12. package/dist/{brand-DlnJ375c.mjs.map → brand-Eo4pLXPJ.mjs.map} +1 -1
  13. package/dist/cli/cache/bundle-cache.d.mts +1 -0
  14. package/dist/cli/cache/store.d.mts +1 -0
  15. package/dist/cli/cache/types.d.mts +1 -0
  16. package/dist/cli/commands/api/api-call.d.mts +19 -0
  17. package/dist/cli/commands/api/index.d.mts +3 -0
  18. package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
  19. package/dist/cli/commands/deploy/application.d.mts +1 -0
  20. package/dist/cli/commands/deploy/auth.d.mts +1 -0
  21. package/dist/cli/commands/deploy/deploy.d.mts +24 -0
  22. package/dist/cli/commands/deploy/executor.d.mts +1 -0
  23. package/dist/cli/commands/deploy/function-registry-types.d.mts +12 -0
  24. package/dist/cli/commands/deploy/function-registry.d.mts +2 -0
  25. package/dist/cli/commands/deploy/idp.d.mts +1 -0
  26. package/dist/cli/commands/deploy/resolver.d.mts +1 -0
  27. package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
  28. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
  29. package/dist/cli/commands/deploy/tailordb/index.d.mts +1 -0
  30. package/dist/cli/commands/deploy/types.d.mts +1 -0
  31. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  32. package/dist/cli/commands/executor/get.d.mts +29 -0
  33. package/dist/cli/commands/executor/jobs.d.mts +123 -0
  34. package/dist/cli/commands/executor/list.d.mts +19 -0
  35. package/dist/cli/commands/executor/transform.d.mts +41 -0
  36. package/dist/cli/commands/executor/trigger.d.mts +41 -0
  37. package/dist/cli/commands/executor/webhook.d.mts +22 -0
  38. package/dist/cli/commands/function/get.d.mts +18 -0
  39. package/dist/cli/commands/function/list.d.mts +22 -0
  40. package/dist/cli/commands/function/transform.d.mts +11 -0
  41. package/dist/cli/commands/generate/options.d.mts +7 -0
  42. package/dist/cli/commands/generate/seed/bundler.d.mts +26 -0
  43. package/dist/cli/commands/generate/service.d.mts +12 -0
  44. package/dist/cli/commands/generate/types.d.mts +126 -0
  45. package/dist/cli/commands/machineuser/list.d.mts +27 -0
  46. package/dist/cli/commands/machineuser/token.d.mts +22 -0
  47. package/dist/cli/commands/oauth2client/get.d.mts +18 -0
  48. package/dist/cli/commands/oauth2client/list.d.mts +20 -0
  49. package/dist/cli/commands/oauth2client/transform.d.mts +20 -0
  50. package/dist/cli/commands/organization/folder/create.d.mts +18 -0
  51. package/dist/cli/commands/organization/folder/delete.d.mts +16 -0
  52. package/dist/cli/commands/organization/folder/get.d.mts +17 -0
  53. package/dist/cli/commands/organization/folder/list.d.mts +22 -0
  54. package/dist/cli/commands/organization/folder/update.d.mts +18 -0
  55. package/dist/cli/commands/organization/get.d.mts +16 -0
  56. package/dist/cli/commands/organization/list.d.mts +15 -0
  57. package/dist/cli/commands/organization/transform.d.mts +27 -0
  58. package/dist/cli/commands/organization/tree.d.mts +25 -0
  59. package/dist/cli/commands/organization/update.d.mts +17 -0
  60. package/dist/cli/commands/remove.d.mts +16 -0
  61. package/dist/cli/commands/show.d.mts +34 -0
  62. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +28 -0
  63. package/dist/cli/commands/tailordb/migrate/config.d.mts +19 -0
  64. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +211 -0
  65. package/dist/cli/commands/tailordb/migrate/generate.d.mts +17 -0
  66. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +202 -0
  67. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +113 -0
  68. package/dist/cli/commands/tailordb/migrate/types.d.mts +7 -0
  69. package/dist/cli/commands/tailordb/truncate.d.mts +19 -0
  70. package/dist/cli/commands/workflow/executions.d.mts +75 -0
  71. package/dist/cli/commands/workflow/get.d.mts +29 -0
  72. package/dist/cli/commands/workflow/list.d.mts +19 -0
  73. package/dist/cli/commands/workflow/resume.d.mts +23 -0
  74. package/dist/cli/commands/workflow/start.d.mts +63 -0
  75. package/dist/cli/commands/workflow/status.d.mts +5 -0
  76. package/dist/cli/commands/workflow/transform.d.mts +33 -0
  77. package/dist/cli/commands/workflow/wait.d.mts +16 -0
  78. package/dist/cli/commands/workflow/waiter.d.mts +23 -0
  79. package/dist/cli/commands/workspace/app/health.d.mts +18 -0
  80. package/dist/cli/commands/workspace/app/list.d.mts +22 -0
  81. package/dist/cli/commands/workspace/app/transform.d.mts +18 -0
  82. package/dist/cli/commands/workspace/create.d.mts +25 -0
  83. package/dist/cli/commands/workspace/delete.d.mts +15 -0
  84. package/dist/cli/commands/workspace/get.d.mts +17 -0
  85. package/dist/cli/commands/workspace/list.d.mts +17 -0
  86. package/dist/cli/commands/workspace/restore.d.mts +15 -0
  87. package/dist/cli/commands/workspace/transform.d.mts +16 -0
  88. package/dist/cli/commands/workspace/user/invite.d.mts +22 -0
  89. package/dist/cli/commands/workspace/user/list.d.mts +22 -0
  90. package/dist/cli/commands/workspace/user/remove.d.mts +17 -0
  91. package/dist/cli/commands/workspace/user/transform.d.mts +8 -0
  92. package/dist/cli/commands/workspace/user/update.d.mts +22 -0
  93. package/dist/cli/index.d.mts +1 -2
  94. package/dist/cli/index.mjs +21 -22
  95. package/dist/cli/index.mjs.map +1 -1
  96. package/dist/cli/lib.d.mts +80 -21402
  97. package/dist/cli/lib.mjs +8 -9
  98. package/dist/cli/lib.mjs.map +1 -1
  99. package/dist/cli/query/index.d.mts +35 -0
  100. package/dist/cli/services/application.d.mts +1 -0
  101. package/dist/cli/services/auth/service.d.mts +1 -0
  102. package/dist/cli/services/executor/service.d.mts +1 -0
  103. package/dist/cli/services/http-adapter/bundler.d.mts +1 -0
  104. package/dist/cli/services/http-adapter/service.d.mts +1 -0
  105. package/dist/cli/services/resolver/service.d.mts +1 -0
  106. package/dist/cli/services/tailordb/service.d.mts +1 -0
  107. package/dist/cli/services/workflow/bundler.d.mts +1 -0
  108. package/dist/cli/services/workflow/service.d.mts +1 -0
  109. package/dist/cli/shared/args.d.mts +13 -0
  110. package/dist/cli/shared/client.d.mts +1273 -0
  111. package/dist/cli/shared/config-loader.d.mts +44 -0
  112. package/dist/cli/shared/context.d.mts +28 -0
  113. package/dist/cli/shared/script-executor.d.mts +74 -0
  114. package/dist/cli/shared/seed-chunker.d.mts +46 -0
  115. package/dist/cli/shared/trigger-context.d.mts +1 -0
  116. package/dist/cli/shared/type-generator.d.mts +20 -0
  117. package/dist/cli/skills.mjs +1 -2
  118. package/dist/cli/skills.mjs.map +1 -1
  119. package/dist/completion/zsh-worker.zsh +1 -1
  120. package/dist/configure/config/index.d.mts +29 -0
  121. package/dist/configure/config/types.d.mts +103 -0
  122. package/dist/configure/index.d.mts +125 -7
  123. package/dist/configure/index.mjs +5 -6
  124. package/dist/configure/index.mjs.map +1 -1
  125. package/dist/configure/services/aigateway/index.d.mts +17 -0
  126. package/dist/configure/services/aigateway/types.d.mts +11 -0
  127. package/dist/configure/services/auth/index.d.mts +43 -0
  128. package/dist/{types-v_ErzNUF.d.mts → configure/services/auth/types.d.mts} +7 -172
  129. package/dist/configure/services/executor/executor.d.mts +82 -0
  130. package/dist/configure/services/executor/index.d.mts +8 -0
  131. package/dist/configure/services/executor/operation.d.mts +46 -0
  132. package/dist/configure/services/executor/trigger/event.d.mts +272 -0
  133. package/dist/configure/services/executor/trigger/index.d.mts +8 -0
  134. package/dist/configure/services/executor/trigger/schedule.d.mts +25 -0
  135. package/dist/configure/services/executor/trigger/webhook.d.mts +44 -0
  136. package/dist/configure/services/executor/types.d.mts +2 -0
  137. package/dist/configure/services/http-adapter/http-adapter.d.mts +125 -0
  138. package/dist/configure/services/http-adapter/index.d.mts +2 -0
  139. package/dist/configure/services/idp/index.d.mts +64 -0
  140. package/dist/configure/services/idp/permission.d.mts +80 -0
  141. package/dist/configure/services/idp/types.d.mts +20 -0
  142. package/dist/configure/services/index.d.mts +33 -0
  143. package/dist/configure/services/resolver/index.d.mts +5 -0
  144. package/dist/configure/services/resolver/resolver.d.mts +77 -0
  145. package/dist/configure/services/resolver/types.d.mts +6 -0
  146. package/dist/configure/services/secrets/index.d.mts +38 -0
  147. package/dist/configure/services/secrets/types.d.mts +11 -0
  148. package/dist/configure/services/staticwebsite/index.d.mts +19 -0
  149. package/dist/configure/services/staticwebsite/types.d.mts +11 -0
  150. package/dist/configure/services/tailordb/index.d.mts +4 -0
  151. package/dist/configure/services/tailordb/permission.d.mts +119 -0
  152. package/dist/configure/services/tailordb/schema.d.mts +451 -0
  153. package/dist/configure/services/tailordb/types.d.mts +149 -0
  154. package/dist/configure/services/workflow/index.d.mts +7 -0
  155. package/dist/configure/services/workflow/job.d.mts +81 -0
  156. package/dist/configure/services/workflow/test-env-key.d.mts +9 -0
  157. package/dist/configure/services/workflow/types.d.mts +2 -0
  158. package/dist/configure/services/workflow/wait-point.d.mts +73 -0
  159. package/dist/configure/services/workflow/workflow.d.mts +55 -0
  160. package/dist/configure/types/aigateway-name.d.mts +12 -0
  161. package/dist/configure/types/connection-name.d.mts +12 -0
  162. package/dist/configure/types/field.d.mts +9 -0
  163. package/dist/configure/types/field.types.d.mts +109 -0
  164. package/dist/configure/types/idp-name.d.mts +12 -0
  165. package/dist/configure/types/index.d.mts +4 -0
  166. package/dist/configure/types/machine-user.d.mts +12 -0
  167. package/dist/configure/types/type.d.mts +99 -0
  168. package/dist/configure/user.d.mts +7 -0
  169. package/dist/{context-CDQqIv4u.mjs → context-Bd266-ru.mjs} +2 -3
  170. package/dist/{context-CDQqIv4u.mjs.map → context-Bd266-ru.mjs.map} +1 -1
  171. package/dist/{crashreport-BwF8cHF0.mjs → crashreport-Dy4ZzSkd.mjs} +1 -2
  172. package/dist/{crashreport-BqyvFk-_.mjs → crashreport-ayWANEZ6.mjs} +4 -5
  173. package/dist/{crashreport-BqyvFk-_.mjs.map → crashreport-ayWANEZ6.mjs.map} +1 -1
  174. package/dist/{enum-constants-C7DaWeQo.mjs → enum-constants-j9QBF0cB.mjs} +1 -2
  175. package/dist/{enum-constants-C7DaWeQo.mjs.map → enum-constants-j9QBF0cB.mjs.map} +1 -1
  176. package/dist/{errors-EsY4XO6O.mjs → errors-Dtf2WPaW.mjs} +1 -2
  177. package/dist/{errors-EsY4XO6O.mjs.map → errors-Dtf2WPaW.mjs.map} +1 -1
  178. package/dist/{field-C4zdJLW5.mjs → field-DOsJCPFa.mjs} +1 -2
  179. package/dist/{field-C4zdJLW5.mjs.map → field-DOsJCPFa.mjs.map} +1 -1
  180. package/dist/{file-BkxupbYP.mjs → file-_oUZo76X.mjs} +2 -3
  181. package/dist/{file-BkxupbYP.mjs.map → file-_oUZo76X.mjs.map} +1 -1
  182. package/dist/{file-utils-BHPxPXmn.mjs → file-utils-DcyIPFQh.mjs} +2 -3
  183. package/dist/{file-utils-BHPxPXmn.mjs.map → file-utils-DcyIPFQh.mjs.map} +1 -1
  184. package/dist/{globals-ByrCoDip.mjs → globals-B8XX5TRB.mjs} +3 -3
  185. package/dist/globals-B8XX5TRB.mjs.map +1 -0
  186. package/dist/{iconv-D1zmPjvi.mjs → iconv-D2vi8G36.mjs} +2 -3
  187. package/dist/{iconv-D1zmPjvi.mjs.map → iconv-D2vi8G36.mjs.map} +1 -1
  188. package/dist/{idp-ynUfzwpz.mjs → idp-Bx25ZBdN.mjs} +2 -3
  189. package/dist/{idp-ynUfzwpz.mjs.map → idp-Bx25ZBdN.mjs.map} +1 -1
  190. package/dist/{interceptor-DOqRkCya.mjs → interceptor-D-q1rvRl.mjs} +1 -2
  191. package/dist/{interceptor-DOqRkCya.mjs.map → interceptor-D-q1rvRl.mjs.map} +1 -1
  192. package/dist/{job-BpsFXPbi.mjs → job-CtU73PGa.mjs} +3 -4
  193. package/dist/{job-BpsFXPbi.mjs.map → job-CtU73PGa.mjs.map} +1 -1
  194. package/dist/kysely/index.d.mts +2 -3
  195. package/dist/kysely/index.mjs +0 -1
  196. package/dist/kysely/index.mjs.map +1 -1
  197. package/dist/{kysely-type-CSoZxVKN.mjs → kysely-type-D-zflMGf.mjs} +2 -3
  198. package/dist/{kysely-type-CSoZxVKN.mjs.map → kysely-type-D-zflMGf.mjs.map} +1 -1
  199. package/dist/{logger-DKF-JsAK.mjs → logger-BEiZZ3qT.mjs} +1 -2
  200. package/dist/{logger-DKF-JsAK.mjs.map → logger-BEiZZ3qT.mjs.map} +1 -1
  201. package/dist/{mock-wf5qeZLi.mjs → mock-Ce1GCi4-.mjs} +60 -5
  202. package/dist/mock-Ce1GCi4-.mjs.map +1 -0
  203. package/dist/{multiline-Cf9ODpr1.mjs → multiline-sfHpTZZK.mjs} +1 -2
  204. package/dist/{multiline-Cf9ODpr1.mjs.map → multiline-sfHpTZZK.mjs.map} +1 -1
  205. package/dist/{package-json-DcQApfPQ.mjs → package-json-8b0O9TlX.mjs} +1 -2
  206. package/dist/{package-json-DcQApfPQ.mjs.map → package-json-8b0O9TlX.mjs.map} +1 -1
  207. package/dist/package-json-Cv2Z-TqQ.mjs +3 -0
  208. package/dist/parser/generator-config/schema.d.mts +1 -0
  209. package/dist/parser/service/auth/index.d.mts +1 -0
  210. package/dist/parser/service/auth/schema.d.mts +1 -0
  211. package/dist/parser/service/http-adapter/index.d.mts +1 -0
  212. package/dist/parser/service/http-adapter/schema.d.mts +1 -0
  213. package/dist/parser/service/idp/types.d.mts +4 -0
  214. package/dist/parser/service/tailordb/types.d.mts +126 -0
  215. package/dist/plugin/builtin/enum-constants/index.d.mts +16 -1
  216. package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
  217. package/dist/plugin/builtin/file-utils/index.d.mts +16 -1
  218. package/dist/plugin/builtin/file-utils/index.mjs +1 -2
  219. package/dist/plugin/builtin/kysely-type/index.d.mts +16 -1
  220. package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
  221. package/dist/plugin/builtin/seed/index.d.mts +45 -1
  222. package/dist/plugin/builtin/seed/index.mjs +1 -2
  223. package/dist/plugin/get-generated-type.d.mts +17 -0
  224. package/dist/plugin/index.d.mts +3 -118
  225. package/dist/plugin/index.mjs +0 -1
  226. package/dist/plugin/index.mjs.map +1 -1
  227. package/dist/plugin/manager.d.mts +1 -0
  228. package/dist/plugin/types.d.mts +245 -0
  229. package/dist/plugin/with-context.d.mts +102 -0
  230. package/dist/{registry-D0uB0OrK.mjs → registry-BozuxbPp.mjs} +1 -2
  231. package/dist/{registry-D0uB0OrK.mjs.map → registry-BozuxbPp.mjs.map} +1 -1
  232. package/dist/{repl-editor-DD5YP5mt.mjs → repl-editor-BmQOyZJd.mjs} +2 -3
  233. package/dist/{repl-editor-DD5YP5mt.mjs.map → repl-editor-BmQOyZJd.mjs.map} +1 -1
  234. package/dist/{rolldown-runtime-BkoGK1jX.mjs → rolldown-runtime-DXywRVcq.mjs} +0 -1
  235. package/dist/runtime/aigateway.d.mts +35 -0
  236. package/dist/runtime/aigateway.mjs +3 -0
  237. package/dist/runtime/authconnection.d.mts +31 -2
  238. package/dist/runtime/authconnection.mjs +1 -2
  239. package/dist/runtime/context.d.mts +67 -2
  240. package/dist/runtime/context.mjs +1 -2
  241. package/dist/runtime/file.d.mts +249 -2
  242. package/dist/runtime/file.mjs +1 -2
  243. package/dist/runtime/globals.d.mts +31 -20
  244. package/dist/runtime/globals.mjs +0 -1
  245. package/dist/runtime/iconv.d.mts +121 -2
  246. package/dist/runtime/iconv.mjs +1 -2
  247. package/dist/runtime/idp.d.mts +186 -2
  248. package/dist/runtime/idp.mjs +1 -2
  249. package/dist/runtime/index.d.mts +47 -9
  250. package/dist/runtime/index.mjs +9 -9
  251. package/dist/runtime/secretmanager.d.mts +54 -2
  252. package/dist/runtime/secretmanager.mjs +1 -2
  253. package/dist/{types-DTcZ2Yax.d.mts → runtime/types.d.mts} +1 -2
  254. package/dist/runtime/workflow.d.mts +107 -2
  255. package/dist/runtime/workflow.mjs +2 -3
  256. package/dist/{runtime-Cd375HD-.mjs → runtime-CEFC05qX.mjs} +81 -130
  257. package/dist/runtime-CEFC05qX.mjs.map +1 -0
  258. package/dist/{schema-C4fkpWV_.mjs → schema-DAdZSFOd.mjs} +3 -4
  259. package/dist/{schema-C4fkpWV_.mjs.map → schema-DAdZSFOd.mjs.map} +1 -1
  260. package/dist/{secret-file-eB3R3Fil.mjs → secret-file-VSVGy1V0.mjs} +2 -3
  261. package/dist/{secret-file-eB3R3Fil.mjs.map → secret-file-VSVGy1V0.mjs.map} +1 -1
  262. package/dist/{secretmanager-h3tBJV8f.mjs → secretmanager-BVxw3ih_.mjs} +2 -3
  263. package/dist/{secretmanager-h3tBJV8f.mjs.map → secretmanager-BVxw3ih_.mjs.map} +1 -1
  264. package/dist/seed/index.d.mts +1 -2
  265. package/dist/seed/index.mjs +0 -1
  266. package/dist/seed/index.mjs.map +1 -1
  267. package/dist/{seed-YAbtMy65.mjs → seed-DoMTMLcm.mjs} +3 -4
  268. package/dist/{seed-YAbtMy65.mjs.map → seed-DoMTMLcm.mjs.map} +1 -1
  269. package/dist/service-BXmdFwSH.mjs +3 -0
  270. package/dist/{service-DDWgZL_L2.mjs → service-DBFZQloR.mjs} +3 -4
  271. package/dist/service-DBFZQloR.mjs.map +1 -0
  272. package/dist/{service-B2Jd9CxS.mjs → service-DiEtAsvc.mjs} +3 -4
  273. package/dist/{service-B2Jd9CxS.mjs.map → service-DiEtAsvc.mjs.map} +1 -1
  274. package/dist/{service_pb-BsBR6yW5.mjs → service_pb-CIrhGwHk.mjs} +1 -2
  275. package/dist/{service_pb-BsBR6yW5.mjs.map → service_pb-CIrhGwHk.mjs.map} +1 -1
  276. package/dist/{service_pb-BJ9GsAnW.mjs → service_pb-DjwIn4jO.mjs} +1 -2
  277. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +204 -0
  278. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +58 -0
  279. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +316 -0
  280. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +161 -0
  281. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +2070 -0
  282. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +861 -0
  283. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +112 -0
  284. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +69 -0
  285. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +439 -0
  286. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +564 -0
  287. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +145 -0
  288. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +451 -0
  289. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +192 -0
  290. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +50 -0
  291. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +407 -0
  292. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +430 -0
  293. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +73 -0
  294. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +17 -0
  295. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +309 -0
  296. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +591 -0
  297. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +330 -0
  298. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +113 -0
  299. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +346 -0
  300. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +54 -0
  301. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +3576 -0
  302. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +187 -0
  303. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +29 -0
  304. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +429 -0
  305. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +90 -0
  306. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +684 -0
  307. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +797 -0
  308. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +330 -0
  309. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +183 -0
  310. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +842 -0
  311. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +276 -0
  312. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +2015 -0
  313. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +483 -0
  314. package/dist/{telemetry-BQbbVo2t.mjs → telemetry-CdqJEzkj.mjs} +2 -3
  315. package/dist/{telemetry-BQbbVo2t.mjs.map → telemetry-CdqJEzkj.mjs.map} +1 -1
  316. package/dist/telemetry-ClwW5ohF.mjs +3 -0
  317. package/dist/types/aigateway.generated.d.mts +9 -0
  318. package/dist/types/app-config.generated.d.mts +4 -0
  319. package/dist/types/auth-connection.generated.d.mts +20 -0
  320. package/dist/types/auth.generated.d.mts +150 -0
  321. package/dist/types/executor.generated.d.mts +177 -0
  322. package/dist/types/generator-config.generated.d.mts +28 -0
  323. package/dist/types/helpers.d.mts +39 -0
  324. package/dist/types/http-adapter.generated.d.mts +17 -0
  325. package/dist/types/idp.generated.d.mts +584 -0
  326. package/dist/types/resolver.generated.d.mts +38 -0
  327. package/dist/types/secrets.generated.d.mts +14 -0
  328. package/dist/types/staticwebsite.generated.d.mts +10 -0
  329. package/dist/{types-rj8YJcEe.d.mts → types/tailordb.generated.d.mts} +2 -290
  330. package/dist/types/workflow.generated.d.mts +12 -0
  331. package/dist/types-qhFZ8y9B.mjs +4 -0
  332. package/dist/{types-D4QMmNWh.mjs → types-ywCGpzDZ.mjs} +2 -3
  333. package/dist/{types-D4QMmNWh.mjs.map → types-ywCGpzDZ.mjs.map} +1 -1
  334. package/dist/utils/test/index.d.mts +6 -89
  335. package/dist/utils/test/index.mjs +1 -2
  336. package/dist/utils/test/index.mjs.map +1 -1
  337. package/dist/utils/test/mock.d.mts +87 -0
  338. package/dist/vitest/environment.d.mts +1 -2
  339. package/dist/vitest/environment.mjs +1 -2
  340. package/dist/vitest/environment.mjs.map +1 -1
  341. package/dist/vitest/index.d.mts +4 -392
  342. package/dist/vitest/index.mjs +4 -5
  343. package/dist/vitest/index.mjs.map +1 -1
  344. package/dist/vitest/mock-kysely.d.mts +62 -0
  345. package/dist/vitest/mock.d.mts +364 -0
  346. package/dist/vitest/setup.d.mts +1 -2
  347. package/dist/vitest/setup.mjs +2 -3
  348. package/dist/vitest/setup.mjs.map +1 -1
  349. package/dist/{workflow-C8I7shjM.mjs → workflow-DSwnYPPP.mjs} +10 -4
  350. package/dist/workflow-DSwnYPPP.mjs.map +1 -0
  351. package/docs/runtime.md +5 -1
  352. package/docs/services/aigateway.md +14 -0
  353. package/docs/testing.md +48 -2
  354. package/package.json +6 -1
  355. package/dist/application-DmjIKQ-a.mjs.map +0 -1
  356. package/dist/application-a_ApFuPh.mjs +0 -4
  357. package/dist/authconnection-CqfaJfrC.d.mts +0 -32
  358. package/dist/context-CUBwSBq4.d.mts +0 -68
  359. package/dist/file-BzK8z3X-.d.mts +0 -250
  360. package/dist/globals-ByrCoDip.mjs.map +0 -1
  361. package/dist/iconv-kwrmd1U_.d.mts +0 -122
  362. package/dist/idp-BmYwCXnJ.d.mts +0 -187
  363. package/dist/index-BDBU7x-i.d.mts +0 -18
  364. package/dist/index-BSlv_YrG.d.mts +0 -46
  365. package/dist/index-BzGqTY5x.d.mts +0 -1315
  366. package/dist/index-D3_Au3wu.d.mts +0 -47
  367. package/dist/index-DtFRlrww.d.mts +0 -18
  368. package/dist/index-jeE3UvF2.d.mts +0 -18
  369. package/dist/mock-wf5qeZLi.mjs.map +0 -1
  370. package/dist/package-json-wzO6nV9O.mjs +0 -4
  371. package/dist/runtime-Cd375HD-.mjs.map +0 -1
  372. package/dist/secretmanager-CKLB3wAQ.d.mts +0 -55
  373. package/dist/service-CRaa4Joe.mjs +0 -4
  374. package/dist/service-DDWgZL_L2.mjs.map +0 -1
  375. package/dist/telemetry-w92bvGdC.mjs +0 -4
  376. package/dist/types-32lUMToj.mjs +0 -5
  377. package/dist/types-aqnqTCfO.d.mts +0 -602
  378. package/dist/workflow-C8I7shjM.mjs.map +0 -1
  379. package/dist/workflow-CMamswkK.d.mts +0 -96
  380. package/dist/workflow.generated-Da1zECDw.d.mts +0 -1348
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/utils/assert.ts
3
2
  function assertDefined(value, message) {
4
3
  if (value == null) throw new Error(message);
@@ -7,4 +6,4 @@ function assertDefined(value, message) {
7
6
 
8
7
  //#endregion
9
8
  export { assertDefined as t };
10
- //# sourceMappingURL=assert-CKfwrmCV.mjs.map
9
+ //# sourceMappingURL=assert-DBxo8jPo.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"assert-CKfwrmCV.mjs","names":[],"sources":["../src/utils/assert.ts"],"sourcesContent":["export function assertDefined<T>(value: T, message: string): NonNullable<T> {\n if (value == null) {\n throw new Error(message);\n }\n return value;\n}\n"],"mappings":";;AAAA,SAAgB,cAAiB,OAAU,SAAiC;CAC1E,IAAI,SAAS,MACX,MAAM,IAAI,MAAM,OAAO;CAEzB,OAAO;AACT"}
1
+ {"version":3,"file":"assert-DBxo8jPo.mjs","names":[],"sources":["../src/utils/assert.ts"],"sourcesContent":["export function assertDefined<T>(value: T, message: string): NonNullable<T> {\n if (value == null) {\n throw new Error(message);\n }\n return value;\n}\n"],"mappings":";AAAA,SAAgB,cAAiB,OAAU,SAAiC;CAC1E,IAAI,SAAS,MACX,MAAM,IAAI,MAAM,OAAO;CAEzB,OAAO;AACT"}
@@ -1,5 +1,4 @@
1
-
2
- import { t as __exportAll } from "./rolldown-runtime-BkoGK1jX.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-DXywRVcq.mjs";
3
2
 
4
3
  //#region src/runtime/authconnection.ts
5
4
  var authconnection_exports = /* @__PURE__ */ __exportAll({ getConnectionToken: () => getConnectionToken });
@@ -13,4 +12,4 @@ const getConnectionToken = (...args) => api().getConnectionToken(...args);
13
12
 
14
13
  //#endregion
15
14
  export { getConnectionToken as n, authconnection_exports as t };
16
- //# sourceMappingURL=authconnection-D7lsvsKY.mjs.map
15
+ //# sourceMappingURL=authconnection-BGQM8FZI.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"authconnection-D7lsvsKY.mjs","names":[],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n *\n * `connectionName` is narrowed to the connection names defined in `defineAuth()`'s\n * `connections` once `tailor.d.ts` has been generated (via `tailor-sdk deploy`/`generate`).\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\nimport type { AuthConnectionTokenResult } from \"#/configure/services/auth/types\";\n// Import from the public entry (not `#/configure/types/connection-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — a single\n// generated `declare module \"@tailor-platform/sdk\"` then narrows this entry too.\nimport type { ConnectionName } from \"@tailor-platform/sdk\";\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n *\n * Each method below is also re-exported as a top-level named export from this\n * module so callers can either `import * as authconnection from\n * \"@tailor-platform/sdk/runtime/authconnection\"` or pick individual methods.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload\n */\n getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor.authconnection;\n\n/**\n * See {@link TailorAuthconnectionAPI.getConnectionToken}.\n * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}\n * @returns Token payload\n */\nexport const getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n"],"mappings":";;;;;AAsCA,MAAM,YACH,WAAuE,OAAO;;;;;;AAOjF,MAAa,sBAAqE,GAAG,SACnF,IAAI,CAAC,CAAC,mBAAmB,GAAG,IAAI"}
1
+ {"version":3,"file":"authconnection-BGQM8FZI.mjs","names":[],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n *\n * `connectionName` is narrowed to the connection names defined in `defineAuth()`'s\n * `connections` once `tailor.d.ts` has been generated (via `tailor-sdk deploy`/`generate`).\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\nimport type { AuthConnectionTokenResult } from \"#/configure/services/auth/types\";\n// Import from the public entry (not `#/configure/types/connection-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — a single\n// generated `declare module \"@tailor-platform/sdk\"` then narrows this entry too.\nimport type { ConnectionName } from \"@tailor-platform/sdk\";\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n *\n * Each method below is also re-exported as a top-level named export from this\n * module so callers can either `import * as authconnection from\n * \"@tailor-platform/sdk/runtime/authconnection\"` or pick individual methods.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload\n */\n getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor.authconnection;\n\n/**\n * See {@link TailorAuthconnectionAPI.getConnectionToken}.\n * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}\n * @returns Token payload\n */\nexport const getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n"],"mappings":";;;;AAsCA,MAAM,YACH,WAAuE,OAAO;;;;;;AAOjF,MAAa,sBAAqE,GAAG,SACnF,IAAI,CAAC,CAAC,mBAAmB,GAAG,IAAI"}
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/utils/brand.ts
3
2
  const SDK_BRAND = Symbol.for("tailor-platform/sdk");
4
3
  /**
@@ -34,4 +33,4 @@ function isSdkBranded(value, kind) {
34
33
 
35
34
  //#endregion
36
35
  export { isSdkBranded as n, brandValue as t };
37
- //# sourceMappingURL=brand-DlnJ375c.mjs.map
36
+ //# sourceMappingURL=brand-Eo4pLXPJ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand-DlnJ375c.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\"\n | \"http-adapter\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored as SdkBrandKind) : stored === kind)\n );\n}\n"],"mappings":";;AAEA,MAAa,YAA2B,OAAO,IAAI,qBAAqB;;;;;;;;;AAmBxE,SAAgB,WAA6B,OAAU,MAAuB;CAC5E,OAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;CACZ,CAAC;CACD,OAAO;AACT;;;;;;;;;AAUA,SAAgB,aACd,OACA,MACS;CACT,IAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,EAAE,aAAa,QAAQ,OAAO;CACjF,MAAM,SAAU,MAAkC;CAElD,OACE,SAAS,UACT,WAAW,SACV,MAAM,QAAQ,IAAI,IAAI,KAAK,SAAS,MAAsB,IAAI,WAAW;AAE9E"}
1
+ {"version":3,"file":"brand-Eo4pLXPJ.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\"\n | \"http-adapter\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored as SdkBrandKind) : stored === kind)\n );\n}\n"],"mappings":";AAEA,MAAa,YAA2B,OAAO,IAAI,qBAAqB;;;;;;;;;AAmBxE,SAAgB,WAA6B,OAAU,MAAuB;CAC5E,OAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;CACZ,CAAC;CACD,OAAO;AACT;;;;;;;;;AAUA,SAAgB,aACd,OACA,MACS;CACT,IAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,EAAE,aAAa,QAAQ,OAAO;CACjF,MAAM,SAAU,MAAkC;CAElD,OACE,SAAS,UACT,WAAW,SACV,MAAM,QAAQ,IAAI,IAAI,KAAK,SAAS,MAAsB,IAAI,WAAW;AAE9E"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import { z } from "zod";
@@ -0,0 +1,19 @@
1
+ //#region src/cli/commands/api/api-call.d.ts
2
+ interface ApiCallOptions {
3
+ profile?: string;
4
+ endpoint: string;
5
+ body?: string;
6
+ }
7
+ interface ApiCallResult {
8
+ status: number;
9
+ data: unknown;
10
+ }
11
+ /**
12
+ * Call Tailor Platform API endpoints directly.
13
+ * If the endpoint doesn't contain "/", it defaults to `tailor.v1.OperatorService/{endpoint}`.
14
+ * @param options - API call options (profile, endpoint, body)
15
+ * @returns Response status and data
16
+ */
17
+ declare function apiCall(options: ApiCallOptions): Promise<ApiCallResult>;
18
+ //#endregion
19
+ export { ApiCallOptions, ApiCallResult, apiCall };
@@ -0,0 +1,3 @@
1
+ import { ApiCallOptions, ApiCallResult, apiCall } from "./api-call.mjs";
2
+ import { z } from "zod";
3
+ export { type ApiCallOptions, type ApiCallResult, apiCall };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,24 @@
1
+ import { BundledScripts } from "./function-registry-types.mjs";
2
+ //#region src/cli/commands/deploy/deploy.d.ts
3
+ interface DeployOptions {
4
+ workspaceId?: string;
5
+ profile?: string;
6
+ configPath?: string;
7
+ dryRun?: boolean;
8
+ yes?: boolean;
9
+ noSchemaCheck?: boolean;
10
+ noValidate?: boolean;
11
+ noCache?: boolean;
12
+ cleanCache?: boolean;
13
+ buildOnly?: boolean;
14
+ }
15
+ /**
16
+ * Deploy the configured application to the Tailor platform.
17
+ * @param options - Options for deploy execution
18
+ * @returns Promise that resolves to `{ bundledScripts }` when `buildOnly` is true, otherwise void
19
+ */
20
+ declare function deploy(options?: DeployOptions): Promise<{
21
+ bundledScripts: BundledScripts;
22
+ } | undefined>;
23
+ //#endregion
24
+ export { DeployOptions, deploy };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,12 @@
1
+ //#region src/cli/commands/deploy/function-registry-types.d.ts
2
+ /**
3
+ * In-memory bundled scripts organized by kind.
4
+ */
5
+ type BundledScripts = {
6
+ resolvers: Map<string, string>;
7
+ executors: Map<string, string>;
8
+ workflowJobs: Map<string, string>;
9
+ authHooks: Map<string, string>;
10
+ };
11
+ //#endregion
12
+ export { BundledScripts };
@@ -0,0 +1,2 @@
1
+ import { BundledScripts } from "./function-registry-types.mjs";
2
+ export type { BundledScripts };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,29 @@
1
+ import { ExecutorInfo } from "./transform.mjs";
2
+ import { z } from "zod";
3
+
4
+ //#region src/cli/commands/executor/get.d.ts
5
+ type ExecutorLike = {
6
+ name: string;
7
+ };
8
+ type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
9
+ executor: E;
10
+ workspaceId?: string;
11
+ profile?: string;
12
+ };
13
+ /**
14
+ * @deprecated Use GetExecutorTypedOptions instead.
15
+ */
16
+ interface GetExecutorOptions {
17
+ name: string;
18
+ workspaceId?: string;
19
+ profile?: string;
20
+ }
21
+ /**
22
+ * Get an executor by name and return CLI-friendly info.
23
+ * @param options - Executor lookup options
24
+ * @returns Executor information
25
+ */
26
+ declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
27
+ declare function getExecutor(options: GetExecutorOptions): Promise<ExecutorInfo>;
28
+ //#endregion
29
+ export { GetExecutorOptions, GetExecutorTypedOptions, getExecutor };
@@ -0,0 +1,123 @@
1
+ import { Order } from "../../shared/args.mjs";
2
+ import { ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo } from "./transform.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/cli/commands/executor/jobs.d.ts
6
+ type ExecutorLike = {
7
+ name: string;
8
+ };
9
+ type ListExecutorJobsTypedOptions<E extends ExecutorLike = ExecutorLike> = {
10
+ executor: E;
11
+ status?: string;
12
+ order?: Order;
13
+ limit?: number;
14
+ workspaceId?: string;
15
+ profile?: string;
16
+ };
17
+ type GetExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
18
+ executor: E;
19
+ jobId: string;
20
+ attempts?: boolean;
21
+ workspaceId?: string;
22
+ profile?: string;
23
+ };
24
+ type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
25
+ executor: E;
26
+ jobId: string;
27
+ workspaceId?: string;
28
+ profile?: string;
29
+ interval?: number;
30
+ timeout?: number;
31
+ logs?: boolean;
32
+ showProgress?: boolean;
33
+ };
34
+ /**
35
+ * @deprecated Use ListExecutorJobsTypedOptions instead.
36
+ */
37
+ interface ListExecutorJobsOptions {
38
+ executorName: string;
39
+ status?: string;
40
+ order?: Order;
41
+ limit?: number;
42
+ workspaceId?: string;
43
+ profile?: string;
44
+ }
45
+ /**
46
+ * @deprecated Use GetExecutorJobTypedOptions instead.
47
+ */
48
+ interface GetExecutorJobOptions {
49
+ executorName: string;
50
+ jobId: string;
51
+ attempts?: boolean;
52
+ workspaceId?: string;
53
+ profile?: string;
54
+ }
55
+ /**
56
+ * @deprecated Use WatchExecutorJobTypedOptions instead.
57
+ */
58
+ interface WatchExecutorJobOptions {
59
+ executorName: string;
60
+ jobId: string;
61
+ workspaceId?: string;
62
+ profile?: string;
63
+ interval?: number;
64
+ timeout?: number;
65
+ logs?: boolean;
66
+ showProgress?: boolean;
67
+ }
68
+ interface ExecutorJobDetailInfo extends ExecutorJobInfo {
69
+ attempts?: ExecutorJobAttemptInfo[];
70
+ }
71
+ interface WorkflowJobLog {
72
+ jobName: string;
73
+ logs?: string;
74
+ result?: string;
75
+ }
76
+ interface WatchExecutorJobResult {
77
+ job: ExecutorJobDetailInfo;
78
+ targetType: string;
79
+ elapsedMs: number;
80
+ attempts: number;
81
+ timedOut: boolean;
82
+ lastError: string | null;
83
+ workflowExecutionId?: string;
84
+ workflowStatus?: string;
85
+ workflowJobLogs?: WorkflowJobLog[];
86
+ functionExecutionId?: string;
87
+ functionStatus?: string;
88
+ functionLogs?: string;
89
+ }
90
+ /**
91
+ * List executor jobs for a given executor.
92
+ *
93
+ * Returns at most `options.limit` items. When `limit` is omitted or 0 the
94
+ * function pages through every job. The CLI caps this at 50 by default
95
+ * via `pagedLogArgs`; programmatic callers that want the same cap should
96
+ * pass `limit: 50` explicitly.
97
+ * @param options - Options for listing executor jobs
98
+ * @returns List of executor job information
99
+ */
100
+ declare function listExecutorJobs<E extends ExecutorLike>(options: ListExecutorJobsTypedOptions<E>): Promise<ExecutorJobListInfo[]>;
101
+ declare function listExecutorJobs(options: ListExecutorJobsOptions): Promise<ExecutorJobListInfo[]>;
102
+ /**
103
+ * Get details of a specific executor job.
104
+ * @param options - Options for getting executor job details
105
+ * @returns Executor job detail information
106
+ */
107
+ declare function getExecutorJob<E extends ExecutorLike>(options: GetExecutorJobTypedOptions<E>): Promise<ExecutorJobDetailInfo>;
108
+ declare function getExecutorJob(options: GetExecutorJobOptions): Promise<ExecutorJobDetailInfo>;
109
+ /**
110
+ * Watch an executor job until completion, including downstream executions.
111
+ * @param options - Options for watching executor job
112
+ * @returns Result including job details and downstream execution info
113
+ */
114
+ declare function watchExecutorJob<E extends ExecutorLike>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
115
+ declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
116
+ /**
117
+ * Build a user-facing failure message for an executor job wait result.
118
+ * @param result - Executor job wait result
119
+ * @returns Failure message, or undefined when the wait succeeded
120
+ */
121
+ declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
122
+ //#endregion
123
+ export { ExecutorJobDetailInfo, GetExecutorJobOptions, GetExecutorJobTypedOptions, ListExecutorJobsOptions, ListExecutorJobsTypedOptions, WatchExecutorJobOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, WorkflowJobLog, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob };
@@ -0,0 +1,19 @@
1
+ import { Order } from "../../shared/args.mjs";
2
+ import { ExecutorListInfo } from "./transform.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/cli/commands/executor/list.d.ts
6
+ interface ListExecutorsOptions {
7
+ workspaceId?: string;
8
+ profile?: string;
9
+ order?: Order;
10
+ limit?: number;
11
+ }
12
+ /**
13
+ * List executors in the workspace and return CLI-friendly info.
14
+ * @param options - Executor listing options
15
+ * @returns List of executors
16
+ */
17
+ declare function listExecutors(options?: ListExecutorsOptions): Promise<ExecutorListInfo[]>;
18
+ //#endregion
19
+ export { ListExecutorsOptions, listExecutors };
@@ -0,0 +1,41 @@
1
+ //#region src/cli/commands/executor/transform.d.ts
2
+ interface ExecutorJobListInfo {
3
+ id: string;
4
+ executorName: string;
5
+ status: string;
6
+ createdAt: string;
7
+ }
8
+ interface ExecutorJobInfo {
9
+ id: string;
10
+ executorName: string;
11
+ status: string;
12
+ scheduledAt: string;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ }
16
+ interface ExecutorJobAttemptInfo {
17
+ id: string;
18
+ jobId: string;
19
+ status: string;
20
+ error: string;
21
+ startedAt: string;
22
+ finishedAt: string;
23
+ operationReference: string;
24
+ }
25
+ interface ExecutorListInfo {
26
+ name: string;
27
+ triggerType: string;
28
+ targetType: string;
29
+ disabled: boolean;
30
+ }
31
+ interface ExecutorInfo {
32
+ name: string;
33
+ description: string;
34
+ triggerType: string;
35
+ targetType: string;
36
+ disabled: boolean;
37
+ triggerConfig: Record<string, unknown>;
38
+ targetConfig: Record<string, unknown>;
39
+ }
40
+ //#endregion
41
+ export { ExecutorInfo, ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo, ExecutorListInfo };
@@ -0,0 +1,41 @@
1
+ import { IncomingWebhookTrigger, ScheduleTriggerInput } from "../../../types/executor.generated.mjs";
2
+ import { JsonObject } from "@bufbuild/protobuf";
3
+ import { z } from "zod";
4
+
5
+ //#region src/cli/commands/executor/trigger.d.ts
6
+ type ManualTrigger = IncomingWebhookTrigger | ScheduleTriggerInput;
7
+ type ManualTriggerExecutor<T extends ManualTrigger = ManualTrigger> = T extends ManualTrigger ? {
8
+ name: string;
9
+ trigger: T;
10
+ } : never;
11
+ type TriggerExecutorBaseOptions<E extends ManualTriggerExecutor> = {
12
+ executor: E;
13
+ workspaceId?: string;
14
+ profile?: string;
15
+ };
16
+ /**
17
+ * @deprecated Use TriggerExecutorTypedOptions instead.
18
+ */
19
+ interface TriggerExecutorOptions {
20
+ executorName: string;
21
+ payload?: JsonObject;
22
+ workspaceId?: string;
23
+ profile?: string;
24
+ }
25
+ type TriggerExecutorTypedOptions<E extends ManualTriggerExecutor = ManualTriggerExecutor> = E extends ManualTriggerExecutor<IncomingWebhookTrigger> ? TriggerExecutorBaseOptions<E> & {
26
+ payload?: JsonObject;
27
+ } : TriggerExecutorBaseOptions<E> & {
28
+ payload?: never;
29
+ };
30
+ interface TriggerExecutorResult {
31
+ jobId?: string;
32
+ }
33
+ /**
34
+ * Trigger an executor and return the job ID.
35
+ * @param options - Options for triggering executor
36
+ * @returns Result containing the job ID if available
37
+ */
38
+ declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
39
+ declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
40
+ //#endregion
41
+ export { TriggerExecutorOptions, TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor };
@@ -0,0 +1,22 @@
1
+ import { Order } from "../../shared/args.mjs";
2
+
3
+ //#region src/cli/commands/executor/webhook.d.ts
4
+ interface WebhookExecutorInfo {
5
+ name: string;
6
+ webhookUrl: string;
7
+ disabled: boolean;
8
+ }
9
+ interface ListWebhookExecutorsOptions {
10
+ workspaceId?: string;
11
+ profile?: string;
12
+ order?: Order;
13
+ limit?: number;
14
+ }
15
+ /**
16
+ * List executors with incoming webhook triggers and return CLI-friendly info.
17
+ * @param options - Listing options
18
+ * @returns List of webhook executors with URLs
19
+ */
20
+ declare function listWebhookExecutors(options?: ListWebhookExecutorsOptions): Promise<WebhookExecutorInfo[]>;
21
+ //#endregion
22
+ export { ListWebhookExecutorsOptions, WebhookExecutorInfo, listWebhookExecutors };
@@ -0,0 +1,18 @@
1
+ import { FunctionRegistryInfo } from "./transform.mjs";
2
+ import { z } from "zod";
3
+
4
+ //#region src/cli/commands/function/get.d.ts
5
+ declare const getFunctionRegistryOptionsSchema: z.ZodObject<{
6
+ workspaceId: z.ZodOptional<z.ZodUUID>;
7
+ profile: z.ZodOptional<z.ZodString>;
8
+ name: z.ZodString;
9
+ }, z.core.$strip>;
10
+ type GetFunctionRegistryOptions = z.input<typeof getFunctionRegistryOptionsSchema>;
11
+ /**
12
+ * Get a function registry by name.
13
+ * @param options - Function registry get options
14
+ * @returns Function registry info
15
+ */
16
+ declare function getFunctionRegistry(options: GetFunctionRegistryOptions): Promise<FunctionRegistryInfo>;
17
+ //#endregion
18
+ export { GetFunctionRegistryOptions, getFunctionRegistry };
@@ -0,0 +1,22 @@
1
+ import { FunctionRegistryInfo } from "./transform.mjs";
2
+ import { z } from "zod";
3
+
4
+ //#region src/cli/commands/function/list.d.ts
5
+ declare const listFunctionRegistriesOptionsSchema: z.ZodObject<{
6
+ workspaceId: z.ZodOptional<z.ZodUUID>;
7
+ profile: z.ZodOptional<z.ZodString>;
8
+ order: z.ZodOptional<z.ZodEnum<{
9
+ asc: "asc";
10
+ desc: "desc";
11
+ }>>;
12
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
13
+ }, z.core.$strip>;
14
+ type ListFunctionRegistriesOptions = z.input<typeof listFunctionRegistriesOptionsSchema>;
15
+ /**
16
+ * List function registries in a workspace with optional pagination.
17
+ * @param options - Function registry listing options
18
+ * @returns List of function registries
19
+ */
20
+ declare function listFunctionRegistries(options: ListFunctionRegistriesOptions): Promise<FunctionRegistryInfo[]>;
21
+ //#endregion
22
+ export { ListFunctionRegistriesOptions, listFunctionRegistries };
@@ -0,0 +1,11 @@
1
+ //#region src/cli/commands/function/transform.d.ts
2
+ interface FunctionRegistryInfo {
3
+ name: string;
4
+ description: string;
5
+ sizeBytes: string;
6
+ contentHash: string;
7
+ createdAt: Date | null;
8
+ updatedAt: Date | null;
9
+ }
10
+ //#endregion
11
+ export { FunctionRegistryInfo };
@@ -0,0 +1,7 @@
1
+ //#region src/cli/commands/generate/options.d.ts
2
+ type GenerateOptions = {
3
+ configPath?: string;
4
+ watch?: boolean;
5
+ };
6
+ //#endregion
7
+ export { GenerateOptions };
@@ -0,0 +1,26 @@
1
+ //#region src/cli/commands/generate/seed/bundler.d.ts
2
+ /**
3
+ * Seed script bundler for TailorDB seed data
4
+ *
5
+ * Bundles seed scripts to be executed via TestExecScript API
6
+ */
7
+ type SeedBundleResult = {
8
+ namespace: string;
9
+ bundledCode: string;
10
+ typesIncluded: string[];
11
+ };
12
+ /**
13
+ * Bundle a seed script for server-side execution
14
+ *
15
+ * Creates an entry that:
16
+ * 1. Defines getDB() function inline
17
+ * 2. Processes data in batches using Kysely
18
+ * 3. Reports progress via console.log
19
+ * 4. Exports as main() for TestExecScript
20
+ * @param namespace - TailorDB namespace
21
+ * @param typeNames - List of type names to include in the seed
22
+ * @returns Bundled seed script result
23
+ */
24
+ declare function bundleSeedScript(namespace: string, typeNames: string[]): Promise<SeedBundleResult>;
25
+ //#endregion
26
+ export { SeedBundleResult, bundleSeedScript };
@@ -0,0 +1,12 @@
1
+ import { CodeGenerator } from "./types.mjs";
2
+ import { GenerateOptions } from "./options.mjs";
3
+
4
+ //#region src/cli/commands/generate/service.d.ts
5
+ /**
6
+ * Run code generation using the Tailor configuration and generators.
7
+ * @param options - Generation options
8
+ * @returns Promise that resolves when generation (and watch, if enabled) completes
9
+ */
10
+ declare function generate(options?: GenerateOptions): Promise<void>;
11
+ //#endregion
12
+ export { generate };