@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
@@ -1,6 +1,6 @@
1
1
  import { DateFieldOptions, DateFieldValue, FieldMetadata, FieldOptions, FieldOutput, TailorFieldType } from "./types/field.types.mjs";
2
2
  import { AttributeList, Attributes, Env, TailorPrincipal } from "../runtime/types.mjs";
3
- import { DeepWritable, NullableToOptional, output as output$1 } from "../types/helpers.mjs";
3
+ import { DeepWritable, NullableToOptional, helpers_d_exports, output as output$1 } from "../types/helpers.mjs";
4
4
  import { IsAutoFilledDBField, IsReadOnlyDBField, PluginAttachment } from "./services/tailordb/types.mjs";
5
5
  import { AuthConnectionConfig, AuthConnectionOAuth2Config } from "../types/auth-connection.generated.mjs";
6
6
  import { BuiltinIdP, IDToken, IdProvider, OAuth2ClientInput, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider } from "../types/auth.generated.mjs";
@@ -49,10 +49,10 @@ import "./services/index.mjs";
49
49
  import { defineConfig, definePlugins } from "./config/index.mjs";
50
50
  //#region src/configure/index.d.ts
51
51
  type TailorOutput<T> = output$1<T>;
52
- type infer<T> = TailorOutput<T>;
53
- type output<T> = TailorOutput<T>;
52
+ export type infer<T> = TailorOutput<T>;
53
+ export type output<T> = TailorOutput<T>;
54
54
  /** TailorDB field type builders. */
55
- declare const t: {
55
+ export declare const t: {
56
56
  uuid: <const Opt extends FieldOptions>(options?: Opt) => import("@tailor-platform/sdk").TailorField<{
57
57
  type: "uuid";
58
58
  array: Opt extends {
@@ -164,9 +164,9 @@ declare const t: {
164
164
  };
165
165
  } ? K_3 : never; }[keyof F] & keyof F]?: output$1<F[K_4]> | undefined; } extends (infer T) ? { [K in keyof T as string extends K ? never : K]: T[K]; } : never, Opt>, FieldMetadata, TailorFieldType>;
166
166
  };
