@tailor-platform/sdk 1.36.0 → 1.37.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 +26 -0
- package/dist/application-ILhZq_oW.mjs +4 -0
- package/dist/{application-BwboBFcU.mjs → application-qRGMV8Tr.mjs} +50 -20
- package/dist/application-qRGMV8Tr.mjs.map +1 -0
- package/dist/{brand-0SscafcY.mjs → brand-D-d15jx3.mjs} +1 -1
- package/dist/{brand-0SscafcY.mjs.map → brand-D-d15jx3.mjs.map} +1 -1
- package/dist/cli/index.mjs +11 -11
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +6 -6
- package/dist/cli/lib.mjs +7 -7
- package/dist/{client-B6icVEv4.mjs → client-424n_3T9.mjs} +1 -1
- package/dist/{client-CN15WgW2.mjs → client-DllDLYmZ.mjs} +4 -4
- package/dist/{client-CN15WgW2.mjs.map → client-DllDLYmZ.mjs.map} +1 -1
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +4 -14
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-CdxPj_SW.mjs → crash-report-CDQ2JvgR.mjs} +4 -4
- package/dist/{crash-report-CdxPj_SW.mjs.map → crash-report-CDQ2JvgR.mjs.map} +1 -1
- package/dist/{crash-report-CB1UtT3O.mjs → crash-report-aHnky_xH.mjs} +1 -1
- package/dist/{enum-constants-DI85-fPE.mjs → enum-constants-Dx82rSjf.mjs} +1 -1
- package/dist/{enum-constants-DI85-fPE.mjs.map → enum-constants-Dx82rSjf.mjs.map} +1 -1
- package/dist/{env-_ce3IYbl.d.mts → env-04IQXqsl.d.mts} +2 -2
- package/dist/{file-utils-C4rXlOVt.mjs → file-utils-DeWpvq3T.mjs} +1 -1
- package/dist/{file-utils-C4rXlOVt.mjs.map → file-utils-DeWpvq3T.mjs.map} +1 -1
- package/dist/{index-C7vIBAg8.d.mts → index-BUT18Kak.d.mts} +2 -2
- package/dist/{index-CYaunQeL.d.mts → index-BVJQLjyN.d.mts} +27 -12
- package/dist/{index-DDCyefuU.d.mts → index-C3kcXHXJ.d.mts} +2 -2
- package/dist/{index-DZN1QFLM.d.mts → index-CeS4FA9o.d.mts} +2 -2
- package/dist/{index-CxSLivW7.d.mts → index-DnIg_LfT.d.mts} +2 -2
- package/dist/{interceptor-f7slMkCC.mjs → interceptor-dSNiQq71.mjs} +1 -1
- package/dist/{interceptor-f7slMkCC.mjs.map → interceptor-dSNiQq71.mjs.map} +1 -1
- package/dist/{job-CPKYCk_e.mjs → job-DkAklmE4.mjs} +2 -2
- package/dist/{job-CPKYCk_e.mjs.map → job-DkAklmE4.mjs.map} +1 -1
- package/dist/{kysely-type-DtnNdHn3.mjs → kysely-type-CwtvQuxh.mjs} +1 -1
- package/dist/{kysely-type-DtnNdHn3.mjs.map → kysely-type-CwtvQuxh.mjs.map} +1 -1
- package/dist/{logger-qz-Y4sBV.mjs → logger-C8qBDCKO.mjs} +1 -1
- package/dist/{logger-qz-Y4sBV.mjs.map → logger-C8qBDCKO.mjs.map} +1 -1
- package/dist/package-json--6dmp6-h.mjs +4 -0
- package/dist/{package-json-CfUqjJaQ.mjs → package-json-BHViVisJ.mjs} +1 -1
- package/dist/{package-json-CfUqjJaQ.mjs.map → package-json-BHViVisJ.mjs.map} +1 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{plugin-CiPUxkyN.d.mts → plugin-D6P4g_2L.d.mts} +14 -9
- package/dist/{runtime-C7RRDaB3.mjs → runtime-D9ejnCm6.mjs} +566 -95
- package/dist/runtime-D9ejnCm6.mjs.map +1 -0
- package/dist/{schema-D27cW0Ca.mjs → schema-CnwUqPyM.mjs} +4 -361
- package/dist/schema-CnwUqPyM.mjs.map +1 -0
- package/dist/{seed-BZIFDG27.mjs → seed-DrbB1VXd.mjs} +1 -1
- package/dist/{seed-BZIFDG27.mjs.map → seed-DrbB1VXd.mjs.map} +1 -1
- package/dist/telemetry-4IOPW6wE.mjs +4 -0
- package/dist/{telemetry-CREcGK8y.mjs → telemetry-DwHuiNiR.mjs} +2 -2
- package/dist/{telemetry-CREcGK8y.mjs.map → telemetry-DwHuiNiR.mjs.map} +1 -1
- package/dist/types-B9ZMosul.mjs +372 -0
- package/dist/types-B9ZMosul.mjs.map +1 -0
- package/dist/types-C45jRrCM.mjs +4 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +1 -1
- package/dist/{workflow.generated-8BeGQsVU.d.mts → workflow.generated-Bj_DVqGh.d.mts} +2 -2
- package/docs/services/auth.md +6 -5
- package/docs/services/executor.md +5 -12
- package/docs/services/resolver.md +6 -13
- package/docs/services/workflow.md +4 -3
- package/package.json +4 -4
- package/dist/application-BB5TqXWY.mjs +0 -4
- package/dist/application-BwboBFcU.mjs.map +0 -1
- package/dist/package-json-D5Km1jjt.mjs +0 -4
- package/dist/runtime-C7RRDaB3.mjs.map +0 -1
- package/dist/schema-D27cW0Ca.mjs.map +0 -1
- package/dist/telemetry-C508zIi1.mjs +0 -4
package/dist/plugin/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { B as TailorAnyDBType } from "../plugin-
|
|
3
|
-
import { n as TailorEnv, r as TailorActor } from "../env-
|
|
2
|
+
import { B as TailorAnyDBType } from "../plugin-D6P4g_2L.mjs";
|
|
3
|
+
import { n as TailorEnv, r as TailorActor } from "../env-04IQXqsl.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/with-context.d.ts
|
|
6
6
|
/**
|
|
@@ -30,10 +30,11 @@ declare const BaseGeneratorConfigSchema: z.ZodUnion<readonly [z.ZodTuple<[z.ZodL
|
|
|
30
30
|
}, z.core.$strip>]>;
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/types/auth.generated.d.ts
|
|
33
|
-
type
|
|
33
|
+
type AuthInvokerObject = {
|
|
34
34
|
/** Auth namespace */namespace: string; /** Machine user name for authentication */
|
|
35
35
|
machineUserName: string;
|
|
36
36
|
};
|
|
37
|
+
type AuthInvoker = AuthInvokerObject;
|
|
37
38
|
type OIDC = {
|
|
38
39
|
/** Identity provider name */name: string;
|
|
39
40
|
kind: "OIDC"; /** OAuth2 client ID */
|
|
@@ -208,7 +209,7 @@ type AuthAccessTokenTrigger = {
|
|
|
208
209
|
type FunctionOperation = {
|
|
209
210
|
kind: "function" | "jobFunction"; /** Function implementation */
|
|
210
211
|
body: Function; /** Auth invoker for the function execution */
|
|
211
|
-
authInvoker?: {
|
|
212
|
+
authInvoker?: string | {
|
|
212
213
|
namespace: string;
|
|
213
214
|
machineUserName: string;
|
|
214
215
|
} | undefined;
|
|
@@ -218,7 +219,7 @@ type GqlOperation = {
|
|
|
218
219
|
query: string; /** Target application name for the GraphQL query */
|
|
219
220
|
appName?: string | undefined; /** Function to compute GraphQL variables */
|
|
220
221
|
variables?: Function | undefined; /** Auth invoker for the GraphQL execution */
|
|
221
|
-
authInvoker?: {
|
|
222
|
+
authInvoker?: string | {
|
|
222
223
|
namespace: string;
|
|
223
224
|
machineUserName: string;
|
|
224
225
|
} | undefined;
|
|
@@ -240,7 +241,7 @@ type WorkflowOperation = {
|
|
|
240
241
|
args?: Function | {
|
|
241
242
|
[x: string]: unknown;
|
|
242
243
|
} | undefined;
|
|
243
|
-
authInvoker?: {
|
|
244
|
+
authInvoker?: string | {
|
|
244
245
|
namespace: string;
|
|
245
246
|
machineUserName: string;
|
|
246
247
|
} | undefined;
|
|
@@ -304,14 +305,14 @@ type Executor = {
|
|
|
304
305
|
args?: Function | {
|
|
305
306
|
[x: string]: unknown;
|
|
306
307
|
} | undefined;
|
|
307
|
-
authInvoker?: {
|
|
308
|
+
authInvoker?: string | {
|
|
308
309
|
namespace: string;
|
|
309
310
|
machineUserName: string;
|
|
310
311
|
} | undefined;
|
|
311
312
|
} | {
|
|
312
313
|
kind: "function" | "jobFunction";
|
|
313
314
|
body: Function;
|
|
314
|
-
authInvoker?: {
|
|
315
|
+
authInvoker?: string | {
|
|
315
316
|
namespace: string;
|
|
316
317
|
machineUserName: string;
|
|
317
318
|
} | undefined;
|
|
@@ -320,7 +321,7 @@ type Executor = {
|
|
|
320
321
|
query: string;
|
|
321
322
|
appName?: string | undefined;
|
|
322
323
|
variables?: Function | undefined;
|
|
323
|
-
authInvoker?: {
|
|
324
|
+
authInvoker?: string | {
|
|
324
325
|
namespace: string;
|
|
325
326
|
machineUserName: string;
|
|
326
327
|
} | undefined;
|
|
@@ -371,7 +372,7 @@ type Resolver = {
|
|
|
371
372
|
[x: string]: any;
|
|
372
373
|
} | undefined; /** Enable publishing events from this resolver */
|
|
373
374
|
publishEvents?: boolean | undefined; /** Machine user to execute this resolver as */
|
|
374
|
-
authInvoker?: {
|
|
375
|
+
authInvoker?: string | {
|
|
375
376
|
namespace: string;
|
|
376
377
|
machineUserName: string;
|
|
377
378
|
} | undefined;
|
|
@@ -1656,6 +1657,10 @@ type ConnectionNames<Config> = Config extends {
|
|
|
1656
1657
|
} ? K & string : string;
|
|
1657
1658
|
type DefinedAuth<Name extends string, Config, MachineUserNames extends string> = Config & {
|
|
1658
1659
|
name: Name;
|
|
1660
|
+
/**
|
|
1661
|
+
* @deprecated Pass the machine user name directly as a string instead, e.g. `authInvoker: "machine-user-name"`.
|
|
1662
|
+
* Using this function pulls config-layer (Node-only) dependencies into runtime bundles.
|
|
1663
|
+
*/
|
|
1659
1664
|
invoker<M extends MachineUserNames>(machineUser: M): AuthInvokerWithName<M>;
|
|
1660
1665
|
getConnectionToken<C extends ConnectionNames<Config>>(connectionName: C): Promise<AuthConnectionTokenResult>;
|
|
1661
1666
|
} & AuthDefinitionBrand;
|
|
@@ -2070,4 +2075,4 @@ interface Plugin<TypeConfig = unknown, PluginConfig = unknown> {
|
|
|
2070
2075
|
}
|
|
2071
2076
|
//#endregion
|
|
2072
2077
|
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-
|
|
2078
|
+
//# sourceMappingURL=plugin-D6P4g_2L.d.mts.map
|