@tailor-platform/sdk 2.14.0 → 2.14.2

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 (245) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/{application-CiN_er9X.mjs → application-BAqZFMWP.mjs} +9 -9
  3. package/dist/application-BAqZFMWP.mjs.map +1 -0
  4. package/dist/application-BKlOiD1x.mjs +1 -0
  5. package/dist/cli/commands/api/api-call.d.mts +4 -5
  6. package/dist/cli/commands/deploy/config-id-injector.d.mts +3 -4
  7. package/dist/cli/commands/deploy/deploy.d.mts +3 -4
  8. package/dist/cli/commands/deploy/function-registry-types.d.mts +2 -3
  9. package/dist/cli/commands/executor/get.d.mts +3 -4
  10. package/dist/cli/commands/executor/jobs.d.mts +10 -11
  11. package/dist/cli/commands/executor/list.d.mts +3 -4
  12. package/dist/cli/commands/executor/transform.d.mts +6 -7
  13. package/dist/cli/commands/executor/trigger.d.mts +4 -5
  14. package/dist/cli/commands/executor/webhook.d.mts +4 -5
  15. package/dist/cli/commands/function/get.d.mts +3 -4
  16. package/dist/cli/commands/function/list.d.mts +3 -4
  17. package/dist/cli/commands/function/transform.d.mts +2 -3
  18. package/dist/cli/commands/generate/options.d.mts +2 -3
  19. package/dist/cli/commands/generate/seed/bundler.d.mts +3 -4
  20. package/dist/cli/commands/generate/service.d.mts +2 -3
  21. package/dist/cli/commands/machineuser/list.d.mts +4 -5
  22. package/dist/cli/commands/machineuser/token.d.mts +4 -5
  23. package/dist/cli/commands/oauth2client/get.d.mts +3 -4
  24. package/dist/cli/commands/oauth2client/list.d.mts +3 -4
  25. package/dist/cli/commands/oauth2client/transform.d.mts +3 -4
  26. package/dist/cli/commands/organization/folder/create.d.mts +3 -4
  27. package/dist/cli/commands/organization/folder/delete.d.mts +3 -4
  28. package/dist/cli/commands/organization/folder/get.d.mts +3 -4
  29. package/dist/cli/commands/organization/folder/list.d.mts +3 -4
  30. package/dist/cli/commands/organization/folder/update.d.mts +3 -4
  31. package/dist/cli/commands/organization/get.d.mts +3 -4
  32. package/dist/cli/commands/organization/list.d.mts +3 -4
  33. package/dist/cli/commands/organization/transform.d.mts +5 -6
  34. package/dist/cli/commands/organization/tree.d.mts +3 -4
  35. package/dist/cli/commands/organization/update.d.mts +3 -4
  36. package/dist/cli/commands/remove.d.mts +3 -4
  37. package/dist/cli/commands/show.d.mts +6 -7
  38. package/dist/cli/commands/staticwebsite/deploy.d.mts +3 -4
  39. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +3 -4
  40. package/dist/cli/commands/tailordb/migrate/config.d.mts +3 -4
  41. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +34 -35
  42. package/dist/cli/commands/tailordb/migrate/generate.d.mts +3 -4
  43. package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +3 -4
  44. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +4 -5
  45. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +13 -14
  46. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +2 -3
  47. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +2 -3
  48. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +21 -22
  49. package/dist/cli/commands/tailordb/migrate/types.d.mts +2 -3
  50. package/dist/cli/commands/tailordb/truncate.d.mts +3 -4
  51. package/dist/cli/commands/workflow/executions.d.mts +8 -9
  52. package/dist/cli/commands/workflow/get.d.mts +3 -4
  53. package/dist/cli/commands/workflow/list.d.mts +3 -4
  54. package/dist/cli/commands/workflow/resume.d.mts +4 -5
  55. package/dist/cli/commands/workflow/start.d.mts +5 -6
  56. package/dist/cli/commands/workflow/status.d.mts +3 -4
  57. package/dist/cli/commands/workflow/transform.d.mts +5 -6
  58. package/dist/cli/commands/workflow/wait.d.mts +3 -4
  59. package/dist/cli/commands/workflow/waiter.d.mts +3 -4
  60. package/dist/cli/commands/workspace/app/health.d.mts +3 -4
  61. package/dist/cli/commands/workspace/app/list.d.mts +3 -4
  62. package/dist/cli/commands/workspace/app/transform.d.mts +3 -4
  63. package/dist/cli/commands/workspace/create.d.mts +3 -4
  64. package/dist/cli/commands/workspace/delete.d.mts +3 -4
  65. package/dist/cli/commands/workspace/get.d.mts +3 -4
  66. package/dist/cli/commands/workspace/list.d.mts +3 -4
  67. package/dist/cli/commands/workspace/restore.d.mts +3 -4
  68. package/dist/cli/commands/workspace/transform.d.mts +3 -4
  69. package/dist/cli/commands/workspace/user/invite.d.mts +3 -4
  70. package/dist/cli/commands/workspace/user/list.d.mts +3 -4
  71. package/dist/cli/commands/workspace/user/remove.d.mts +3 -4
  72. package/dist/cli/commands/workspace/user/transform.d.mts +2 -3
  73. package/dist/cli/commands/workspace/user/update.d.mts +3 -4
  74. package/dist/cli/lib.mjs +1 -1
  75. package/dist/cli/main.d.mts +2 -3
  76. package/dist/cli/main.mjs +18 -18
  77. package/dist/cli/main.mjs.map +1 -1
  78. package/dist/cli/query/index.d.mts +2 -3
  79. package/dist/cli/shared/args.d.mts +11 -12
  80. package/dist/cli/shared/beta.d.mts +2 -3
  81. package/dist/cli/shared/client.d.mts +4 -5
  82. package/dist/cli/shared/command.d.mts +2 -3
  83. package/dist/cli/shared/config-loader.d.mts +5 -6
  84. package/dist/cli/shared/config.d.mts +2 -3
  85. package/dist/cli/shared/context.d.mts +3 -4
  86. package/dist/cli/shared/error-json.d.mts +4 -5
  87. package/dist/cli/shared/logger.d.mts +7 -8
  88. package/dist/cli/shared/prompt.d.mts +7 -8
  89. package/dist/cli/shared/readonly-guard.d.mts +2 -3
  90. package/dist/cli/shared/script-executor.d.mts +7 -8
  91. package/dist/cli/shared/seed-chunker.d.mts +5 -6
  92. package/dist/cli/shared/seed-context.d.mts +5 -5
  93. package/dist/cli/shared/tailordb-namespaces.d.mts +5 -6
  94. package/dist/cli/shared/type-generator.d.mts +2 -3
  95. package/dist/cli/shared/workspace-name.d.mts +2 -3
  96. package/dist/completion/zsh-worker.zsh +1 -1
  97. package/dist/configure/config/index.d.mts +3 -4
  98. package/dist/configure/config/types.d.mts +14 -15
  99. package/dist/configure/index.d.mts +6 -6
  100. package/dist/configure/services/aigateway/index.d.mts +2 -2
  101. package/dist/configure/services/aigateway/types.d.mts +4 -5
  102. package/dist/configure/services/auth/index.d.mts +3 -3
  103. package/dist/configure/services/auth/types.d.mts +24 -25
  104. package/dist/configure/services/executor/executor.d.mts +3 -4
  105. package/dist/configure/services/executor/operation.d.mts +6 -7
  106. package/dist/configure/services/executor/trigger/event.d.mts +56 -57
  107. package/dist/configure/services/executor/trigger/index.d.mts +2 -2
  108. package/dist/configure/services/executor/trigger/schedule.d.mts +4 -5
  109. package/dist/configure/services/executor/trigger/webhook.d.mts +8 -9
  110. package/dist/configure/services/http-adapter/http-adapter.d.mts +12 -13
  111. package/dist/configure/services/idp/index.d.mts +2 -2
  112. package/dist/configure/services/idp/permission.d.mts +4 -5
  113. package/dist/configure/services/idp/types.d.mts +5 -6
  114. package/dist/configure/services/resolver/permission.d.mts +4 -5
  115. package/dist/configure/services/resolver/resolver.d.mts +3 -4
  116. package/dist/configure/services/resolver/types.d.mts +2 -3
  117. package/dist/configure/services/secrets/index.d.mts +3 -3
  118. package/dist/configure/services/secrets/types.d.mts +3 -4
  119. package/dist/configure/services/staticwebsite/index.d.mts +2 -2
  120. package/dist/configure/services/staticwebsite/types.d.mts +3 -4
  121. package/dist/configure/services/tailordb/permission.d.mts +6 -7
  122. package/dist/configure/services/tailordb/schema.d.mts +7 -8
  123. package/dist/configure/services/tailordb/types.d.mts +25 -26
  124. package/dist/configure/services/workflow/execution-policy.d.mts +3 -3
  125. package/dist/configure/services/workflow/execution-policy.types.d.mts +8 -9
  126. package/dist/configure/services/workflow/job.d.mts +4 -5
  127. package/dist/configure/services/workflow/wait-point.d.mts +5 -6
  128. package/dist/configure/services/workflow/workflow.d.mts +4 -4
  129. package/dist/configure/types/aigateway-name.d.mts +3 -4
  130. package/dist/configure/types/auth-namespace-name.d.mts +3 -4
  131. package/dist/configure/types/connection-name.d.mts +3 -4
  132. package/dist/configure/types/field.d.mts +3 -4
  133. package/dist/configure/types/field.types.d.mts +13 -14
  134. package/dist/configure/types/idp-name.d.mts +3 -4
  135. package/dist/configure/types/permission-operand.types.d.mts +7 -8
  136. package/dist/configure/types/type.d.mts +3 -4
  137. package/dist/kysely/index.d.mts +18 -18
  138. package/dist/parser/service/idp/types.d.mts +2 -3
  139. package/dist/parser/service/tailordb/type-source.d.mts +2 -3
  140. package/dist/parser/service/tailordb/types.d.mts +13 -14
  141. package/dist/plugin/builtin/enum-constants/index.d.mts +3 -4
  142. package/dist/plugin/builtin/file-utils/index.d.mts +3 -4
  143. package/dist/plugin/builtin/kysely-type/index.d.mts +4 -5
  144. package/dist/plugin/builtin/seed/index.d.mts +4 -5
  145. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +2 -3
  146. package/dist/plugin/get-generated-table.d.mts +2 -3
  147. package/dist/plugin/index.mjs +1 -1
  148. package/dist/plugin/index.mjs.map +1 -1
  149. package/dist/plugin/types.d.mts +29 -29
  150. package/dist/plugin/with-context.d.mts +9 -10
  151. package/dist/{register-ts-hook-DS1zYiCV.mjs → register-ts-hook-Cphn4r8s.mjs} +44 -44
  152. package/dist/register-ts-hook-Cphn4r8s.mjs.map +1 -0
  153. package/dist/runtime/aigateway.d.mts +4 -5
  154. package/dist/runtime/authconnection.d.mts +3 -4
  155. package/dist/runtime/context.d.mts +6 -7
  156. package/dist/runtime/date.d.mts +2 -3
  157. package/dist/runtime/field-parse.d.mts +2 -3
  158. package/dist/runtime/file.d.mts +14 -15
  159. package/dist/runtime/globals.d.mts +2 -1
  160. package/dist/runtime/iconv.d.mts +5 -6
  161. package/dist/runtime/idp.d.mts +14 -15
  162. package/dist/runtime/index.d.mts +7 -7
  163. package/dist/runtime/logger.d.mts +10 -11
  164. package/dist/runtime/secretmanager.d.mts +3 -4
  165. package/dist/runtime/types.d.mts +7 -8
  166. package/dist/runtime/workflow.d.mts +7 -8
  167. package/dist/seed/index.d.mts +3 -3
  168. package/dist/{service_pb-CxHztLk1.mjs → service_pb-BdzjiHfC.mjs} +2 -2
  169. package/dist/{service_pb-CxHztLk1.mjs.map → service_pb-BdzjiHfC.mjs.map} +1 -1
  170. package/dist/service_pb-p68oLtp9.mjs +1 -0
  171. package/dist/shared/src/color.d.mts +2 -3
  172. package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +21 -22
  173. package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +2 -3
  174. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +35 -36
  175. package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +6 -7
  176. package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +229 -230
  177. package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +40 -41
  178. package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +9 -10
  179. package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +3 -4
  180. package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +45 -46
  181. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +24 -25
  182. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +17 -18
  183. package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +29 -30
  184. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +8 -9
  185. package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +2 -3
  186. package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +37 -38
  187. package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +18 -15
  188. package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +19 -20
  189. package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +2 -3
  190. package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +25 -26
  191. package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +59 -60
  192. package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +10 -11
  193. package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +7 -8
  194. package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +37 -38
  195. package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +4 -5
  196. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +6 -7
  197. package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +21 -22
  198. package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +3 -4
  199. package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +50 -51
  200. package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +4 -5
  201. package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +74 -75
  202. package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +35 -36
  203. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +41 -42
  204. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +11 -12
  205. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +97 -98
  206. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +11 -12
  207. package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +209 -210
  208. package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +24 -25
  209. package/dist/types/aigateway.generated.d.mts +3 -4
  210. package/dist/types/app-config.generated.d.mts +2 -3
  211. package/dist/types/auth-connection.generated.d.mts +3 -4
  212. package/dist/types/auth.generated.d.mts +15 -16
  213. package/dist/types/executor.generated.d.mts +26 -27
  214. package/dist/types/helpers.d.mts +15 -13
  215. package/dist/types/http-adapter.generated.d.mts +2 -3
  216. package/dist/types/idp.generated.d.mts +7 -8
  217. package/dist/types/resolver.generated.d.mts +4 -5
  218. package/dist/types/secrets.generated.d.mts +3 -4
  219. package/dist/types/staticwebsite.generated.d.mts +3 -4
  220. package/dist/types/tailordb.generated.d.mts +7 -8
  221. package/dist/types/workflow.generated.d.mts +3 -4
  222. package/dist/utils/test/index.d.mts +3 -4
  223. package/dist/vitest/index.d.mts +2 -2
  224. package/dist/vitest/mock-kysely.d.mts +4 -5
  225. package/dist/vitest/mocks/aigateway.d.mts +3 -4
  226. package/dist/vitest/mocks/authconnection.d.mts +3 -4
  227. package/dist/vitest/mocks/file.d.mts +3 -4
  228. package/dist/vitest/mocks/iconv.d.mts +3 -4
  229. package/dist/vitest/mocks/idp.d.mts +3 -4
  230. package/dist/vitest/mocks/logger.d.mts +3 -4
  231. package/dist/vitest/mocks/secretmanager.d.mts +3 -4
  232. package/dist/vitest/mocks/tailordb-pglite.d.mts +4 -5
  233. package/dist/vitest/mocks/tailordb.d.mts +6 -7
  234. package/dist/vitest/mocks/workflow.d.mts +2 -3
  235. package/dist/vitest/pglite-kysely.d.mts +5 -6
  236. package/dist/vitest/setup.d.mts +6 -7
  237. package/dist/vitest/workflow-local.d.mts +5 -6
  238. package/dist/{workspace_resource_pb-u9bj6p3i.mjs → workspace_resource_pb-C4EY-Gns.mjs} +2 -2
  239. package/dist/{workspace_resource_pb-u9bj6p3i.mjs.map → workspace_resource_pb-C4EY-Gns.mjs.map} +1 -1
  240. package/docs/services/idp.md +6 -3
  241. package/package.json +12 -12
  242. package/dist/application-CiN_er9X.mjs.map +0 -1
  243. package/dist/application-_8rjQRx8.mjs +0 -1
  244. package/dist/register-ts-hook-DS1zYiCV.mjs.map +0 -1
  245. package/dist/service_pb-CFVlGYdr.mjs +0 -1
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * GraphQL operation type
4
4
  */
