@tailor-platform/sdk 1.35.2 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/application-BB5TqXWY.mjs +4 -0
  3. package/dist/{application-BnJRroGX.mjs → application-BwboBFcU.mjs} +102 -17
  4. package/dist/application-BwboBFcU.mjs.map +1 -0
  5. package/dist/cli/index.mjs +241 -6
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +190 -6
  8. package/dist/cli/lib.mjs +3 -3
  9. package/dist/{client-BmQP4kKS.mjs → client-B6icVEv4.mjs} +1 -1
  10. package/dist/{client-CA2NM_4R.mjs → client-CN15WgW2.mjs} +25 -8
  11. package/dist/client-CN15WgW2.mjs.map +1 -0
  12. package/dist/configure/index.d.mts +5 -4
  13. package/dist/configure/index.mjs +38 -9
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{crash-report-Bd2T8BhU.mjs → crash-report-CB1UtT3O.mjs} +1 -1
  16. package/dist/{crash-report-CPkI2-cp.mjs → crash-report-CdxPj_SW.mjs} +2 -2
  17. package/dist/{crash-report-CPkI2-cp.mjs.map → crash-report-CdxPj_SW.mjs.map} +1 -1
  18. package/dist/env-_ce3IYbl.d.mts +30 -0
  19. package/dist/{index-DTJkkO-t.d.mts → index-C7vIBAg8.d.mts} +2 -2
  20. package/dist/{index--9iVDOXn.d.mts → index-CYaunQeL.d.mts} +76 -5
  21. package/dist/{index-qVqjEYnr.d.mts → index-CxSLivW7.d.mts} +2 -2
  22. package/dist/{index-D4pBPp65.d.mts → index-DDCyefuU.d.mts} +2 -2
  23. package/dist/{index-niQ9Qblw.d.mts → index-DZN1QFLM.d.mts} +2 -2
  24. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  25. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  26. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  27. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  28. package/dist/plugin/index.d.mts +2 -1
  29. package/dist/{plugin-D8hKE6rZ.d.mts → plugin-CiPUxkyN.d.mts} +4 -28
  30. package/dist/{runtime-D4O-RfcH.mjs → runtime-C7RRDaB3.mjs} +230 -22
  31. package/dist/runtime-C7RRDaB3.mjs.map +1 -0
  32. package/dist/utils/test/index.d.mts +2 -2
  33. package/dist/{workflow.generated-DMt8PNVd.d.mts → workflow.generated-8BeGQsVU.d.mts} +212 -4
  34. package/docs/services/idp.md +50 -0
  35. package/docs/services/secret.md +25 -0
  36. package/package.json +4 -3
  37. package/dist/application-BnJRroGX.mjs.map +0 -1
  38. package/dist/application-mGasp_EX.mjs +0 -4
  39. package/dist/client-CA2NM_4R.mjs.map +0 -1
  40. package/dist/runtime-D4O-RfcH.mjs.map +0 -1
@@ -0,0 +1,30 @@
1
+ /// <reference types="@tailor-platform/function-types" />
2
+ import { lt as InferredAttributeList, ut as InferredAttributeMap } from "./plugin-CiPUxkyN.mjs";
3
+
4
+ //#region src/configure/types/actor.d.ts
5
+ /** User type enum values from the Tailor Platform server. */
6
+ type TailorActorType = "USER_TYPE_USER" | "USER_TYPE_MACHINE_USER" | "USER_TYPE_UNSPECIFIED";
7
+ /** Represents an actor in event triggers. */
8
+ type TailorActor = {
9
+ /** The ID of the workspace the user belongs to. */workspaceId: string; /** The ID of the user. */
10
+ userId: string;
11
+ /**
12
+ * A map of the user's attributes.
13
+ * Maps from server's `attributeMap` field.
14
+ */
15
+ attributes: InferredAttributeMap | null;
16
+ /**
17
+ * A list of the user's attributes.
18
+ * Maps from server's `attributes` field.
19
+ */
20
+ attributeList: InferredAttributeList; /** The type of the user. */
21
+ userType: TailorActorType;
22
+ };
23
+ //#endregion
24
+ //#region src/configure/types/env.d.ts
25
+ interface Env {}
26
+ /** Represents environment variables in the Tailor platform. */
27
+ type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
28
+ //#endregion
29
+ export { TailorEnv as n, TailorActor as r, Env as t };
30
+ //# sourceMappingURL=env-_ce3IYbl.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D8hKE6rZ.mjs";
2
+ import { n as Plugin } from "./plugin-CiPUxkyN.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/kysely-type/index.d.ts
5
5
  /** Unique identifier for the Kysely type generator plugin. */
@@ -16,4 +16,4 @@ type KyselyTypePluginOptions = {
16
16
  declare function kyselyTypePlugin(options: KyselyTypePluginOptions): Plugin<unknown, KyselyTypePluginOptions>;
17
17
  //#endregion
18
18
  export { kyselyTypePlugin as n, KyselyGeneratorID as t };
19
- //# sourceMappingURL=index-DTJkkO-t.d.mts.map
19
+ //# sourceMappingURL=index-C7vIBAg8.d.mts.map
@@ -1,6 +1,7 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { $ as FieldOptions, At as TailorDBTrigger$1, Ct as ExecutorInput, Dt as IncomingWebhookTrigger$1, Et as IdpUserTrigger$1, F as UserAttributeListKey, H as TailorDBInstance, I as UserAttributeMap, Mt as WorkflowOperation$1, Nt as AuthInvoker$1, Ot as ResolverExecutedTrigger$1, Q as FieldMetadata, Tt as GqlOperation$1, U as TailorDBType, X as ArrayFieldOutput, Z as DefinedFieldMetadata, at as JsonCompatible, bt as GeneratorConfig, ct as TailorEnv, et as FieldOutput, ft as TailorUser, ht as AllowedValuesOutput, it as InferFieldsOutput, j as DefinedAuth, jt as WebhookOperation$1, k as AuthServiceInput, kt as ScheduleTriggerInput, lt as TailorActor, mt as AllowedValues, n as Plugin, nt as TailorAnyField, ot as output$1, rt as TailorField, tt as TailorFieldType, vt as Resolver, wt as FunctionOperation$1, xt as AuthAccessTokenTrigger$1, yt as ResolverInput } from "./plugin-D8hKE6rZ.mjs";
3
- import { b as IdPInput, g as IdpDefinitionBrand, n as AppConfig, t as RetryPolicy } from "./workflow.generated-DMt8PNVd.mjs";
2
+ import { $ as FieldOptions, At as WebhookOperation$1, Ct as FunctionOperation$1, Dt as ResolverExecutedTrigger$1, Et as IncomingWebhookTrigger$1, F as UserAttributeListKey, H as TailorDBInstance, I as UserAttributeMap, Mt as AuthInvoker$1, Ot as ScheduleTriggerInput, Q as FieldMetadata, St as ExecutorInput, Tt as IdpUserTrigger$1, U as TailorDBType, X as ArrayFieldOutput, Z as DefinedFieldMetadata, _t as Resolver, at as JsonCompatible, bt as AuthAccessTokenTrigger$1, dt as TailorUser, et as FieldOutput, it as InferFieldsOutput, j as DefinedAuth, jt as WorkflowOperation$1, k as AuthServiceInput, kt as TailorDBTrigger$1, mt as AllowedValuesOutput, n as Plugin, nt as TailorAnyField, ot as output$1, pt as AllowedValues, rt as TailorField, tt as TailorFieldType, ut as InferredAttributeMap, vt as ResolverInput, wt as GqlOperation$1, yt as GeneratorConfig } from "./plugin-CiPUxkyN.mjs";
3
+ import { n as TailorEnv, r as TailorActor } from "./env-_ce3IYbl.mjs";
4
+ import { _ as IdpDefinitionBrand, g as IdPUserField, n as AppConfig, t as RetryPolicy, x as IdPInput } from "./workflow.generated-8BeGQsVU.mjs";
4
5
  import * as _$zod from "zod";
5
6
  import { JsonPrimitive, Jsonifiable, Jsonify } from "type-fest";
6
7
  import { Client } from "@urql/core";
@@ -697,6 +698,74 @@ declare function createExecutor<Args, O extends Operation<Args> | {
697
698
  workflow: Workflow;
698
699
  }>(config: Executor<Trigger<Args>, O>): Executor<Trigger<Args>, O>;
699
700
  //#endregion
701
+ //#region src/configure/services/idp/permission.d.ts
702
+ type EqualityOperator = "=" | "!=";
703
+ type ContainsOperator = "in" | "not in";
704
+ type StringFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string ? K : never }[keyof User];
705
+ type StringArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string[] ? K : never }[keyof User];
706
+ type BooleanFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean ? K : never }[keyof User];
707
+ type BooleanArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean[] ? K : never }[keyof User];
708
+ type UserStringOperand<User extends object = InferredAttributeMap> = {
709
+ user: StringFieldKeys<User> | "id";
710
+ };
711
+ type UserStringArrayOperand<User extends object = InferredAttributeMap> = {
712
+ user: StringArrayFieldKeys<User>;
713
+ };
714
+ type UserBooleanOperand<User extends object = InferredAttributeMap> = {
715
+ user: BooleanFieldKeys<User> | "_loggedIn";
716
+ };
717
+ type UserBooleanArrayOperand<User extends object = InferredAttributeMap> = {
718
+ user: BooleanArrayFieldKeys<User>;
719
+ };
720
+ type IdPUserOperand<Update extends boolean = false> = Update extends true ? {
721
+ oldIdpUser: IdPUserField;
722
+ } | {
723
+ newIdpUser: IdPUserField;
724
+ } : {
725
+ idpUser: IdPUserField;
726
+ };
727
+ type StringEqualityCondition<User extends object, Update extends boolean> = readonly [string, EqualityOperator, string] | readonly [UserStringOperand<User>, EqualityOperator, string] | readonly [string, EqualityOperator, UserStringOperand<User>] | readonly [IdPUserOperand<Update>, EqualityOperator, string | UserStringOperand<User> | IdPUserOperand<Update>] | readonly [string | UserStringOperand<User>, EqualityOperator, IdPUserOperand<Update>];
728
+ type BooleanEqualityCondition<User extends object, Update extends boolean> = readonly [boolean, EqualityOperator, boolean] | readonly [UserBooleanOperand<User>, EqualityOperator, boolean] | readonly [boolean, EqualityOperator, UserBooleanOperand<User>] | readonly [IdPUserOperand<Update>, EqualityOperator, boolean | UserBooleanOperand<User> | IdPUserOperand<Update>] | readonly [boolean | UserBooleanOperand<User>, EqualityOperator, IdPUserOperand<Update>];
729
+ type EqualityCondition<User extends object = InferredAttributeMap, Update extends boolean = boolean> = StringEqualityCondition<User, Update> | BooleanEqualityCondition<User, Update>;
730
+ type StringContainsCondition<User extends object, Update extends boolean> = readonly [string, ContainsOperator, string[]] | readonly [UserStringOperand<User>, ContainsOperator, string[]] | readonly [string, ContainsOperator, UserStringArrayOperand<User>] | readonly [IdPUserOperand<Update>, ContainsOperator, string[] | UserStringArrayOperand<User>];
731
+ type BooleanContainsCondition<User extends object, Update extends boolean> = readonly [boolean, ContainsOperator, boolean[]] | readonly [UserBooleanOperand<User>, ContainsOperator, boolean[]] | readonly [boolean, ContainsOperator, UserBooleanArrayOperand<User>] | readonly [IdPUserOperand<Update>, ContainsOperator, boolean[] | UserBooleanArrayOperand<User>];
732
+ type ContainsCondition<User extends object = InferredAttributeMap, Update extends boolean = boolean> = StringContainsCondition<User, Update> | BooleanContainsCondition<User, Update>;
733
+ type IdPPermissionCondition<User extends object = InferredAttributeMap, Update extends boolean = boolean> = EqualityCondition<User, Update> | ContainsCondition<User, Update>;
734
+ type IdPActionPermission<User extends object = InferredAttributeMap, Update extends boolean = boolean> = {
735
+ conditions: IdPPermissionCondition<User, Update> | readonly IdPPermissionCondition<User, Update>[];
736
+ description?: string | undefined;
737
+ permit?: boolean;
738
+ } | readonly [...IdPPermissionCondition<User, Update>, ...([] | [boolean])] | readonly [...IdPPermissionCondition<User, Update>[], ...([] | [boolean])];
739
+ /**
740
+ * Per-operation permission policies for an IdP service.
741
+ * Defines create, read, update, delete, and sendPasswordResetEmail permissions.
742
+ *
743
+ * For update operations, use `newIdpUser`/`oldIdpUser` operands instead of `idpUser`.
744
+ * @example
745
+ * const permission: IdPPermission = {
746
+ * create: [{ conditions: [[{ user: "role" }, "=", "ADMIN"]], permit: true }],
747
+ * read: [{ conditions: [[{ user: "_loggedIn" }, "=", true]], permit: true }],
748
+ * update: [{ conditions: [[{ newIdpUser: "name" }, "=", { user: "id" }]], permit: true }],
749
+ * delete: [{ conditions: [[{ user: "role" }, "=", "ADMIN"]], permit: true }],
750
+ * sendPasswordResetEmail: [{ conditions: [], permit: true }],
751
+ * };
752
+ */
753
+ type IdPPermission<User extends object = InferredAttributeMap> = {
754
+ create: readonly IdPActionPermission<User, false>[];
755
+ read: readonly IdPActionPermission<User, false>[];
756
+ update: readonly IdPActionPermission<User, true>[];
757
+ delete: readonly IdPActionPermission<User, false>[];
758
+ sendPasswordResetEmail: readonly IdPActionPermission<User, false>[];
759
+ };
760
+ /**
761
+ * Grants full IdP permission access without any conditions.
762
+ *
763
+ * Unsafe and intended only for local development, prototyping, or tests.
764
+ * Do not use this in production environments, as it effectively disables
765
+ * authorization checks.
766
+ */
767
+ declare const unsafeAllowAllIdPPermission: IdPPermission;
768
+ //#endregion
700
769
  //#region src/configure/services/idp/index.d.ts
701
770
  /**
702
771
  * Define an IdP service configuration for the Tailor SDK.
@@ -705,8 +774,9 @@ declare function createExecutor<Args, O extends Operation<Args> | {
705
774
  * @param config - IdP configuration
706
775
  * @returns Defined IdP service
707
776
  */
708
- declare function defineIdp<const TClients extends string[]>(name: string, config: Omit<IdPInput, "name" | "clients"> & {
777
+ declare function defineIdp<const TClients extends string[]>(name: string, config: Omit<IdPInput, "name" | "clients" | "permission"> & {
709
778
  clients: TClients;
779
+ permission?: IdPPermission;
710
780
  }): {
711
781
  readonly name: string;
712
782
  readonly provider: (providerName: string, clientName: TClients[number]) => {
@@ -746,6 +816,7 @@ declare function defineIdp<const TClients extends string[]>(name: string, config
746
816
  passwordResetSubject?: string | undefined;
747
817
  } | undefined;
748
818
  readonly clients: TClients;
819
+ readonly permission?: IdPPermission;
749
820
  } & IdpDefinitionBrand;
750
821
  //#endregion
751
822
  //#region src/configure/config.d.ts
@@ -869,5 +940,5 @@ declare namespace t {
869
940
  type infer<T> = TailorOutput<T>;
870
941
  }
871
942
  //#endregion
872
- export { createWorkflow as $, ResolverExecutedArgs as A, idpUserUpdatedTrigger as B, IdpUserCreatedArgs as C, RecordCreatedArgs as D, IdpUserUpdatedArgs as E, authAccessTokenRevokedTrigger as F, resolverExecutedTrigger as G, recordDeletedTrigger as H, authAccessTokenTrigger as I, Operation as J, FunctionOperation as K, idpUserCreatedTrigger as L, TailorDBTrigger as M, authAccessTokenIssuedTrigger as N, RecordDeletedArgs as O, authAccessTokenRefreshedTrigger as P, WorkflowConfig as Q, idpUserDeletedTrigger as R, IdpUserArgs as S, IdpUserTrigger as T, recordTrigger as U, recordCreatedTrigger as V, recordUpdatedTrigger as W, WorkflowOperation as X, WebhookOperation as Y, Workflow as Z, AuthAccessTokenArgs as _, defineGenerators as a, createWorkflowJob as at, AuthAccessTokenRevokedArgs as b, createExecutor as c, AuthInvoker as ct, IncomingWebhookRequest as d, WORKFLOW_TEST_ENV_KEY as et, IncomingWebhookTrigger as f, scheduleTrigger as g, ScheduleTrigger as h, defineConfig as i, WorkflowJobOutput as it, ResolverExecutedTrigger as j, RecordUpdatedArgs as k, Trigger as l, defineAuth as lt, ScheduleArgs as m, output as n, WorkflowJobContext as nt, definePlugins as o, QueryType as ot, incomingWebhookTrigger as p, GqlOperation as q, t as r, WorkflowJobInput as rt, defineIdp as s, createResolver as st, infer as t, WorkflowJob as tt, IncomingWebhookArgs as u, AuthAccessTokenIssuedArgs as v, IdpUserDeletedArgs as w, AuthAccessTokenTrigger as x, AuthAccessTokenRefreshedArgs as y, idpUserTrigger as z };
873
- //# sourceMappingURL=index--9iVDOXn.d.mts.map
943
+ export { WorkflowOperation as $, RecordCreatedArgs as A, idpUserCreatedTrigger as B, AuthAccessTokenRevokedArgs as C, IdpUserDeletedArgs as D, IdpUserCreatedArgs as E, TailorDBTrigger as F, recordDeletedTrigger as G, idpUserTrigger as H, authAccessTokenIssuedTrigger as I, resolverExecutedTrigger as J, recordTrigger as K, authAccessTokenRefreshedTrigger as L, RecordUpdatedArgs as M, ResolverExecutedArgs as N, IdpUserTrigger as O, ResolverExecutedTrigger as P, WebhookOperation as Q, authAccessTokenRevokedTrigger as R, AuthAccessTokenRefreshedArgs as S, IdpUserArgs as T, idpUserUpdatedTrigger as U, idpUserDeletedTrigger as V, recordCreatedTrigger as W, GqlOperation as X, FunctionOperation as Y, Operation as Z, ScheduleArgs as _, defineGenerators as a, WorkflowJobContext as at, AuthAccessTokenArgs as b, IdPPermission as c, createWorkflowJob as ct, createExecutor as d, AuthInvoker as dt, Workflow as et, Trigger as f, defineAuth as ft, incomingWebhookTrigger as g, IncomingWebhookTrigger as h, defineConfig as i, WorkflowJob as it, RecordDeletedArgs as j, IdpUserUpdatedArgs as k, IdPPermissionCondition as l, QueryType as lt, IncomingWebhookRequest as m, output as n, createWorkflow as nt, definePlugins as o, WorkflowJobInput as ot, IncomingWebhookArgs as p, recordUpdatedTrigger as q, t as r, WORKFLOW_TEST_ENV_KEY as rt, defineIdp as s, WorkflowJobOutput as st, infer as t, WorkflowConfig as tt, unsafeAllowAllIdPPermission as u, createResolver as ut, ScheduleTrigger as v, AuthAccessTokenTrigger as w, AuthAccessTokenIssuedArgs as x, scheduleTrigger as y, authAccessTokenTrigger as z };
944
+ //# sourceMappingURL=index-CYaunQeL.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D8hKE6rZ.mjs";
2
+ import { n as Plugin } from "./plugin-CiPUxkyN.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/seed/index.d.ts
5
5
  /** Unique identifier for the seed generator plugin. */
@@ -18,4 +18,4 @@ type SeedPluginOptions = {
18
18
  declare function seedPlugin(options: SeedPluginOptions): Plugin<unknown, SeedPluginOptions>;
19
19
  //#endregion
20
20
  export { seedPlugin as n, SeedGeneratorID as t };
21
- //# sourceMappingURL=index-qVqjEYnr.d.mts.map
21
+ //# sourceMappingURL=index-CxSLivW7.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D8hKE6rZ.mjs";
2
+ import { n as Plugin } from "./plugin-CiPUxkyN.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/file-utils/index.d.ts
5
5
  /** Unique identifier for the file utilities generator plugin. */
@@ -16,4 +16,4 @@ type FileUtilsPluginOptions = {
16
16
  declare function fileUtilsPlugin(options: FileUtilsPluginOptions): Plugin<unknown, FileUtilsPluginOptions>;
17
17
  //#endregion
18
18
  export { fileUtilsPlugin as n, FileUtilsGeneratorID as t };
19
- //# sourceMappingURL=index-D4pBPp65.d.mts.map
19
+ //# sourceMappingURL=index-DDCyefuU.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D8hKE6rZ.mjs";
2
+ import { n as Plugin } from "./plugin-CiPUxkyN.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/enum-constants/index.d.ts
5
5
  /** Unique identifier for the enum constants generator plugin. */
@@ -16,4 +16,4 @@ type EnumConstantsPluginOptions = {
16
16
  declare function enumConstantsPlugin(options: EnumConstantsPluginOptions): Plugin<unknown, EnumConstantsPluginOptions>;
17
17
  //#endregion
18
18
  export { enumConstantsPlugin as n, EnumConstantsGeneratorID as t };
19
- //# sourceMappingURL=index-niQ9Qblw.d.mts.map
19
+ //# sourceMappingURL=index-DZN1QFLM.d.mts.map
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-niQ9Qblw.mjs";
2
+ import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-DZN1QFLM.mjs";
3
3
  export { EnumConstantsGeneratorID, enumConstantsPlugin };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-D4pBPp65.mjs";
2
+ import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-DDCyefuU.mjs";
3
3
  export { FileUtilsGeneratorID, fileUtilsPlugin };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-DTJkkO-t.mjs";
2
+ import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-C7vIBAg8.mjs";
3
3
  export { KyselyGeneratorID, kyselyTypePlugin };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as seedPlugin, t as SeedGeneratorID } from "../../../index-qVqjEYnr.mjs";
2
+ import { n as seedPlugin, t as SeedGeneratorID } from "../../../index-CxSLivW7.mjs";
3
3
  export { SeedGeneratorID, seedPlugin };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { B as TailorAnyDBType, ct as TailorEnv, lt as TailorActor } from "../plugin-D8hKE6rZ.mjs";
2
+ import { B as TailorAnyDBType } from "../plugin-CiPUxkyN.mjs";
3
+ import { n as TailorEnv, r as TailorActor } from "../env-_ce3IYbl.mjs";
3
4
 
4
5
  //#region src/plugin/with-context.d.ts
5
6
  /**
@@ -51,7 +51,8 @@ type SAML = {
51
51
  kind: "SAML"; /** Enable signing of SAML requests */
52
52
  enableSignRequest: boolean; /** URL to fetch SAML metadata (mutually exclusive with rawMetadata) */
53
53
  metadataURL?: string | undefined; /** Raw SAML metadata XML (mutually exclusive with metadataURL) */
54
- rawMetadata?: string | undefined;
54
+ rawMetadata?: string | undefined; /** URL to redirect to when SAML ACS receives a response with an empty RelayState. */
55
+ defaultRedirectURL?: string | undefined;
55
56
  };
56
57
  type IDToken = {
57
58
  /** Identity provider name */name: string;
@@ -437,31 +438,6 @@ type TailorUser = {
437
438
  /** Represents an unauthenticated user in the Tailor platform. */
438
439
  declare const unauthenticatedTailorUser: TailorUser;
439
440
  //#endregion
440
- //#region src/configure/types/actor.d.ts
441
- /** User type enum values from the Tailor Platform server. */
442
- type TailorActorType = "USER_TYPE_USER" | "USER_TYPE_MACHINE_USER" | "USER_TYPE_UNSPECIFIED";
443
- /** Represents an actor in event triggers. */
444
- type TailorActor = {
445
- /** The ID of the workspace the user belongs to. */workspaceId: string; /** The ID of the user. */
446
- userId: string;
447
- /**
448
- * A map of the user's attributes.
449
- * Maps from server's `attributeMap` field.
450
- */
451
- attributes: InferredAttributeMap | null;
452
- /**
453
- * A list of the user's attributes.
454
- * Maps from server's `attributes` field.
455
- */
456
- attributeList: InferredAttributeList; /** The type of the user. */
457
- userType: TailorActorType;
458
- };
459
- //#endregion
460
- //#region src/configure/types/env.d.ts
461
- interface Env {}
462
- /** Represents environment variables in the Tailor platform. */
463
- type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
464
- //#endregion
465
441
  //#region src/configure/types/helpers.d.ts
466
442
  type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
467
443
  type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]> } & {} : T;
@@ -2093,5 +2069,5 @@ interface Plugin<TypeConfig = unknown, PluginConfig = unknown> {
2093
2069
  onExecutorReady?(context: ExecutorReadyContext<PluginConfig>): GeneratorResult | Promise<GeneratorResult>;
2094
2070
  }
2095
2071
  //#endregion
2096
- export { FieldOptions as $, BeforeLoginHookArgs as A, TailorDBTrigger as At, TailorAnyDBType as B, SCIMAttribute as Bt, TailorDBType as C, ExecutorInput as Ct, AuthExternalConfig as D, IncomingWebhookTrigger as Dt, AuthConnectionTokenResult as E, IdpUserTrigger as Et, UserAttributeListKey as F, IDToken as Ft, PermissionCondition as G, TenantProvider as Gt, TailorDBInstance as H, SCIMAuthorization as Ht, UserAttributeMap as I, IdProvider as It, unsafeAllowAllGqlPermission as J, TailorTypeGqlPermission as K, UsernameFieldKey as L, OAuth2ClientInput as Lt, OAuth2ClientGrantType as M, WorkflowOperation as Mt, SCIMAttributeType as N, AuthInvoker as Nt, AuthOwnConfig as O, ResolverExecutedTrigger as Ot, UserAttributeKey as P, BuiltinIdP as Pt, FieldMetadata as Q, ValueOperand as R, OIDC as Rt, TailorDBServiceInput as S, Executor as St, AuthConfig as T, GqlOperation as Tt, TailorDBType$1 as U, SCIMConfig as Ut, TailorDBField as V, SCIMAttributeMapping as Vt, db as W, SCIMResource as Wt, ArrayFieldOutput as X, unsafeAllowAllTypePermission as Y, DefinedFieldMetadata as Z, GeneratorResult as _, AuthConnectionOAuth2Config as _t, PluginExecutorContext as a, JsonCompatible as at, TailorDBNamespaceData as b, GeneratorConfig as bt, PluginGeneratedExecutorWithFile as c, TailorEnv as ct, PluginNamespaceProcessContext as d, AttributeMap as dt, FieldOutput$1 as et, PluginOutput as f, TailorUser as ft, ExecutorReadyContext as g, AuthConnectionConfig as gt, TypePluginOutput as h, AllowedValuesOutput as ht, PluginConfigs as i, InferFieldsOutput as it, DefinedAuth as j, WebhookOperation as jt, AuthServiceInput as k, ScheduleTriggerInput as kt, PluginGeneratedResolver as l, TailorActor as lt, TailorDBTypeForPlugin as m, AllowedValues as mt, Plugin as n, TailorAnyField as nt, PluginExecutorContextBase as o, output as ot, PluginProcessContext as p, unauthenticatedTailorUser as pt, TailorTypePermission as q, PluginAttachment as r, TailorField as rt, PluginGeneratedExecutor as s, Env as st, NamespacePluginOutput as t, TailorFieldType as tt, PluginGeneratedType as u, AttributeList as ut, ResolverNamespaceData as v, Resolver as vt, TypeSourceInfoEntry as w, FunctionOperation as wt, TailorDBReadyContext as x, AuthAccessTokenTrigger as xt, ResolverReadyContext as y, ResolverInput as yt, TailorAnyDBField as z, SAML as zt };
2097
- //# sourceMappingURL=plugin-D8hKE6rZ.d.mts.map
2072
+ export { FieldOptions as $, BeforeLoginHookArgs as A, WebhookOperation as At, TailorAnyDBType as B, SCIMAttributeMapping as Bt, TailorDBType as C, FunctionOperation as Ct, AuthExternalConfig as D, ResolverExecutedTrigger as Dt, AuthConnectionTokenResult as E, IncomingWebhookTrigger as Et, UserAttributeListKey as F, IdProvider as Ft, PermissionCondition as G, TailorDBInstance as H, SCIMConfig as Ht, UserAttributeMap as I, OAuth2ClientInput as It, unsafeAllowAllGqlPermission as J, TailorTypeGqlPermission as K, UsernameFieldKey as L, OIDC as Lt, OAuth2ClientGrantType as M, AuthInvoker as Mt, SCIMAttributeType as N, BuiltinIdP as Nt, AuthOwnConfig as O, ScheduleTriggerInput as Ot, UserAttributeKey as P, IDToken as Pt, FieldMetadata as Q, ValueOperand as R, SAML as Rt, TailorDBServiceInput as S, ExecutorInput as St, AuthConfig as T, IdpUserTrigger as Tt, TailorDBType$1 as U, SCIMResource as Ut, TailorDBField as V, SCIMAuthorization as Vt, db as W, TenantProvider as Wt, ArrayFieldOutput as X, unsafeAllowAllTypePermission as Y, DefinedFieldMetadata as Z, GeneratorResult as _, Resolver as _t, PluginExecutorContext as a, JsonCompatible as at, TailorDBNamespaceData as b, AuthAccessTokenTrigger as bt, PluginGeneratedExecutorWithFile as c, AttributeMap as ct, PluginNamespaceProcessContext as d, TailorUser as dt, FieldOutput$1 as et, PluginOutput as f, unauthenticatedTailorUser as ft, ExecutorReadyContext as g, AuthConnectionOAuth2Config as gt, TypePluginOutput as h, AuthConnectionConfig as ht, PluginConfigs as i, InferFieldsOutput as it, DefinedAuth as j, WorkflowOperation as jt, AuthServiceInput as k, TailorDBTrigger as kt, PluginGeneratedResolver as l, InferredAttributeList as lt, TailorDBTypeForPlugin as m, AllowedValuesOutput as mt, Plugin as n, TailorAnyField as nt, PluginExecutorContextBase as o, output as ot, PluginProcessContext as p, AllowedValues as pt, TailorTypePermission as q, PluginAttachment as r, TailorField as rt, PluginGeneratedExecutor as s, AttributeList as st, NamespacePluginOutput as t, TailorFieldType as tt, PluginGeneratedType as u, InferredAttributeMap as ut, ResolverNamespaceData as v, ResolverInput as vt, TypeSourceInfoEntry as w, GqlOperation as wt, TailorDBReadyContext as x, Executor as xt, ResolverReadyContext as y, GeneratorConfig as yt, TailorAnyDBField as z, SCIMAttribute as zt };
2073
+ //# sourceMappingURL=plugin-CiPUxkyN.d.mts.map