@tailor-platform/sdk 1.70.1 → 1.71.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 (38) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{authconnection-BIYzEh2p.d.mts → authconnection-CqfaJfrC.d.mts} +8 -15
  3. package/dist/{authconnection-Ds2Ahpum.mjs → authconnection-D7lsvsKY.mjs} +2 -2
  4. package/dist/authconnection-D7lsvsKY.mjs.map +1 -0
  5. package/dist/cli/index.mjs +1 -1
  6. package/dist/cli/lib.d.mts +7 -6
  7. package/dist/cli/lib.mjs +1 -1
  8. package/dist/completion/zsh-worker.zsh +1 -1
  9. package/dist/configure/index.d.mts +5 -4
  10. package/dist/configure/index.mjs.map +1 -1
  11. package/dist/{index-C-vsbx27.d.mts → index-BDBU7x-i.d.mts} +2 -2
  12. package/dist/{index-dKNk8hjo.d.mts → index-BSlv_YrG.d.mts} +2 -2
  13. package/dist/{index-BAEaAqmz.d.mts → index-BzGqTY5x.d.mts} +16 -4
  14. package/dist/{index-CKI0eZP6.d.mts → index-D3_Au3wu.d.mts} +2 -2
  15. package/dist/{index-CrqOgUF2.d.mts → index-DtFRlrww.d.mts} +2 -2
  16. package/dist/{index-DESLU9kI.d.mts → index-jeE3UvF2.d.mts} +2 -2
  17. package/dist/mock-wf5qeZLi.mjs.map +1 -1
  18. package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
  19. package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
  20. package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
  21. package/dist/plugin/builtin/seed/index.d.mts +1 -1
  22. package/dist/runtime/authconnection.d.mts +1 -1
  23. package/dist/runtime/authconnection.mjs +1 -1
  24. package/dist/runtime/globals.d.mts +1 -1
  25. package/dist/runtime/index.d.mts +2 -2
  26. package/dist/runtime/index.mjs +1 -1
  27. package/dist/{runtime-BpHVwifd.mjs → runtime-Cd375HD-.mjs} +23 -10
  28. package/dist/runtime-Cd375HD-.mjs.map +1 -0
  29. package/dist/{types-Dynq4AJv.d.mts → types-aqnqTCfO.d.mts} +4 -342
  30. package/dist/types-v_ErzNUF.d.mts +345 -0
  31. package/dist/utils/test/index.d.mts +2 -2
  32. package/dist/vitest/index.d.mts +4 -3
  33. package/dist/{workflow.generated-DJULCuRr.d.mts → workflow.generated-Da1zECDw.d.mts} +3 -2
  34. package/docs/services/auth.md +10 -8
  35. package/docs/testing.md +1 -1
  36. package/package.json +1 -1
  37. package/dist/authconnection-Ds2Ahpum.mjs.map +0 -1
  38. package/dist/runtime-BpHVwifd.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.71.0
