@tailor-platform/sdk 1.85.1 → 1.85.3

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.
@@ -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-DXnO2AT-.mjs";
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 writePlatformConfig, $t as logRemoteDriftGuidance, An as hasChanges, At as startCommand, Bn as deleteUserTokens, Cn as isValidMigrationNumber, Ct as listCommand$7, Dn as parseMigrationNumberArg, Dt as jobsCommand, E as listCommand$13, En as formatMigrationNumber, F as openInConfiguredEditor, Fn as generateUserTypes, G as treeCommand, Gn as loadConsoleBaseUrl, H as updateCommand$3, Hn as hasAnyUserTokenEntry, Ht as listCommand$16, In as prompt, J as getCommand$5, Jn as loadWorkspaceId, Jt as ensureConfigId, K as listCommand$12, Kn as loadMachineUserName, Kt as formatKeyValueTable, L as showCommand, Ln as apiCall, Lt as functionExecutionStatusToString, M as generateMigrationScript, Mn as resourceTrn, Mt as getCommand$6, N as writeDbTypesFile, Nn as sdkNameLabelKey, On as formatDiffSummary, P as getConfiguredEditorCommand, Pn as PluginManager, Pt as executionsCommand, Q as listCommand$11, Qn as saveUserTokens, Qt as checkMigrationDiffs, R as extractOwnedNamespaces, Rn as assertWritable, Rt as getCommand$1, S as waitCommand, Tn as reconstructSnapshotFromMigrations, Un as hasUserTokenEntry, V as removeCommand$1, Vn as fetchLatestToken, Vt as deployFromCLI, Wn as loadAccessToken, Wt as createCommand$4, X as updateCommand$2, Xn as readPlatformConfig, Yn as platformConfigFromProfile, Yt as executeScript, Zn as resolveUserTokenKey, _n as formatSchemaDrifts, _t as getCommand$2, an as compareSnapshotWithRemote, ar as isVerbose, bn as getMigrationFilePath, bt as webhookCommand, c as listCommand$15, cr as paginationArgs, ct as getCommand$3, dr as workspaceArgs, dt as tokenCommand, en as toTailorDBDeployInput, er as defineAppCommand, et as getCommand$4, f as restoreCommand, ft as listCommand$9, g as deleteCommand$5, gn as createSnapshotFromLocalTypes, ht as listCommand$8, i as updateCommand$4, in as parseMigrationLabelNumber, ir as deploymentArgs, it as createCommand$3, j as generateCommand$1, jn as getNamespacesWithMigrations, k as truncateCommand, kn as formatMigrationDiff, lr as resolveMachineUserInputSource, m as getCommand$7, mn as compareLocalTypesWithSnapshot, mt as generate, nn as MIGRATION_LABEL_KEY, nr as configArg, nt as deleteCommand$4, o as removeCommand, on as generateAllTypeManifestsFromSnapshot, or as multiConfigArg, ot as listCommand$10, pn as assertValidMigrationFiles, qn as loadStoredUserTokens, qt as workspaceNameSchema, r as queryCommand, rn as handleOptionalToRequiredError, rr as confirmationArgs, sn as protoGqlPermission, sr as pagedLogArgs, t as registerTypeScriptRuntime, tn as verifyRemoteSchema, tr as commonArgs, u as inviteCommand, un as INITIAL_SCHEMA_NUMBER, ur as toPageDirection, vn as getLatestMigrationNumber, w as resumeCommand, wn as loadDiff, x as healthCommand, xn as getMigrationFiles, xt as triggerCommand, y as listCommand$14, z as logBetaWarning, zn as loadConfig } from "../register-typescript-runtime-nG-n9lPw.mjs";
7
- import { A as hashContent$1, C as createLogLevelTreeshakeOptions, F as fetchAllTolerant, G as initOperatorClient, H as getOrNull, K as isDefaultPlatform, L as fetchPaged, M as closeConnectionPool, N as defaultPlatformBaseUrl, P as fetchAll, R as fetchPlatformMachineUserToken, S as composeFunctionTreeshakeOptions, T as createBundleLog, W as initOAuth2Client, a as resolveInlineSourcemap, b as resolveTSConfigWithFallback, c as ResolverSchema, k as getDistDir, m as assertUniqueLocalTailorDBTypeNames, p as buildResolverPermissionAndInputCheckExpr, s as WorkflowJobSchema, t as defineApplication, u as INVOKER_EXPR, v as createGeneratedEntryResolverPlugin, w as resolveBundleLogLevel, x as platformBundleDefinePlugin, y as createTsconfigPathsPlugin, z as fetchUserInfo } from "../application-m5tYtz0-.mjs";
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-D1FNkMrS.mjs";
7
+ import { A as getDistDir, B as fetchPlatformMachineUserToken, C as composeFunctionTreeshakeOptions, E as createBundleLog, F as defaultPlatformBaseUrl, I as fetchAll, J as isDefaultPlatform, K as initOAuth2Client, L as fetchAllTolerant, P as closeConnectionPool, S as platformBundleDefinePlugin, T as resolveBundleLogLevel, V as fetchUserInfo, W 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 initOperatorClient, t as defineApplication, w as createLogLevelTreeshakeOptions, x as resolveTSConfigWithFallback, y as createGeneratedEntryResolverPlugin, z as fetchPaged } from "../application-D9j1a2Xc.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-D5--My_M.mjs";
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.logs,
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-C-zsrNjn.mjs");
6849
+ const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-CzmT8-Nh.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-C-zsrNjn.mjs");
7157
+ const { defineApplication } = await import("../application-CzmT8-Nh.mjs");
7158
7158
  const application = defineApplication({
7159
7159
  config,
7160
7160
  pluginManager