@tailor-platform/sdk 1.33.0 → 1.33.1
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 +58 -0
- package/dist/{application-CfAom-vi.mjs → application-CYPU-WIc.mjs} +30 -23
- package/dist/application-CYPU-WIc.mjs.map +1 -0
- package/dist/application-dnB8CQiT.mjs +4 -0
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.mjs +25 -32
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +101 -12
- package/dist/cli/lib.mjs +7 -13
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.mjs +0 -1
- package/dist/cli/skills.mjs.map +1 -1
- package/dist/{client-D5P1myz0.mjs → client-CYGsf3Zl.mjs} +91 -27
- package/dist/client-CYGsf3Zl.mjs.map +1 -0
- package/dist/{client-gpRgZl1b.mjs → client-ea1w8SmG.mjs} +1 -4
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +0 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/crash-report-CbueUPaP.mjs +4 -0
- package/dist/{crash-report-DnwITWeV.mjs → crash-report-OXafT1iS.mjs} +3 -3
- package/dist/{crash-report-DnwITWeV.mjs.map → crash-report-OXafT1iS.mjs.map} +1 -1
- package/dist/{enum-constants-Piv_E-2M.mjs → enum-constants-DI85-fPE.mjs} +1 -1
- package/dist/{enum-constants-Piv_E-2M.mjs.map → enum-constants-DI85-fPE.mjs.map} +1 -1
- package/dist/{env-CSZ9CKg7.d.mts → env-BvIWsJxg.d.mts} +2 -2
- package/dist/{file-utils-B7xME5IK.mjs → file-utils-C4rXlOVt.mjs} +1 -1
- package/dist/{file-utils-B7xME5IK.mjs.map → file-utils-C4rXlOVt.mjs.map} +1 -1
- package/dist/{index-dg3Sf-No.d.mts → index-0H-YH8Ya.d.mts} +2 -2
- package/dist/{index-IHl7P_9I.d.mts → index-BM2SqNfO.d.mts} +2 -2
- package/dist/{index-uNv9YJgx.d.mts → index-BU6fmwJC.d.mts} +2 -2
- package/dist/{index-BdlrrjvD.d.mts → index-DlivLpTN.d.mts} +16 -12
- package/dist/{index-Dlpe_4Nd.d.mts → index-mAV9kYJA.d.mts} +2 -2
- package/dist/{interceptor-1LL1gBsF.mjs → interceptor-f7slMkCC.mjs} +1 -2
- package/dist/{interceptor-1LL1gBsF.mjs.map → interceptor-f7slMkCC.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +5 -1
- package/dist/kysely/index.mjs +0 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-t5MbP7iJ.mjs → kysely-type-BwMqaL3z.mjs} +17 -7
- package/dist/kysely-type-BwMqaL3z.mjs.map +1 -0
- package/dist/{package-json-VqyFvGiP.mjs → package-json-CfUqjJaQ.mjs} +1 -1
- package/dist/{package-json-VqyFvGiP.mjs.map → package-json-CfUqjJaQ.mjs.map} +1 -1
- package/dist/package-json-D5Km1jjt.mjs +4 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -2
- package/dist/plugin/index.d.mts +2 -2
- package/dist/plugin/index.mjs +0 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{plugin-BC7WQrjm.d.mts → plugin-DQqzlulP.d.mts} +23 -21
- package/dist/{runtime-3P9JFpe9.mjs → runtime-CDvdBV66.mjs} +21 -10
- package/dist/runtime-CDvdBV66.mjs.map +1 -0
- package/dist/schema-D27cW0Ca.mjs.map +1 -1
- package/dist/seed/index.mjs +0 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-DtYgudLq.mjs → seed-BZIFDG27.mjs} +1 -1
- package/dist/{seed-DtYgudLq.mjs.map → seed-BZIFDG27.mjs.map} +1 -1
- package/dist/telemetry-C508zIi1.mjs +4 -0
- package/dist/{telemetry-B4sp-dD2.mjs → telemetry-CREcGK8y.mjs} +2 -2
- package/dist/{telemetry-B4sp-dD2.mjs.map → telemetry-CREcGK8y.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +0 -2
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/{workflow.generated-Cd5dsFnf.d.mts → workflow.generated-u9MgzqbM.d.mts} +14 -3
- package/docs/cli/auth.md +1 -1
- package/docs/cli/crash-report.md +1 -1
- package/docs/cli/executor.md +2 -2
- package/docs/cli/secret.md +3 -3
- package/docs/cli/staticwebsite.md +1 -1
- package/docs/cli/tailordb.md +4 -2
- package/docs/cli/user.md +2 -2
- package/docs/cli-reference.md +116 -100
- package/docs/generator/builtin.md +1 -1
- package/docs/services/idp.md +22 -0
- package/package.json +17 -17
- package/dist/application-CfAom-vi.mjs.map +0 -1
- package/dist/application-ChVyhwe-.mjs +0 -12
- package/dist/chunk-COzJYswC.mjs +0 -9
- package/dist/client-D5P1myz0.mjs.map +0 -1
- package/dist/crash-report-Cm9vFmTN.mjs +0 -7
- package/dist/kysely-type-t5MbP7iJ.mjs.map +0 -1
- package/dist/package-json-88x7bPKC.mjs +0 -5
- package/dist/runtime-3P9JFpe9.mjs.map +0 -1
- package/dist/telemetry-DXIGGa6A.mjs +0 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
import { A as ExecutorTriggerType, C as TailorDBType_PermitAction, E as FunctionExecution_Status, F as AuthOAuth2Client_GrantType, G as Condition_Operator, H as UserProfileProviderConfig_UserProfileProviderType, I as AuthSCIMAttribute_Mutability, J as ApplicationSchemaUpdateAttemptStatus, K as FilterSchema, L as AuthSCIMAttribute_Type, M as AuthIDPConfig_AuthType, N as AuthInvokerSchema, O as ExecutorJobStatus, P as AuthOAuth2Client_ClientType, R as AuthSCIMAttribute_Uniqueness, S as TailorDBType_Permission_Permit, T as IdPLang, U as GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus, V as TenantProviderConfig_TenantProviderType, W as ConditionSchema, Y as Subgraph_ServiceType, _ as WorkflowJobExecution_Status, a as fetchMachineUserToken, b as TailorDBGQLPermission_Permit, f as platformBaseUrl, g as WorkflowExecution_Status, h as WorkspacePlatformUserRole, i as fetchAll, j as AuthHookPoint, k as ExecutorTargetType, m as userAgent, p as resolveStaticWebsiteUrls, q as PageDirection, u as initOperatorClient, v as TailorDBGQLPermission_Action, w as PipelineResolver_OperationType, x as TailorDBType_Permission_Operator, y as TailorDBGQLPermission_Operator, z as AuthSCIMConfig_AuthorizationType } from "./client-CYGsf3Zl.mjs";
|
|
2
3
|
import { t as db } from "./schema-D27cW0Ca.mjs";
|
|
3
4
|
import { i as symbols, n as logger, r as styles, t as CIPromptError } from "./logger-qz-Y4sBV.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { r as withSpan } from "./telemetry-B4sp-dD2.mjs";
|
|
5
|
+
import { t as readPackageJson } from "./package-json-CfUqjJaQ.mjs";
|
|
6
|
+
import { S as readPlatformConfig, T as writePlatformConfig, _ as hashFile, a as loadConfig, b as loadAccessToken, c as createExecutorService, d as TailorDBTypeSchema, f as stringifyFunction, g as getDistDir, h as createBundleCache, m as loadFilesWithIgnores, n as generatePluginFilesIfNeeded, p as tailorUserMap, r as loadApplication, t as defineApplication, u as OAuth2ClientSchema, x as loadWorkspaceId } from "./application-CYPU-WIc.mjs";
|
|
7
|
+
import { r as withSpan } from "./telemetry-CREcGK8y.mjs";
|
|
8
8
|
import { arg, createDefineCommand, defineCommand, runCommand } from "politty";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import * as fs$1 from "node:fs";
|
|
@@ -1627,13 +1627,20 @@ function normalizeComparableDisableGqlOperations(value) {
|
|
|
1627
1627
|
sendPasswordResetEmail: value?.sendPasswordResetEmail ?? false
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
+
function normalizeComparableEmailConfig(value) {
|
|
1631
|
+
return {
|
|
1632
|
+
fromName: value?.fromName ?? "",
|
|
1633
|
+
passwordResetSubject: value?.passwordResetSubject ?? ""
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1630
1636
|
function normalizeComparableIdPService(input) {
|
|
1631
1637
|
return {
|
|
1632
1638
|
authorization: input.authorization,
|
|
1633
1639
|
lang: input.lang === IdPLang.UNSPECIFIED ? IdPLang.EN : input.lang,
|
|
1634
1640
|
userAuthPolicy: input.userAuthPolicy,
|
|
1635
1641
|
publishUserEvents: input.publishUserEvents,
|
|
1636
|
-
disableGqlOperations: input.disableGqlOperations
|
|
1642
|
+
disableGqlOperations: input.disableGqlOperations,
|
|
1643
|
+
emailConfig: input.emailConfig
|
|
1637
1644
|
};
|
|
1638
1645
|
}
|
|
1639
1646
|
function areIdPServicesEqual(existing, desired) {
|
|
@@ -1642,7 +1649,8 @@ function areIdPServicesEqual(existing, desired) {
|
|
|
1642
1649
|
lang: existing.lang,
|
|
1643
1650
|
userAuthPolicy: normalizeComparableUserAuthPolicy(existing.userAuthPolicy),
|
|
1644
1651
|
publishUserEvents: existing.publishUserEvents,
|
|
1645
|
-
disableGqlOperations: normalizeComparableDisableGqlOperations(existing.disableGqlOperations)
|
|
1652
|
+
disableGqlOperations: normalizeComparableDisableGqlOperations(existing.disableGqlOperations),
|
|
1653
|
+
emailConfig: normalizeComparableEmailConfig(existing.emailConfig)
|
|
1646
1654
|
}), desired);
|
|
1647
1655
|
}
|
|
1648
1656
|
async function planServices$3(client, workspaceId, appName, idps) {
|
|
@@ -1692,12 +1700,14 @@ async function planServices$3(client, workspaceId, appName, idps) {
|
|
|
1692
1700
|
const lang = convertLang(idp.lang);
|
|
1693
1701
|
const userAuthPolicy = idp.userAuthPolicy;
|
|
1694
1702
|
const publishUserEvents = idp.publishUserEvents ?? false;
|
|
1703
|
+
const emailConfig = idp.emailConfig;
|
|
1695
1704
|
const desired = normalizeComparableIdPService({
|
|
1696
1705
|
authorization,
|
|
1697
1706
|
lang,
|
|
1698
1707
|
userAuthPolicy: normalizeComparableUserAuthPolicy(userAuthPolicy),
|
|
1699
1708
|
publishUserEvents,
|
|
1700
|
-
disableGqlOperations: normalizeComparableDisableGqlOperations(convertGqlOperationsToDisable(idp.gqlOperations))
|
|
1709
|
+
disableGqlOperations: normalizeComparableDisableGqlOperations(convertGqlOperationsToDisable(idp.gqlOperations)),
|
|
1710
|
+
emailConfig: normalizeComparableEmailConfig(emailConfig)
|
|
1701
1711
|
});
|
|
1702
1712
|
const request = {
|
|
1703
1713
|
workspaceId,
|
|
@@ -1706,7 +1716,8 @@ async function planServices$3(client, workspaceId, appName, idps) {
|
|
|
1706
1716
|
lang,
|
|
1707
1717
|
userAuthPolicy,
|
|
1708
1718
|
publishUserEvents,
|
|
1709
|
-
disableGqlOperations: convertGqlOperationsToDisable(idp.gqlOperations)
|
|
1719
|
+
disableGqlOperations: convertGqlOperationsToDisable(idp.gqlOperations),
|
|
1720
|
+
emailConfig
|
|
1710
1721
|
};
|
|
1711
1722
|
if (existing) {
|
|
1712
1723
|
const isManagedByApp = existing.label === appName;
|
|
@@ -11680,7 +11691,7 @@ async function generate(options) {
|
|
|
11680
11691
|
if (options.init) await handleInitOption(namespacesWithMigrations, options.yes);
|
|
11681
11692
|
let pluginManager;
|
|
11682
11693
|
if (plugins.length > 0) pluginManager = new PluginManager(plugins);
|
|
11683
|
-
const { defineApplication } = await import("./application-
|
|
11694
|
+
const { defineApplication } = await import("./application-dnB8CQiT.mjs");
|
|
11684
11695
|
const application = defineApplication({
|
|
11685
11696
|
config,
|
|
11686
11697
|
pluginManager
|
|
@@ -13885,4 +13896,4 @@ function isDeno() {
|
|
|
13885
13896
|
|
|
13886
13897
|
//#endregion
|
|
13887
13898
|
export { getFolder as $, getNextMigrationNumber as $t, listWorkflows as A, functionExecutionStatusToString as At, updateCommand$1 as B, DB_TYPES_FILE_NAME as Bt, listApps as C, startCommand as Ct, resumeCommand as D, executionsCommand as Dt, healthCommand as E, getWorkflow as Et, show as F, executeScript as Ft, listOrganizations as G, compareLocalTypesWithSnapshot as Gt, organizationTree as H, INITIAL_SCHEMA_NUMBER as Ht, showCommand as I, waitForExecution$1 as It, updateCommand$2 as J, formatMigrationNumber as Jt, getCommand$1 as K, compareSnapshots as Kt, logBetaWarning as L, MIGRATION_LABEL_KEY as Lt, truncateCommand as M, getCommand$5 as Mt, generate as N, getExecutor as Nt, resumeWorkflow as O, getWorkflowExecution as Ot, generateCommand as P, apply as Pt, getCommand$2 as Q, getMigrationFiles as Qt, remove as R, parseMigrationLabelNumber as Rt, createWorkspace as S, watchExecutorJob as St, getAppHealth as T, getCommand$4 as Tt, treeCommand as U, MIGRATE_FILE_NAME as Ut, updateOrganization as V, DIFF_FILE_NAME as Vt, listCommand$4 as W, SCHEMA_FILE_NAME as Wt, listCommand$5 as X, getMigrationDirPath as Xt, updateFolder as Y, getLatestMigrationNumber as Yt, listFolders as Z, getMigrationFilePath as Zt, getCommand as _, isVerbose as _n, listCommand$8 as _t, updateCommand as a, hasChanges as an, listOAuth2Clients as at, deleteWorkspace as b, jobsCommand as bt, removeUser as c, sdkNameLabelKey as cn, getMachineUserToken as ct, inviteCommand as d, apiCall as dn, listMachineUsers as dt, isValidMigrationNumber as en, deleteCommand$1 as et, inviteUser as f, apiCommand as fn, generate$1 as ft, listWorkspaces as g, deploymentArgs as gn, triggerExecutor as gt, listCommand$1 as h, confirmationArgs as hn, triggerCommand as ht, isCLIError as i, formatMigrationDiff as in, listCommand$6 as it, truncate as j, formatKeyValueTable as jt, listCommand$3 as k, listWorkflowExecutions as kt, listCommand as l, trnPrefix as ln, tokenCommand as lt, restoreWorkspace as m, commonArgs as mn, webhookCommand as mt, query as n, reconstructSnapshotFromMigrations as nn, createCommand$1 as nt, updateUser as o, getNamespacesWithMigrations as on, getCommand$3 as ot, restoreCommand as p, defineAppCommand as pn, listWebhookExecutors as pt, getOrganization as q, createSnapshotFromLocalTypes as qt, queryCommand as r, formatDiffSummary as rn, createFolder as rt, removeCommand as s, prompt as sn, getOAuth2Client as st, isNativeTypeScriptRuntime as t, loadDiff as tn, deleteFolder as tt, listUsers as u, generateUserTypes as un, listCommand$7 as ut, getWorkspace as v, workspaceArgs as vn, listExecutors as vt, listCommand$2 as w, startWorkflow as wt, createCommand as x, listExecutorJobs as xt, deleteCommand as y, getExecutorJob as yt, removeCommand$1 as z, bundleMigrationScript as zt };
|
|
13888
|
-
//# sourceMappingURL=runtime-
|
|
13899
|
+
//# sourceMappingURL=runtime-CDvdBV66.mjs.map
|