4
+ ### Minor Changes
5
+
6
+
7
+
8
+ - [#1605](https://github.com/tailor-platform/sdk/pull/1605) [`6eda76b`](https://github.com/tailor-platform/sdk/commit/6eda76b1ca59d39c0a7fe093dcb39b7e2427f006) Thanks [@toiroakr](https://github.com/toiroakr)! - Narrow auth connection names when calling `getConnectionToken()` outside of `defineAuth()`. When you call `tailor.authconnection.getConnectionToken(...)` or `authconnection.getConnectionToken(...)` (imported from `@tailor-platform/sdk/runtime`), the connection name is now type-checked and autocompleted against the connections defined in `defineAuth()`'s `connections` field, and the resolved token is typed instead of `any`. Run `tailor-sdk generate` (or `deploy`) to refresh `tailor.d.ts` after defining new connections.
9
+
10
+ Deprecate `auth.getConnectionToken()` (the method on `defineAuth()`'s return value). Prefer `authconnection.getConnectionToken(...)` from `@tailor-platform/sdk/runtime` — it does not require importing `auth` from `tailor.config.ts` into runtime files, avoiding bundling config-layer (Node-only) dependencies, the same reasoning behind the existing `auth.invoker()` deprecation.
11
+
12
+ Fix the resolved token type to match what the platform actually returns: only `access_token`. The previous type also listed `refresh_token`, `token_type`, and `expiry`, none of which are ever present in the response.
13
+
14
+ Fix connection name narrowing to also apply when only `@tailor-platform/sdk/runtime` is imported (without ever importing from the main `@tailor-platform/sdk` entry). `mockAuthconnection()` (from `@tailor-platform/sdk/vitest`) is now typed the same way, replacing its previous `any`-typed token payload.
15
+
3
16
  ## 1.70.1
4
17
  ### Patch Changes
5
18
 
@@ -1,17 +1,10 @@
1
+ import { n as AuthConnectionTokenResult$1 } from "./types-v_ErzNUF.mjs";
2
+ import { ConnectionName } from "@tailor-platform/sdk";
3
+
4
+ //#region src/runtime/authconnection.d.ts
1
5
  declare namespace authconnection_d_exports {
2
6
  export { TailorAuthconnectionAPI, getConnectionToken };
3
7
  }
4
- /**
5
- * Auth connection utilities.
6
- *
7
- * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.
8
- * At runtime this delegates to `globalThis.tailor.authconnection`. Use
9
- * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.
10
- * @example
11
- * import { authconnection } from "@tailor-platform/sdk/runtime";
12
- *
13
- * const token = await authconnection.getConnectionToken("my-connection");
14
- */
15
8
  /**
16
9
  * Platform API surface for `tailor.authconnection`. Describes the shape the
17
10
  * platform runtime injects on `globalThis.tailor.authconnection`.
@@ -24,16 +17,16 @@ interface TailorAuthconnectionAPI {
24
17
  /**
25
18
  * Returns the access token for the given auth connection.
26
19
  * @param connectionName - Auth connection name as defined in tailor.config
27
- * @returns Token payload (provider-specific shape)
20
+ * @returns Token payload
28
21
  */
29
- getConnectionToken(connectionName: string): Promise<any>;
22
+ getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult$1>;
30
23
  }
31
24
  /**
32
25
  * See {@link TailorAuthconnectionAPI.getConnectionToken}.
33
26
  * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}
34
- * @returns Token payload (provider-specific shape)
27
+ * @returns Token payload
35
28
  */
36
29
  declare const getConnectionToken: TailorAuthconnectionAPI["getConnectionToken"];
37
30
  //#endregion
38
31
  export { authconnection_d_exports as n, getConnectionToken as r, TailorAuthconnectionAPI as t };
39
- //# sourceMappingURL=authconnection-BIYzEh2p.d.mts.map
32
+ //# sourceMappingURL=authconnection-CqfaJfrC.d.mts.map
@@ -7,10 +7,10 @@ const api = () => globalThis.tailor.authconnection;
7
7
  /**
8
8
  * See {@link TailorAuthconnectionAPI.getConnectionToken}.
9
9
  * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}
10
- * @returns Token payload (provider-specific shape)
10
+ * @returns Token payload
11
11
  */
12
12
  const getConnectionToken = (...args) => api().getConnectionToken(...args);
13
13
 
14
14
  //#endregion
15
15
  export { getConnectionToken as n, authconnection_exports as t };
16
- //# sourceMappingURL=authconnection-Ds2Ahpum.mjs.map
16
+ //# sourceMappingURL=authconnection-D7lsvsKY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authconnection-D7lsvsKY.mjs","names":[],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n *\n * `connectionName` is narrowed to the connection names defined in `defineAuth()`'s\n * `connections` once `tailor.d.ts` has been generated (via `tailor-sdk deploy`/`generate`).\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\nimport type { AuthConnectionTokenResult } from \"#/configure/services/auth/types\";\n// Import from the public entry (not `#/configure/types/connection-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — a single\n// generated `declare module \"@tailor-platform/sdk\"` then narrows this entry too.\nimport type { ConnectionName } from \"@tailor-platform/sdk\";\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n *\n * Each method below is also re-exported as a top-level named export from this\n * module so callers can either `import * as authconnection from\n * \"@tailor-platform/sdk/runtime/authconnection\"` or pick individual methods.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload\n */\n getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor.authconnection;\n\n/**\n * See {@link TailorAuthconnectionAPI.getConnectionToken}.\n * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}\n * @returns Token payload\n */\nexport const getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n"],"mappings":";;;;;AAsCA,MAAM,YACH,WAAuE,OAAO;;;;;;AAOjF,MAAa,sBAAqE,GAAG,SACnF,IAAI,CAAC,CAAC,mBAAmB,GAAG,IAAI"}
@@ -3,7 +3,7 @@
3
3
  import { C as CustomDomainStatus, R as FunctionExecution_Type, mt as AuthInvokerSchema, xt as PATScope } from "../service_pb-BsBR6yW5.mjs";
4
4
  import { t as assertDefined } from "../assert-CKfwrmCV.mjs";
5
5
  import { n as logger, r as styles } from "../logger-DKF-JsAK.mjs";
6
- import { $t as generateAllTypeManifestsFromSnapshot, A as listCommand$12, An as apiCommand, Bn as paginationArgs, C as listCommand$13, Cn as getNamespacesWithMigrations, Dn as PluginManager, Dt as listCommand$6, E as waitCommand, En as sdkNameLabelKey, F as generateCommand$1, Fn as configArg, G as removeCommand$1, Gt as deploy, H as extractOwnedNamespaces, Hn as workspaceArgs, Ht as formatKeyValueTable, I as generateMigrationScript, In as confirmationArgs, It as getCommand$6, K as updateCommand$3, Kt as executeScript, L as writeDbTypesFile, Ln as deploymentArgs, Mn as assertWritable, N as truncateCommand, Nn as defineAppCommand, O as resumeCommand, On as generateUserTypes, Pn as commonArgs, Pt as startCommand, Q as getCommand$5, Qt as compareSnapshotWithRemote, R as getConfiguredEditorCommand, Rn as isVerbose, Rt as executionsCommand, Sn as hasChanges, T as healthCommand, Tn as resourceTrn, Tt as triggerCommand, U as logBetaWarning, Ut as getCommand$1, V as showCommand, Vn as toPageDirection, Vt as functionExecutionStatusToString, X as listCommand$11, Xt as handleOptionalToRequiredError, Y as treeCommand, Yt as MIGRATION_LABEL_KEY, Zt as parseMigrationLabelNumber, _n as reconstructSnapshotFromMigrations, b as createCommand$4, c as listCommand$14, ct as createCommand$3, en as protoGqlPermission, et as updateCommand$2, f as restoreCommand, fn as getMigrationFilePath, ft as getCommand$3, g as getCommand$7, gn as loadDiff, gt as listCommand$8, hn as isValidMigrationNumber, ht as tokenCommand, i as updateCommand$4, it as getCommand$4, jt as jobsCommand, kn as prompt, ln as createSnapshotFromLocalTypes, m as listCommand$15, nt as listCommand$10, o as removeCommand, on as assertValidMigrationFiles, ot as deleteCommand$3, pn as getMigrationFiles, r as queryCommand, rn as INITIAL_SCHEMA_NUMBER, sn as compareLocalTypesWithSnapshot, t as isNativeTypeScriptRuntime, u as inviteCommand, un as getLatestMigrationNumber, ut as listCommand$9, v as deleteCommand$4, vn as formatMigrationNumber, vt as generate, wn as ensureConfigId, wt as webhookCommand, xn as formatMigrationDiff, xt as getCommand$2, yn as parseMigrationNumberArg, yt as listCommand$7, z as openInConfiguredEditor, zn as pagedLogArgs } from "../runtime-BpHVwifd.mjs";
6
+ import { $t as generateAllTypeManifestsFromSnapshot, A as listCommand$12, An as apiCommand, Bn as paginationArgs, C as listCommand$13, Cn as getNamespacesWithMigrations, Dn as PluginManager, Dt as listCommand$6, E as waitCommand, En as sdkNameLabelKey, F as generateCommand$1, Fn as configArg, G as removeCommand$1, Gt as deploy, H as extractOwnedNamespaces, Hn as workspaceArgs, Ht as formatKeyValueTable, I as generateMigrationScript, In as confirmationArgs, It as getCommand$6, K as updateCommand$3, Kt as executeScript, L as writeDbTypesFile, Ln as deploymentArgs, Mn as assertWritable, N as truncateCommand, Nn as defineAppCommand, O as resumeCommand, On as generateUserTypes, Pn as commonArgs, Pt as startCommand, Q as getCommand$5, Qt as compareSnapshotWithRemote, R as getConfiguredEditorCommand, Rn as isVerbose, Rt as executionsCommand, Sn as hasChanges, T as healthCommand, Tn as resourceTrn, Tt as triggerCommand, U as logBetaWarning, Ut as getCommand$1, V as showCommand, Vn as toPageDirection, Vt as functionExecutionStatusToString, X as listCommand$11, Xt as handleOptionalToRequiredError, Y as treeCommand, Yt as MIGRATION_LABEL_KEY, Zt as parseMigrationLabelNumber, _n as reconstructSnapshotFromMigrations, b as createCommand$4, c as listCommand$14, ct as createCommand$3, en as protoGqlPermission, et as updateCommand$2, f as restoreCommand, fn as getMigrationFilePath, ft as getCommand$3, g as getCommand$7, gn as loadDiff, gt as listCommand$8, hn as isValidMigrationNumber, ht as tokenCommand, i as updateCommand$4, it as getCommand$4, jt as jobsCommand, kn as prompt, ln as createSnapshotFromLocalTypes, m as listCommand$15, nt as listCommand$10, o as removeCommand, on as assertValidMigrationFiles, ot as deleteCommand$3, pn as getMigrationFiles, r as queryCommand, rn as INITIAL_SCHEMA_NUMBER, sn as compareLocalTypesWithSnapshot, t as isNativeTypeScriptRuntime, u as inviteCommand, un as getLatestMigrationNumber, ut as listCommand$9, v as deleteCommand$4, vn as formatMigrationNumber, vt as generate, wn as ensureConfigId, wt as webhookCommand, xn as formatMigrationDiff, xt as getCommand$2, yn as parseMigrationNumberArg, yt as listCommand$7, z as openInConfiguredEditor, zn as pagedLogArgs } from "../runtime-Cd375HD-.mjs";
7
7
  import { $ as initOperatorClient, A as loadAccessToken, B as saveUserTokens, C as hashContent$1, D as fetchLatestToken, E as deleteUserTokens, F as loadStoredUserTokens, H as closeConnectionPool, I as loadWorkspaceId, J as fetchUserInfo, K as fetchPaged, L as platformConfigFromProfile, M as loadConsoleBaseUrl, N as loadMachineUserName, O as hasAnyUserTokenEntry, Q as initOAuth2Client, R as readPlatformConfig, S as getDistDir, T as loadConfig, U as defaultPlatformBaseUrl, V as writePlatformConfig, W as fetchAll, _ as createLogLevelTreeshakeOptions, a as WorkflowJobSchema, c as INVOKER_EXPR, et as isDefaultPlatform, g as composeFunctionTreeshakeOptions, h as platformBundleDefinePlugin, i as resolveInlineSourcemap, k as hasUserTokenEntry, o as ResolverSchema, q as fetchPlatformMachineUserToken, t as defineApplication, v as resolveBundleLogLevel, z as resolveUserTokenKey } from "../application-DmjIKQ-a.mjs";
8
8
  import { n as ExecutorSchema } from "../service-B2Jd9CxS.mjs";
9
9
  import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
@@ -1,10 +1,11 @@
1
1
  import { s as PluginAttachment } from "../types-rj8YJcEe.mjs";
2
- import { A as IncomingWebhookTrigger, L as TailorDBType, M as ScheduleTriggerInput, R as TypeSourceInfoEntry, S as Resolver, T as Executor, a as Plugin, ot as IdProvider, st as OAuth2Client$1 } from "../types-Dynq4AJv.mjs";
3
- import { i as AppConfig } from "../workflow.generated-DJULCuRr.mjs";
4
- import { n as kyselyTypePlugin } from "../index-DESLU9kI.mjs";
5
- import { n as enumConstantsPlugin } from "../index-C-vsbx27.mjs";
6
- import { n as fileUtilsPlugin } from "../index-CrqOgUF2.mjs";
7
- import { n as seedPlugin } from "../index-CKI0eZP6.mjs";
2
+ import { C as OAuth2Client$1, S as IdProvider } from "../types-v_ErzNUF.mjs";
3
+ import { A as IncomingWebhookTrigger, L as TailorDBType, M as ScheduleTriggerInput, R as TypeSourceInfoEntry, S as Resolver, T as Executor, a as Plugin } from "../types-aqnqTCfO.mjs";
4
+ import { i as AppConfig } from "../workflow.generated-Da1zECDw.mjs";
5
+ import { n as kyselyTypePlugin } from "../index-jeE3UvF2.mjs";
6
+ import { n as enumConstantsPlugin } from "../index-BDBU7x-i.mjs";
7
+ import { n as fileUtilsPlugin } from "../index-DtFRlrww.mjs";
8
+ import { n as seedPlugin } from "../index-D3_Au3wu.mjs";
8
9
  import { z } from "zod";
9
10
  import { JsonObject, Message } from "@bufbuild/protobuf";
10
11
  import { GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
package/dist/cli/lib.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { t as assertDefined } from "../assert-CKfwrmCV.mjs";
3
- import { $ as getOrganization, At as getExecutorWaitFailureMessage, B as show, Bt as listWorkflowExecutions, Cn as getNamespacesWithMigrations, Ct as listWebhookExecutors, D as waitWorkflowExecution, Et as triggerExecutor, Ft as startWorkflow, Gt as deploy, J as organizationTree, Jt as bundleMigrationScript, Kt as executeScript, Lt as getWorkflow, M as truncate, Mt as listExecutorJobs, Nt as watchExecutorJob, On as generateUserTypes, Ot as listExecutors, P as generate$1, S as listApps, Sn as hasChanges, St as getFunctionRegistry, W as remove, Wt as getExecutor, Yt as MIGRATION_LABEL_KEY, Z as listOrganizations, _ as getWorkspace, _n as reconstructSnapshotFromMigrations, _t as listMachineUsers, a as updateUser, an as SCHEMA_FILE_NAME, at as getFolder, bn as formatDiffSummary, bt as listFunctionRegistries, cn as compareSnapshots, d as inviteUser, dn as getMigrationDirPath, dt as listOAuth2Clients, fn as getMigrationFilePath, h as listWorkspaces, in as MIGRATE_FILE_NAME, j as listWorkflows, jn as apiCall, k as resumeWorkflow, kt as getExecutorJob, l as listUsers, ln as createSnapshotFromLocalTypes, lt as createFolder, mn as getNextMigrationNumber, mt as getMachineUserToken, n as query, nn as DIFF_FILE_NAME, p as restoreWorkspace, pn as getMigrationFiles, pt as getOAuth2Client, q as updateOrganization, qt as waitForExecution, rn as INITIAL_SCHEMA_NUMBER, rt as listFolders, s as removeUser, sn as compareLocalTypesWithSnapshot, st as deleteFolder, t as isNativeTypeScriptRuntime, tn as DB_TYPES_FILE_NAME, tt as updateFolder, un as getLatestMigrationNumber, vt as generate, w as getAppHealth, x as createWorkspace, xn as formatMigrationDiff, y as deleteWorkspace, zt as getWorkflowExecution } from "../runtime-BpHVwifd.mjs";
3
+ import { $ as getOrganization, At as getExecutorWaitFailureMessage, B as show, Bt as listWorkflowExecutions, Cn as getNamespacesWithMigrations, Ct as listWebhookExecutors, D as waitWorkflowExecution, Et as triggerExecutor, Ft as startWorkflow, Gt as deploy, J as organizationTree, Jt as bundleMigrationScript, Kt as executeScript, Lt as getWorkflow, M as truncate, Mt as listExecutorJobs, Nt as watchExecutorJob, On as generateUserTypes, Ot as listExecutors, P as generate$1, S as listApps, Sn as hasChanges, St as getFunctionRegistry, W as remove, Wt as getExecutor, Yt as MIGRATION_LABEL_KEY, Z as listOrganizations, _ as getWorkspace, _n as reconstructSnapshotFromMigrations, _t as listMachineUsers, a as updateUser, an as SCHEMA_FILE_NAME, at as getFolder, bn as formatDiffSummary, bt as listFunctionRegistries, cn as compareSnapshots, d as inviteUser, dn as getMigrationDirPath, dt as listOAuth2Clients, fn as getMigrationFilePath, h as listWorkspaces, in as MIGRATE_FILE_NAME, j as listWorkflows, jn as apiCall, k as resumeWorkflow, kt as getExecutorJob, l as listUsers, ln as createSnapshotFromLocalTypes, lt as createFolder, mn as getNextMigrationNumber, mt as getMachineUserToken, n as query, nn as DIFF_FILE_NAME, p as restoreWorkspace, pn as getMigrationFiles, pt as getOAuth2Client, q as updateOrganization, qt as waitForExecution, rn as INITIAL_SCHEMA_NUMBER, rt as listFolders, s as removeUser, sn as compareLocalTypesWithSnapshot, st as deleteFolder, t as isNativeTypeScriptRuntime, tn as DB_TYPES_FILE_NAME, tt as updateFolder, un as getLatestMigrationNumber, vt as generate, w as getAppHealth, x as createWorkspace, xn as formatMigrationDiff, y as deleteWorkspace, zt as getWorkflowExecution } from "../runtime-Cd375HD-.mjs";
4
4
  import { $ as initOperatorClient, A as loadAccessToken, I as loadWorkspaceId, S as getDistDir, T as loadConfig, h as platformBundleDefinePlugin } from "../application-DmjIKQ-a.mjs";
5
5
  import { n as enumConstantsPlugin } from "../enum-constants-C7DaWeQo.mjs";
6
6
  import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
@@ -1,5 +1,5 @@
1
1
  # politty-completion-version: 1
2
- # politty-bin-sig: 1782875644
2
+ # politty-bin-sig: 1782903555
3
3
  # politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor-sdk
4
4
  # program: tailor-sdk
5
5
  # shell: zsh
@@ -1,7 +1,8 @@
1
1
  /// <reference types="@tailor-platform/sdk/runtime/globals" />
2
2
  import { c as TailorUser, n as AttributeMap, r as Env, s as TailorInvoker, t as AttributeList } from "../types-DTcZ2Yax.mjs";
3
3
  import { s as PluginAttachment } from "../types-rj8YJcEe.mjs";
4
- import { $ as UserAttributeListKey, B as AuthConnectionTokenResult, G as BeforeLoginHookArgs, H as AuthOwnConfig, J as FederatedIdentityClaims, K as DefinedAuth, Q as UserAttributeKey, S as Resolver, U as AuthServiceInput, V as AuthExternalConfig, W as BeforeLoginClaims, X as OAuth2ClientGrantType, Y as FederatedIdentityProvider, Z as SCIMAttributeType, _ as ResolverReadyContext, _t as AuthConnectionConfig, a as Plugin, at as IDToken, b as TailorDBTypeForPlugin, c as PluginExecutorContextBase, ct as OAuth2ClientInput, d as PluginGeneratedResolver, dt as SCIMAttribute, et as UserAttributeMap, f as PluginGeneratedType, ft as SCIMAttributeMapping, g as ResolverNamespaceData, gt as TenantProvider, h as PluginProcessContext, ht as SCIMResource, i as NamespacePluginOutput, it as BuiltinIdP, l as PluginGeneratedExecutor, lt as OIDC, m as PluginOutput, mt as SCIMConfig, nt as ValueOperand, o as PluginConfigs, ot as IdProvider, p as PluginNamespaceProcessContext, pt as SCIMAuthorization, q as FederatedIdentity, r as GeneratorResult, s as PluginExecutorContext, t as ExecutorReadyContext, tt as UsernameFieldKey, u as PluginGeneratedExecutorWithFile, ut as SAML, v as TailorDBNamespaceData, vt as AuthConnectionOAuth2Config, x as TypePluginOutput, y as TailorDBReadyContext, z as AuthConfig } from "../types-Dynq4AJv.mjs";
5
- import { A as TailorDBInstance, D as TailorAnyDBField, F as TailorTypePermission, I as unsafeAllowAllGqlPermission, L as unsafeAllowAllTypePermission, M as db, N as PermissionCondition, O as TailorAnyDBType, P as TailorTypeGqlPermission, S as IdPGqlOperationsInput, _ as IdPConfig, a as ExecutorServiceConfig, b as IdPEmailConfig, c as ResolverServiceConfig, d as WorkflowServiceInput, f as StaticWebsiteConfig, h as SecretsConfig, j as TailorDBType, k as TailorDBField, l as ResolverServiceInput, n as RetryPolicy, o as ExecutorServiceInput, s as ResolverExternalConfig, t as ConcurrencyPolicy, u as WorkflowServiceConfig, v as IdPExternalConfig, w as AIGatewayConfig, x as IdPGqlOperations } from "../workflow.generated-DJULCuRr.mjs";
6
- import { $ as ResolverExecutedArgs, A as IncomingWebhookArgs, At as defineAuth, B as AuthAccessTokenArgs, C as defineAIGateway, Ct as WorkflowJob, D as defineWaitPoints, Dt as QueryType, E as defineWaitPoint, Et as WORKFLOW_TEST_ENV_KEY, F as IncomingWebhookTriggerOptions, Ft as MachineUserNameRegistry, G as IdpUserArgs, H as AuthAccessTokenRefreshedArgs, I as incomingWebhookTrigger, It as TailorField, J as IdpUserTrigger, K as IdpUserCreatedArgs, L as ScheduleArgs, M as IncomingWebhookResponse, Mt as IdpNameRegistry, N as IncomingWebhookResponseConfig, Nt as unauthenticatedTailorUser, O as createExecutor, Ot as createResolver, P as IncomingWebhookTrigger, Pt as MachineUserName, Q as RecordUpdatedArgs, R as ScheduleTrigger, S as unsafeAllowAllIdPPermission, St as createWorkflow, T as WaitPointInstance, Tt as createWorkflowJob, U as AuthAccessTokenRevokedArgs, V as AuthAccessTokenIssuedArgs, W as AuthAccessTokenTrigger, X as RecordCreatedArgs, Y as IdpUserUpdatedArgs, Z as RecordDeletedArgs, _ as createHttpAdapter, _t as Operation, a as defineGenerators, at as authAccessTokenTrigger, b as IdPPermission, bt as Workflow, c as HttpAdapterGraphQLQuery, ct as idpUserTrigger, d as HttpAdapterInput, dt as recordDeletedTrigger, et as ResolverExecutedTrigger, f as HttpAdapterInputFn, ft as recordTrigger, g as HttpAdapterTypedDocumentNode, gt as GqlOperation, h as HttpAdapterResponse, ht as FunctionOperation, i as defineConfig, it as authAccessTokenRevokedTrigger, j as IncomingWebhookRequest, jt as IdpName, k as Trigger, kt as AuthInvoker, l as HttpAdapterGraphQLRequest, lt as idpUserUpdatedTrigger, m as HttpAdapterRequest, mt as resolverExecutedTrigger, n as output, nt as authAccessTokenIssuedTrigger, o as definePlugins, ot as idpUserCreatedTrigger, p as HttpAdapterOutputFn, pt as recordUpdatedTrigger, q as IdpUserDeletedArgs, r as t, rt as authAccessTokenRefreshedTrigger, s as HttpAdapter, st as idpUserDeletedTrigger, t as __Infer, tt as TailorDBTrigger, u as HttpAdapterGraphQLResponse, ut as recordCreatedTrigger, v as defineSecretManager, vt as WebhookOperation, w as defineStaticWebSite, wt as WorkflowJobContext, x as IdPPermissionCondition, xt as WorkflowConfig, y as defineIdp, yt as WorkflowOperation, z as scheduleTrigger } from "../index-BAEaAqmz.mjs";
7
- export { type AIGatewayConfig, type AttributeList, type AttributeMap, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, AuthInvoker, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type DefinedAuth, type Env, 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 MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedType, type PluginNamespaceProcessContext, type PluginOutput, type PluginProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, 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 TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, TailorDBTrigger, type TailorDBType, type TailorDBTypeForPlugin, type TailorField, type TailorInvoker, type TailorTypeGqlPermission, type TailorTypePermission, type TailorUser, type TenantProvider as TenantProviderConfig, Trigger, type TypePluginOutput, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WORKFLOW_TEST_ENV_KEY, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineGenerators, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWaitPoint, defineWaitPoints, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
4
+ import { A as SCIMConfig, D as SCIMAttribute, E as SAML, M as TenantProvider, N as AuthConnectionConfig, O as SCIMAttributeMapping, P as AuthConnectionOAuth2Config, S as IdProvider, T as OIDC, _ as UsernameFieldKey, a as AuthServiceInput, b as BuiltinIdP, c as DefinedAuth, d as FederatedIdentityProvider, f as OAuth2ClientGrantType, g as UserAttributeMap, h as UserAttributeListKey, i as AuthOwnConfig, j as SCIMResource, k as SCIMAuthorization, l as FederatedIdentity, m as UserAttributeKey, n as AuthConnectionTokenResult, o as BeforeLoginClaims, p as SCIMAttributeType, r as AuthExternalConfig, s as BeforeLoginHookArgs, t as AuthConfig, u as FederatedIdentityClaims, v as ValueOperand, w as OAuth2ClientInput, x as IDToken } from "../types-v_ErzNUF.mjs";
5
+ import { S as Resolver, _ as ResolverReadyContext, a as Plugin, b as TailorDBTypeForPlugin, c as PluginExecutorContextBase, d as PluginGeneratedResolver, f as PluginGeneratedType, g as ResolverNamespaceData, h as PluginProcessContext, i as NamespacePluginOutput, l as PluginGeneratedExecutor, m as PluginOutput, o as PluginConfigs, p as PluginNamespaceProcessContext, r as GeneratorResult, s as PluginExecutorContext, t as ExecutorReadyContext, u as PluginGeneratedExecutorWithFile, v as TailorDBNamespaceData, x as TypePluginOutput, y as TailorDBReadyContext } from "../types-aqnqTCfO.mjs";
6
+ import { A as TailorDBInstance, D as TailorAnyDBField, F as TailorTypePermission, I as unsafeAllowAllGqlPermission, L as unsafeAllowAllTypePermission, M as db, N as PermissionCondition, O as TailorAnyDBType, P as TailorTypeGqlPermission, S as IdPGqlOperationsInput, _ as IdPConfig, a as ExecutorServiceConfig, b as IdPEmailConfig, c as ResolverServiceConfig, d as WorkflowServiceInput, f as StaticWebsiteConfig, h as SecretsConfig, j as TailorDBType, k as TailorDBField, l as ResolverServiceInput, n as RetryPolicy, o as ExecutorServiceInput, s as ResolverExternalConfig, t as ConcurrencyPolicy, u as WorkflowServiceConfig, v as IdPExternalConfig, w as AIGatewayConfig, x as IdPGqlOperations } from "../workflow.generated-Da1zECDw.mjs";
7
+ import { $ as ResolverExecutedArgs, A as IncomingWebhookArgs, At as defineAuth, B as AuthAccessTokenArgs, C as defineAIGateway, Ct as WorkflowJob, D as defineWaitPoints, Dt as QueryType, E as defineWaitPoint, Et as WORKFLOW_TEST_ENV_KEY, F as IncomingWebhookTriggerOptions, Ft as unauthenticatedTailorUser, G as IdpUserArgs, H as AuthAccessTokenRefreshedArgs, I as incomingWebhookTrigger, It as MachineUserName, J as IdpUserTrigger, K as IdpUserCreatedArgs, L as ScheduleArgs, Lt as MachineUserNameRegistry, M as IncomingWebhookResponse, Mt as ConnectionNameRegistry, N as IncomingWebhookResponseConfig, Nt as IdpName, O as createExecutor, Ot as createResolver, P as IncomingWebhookTrigger, Pt as IdpNameRegistry, Q as RecordUpdatedArgs, R as ScheduleTrigger, Rt as TailorField, S as unsafeAllowAllIdPPermission, St as createWorkflow, T as WaitPointInstance, Tt as createWorkflowJob, U as AuthAccessTokenRevokedArgs, V as AuthAccessTokenIssuedArgs, W as AuthAccessTokenTrigger, X as RecordCreatedArgs, Y as IdpUserUpdatedArgs, Z as RecordDeletedArgs, _ as createHttpAdapter, _t as Operation, a as defineGenerators, at as authAccessTokenTrigger, b as IdPPermission, bt as Workflow, c as HttpAdapterGraphQLQuery, ct as idpUserTrigger, d as HttpAdapterInput, dt as recordDeletedTrigger, et as ResolverExecutedTrigger, f as HttpAdapterInputFn, ft as recordTrigger, g as HttpAdapterTypedDocumentNode, gt as GqlOperation, h as HttpAdapterResponse, ht as FunctionOperation, i as defineConfig, it as authAccessTokenRevokedTrigger, j as IncomingWebhookRequest, jt as ConnectionName, k as Trigger, kt as AuthInvoker, l as HttpAdapterGraphQLRequest, lt as idpUserUpdatedTrigger, m as HttpAdapterRequest, mt as resolverExecutedTrigger, n as output, nt as authAccessTokenIssuedTrigger, o as definePlugins, ot as idpUserCreatedTrigger, p as HttpAdapterOutputFn, pt as recordUpdatedTrigger, q as IdpUserDeletedArgs, r as t, rt as authAccessTokenRefreshedTrigger, s as HttpAdapter, st as idpUserDeletedTrigger, t as __Infer, tt as TailorDBTrigger, u as HttpAdapterGraphQLResponse, ut as recordCreatedTrigger, v as defineSecretManager, vt as WebhookOperation, w as defineStaticWebSite, wt as WorkflowJobContext, x as IdPPermissionCondition, xt as WorkflowConfig, y as defineIdp, yt as WorkflowOperation, z as scheduleTrigger } from "../index-BzGqTY5x.mjs";
8
+ export { type AIGatewayConfig, type AttributeList, type AttributeMap, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, AuthInvoker, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type ConnectionName, type ConnectionNameRegistry, type DefinedAuth, type Env, 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 MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedType, type PluginNamespaceProcessContext, type PluginOutput, type PluginProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, 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 TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, TailorDBTrigger, type TailorDBType, type TailorDBTypeForPlugin, type TailorField, type TailorInvoker, type TailorTypeGqlPermission, type TailorTypePermission, type TailorUser, type TenantProvider as TenantProviderConfig, Trigger, type TypePluginOutput, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WORKFLOW_TEST_ENV_KEY, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineGenerators, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWaitPoint, defineWaitPoints, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };