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

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 (327) hide show
  1. package/CHANGELOG.md +142 -0
  2. package/dist/aigateway-DR4Kwuik.mjs +9 -0
  3. package/dist/{aigateway-B3oZZE6v.mjs.map → aigateway-DR4Kwuik.mjs.map} +1 -1
  4. package/dist/{application-eHp9jXld.mjs → application-Bf8wxOi6.mjs} +701 -597
  5. package/dist/application-Bf8wxOi6.mjs.map +1 -0
  6. package/dist/application-CUkjzfij.mjs +3 -0
  7. package/dist/authconnection-CZvi9ANm.mjs +9 -0
  8. package/dist/authconnection-CZvi9ANm.mjs.map +1 -0
  9. package/dist/brand-Eo4pLXPJ.mjs.map +1 -1
  10. package/dist/cli/cache/bundle-cache.d.mts +2 -1
  11. package/dist/cli/cache/store.d.mts +1 -1
  12. package/dist/cli/commands/api/index.d.mts +1 -0
  13. package/dist/cli/commands/deploy/aigateway.d.mts +5 -1
  14. package/dist/cli/commands/deploy/application.d.mts +7 -1
  15. package/dist/cli/commands/deploy/apply-phases.d.mts +14 -1
  16. package/dist/cli/commands/deploy/auth.d.mts +5 -1
  17. package/dist/cli/commands/deploy/deploy.d.mts +5 -0
  18. package/dist/cli/commands/deploy/executor.d.mts +7 -1
  19. package/dist/cli/commands/deploy/function-registry.d.mts +5 -0
  20. package/dist/cli/commands/deploy/idp.d.mts +5 -1
  21. package/dist/cli/commands/deploy/resolver.d.mts +5 -1
  22. package/dist/cli/commands/deploy/secret-manager.d.mts +5 -1
  23. package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -1
  24. package/dist/cli/commands/deploy/tailordb/index.d.mts +8 -1
  25. package/dist/cli/commands/deploy/types.d.mts +3 -1
  26. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +3 -0
  27. package/dist/cli/commands/deploy/workflow.d.mts +4 -1
  28. package/dist/cli/commands/executor/get.d.mts +0 -1
  29. package/dist/cli/commands/executor/jobs.d.mts +0 -1
  30. package/dist/cli/commands/executor/list.d.mts +0 -1
  31. package/dist/cli/commands/executor/transform.d.mts +1 -0
  32. package/dist/cli/commands/executor/trigger.d.mts +0 -1
  33. package/dist/cli/commands/executor/webhook.d.mts +0 -1
  34. package/dist/cli/commands/function/get.d.mts +0 -1
  35. package/dist/cli/commands/function/list.d.mts +0 -1
  36. package/dist/cli/commands/function/transform.d.mts +1 -0
  37. package/dist/cli/commands/generate/service.d.mts +5 -1
  38. package/dist/cli/commands/machineuser/list.d.mts +0 -1
  39. package/dist/cli/commands/machineuser/token.d.mts +0 -1
  40. package/dist/cli/commands/oauth2client/get.d.mts +0 -1
  41. package/dist/cli/commands/oauth2client/list.d.mts +0 -1
  42. package/dist/cli/commands/oauth2client/transform.d.mts +1 -0
  43. package/dist/cli/commands/organization/folder/create.d.mts +0 -1
  44. package/dist/cli/commands/organization/folder/delete.d.mts +0 -1
  45. package/dist/cli/commands/organization/folder/get.d.mts +0 -1
  46. package/dist/cli/commands/organization/folder/list.d.mts +0 -1
  47. package/dist/cli/commands/organization/folder/update.d.mts +0 -1
  48. package/dist/cli/commands/organization/get.d.mts +0 -1
  49. package/dist/cli/commands/organization/list.d.mts +0 -1
  50. package/dist/cli/commands/organization/transform.d.mts +2 -0
  51. package/dist/cli/commands/organization/tree.d.mts +0 -1
  52. package/dist/cli/commands/organization/update.d.mts +0 -1
  53. package/dist/cli/commands/remove.d.mts +0 -1
  54. package/dist/cli/commands/show.d.mts +9 -4
  55. package/dist/cli/commands/tailordb/migrate/config.d.mts +0 -1
  56. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +16 -3
  57. package/dist/cli/commands/tailordb/migrate/generate.d.mts +0 -1
  58. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +6 -0
  59. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
  60. package/dist/cli/commands/tailordb/truncate.d.mts +0 -1
  61. package/dist/cli/commands/workflow/executions.d.mts +0 -1
  62. package/dist/cli/commands/workflow/get.d.mts +2 -1
  63. package/dist/cli/commands/workflow/list.d.mts +0 -1
  64. package/dist/cli/commands/workflow/resume.d.mts +0 -1
  65. package/dist/cli/commands/workflow/start.d.mts +0 -1
  66. package/dist/cli/commands/workflow/status.d.mts +1 -0
  67. package/dist/cli/commands/workflow/transform.d.mts +1 -0
  68. package/dist/cli/commands/workflow/wait.d.mts +0 -1
  69. package/dist/cli/commands/workflow/waiter.d.mts +1 -1
  70. package/dist/cli/commands/workspace/app/health.d.mts +0 -1
  71. package/dist/cli/commands/workspace/app/list.d.mts +0 -1
  72. package/dist/cli/commands/workspace/app/transform.d.mts +2 -0
  73. package/dist/cli/commands/workspace/create.d.mts +0 -1
  74. package/dist/cli/commands/workspace/delete.d.mts +0 -1
  75. package/dist/cli/commands/workspace/get.d.mts +0 -1
  76. package/dist/cli/commands/workspace/list.d.mts +0 -1
  77. package/dist/cli/commands/workspace/restore.d.mts +0 -1
  78. package/dist/cli/commands/workspace/transform.d.mts +2 -0
  79. package/dist/cli/commands/workspace/user/invite.d.mts +0 -1
  80. package/dist/cli/commands/workspace/user/list.d.mts +0 -1
  81. package/dist/cli/commands/workspace/user/remove.d.mts +0 -1
  82. package/dist/cli/commands/workspace/user/transform.d.mts +1 -0
  83. package/dist/cli/commands/workspace/user/update.d.mts +0 -1
  84. package/dist/cli/index.d.mts +6 -3
  85. package/dist/cli/index.mjs +273 -104
  86. package/dist/cli/index.mjs.map +1 -1
  87. package/dist/cli/lib.d.mts +4 -2
  88. package/dist/cli/lib.mjs +4 -4
  89. package/dist/cli/lib.mjs.map +1 -1
  90. package/dist/cli/query/index.d.mts +4 -1
  91. package/dist/cli/services/application.d.mts +12 -1
  92. package/dist/cli/services/auth/service.d.mts +2 -0
  93. package/dist/cli/services/executor/service.d.mts +1 -1
  94. package/dist/cli/services/http-adapter/bundler.d.mts +3 -1
  95. package/dist/cli/services/http-adapter/service.d.mts +2 -1
  96. package/dist/cli/services/resolver/service.d.mts +1 -1
  97. package/dist/cli/services/tailordb/service.d.mts +3 -1
  98. package/dist/cli/services/workflow/bundler.d.mts +2 -1
  99. package/dist/cli/services/workflow/service.d.mts +1 -1
  100. package/dist/cli/shared/args.d.mts +1 -1
  101. package/dist/cli/shared/client.d.mts +1 -1
  102. package/dist/cli/shared/config-loader.d.mts +0 -1
  103. package/dist/cli/shared/context.d.mts +2 -1
  104. package/dist/cli/shared/script-executor.d.mts +0 -1
  105. package/dist/cli/shared/seed-chunker.d.mts +7 -3
  106. package/dist/cli/shared/type-generator.d.mts +0 -1
  107. package/dist/cli/ts-hook.mjs +43 -13
  108. package/dist/completion/zsh-worker.zsh +10 -10
  109. package/dist/configure/config/index.d.mts +0 -1
  110. package/dist/configure/config/types.d.mts +3 -1
  111. package/dist/configure/index.d.mts +17 -5
  112. package/dist/configure/index.mjs +309 -5
  113. package/dist/configure/index.mjs.map +1 -1
  114. package/dist/configure/services/aigateway/index.d.mts +0 -1
  115. package/dist/configure/services/aigateway/types.d.mts +0 -1
  116. package/dist/configure/services/auth/index.d.mts +0 -1
  117. package/dist/configure/services/auth/types.d.mts +15 -14
  118. package/dist/configure/services/executor/executor.d.mts +1 -1
  119. package/dist/configure/services/executor/index.d.mts +1 -0
  120. package/dist/configure/services/executor/operation.d.mts +2 -2
  121. package/dist/configure/services/executor/trigger/event.d.mts +0 -1
  122. package/dist/configure/services/executor/trigger/index.d.mts +0 -1
  123. package/dist/configure/services/executor/trigger/schedule.d.mts +0 -1
  124. package/dist/configure/services/executor/trigger/webhook.d.mts +0 -1
  125. package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -2
  126. package/dist/configure/services/idp/index.d.mts +1 -5
  127. package/dist/configure/services/idp/permission.d.mts +4 -5
  128. package/dist/configure/services/idp/types.d.mts +0 -1
  129. package/dist/configure/services/index.d.mts +8 -1
  130. package/dist/configure/services/resolver/resolver.d.mts +1 -0
  131. package/dist/configure/services/resolver/types.d.mts +0 -1
  132. package/dist/configure/services/secrets/index.d.mts +0 -1
  133. package/dist/configure/services/secrets/types.d.mts +0 -1
  134. package/dist/configure/services/staticwebsite/index.d.mts +0 -1
  135. package/dist/configure/services/staticwebsite/types.d.mts +0 -1
  136. package/dist/configure/services/tailordb/permission.d.mts +4 -5
  137. package/dist/configure/services/tailordb/schema.d.mts +104 -68
  138. package/dist/configure/services/tailordb/types.d.mts +66 -17
  139. package/dist/configure/services/workflow/execution-policy.d.mts +70 -0
  140. package/dist/configure/services/workflow/execution-policy.types.d.mts +103 -0
  141. package/dist/configure/services/workflow/index.d.mts +4 -1
  142. package/dist/configure/services/workflow/job.d.mts +7 -3
  143. package/dist/configure/services/workflow/wait-point.d.mts +0 -1
  144. package/dist/configure/services/workflow/workflow.d.mts +1 -1
  145. package/dist/configure/types/field-runtime.d.mts +0 -1
  146. package/dist/configure/types/field.d.mts +1 -2
  147. package/dist/configure/types/field.types.d.mts +6 -45
  148. package/dist/configure/types/index.d.mts +1 -0
  149. package/dist/configure/types/type.d.mts +1 -2
  150. package/dist/{context-Bd266-ru.mjs → context-DYQVYWqZ.mjs} +4 -5
  151. package/dist/{context-Bd266-ru.mjs.map → context-DYQVYWqZ.mjs.map} +1 -1
  152. package/dist/{file-BbdFGdMV.mjs → file-BUcmVIH2.mjs} +12 -14
  153. package/dist/file-BUcmVIH2.mjs.map +1 -0
  154. package/dist/{file-utils-CYZnO1pX.mjs → file-utils-yEiIS4nJ.mjs} +2 -2
  155. package/dist/file-utils-yEiIS4nJ.mjs.map +1 -0
  156. package/dist/{globals-DhwZj0RB.mjs → globals-BjhJJ2dN.mjs} +2 -2
  157. package/dist/globals-BjhJJ2dN.mjs.map +1 -0
  158. package/dist/iconv-QWaZh0TT.mjs +38 -0
  159. package/dist/iconv-QWaZh0TT.mjs.map +1 -0
  160. package/dist/{idp-Bx25ZBdN.mjs → idp-RA_swu-h.mjs} +4 -5
  161. package/dist/idp-RA_swu-h.mjs.map +1 -0
  162. package/dist/kysely/index.d.mts +3 -4
  163. package/dist/{kysely-type-5eAChaHO.mjs → kysely-type-DqIRgDYR.mjs} +4 -5
  164. package/dist/kysely-type-DqIRgDYR.mjs.map +1 -0
  165. package/dist/parser/service/auth/index.d.mts +1 -1
  166. package/dist/parser/service/auth/schema.d.mts +2 -0
  167. package/dist/parser/service/http-adapter/index.d.mts +1 -1
  168. package/dist/parser/service/idp/types.d.mts +1 -0
  169. package/dist/parser/service/tailordb/types.d.mts +6 -1
  170. package/dist/plugin/builtin/enum-constants/index.d.mts +0 -1
  171. package/dist/plugin/builtin/file-utils/index.d.mts +0 -1
  172. package/dist/plugin/builtin/file-utils/index.mjs +1 -1
  173. package/dist/plugin/builtin/kysely-type/index.d.mts +0 -1
  174. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  175. package/dist/plugin/builtin/seed/index.d.mts +0 -1
  176. package/dist/plugin/get-generated-type.d.mts +0 -1
  177. package/dist/plugin/manager.d.mts +2 -1
  178. package/dist/plugin/types.d.mts +0 -1
  179. package/dist/plugin/with-context.d.mts +0 -1
  180. package/dist/{register-ts-hook-ZpBacA07.mjs → register-ts-hook-BhzVkej0.mjs} +799 -446
  181. package/dist/register-ts-hook-BhzVkej0.mjs.map +1 -0
  182. package/dist/{registry-DH4m7eYo.mjs → registry-BSbq6SPo.mjs} +4 -3
  183. package/dist/registry-BSbq6SPo.mjs.map +1 -0
  184. package/dist/resource_pb-BRv7AMXK.mjs +49 -0
  185. package/dist/resource_pb-BRv7AMXK.mjs.map +1 -0
  186. package/dist/runtime/aigateway.d.mts +5 -15
  187. package/dist/runtime/aigateway.mjs +2 -2
  188. package/dist/runtime/authconnection.d.mts +5 -15
  189. package/dist/runtime/authconnection.mjs +2 -2
  190. package/dist/runtime/context.d.mts +14 -6
  191. package/dist/runtime/context.mjs +2 -2
  192. package/dist/runtime/file.d.mts +14 -54
  193. package/dist/runtime/file.mjs +2 -2
  194. package/dist/runtime/globals.d.mts +1 -2
  195. package/dist/runtime/iconv.d.mts +5 -53
  196. package/dist/runtime/iconv.mjs +2 -2
  197. package/dist/runtime/idp.d.mts +13 -70
  198. package/dist/runtime/idp.mjs +2 -2
  199. package/dist/runtime/index.d.mts +11 -12
  200. package/dist/runtime/index.mjs +9 -9
  201. package/dist/runtime/secretmanager.d.mts +7 -20
  202. package/dist/runtime/secretmanager.mjs +2 -2
  203. package/dist/runtime/types.d.mts +9 -4
  204. package/dist/runtime/workflow.d.mts +42 -41
  205. package/dist/runtime/workflow.mjs +2 -2
  206. package/dist/{schema-89dYxNC2.mjs → schema-iCd1ugGp.mjs} +257 -54
  207. package/dist/schema-iCd1ugGp.mjs.map +1 -0
  208. package/dist/secretmanager-CYlpffsz.mjs +13 -0
  209. package/dist/secretmanager-CYlpffsz.mjs.map +1 -0
  210. package/dist/seed/index.d.mts +3 -2
  211. package/dist/service-BT0GPd01.mjs +3 -0
  212. package/dist/{service-ufH7sS8o.mjs → service-CzZEVrp9.mjs} +14 -9
  213. package/dist/service-CzZEVrp9.mjs.map +1 -0
  214. package/dist/{service_pb-CIrhGwHk.mjs → service_pb-Bk7dL-yT.mjs} +27 -50
  215. package/dist/service_pb-Bk7dL-yT.mjs.map +1 -0
  216. package/dist/{service_pb-DjwIn4jO.mjs → service_pb-DZkfjB_6.mjs} +1 -1
  217. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +0 -1
  218. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +0 -1
  219. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +0 -1
  220. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +0 -1
  221. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +0 -1
  222. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +0 -1
  223. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +0 -1
  224. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +0 -1
  225. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +0 -1
  226. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +0 -1
  227. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +0 -1
  228. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +0 -1
  229. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -1
  230. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +0 -1
  231. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +0 -1
  232. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +0 -1
  233. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +0 -1
  234. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +0 -1
  235. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +0 -1
  236. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +0 -1
  237. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +0 -1
  238. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +0 -1
  239. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +0 -1
  240. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +0 -1
  241. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +1 -2
  242. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +0 -1
  243. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +0 -1
  244. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +0 -1
  245. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +0 -1
  246. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +0 -1
  247. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +0 -1
  248. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +0 -1
  249. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +0 -1
  250. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +29 -10
  251. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +35 -2
  252. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +0 -1
  253. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +0 -1
  254. package/dist/types/aigateway.generated.d.mts +5 -2
  255. package/dist/types/auth-connection.generated.d.mts +24 -11
  256. package/dist/types/auth.generated.d.mts +115 -84
  257. package/dist/types/executor.generated.d.mts +76 -84
  258. package/dist/types/helpers.d.mts +7 -6
  259. package/dist/types/http-adapter.generated.d.mts +11 -5
  260. package/dist/types/idp.generated.d.mts +536 -524
  261. package/dist/types/resolver.generated.d.mts +26 -11
  262. package/dist/types/staticwebsite.generated.d.mts +7 -3
  263. package/dist/types/tailordb.generated.d.mts +57 -29
  264. package/dist/types/workflow.generated.d.mts +9 -4
  265. package/dist/utils/test/index.d.mts +1 -2
  266. package/dist/utils/test/index.mjs +36 -10
  267. package/dist/utils/test/index.mjs.map +1 -1
  268. package/dist/utils/test/mock.d.mts +0 -1
  269. package/dist/vitest/environment.mjs +1 -1
  270. package/dist/vitest/index.d.mts +1 -1
  271. package/dist/vitest/index.mjs +11 -11
  272. package/dist/vitest/index.mjs.map +1 -1
  273. package/dist/vitest/mock-kysely.d.mts +0 -1
  274. package/dist/vitest/mocks/aigateway.d.mts +2 -2
  275. package/dist/vitest/mocks/authconnection.d.mts +2 -2
  276. package/dist/vitest/mocks/idp.d.mts +2 -2
  277. package/dist/vitest/mocks/secretmanager.d.mts +3 -1
  278. package/dist/vitest/mocks/tailordb.d.mts +6 -3
  279. package/dist/vitest/mocks/workflow.d.mts +15 -8
  280. package/dist/vitest/setup.mjs +1 -1
  281. package/dist/vitest/workflow-local.d.mts +1 -0
  282. package/dist/workflow-GNuSnsTx.mjs +22 -0
  283. package/dist/workflow-GNuSnsTx.mjs.map +1 -0
  284. package/docs/cli/auth.md +3 -3
  285. package/docs/cli/setup.md +9 -9
  286. package/docs/cli-reference.md +7 -6
  287. package/docs/configuration.md +24 -0
  288. package/docs/migration/v2.md +317 -0
  289. package/docs/plugin/custom.md +4 -4
  290. package/docs/plugin/index.md +2 -2
  291. package/docs/runtime.md +4 -2
  292. package/docs/services/aigateway.md +2 -0
  293. package/docs/services/auth.md +2 -2
  294. package/docs/services/resolver.md +1 -1
  295. package/docs/services/tailordb-migration.md +1 -1
  296. package/docs/services/tailordb.md +125 -93
  297. package/docs/services/workflow.md +78 -0
  298. package/package.json +22 -22
  299. package/dist/aigateway-B3oZZE6v.mjs +0 -15
  300. package/dist/application-D2hSK1ZL.mjs +0 -3
  301. package/dist/application-eHp9jXld.mjs.map +0 -1
  302. package/dist/authconnection-BGQM8FZI.mjs +0 -15
  303. package/dist/authconnection-BGQM8FZI.mjs.map +0 -1
  304. package/dist/cli/shared/trigger-context.d.mts +0 -1
  305. package/dist/field-runtime-CAnh_oow.mjs +0 -183
  306. package/dist/field-runtime-CAnh_oow.mjs.map +0 -1
  307. package/dist/file-BbdFGdMV.mjs.map +0 -1
  308. package/dist/file-utils-CYZnO1pX.mjs.map +0 -1
  309. package/dist/globals-DhwZj0RB.mjs.map +0 -1
  310. package/dist/iconv-D2vi8G36.mjs +0 -63
  311. package/dist/iconv-D2vi8G36.mjs.map +0 -1
  312. package/dist/idp-Bx25ZBdN.mjs.map +0 -1
  313. package/dist/kysely-type-5eAChaHO.mjs.map +0 -1
  314. package/dist/register-ts-hook-ZpBacA07.mjs.map +0 -1
  315. package/dist/registry-DH4m7eYo.mjs.map +0 -1
  316. package/dist/rolldown-runtime-DXywRVcq.mjs +0 -20
  317. package/dist/schema-89dYxNC2.mjs.map +0 -1
  318. package/dist/secretmanager-BVxw3ih_.mjs +0 -24
  319. package/dist/secretmanager-BVxw3ih_.mjs.map +0 -1
  320. package/dist/service-CkIwEctX.mjs +0 -3
  321. package/dist/service-ufH7sS8o.mjs.map +0 -1
  322. package/dist/service_pb-CIrhGwHk.mjs.map +0 -1
  323. package/dist/types-C-lQ4se3.mjs +0 -4
  324. package/dist/types-CXF2OYdR.mjs +0 -199
  325. package/dist/types-CXF2OYdR.mjs.map +0 -1
  326. package/dist/workflow-Bo59B75H.mjs +0 -50
  327. package/dist/workflow-Bo59B75H.mjs.map +0 -1
