@tailor-platform/sdk 1.85.1 → 1.85.2
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 +12 -0
- package/dist/application-DT0NIIm1.mjs +3 -0
- package/dist/{application-m5tYtz0-.mjs → application-DT4QXGjs.mjs} +51 -6
- package/dist/application-DT4QXGjs.mjs.map +1 -0
- package/dist/cli/index.mjs +7 -7
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.mjs +2 -2
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/{register-typescript-runtime-nG-n9lPw.mjs → register-typescript-runtime-DFYkQ44K.mjs} +38 -37
- package/dist/register-typescript-runtime-DFYkQ44K.mjs.map +1 -0
- package/dist/{service_pb-D5--My_M.mjs → service_pb-DGK0mNn_.mjs} +2 -2
- package/dist/{service_pb-D5--My_M.mjs.map → service_pb-DGK0mNn_.mjs.map} +1 -1
- package/dist/{service_pb-i8CmnQP4.mjs → service_pb-_V6qjFDF.mjs} +1 -1
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +5 -1
- package/dist/types/idp.generated.d.mts +1 -1
- package/dist/{workspace_resource_pb-DXnO2AT-.mjs → workspace_resource_pb-6X2GIZDj.mjs} +2 -2
- package/dist/{workspace_resource_pb-DXnO2AT-.mjs.map → workspace_resource_pb-6X2GIZDj.mjs.map} +1 -1
- package/docs/services/idp.md +6 -3
- package/docs/services/workflow.md +1 -1
- package/package.json +1 -1
- package/dist/application-C-zsrNjn.mjs +0 -3
- package/dist/application-m5tYtz0-.mjs.map +0 -1
- package/dist/register-typescript-runtime-nG-n9lPw.mjs.map +0 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { r as parseInputFields } from "../schema-CYrle8JZ.mjs";
|
|
3
|
-
import { At as PATScope, Ct as AuthInvokerSchema, E as CustomDomainStatus, W as FunctionExecution_Type } from "../workspace_resource_pb-
|
|
3
|
+
import { At as PATScope, Ct as AuthInvokerSchema, E as CustomDomainStatus, W as FunctionExecution_Type } from "../workspace_resource_pb-6X2GIZDj.mjs";
|
|
4
4
|
import { t as assertDefined } from "../assert-DBxo8jPo.mjs";
|
|
5
5
|
import { n as logger, r as styles } from "../logger-CXQq9YIp.mjs";
|
|
6
|
-
import { $n as
|
|
7
|
-
import { A as
|
|
6
|
+
import { $n as saveUserTokens, $t as checkMigrationDiffs, An as formatMigrationDiff, At as startCommand, Bn as loadConfig, Bt as deployFromCLI, Ct as listCommand$7, Dn as formatMigrationNumber, Dt as jobsCommand, E as listCommand$13, En as reconstructSnapshotFromMigrations, F as openInConfiguredEditor, Fn as PluginManager, G as treeCommand, Gn as loadAccessToken, Gt as formatKeyValueTable, H as updateCommand$3, Hn as fetchLatestToken, In as generateUserTypes, J as getCommand$5, Jn as loadStoredUserTokens, Jt as executeScript, K as listCommand$12, Kn as loadConsoleBaseUrl, Kt as workspaceNameSchema, L as showCommand, Ln as prompt, Lt as getCommand$1, M as generateMigrationScript, Mn as getNamespacesWithMigrations, Mt as getCommand$6, N as writeDbTypesFile, Nn as resourceTrn, On as parseMigrationNumberArg, P as getConfiguredEditorCommand, Pn as sdkNameLabelKey, Pt as executionsCommand, Q as listCommand$11, Qn as resolveUserTokenKey, R as extractOwnedNamespaces, Rn as apiCall, S as waitCommand, Sn as getMigrationFiles, Tn as loadDiff, Un as hasAnyUserTokenEntry, Ut as createCommand$4, V as removeCommand$1, Vn as deleteUserTokens, Vt as listCommand$16, Wn as hasUserTokenEntry, X as updateCommand$2, Xn as platformConfigFromProfile, Xt as functionExecutionStatusToString, Yn as loadWorkspaceId, Zn as readPlatformConfig, Zt as joinFunctionLogMessages, _n as createSnapshotFromLocalTypes, _t as getCommand$2, an as parseMigrationLabelNumber, ar as deploymentArgs, bt as webhookCommand, c as listCommand$15, cn as protoGqlPermission, cr as pagedLogArgs, ct as getCommand$3, dn as INITIAL_SCHEMA_NUMBER, dr as toPageDirection, dt as tokenCommand, en as logRemoteDriftGuidance, er as writePlatformConfig, et as getCommand$4, f as restoreCommand, fr as workspaceArgs, ft as listCommand$9, g as deleteCommand$5, hn as compareLocalTypesWithSnapshot, ht as listCommand$8, i as updateCommand$4, in as handleOptionalToRequiredError, ir as confirmationArgs, it as createCommand$3, j as generateCommand$1, jn as hasChanges, k as truncateCommand, kn as formatDiffSummary, lr as paginationArgs, m as getCommand$7, mn as assertValidMigrationFiles, mt as generate, nn as verifyRemoteSchema, nr as commonArgs, nt as deleteCommand$4, o as removeCommand, on as compareSnapshotWithRemote, or as isVerbose, ot as listCommand$10, qn as loadMachineUserName, qt as ensureConfigId, r as queryCommand, rn as MIGRATION_LABEL_KEY, rr as configArg, sn as generateAllTypeManifestsFromSnapshot, sr as multiConfigArg, t as registerTypeScriptRuntime, tn as toTailorDBDeployInput, tr as defineAppCommand, u as inviteCommand, ur as resolveMachineUserInputSource, vn as formatSchemaDrifts, w as resumeCommand, wn as isValidMigrationNumber, x as healthCommand, xn as getMigrationFilePath, xt as triggerCommand, y as listCommand$14, yn as getLatestMigrationNumber, z as logBetaWarning, zn as assertWritable } from "../register-typescript-runtime-DFYkQ44K.mjs";
|
|
7
|
+
import { A as getDistDir, B as fetchUserInfo, C as composeFunctionTreeshakeOptions, E as createBundleLog, F as fetchAll, G as initOAuth2Client, I as fetchAllTolerant, K as initOperatorClient, N as closeConnectionPool, P as defaultPlatformBaseUrl, R as fetchPaged, S as platformBundleDefinePlugin, T as resolveBundleLogLevel, U as getOrNull, b as createTsconfigPathsPlugin, c as WorkflowJobSchema, d as INVOKER_EXPR, h as assertUniqueLocalTailorDBTypeNames, j as hashContent$1, l as ResolverSchema, m as buildResolverPermissionAndInputCheckExpr, o as resolveInlineSourcemap, q as isDefaultPlatform, t as defineApplication, w as createLogLevelTreeshakeOptions, x as resolveTSConfigWithFallback, y as createGeneratedEntryResolverPlugin, z as fetchPlatformMachineUserToken } from "../application-DT4QXGjs.mjs";
|
|
8
8
|
import { n as ExecutorSchema } from "../service-CPJWhTLn.mjs";
|
|
9
9
|
import { t as multiline } from "../multiline-sfHpTZZK.mjs";
|
|
10
10
|
import { t as isPluginGeneratedType } from "../type-source-DH_LH20p.mjs";
|
|
11
11
|
import { t as readPackageJson } from "../package-json-8b0O9TlX.mjs";
|
|
12
12
|
import { t as userAgent } from "../user-agent-DX2Jnw0-.mjs";
|
|
13
13
|
import { n as errorToJson, r as isCLIError, t as createCLIError } from "../errors-DVFS0AZk.mjs";
|
|
14
|
-
import { t as OperatorService } from "../service_pb-
|
|
14
|
+
import { t as OperatorService } from "../service_pb-DGK0mNn_.mjs";
|
|
15
15
|
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-DMYuHnBN.mjs";
|
|
16
16
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
17
17
|
import { withCompletionCommand } from "politty/completion";
|
|
@@ -1455,7 +1455,7 @@ function toFunctionExecutionListInfo(execution) {
|
|
|
1455
1455
|
function toFunctionExecutionDetailInfo(execution) {
|
|
1456
1456
|
return {
|
|
1457
1457
|
...toFunctionExecutionListInfo(execution),
|
|
1458
|
-
logs: execution.
|
|
1458
|
+
logs: joinFunctionLogMessages(execution.logEntries),
|
|
1459
1459
|
result: execution.result,
|
|
1460
1460
|
error: execution.error ? {
|
|
1461
1461
|
name: execution.error.name,
|
|
@@ -6846,7 +6846,7 @@ async function fetchRemoteTypes(client, workspaceId, namespace) {
|
|
|
6846
6846
|
async function assertMigrationsReproduceLocalTypes(loaded, target) {
|
|
6847
6847
|
const { config, plugins } = loaded;
|
|
6848
6848
|
const pluginManager = plugins.length > 0 ? new PluginManager(plugins) : void 0;
|
|
6849
|
-
const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-
|
|
6849
|
+
const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-DT0NIIm1.mjs");
|
|
6850
6850
|
const application = defineApplication({
|
|
6851
6851
|
config,
|
|
6852
6852
|
pluginManager
|
|
@@ -7154,7 +7154,7 @@ async function collectValidationReports(options) {
|
|
|
7154
7154
|
const targetNamespaces = options.namespace ? namespacesWithMigrations.filter((ns) => ns.namespace === options.namespace) : namespacesWithMigrations;
|
|
7155
7155
|
if (targetNamespaces.length === 0) throw new Error(`Namespace "${options.namespace}" not found or does not have migrations configured`);
|
|
7156
7156
|
const pluginManager = plugins.length > 0 ? new PluginManager(plugins) : void 0;
|
|
7157
|
-
const { defineApplication } = await import("../application-
|
|
7157
|
+
const { defineApplication } = await import("../application-DT0NIIm1.mjs");
|
|
7158
7158
|
const application = defineApplication({
|
|
7159
7159
|
config,
|
|
7160
7160
|
pluginManager
|