5
- type QueryType = "query" | "mutation";
6
- type Resolver = {
5
+ export type QueryType = "query" | "mutation";
6
+ export type Resolver = {
7
7
  /** GraphQL operation type (query or mutation) */
8
8
  operation: QueryType;
9
9
  /** Resolver name */
@@ -79,6 +79,5 @@ type Resolver = {
79
79
  description?: string | undefined;
80
80
  }[] | undefined;
81
81
  };
82
- type ResolverInput = Resolver;
83
- //#endregion
84
- export { QueryType, Resolver, ResolverInput };
82
+ export type ResolverInput = Resolver;
83
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/types/secrets.generated.d.ts
2
- type Secrets = {
2
+ export type Secrets = {
3
3
  vaults: {
4
4
  [x: string]: {
5
5
  [x: string]: string | null | undefined;
@@ -9,6 +9,5 @@ type Secrets = {
9
9
  ignoreNullishValues: boolean;
10
10
  };
11
11
  };
12
- type SecretsInput = Secrets;
13
- //#endregion
14
- export { Secrets, SecretsInput };
12
+ export type SecretsInput = Secrets;
13
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/types/staticwebsite.generated.d.ts
2
- type StaticWebsite = {
2
+ export type StaticWebsite = {
3
3
  /** Static website name */
4
4
  name: string;
5
5
  /** Static website description */
@@ -9,6 +9,5 @@ type StaticWebsite = {
9
9
  /** Custom domains for the static website */
10
10
  customDomains?: string[] | undefined;
11
11
  };
12
- type StaticWebsiteInput = StaticWebsite;
13
- //#endregion
14
- export { StaticWebsite, StaticWebsiteInput };
12
+ export type StaticWebsiteInput = StaticWebsite;
13
+ //#endregion
@@ -3,13 +3,13 @@
3
3
  * Configuration for GraphQL operations on a TailorDB table.
4
4
  * All operations are enabled by default (undefined or true = enabled, false = disabled).
5
5
  */
6
- type GqlOperationsInput = "query" | {
6
+ export type GqlOperationsInput = "query" | {
7
7
  create?: boolean | undefined;
8
8
  update?: boolean | undefined;
9
9
  delete?: boolean | undefined;
10
10
  read?: boolean | undefined;
11
11
  };
12
- type GqlOperations = {
12
+ export type GqlOperations = {
13
13
  /** Enable create mutation (default: true) */
14
14
  create?: boolean | undefined;
15
15
  /** Enable update mutation (default: true) */
@@ -19,7 +19,7 @@ type GqlOperations = {
19
19
  /** Enable read queries - get, list, aggregation (default: true) */
20
20
  read?: boolean | undefined;
21
21
  };
22
- type DBFieldMetadata = {
22
+ export type DBFieldMetadata = {
23
23
  /** Whether the field is required */
24
24
  required?: boolean | undefined;
25
25
  /** Whether the field is an array */
@@ -68,7 +68,7 @@ type DBFieldMetadata = {
68
68
  /** Default value for the field on create */
69
69
  default?: unknown;
70
70
  };
71
- type TailorDBTypeParsedSettings = {
71
+ export type TailorDBTypeParsedSettings = {
72
72
  /** Custom plural form of the table name for GraphQL */
73
73
  pluralForm?: string | undefined;
74
74
  /** Enable aggregation queries for this table */
@@ -86,7 +86,7 @@ type TailorDBTypeParsedSettings = {
86
86
  */
87
87
  publishEvents?: boolean | undefined;
88
88
  };
89
- type RawPermissions = {
89
+ export type RawPermissions = {
90
90
  record?: {
91
91
  create: readonly (readonly [(string | boolean | string[] | boolean[] | {
92
92
  user: string;
@@ -440,7 +440,7 @@ type RawPermissions = {
440
440
  description?: string | undefined;
441
441
  }[] | undefined;
442
442
  };
443
- type TailorDBServiceConfigInput = {
443
+ export type TailorDBServiceConfigInput = {
444
444
  /** Glob patterns for TailorDB table definition files */
445
445
  files: string[];
446
446
  /** Glob patterns to exclude from table discovery */
@@ -464,5 +464,4 @@ type TailorDBServiceConfigInput = {
464
464
  read?: boolean | undefined;
465
465
  } | undefined;
466
466
  };
467
- //#endregion
468
- export { DBFieldMetadata, GqlOperations, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
467
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/types/workflow.generated.d.ts
2
- type RetryPolicy = {
2
+ export type RetryPolicy = {
3
3
  /** Maximum number of retries (1-10) */
4
4
  maxRetries: number;
5
5
  /** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
@@ -9,9 +9,8 @@ type RetryPolicy = {
9
9
  /** Backoff multiplier (>= 1) */
10
10
  backoffMultiplier: number;
11
11
  };
12
- type ConcurrencyPolicy = {
12
+ export type ConcurrencyPolicy = {
13
13
  /** Maximum number of concurrent executions (1-1000) */
14
14
  maxConcurrentExecutions: number;
15
15
  };
16
- //#endregion
17
- export { ConcurrencyPolicy, RetryPolicy };
16
+ //#endregion
@@ -15,7 +15,7 @@ import { StandardSchemaV1 } from "@standard-schema/spec";
15
15
  * @param type - TailorDB table definition
16
16
  * @returns A function that transforms input data according to field hooks
17
17
  */
18
- declare function createTailorDBHook<T extends TailorDBType<any, any>>(type: T): (data: unknown, now?: Date) => Partial<output<T>>;
18
+ export declare function createTailorDBHook<T extends TailorDBType<any, any>>(type: T): (data: unknown, now?: Date) => Partial<output<T>>;
19
19
  /**
20
20
  * Creates the standard schema definition used to validate seed rows.
21
21
  * Runs the hook, then the table's own `validate`, and the field schema only when
@@ -27,7 +27,7 @@ declare function createTailorDBHook<T extends TailorDBType<any, any>>(type: T):
27
27
  * @param type - TailorDB table definition, when it carries a table-level `validate`
28
28
  * @returns Schema object with ~standard section for defineSchema
29
29
  */
30
- declare function createStandardSchema<T = Record<string, unknown>>(schemaType: TailorField<any, T>, hook: (data: unknown) => Partial<T>, type?: TailorDBType<any, any>): {
30
+ export declare function createStandardSchema<T = Record<string, unknown>>(schemaType: TailorField<any, T>, hook: (data: unknown) => Partial<T>, type?: TailorDBType<any, any>): {
31
31
  readonly "~standard": {
32
32
  readonly version: 1;
33
33
  readonly vendor: "@tailor-platform/sdk";
@@ -36,5 +36,4 @@ declare function createStandardSchema<T = Record<string, unknown>>(schemaType: T
36
36
  };
37
37
  };
38
38
  };
39
- //#endregion
40
- export { createStandardSchema, createTailorDBHook };
39
+ //#endregion
@@ -69,8 +69,8 @@ import { Plugin } from "vitest/config";
69
69
  * @param options.config - Path to tailor.config.ts to load SecretManager values into mock
70
70
  * @returns Array of Vite plugins
71
71
  */
72
- declare function tailorRuntime(options?: {
72
+ export declare function tailorRuntime(options?: {
73
73
  config?: string;
74
74
  }): Plugin[];
75
75
  //#endregion
76
- export { type ExecutedPGliteQuery, type ExecutedQuery, type KyselyMock, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockLoggerOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type MockTailordbPGliteOptions, type PGliteClient, type PGliteQueryResult, type QueryBehavior, type QueryMatch, type QueryMatcher, type RunWorkflowLocallyOptions, type Unmigrated, createKyselyMock, createKyselyPGlite, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockLogger, mockSecretmanager, mockTailordb, mockTailordbWithPGlite, mockWorkflow, runWorkflowLocally, tailorRuntime };
76
+ export { type ExecutedPGliteQuery, type ExecutedQuery, type KyselyMock, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockLoggerOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type MockTailordbPGliteOptions, type PGliteClient, type PGliteQueryResult, type QueryBehavior, type QueryMatch, type QueryMatcher, type RunWorkflowLocallyOptions, type Unmigrated, createKyselyMock, createKyselyPGlite, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockLogger, mockSecretmanager, mockTailordb, mockTailordbWithPGlite, mockWorkflow, runWorkflowLocally };
@@ -1,7 +1,7 @@
1
1
  import { Kysely, OperationNode, OperationNodeKind, Transaction } from "kysely";
2
2
  //#region src/vitest/mock-kysely.d.ts
3
3
  /** A single statement executed against the mock, captured in order. */
4
- interface ExecutedQuery {
4
+ export interface ExecutedQuery {
5
5
  /** The Kysely operation node kind, e.g. `"SelectQueryNode"`. */
6
6
  kind: OperationNodeKind;
7
7
  /** The compiled SQL string. */
@@ -24,7 +24,7 @@ type MockResult = MockRow[] | {
24
24
  };
25
25
  type QueryResolver = (query: ExecutedQuery) => MockResult | undefined;
26
26
  /** Controls and assertions for a {@link createKyselyMock} instance. */
27
- interface KyselyMock<DB> {
27
+ export interface KyselyMock<DB> {
28
28
  /** The mock Kysely instance to run queries against. */
29
29
  db: Kysely<DB>;
30
30
  /** Every recorded query, in execution order. */
@@ -56,6 +56,5 @@ interface KyselyMock<DB> {
56
56
  * `createKyselyMock<Namespace["main-db"]>()`.
57
57
  * @returns A {@link KyselyMock} with the mock `db`, recorded queries, and result staging.
58
58
  */
59
- declare function createKyselyMock<DB = Record<string, never>>(): KyselyMock<DB>;
60
- //#endregion
61
- export { ExecutedQuery, KyselyMock, createKyselyMock };
59
+ export declare function createKyselyMock<DB = Record<string, never>>(): KyselyMock<DB>;
60
+ //#endregion
@@ -4,7 +4,7 @@ interface AigatewayCall {
4
4
  name: AIGatewayName;
5
5
  }
6
6
  /** Initial fixtures for an AI Gateway mock. */
7
- interface MockAigatewayOptions {
7
+ export interface MockAigatewayOptions {
8
8
  /** AI Gateway URLs available when the mock is acquired. */
9
9
  urls?: Partial<Record<AIGatewayName, string>>;
10
10
  }
@@ -25,7 +25,7 @@ interface MockAigatewayOptions {
25
25
  * });
26
26
  * ```
27
27
  */
28
- declare function mockAigateway(options?: MockAigatewayOptions): {
28
+ export declare function mockAigateway(options?: MockAigatewayOptions): {
29
29
  /** The `get` `vi.fn`. */
30
30
  get: import("vitest").Mock<(name: AIGatewayName) => Promise<{
31
31
  url: string;
@@ -36,5 +36,4 @@ declare function mockAigateway(options?: MockAigatewayOptions): {
36
36
  clear(): void;
37
37
  reset(): void;
38
38
  } & Disposable;
39
- //#endregion
40
- export { MockAigatewayOptions, mockAigateway };
39
+ //#endregion
@@ -4,7 +4,7 @@ interface AuthConnectionCall {
4
4
  connectionName: ConnectionName;
5
5
  }
6
6
  /** Initial fixtures and fallback behavior for an AuthConnection mock. */
7
- interface MockAuthconnectionOptions {
7
+ export interface MockAuthconnectionOptions {
8
8
  /** Tokens available when the mock is acquired. */
9
9
  tokens?: Partial<Record<ConnectionName, AuthConnectionTokenResult>>;
10
10
  /** Return a placeholder token or throw when a connection has no configured token. */
@@ -25,7 +25,7 @@ interface MockAuthconnectionOptions {
25
25
  * });
26
26
  * ```
27
27
  */
28
- declare function mockAuthconnection(options?: MockAuthconnectionOptions): {
28
+ export declare function mockAuthconnection(options?: MockAuthconnectionOptions): {
29
29
  /** The `getConnectionToken` `vi.fn`. */
30
30
  getConnectionToken: import("vitest").Mock<(connectionName: ConnectionName) => Promise<AuthConnectionTokenResult>>;
31
31
  setTokens(value: Partial<Record<ConnectionName, AuthConnectionTokenResult>>): void;
@@ -34,5 +34,4 @@ declare function mockAuthconnection(options?: MockAuthconnectionOptions): {
34
34
  clear(): void;
35
35
  reset(): void;
36
36
  } & Disposable;
37
- //#endregion
38
- export { MockAuthconnectionOptions, mockAuthconnection };
37
+ //#endregion
@@ -10,7 +10,7 @@ interface FileCall {
10
10
  recordId: string;
11
11
  }
12
12
  /** Controls fallback behavior for File calls without a configured result. */
13
- interface MockFileOptions {
13
+ export interface MockFileOptions {
14
14
  /** Return a type-compatible fixture or throw when no behavior is configured. */
15
15
  onUnhandled?: "fallback" | "error";
16
16
  }
@@ -29,7 +29,7 @@ interface MockFileOptions {
29
29
  * });
30
30
  * ```
31
31
  */
32
- declare function mockFile(options?: MockFileOptions): {
32
+ export declare function mockFile(options?: MockFileOptions): {
33
33
  setResolver(value: FileResolver): void;
34
34
  /**
35
35
  * Enqueue a single result for the next `tailordb.file` call.
@@ -54,5 +54,4 @@ declare function mockFile(options?: MockFileOptions): {
54
54
  downloadStream: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string) => Promise<FileDownloadStreamResponse>>;
55
55
  uploadStream: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions) => Promise<FileUploadResponse>>;
56
56
  } & Disposable;
57
- //#endregion
58
- export { MockFileOptions, mockFile };
57
+ //#endregion
@@ -12,7 +12,7 @@ type ConvertBufferMockProcedure = (input: Uint8Array | ArrayBuffer, fromEncoding
12
12
  type EncodeMockProcedure = (input: string, encoding: string) => ConversionResult;
13
13
  type TypedOperationMock<RuntimeProcedure, MockProcedure extends (...args: never[]) => unknown> = RuntimeProcedure & MockInstance<MockProcedure>;
14
14
  /** Controls how unconfigured Iconv operations are handled. */
15
- interface MockIconvOptions {
15
+ export interface MockIconvOptions {
16
16
  /** Return an empty type-compatible value or throw when no behavior is configured. */
17
17
  onUnhandled?: "fallback" | "error";
18
18
  }
@@ -31,7 +31,7 @@ interface MockIconvOptions {
31
31
  * });
32
32
  * ```
33
33
  */
34
- declare function mockIconv(options?: MockIconvOptions): {
34
+ export declare function mockIconv(options?: MockIconvOptions): {
35
35
  /** The `convert` `vi.fn`. */
36
36
  convert: TypedOperationMock<(<T extends string>(str: string | Uint8Array | ArrayBuffer, fromEncoding: string, toEncoding: T) => T extends "UTF8" | "UTF-8" ? string : Uint8Array), ConvertMockProcedure>;
37
37
  /** The `convertBuffer` `vi.fn`. */
@@ -47,5 +47,4 @@ declare function mockIconv(options?: MockIconvOptions): {
47
47
  clear: () => void;
48
48
  reset(): void;
49
49
  } & Disposable;
50
- //#endregion
51
- export { MockIconvOptions, mockIconv };
50
+ //#endregion
@@ -9,7 +9,7 @@ interface IdpCall {
9
9
  namespace: string;
10
10
  }
11
11
  /** Controls fallback behavior for IdP calls without a configured result. */
12
- interface MockIdpOptions {
12
+ export interface MockIdpOptions {
13
13
  /** Return a type-compatible fixture or throw when no behavior is configured. */
14
14
  onUnhandled?: "fallback" | "error";
15
15
  }
@@ -35,7 +35,7 @@ type IdpNamespaceMocks = { [Method in IdpMethod]: Mock<IdpClientInstance[Method]
35
35
  * });
36
36
  * ```
37
37
  */
38
- declare function mockIdp(options?: MockIdpOptions): {
38
+ export declare function mockIdp(options?: MockIdpOptions): {
39
39
  /** The mock IDP `Client` constructor (`vi.fn`). */
40
40
  Client: Mock<IdpClientConstructor>;
41
41
  namespace: (name: string) => IdpNamespaceMocks;
@@ -56,5 +56,4 @@ declare function mockIdp(options?: MockIdpOptions): {
56
56
  clear(): void;
57
57
  reset(): void;
58
58
  } & Disposable;
59
- //#endregion
60
- export { MockIdpOptions, mockIdp };
59
+ //#endregion
@@ -8,7 +8,7 @@ interface LogCall {
8
8
  attributes?: LogAttributes;
9
9
  }
10
10
  /** Initial fixtures for a logger mock. */
11
- interface MockLoggerOptions {}
11
+ export interface MockLoggerOptions {}
12
12
  /**
13
13
  * Acquire a disposable mock for `tailor.logger`. Each method is a `vi.fn`, so
14
14
  * calls can be asserted directly; `calls` returns the `debug`/`info`/`warn`/
@@ -26,7 +26,7 @@ interface MockLoggerOptions {}
26
26
  * });
27
27
  * ```
28
28
  */
29
- declare function mockLogger(_options?: MockLoggerOptions): {
29
+ export declare function mockLogger(_options?: MockLoggerOptions): {
30
30
  /** The `debug` `vi.fn`. */
31
31
  debug: import("vitest").Mock<(_message: string, _attributes?: LogAttributes) => void>;
32
32
  /** The `info` `vi.fn`. */
@@ -41,5 +41,4 @@ declare function mockLogger(_options?: MockLoggerOptions): {
41
41
  clear(): void;
42
42
  reset(): void;
43
43
  } & Disposable;
44
- //#endregion
45
- export { MockLoggerOptions, mockLogger };
44
+ //#endregion
@@ -6,7 +6,7 @@ interface SecretCall {
6
6
  names?: readonly string[];
7
7
  }
8
8
  /** Initial fixtures for a Secret Manager mock. */
9
- interface MockSecretmanagerOptions {
9
+ export interface MockSecretmanagerOptions {
10
10
  /** Secrets to merge over fixtures inherited from the currently installed mock. */
11
11
  secrets?: Record<string, Record<string, string>>;
12
12
  }
@@ -28,7 +28,7 @@ interface MockSecretmanagerOptions {
28
28
  * });
29
29
  * ```
30
30
  */
31
- declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
31
+ export declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
32
32
  /** The `getSecret` `vi.fn`. */
33
33
  getSecret: import("vitest").Mock<(vault: string, name: string) => Promise<string | undefined>>;
34
34
  /** The `getSecrets` `vi.fn`. */
@@ -40,5 +40,4 @@ declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
40
40
  clear(): void;
41
41
  reset(): void;
42
42
  } & Disposable;
43
- //#endregion
44
- export { MockSecretmanagerOptions, mockSecretmanager };
43
+ //#endregion
@@ -1,7 +1,7 @@
1
1
  import { PGliteClient } from "../pglite-kysely.mjs";
2
2
  //#region src/vitest/mocks/tailordb-pglite.d.ts
3
3
  /** A query executed through the PGlite-backed TailorDB client. */
4
- interface ExecutedPGliteQuery {
4
+ export interface ExecutedPGliteQuery {
5
5
  /** Namespace of the `getDB` call that issued the query. */
6
6
  namespace: string;
7
7
  /** SQL text with positional (`$1`, `$2`, ...) placeholders. */
@@ -10,7 +10,7 @@ interface ExecutedPGliteQuery {
10
10
  params: unknown[];
11
11
  }
12
12
  /** Options for {@link mockTailordbWithPGlite}. */
13
- interface MockTailordbPGliteOptions {
13
+ export interface MockTailordbPGliteOptions {
14
14
  /**
15
15
  * PGlite instance per `getDB` namespace. A `getDB` call for a namespace
16
16
  * missing here throws instead of falling back to another instance. Pass the
@@ -57,7 +57,7 @@ interface CreatedClient {
57
57
  * });
58
58
  * ```
59
59
  */
60
- declare function mockTailordbWithPGlite(options: MockTailordbPGliteOptions): {
60
+ export declare function mockTailordbWithPGlite(options: MockTailordbPGliteOptions): {
61
61
  /** The mock `tailordb.Client` constructor (`vi.fn`). */
62
62
  Client: import("vitest").Mock<(this: any, config?: {
63
63
  namespace?: string;
@@ -84,5 +84,4 @@ declare function mockTailordbWithPGlite(options: MockTailordbPGliteOptions): {
84
84
  */
85
85
  reset(): void;
86
86
  } & Disposable;
87
- //#endregion
88
- export { ExecutedPGliteQuery, MockTailordbPGliteOptions, mockTailordbWithPGlite };
87
+ //#endregion
@@ -1,21 +1,21 @@
1
1
  //#region src/vitest/mocks/tailordb.d.ts
2
2
  type QueryResolver = (query: string, params: unknown[]) => unknown[] | undefined;
3
3
  /** Controls how unmatched TailorDB queries are handled. */
4
- interface MockTailordbOptions {
4
+ export interface MockTailordbOptions {
5
5
  /** Return an empty result or throw when no configured query behavior matches. */
6
6
  onUnhandled?: "fallback" | "error";
7
7
  }
8
8
  /** Matches a TailorDB query by SQL text and optionally by parameters. */
9
- interface QueryMatch {
9
+ export interface QueryMatch {
10
10
  /** Exact SQL text or regular expression to match. */
11
11
  sql: string | RegExp;
12
12
  /** Exact parameters or a predicate for parameter matching. */
13
13
  params?: readonly unknown[] | ((params: unknown[]) => boolean);
14
14
  }
15
15
  /** Selects TailorDB queries that receive a configured response. */
16
- type QueryMatcher = string | RegExp | QueryMatch | ((query: string, params: unknown[]) => boolean);
16
+ export type QueryMatcher = string | RegExp | QueryMatch | ((query: string, params: unknown[]) => boolean);
17
17
  /** Configures persistent and one-time responses for matched queries. */
18
- interface QueryBehavior<Row> {
18
+ export interface QueryBehavior<Row> {
19
19
  /** Return these rows for every matching query after one-time responses are consumed. */
20
20
  returnsRows(rows: Row[]): QueryBehavior<Row>;
21
21
  /** Return these rows for the next matching query. */
@@ -59,7 +59,7 @@ declare class MockQueryResult {
59
59
  * });
60
60
  * ```
61
61
  */
62
- declare function mockTailordb(options?: MockTailordbOptions): {
62
+ export declare function mockTailordb(options?: MockTailordbOptions): {
63
63
  /** The mock `tailordb.Client` constructor (`vi.fn`). */
64
64
  Client: import("vitest").Mock<(this: any, config?: {
65
65
  namespace?: string;
@@ -111,5 +111,4 @@ declare function mockTailordb(options?: MockTailordbOptions): {
111
111
  /** Reset query responses and recorded calls (keeps the mock installed). */
112
112
  reset(): void;
113
113
  } & Disposable;
114
- //#endregion
115
- export { MockTailordbOptions, QueryBehavior, QueryMatch, QueryMatcher, mockTailordb };
114
+ //#endregion
@@ -37,7 +37,7 @@ type WaitPayload<Payload> = [Payload] extends [undefined] ? undefined : Payload;
37
37
  * });
38
38
  * ```
39
39
  */
40
- declare function mockWorkflow(): {
40
+ export declare function mockWorkflow(): {
41
41
  /** The `execJobFunction` `vi.fn`. */
42
42
  execJobFunction: Mock<(jobName: string, _args?: unknown, _options?: ExecJobFunctionOptions) => unknown>;
43
43
  /** The `startWorkflow` `vi.fn`. */
@@ -156,5 +156,4 @@ declare function mockWorkflow(): {
156
156
  /** Reset all workflow responses and recorded calls (keeps the mock installed). */
157
157
  reset(): void;
158
158
  } & Disposable;
159
- //#endregion
160
- export { mockWorkflow };
159
+ //#endregion
@@ -1,7 +1,7 @@
1
1
  import { ColumnType, Kysely } from "kysely";
2
2
  //#region src/vitest/pglite-kysely.d.ts
3
3
  /** Result of a {@link PGliteClient.query} call. */
4
- interface PGliteQueryResult {
4
+ export interface PGliteQueryResult {
5
5
  /** Rows returned by the statement. */
6
6
  rows: unknown[];
7
7
  /** Number of rows an INSERT/UPDATE/DELETE touched. */
@@ -16,7 +16,7 @@ interface PGliteQueryResult {
16
16
  * {@link createKyselyPGlite}. Any client with a compatible `query`/`close`
17
17
  * pair works.
18
18
  */
19
- interface PGliteClient {
19
+ export interface PGliteClient {
20
20
  /** Run a single SQL statement with positional (`$1`, `$2`, ...) parameters. */
21
21
  query(query: string, params?: unknown[]): Promise<PGliteQueryResult>;
22
22
  /** Release the underlying database. Called by `db.destroy()`. */
@@ -42,7 +42,7 @@ type UnmigratedColumn<C> = C extends ColumnType<infer S, infer I, infer U> ? Col
42
42
  * await db.transaction().execute((trx) => main(trx));
43
43
  * ```
44
44
  */
45
- type Unmigrated<DB> = { [T in keyof DB]: { [C in keyof DB[T]]: UnmigratedColumn<DB[T][C]>; }; };
45
+ export type Unmigrated<DB> = { [T in keyof DB]: { [C in keyof DB[T]]: UnmigratedColumn<DB[T][C]>; }; };
46
46
  /**
47
47
  * Create a Kysely instance backed by a PGlite in-memory Postgres, for
48
48
  * executing a migration script's queries against real data in tests.
@@ -68,6 +68,5 @@ type Unmigrated<DB> = { [T in keyof DB]: { [C in keyof DB[T]]: UnmigratedColumn<
68
68
  * await db.transaction().execute((trx) => main(trx));
69
69
  * ```
70
70
  */
71
- declare function createKyselyPGlite<DB = Record<string, never>>(client: PGliteClient): Kysely<DB>;
72
- //#endregion
73
- export { PGliteClient, PGliteQueryResult, Unmigrated, createKyselyPGlite };
71
+ export declare function createKyselyPGlite<DB = Record<string, never>>(client: PGliteClient): Kysely<DB>;
72
+ //#endregion
@@ -11,7 +11,7 @@ type SavedGlobals = Record<string, PropertyDescriptor | undefined>;
11
11
  * and restored only when the last test exits.
12
12
  * @returns Lifecycle hooks
13
13
  */
14
- declare function createBlockedGlobalsLifecycle(): {
14
+ export declare function createBlockedGlobalsLifecycle(): {
15
15
  enter: (globalObj: Record<string, unknown>, keys: readonly string[]) => void;
16
16
  exit: (globalObj: Record<string, unknown>) => void;
17
17
  readonly active: number;
@@ -26,7 +26,7 @@ declare function createBlockedGlobalsLifecycle(): {
26
26
  * @param secrets - Value from `appConfig.secrets` or `config.secrets`
27
27
  * @returns Vault store, or null if the value is unusable
28
28
  */
29
- declare function extractVaultStore(secrets: unknown): Record<string, Record<string, string>> | null;
29
+ export declare function extractVaultStore(secrets: unknown): Record<string, Record<string, string>> | null;
30
30
  /**
31
31
  * Load and parse secrets from a tailor.config.ts file.
32
32
  *
@@ -37,7 +37,7 @@ declare function extractVaultStore(secrets: unknown): Record<string, Record<stri
37
37
  * @param configPath - Absolute path to tailor.config.ts
38
38
  * @returns Vault store keyed by vault name, or null if unavailable
39
39
  */
40
- declare function loadSecretsFromConfig(configPath: string): Promise<Record<string, Record<string, string>> | null>;
40
+ export declare function loadSecretsFromConfig(configPath: string): Promise<Record<string, Record<string, string>> | null>;
41
41
  /**
42
42
  * Remove the given globals from `globalObj`, returning the descriptors that
43
43
  * were actually deleted so `restoreBlockedGlobals` can put them back.
@@ -50,13 +50,12 @@ declare function loadSecretsFromConfig(configPath: string): Promise<Record<strin
50
50
  * @param keys - Property names to remove
51
51
  * @returns Map of removed descriptors keyed by property name
52
52
  */
53
- declare function removeBlockedGlobals(globalObj: Record<string, unknown>, keys: readonly string[]): SavedGlobals;
53
+ export declare function removeBlockedGlobals(globalObj: Record<string, unknown>, keys: readonly string[]): SavedGlobals;
54
54
  /**
55
55
  * Restore previously-removed globals onto `globalObj` from a `SavedGlobals`
56
56
  * map produced by `removeBlockedGlobals`.
57
57
  * @param globalObj - Target object (typically `globalThis`)
58
58
  * @param saved - Descriptors to re-define
59
59
  */
60
- declare function restoreBlockedGlobals(globalObj: Record<string, unknown>, saved: SavedGlobals): void;
61
- //#endregion
62
- export { createBlockedGlobalsLifecycle, extractVaultStore, loadSecretsFromConfig, removeBlockedGlobals, restoreBlockedGlobals };
60
+ export declare function restoreBlockedGlobals(globalObj: Record<string, unknown>, saved: SavedGlobals): void;
61
+ //#endregion
@@ -7,7 +7,7 @@ type AnyWorkflowJob = WorkflowJob<string, any, any>;
7
7
  type AnyWorkflow = Workflow<AnyWorkflowJob>;
8
8
  type WorkflowInput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, infer I, any> ? I : never;
9
9
  type WorkflowOutput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, any, infer O> ? Awaited<O> : never;
10
- interface RunWorkflowLocallyOptions {
10
+ export interface RunWorkflowLocallyOptions {
11
11
  /** Env passed to workflow job bodies during this local run. */
12
12
  env?: TailorEnv;
13
13
  }
@@ -20,7 +20,7 @@ interface RunWorkflowLocallyOptions {
20
20
  * @param workflow - Workflow definition to run
21
21
  * @returns The main job output
22
22
  */
23
- declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undefined, any>>>(workflow: W): Promise<WorkflowOutput<W>>;
23
+ export declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undefined, any>>>(workflow: W): Promise<WorkflowOutput<W>>;
24
24
  /**
25
25
  * Run a no-input workflow locally with optional runner settings.
26
26
  * @param workflow - Workflow definition to run
@@ -28,7 +28,7 @@ declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undef
28
28
  * @param options - Local runner options
29
29
  * @returns The main job output
30
30
  */
31
- declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undefined, any>>>(workflow: W, args: undefined, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
31
+ export declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undefined, any>>>(workflow: W, args: undefined, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
32
32
  /**
33
33
  * Run a workflow locally with real job bodies.
34
34
  * @param workflow - Workflow definition to run
@@ -36,6 +36,5 @@ declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string, undef
36
36
  * @param options - Local runner options
37
37
  * @returns The main job output
38
38
  */
39
- declare function runWorkflowLocally<W extends AnyWorkflow>(workflow: W, args: WorkflowInput<W>, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
40
- //#endregion
41
- export { RunWorkflowLocallyOptions, runWorkflowLocally };
39
+ export declare function runWorkflowLocally<W extends AnyWorkflow>(workflow: W, args: WorkflowInput<W>, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
40
+ //#endregion