@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.
- package/CHANGELOG.md +28 -0
- package/dist/application-BB5TqXWY.mjs +4 -0
- package/dist/{application-BnJRroGX.mjs → application-BwboBFcU.mjs} +102 -17
- package/dist/application-BwboBFcU.mjs.map +1 -0
- package/dist/cli/index.mjs +241 -6
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +190 -6
- package/dist/cli/lib.mjs +3 -3
- package/dist/{client-BmQP4kKS.mjs → client-B6icVEv4.mjs} +1 -1
- package/dist/{client-CA2NM_4R.mjs → client-CN15WgW2.mjs} +25 -8
- package/dist/client-CN15WgW2.mjs.map +1 -0
- package/dist/configure/index.d.mts +5 -4
- package/dist/configure/index.mjs +38 -9
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-Bd2T8BhU.mjs → crash-report-CB1UtT3O.mjs} +1 -1
- package/dist/{crash-report-CPkI2-cp.mjs → crash-report-CdxPj_SW.mjs} +2 -2
- package/dist/{crash-report-CPkI2-cp.mjs.map → crash-report-CdxPj_SW.mjs.map} +1 -1
- package/dist/env-_ce3IYbl.d.mts +30 -0
- package/dist/{index-DTJkkO-t.d.mts → index-C7vIBAg8.d.mts} +2 -2
- package/dist/{index--9iVDOXn.d.mts → index-CYaunQeL.d.mts} +76 -5
- package/dist/{index-qVqjEYnr.d.mts → index-CxSLivW7.d.mts} +2 -2
- package/dist/{index-D4pBPp65.d.mts → index-DDCyefuU.d.mts} +2 -2
- package/dist/{index-niQ9Qblw.d.mts → index-DZN1QFLM.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +2 -1
- package/dist/{plugin-D8hKE6rZ.d.mts → plugin-CiPUxkyN.d.mts} +4 -28
- package/dist/{runtime-D4O-RfcH.mjs → runtime-C7RRDaB3.mjs} +230 -22
- package/dist/runtime-C7RRDaB3.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-DMt8PNVd.d.mts → workflow.generated-8BeGQsVU.d.mts} +212 -4
- package/docs/services/idp.md +50 -0
- package/docs/services/secret.md +25 -0
- package/package.json +4 -3
- package/dist/application-BnJRroGX.mjs.map +0 -1
- package/dist/application-mGasp_EX.mjs +0 -4
- package/dist/client-CA2NM_4R.mjs.map +0 -1
- 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-
|
|
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-
|
|
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
|
|
3
|
-
import {
|
|
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 {
|
|
873
|
-
//# sourceMappingURL=index
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
+
import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-C7vIBAg8.mjs";
|
|
3
3
|
export { KyselyGeneratorID, kyselyTypePlugin };
|
package/dist/plugin/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { B as TailorAnyDBType
|
|
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,
|
|
2097
|
-
//# sourceMappingURL=plugin-
|
|
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
|