@@ -130148,7 +130148,7 @@ LogEntry.create = (level, message, options) => {
130148130148 }
130149130149 return new LogEntry(void 0, level, tags, message);
130150130150 }
130151- const error = ! has(cause) || cause instanceof Error ? cause : new InvalidError(cause) ;
130151+ const error = has(cause) ? toError( cause) : void 0 ;
130152130152 return new LogEntry(message, level, tags, error);
130153130153};
130154130154
@@ -133043,6 +133043,11 @@ var workspaceDeploymentService = {
133043133043 response: toArray(toReplicaResourceUtilization),
133044133044 request: toWorkspaceResourceUtilizationArgs,
133045133045 defaultOptions: { timeout: duration({ seconds: 20 }) }
133046+ }),
133047+ getWorkspaceHost: rpc({
133048+ access: "internal",
133049+ response: toWorkspaceHost,
133050+ request: toGetWorkspaceHostArgs
133046133051 })
133047133052 }
133048133053};
@@ -133489,11 +133494,11 @@ var StaticDataCenterId;
133489133494var MAINTENANCE_MODE_EXP_NAME = "maintenance-mode";
133490133495var AVAILABLE_EXPERIMENTS = [
133491133496 "ceph-subtree-pinning",
133492- "ci-profile",
133493133497 "env-state",
133494133498 "esbuild",
133495133499 "external-mounter",
133496133500 "file-tree-lit",
133501+ "git-panel",
133497133502 "gpu-plan",
133498133503 "hermetic",
133499133504 "language-server",
@@ -134055,6 +134060,16 @@ UserCreationFailed = __decorate6([
134055134060 registerError(),
134056134061 __metadata2("design:paramtypes", [String, Object])
134057134062], UserCreationFailed);
134063+ var customDomainAuthRequest = {
134064+ appToken: toString,
134065+ sessionId: toString
134066+ };
134067+ var toCustomDomainAuthRequest = toObject(customDomainAuthRequest);
134068+ var customDomainAuthResponse = {
134069+ userToken: toString,
134070+ domain: toString
134071+ };
134072+ var toCustomDomainAuthResponse = toObject(customDomainAuthResponse);
134058134073var authService = {
134059134074 name: "Auth",
134060134075 context: toHttpContext,
@@ -134084,6 +134099,11 @@ var authService = {
134084134099 request: toSignUpArgs,
134085134100 response: toVoid,
134086134101 defaultOptions: { timeout: duration({ seconds: 10 }) }
134102+ }),
134103+ authForCustomDomain: rpc({
134104+ access: "public",
134105+ request: toCustomDomainAuthRequest,
134106+ response: toCustomDomainAuthResponse
134087134107 })
134088134108 }
134089134109};
@@ -135876,11 +135896,11 @@ var __decorate11 = function(decorators, target, key, desc) {
135876135896 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
135877135897 return c > 3 && r && Object.defineProperty(target, key, r), r;
135878135898};
135879- var VpnConfigNotFound = class extends SimpleSerializableException {
135880- constructor(msg) {
135881- super(msg);
135882- }
135899+ var VpnConfigNotFound = class VpnConfigNotFound2 extends SimpleSerializableException {
135883135900};
135901+ VpnConfigNotFound = __decorate11([
135902+ registerError()
135903+ ], VpnConfigNotFound);
135884135904var workspacesService = {
135885135905 name: "Workspaces",
135886135906 context: toHttpContext,
@@ -136050,7 +136070,7 @@ var WorkspacesDAODatabase = class WorkspacesDAODatabase2 {
136050136070 DbForeignKeyViolation,
136051136071 (m) => {
136052136072 logE(`Failed to create workspace db entry: ${m}.`);
136053- return new VpnConfigNotFound(`Failed to create workspace. VPN config ${vpnConfig} doesn't exist.`);
136073+ return new VpnConfigNotFound(`Failed to create workspace. VPN config ' ${vpnConfig}' doesn't exist.`, { scope: "public" } );
136054136074 }
136055136075 ]));
136056136076 if (isEnabled("usage-history")) {
@@ -136134,7 +136154,7 @@ var WorkspacesDAODatabase = class WorkspacesDAODatabase2 {
136134136154 DbForeignKeyViolation,
136135136155 (m) => {
136136136156 logE(`Failed to update workspace db entry ${id}: ${m}`);
136137- return new VpnConfigNotFound(`Failed to update workspace ${id}: VPN config ${update.vpnConfig} does not exist.`);
136157+ return new VpnConfigNotFound(`Failed to update workspace ${id}: VPN config ' ${update.vpnConfig}' does not exist.`, { scope: "public" } );
136138136158 }
136139136159 ]);
136140136160 if (isEnabled("usage-history")) {
0 commit comments