167
- declare namespace t {
167
+ export declare namespace t {
168
168
  type output<T> = TailorOutput<T>;
169
169
  type infer<T> = TailorOutput<T>;
170
170
  }
171
171
  //#endregion
172
- export { type AIGatewayConfig, type AIGatewayName, type AIGatewayNameRegistry, type AttributeList, type Attributes, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, type AuthNamespaceName, type AuthNamespaceNameRegistry, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type ConnectionName, type ConnectionNameRegistry, type DefinedAuth, type Env, type ExecutionPolicyConcurrency, type ExecutionPolicyDefInput, type ExecutionPolicyExactInstance, type ExecutionPolicyGroupOptions, type ExecutionPolicyInstance, type ExecutionPolicyWildcardInstance, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type IsAutoFilledDBField, type IsReadOnlyDBField, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, ParameterizedWaitPointInstance, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginFieldExtensions, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedTable, type PluginNamespaceProcessContext, type PluginOutput, type PluginTableProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type ResolvedExecutionPolicyInstance, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverPermission, type ResolverPermissionCondition, type ResolverPermissionPolicy, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretsConfig, type StaticWebsiteConfig, type TablePluginOutput, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, type TailorDBTableForPlugin, TailorDBTrigger, type TailorDBType, type TailorField, type TailorPrincipal, type TailorTypeGqlPermission, type TailorTypePermission, type TenantProvider as TenantProviderConfig, Trigger, type UserAttributeKey, type UserAttributeListKey, type UserAttributes, type UsernameFieldKey, type ValueOperand, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowExecutionArgs, WorkflowExecutionCompletedArgs, WorkflowExecutionResumedArgs, WorkflowExecutionRetriedArgs, WorkflowExecutionStartedArgs, WorkflowExecutionTrigger, WorkflowExecutionWaitResolvedArgs, WorkflowExecutionWaitStartedArgs, WorkflowJob, WorkflowJobContext, WorkflowJobExecutionArgs, WorkflowJobExecutionCompletedArgs, WorkflowJobExecutionStartedArgs, WorkflowJobExecutionTrigger, WorkflowJobExecutionWaitResolvedArgs, WorkflowJobExecutionWaitStartedArgs, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWaitPoint, createWaitPoints, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWorkflowExecutionPolicies, defineWorkflowExecutionPolicy, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission, workflowExecutionCompletedTrigger, workflowExecutionResumedTrigger, workflowExecutionRetriedTrigger, workflowExecutionStartedTrigger, workflowExecutionTrigger, workflowExecutionWaitResolvedTrigger, workflowExecutionWaitStartedTrigger, workflowJobExecutionCompletedTrigger, workflowJobExecutionStartedTrigger, workflowJobExecutionTrigger, workflowJobExecutionWaitResolvedTrigger, workflowJobExecutionWaitStartedTrigger };
172
+ export { type AIGatewayConfig, type AIGatewayName, type AIGatewayNameRegistry, type AttributeList, type Attributes, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, type AuthNamespaceName, type AuthNamespaceNameRegistry, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type ConnectionName, type ConnectionNameRegistry, type DefinedAuth, type Env, type ExecutionPolicyConcurrency, type ExecutionPolicyDefInput, type ExecutionPolicyExactInstance, type ExecutionPolicyGroupOptions, type ExecutionPolicyInstance, type ExecutionPolicyWildcardInstance, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type IsAutoFilledDBField, type IsReadOnlyDBField, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, ParameterizedWaitPointInstance, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginFieldExtensions, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedTable, type PluginNamespaceProcessContext, type PluginOutput, type PluginTableProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type ResolvedExecutionPolicyInstance, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverPermission, type ResolverPermissionCondition, type ResolverPermissionPolicy, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretsConfig, type StaticWebsiteConfig, type TablePluginOutput, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, type TailorDBTableForPlugin, TailorDBTrigger, type TailorDBType, type TailorField, type TailorPrincipal, type TailorTypeGqlPermission, type TailorTypePermission, type TenantProvider as TenantProviderConfig, Trigger, type UserAttributeKey, type UserAttributeListKey, type UserAttributes, type UsernameFieldKey, type ValueOperand, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowExecutionArgs, WorkflowExecutionCompletedArgs, WorkflowExecutionResumedArgs, WorkflowExecutionRetriedArgs, WorkflowExecutionStartedArgs, WorkflowExecutionTrigger, WorkflowExecutionWaitResolvedArgs, WorkflowExecutionWaitStartedArgs, WorkflowJob, WorkflowJobContext, WorkflowJobExecutionArgs, WorkflowJobExecutionCompletedArgs, WorkflowJobExecutionStartedArgs, WorkflowJobExecutionTrigger, WorkflowJobExecutionWaitResolvedArgs, WorkflowJobExecutionWaitStartedArgs, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWaitPoint, createWaitPoints, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWorkflowExecutionPolicies, defineWorkflowExecutionPolicy, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission, workflowExecutionCompletedTrigger, workflowExecutionResumedTrigger, workflowExecutionRetriedTrigger, workflowExecutionStartedTrigger, workflowExecutionTrigger, workflowExecutionWaitResolvedTrigger, workflowExecutionWaitStartedTrigger, workflowJobExecutionCompletedTrigger, workflowJobExecutionStartedTrigger, workflowJobExecutionTrigger, workflowJobExecutionWaitResolvedTrigger, workflowJobExecutionWaitStartedTrigger };
@@ -6,10 +6,10 @@ import { AIGatewayConfig, AIGatewayDefinitionBrand, AIGatewayServiceInput } from
6
6
  * @param config - AI Gateway configuration
7
7
  * @returns Defined AI Gateway
8
8
  */
9
- declare function defineAIGateway(name: string, config: Omit<AIGatewayServiceInput, "name">): {
9
+ export declare function defineAIGateway(name: string, config: Omit<AIGatewayServiceInput, "name">): {
10
10
  readonly name: string;
11
11
  readonly cors?: string[] | undefined;
12
12
  readonly authNamespace?: import("@tailor-platform/sdk").AuthNamespaceName;
13
13
  } & AIGatewayDefinitionBrand;
14
14
  //#endregion
15
- export { type AIGatewayConfig, defineAIGateway };
15
+ export type { AIGatewayConfig };
@@ -2,14 +2,13 @@ import { AuthNamespaceName } from "../../types/auth-namespace-name.mjs";
2
2
  import { AIGatewayInput } from "../../../types/aigateway.generated.mjs";
3
3
  //#region src/configure/services/aigateway/types.d.ts
4
4
  declare const aiGatewayDefinitionBrand: unique symbol;
5
- type AIGatewayDefinitionBrand = {
5
+ export type AIGatewayDefinitionBrand = {
6
6
  readonly [aiGatewayDefinitionBrand]: true;
7
7
  };
8
8
  /** AI Gateway configuration accepted by `defineAIGateway()`. */
9
- type AIGatewayServiceInput = Omit<AIGatewayInput, "authNamespace"> & {
9
+ export type AIGatewayServiceInput = Omit<AIGatewayInput, "authNamespace"> & {
10
10
  authNamespace?: AuthNamespaceName;
11
11
  };
12
12
  /** Type accepted by `AppConfig.aiGateways`. Only values returned by `defineAIGateway()` satisfy this. */
13
- type AIGatewayConfig = AIGatewayInput & AIGatewayDefinitionBrand;
14
- //#endregion
15
- export { AIGatewayConfig, AIGatewayDefinitionBrand, AIGatewayServiceInput };
13
+ export type AIGatewayConfig = AIGatewayInput & AIGatewayDefinitionBrand;
14
+ //#endregion
@@ -27,7 +27,7 @@ type MachineUserOnlyAuthInput<MachineUserNames extends string, MachineUserAttrib
27
27
  * @param config - Auth service configuration
28
28
  * @returns Defined auth service
29
29
  */
30
- declare function defineAuth<const Name extends string, const User extends TailorDBInstance, const Attributes extends UserAttributes<User>, const AttributeList extends UserAttributeListKey<User>[], const MachineUserNames extends string, const ConnectionNames extends string = string>(name: Name, config: UserProfileAuthInput<User, Attributes, AttributeList, MachineUserNames, ConnectionNames>): DefinedAuth<Name, UserProfileAuthInput<User, Attributes, AttributeList, MachineUserNames, ConnectionNames>>;
31
- declare function defineAuth<const Name extends string, const MachineUserAttributes extends MachineUserAttributeFields, const MachineUserNames extends string, const ConnectionNames extends string = string>(name: Name, config: MachineUserOnlyAuthInput<MachineUserNames, MachineUserAttributes, ConnectionNames>): DefinedAuth<Name, MachineUserOnlyAuthInput<MachineUserNames, MachineUserAttributes, ConnectionNames>>;
30
+ export declare function defineAuth<const Name extends string, const User extends TailorDBInstance, const Attributes extends UserAttributes<User>, const AttributeList extends UserAttributeListKey<User>[], const MachineUserNames extends string, const ConnectionNames extends string = string>(name: Name, config: UserProfileAuthInput<User, Attributes, AttributeList, MachineUserNames, ConnectionNames>): DefinedAuth<Name, UserProfileAuthInput<User, Attributes, AttributeList, MachineUserNames, ConnectionNames>>;
31
+ export declare function defineAuth<const Name extends string, const MachineUserAttributes extends MachineUserAttributeFields, const MachineUserNames extends string, const ConnectionNames extends string = string>(name: Name, config: MachineUserOnlyAuthInput<MachineUserNames, MachineUserAttributes, ConnectionNames>): DefinedAuth<Name, MachineUserOnlyAuthInput<MachineUserNames, MachineUserAttributes, ConnectionNames>>;
32
32
  //#endregion
33
- export { type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type DefinedAuth, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, type IDToken, type IdProvider as IdProviderConfig, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, type TenantProvider as TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributes, type UsernameFieldKey, type ValueOperand, defineAuth };
33
+ export type { AuthConfig, AuthConnectionConfig, AuthConnectionOAuth2Config, AuthConnectionTokenResult, AuthExternalConfig, AuthOwnConfig, AuthServiceInput, BeforeLoginClaims, BeforeLoginHookArgs, BuiltinIdP, DefinedAuth, FederatedIdentity, FederatedIdentityClaims, FederatedIdentityProvider, IDToken, IdProvider as IdProviderConfig, OAuth2ClientInput as OAuth2Client, OAuth2ClientGrantType, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider as TenantProviderConfig, UserAttributeKey, UserAttributeListKey, UserAttributes, UsernameFieldKey, ValueOperand };
@@ -6,9 +6,9 @@ import { AuthConnectionConfig } from "../../../types/auth-connection.generated.m
6
6
  import { IdProvider, OAuth2Client, OAuth2ClientInput, SCIMAttribute, SCIMConfig, TenantProvider } from "../../../types/auth.generated.mjs";
7
7
  import { IsAny, JsonObject, JsonValue } from "type-fest";
8
8
  //#region src/configure/services/auth/types.d.ts
9
- type OAuth2ClientGrantType = OAuth2Client["grantTypes"][number];
10
- type SCIMAttributeType = SCIMAttribute["type"];
11
- interface MachineUserNameRegistry {}
9
+ export type OAuth2ClientGrantType = OAuth2Client["grantTypes"][number];
10
+ export type SCIMAttributeType = SCIMAttribute["type"];
11
+ export interface MachineUserNameRegistry {}
12
12
  /**
13
13
  * Machine user name.
14
14
  *
@@ -16,13 +16,13 @@ interface MachineUserNameRegistry {}
16
16
  * to the union of defined machine user names. When no machine users are registered yet,
17
17
  * falls back to `string` to avoid blocking editing before the first generate run.
18
18
  */
19
- type MachineUserName = keyof MachineUserNameRegistry extends never ? string : keyof MachineUserNameRegistry & string;
19
+ export type MachineUserName = keyof MachineUserNameRegistry extends never ? string : keyof MachineUserNameRegistry & string;
20
20
  /** Result of retrieving a connection token at runtime. */
21
- type AuthConnectionTokenResult = {
21
+ export type AuthConnectionTokenResult = {
22
22
  access_token: string;
23
23
  };
24
- type ValueOperand = string | boolean | string[] | boolean[];
25
- type AuthAttributeValue = ValueOperand | null | undefined;
24
+ export type ValueOperand = string | boolean | string[] | boolean[];
25
+ export type AuthAttributeValue = ValueOperand | null | undefined;
26
26
  type UserFieldKeys<User extends TailorDBInstance> = keyof output<User> & string;
27
27
  type FieldDefined<User extends TailorDBInstance, Key extends UserFieldKeys<User>> = User["fields"][Key] extends {
28
28
  _defined: infer Defined;
@@ -39,10 +39,10 @@ type FieldIsUnique<User extends TailorDBInstance, Key extends UserFieldKeys<User
39
39
  unique: true;
40
40
  } ? true : false;
41
41
  type FieldSupportsValueOperand<User extends TailorDBInstance, Key extends UserFieldKeys<User>> = FieldOutput<User, Key> extends ValueOperand | null | undefined ? true : false;
42
- type UsernameFieldKey<User extends TailorDBInstance> = IsAny<User> extends true ? string : { [K in UserFieldKeys<User>]: FieldIsRequired<User, K> extends true ? FieldIsOfType<User, K, "string"> extends true ? FieldIsArray<User, K> extends true ? never : FieldIsUnique<User, K> extends true ? K : never : never : never; }[UserFieldKeys<User>];
43
- type UserAttributeKey<User extends TailorDBInstance> = { [K in UserFieldKeys<User>]: K extends "id" ? never : FieldSupportsValueOperand<User, K> extends true ? FieldIsOfType<User, K, "datetime" | "date" | "time"> extends true ? never : K : never; }[UserFieldKeys<User>];
44
- type UserAttributeListKey<User extends TailorDBInstance> = { [K in UserFieldKeys<User>]: K extends "id" ? never : FieldIsOfType<User, K, "uuid"> extends true ? FieldIsArray<User, K> extends true ? never : K : never; }[UserFieldKeys<User>];
45
- type UserAttributes<User extends TailorDBInstance> = { [K in UserAttributeKey<User>]?: true; };
42
+ export type UsernameFieldKey<User extends TailorDBInstance> = IsAny<User> extends true ? string : { [K in UserFieldKeys<User>]: FieldIsRequired<User, K> extends true ? FieldIsOfType<User, K, "string"> extends true ? FieldIsArray<User, K> extends true ? never : FieldIsUnique<User, K> extends true ? K : never : never : never; }[UserFieldKeys<User>];
43
+ export type UserAttributeKey<User extends TailorDBInstance> = { [K in UserFieldKeys<User>]: K extends "id" ? never : FieldSupportsValueOperand<User, K> extends true ? FieldIsOfType<User, K, "datetime" | "date" | "time"> extends true ? never : K : never; }[UserFieldKeys<User>];
44
+ export type UserAttributeListKey<User extends TailorDBInstance> = { [K in UserFieldKeys<User>]: K extends "id" ? never : FieldIsOfType<User, K, "uuid"> extends true ? FieldIsArray<User, K> extends true ? never : K : never; }[UserFieldKeys<User>];
45
+ export type UserAttributes<User extends TailorDBInstance> = { [K in UserAttributeKey<User>]?: true; };
46
46
  type DisallowExtraKeys<T, Allowed extends PropertyKey> = T & { [K in Exclude<keyof T, Allowed>]: never; };
47
47
  type AttributeListValue<User extends TailorDBInstance, Key extends UserAttributeListKey<User>> = Key extends keyof output<User> ? output<User>[Key] : never;
48
48
  type AttributeListToTuple<User extends TailorDBInstance, AttributeList extends readonly UserAttributeListKey<User>[]> = { [Index in keyof AttributeList]: AttributeList[Index] extends UserAttributeListKey<User> ? AttributeListValue<User, AttributeList[Index]> : never; };
@@ -89,7 +89,7 @@ type MachineUser<User extends TailorDBInstance, Attributes extends UserAttribute
89
89
  attributeList?: string[];
90
90
  } : MachineUserFromUserProfile<User, Attributes, AttributeList>;
91
91
  /** Upstream OAuth provider that federated a login through the Built-in IdP. */
92
- type FederatedIdentityProvider = "google" | "microsoft";
92
+ export type FederatedIdentityProvider = "google" | "microsoft";
93
93
  /**
94
94
  * Profile claims forwarded from the upstream OAuth provider's ID token.
95
95
  *
@@ -97,7 +97,7 @@ type FederatedIdentityProvider = "google" | "microsoft";
97
97
  * forwarded as-is and reachable through the index signature. Availability
98
98
  * varies by provider (e.g. Microsoft does not issue `picture`).
99
99
  */
100
- type FederatedIdentityClaims = {
100
+ export type FederatedIdentityClaims = {
101
101
  name?: string;
102
102
  given_name?: string;
103
103
  family_name?: string;
@@ -112,7 +112,7 @@ type FederatedIdentityClaims = {
112
112
  * Available on {@link BeforeLoginClaims.federated_identity}; `undefined` for
113
113
  * password logins.
114
114
  */
115
- type FederatedIdentity = {
115
+ export type FederatedIdentity = {
116
116
  provider: FederatedIdentityProvider;
117
117
  claims: FederatedIdentityClaims;
118
118
  };
@@ -121,24 +121,24 @@ type FederatedIdentity = {
121
121
  * own claims (e.g. `sub`, `email`) plus, for federated logins, the upstream
122
122
  * provider's profile under {@link BeforeLoginClaims.federated_identity}.
123
123
  */
124
- type BeforeLoginClaims = JsonObject & {
124
+ export type BeforeLoginClaims = JsonObject & {
125
125
  /** Present only for federated (Google/Microsoft) logins; `undefined` for password logins. */
126
126
  federated_identity?: FederatedIdentity;
127
127
  };
128
- type BeforeLoginHookArgs = {
128
+ export type BeforeLoginHookArgs = {
129
129
  claims: BeforeLoginClaims;
130
130
  idpConfigName: string;
131
131
  /** Environment variables defined in `defineConfig({ env })`. */
132
132
  env: TailorEnv;
133
133
  };
134
- type BeforeLoginHook<MachineUserNames extends string> = {
134
+ export type BeforeLoginHook<MachineUserNames extends string> = {
135
135
  handler(args: BeforeLoginHookArgs): Promise<void>;
136
136
  invoker: NoInfer<MachineUserNames>;
137
137
  };
138
138
  type AuthHooks<MachineUserNames extends string> = {
139
139
  beforeLogin?: BeforeLoginHook<MachineUserNames>;
140
140
  };
141
- type AuthServiceInput<User extends TailorDBInstance, Attributes extends UserAttributes<User>, AttributeList extends UserAttributeListKey<User>[], MachineUserNames extends string, MachineUserAttributes extends MachineUserAttributeFields | undefined = MachineUserAttributeFields | undefined, ConnectionNames extends string = string> = {
141
+ export type AuthServiceInput<User extends TailorDBInstance, Attributes extends UserAttributes<User>, AttributeList extends UserAttributeListKey<User>[], MachineUserNames extends string, MachineUserAttributes extends MachineUserAttributeFields | undefined = MachineUserAttributeFields | undefined, ConnectionNames extends string = string> = {
142
142
  hooks?: AuthHooks<MachineUserNames>;
143
143
  userProfile?: UserProfile<User, Attributes, AttributeList>;
144
144
  machineUserAttributes?: MachineUserAttributes;
@@ -151,18 +151,17 @@ type AuthServiceInput<User extends TailorDBInstance, Attributes extends UserAttr
151
151
  publishSessionEvents?: boolean;
152
152
  };
153
153
  declare const authDefinitionBrand: unique symbol;
154
- type AuthDefinitionBrand = {
154
+ export type AuthDefinitionBrand = {
155
155
  readonly [authDefinitionBrand]: true;
156
156
  };
157
- type DefinedAuth<Name extends string, Config> = Config & {
157
+ export type DefinedAuth<Name extends string, Config> = Config & {
158
158
  name: Name;
159
159
  } & AuthDefinitionBrand;
160
- type AuthExternalConfig = {
160
+ export type AuthExternalConfig = {
161
161
  name: string;
162
162
  external: true;
163
163
  };
164
164
  type AuthServiceInputLoose = AuthServiceInput<any, any, any, string, any>;
165
- type AuthOwnConfig = DefinedAuth<string, AuthServiceInputLoose>;
166
- type AuthConfig = AuthOwnConfig | AuthExternalConfig;
167
- //#endregion
168
- export { AuthAttributeValue, AuthConfig, AuthConnectionTokenResult, AuthDefinitionBrand, AuthExternalConfig, AuthOwnConfig, AuthServiceInput, BeforeLoginClaims, BeforeLoginHook, BeforeLoginHookArgs, DefinedAuth, FederatedIdentity, FederatedIdentityClaims, FederatedIdentityProvider, MachineUserName, MachineUserNameRegistry, OAuth2ClientGrantType, SCIMAttributeType, UserAttributeKey, UserAttributeListKey, UserAttributes, UsernameFieldKey, ValueOperand };
165
+ export type AuthOwnConfig = DefinedAuth<string, AuthServiceInputLoose>;
166
+ export type AuthConfig = AuthOwnConfig | AuthExternalConfig;
167
+ //#endregion
@@ -49,7 +49,7 @@ type Executor<T extends Trigger<unknown>, O> = O extends {
49
49
  * },
50
50
  * });
51
51
  */
52
- declare function createExecutor<T extends Trigger<unknown>, O extends Operation<TriggerArgs<T>> | {
52
+ export declare function createExecutor<T extends Trigger<unknown>, O extends Operation<TriggerArgs<T>> | {
53
53
  kind: "workflow";
54
54
  workflow: Workflow;
55
55
  }>(config: Executor<T, O>): Executor<T, O>;
@@ -62,9 +62,8 @@ declare function createExecutor<T extends Trigger<unknown>, O extends Operation<
62
62
  * @param config - Executor configuration
63
63
  * @returns The same executor configuration
64
64
  */
65
- declare function createExecutor<Args, O extends Operation<Args> | {
65
+ export declare function createExecutor<Args, O extends Operation<Args> | {
66
66
  kind: "workflow";
67
67
  workflow: Workflow;
68
68
  }>(config: Executor<Trigger<Args>, O>): Executor<Trigger<Args>, O>;
69
- //#endregion
70
- export { createExecutor };
69
+ //#endregion
@@ -6,7 +6,7 @@ import { Workflow } from "../workflow/workflow.mjs";
6
6
  import { Client } from "@urql/core";
7
7
  //#region src/configure/services/executor/operation.d.ts
8
8
  /** Function-based executor operation. The body receives the trigger args and the `invoker`. */
9
- type FunctionOperation<Args> = Omit<FunctionOperation$1, "body" | "invoker"> & {
9
+ export type FunctionOperation<Args> = Omit<FunctionOperation$1, "body" | "invoker"> & {
10
10
  body: (args: Args & {
11
11
  invoker: TailorPrincipal | null;
12
12
  }) => void | Promise<void>;
@@ -14,14 +14,14 @@ type FunctionOperation<Args> = Omit<FunctionOperation$1, "body" | "invoker"> & {
14
14
  };
15
15
  type UrqlOperationArgs = Parameters<Client["query"] | Client["mutation"]>;
16
16
  /** GraphQL-based executor operation. Executes a GraphQL query or mutation. */
17
- type GqlOperation<Args> = Omit<GqlOperation$1, "query" | "variables" | "invoker"> & {
17
+ export type GqlOperation<Args> = Omit<GqlOperation$1, "query" | "variables" | "invoker"> & {
18
18
  query: UrqlOperationArgs[0];
19
19
  variables?: (args: Args) => UrqlOperationArgs[1];
20
20
  invoker?: MachineUserName;
21
21
  };
22
22
  type RequestHeader = "A-IM" | "Accept" | "Accept-Additions" | "Accept-CH" | "Accept-Charset" | "Accept-Datetime" | "Accept-Encoding" | "Accept-Features" | "Accept-Language" | "Accept-Patch" | "Accept-Post" | "Accept-Ranges" | "Accept-Signature" | "Access-Control" | "Access-Control-Allow-Credentials" | "Access-Control-Allow-Headers" | "Access-Control-Allow-Methods" | "Access-Control-Allow-Origin" | "Access-Control-Expose-Headers" | "Access-Control-Max-Age" | "Access-Control-Request-Headers" | "Access-Control-Request-Method" | "Age" | "Allow" | "ALPN" | "Alt-Svc" | "Alt-Used" | "Alternates" | "AMP-Cache-Transform" | "Apply-To-Redirect-Ref" | "Authentication-Control" | "Authentication-Info" | "Authorization" | "Available-Dictionary" | "C-Ext" | "C-Man" | "C-Opt" | "C-PEP" | "C-PEP-Info" | "Cache-Control" | "Cache-Status" | "Cal-Managed-ID" | "CalDAV-Timezones" | "Capsule-Protocol" | "CDN-Cache-Control" | "CDN-Loop" | "Cert-Not-After" | "Cert-Not-Before" | "Clear-Site-Data" | "Client-Cert" | "Client-Cert-Chain" | "Close" | "CMCD-Object" | "CMCD-Request" | "CMCD-Session" | "CMCD-Status" | "CMSD-Dynamic" | "CMSD-Static" | "Concealed-Auth-Export" | "Configuration-Context" | "Connection" | "Content-Base" | "Content-Digest" | "Content-Disposition" | "Content-Encoding" | "Content-ID" | "Content-Language" | "Content-Length" | "Content-Location" | "Content-MD5" | "Content-Range" | "Content-Script-Type" | "Content-Security-Policy" | "Content-Security-Policy-Report-Only" | "Content-Style-Type" | "Content-Type" | "Content-Version" | "Cookie" | "Cookie2" | "Cross-Origin-Embedder-Policy" | "Cross-Origin-Embedder-Policy-Report-Only" | "Cross-Origin-Opener-Policy" | "Cross-Origin-Opener-Policy-Report-Only" | "Cross-Origin-Resource-Policy" | "CTA-Common-Access-Token" | "DASL" | "Date" | "DAV" | "Default-Style" | "Delta-Base" | "Deprecation" | "Depth" | "Derived-From" | "Destination" | "Differential-ID" | "Dictionary-ID" | "Digest" | "DPoP" | "DPoP-Nonce" | "Early-Data" | "EDIINT-Features" | "ETag" | "Expect" | "Expect-CT" | "Expires" | "Ext" | "Forwarded" | "From" | "GetProfile" | "Hobareg" | "Host" | "HTTP2-Settings" | "If" | "If-Match" | "If-Modified-Since" | "If-None-Match" | "If-Range" | "If-Schedule-Tag-Match" | "If-Unmodified-Since" | "IM" | "Include-Referred-Token-Binding-ID" | "Isolation" | "Keep-Alive" | "Label" | "Last-Event-ID" | "Last-Modified" | "Link" | "Link-Template" | "Location" | "Lock-Token" | "Man" | "Max-Forwards" | "Memento-Datetime" | "Meter" | "Method-Check" | "Method-Check-Expires" | "MIME-Version" | "Negotiate" | "NEL" | "OData-EntityId" | "OData-Isolation" | "OData-MaxVersion" | "OData-Version" | "Opt" | "Optional-WWW-Authenticate" | "Ordering-Type" | "Origin" | "Origin-Agent-Cluster" | "OSCORE" | "OSLC-Core-Version" | "Overwrite" | "P3P" | "PEP" | "PEP-Info" | "Permissions-Policy" | "PICS-Label" | "Ping-From" | "Ping-To" | "Position" | "Pragma" | "Prefer" | "Preference-Applied" | "Priority" | "ProfileObject" | "Protocol" | "Protocol-Info" | "Protocol-Query" | "Protocol-Request" | "Proxy-Authenticate" | "Proxy-Authentication-Info" | "Proxy-Authorization" | "Proxy-Features" | "Proxy-Instruction" | "Proxy-Status" | "Public" | "Public-Key-Pins" | "Public-Key-Pins-Report-Only" | "Range" | "Redirect-Ref" | "Referer" | "Referer-Root" | "Referrer-Policy" | "Refresh" | "Repeatability-Client-ID" | "Repeatability-First-Sent" | "Repeatability-Request-ID" | "Repeatability-Result" | "Replay-Nonce" | "Reporting-Endpoints" | "Repr-Digest" | "Retry-After" | "Safe" | "Schedule-Reply" | "Schedule-Tag" | "Sec-GPC" | "Sec-Purpose" | "Sec-Token-Binding" | "Sec-WebSocket-Accept" | "Sec-WebSocket-Extensions" | "Sec-WebSocket-Key" | "Sec-WebSocket-Protocol" | "Sec-WebSocket-Version" | "Security-Scheme" | "Server" | "Server-Timing" | "Set-Cookie" | "Set-Cookie2" | "SetProfile" | "Signature" | "Signature-Input" | "SLUG" | "SoapAction" | "Status-URI" | "Strict-Transport-Security" | "Sunset" | "Surrogate-Capability" | "Surrogate-Control" | "TCN" | "TE" | "Timeout" | "Timing-Allow-Origin" | "Topic" | "Traceparent" | "Tracestate" | "Trailer" | "Transfer-Encoding" | "TTL" | "Upgrade" | "Urgency" | "URI" | "Use-As-Dictionary" | "User-Agent" | "Variant-Vary" | "Vary" | "Via" | "Want-Content-Digest" | "Want-Digest" | "Want-Repr-Digest" | "Warning" | "WWW-Authenticate" | "X-Content-Type-Options" | "X-Frame-Options" | (string & {});
23
23
  /** Outbound webhook executor operation. Sends HTTP requests to external URLs. */
24
- type WebhookOperation<Args> = Omit<WebhookOperation$1, "url" | "requestBody" | "headers"> & {
24
+ export type WebhookOperation<Args> = Omit<WebhookOperation$1, "url" | "requestBody" | "headers"> & {
25
25
  url: (args: Args) => string;
26
26
  requestBody?: (args: Args) => Record<string, unknown>;
27
27
  headers?: { [key in RequestHeader]?: string | {
@@ -41,10 +41,9 @@ type WorkflowArgsProperty<Args, W extends Workflow> = undefined extends Workflow
41
41
  args: WorkflowArgs<Args, W>;
42
42
  };
43
43
  /** Workflow-triggering executor operation. Triggers a workflow in response to an event. */
44
- type WorkflowOperation<Args, W extends Workflow = Workflow> = Omit<WorkflowOperation$1, "workflowName" | "args" | "invoker"> & {
44
+ export type WorkflowOperation<Args, W extends Workflow = Workflow> = Omit<WorkflowOperation$1, "workflowName" | "args" | "invoker"> & {
45
45
  workflow: W;
46
46
  invoker?: MachineUserName;
47
47
  } & WorkflowArgsProperty<Args, W>;
48
- type Operation<Args> = FunctionOperation<Args> | GqlOperation<Args> | WebhookOperation<Args> | WorkflowOperation<Args>;
49
- //#endregion
50
- export { FunctionOperation, GqlOperation, Operation, WebhookOperation, WorkflowOperation };
48
+ export type Operation<Args> = FunctionOperation<Args> | GqlOperation<Args> | WebhookOperation<Args> | WorkflowOperation<Args>;
49
+ //#endregion