@tailor-platform/sdk 1.38.0 → 1.39.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 +22 -0
- package/dist/actor-Bb4OVq1j.d.mts +30 -0
- package/dist/{application-DhQrXEld.mjs → application-BHu8YE-g.mjs} +148 -148
- package/dist/application-BHu8YE-g.mjs.map +1 -0
- package/dist/application-C8Lr37AM.mjs +4 -0
- package/dist/{brand-D-d15jx3.mjs → brand-Ll48SMXe.mjs} +1 -1
- package/dist/{brand-D-d15jx3.mjs.map → brand-Ll48SMXe.mjs.map} +1 -1
- package/dist/cli/index.mjs +15 -15
- package/dist/cli/lib.d.mts +9 -9
- package/dist/cli/lib.mjs +4 -4
- package/dist/{client-xzPXtc_e.mjs → client-B2K45RvK.mjs} +77 -47
- package/dist/client-B2K45RvK.mjs.map +1 -0
- package/dist/{client-BWAbbA1C.mjs → client-CEVmv94H.mjs} +1 -1
- package/dist/configure/index.d.mts +4 -3
- package/dist/configure/index.mjs +55 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-DXhPL8Ue.mjs → crash-report-CACiemAr.mjs} +4 -4
- package/dist/{crash-report-DXhPL8Ue.mjs.map → crash-report-CACiemAr.mjs.map} +1 -1
- package/dist/{crash-report-BEAiCSCl.mjs → crash-report-CPUF3T5d.mjs} +1 -1
- package/dist/{errors-D9f2UJpT.mjs → errors-ChWX5ZG8.mjs} +1 -1
- package/dist/{errors-D9f2UJpT.mjs.map → errors-ChWX5ZG8.mjs.map} +1 -1
- package/dist/field-BY2vbJ8f.mjs +23 -0
- package/dist/field-BY2vbJ8f.mjs.map +1 -0
- package/dist/{index-Cs3fwmLu.d.mts → index-BYmdVno1.d.mts} +144 -29
- package/dist/{index-Cln_TTZn.d.mts → index-CeFwhUkX.d.mts} +2 -2
- package/dist/{index-CIIXsk3E.d.mts → index-Ch8Em3nz.d.mts} +2 -2
- package/dist/{index-D_W9-Lvk.d.mts → index-Cx1RYDbu.d.mts} +2 -2
- package/dist/{index-CHo73Aat.d.mts → index-DLO_XvLi.d.mts} +2 -2
- package/dist/{interceptor-CzaH2Ur6.mjs → interceptor-B5bKVwgq.mjs} +1 -1
- package/dist/{interceptor-CzaH2Ur6.mjs.map → interceptor-B5bKVwgq.mjs.map} +1 -1
- package/dist/{job-DkAklmE4.mjs → job-p6zf8Qpg.mjs} +2 -2
- package/dist/job-p6zf8Qpg.mjs.map +1 -0
- package/dist/{logger-5_JMzHmw.mjs → logger-DTNAMYGy.mjs} +1 -1
- package/dist/{logger-5_JMzHmw.mjs.map → logger-DTNAMYGy.mjs.map} +1 -1
- package/dist/package-json-CPR7s5hf.mjs +4 -0
- package/dist/{package-json-BHViVisJ.mjs → package-json-CWp8s9dE.mjs} +1 -1
- package/dist/{package-json-BHViVisJ.mjs.map → package-json-CWp8s9dE.mjs.map} +1 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +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 -1
- package/dist/{runtime-ChpwtPut.mjs → runtime-2xqzvkQv.mjs} +92 -15
- package/dist/runtime-2xqzvkQv.mjs.map +1 -0
- package/dist/{schema-CnwUqPyM.mjs → schema-CEcfEyPN.mjs} +4 -44
- package/dist/schema-CEcfEyPN.mjs.map +1 -0
- package/dist/{seed-DrbB1VXd.mjs → seed-CyYPhvNL.mjs} +12 -12
- package/dist/seed-CyYPhvNL.mjs.map +1 -0
- package/dist/{service-Bcp6JB3w.mjs → service-SrG26B9T.mjs} +3 -3
- package/dist/{service-Bcp6JB3w.mjs.map → service-SrG26B9T.mjs.map} +1 -1
- package/dist/{plugin-D84blivd.d.mts → tailor-db-field-B99RnR2N.d.mts} +683 -1211
- package/dist/{telemetry-DwHuiNiR.mjs → telemetry-BuDto_2q.mjs} +2 -2
- package/dist/{telemetry-DwHuiNiR.mjs.map → telemetry-BuDto_2q.mjs.map} +1 -1
- package/dist/telemetry-C1hzFaiV.mjs +4 -0
- package/dist/types-BnphjkIJ.mjs +5 -0
- package/dist/{types-B9ZMosul.mjs → types-Duhhsx3R.mjs} +3 -32
- package/dist/types-Duhhsx3R.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +1 -1
- package/dist/workflow.generated-DSwr-k57.d.mts +1207 -0
- package/docs/cli/application.md +21 -5
- package/docs/cli-reference.md +1 -0
- package/docs/generator/index.md +10 -0
- package/docs/services/idp.md +4 -4
- package/package.json +2 -2
- package/dist/application-C1ipG5Q6.mjs +0 -4
- package/dist/application-DhQrXEld.mjs.map +0 -1
- package/dist/client-xzPXtc_e.mjs.map +0 -1
- package/dist/job-DkAklmE4.mjs.map +0 -1
- package/dist/package-json--6dmp6-h.mjs +0 -4
- package/dist/runtime-ChpwtPut.mjs.map +0 -1
- package/dist/schema-CnwUqPyM.mjs.map +0 -1
- package/dist/seed-DrbB1VXd.mjs.map +0 -1
- package/dist/telemetry-4IOPW6wE.mjs +0 -4
- package/dist/types-B9ZMosul.mjs.map +0 -1
- package/dist/types-C45jRrCM.mjs +0 -4
- package/dist/workflow.generated-BRdcCWfC.d.mts +0 -414
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-
|
|
1
|
+
{"version":3,"file":"brand-Ll48SMXe.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind = \"tailordb-type\" | \"resolver\" | \"executor\" | \"workflow\" | \"workflow-job\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored as SdkBrandKind) : stored === kind)\n );\n}\n"],"mappings":";;AAEA,MAAa,YAA2B,OAAO,IAAI,sBAAsB;;;;;;;;;AAYzE,SAAgB,WAA6B,OAAU,MAAuB;AAC5E,QAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACX,CAAC;AACF,QAAO;;;;;;;;;;AAWT,SAAgB,aACd,OACA,MACS;AACT,KAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,EAAE,aAAa,OAAQ,QAAO;CACjF,MAAM,SAAU,MAAkC;AAElD,QACE,SAAS,UACT,WAAW,SACV,MAAM,QAAQ,KAAK,GAAG,KAAK,SAAS,OAAuB,GAAG,WAAW"}
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { n as logger, r as styles } from "../logger-
|
|
5
|
-
import { $ as deleteCommand$3, $t as isValidMigrationNumber, At as formatKeyValueTable, C as listCommand$12, E as resumeCommand, Et as executionsCommand, F as showCommand, G as getCommand$4, H as treeCommand, I as logBetaWarning, Lt as parseMigrationLabelNumber, N as generateCommand$1, Nt as apply, O as listCommand$11, Pt as executeScript, R as removeCommand$1, St as startCommand, T as healthCommand, U as listCommand$10, Xt as getMigrationFilePath, Y as listCommand$9, Z as getCommand$3, Zt as getMigrationFiles, _n as workspaceArgs, an as getNamespacesWithMigrations, at as getCommand$2, b as createCommand$4, c as listCommand$13, cn as trnPrefix, ct as tokenCommand, dn as apiCommand, dt as generate, en as loadDiff, f as restoreCommand, fn as defineAppCommand, g as getCommand$6, gn as isVerbose, gt as listCommand$6, hn as deploymentArgs, i as updateCommand$4, j as truncateCommand, jt as getCommand$1, kt as functionExecutionStatusToString, lt as listCommand$7, m as listCommand$14, mn as confirmationArgs, mt as triggerCommand, o as removeCommand, on as prompt, pn as commonArgs, pt as webhookCommand, q as updateCommand$2, qt as formatMigrationNumber, r as queryCommand, rt as listCommand$8, sn as sdkNameLabelKey, t as isNativeTypeScriptRuntime, tt as createCommand$3, u as inviteCommand, v as deleteCommand$4, wt as getCommand$5, yt as jobsCommand, z as updateCommand$3 } from "../runtime-
|
|
6
|
-
import { t as readPackageJson } from "../package-json-
|
|
7
|
-
import { C as resolveTokens, S as readPlatformConfig, T as writePlatformConfig,
|
|
8
|
-
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-
|
|
9
|
-
import { n as isCLIError } from "../errors-
|
|
3
|
+
import { A as FunctionExecution_Type, L as AuthInvokerSchema, W as PATScope, i as fetchAll, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, s as fetchUserInfo, u as initOperatorClient } from "../client-B2K45RvK.mjs";
|
|
4
|
+
import { n as logger, r as styles } from "../logger-DTNAMYGy.mjs";
|
|
5
|
+
import { $ as deleteCommand$3, $t as isValidMigrationNumber, At as formatKeyValueTable, C as listCommand$12, E as resumeCommand, Et as executionsCommand, F as showCommand, G as getCommand$4, H as treeCommand, I as logBetaWarning, Lt as parseMigrationLabelNumber, N as generateCommand$1, Nt as apply, O as listCommand$11, Pt as executeScript, R as removeCommand$1, St as startCommand, T as healthCommand, U as listCommand$10, Xt as getMigrationFilePath, Y as listCommand$9, Z as getCommand$3, Zt as getMigrationFiles, _n as workspaceArgs, an as getNamespacesWithMigrations, at as getCommand$2, b as createCommand$4, c as listCommand$13, cn as trnPrefix, ct as tokenCommand, dn as apiCommand, dt as generate, en as loadDiff, f as restoreCommand, fn as defineAppCommand, g as getCommand$6, gn as isVerbose, gt as listCommand$6, hn as deploymentArgs, i as updateCommand$4, j as truncateCommand, jt as getCommand$1, kt as functionExecutionStatusToString, lt as listCommand$7, m as listCommand$14, mn as confirmationArgs, mt as triggerCommand, o as removeCommand, on as prompt, pn as commonArgs, pt as webhookCommand, q as updateCommand$2, qt as formatMigrationNumber, r as queryCommand, rt as listCommand$8, sn as sdkNameLabelKey, t as isNativeTypeScriptRuntime, tt as createCommand$3, u as inviteCommand, v as deleteCommand$4, wt as getCommand$5, yt as jobsCommand, z as updateCommand$3 } from "../runtime-2xqzvkQv.mjs";
|
|
6
|
+
import { t as readPackageJson } from "../package-json-CWp8s9dE.mjs";
|
|
7
|
+
import { C as resolveTokens, S as readPlatformConfig, T as writePlatformConfig, _ as loadConfig, a as WorkflowJobSchema, b as loadAccessToken, c as ExecutorSchema, h as getDistDir, i as resolveInlineSourcemap, o as ResolverSchema, v as deleteUserTokens, w as saveUserTokens, x as loadWorkspaceId, y as fetchLatestToken } from "../application-BHu8YE-g.mjs";
|
|
8
|
+
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-CACiemAr.mjs";
|
|
9
|
+
import { n as isCLIError } from "../errors-ChWX5ZG8.mjs";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
12
12
|
import { withCompletionCommand } from "politty/completion";
|
|
13
13
|
import { z } from "zod";
|
|
14
|
+
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
14
15
|
import * as fs$1 from "node:fs";
|
|
15
16
|
import * as path from "pathe";
|
|
16
17
|
import { generateCodeVerifier } from "@badgateway/oauth2-client";
|
|
17
|
-
import { timestampDate } from "@bufbuild/protobuf/wkt";
|
|
18
18
|
import { Code, ConnectError } from "@connectrpc/connect";
|
|
19
19
|
import * as http from "node:http";
|
|
20
20
|
import * as crypto from "node:crypto";
|
|
@@ -47,7 +47,7 @@ const applyCommand = defineAppCommand({
|
|
|
47
47
|
"clean-cache": arg(z.boolean().optional(), { description: "Clean the bundle cache before building" })
|
|
48
48
|
}).strict(),
|
|
49
49
|
run: async (args) => {
|
|
50
|
-
const { initTelemetry } = await import("../telemetry-
|
|
50
|
+
const { initTelemetry } = await import("../telemetry-C1hzFaiV.mjs");
|
|
51
51
|
await initTelemetry();
|
|
52
52
|
await apply({
|
|
53
53
|
workspaceId: args["workspace-id"],
|
|
@@ -1150,7 +1150,7 @@ async function detectFunctionType(options) {
|
|
|
1150
1150
|
const rawInput = module.default.input;
|
|
1151
1151
|
let inputSchema;
|
|
1152
1152
|
if (rawInput) {
|
|
1153
|
-
const { t } = await import("../types-
|
|
1153
|
+
const { t } = await import("../types-BnphjkIJ.mjs");
|
|
1154
1154
|
inputSchema = t.object(rawInput);
|
|
1155
1155
|
}
|
|
1156
1156
|
return {
|
|
@@ -1521,7 +1521,7 @@ const generateCommand = defineAppCommand({
|
|
|
1521
1521
|
})
|
|
1522
1522
|
}).strict(),
|
|
1523
1523
|
run: async (args) => {
|
|
1524
|
-
const { initTelemetry } = await import("../telemetry-
|
|
1524
|
+
const { initTelemetry } = await import("../telemetry-C1hzFaiV.mjs");
|
|
1525
1525
|
await initTelemetry();
|
|
1526
1526
|
await generate({
|
|
1527
1527
|
configPath: args.config,
|
|
@@ -3600,9 +3600,9 @@ const upgradeCommand = defineAppCommand({
|
|
|
3600
3600
|
})
|
|
3601
3601
|
}).strict(),
|
|
3602
3602
|
run: async (args) => {
|
|
3603
|
-
const { initTelemetry } = await import("../telemetry-
|
|
3603
|
+
const { initTelemetry } = await import("../telemetry-C1hzFaiV.mjs");
|
|
3604
3604
|
await initTelemetry();
|
|
3605
|
-
const { upgrade } = await import("../service-
|
|
3605
|
+
const { upgrade } = await import("../service-SrG26B9T.mjs");
|
|
3606
3606
|
await upgrade({
|
|
3607
3607
|
from: args.from,
|
|
3608
3608
|
dryRun: args["dry-run"],
|
|
@@ -4015,11 +4015,11 @@ runMain(mainCommand, {
|
|
|
4015
4015
|
if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
4016
4016
|
} else logger.error(`Unknown error: ${error}`);
|
|
4017
4017
|
if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
|
|
4018
|
-
const { reportCrash } = await import("../crash-report-
|
|
4018
|
+
const { reportCrash } = await import("../crash-report-CPUF3T5d.mjs");
|
|
4019
4019
|
await reportCrash(error, "handledError");
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
|
-
const { shutdownTelemetry } = await import("../telemetry-
|
|
4022
|
+
const { shutdownTelemetry } = await import("../telemetry-C1hzFaiV.mjs");
|
|
4023
4023
|
await shutdownTelemetry();
|
|
4024
4024
|
}
|
|
4025
4025
|
});
|
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import {
|
|
3
|
-
import { n as AppConfig } from "../workflow.generated-
|
|
4
|
-
import { n as kyselyTypePlugin } from "../index-
|
|
5
|
-
import { n as enumConstantsPlugin } from "../index-
|
|
6
|
-
import { n as fileUtilsPlugin } from "../index-
|
|
7
|
-
import { n as seedPlugin } from "../index-
|
|
2
|
+
import { N as TailorDBType, P as TypeSourceInfoEntry, Q as Resolver, _t as IdProvider, ct as IncomingWebhookTrigger, o as Plugin, rt as Executor, s as PluginAttachment, ut as ScheduleTriggerInput, vt as OAuth2ClientInput } from "../tailor-db-field-B99RnR2N.mjs";
|
|
3
|
+
import { n as AppConfig } from "../workflow.generated-DSwr-k57.mjs";
|
|
4
|
+
import { n as kyselyTypePlugin } from "../index-CeFwhUkX.mjs";
|
|
5
|
+
import { n as enumConstantsPlugin } from "../index-DLO_XvLi.mjs";
|
|
6
|
+
import { n as fileUtilsPlugin } from "../index-Cx1RYDbu.mjs";
|
|
7
|
+
import { n as seedPlugin } from "../index-Ch8Em3nz.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
10
|
-
import { Duration, FieldMask, Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
|
11
|
-
import { Client } from "@connectrpc/connect";
|
|
12
9
|
import * as _$_bufbuild_protobuf_codegenv20 from "@bufbuild/protobuf/codegenv2";
|
|
13
10
|
import { GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
11
|
+
import { Duration, FieldMask, Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
|
12
|
+
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
13
|
+
import { Client } from "@connectrpc/connect";
|
|
14
14
|
import { JsonObject, Message } from "@bufbuild/protobuf";
|
|
15
15
|
import { Jsonifiable } from "type-fest";
|
|
16
16
|
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { u as initOperatorClient } from "../client-
|
|
3
|
-
import { A as truncate, B as updateOrganization, Bt as DIFF_FILE_NAME, Ct as startWorkflow, D as resumeWorkflow, Dt as getWorkflowExecution, Ft as waitForExecution, Gt as compareSnapshots, Ht as MIGRATE_FILE_NAME, It as MIGRATION_LABEL_KEY, J as updateFolder, Jt as getLatestMigrationNumber, K as getOrganization, Kt as createSnapshotFromLocalTypes, L as remove, M as generate$1, Mt as getExecutor, Nt as apply, Ot as listWorkflowExecutions, P as show, Pt as executeScript, Q as getFolder, Qt as getNextMigrationNumber, Rt as bundleMigrationScript, S as listApps, Tt as getWorkflow, Ut as SCHEMA_FILE_NAME, V as organizationTree, Vt as INITIAL_SCHEMA_NUMBER, W as listOrganizations, Wt as compareLocalTypesWithSnapshot, X as listFolders, Xt as getMigrationFilePath, Yt as getMigrationDirPath, Zt as getMigrationFiles, _ as getWorkspace, _t as listExecutors, a as updateUser, an as getNamespacesWithMigrations, bt as listExecutorJobs, d as inviteUser, dt as generate, et as deleteFolder, ft as listWebhookExecutors, h as listWorkspaces, ht as triggerExecutor, in as hasChanges, it as listOAuth2Clients, k as listWorkflows, l as listUsers, ln as generateUserTypes, n as query, nn as formatDiffSummary, nt as createFolder, ot as getOAuth2Client, p as restoreWorkspace, rn as formatMigrationDiff, s as removeUser, st as getMachineUserToken, t as isNativeTypeScriptRuntime, tn as reconstructSnapshotFromMigrations, un as apiCall, ut as listMachineUsers, vt as getExecutorJob, w as getAppHealth, x as createWorkspace, xt as watchExecutorJob, y as deleteWorkspace, zt as DB_TYPES_FILE_NAME } from "../runtime-
|
|
4
|
-
import {
|
|
5
|
-
import { n as seedPlugin } from "../seed-DrbB1VXd.mjs";
|
|
2
|
+
import { u as initOperatorClient } from "../client-B2K45RvK.mjs";
|
|
3
|
+
import { A as truncate, B as updateOrganization, Bt as DIFF_FILE_NAME, Ct as startWorkflow, D as resumeWorkflow, Dt as getWorkflowExecution, Ft as waitForExecution, Gt as compareSnapshots, Ht as MIGRATE_FILE_NAME, It as MIGRATION_LABEL_KEY, J as updateFolder, Jt as getLatestMigrationNumber, K as getOrganization, Kt as createSnapshotFromLocalTypes, L as remove, M as generate$1, Mt as getExecutor, Nt as apply, Ot as listWorkflowExecutions, P as show, Pt as executeScript, Q as getFolder, Qt as getNextMigrationNumber, Rt as bundleMigrationScript, S as listApps, Tt as getWorkflow, Ut as SCHEMA_FILE_NAME, V as organizationTree, Vt as INITIAL_SCHEMA_NUMBER, W as listOrganizations, Wt as compareLocalTypesWithSnapshot, X as listFolders, Xt as getMigrationFilePath, Yt as getMigrationDirPath, Zt as getMigrationFiles, _ as getWorkspace, _t as listExecutors, a as updateUser, an as getNamespacesWithMigrations, bt as listExecutorJobs, d as inviteUser, dt as generate, et as deleteFolder, ft as listWebhookExecutors, h as listWorkspaces, ht as triggerExecutor, in as hasChanges, it as listOAuth2Clients, k as listWorkflows, l as listUsers, ln as generateUserTypes, n as query, nn as formatDiffSummary, nt as createFolder, ot as getOAuth2Client, p as restoreWorkspace, rn as formatMigrationDiff, s as removeUser, st as getMachineUserToken, t as isNativeTypeScriptRuntime, tn as reconstructSnapshotFromMigrations, un as apiCall, ut as listMachineUsers, vt as getExecutorJob, w as getAppHealth, x as createWorkspace, xt as watchExecutorJob, y as deleteWorkspace, zt as DB_TYPES_FILE_NAME } from "../runtime-2xqzvkQv.mjs";
|
|
4
|
+
import { _ as loadConfig, b as loadAccessToken, h as getDistDir, x as loadWorkspaceId } from "../application-BHu8YE-g.mjs";
|
|
6
5
|
import { n as enumConstantsPlugin } from "../enum-constants-Dx82rSjf.mjs";
|
|
7
6
|
import { n as fileUtilsPlugin } from "../file-utils-DeWpvq3T.mjs";
|
|
8
7
|
import { n as kyselyTypePlugin } from "../kysely-type-CwtvQuxh.mjs";
|
|
8
|
+
import { n as seedPlugin } from "../seed-CyYPhvNL.mjs";
|
|
9
9
|
import * as fs from "node:fs";
|
|
10
10
|
import * as path from "pathe";
|
|
11
11
|
import { resolveTSConfig } from "pkg-types";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as logger } from "./logger-
|
|
3
|
-
import { t as readPackageJson } from "./package-json-
|
|
2
|
+
import { n as logger } from "./logger-DTNAMYGy.mjs";
|
|
3
|
+
import { t as readPackageJson } from "./package-json-CWp8s9dE.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import {
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
7
7
|
import { MethodOptions_IdempotencyLevel, file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { OAuth2Client } from "@badgateway/oauth2-client";
|
|
8
9
|
import { Code, ConnectError, createClient } from "@connectrpc/connect";
|
|
9
|
-
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
10
10
|
|
|
11
11
|
//#region \0rolldown/runtime.js
|
|
12
12
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -2203,13 +2203,18 @@ var require_dispatcher_base = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
2203
2203
|
const kOnDestroyed = Symbol("onDestroyed");
|
|
2204
2204
|
const kOnClosed = Symbol("onClosed");
|
|
2205
2205
|
const kInterceptedDispatch = Symbol("Intercepted Dispatch");
|
|
2206
|
+
const kWebSocketOptions = Symbol("webSocketOptions");
|
|
2206
2207
|
var DispatcherBase = class extends Dispatcher {
|
|
2207
|
-
constructor() {
|
|
2208
|
+
constructor(opts) {
|
|
2208
2209
|
super();
|
|
2209
2210
|
this[kDestroyed] = false;
|
|
2210
2211
|
this[kOnDestroyed] = null;
|
|
2211
2212
|
this[kClosed] = false;
|
|
2212
2213
|
this[kOnClosed] = [];
|
|
2214
|
+
this[kWebSocketOptions] = opts?.webSocket ?? {};
|
|
2215
|
+
}
|
|
2216
|
+
get webSocketOptions() {
|
|
2217
|
+
return { maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024 };
|
|
2213
2218
|
}
|
|
2214
2219
|
get destroyed() {
|
|
2215
2220
|
return this[kDestroyed];
|
|
@@ -6853,8 +6858,8 @@ var require_client = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6853
6858
|
* @param {string|URL} url
|
|
6854
6859
|
* @param {import('../../types/client.js').Client.Options} options
|
|
6855
6860
|
*/
|
|
6856
|
-
constructor(url, { interceptors, maxHeaderSize, headersTimeout, socketTimeout, requestTimeout, connectTimeout, bodyTimeout, idleTimeout, keepAlive, keepAliveTimeout, maxKeepAliveTimeout, keepAliveMaxTimeout, keepAliveTimeoutThreshold, socketPath, pipelining, tls, strictContentLength, maxCachedSessions, maxRedirections, connect, maxRequestsPerClient, localAddress, maxResponseSize, autoSelectFamily, autoSelectFamilyAttemptTimeout, maxConcurrentStreams, allowH2 } = {}) {
|
|
6857
|
-
super();
|
|
6861
|
+
constructor(url, { interceptors, maxHeaderSize, headersTimeout, socketTimeout, requestTimeout, connectTimeout, bodyTimeout, idleTimeout, keepAlive, keepAliveTimeout, maxKeepAliveTimeout, keepAliveMaxTimeout, keepAliveTimeoutThreshold, socketPath, pipelining, tls, strictContentLength, maxCachedSessions, maxRedirections, connect, maxRequestsPerClient, localAddress, maxResponseSize, autoSelectFamily, autoSelectFamilyAttemptTimeout, maxConcurrentStreams, allowH2, webSocket } = {}) {
|
|
6862
|
+
super({ webSocket });
|
|
6858
6863
|
if (keepAlive !== void 0) throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead");
|
|
6859
6864
|
if (socketTimeout !== void 0) throw new InvalidArgumentError("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");
|
|
6860
6865
|
if (requestTimeout !== void 0) throw new InvalidArgumentError("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");
|
|
@@ -7260,8 +7265,8 @@ var require_pool_base = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7260
7265
|
const kRemoveClient = Symbol("remove client");
|
|
7261
7266
|
const kStats = Symbol("stats");
|
|
7262
7267
|
var PoolBase = class extends DispatcherBase {
|
|
7263
|
-
constructor() {
|
|
7264
|
-
super();
|
|
7268
|
+
constructor(opts) {
|
|
7269
|
+
super(opts);
|
|
7265
7270
|
this[kQueue] = new FixedQueue();
|
|
7266
7271
|
this[kClients] = [];
|
|
7267
7272
|
this[kQueued] = 0;
|
|
@@ -7392,7 +7397,6 @@ var require_pool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7392
7397
|
}
|
|
7393
7398
|
var Pool = class extends PoolBase {
|
|
7394
7399
|
constructor(origin, { connections, factory = defaultFactory, connect, connectTimeout, tls, maxCachedSessions, socketPath, autoSelectFamily, autoSelectFamilyAttemptTimeout, allowH2, ...options } = {}) {
|
|
7395
|
-
super();
|
|
7396
7400
|
if (connections != null && (!Number.isFinite(connections) || connections < 0)) throw new InvalidArgumentError("invalid connections");
|
|
7397
7401
|
if (typeof factory !== "function") throw new InvalidArgumentError("factory must be a function.");
|
|
7398
7402
|
if (connect != null && typeof connect !== "function" && typeof connect !== "object") throw new InvalidArgumentError("connect must be a function or an object");
|
|
@@ -7408,6 +7412,7 @@ var require_pool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7408
7412
|
} : void 0,
|
|
7409
7413
|
...connect
|
|
7410
7414
|
});
|
|
7415
|
+
super(options);
|
|
7411
7416
|
this[kInterceptors] = options.interceptors?.Pool && Array.isArray(options.interceptors.Pool) ? options.interceptors.Pool : [];
|
|
7412
7417
|
this[kConnections] = connections || null;
|
|
7413
7418
|
this[kUrl] = util.parseOrigin(origin);
|
|
@@ -7571,10 +7576,10 @@ var require_agent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7571
7576
|
}
|
|
7572
7577
|
var Agent = class extends DispatcherBase {
|
|
7573
7578
|
constructor({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {
|
|
7574
|
-
super();
|
|
7575
7579
|
if (typeof factory !== "function") throw new InvalidArgumentError("factory must be a function.");
|
|
7576
7580
|
if (connect != null && typeof connect !== "function" && typeof connect !== "object") throw new InvalidArgumentError("connect must be a function or an object");
|
|
7577
7581
|
if (!Number.isInteger(maxRedirections) || maxRedirections < 0) throw new InvalidArgumentError("maxRedirections must be a positive number");
|
|
7582
|
+
super(options);
|
|
7578
7583
|
if (connect && typeof connect !== "function") connect = { ...connect };
|
|
7579
7584
|
this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })];
|
|
7580
7585
|
this[kOptions] = {
|
|
@@ -14676,27 +14681,26 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
14676
14681
|
]);
|
|
14677
14682
|
const kBuffer = Symbol("kBuffer");
|
|
14678
14683
|
const kLength = Symbol("kLength");
|
|
14679
|
-
const kDefaultMaxDecompressedSize = 4 * 1024 * 1024;
|
|
14680
14684
|
var PerMessageDeflate = class {
|
|
14681
14685
|
/** @type {import('node:zlib').InflateRaw} */
|
|
14682
14686
|
#inflate;
|
|
14683
14687
|
#options = {};
|
|
14684
|
-
|
|
14685
|
-
#aborted = false;
|
|
14686
|
-
/** @type {Function|null} */
|
|
14687
|
-
#currentCallback = null;
|
|
14688
|
+
#maxPayloadSize = 0;
|
|
14688
14689
|
/**
|
|
14689
14690
|
* @param {Map<string, string>} extensions
|
|
14690
14691
|
*/
|
|
14691
|
-
constructor(extensions) {
|
|
14692
|
+
constructor(extensions, options) {
|
|
14692
14693
|
this.#options.serverNoContextTakeover = extensions.has("server_no_context_takeover");
|
|
14693
14694
|
this.#options.serverMaxWindowBits = extensions.get("server_max_window_bits");
|
|
14695
|
+
this.#maxPayloadSize = options.maxPayloadSize;
|
|
14694
14696
|
}
|
|
14697
|
+
/**
|
|
14698
|
+
* Decompress a compressed payload.
|
|
14699
|
+
* @param {Buffer} chunk Compressed data
|
|
14700
|
+
* @param {boolean} fin Final fragment flag
|
|
14701
|
+
* @param {Function} callback Callback function
|
|
14702
|
+
*/
|
|
14695
14703
|
decompress(chunk, fin, callback) {
|
|
14696
|
-
if (this.#aborted) {
|
|
14697
|
-
callback(new MessageSizeExceededError());
|
|
14698
|
-
return;
|
|
14699
|
-
}
|
|
14700
14704
|
if (!this.#inflate) {
|
|
14701
14705
|
let windowBits = Z_DEFAULT_WINDOWBITS;
|
|
14702
14706
|
if (this.#options.serverMaxWindowBits) {
|
|
@@ -14715,18 +14719,11 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
14715
14719
|
this.#inflate[kBuffer] = [];
|
|
14716
14720
|
this.#inflate[kLength] = 0;
|
|
14717
14721
|
this.#inflate.on("data", (data) => {
|
|
14718
|
-
if (this.#aborted) return;
|
|
14719
14722
|
this.#inflate[kLength] += data.length;
|
|
14720
|
-
if (this.#inflate[kLength] >
|
|
14721
|
-
|
|
14723
|
+
if (this.#maxPayloadSize > 0 && this.#inflate[kLength] > this.#maxPayloadSize) {
|
|
14724
|
+
callback(new MessageSizeExceededError());
|
|
14722
14725
|
this.#inflate.removeAllListeners();
|
|
14723
|
-
this.#inflate.destroy();
|
|
14724
14726
|
this.#inflate = null;
|
|
14725
|
-
if (this.#currentCallback) {
|
|
14726
|
-
const cb = this.#currentCallback;
|
|
14727
|
-
this.#currentCallback = null;
|
|
14728
|
-
cb(new MessageSizeExceededError());
|
|
14729
|
-
}
|
|
14730
14727
|
return;
|
|
14731
14728
|
}
|
|
14732
14729
|
this.#inflate[kBuffer].push(data);
|
|
@@ -14736,15 +14733,13 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
14736
14733
|
callback(err);
|
|
14737
14734
|
});
|
|
14738
14735
|
}
|
|
14739
|
-
this.#currentCallback = callback;
|
|
14740
14736
|
this.#inflate.write(chunk);
|
|
14741
14737
|
if (fin) this.#inflate.write(tail);
|
|
14742
14738
|
this.#inflate.flush(() => {
|
|
14743
|
-
if (
|
|
14739
|
+
if (!this.#inflate) return;
|
|
14744
14740
|
const full = Buffer.concat(this.#inflate[kBuffer], this.#inflate[kLength]);
|
|
14745
14741
|
this.#inflate[kBuffer].length = 0;
|
|
14746
14742
|
this.#inflate[kLength] = 0;
|
|
14747
|
-
this.#currentCallback = null;
|
|
14748
14743
|
callback(null, full);
|
|
14749
14744
|
});
|
|
14750
14745
|
}
|
|
@@ -14764,8 +14759,10 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14764
14759
|
const { WebsocketFrameSend } = require_frame();
|
|
14765
14760
|
const { closeWebSocketConnection } = require_connection();
|
|
14766
14761
|
const { PerMessageDeflate } = require_permessage_deflate();
|
|
14762
|
+
const { MessageSizeExceededError } = require_errors();
|
|
14767
14763
|
var ByteParser = class extends Writable {
|
|
14768
14764
|
#buffers = [];
|
|
14765
|
+
#fragmentsBytes = 0;
|
|
14769
14766
|
#byteOffset = 0;
|
|
14770
14767
|
#loop = false;
|
|
14771
14768
|
#state = parserStates.INFO;
|
|
@@ -14773,15 +14770,19 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14773
14770
|
#fragments = [];
|
|
14774
14771
|
/** @type {Map<string, PerMessageDeflate>} */
|
|
14775
14772
|
#extensions;
|
|
14773
|
+
/** @type {number} */
|
|
14774
|
+
#maxPayloadSize;
|
|
14776
14775
|
/**
|
|
14777
14776
|
* @param {import('./websocket').WebSocket} ws
|
|
14778
14777
|
* @param {Map<string, string>|null} extensions
|
|
14778
|
+
* @param {{ maxPayloadSize?: number }} [options]
|
|
14779
14779
|
*/
|
|
14780
|
-
constructor(ws, extensions) {
|
|
14780
|
+
constructor(ws, extensions, options = {}) {
|
|
14781
14781
|
super();
|
|
14782
14782
|
this.ws = ws;
|
|
14783
14783
|
this.#extensions = extensions == null ? /* @__PURE__ */ new Map() : extensions;
|
|
14784
|
-
|
|
14784
|
+
this.#maxPayloadSize = options.maxPayloadSize ?? 0;
|
|
14785
|
+
if (this.#extensions.has("permessage-deflate")) this.#extensions.set("permessage-deflate", new PerMessageDeflate(extensions, options));
|
|
14785
14786
|
}
|
|
14786
14787
|
/**
|
|
14787
14788
|
* @param {Buffer} chunk
|
|
@@ -14793,6 +14794,13 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14793
14794
|
this.#loop = true;
|
|
14794
14795
|
this.run(callback);
|
|
14795
14796
|
}
|
|
14797
|
+
#validatePayloadLength() {
|
|
14798
|
+
if (this.#maxPayloadSize > 0 && !isControlFrame(this.#info.opcode) && this.#info.payloadLength > this.#maxPayloadSize) {
|
|
14799
|
+
failWebsocketConnection(this.ws, "Payload size exceeds maximum allowed size");
|
|
14800
|
+
return false;
|
|
14801
|
+
}
|
|
14802
|
+
return true;
|
|
14803
|
+
}
|
|
14796
14804
|
/**
|
|
14797
14805
|
* Runs whenever a new chunk is received.
|
|
14798
14806
|
* Callback is called whenever there are no more chunks buffering,
|
|
@@ -14849,6 +14857,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14849
14857
|
if (payloadLength <= 125) {
|
|
14850
14858
|
this.#info.payloadLength = payloadLength;
|
|
14851
14859
|
this.#state = parserStates.READ_DATA;
|
|
14860
|
+
if (!this.#validatePayloadLength()) return;
|
|
14852
14861
|
} else if (payloadLength === 126) this.#state = parserStates.PAYLOADLENGTH_16;
|
|
14853
14862
|
else if (payloadLength === 127) this.#state = parserStates.PAYLOADLENGTH_64;
|
|
14854
14863
|
if (isTextBinaryFrame(opcode)) {
|
|
@@ -14864,6 +14873,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14864
14873
|
const buffer = this.consume(2);
|
|
14865
14874
|
this.#info.payloadLength = buffer.readUInt16BE(0);
|
|
14866
14875
|
this.#state = parserStates.READ_DATA;
|
|
14876
|
+
if (!this.#validatePayloadLength()) return;
|
|
14867
14877
|
} else if (this.#state === parserStates.PAYLOADLENGTH_64) {
|
|
14868
14878
|
if (this.#byteOffset < 8) return callback();
|
|
14869
14879
|
const buffer = this.consume(8);
|
|
@@ -14875,6 +14885,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14875
14885
|
}
|
|
14876
14886
|
this.#info.payloadLength = lower;
|
|
14877
14887
|
this.#state = parserStates.READ_DATA;
|
|
14888
|
+
if (!this.#validatePayloadLength()) return;
|
|
14878
14889
|
} else if (this.#state === parserStates.READ_DATA) {
|
|
14879
14890
|
if (this.#byteOffset < this.#info.payloadLength) return callback();
|
|
14880
14891
|
const body = this.consume(this.#info.payloadLength);
|
|
@@ -14882,12 +14893,12 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14882
14893
|
this.#loop = this.parseControlFrame(body);
|
|
14883
14894
|
this.#state = parserStates.INFO;
|
|
14884
14895
|
} else if (!this.#info.compressed) {
|
|
14885
|
-
this
|
|
14886
|
-
if (
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
this.#fragments.length = 0;
|
|
14896
|
+
this.writeFragments(body);
|
|
14897
|
+
if (this.#maxPayloadSize > 0 && this.#fragmentsBytes > this.#maxPayloadSize) {
|
|
14898
|
+
failWebsocketConnection(this.ws, new MessageSizeExceededError().message);
|
|
14899
|
+
return;
|
|
14890
14900
|
}
|
|
14901
|
+
if (!this.#info.fragmented && this.#info.fin) websocketMessageReceived(this.ws, this.#info.binaryType, this.consumeFragments());
|
|
14891
14902
|
this.#state = parserStates.INFO;
|
|
14892
14903
|
} else {
|
|
14893
14904
|
this.#extensions.get("permessage-deflate").decompress(body, this.#info.fin, (error, data) => {
|
|
@@ -14895,17 +14906,20 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14895
14906
|
failWebsocketConnection(this.ws, error.message);
|
|
14896
14907
|
return;
|
|
14897
14908
|
}
|
|
14898
|
-
this
|
|
14909
|
+
this.writeFragments(data);
|
|
14910
|
+
if (this.#maxPayloadSize > 0 && this.#fragmentsBytes > this.#maxPayloadSize) {
|
|
14911
|
+
failWebsocketConnection(this.ws, new MessageSizeExceededError().message);
|
|
14912
|
+
return;
|
|
14913
|
+
}
|
|
14899
14914
|
if (!this.#info.fin) {
|
|
14900
14915
|
this.#state = parserStates.INFO;
|
|
14901
14916
|
this.#loop = true;
|
|
14902
14917
|
this.run(callback);
|
|
14903
14918
|
return;
|
|
14904
14919
|
}
|
|
14905
|
-
websocketMessageReceived(this.ws, this.#info.binaryType,
|
|
14920
|
+
websocketMessageReceived(this.ws, this.#info.binaryType, this.consumeFragments());
|
|
14906
14921
|
this.#loop = true;
|
|
14907
14922
|
this.#state = parserStates.INFO;
|
|
14908
|
-
this.#fragments.length = 0;
|
|
14909
14923
|
this.run(callback);
|
|
14910
14924
|
});
|
|
14911
14925
|
this.#loop = false;
|
|
@@ -14945,6 +14959,21 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14945
14959
|
this.#byteOffset -= n;
|
|
14946
14960
|
return buffer;
|
|
14947
14961
|
}
|
|
14962
|
+
writeFragments(fragment) {
|
|
14963
|
+
this.#fragmentsBytes += fragment.length;
|
|
14964
|
+
this.#fragments.push(fragment);
|
|
14965
|
+
}
|
|
14966
|
+
consumeFragments() {
|
|
14967
|
+
const fragments = this.#fragments;
|
|
14968
|
+
if (fragments.length === 1) {
|
|
14969
|
+
this.#fragmentsBytes = 0;
|
|
14970
|
+
return fragments.shift();
|
|
14971
|
+
}
|
|
14972
|
+
const output = Buffer.concat(fragments, this.#fragmentsBytes);
|
|
14973
|
+
this.#fragments = [];
|
|
14974
|
+
this.#fragmentsBytes = 0;
|
|
14975
|
+
return output;
|
|
14976
|
+
}
|
|
14948
14977
|
parseCloseBody(data) {
|
|
14949
14978
|
assert(data.length !== 1);
|
|
14950
14979
|
/** @type {number|undefined} */
|
|
@@ -15301,7 +15330,8 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15301
15330
|
*/
|
|
15302
15331
|
#onConnectionEstablished(response, parsedExtensions) {
|
|
15303
15332
|
this[kResponse] = response;
|
|
15304
|
-
const
|
|
15333
|
+
const maxPayloadSize = this[kController]?.dispatcher?.webSocketOptions?.maxPayloadSize;
|
|
15334
|
+
const parser = new ByteParser(this, parsedExtensions, { maxPayloadSize });
|
|
15305
15335
|
parser.on("drain", onParserDrain);
|
|
15306
15336
|
parser.on("error", onParserError.bind(this));
|
|
15307
15337
|
response.socket.ws = this;
|
|
@@ -16119,7 +16149,7 @@ function initOAuth2Client() {
|
|
|
16119
16149
|
* @returns Configured Operator client
|
|
16120
16150
|
*/
|
|
16121
16151
|
async function initOperatorClient(accessToken) {
|
|
16122
|
-
const { createTracingInterceptor } = await import("./interceptor-
|
|
16152
|
+
const { createTracingInterceptor } = await import("./interceptor-B5bKVwgq.mjs");
|
|
16123
16153
|
return createClient(OperatorService, await createTransport(platformBaseUrl, [
|
|
16124
16154
|
await userAgentInterceptor(),
|
|
16125
16155
|
await bearerTokenInterceptor(accessToken),
|
|
@@ -16398,5 +16428,5 @@ async function closeConnectionPool() {
|
|
|
16398
16428
|
}
|
|
16399
16429
|
|
|
16400
16430
|
//#endregion
|
|
16401
|
-
export {
|
|
16402
|
-
//# sourceMappingURL=client-
|
|
16431
|
+
export { Subgraph_ServiceType as $, FunctionExecution_Type as A, AuthSCIMAttribute_Mutability as B, TailorDBType_Permission_Permit as C, IdPPermissionOperator as D, IdPLang as E, AuthHookPoint as F, TenantProviderConfig_TenantProviderType as G, AuthSCIMAttribute_Uniqueness as H, AuthIDPConfig_AuthType as I, ConditionSchema as J, UserProfileProviderConfig_UserProfileProviderType as K, AuthInvokerSchema as L, ExecutorTargetType as M, ExecutorTriggerType as N, IdPPermissionPermit as O, AuthConnection_Type as P, ApplicationSchemaUpdateAttemptStatus as Q, AuthOAuth2Client_ClientType as R, TailorDBType_Permission_Operator as S, PipelineResolver_OperationType as T, AuthSCIMConfig_AuthorizationType as U, AuthSCIMAttribute_Type as V, PATScope as W, FilterSchema as X, Condition_Operator as Y, PageDirection as Z, WorkflowExecution_Status as _, fetchMachineUserToken as a, TailorDBGQLPermission_Operator as b, formatRequestParams as c, parseMethodName as d, platformBaseUrl as f, WorkspacePlatformUserRole as g, OperatorService as h, fetchAll as i, ExecutorJobStatus as j, FunctionExecution_Status as k, initOAuth2Client as l, userAgent as m, closeConnectionPool as n, fetchPlatformMachineUserToken as o, resolveStaticWebsiteUrls as p, GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus as q, createTransport as r, fetchUserInfo as s, MAX_PAGE_SIZE as t, initOperatorClient as u, WorkflowJobExecution_Status as v, TailorDBType_PermitAction as w, TailorDBGQLPermission_Permit as x, TailorDBGQLPermission_Action as y, AuthOAuth2Client_GrantType as z };
|
|
16432
|
+
//# sourceMappingURL=client-B2K45RvK.mjs.map
|