@@ -1,6 +1,4 @@
1
- declare namespace file_d_exports {
2
- export { DownloadMetadata, FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions, TailorDBFileAPI, TailorDBFileError, TailorDBFileErrorCode, UploadMetadata, deleteFile as delete, deleteFile, download, downloadAsBase64, downloadStream, getMetadata, upload, uploadStream };
3
- }
1
+ //#region src/runtime/file.d.ts
4
2
  /**
5
3
  * TailorDB file (BLOB) utilities.
6
4
  *
@@ -30,7 +28,7 @@ interface DownloadMetadata {
30
28
  sha256sum: string;
31
29
  lastUploadedAt: string;
32
30
  }
33
- /** File metadata (for {@link getMetadata}). */
31
+ /** File metadata (for {@link TailorDBFileAPI.getMetadata}). */
34
32
  interface FileMetadata {
35
33
  contentType: string;
36
34
  fileSize: number;
@@ -82,11 +80,6 @@ interface TailorDBFileError extends Error {
82
80
  /**
83
81
  * Platform API surface for `tailordb.file`. Describes the shape the platform
84
82
  * runtime injects on `globalThis.tailordb.file`.
85
- *
86
- * Each method below is also re-exported as a top-level named export from this
87
- * module (e.g. `upload`, `download`, `deleteFile`) so callers can either
88
- * `import * as file from "@tailor-platform/sdk/runtime/file"` or pick
89
- * individual methods.
90
83
  */
91
84
  interface TailorDBFileAPI {
92
85
  /**
@@ -125,8 +118,7 @@ interface TailorDBFileAPI {
125
118
  */
126
119
  downloadAsBase64(namespace: string, typeName: string, fieldName: string, recordId: string): Promise<FileDownloadAsBase64Response>;
127
120
  /**
128
- * Delete a file from TailorDB. Exported as `deleteFile` (and aliased as
129
- * `delete`) so it can be used both with named and namespace imports.
121
+ * Delete a file from TailorDB.
130
122
  * @param namespace - TailorDB namespace
131
123
  * @param typeName - TailorDB type name
132
124
  * @param fieldName - File field name on the type
@@ -164,47 +156,15 @@ interface TailorDBFileAPI {
164
156
  */
165
157
  uploadStream(namespace: string, typeName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions): Promise<FileUploadResponse>;
166
158
  }
167
- /**
168
- * See {@link TailorDBFileAPI.upload}.
169
- * @param args - Forwarded to {@link TailorDBFileAPI.upload}
170
- * @returns Upload response containing the file metadata
171
- */
172
- declare const upload: TailorDBFileAPI["upload"];
173
- /**
174
- * See {@link TailorDBFileAPI.download}.
175
- * @param args - Forwarded to {@link TailorDBFileAPI.download}
176
- * @returns Bytes and metadata for the file
177
- */
178
- declare const download: TailorDBFileAPI["download"];
179
- /**
180
- * See {@link TailorDBFileAPI.downloadAsBase64}.
181
- * @param args - Forwarded to {@link TailorDBFileAPI.downloadAsBase64}
182
- * @returns Base64-encoded contents and metadata for the file
183
- */
184
- declare const downloadAsBase64: TailorDBFileAPI["downloadAsBase64"];
185
- /**
186
- * See {@link TailorDBFileAPI.delete}.
187
- * @param args - Forwarded to {@link TailorDBFileAPI.delete}
188
- * @returns Resolves once the file has been deleted
189
- */
190
- declare const deleteFile: TailorDBFileAPI["delete"];
191
- /**
192
- * See {@link TailorDBFileAPI.getMetadata}.
193
- * @param args - Forwarded to {@link TailorDBFileAPI.getMetadata}
194
- * @returns Metadata for the stored file
195
- */
196
- declare const getMetadata: TailorDBFileAPI["getMetadata"];
197
- /**
198
- * See {@link TailorDBFileAPI.downloadStream}.
199
- * @param args - Forwarded to {@link TailorDBFileAPI.downloadStream}
200
- * @returns ReadableStream body and metadata for the file
201
- */
202
- declare const downloadStream: TailorDBFileAPI["downloadStream"];
203
- /**
204
- * See {@link TailorDBFileAPI.uploadStream}.
205
- * @param args - Forwarded to {@link TailorDBFileAPI.uploadStream}
206
- * @returns Upload response containing the file metadata
207
- */
208
- declare const uploadStream: TailorDBFileAPI["uploadStream"];
159
+ /** Runtime wrapper namespace for `tailordb.file`. */
160
+ declare const file: {
161
+ readonly upload: (namespace: string, typeName: string, fieldName: string, recordId: string, data: string | ArrayBuffer | Uint8Array | number[], options?: FileUploadOptions) => Promise<FileUploadResponse>;
162
+ readonly download: (namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileDownloadResponse>;
163
+ readonly downloadAsBase64: (namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileDownloadAsBase64Response>;
164
+ readonly delete: (namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<void>;
165
+ readonly getMetadata: (namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileMetadata>;
166
+ readonly downloadStream: (namespace: string, typeName: string, fieldName: string, recordId: string) => Promise<FileDownloadStreamResponse>;
167
+ readonly uploadStream: (namespace: string, typeName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions) => Promise<FileUploadResponse>;
168
+ };
209
169
  //#endregion
210
- export { DownloadMetadata, FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions, TailorDBFileAPI, TailorDBFileError, TailorDBFileErrorCode, UploadMetadata, deleteFile as delete, deleteFile, download, downloadAsBase64, downloadStream, file_d_exports, getMetadata, upload, uploadStream };
170
+ export { DownloadMetadata, FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions, TailorDBFileAPI, TailorDBFileError, TailorDBFileErrorCode, UploadMetadata, file };
@@ -1,3 +1,3 @@
1
- import { c as uploadStream, i as downloadStream, n as download, o as getMetadata, r as downloadAsBase64, s as upload, t as deleteFile } from "../file-BbdFGdMV.mjs";
1
+ import { t as file } from "../file-BUcmVIH2.mjs";
2
2
 
3
- export { deleteFile as delete, deleteFile, download, downloadAsBase64, downloadStream, getMetadata, upload, uploadStream };
3
+ export { file };
@@ -1,10 +1,9 @@
1
+ import { Invoker, PlatformTriggerWorkflowOptions } from "./workflow.mjs";
1
2
  import { ContextInvoker } from "./context.mjs";
2
3
  import { TailorDBFileErrorCode } from "./file.mjs";
3
4
  import { IconvInstance } from "./iconv.mjs";
4
5
  import { ClientConfig, CreateUserInput, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, UnenrollMfaInput, UpdateUserInput, User, UserQuery } from "./idp.mjs";
5
- import { Invoker, PlatformTriggerWorkflowOptions } from "./workflow.mjs";
6
6
  import { TailorRuntime, TailordbClientInstance, TailordbCommandType, TailordbQueryResult, TailordbRuntime } from "./index.mjs";
7
-
8
7
  //#region src/runtime/globals.d.ts
9
8
  type TailorIdpClientConfig = ClientConfig;
10
9
  type TailorIdpCreateUserInput = CreateUserInput;
@@ -1,6 +1,4 @@
1
- declare namespace iconv_d_exports {
2
- export { Iconv, IconvConstructor, IconvInstance, TailorIconvAPI, convert, convertBuffer, decode, encode, encodings };
3
- }
1
+ //#region src/runtime/iconv.d.ts
4
2
  /**
5
3
  * Character encoding conversion utilities.
6
4
  *
@@ -29,11 +27,6 @@ interface IconvConstructor {
29
27
  * Platform API surface for `tailor.iconv`. Describes the shape the platform
30
28
  * runtime injects on `globalThis.tailor.iconv` so the wrapper and ambient
31
29
  * globals stay in sync.
32
- *
33
- * Each method below is also re-exported as a top-level named export from this
34
- * module (e.g. `convert`, `decode`, `encode`) so callers can either
35
- * `import * as iconv from "@tailor-platform/sdk/runtime/iconv"` or pick
36
- * individual methods.
37
30
  */
38
31
  interface TailorIconvAPI {
39
32
  /**
@@ -71,51 +64,10 @@ interface TailorIconvAPI {
71
64
  * @returns Array of encoding names supported by the platform iconv runtime
72
65
  */
73
66
  encodings(): string[];
74
- /** Constructor for the stateful {@link Iconv} converter. */
67
+ /** Constructor for the stateful converter. */
75
68
  Iconv: IconvConstructor;
76
69
  }
77
- /**
78
- * See {@link TailorIconvAPI.convert}.
79
- * @param args - Forwarded to {@link TailorIconvAPI.convert}
80
- * @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
81
- */
82
- declare const convert: TailorIconvAPI["convert"];
83
- /**
84
- * See {@link TailorIconvAPI.convertBuffer}.
85
- * @param args - Forwarded to {@link TailorIconvAPI.convertBuffer}
86
- * @returns `string` when `toEncoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
87
- */
88
- declare const convertBuffer: TailorIconvAPI["convertBuffer"];
89
- /**
90
- * See {@link TailorIconvAPI.decode}.
91
- * @param args - Forwarded to {@link TailorIconvAPI.decode}
92
- * @returns Decoded UTF-8 string
93
- */
94
- declare const decode: TailorIconvAPI["decode"];
95
- /**
96
- * See {@link TailorIconvAPI.encode}.
97
- * @param args - Forwarded to {@link TailorIconvAPI.encode}
98
- * @returns `string` when `encoding` is `"UTF8"` or `"UTF-8"`, otherwise `Uint8Array`.
99
- */
100
- declare const encode: TailorIconvAPI["encode"];
101
- /**
102
- * See {@link TailorIconvAPI.encodings}.
103
- * @returns Array of encoding names supported by the platform iconv runtime
104
- */
105
- declare const encodings: TailorIconvAPI["encodings"];
106
- /**
107
- * Stateful converter for repeated conversions between a fixed encoding pair.
108
- * Compatible with the `node-iconv` API surface.
109
- */
110
- declare class Iconv {
111
- private impl;
112
- constructor(fromEncoding: string, toEncoding: string);
113
- /**
114
- * Convert input using this converter's fixed encoding pair.
115
- * @param input - Bytes or string to convert
116
- * @returns Encoded output (string for UTF-8 targets, otherwise `Uint8Array`).
117
- */
118
- convert(input: string | Uint8Array | ArrayBuffer): string | Uint8Array;
119
- }
70
+ /** Runtime API for `tailor.iconv`. */
71
+ declare const iconv: TailorIconvAPI;
120
72
  //#endregion
121
- export { Iconv, IconvConstructor, IconvInstance, TailorIconvAPI, convert, convertBuffer, decode, encode, encodings, iconv_d_exports };
73
+ export { IconvConstructor, IconvInstance, TailorIconvAPI, iconv };
@@ -1,3 +1,3 @@
1
- import { a as encode, i as decode, n as convert, o as encodings, r as convertBuffer, t as Iconv } from "../iconv-D2vi8G36.mjs";
1
+ import { t as iconv } from "../iconv-QWaZh0TT.mjs";
2
2
 
3
- export { Iconv, convert, convertBuffer, decode, encode, encodings };
3
+ export { iconv };
@@ -1,6 +1,4 @@
1
- declare namespace idp_d_exports {
2
- export { Client, ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UnenrollMfaInput, UpdateUserInput, User, UserQuery };
3
- }
1
+ //#region src/runtime/idp.d.ts
4
2
  /**
5
3
  * IDP (Identity Provider) utilities.
6
4
  *
@@ -13,7 +11,7 @@ declare namespace idp_d_exports {
13
11
  * const client = new idp.Client({ namespace: "my-namespace" });
14
12
  * const { users } = await client.users({ first: 10 });
15
13
  */
16
- /** Configuration object for {@link Client}. */
14
+ /** Configuration object for `idp.Client`. */
17
15
  interface ClientConfig {
18
16
  namespace: string;
19
17
  }
@@ -30,18 +28,18 @@ interface User {
30
28
  mfaEnrolled: boolean;
31
29
  /**
32
30
  * Enrolled MFA second factor IDs. Pass an entry into
33
- * {@link Client.unenrollMfa} to remove that factor.
31
+ * `idp.Client.unenrollMfa()` to remove that factor.
34
32
  */
35
33
  mfaFactorIds: string[];
36
34
  }
37
- /** Filter options for {@link Client.users}. */
35
+ /** Filter options for `idp.Client.users()`. */
38
36
  interface UserQuery {
39
37
  /** Filter by user IDs */
40
38
  ids?: string[];
41
39
  /** Filter by user names */
42
40
  names?: string[];
43
41
  }
44
- /** Pagination/filter options for {@link Client.users}. */
42
+ /** Pagination/filter options for `idp.Client.users()`. */
45
43
  interface ListUsersOptions {
46
44
  /** Maximum number of users to return */
47
45
  first?: number;
@@ -50,13 +48,13 @@ interface ListUsersOptions {
50
48
  /** Query filter for users */
51
49
  query?: UserQuery;
52
50
  }
53
- /** Response shape for {@link Client.users}. */
51
+ /** Response shape for `idp.Client.users()`. */
54
52
  interface ListUsersResponse {
55
53
  users: User[];
56
54
  nextPageToken: string | null;
57
55
  totalCount: number;
58
56
  }
59
- /** Input for {@link Client.createUser}. */
57
+ /** Input for `idp.Client.createUser()`. */
60
58
  interface CreateUserInput {
61
59
  /** The user's name (typically email) */
62
60
  name: string;
@@ -65,7 +63,7 @@ interface CreateUserInput {
65
63
  /** Whether the user is disabled */
66
64
  disabled?: boolean;
67
65
  }
68
- /** Input for {@link Client.updateUser}. */
66
+ /** Input for `idp.Client.updateUser()`. */
69
67
  interface UpdateUserInput {
70
68
  /** The user's ID */
71
69
  id: string;
@@ -78,7 +76,7 @@ interface UpdateUserInput {
78
76
  /** New disabled status for the user */
79
77
  disabled?: boolean;
80
78
  }
81
- /** Input for {@link Client.sendPasswordResetEmail}. */
79
+ /** Input for `idp.Client.sendPasswordResetEmail()`. */
82
80
  interface SendPasswordResetEmailInput {
83
81
  /** The ID of the user */
84
82
  userId: string;
@@ -89,7 +87,7 @@ interface SendPasswordResetEmailInput {
89
87
  /** The email subject line. Defaults to the localized default subject. */
90
88
  subject?: string;
91
89
  }
92
- /** Input for {@link Client.unenrollMfa}. */
90
+ /** Input for `idp.Client.unenrollMfa()`. */
93
91
  interface UnenrollMfaInput {
94
92
  /** The ID of the user whose factor will be unenrolled. */
95
93
  userId: string;
@@ -125,62 +123,7 @@ interface IdpClientConstructor {
125
123
  interface TailorIdpAPI {
126
124
  Client: IdpClientConstructor;
127
125
  }
128
- /**
129
- * IDP Client for user management operations.
130
- *
131
- * Wraps the platform-provided `tailor.idp.Client` and exposes the same surface.
132
- */
133
- declare class Client {
134
- #private;
135
- constructor(config: ClientConfig);
136
- /**
137
- * List users in the namespace with optional filtering and pagination.
138
- * @param options - Pagination and filter options
139
- * @returns Page of users with `nextPageToken` and `totalCount`
140
- */
141
- users(options?: ListUsersOptions): Promise<ListUsersResponse>;
142
- /**
143
- * Get a user by ID.
144
- * @param userId - IDP user ID
145
- * @returns The matching user
146
- */
147
- user(userId: string): Promise<User>;
148
- /**
149
- * Get a user by name.
150
- * @param name - IDP user name
151
- * @returns The matching user
152
- */
153
- userByName(name: string): Promise<User>;
154
- /**
155
- * Create a new user.
156
- * @param input - User attributes
157
- * @returns The newly created user
158
- */
159
- createUser(input: CreateUserInput): Promise<User>;
160
- /**
161
- * Update an existing user.
162
- * @param input - User ID plus attributes to update
163
- * @returns The updated user
164
- */
165
- updateUser(input: UpdateUserInput): Promise<User>;
166
- /**
167
- * Delete a user by ID.
168
- * @param userId - IDP user ID
169
- * @returns `true` when the user was deleted
170
- */
171
- deleteUser(userId: string): Promise<boolean>;
172
- /**
173
- * Send a password reset email to a user.
174
- * @param input - Target user ID and redirect URI
175
- * @returns `true` when the email was queued
176
- */
177
- sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean>;
178
- /**
179
- * Unenroll an MFA factor from a user.
180
- * @param input - Target user ID and factor ID (see {@link User.mfaFactorIds})
181
- * @returns `true` when the factor was removed
182
- */
183
- unenrollMfa(input: UnenrollMfaInput): Promise<boolean>;
184
- }
126
+ /** Runtime API for `tailor.idp`. */
127
+ declare const idp: TailorIdpAPI;
185
128
  //#endregion
186
- export { Client, ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UnenrollMfaInput, UpdateUserInput, User, UserQuery, idp_d_exports };
129
+ export { ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UnenrollMfaInput, UpdateUserInput, User, UserQuery, idp };
@@ -1,3 +1,3 @@
1
- import { t as Client } from "../idp-Bx25ZBdN.mjs";
1
+ import { t as idp } from "../idp-RA_swu-h.mjs";
2
2
 
3
- export { Client };
3
+ export { idp };
@@ -1,12 +1,11 @@
1
- import { TailorAigatewayAPI, aigateway_d_exports } from "./aigateway.mjs";
2
- import { TailorAuthconnectionAPI, authconnection_d_exports } from "./authconnection.mjs";
3
- import { TailorContextAPI, context_d_exports } from "./context.mjs";
4
- import { TailorDBFileAPI, file_d_exports } from "./file.mjs";
5
- import { TailorIconvAPI, iconv_d_exports } from "./iconv.mjs";
6
- import { TailorIdpAPI, idp_d_exports } from "./idp.mjs";
7
- import { TailorSecretmanagerAPI, secretmanager_d_exports } from "./secretmanager.mjs";
8
- import { TailorWorkflowAPI, workflow_d_exports } from "./workflow.mjs";
9
-
1
+ import { PlatformWorkflowAPI, workflow } from "./workflow.mjs";
2
+ import { TailorAigatewayAPI, aigateway } from "./aigateway.mjs";
3
+ import { TailorAuthconnectionAPI, authconnection } from "./authconnection.mjs";
4
+ import { PlatformContextAPI, context } from "./context.mjs";
5
+ import { TailorDBFileAPI, file } from "./file.mjs";
6
+ import { TailorIconvAPI, iconv } from "./iconv.mjs";
7
+ import { TailorIdpAPI, idp } from "./idp.mjs";
8
+ import { TailorSecretmanagerAPI, secretmanager } from "./secretmanager.mjs";
10
9
  //#region src/runtime/index.d.ts
11
10
  /** SQL command type recorded on a {@link TailordbQueryResult}. */
12
11
  type TailordbCommandType = "INSERT" | "DELETE" | "UPDATE" | "SELECT" | "MOVE" | "FETCH" | "COPY" | "CREATE";
@@ -34,8 +33,8 @@ interface TailorRuntime {
34
33
  authconnection: TailorAuthconnectionAPI;
35
34
  iconv: TailorIconvAPI;
36
35
  idp: TailorIdpAPI;
37
- workflow: TailorWorkflowAPI;
38
- context: TailorContextAPI;
36
+ workflow: PlatformWorkflowAPI;
37
+ context: PlatformContextAPI;
39
38
  aigateway: TailorAigatewayAPI;
40
39
  }
41
40
  /** Top-level `tailordb` runtime object. */
@@ -44,4 +43,4 @@ interface TailordbRuntime {
44
43
  file: TailorDBFileAPI;
45
44
  }
46
45
  //#endregion
47
- export { TailorRuntime, TailordbClientConstructor, TailordbClientInstance, TailordbCommandType, TailordbQueryResult, TailordbRuntime, aigateway_d_exports as aigateway, authconnection_d_exports as authconnection, context_d_exports as context, file_d_exports as file, iconv_d_exports as iconv, idp_d_exports as idp, secretmanager_d_exports as secretmanager, workflow_d_exports as workflow };
46
+ export { TailorRuntime, TailordbClientConstructor, TailordbClientInstance, TailordbCommandType, TailordbQueryResult, TailordbRuntime, aigateway, authconnection, context, file, iconv, idp, secretmanager, workflow };
@@ -1,10 +1,10 @@
1
- import { s as iconv_exports } from "../iconv-D2vi8G36.mjs";
2
- import { r as secretmanager_exports } from "../secretmanager-BVxw3ih_.mjs";
3
- import { t as authconnection_exports } from "../authconnection-BGQM8FZI.mjs";
4
- import { n as idp_exports } from "../idp-Bx25ZBdN.mjs";
5
- import { o as workflow_exports } from "../workflow-Bo59B75H.mjs";
6
- import { t as context_exports } from "../context-Bd266-ru.mjs";
7
- import { a as file_exports } from "../file-BbdFGdMV.mjs";
8
- import { t as aigateway_exports } from "../aigateway-B3oZZE6v.mjs";
1
+ import { t as iconv } from "../iconv-QWaZh0TT.mjs";
2
+ import { t as secretmanager } from "../secretmanager-CYlpffsz.mjs";
3
+ import { t as authconnection } from "../authconnection-CZvi9ANm.mjs";
4
+ import { t as idp } from "../idp-RA_swu-h.mjs";
5
+ import { t as workflow } from "../workflow-GNuSnsTx.mjs";
6
+ import { t as context } from "../context-DYQVYWqZ.mjs";
7
+ import { t as file } from "../file-BUcmVIH2.mjs";
8
+ import { t as aigateway } from "../aigateway-DR4Kwuik.mjs";
9
9
 
10
- export { aigateway_exports as aigateway, authconnection_exports as authconnection, context_exports as context, file_exports as file, iconv_exports as iconv, idp_exports as idp, secretmanager_exports as secretmanager, workflow_exports as workflow };
10
+ export { aigateway, authconnection, context, file, iconv, idp, secretmanager, workflow };
@@ -1,6 +1,4 @@
1
- declare namespace secretmanager_d_exports {
2
- export { TailorSecretmanagerAPI, getSecret, getSecrets };
3
- }
1
+ //#region src/runtime/secretmanager.d.ts
4
2
  /**
5
3
  * Secret manager utilities.
6
4
  *
@@ -17,10 +15,6 @@ declare namespace secretmanager_d_exports {
17
15
  /**
18
16
  * Platform API surface for `tailor.secretmanager`. Describes the shape the
19
17
  * platform runtime injects on `globalThis.tailor.secretmanager`.
20
- *
21
- * Each method below is also re-exported as a top-level named export from this
22
- * module so callers can either `import * as secretmanager from
23
- * "@tailor-platform/sdk/runtime/secretmanager"` or pick individual methods.
24
18
  */
25
19
  interface TailorSecretmanagerAPI {
26
20
  /**
@@ -38,17 +32,10 @@ interface TailorSecretmanagerAPI {
38
32
  */
39
33
  getSecret(vault: string, name: string): Promise<string | undefined>;
40
34
  }
41
- /**
42
- * See {@link TailorSecretmanagerAPI.getSecrets}.
43
- * @param args - Forwarded to {@link TailorSecretmanagerAPI.getSecrets}
44
- * @returns Partial record keyed by the requested names
45
- */
46
- declare const getSecrets: TailorSecretmanagerAPI["getSecrets"];
47
- /**
48
- * See {@link TailorSecretmanagerAPI.getSecret}.
49
- * @param args - Forwarded to {@link TailorSecretmanagerAPI.getSecret}
50
- * @returns The secret value, or `undefined` if not present
51
- */
52
- declare const getSecret: TailorSecretmanagerAPI["getSecret"];
35
+ /** Runtime wrapper namespace for `tailor.secretmanager`. */
36
+ declare const secretmanager: {
37
+ readonly getSecrets: <const T extends readonly string[]>(vault: string, names: T) => Promise<Partial<Record<T[number], string>>>;
38
+ readonly getSecret: (vault: string, name: string) => Promise<string | undefined>;
39
+ };
53
40
  //#endregion
54
- export { TailorSecretmanagerAPI, getSecret, getSecrets, secretmanager_d_exports };
41
+ export { TailorSecretmanagerAPI, secretmanager };
@@ -1,3 +1,3 @@
1
- import { n as getSecrets, t as getSecret } from "../secretmanager-BVxw3ih_.mjs";
1
+ import { t as secretmanager } from "../secretmanager-CYlpffsz.mjs";
2
2
 
3
- export { getSecret, getSecrets };
3
+ export { secretmanager };
@@ -7,10 +7,15 @@ type InferredAttributes = keyof Attributes extends never ? Record<string, string
7
7
  type InferredAttributeList = AttributeList["__tuple"] extends [] ? string[] : AttributeList["__tuple"];
8
8
  /** Represents a user or machine user principal in the Tailor Platform. */
9
9
  type TailorPrincipal = {
10
- /** The ID of the principal. */id: string; /** The type of the principal. */
11
- type: "user" | "machine_user"; /** The ID of the workspace the principal belongs to. */
12
- workspaceId: string; /** A map of the principal's attributes. */
13
- attributes: InferredAttributes; /** A list of the principal's attribute IDs. */
10
+ /** The ID of the principal. */
11
+ id: string;
12
+ /** The type of the principal. */
13
+ type: "user" | "machine_user";
14
+ /** The ID of the workspace the principal belongs to. */
15
+ workspaceId: string;
16
+ /** A map of the principal's attributes. */
17
+ attributes: InferredAttributes;
18
+ /** A list of the principal's attribute IDs. */
14
19
  attributeList: InferredAttributeList;
15
20
  };
16
21
  interface Env {}
@@ -1,6 +1,4 @@
1
- declare namespace workflow_d_exports {
2
- export { Invoker, PlatformTriggerWorkflowOptions, TailorWorkflowAPI, TriggerWorkflowOptions, resolve, resumeWorkflow, triggerJobFunction, triggerWorkflow, wait };
3
- }
1
+ //#region src/runtime/workflow.d.ts
4
2
  /**
5
3
  * Workflow utilities.
6
4
  *
@@ -30,15 +28,29 @@ interface TriggerWorkflowOptions {
30
28
  interface PlatformTriggerWorkflowOptions {
31
29
  authInvoker?: Invoker;
32
30
  }
31
+ declare const executionPolicyKeyBrand: unique symbol;
32
+ /**
33
+ * A concrete runtime key produced by an execution policy instance — either an
34
+ * exact-match policy's `.key`, or a wildcard policy's `.keyFor(suffix)` (see
35
+ * `defineWorkflowExecutionPolicies`). Branded so an arbitrary string that
36
+ * wasn't derived from a declared policy can't be passed as `executionPolicyKey`.
37
+ */
38
+ type ExecutionPolicyKey = string & {
39
+ readonly [executionPolicyKeyBrand]: never;
40
+ };
41
+ /** Options for {@link triggerJobFunction}. */
42
+ interface TriggerJobFunctionOptions {
43
+ /**
44
+ * Execution policy key matched by the platform against the policies
45
+ * declared with `defineWorkflowExecutionPolicies` in `tailor.config.ts`.
46
+ */
47
+ executionPolicyKey?: ExecutionPolicyKey;
48
+ }
33
49
  /**
34
50
  * Platform API surface for `tailor.workflow`. Describes the shape the platform
35
51
  * runtime injects on `globalThis.tailor.workflow`.
36
- *
37
- * Each method below is also re-exported as a top-level named export from this
38
- * module so callers can either `import * as workflow from
39
- * "@tailor-platform/sdk/runtime/workflow"` or pick individual methods.
40
52
  */
41
- interface TailorWorkflowAPI {
53
+ interface PlatformWorkflowAPI {
42
54
  /**
43
55
  * Triggers a workflow and returns its execution ID.
44
56
  * @param workflowName - Workflow name as defined in tailor.config
@@ -57,9 +69,10 @@ interface TailorWorkflowAPI {
57
69
  * Triggers a job function and returns its result.
58
70
  * @param jobName - Job name as defined in the workflow
59
71
  * @param args - Arguments forwarded to the job
72
+ * @param options - Optional trigger options (e.g. `executionPolicyKey`)
60
73
  * @returns The job's return value
61
74
  */
62
- triggerJobFunction(jobName: string, args?: any): any;
75
+ triggerJobFunction(jobName: string, args?: any, options?: TriggerJobFunctionOptions): any;
63
76
  /**
64
77
  * Suspends the current workflow execution and waits for an external signal to resume.
65
78
  * @param key - Wait point key
@@ -76,37 +89,25 @@ interface TailorWorkflowAPI {
76
89
  */
77
90
  resolve(executionId: string, key: string, callback: (waitPayload: any) => any): Promise<void>;
78
91
  }
79
- /**
80
- * See {@link TailorWorkflowAPI.triggerWorkflow}.
81
- * @param workflowName - Workflow name as defined in tailor.config
82
- * @param args - Arguments forwarded to the workflow's main job
83
- * @param options - Optional trigger options
84
- * @returns The execution ID of the triggered workflow
85
- */
92
+ /** Runtime wrapper API for workflow and job control. */
93
+ interface TailorWorkflowAPI extends Omit<PlatformWorkflowAPI, "triggerWorkflow"> {
94
+ /**
95
+ * Triggers a workflow and returns its execution ID.
96
+ * @param workflowName - Workflow name as defined in tailor.config
97
+ * @param args - Arguments forwarded to the workflow's main job
98
+ * @param options - Optional SDK trigger options
99
+ * @returns The execution ID of the triggered workflow
100
+ */
101
+ triggerWorkflow(workflowName: string, args?: any, options?: TriggerWorkflowOptions): Promise<string>;
102
+ }
86
103
  declare function triggerWorkflow(workflowName: string, args?: any, options?: TriggerWorkflowOptions): Promise<string>;
87
- /**
88
- * See {@link TailorWorkflowAPI.resumeWorkflow}.
89
- * @param args - Forwarded to {@link TailorWorkflowAPI.resumeWorkflow}
90
- * @returns The execution ID of the resumed workflow
91
- */
92
- declare const resumeWorkflow: TailorWorkflowAPI["resumeWorkflow"];
93
- /**
94
- * See {@link TailorWorkflowAPI.triggerJobFunction}.
95
- * @param args - Forwarded to {@link TailorWorkflowAPI.triggerJobFunction}
96
- * @returns The job's return value
97
- */
98
- declare const triggerJobFunction: TailorWorkflowAPI["triggerJobFunction"];
99
- /**
100
- * See {@link TailorWorkflowAPI.wait}.
101
- * @param args - Forwarded to {@link TailorWorkflowAPI.wait}
102
- * @returns The payload supplied by the corresponding `resolve` call
103
- */
104
- declare const wait: TailorWorkflowAPI["wait"];
105
- /**
106
- * See {@link TailorWorkflowAPI.resolve}.
107
- * @param args - Forwarded to {@link TailorWorkflowAPI.resolve}
108
- * @returns A promise that resolves once the resolve has been recorded
109
- */
110
- declare const resolve: TailorWorkflowAPI["resolve"];
104
+ /** Runtime wrapper namespace for `tailor.workflow`. */
105
+ declare const workflow: {
106
+ readonly triggerWorkflow: typeof triggerWorkflow;
107
+ readonly resumeWorkflow: (executionId: string) => Promise<string>;
108
+ readonly triggerJobFunction: (jobName: string, args?: any, options?: TriggerJobFunctionOptions) => any;
109
+ readonly wait: (key: string, payload?: any) => any;
110
+ readonly resolve: (executionId: string, key: string, callback: (waitPayload: any) => any) => Promise<void>;
111
+ };
111
112
  //#endregion
112
- export { Invoker, PlatformTriggerWorkflowOptions, TailorWorkflowAPI, TriggerWorkflowOptions, resolve, resumeWorkflow, triggerJobFunction, triggerWorkflow, wait, workflow_d_exports };
113
+ export { ExecutionPolicyKey, Invoker, PlatformTriggerWorkflowOptions, PlatformWorkflowAPI, TailorWorkflowAPI, TriggerJobFunctionOptions, TriggerWorkflowOptions, workflow };
@@ -1,3 +1,3 @@
1
- import { a as wait, i as triggerWorkflow, n as resumeWorkflow, r as triggerJobFunction, t as resolve } from "../workflow-Bo59B75H.mjs";
1
+ import { t as workflow } from "../workflow-GNuSnsTx.mjs";
2
2
 
3
- export { resolve, resumeWorkflow, triggerJobFunction, triggerWorkflow, wait };
3
+ export { workflow };