@getmateo/protocol 0.19.6 → 0.19.7
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/dist/connection-offer.d.ts +14 -0
- package/dist/connection-offer.js +37 -4
- package/dist/daemon-auth.d.ts +8 -0
- package/dist/daemon-auth.js +2 -0
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +24 -0
- package/dist/generated/validation/ws-outbound.aot.js +1149 -978
- package/dist/messages.d.ts +139 -0
- package/dist/messages.js +4 -0
- package/dist/relay-config.d.ts +23 -0
- package/dist/relay-config.js +59 -0
- package/dist/validation/ws-outbound-envelope.d.ts +24 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
|
17
17
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
18
18
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
19
19
|
__ae_0 = a[i];
|
|
20
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
20
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["relayEndpoint"] === undefined || (typeof __ae_0["relayEndpoint"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
23
|
} return true; }
|
|
@@ -201,6 +201,11 @@ export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
|
201
201
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["remoteAddress"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("remoteAddress") });
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
+
if (__o_10["relayEndpoint"] !== undefined) {
|
|
205
|
+
if (typeof __o_10["relayEndpoint"] !== "string") {
|
|
206
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["relayEndpoint"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("relayEndpoint") });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
204
209
|
if (__o_10["deviceCredentialId"] !== undefined) {
|
|
205
210
|
if (typeof __o_10["deviceCredentialId"] !== "string") {
|
|
206
211
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["deviceCredentialId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("deviceCredentialId") });
|
|
@@ -325,7 +330,7 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
325
330
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
326
331
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
327
332
|
__ae_0 = a[i];
|
|
328
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
333
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["relayEndpoint"] === undefined || (typeof __ae_0["relayEndpoint"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
329
334
|
return false;
|
|
330
335
|
}
|
|
331
336
|
} return true; }
|
|
@@ -509,6 +514,11 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
509
514
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["remoteAddress"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("remoteAddress") });
|
|
510
515
|
}
|
|
511
516
|
}
|
|
517
|
+
if (__o_10["relayEndpoint"] !== undefined) {
|
|
518
|
+
if (typeof __o_10["relayEndpoint"] !== "string") {
|
|
519
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["relayEndpoint"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("relayEndpoint") });
|
|
520
|
+
}
|
|
521
|
+
}
|
|
512
522
|
if (__o_10["deviceCredentialId"] !== undefined) {
|
|
513
523
|
if (typeof __o_10["deviceCredentialId"] !== "string") {
|
|
514
524
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["deviceCredentialId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("deviceCredentialId") });
|
|
@@ -40243,12 +40253,18 @@ export const SessionOutboundMessage125 = /* @__PURE__ */ (() => {
|
|
|
40243
40253
|
export const SessionOutboundMessage126 = /* @__PURE__ */ (() => {
|
|
40244
40254
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
40245
40255
|
__ae_0 = a[i];
|
|
40246
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["
|
|
40256
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["endpoint"] === "string" && __ae_0["endpoint"].length >= 1 && typeof __ae_0["useTls"] === "boolean" && (__ae_0["publicEndpoint"] === undefined || (typeof __ae_0["publicEndpoint"] === "string" && __ae_0["publicEndpoint"].length >= 1)) && (__ae_0["publicUseTls"] === undefined || (typeof __ae_0["publicUseTls"] === "boolean")))) {
|
|
40257
|
+
return false;
|
|
40258
|
+
}
|
|
40259
|
+
} return true; }
|
|
40260
|
+
function __af_3(a) { for (var __ae_2, i = 0; i < a.length; i++) {
|
|
40261
|
+
__ae_2 = a[i];
|
|
40262
|
+
if (!(typeof __ae_2 === "object" && __ae_2 !== null && !Array.isArray(__ae_2) && typeof __ae_2["provider"] === "string" && typeof __ae_2["available"] === "boolean" && (__ae_2["error"] === undefined || ((__ae_2["error"] === null || (typeof __ae_2["error"] === "string")))))) {
|
|
40247
40263
|
return false;
|
|
40248
40264
|
}
|
|
40249
40265
|
} return true; }
|
|
40250
40266
|
function safeParse_SessionOutboundMessage126(input) {
|
|
40251
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.get_status.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["serverId"] === "string" && (input["payload"]["version"] === undefined || ((input["payload"]["version"] === null || (typeof input["payload"]["version"] === "string")))) && (input["payload"]["build"] === undefined || (typeof input["payload"]["build"] === "object" && input["payload"]["build"] !== null && !Array.isArray(input["payload"]["build"]) && typeof input["payload"]["build"]["upstreamVersion"] === "string" && typeof input["payload"]["build"]["builtAt"] === "string" && typeof input["payload"]["build"]["updateVersion"] === "string" && typeof input["payload"]["build"]["sourceCommit"] === "string" && typeof input["payload"]["build"]["upstreamCommit"] === "string" && (input["payload"]["build"]["releaseVersion"] === undefined || (typeof input["payload"]["build"]["releaseVersion"] === "string")) && (input["payload"]["build"]["buildNumber"] === undefined || (typeof input["payload"]["build"]["buildNumber"] === "string")))) && typeof input["payload"]["pid"] === "number" && !Number.isNaN(input["payload"]["pid"]) && Number.isFinite(input["payload"]["pid"]) && typeof input["payload"]["nodePath"] === "string" && (input["payload"]["startedAt"] === undefined || ((input["payload"]["startedAt"] === null || (typeof input["payload"]["startedAt"] === "string")))) && (input["payload"]["listen"] === null || (typeof input["payload"]["listen"] === "string")) && (input["payload"]["relay"] === undefined || ((input["payload"]["relay"] === null || (typeof input["payload"]["relay"] === "object" && input["payload"]["relay"] !== null && !Array.isArray(input["payload"]["relay"]) && typeof input["payload"]["relay"]["enabled"] === "boolean" && typeof input["payload"]["relay"]["endpoint"] === "string" && typeof input["payload"]["relay"]["publicEndpoint"] === "string" && typeof input["payload"]["relay"]["useTls"] === "boolean" && typeof input["payload"]["relay"]["publicUseTls"] === "boolean")))) && Array.isArray(input["payload"]["providers"]) &&
|
|
40267
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.get_status.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["serverId"] === "string" && (input["payload"]["version"] === undefined || ((input["payload"]["version"] === null || (typeof input["payload"]["version"] === "string")))) && (input["payload"]["build"] === undefined || (typeof input["payload"]["build"] === "object" && input["payload"]["build"] !== null && !Array.isArray(input["payload"]["build"]) && typeof input["payload"]["build"]["upstreamVersion"] === "string" && typeof input["payload"]["build"]["builtAt"] === "string" && typeof input["payload"]["build"]["updateVersion"] === "string" && typeof input["payload"]["build"]["sourceCommit"] === "string" && typeof input["payload"]["build"]["upstreamCommit"] === "string" && (input["payload"]["build"]["releaseVersion"] === undefined || (typeof input["payload"]["build"]["releaseVersion"] === "string")) && (input["payload"]["build"]["buildNumber"] === undefined || (typeof input["payload"]["build"]["buildNumber"] === "string")))) && typeof input["payload"]["pid"] === "number" && !Number.isNaN(input["payload"]["pid"]) && Number.isFinite(input["payload"]["pid"]) && typeof input["payload"]["nodePath"] === "string" && (input["payload"]["startedAt"] === undefined || ((input["payload"]["startedAt"] === null || (typeof input["payload"]["startedAt"] === "string")))) && (input["payload"]["listen"] === null || (typeof input["payload"]["listen"] === "string")) && (input["payload"]["relay"] === undefined || ((input["payload"]["relay"] === null || (typeof input["payload"]["relay"] === "object" && input["payload"]["relay"] !== null && !Array.isArray(input["payload"]["relay"]) && typeof input["payload"]["relay"]["enabled"] === "boolean" && typeof input["payload"]["relay"]["endpoint"] === "string" && typeof input["payload"]["relay"]["publicEndpoint"] === "string" && typeof input["payload"]["relay"]["useTls"] === "boolean" && typeof input["payload"]["relay"]["publicUseTls"] === "boolean" && (input["payload"]["relay"]["servers"] === undefined || (Array.isArray(input["payload"]["relay"]["servers"]) && __af_1(input["payload"]["relay"]["servers"]))))))) && Array.isArray(input["payload"]["providers"]) && __af_3(input["payload"]["providers"])) {
|
|
40252
40268
|
return { success: true, data: input };
|
|
40253
40269
|
}
|
|
40254
40270
|
var _e = [];
|
|
@@ -40257,130 +40273,171 @@ export const SessionOutboundMessage126 = /* @__PURE__ */ (() => {
|
|
|
40257
40273
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
40258
40274
|
}
|
|
40259
40275
|
else {
|
|
40260
|
-
var
|
|
40261
|
-
if (
|
|
40262
|
-
_e.push({ code: "invalid_value", values: ["daemon.get_status.response"], input:
|
|
40276
|
+
var __o_4 = _d;
|
|
40277
|
+
if (__o_4["type"] !== "daemon.get_status.response") {
|
|
40278
|
+
_e.push({ code: "invalid_value", values: ["daemon.get_status.response"], input: __o_4["type"], path: ["type"] });
|
|
40263
40279
|
}
|
|
40264
|
-
if (typeof
|
|
40265
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
40280
|
+
if (typeof __o_4["payload"] !== "object" || __o_4["payload"] === null || Array.isArray(__o_4["payload"])) {
|
|
40281
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_4["payload"], path: ["payload"] });
|
|
40266
40282
|
}
|
|
40267
40283
|
else {
|
|
40268
|
-
var
|
|
40269
|
-
if (typeof
|
|
40270
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40284
|
+
var __o_5 = __o_4["payload"];
|
|
40285
|
+
if (typeof __o_5["requestId"] !== "string") {
|
|
40286
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["requestId"], path: ["payload"].concat("requestId") });
|
|
40271
40287
|
}
|
|
40272
|
-
if (typeof
|
|
40273
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40288
|
+
if (typeof __o_5["serverId"] !== "string") {
|
|
40289
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["serverId"], path: ["payload"].concat("serverId") });
|
|
40274
40290
|
}
|
|
40275
|
-
if (
|
|
40276
|
-
if (
|
|
40277
|
-
if (typeof
|
|
40278
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40291
|
+
if (__o_5["version"] !== undefined) {
|
|
40292
|
+
if (__o_5["version"] !== null) {
|
|
40293
|
+
if (typeof __o_5["version"] !== "string") {
|
|
40294
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["version"], path: ["payload"].concat("version") });
|
|
40279
40295
|
}
|
|
40280
40296
|
}
|
|
40281
40297
|
}
|
|
40282
|
-
if (
|
|
40283
|
-
if (typeof
|
|
40284
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
40298
|
+
if (__o_5["build"] !== undefined) {
|
|
40299
|
+
if (typeof __o_5["build"] !== "object" || __o_5["build"] === null || Array.isArray(__o_5["build"])) {
|
|
40300
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_5["build"], path: ["payload"].concat("build") });
|
|
40285
40301
|
}
|
|
40286
40302
|
else {
|
|
40287
|
-
var
|
|
40288
|
-
if (typeof
|
|
40289
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40303
|
+
var __o_6 = __o_5["build"];
|
|
40304
|
+
if (typeof __o_6["upstreamVersion"] !== "string") {
|
|
40305
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["upstreamVersion"], path: ["payload"].concat("build").concat("upstreamVersion") });
|
|
40290
40306
|
}
|
|
40291
|
-
if (typeof
|
|
40292
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40307
|
+
if (typeof __o_6["builtAt"] !== "string") {
|
|
40308
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["builtAt"], path: ["payload"].concat("build").concat("builtAt") });
|
|
40293
40309
|
}
|
|
40294
|
-
if (typeof
|
|
40295
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40310
|
+
if (typeof __o_6["updateVersion"] !== "string") {
|
|
40311
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["updateVersion"], path: ["payload"].concat("build").concat("updateVersion") });
|
|
40296
40312
|
}
|
|
40297
|
-
if (typeof
|
|
40298
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40313
|
+
if (typeof __o_6["sourceCommit"] !== "string") {
|
|
40314
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["sourceCommit"], path: ["payload"].concat("build").concat("sourceCommit") });
|
|
40299
40315
|
}
|
|
40300
|
-
if (typeof
|
|
40301
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40316
|
+
if (typeof __o_6["upstreamCommit"] !== "string") {
|
|
40317
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["upstreamCommit"], path: ["payload"].concat("build").concat("upstreamCommit") });
|
|
40302
40318
|
}
|
|
40303
|
-
if (
|
|
40304
|
-
if (typeof
|
|
40305
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40319
|
+
if (__o_6["releaseVersion"] !== undefined) {
|
|
40320
|
+
if (typeof __o_6["releaseVersion"] !== "string") {
|
|
40321
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["releaseVersion"], path: ["payload"].concat("build").concat("releaseVersion") });
|
|
40306
40322
|
}
|
|
40307
40323
|
}
|
|
40308
|
-
if (
|
|
40309
|
-
if (typeof
|
|
40310
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40324
|
+
if (__o_6["buildNumber"] !== undefined) {
|
|
40325
|
+
if (typeof __o_6["buildNumber"] !== "string") {
|
|
40326
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_6["buildNumber"], path: ["payload"].concat("build").concat("buildNumber") });
|
|
40311
40327
|
}
|
|
40312
40328
|
}
|
|
40313
40329
|
}
|
|
40314
40330
|
}
|
|
40315
|
-
if (typeof
|
|
40316
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
40331
|
+
if (typeof __o_5["pid"] !== "number") {
|
|
40332
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_5["pid"], path: ["payload"].concat("pid") });
|
|
40317
40333
|
}
|
|
40318
|
-
else if (Number.isNaN(
|
|
40319
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
40334
|
+
else if (Number.isNaN(__o_5["pid"])) {
|
|
40335
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_5["pid"], path: ["payload"].concat("pid") });
|
|
40320
40336
|
}
|
|
40321
|
-
else if (!Number.isFinite(
|
|
40322
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
40337
|
+
else if (!Number.isFinite(__o_5["pid"])) {
|
|
40338
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_5["pid"], path: ["payload"].concat("pid") });
|
|
40323
40339
|
}
|
|
40324
|
-
if (typeof
|
|
40325
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40340
|
+
if (typeof __o_5["nodePath"] !== "string") {
|
|
40341
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["nodePath"], path: ["payload"].concat("nodePath") });
|
|
40326
40342
|
}
|
|
40327
|
-
if (
|
|
40328
|
-
if (
|
|
40329
|
-
if (typeof
|
|
40330
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40343
|
+
if (__o_5["startedAt"] !== undefined) {
|
|
40344
|
+
if (__o_5["startedAt"] !== null) {
|
|
40345
|
+
if (typeof __o_5["startedAt"] !== "string") {
|
|
40346
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["startedAt"], path: ["payload"].concat("startedAt") });
|
|
40331
40347
|
}
|
|
40332
40348
|
}
|
|
40333
40349
|
}
|
|
40334
|
-
if (
|
|
40335
|
-
if (typeof
|
|
40336
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40350
|
+
if (__o_5["listen"] !== null) {
|
|
40351
|
+
if (typeof __o_5["listen"] !== "string") {
|
|
40352
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_5["listen"], path: ["payload"].concat("listen") });
|
|
40337
40353
|
}
|
|
40338
40354
|
}
|
|
40339
|
-
if (
|
|
40340
|
-
if (
|
|
40341
|
-
if (typeof
|
|
40342
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
40355
|
+
if (__o_5["relay"] !== undefined) {
|
|
40356
|
+
if (__o_5["relay"] !== null) {
|
|
40357
|
+
if (typeof __o_5["relay"] !== "object" || __o_5["relay"] === null || Array.isArray(__o_5["relay"])) {
|
|
40358
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_5["relay"], path: ["payload"].concat("relay") });
|
|
40343
40359
|
}
|
|
40344
40360
|
else {
|
|
40345
|
-
var
|
|
40346
|
-
if (typeof
|
|
40347
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
40361
|
+
var __o_7 = __o_5["relay"];
|
|
40362
|
+
if (typeof __o_7["enabled"] !== "boolean") {
|
|
40363
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_7["enabled"], path: ["payload"].concat("relay").concat("enabled") });
|
|
40348
40364
|
}
|
|
40349
|
-
if (typeof
|
|
40350
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40365
|
+
if (typeof __o_7["endpoint"] !== "string") {
|
|
40366
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["endpoint"], path: ["payload"].concat("relay").concat("endpoint") });
|
|
40351
40367
|
}
|
|
40352
|
-
if (typeof
|
|
40353
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40368
|
+
if (typeof __o_7["publicEndpoint"] !== "string") {
|
|
40369
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_7["publicEndpoint"], path: ["payload"].concat("relay").concat("publicEndpoint") });
|
|
40354
40370
|
}
|
|
40355
|
-
if (typeof
|
|
40356
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
40371
|
+
if (typeof __o_7["useTls"] !== "boolean") {
|
|
40372
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_7["useTls"], path: ["payload"].concat("relay").concat("useTls") });
|
|
40357
40373
|
}
|
|
40358
|
-
if (typeof
|
|
40359
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
40374
|
+
if (typeof __o_7["publicUseTls"] !== "boolean") {
|
|
40375
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_7["publicUseTls"], path: ["payload"].concat("relay").concat("publicUseTls") });
|
|
40376
|
+
}
|
|
40377
|
+
if (__o_7["servers"] !== undefined) {
|
|
40378
|
+
if (!Array.isArray(__o_7["servers"])) {
|
|
40379
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_7["servers"], path: ["payload"].concat("relay").concat("servers") });
|
|
40380
|
+
}
|
|
40381
|
+
else {
|
|
40382
|
+
for (var __i_8 = 0; __i_8 < __o_7["servers"].length; __i_8++) {
|
|
40383
|
+
if (typeof __o_7["servers"][__i_8] !== "object" || __o_7["servers"][__i_8] === null || Array.isArray(__o_7["servers"][__i_8])) {
|
|
40384
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_7["servers"][__i_8], path: ["payload"].concat("relay").concat("servers").concat(__i_8) });
|
|
40385
|
+
}
|
|
40386
|
+
else {
|
|
40387
|
+
var __o_9 = __o_7["servers"][__i_8];
|
|
40388
|
+
if (typeof __o_9["endpoint"] !== "string") {
|
|
40389
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_9["endpoint"], path: ["payload"].concat("relay").concat("servers").concat(__i_8).concat("endpoint") });
|
|
40390
|
+
}
|
|
40391
|
+
else {
|
|
40392
|
+
if (__o_9["endpoint"].length < 1) {
|
|
40393
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_9["endpoint"], path: ["payload"].concat("relay").concat("servers").concat(__i_8).concat("endpoint") });
|
|
40394
|
+
}
|
|
40395
|
+
}
|
|
40396
|
+
if (typeof __o_9["useTls"] !== "boolean") {
|
|
40397
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_9["useTls"], path: ["payload"].concat("relay").concat("servers").concat(__i_8).concat("useTls") });
|
|
40398
|
+
}
|
|
40399
|
+
if (__o_9["publicEndpoint"] !== undefined) {
|
|
40400
|
+
if (typeof __o_9["publicEndpoint"] !== "string") {
|
|
40401
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_9["publicEndpoint"], path: ["payload"].concat("relay").concat("servers").concat(__i_8).concat("publicEndpoint") });
|
|
40402
|
+
}
|
|
40403
|
+
else {
|
|
40404
|
+
if (__o_9["publicEndpoint"].length < 1) {
|
|
40405
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_9["publicEndpoint"], path: ["payload"].concat("relay").concat("servers").concat(__i_8).concat("publicEndpoint") });
|
|
40406
|
+
}
|
|
40407
|
+
}
|
|
40408
|
+
}
|
|
40409
|
+
if (__o_9["publicUseTls"] !== undefined) {
|
|
40410
|
+
if (typeof __o_9["publicUseTls"] !== "boolean") {
|
|
40411
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_9["publicUseTls"], path: ["payload"].concat("relay").concat("servers").concat(__i_8).concat("publicUseTls") });
|
|
40412
|
+
}
|
|
40413
|
+
}
|
|
40414
|
+
}
|
|
40415
|
+
}
|
|
40416
|
+
}
|
|
40360
40417
|
}
|
|
40361
40418
|
}
|
|
40362
40419
|
}
|
|
40363
40420
|
}
|
|
40364
|
-
if (!Array.isArray(
|
|
40365
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
40421
|
+
if (!Array.isArray(__o_5["providers"])) {
|
|
40422
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_5["providers"], path: ["payload"].concat("providers") });
|
|
40366
40423
|
}
|
|
40367
40424
|
else {
|
|
40368
|
-
for (var
|
|
40369
|
-
if (typeof
|
|
40370
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
40425
|
+
for (var __i_10 = 0; __i_10 < __o_5["providers"].length; __i_10++) {
|
|
40426
|
+
if (typeof __o_5["providers"][__i_10] !== "object" || __o_5["providers"][__i_10] === null || Array.isArray(__o_5["providers"][__i_10])) {
|
|
40427
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_5["providers"][__i_10], path: ["payload"].concat("providers").concat(__i_10) });
|
|
40371
40428
|
}
|
|
40372
40429
|
else {
|
|
40373
|
-
var
|
|
40374
|
-
if (typeof
|
|
40375
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40430
|
+
var __o_11 = __o_5["providers"][__i_10];
|
|
40431
|
+
if (typeof __o_11["provider"] !== "string") {
|
|
40432
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_11["provider"], path: ["payload"].concat("providers").concat(__i_10).concat("provider") });
|
|
40376
40433
|
}
|
|
40377
|
-
if (typeof
|
|
40378
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
40434
|
+
if (typeof __o_11["available"] !== "boolean") {
|
|
40435
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_11["available"], path: ["payload"].concat("providers").concat(__i_10).concat("available") });
|
|
40379
40436
|
}
|
|
40380
|
-
if (
|
|
40381
|
-
if (
|
|
40382
|
-
if (typeof
|
|
40383
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
40437
|
+
if (__o_11["error"] !== undefined) {
|
|
40438
|
+
if (__o_11["error"] !== null) {
|
|
40439
|
+
if (typeof __o_11["error"] !== "string") {
|
|
40440
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_11["error"], path: ["payload"].concat("providers").concat(__i_10).concat("error") });
|
|
40384
40441
|
}
|
|
40385
40442
|
}
|
|
40386
40443
|
}
|
|
@@ -40990,7 +41047,7 @@ export const SessionOutboundMessage134 = /* @__PURE__ */ (() => {
|
|
|
40990
41047
|
var __rf = [__src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["browserTools"]._zod.def.innerType.shape["enabled"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["browserTools"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["providers"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["metadataGeneration"]._zod.def.innerType.shape["providers"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["metadataGeneration"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["autoArchiveAfterMerge"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["enableTerminalAgentHooks"], __src_SessionOutboundMessage134.schema.shape["payload"].shape["config"].shape["appendSystemPrompt"]];
|
|
40991
41048
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
40992
41049
|
__ae_0 = a[i];
|
|
40993
|
-
if (!(typeof __ae_0 === "string")) {
|
|
41050
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["endpoint"] === "string" && __ae_0["endpoint"].length >= 1 && typeof __ae_0["useTls"] === "boolean" && (__ae_0["publicEndpoint"] === undefined || (typeof __ae_0["publicEndpoint"] === "string" && __ae_0["publicEndpoint"].length >= 1)) && (__ae_0["publicUseTls"] === undefined || (typeof __ae_0["publicUseTls"] === "boolean")))) {
|
|
40994
41051
|
return false;
|
|
40995
41052
|
}
|
|
40996
41053
|
} return true; }
|
|
@@ -41006,84 +41063,90 @@ export const SessionOutboundMessage134 = /* @__PURE__ */ (() => {
|
|
|
41006
41063
|
return false;
|
|
41007
41064
|
}
|
|
41008
41065
|
} return true; }
|
|
41009
|
-
function
|
|
41010
|
-
|
|
41011
|
-
if (!(typeof
|
|
41066
|
+
function __af_7(a) { for (var __ae_6, i = 0; i < a.length; i++) {
|
|
41067
|
+
__ae_6 = a[i];
|
|
41068
|
+
if (!(typeof __ae_6 === "string")) {
|
|
41012
41069
|
return false;
|
|
41013
41070
|
}
|
|
41014
41071
|
} return true; }
|
|
41015
41072
|
function __af_10(a) { for (var __ae_9, i = 0; i < a.length; i++) {
|
|
41016
41073
|
__ae_9 = a[i];
|
|
41017
|
-
if (!(typeof __ae_9 === "
|
|
41074
|
+
if (!(typeof __ae_9 === "string")) {
|
|
41018
41075
|
return false;
|
|
41019
41076
|
}
|
|
41020
41077
|
} return true; }
|
|
41021
|
-
function
|
|
41022
|
-
|
|
41023
|
-
if (!(typeof
|
|
41078
|
+
function __af_12(a) { for (var __ae_11, i = 0; i < a.length; i++) {
|
|
41079
|
+
__ae_11 = a[i];
|
|
41080
|
+
if (!(typeof __ae_11 === "object" && __ae_11 !== null && !Array.isArray(__ae_11) && typeof __ae_11["id"] === "string" && __ae_11["id"].length >= 1 && typeof __ae_11["label"] === "string" && __ae_11["label"].length >= 1 && (__ae_11["description"] === undefined || (typeof __ae_11["description"] === "string")) && (__ae_11["isDefault"] === undefined || (typeof __ae_11["isDefault"] === "boolean")))) {
|
|
41024
41081
|
return false;
|
|
41025
41082
|
}
|
|
41026
41083
|
} return true; }
|
|
41027
|
-
function
|
|
41028
|
-
|
|
41029
|
-
if (!(typeof
|
|
41084
|
+
function __rf_13(o) { var __rk_8, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
41085
|
+
__rk_8 = ks[i];
|
|
41086
|
+
if (!(typeof __rk_8 === "string" && typeof o[__rk_8] === "object" && o[__rk_8] !== null && !Array.isArray(o[__rk_8]) && (o[__rk_8]["mateoTools"] === undefined || (typeof o[__rk_8]["mateoTools"] === "object" && o[__rk_8]["mateoTools"] !== null && !Array.isArray(o[__rk_8]["mateoTools"]) && (o[__rk_8]["mateoTools"]["enabled"] === undefined || (typeof o[__rk_8]["mateoTools"]["enabled"] === "boolean")) && (o[__rk_8]["mateoTools"]["disabledTools"] === undefined || (Array.isArray(o[__rk_8]["mateoTools"]["disabledTools"]) && __af_10(o[__rk_8]["mateoTools"]["disabledTools"]))))) && (o[__rk_8]["enabled"] === undefined || (typeof o[__rk_8]["enabled"] === "boolean")) && (o[__rk_8]["additionalModels"] === undefined || (Array.isArray(o[__rk_8]["additionalModels"]) && __af_12(o[__rk_8]["additionalModels"]))))) {
|
|
41030
41087
|
return false;
|
|
41031
41088
|
}
|
|
41032
41089
|
} return true; }
|
|
41033
|
-
function
|
|
41034
|
-
|
|
41035
|
-
if (!(typeof
|
|
41090
|
+
function __af_15(a) { for (var __ae_14, i = 0; i < a.length; i++) {
|
|
41091
|
+
__ae_14 = a[i];
|
|
41092
|
+
if (!(typeof __ae_14 === "object" && __ae_14 !== null && !Array.isArray(__ae_14) && typeof __ae_14["provider"] === "string" && __ae_14["provider"].length >= 1 && (__ae_14["model"] === undefined || (typeof __ae_14["model"] === "string" && __ae_14["model"].length >= 1)) && (__ae_14["thinkingOptionId"] === undefined || (typeof __ae_14["thinkingOptionId"] === "string" && __ae_14["thinkingOptionId"].length >= 1)))) {
|
|
41036
41093
|
return false;
|
|
41037
41094
|
}
|
|
41038
41095
|
} return true; }
|
|
41039
|
-
function
|
|
41040
|
-
|
|
41041
|
-
if (!(typeof
|
|
41096
|
+
function __af_18(a) { for (var __ae_17, i = 0; i < a.length; i++) {
|
|
41097
|
+
__ae_17 = a[i];
|
|
41098
|
+
if (!(typeof __ae_17 === "string")) {
|
|
41042
41099
|
return false;
|
|
41043
41100
|
}
|
|
41044
41101
|
} return true; }
|
|
41045
|
-
function
|
|
41046
|
-
|
|
41047
|
-
if (!(typeof
|
|
41102
|
+
function __af_19(a) { for (var __ae_16, i = 0; i < a.length; i++) {
|
|
41103
|
+
__ae_16 = a[i];
|
|
41104
|
+
if (!(typeof __ae_16 === "object" && __ae_16 !== null && !Array.isArray(__ae_16) && typeof __ae_16["id"] === "string" && typeof __ae_16["name"] === "string" && typeof __ae_16["command"] === "string" && (__ae_16["args"] === undefined || (Array.isArray(__ae_16["args"]) && __af_18(__ae_16["args"]))) && (__ae_16["icon"] === undefined || (typeof __ae_16["icon"] === "string")))) {
|
|
41048
41105
|
return false;
|
|
41049
41106
|
}
|
|
41050
41107
|
} return true; }
|
|
41051
|
-
function
|
|
41052
|
-
|
|
41053
|
-
if (!(typeof
|
|
41108
|
+
function __rf_22(o) { var __rk_21, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
41109
|
+
__rk_21 = ks[i];
|
|
41110
|
+
if (!(typeof __rk_21 === "string")) {
|
|
41054
41111
|
return false;
|
|
41055
41112
|
}
|
|
41056
41113
|
} return true; }
|
|
41057
|
-
function
|
|
41058
|
-
|
|
41059
|
-
if (!(typeof
|
|
41114
|
+
function __af_23(a) { for (var __ae_20, i = 0; i < a.length; i++) {
|
|
41115
|
+
__ae_20 = a[i];
|
|
41116
|
+
if (!(typeof __ae_20 === "object" && __ae_20 !== null && !Array.isArray(__ae_20) && typeof __ae_20["id"] === "string" && typeof __ae_20["name"] === "string" && (__ae_20["icon"] === undefined || (typeof __ae_20["icon"] === "string")) && (__ae_20["color"] === undefined || (typeof __ae_20["color"] === "string")) && typeof __ae_20["provider"] === "string" && (__ae_20["model"] === undefined || (typeof __ae_20["model"] === "string")) && (__ae_20["modeId"] === undefined || (typeof __ae_20["modeId"] === "string")) && (__ae_20["thinkingOptionId"] === undefined || (typeof __ae_20["thinkingOptionId"] === "string")) && (__ae_20["featureValues"] === undefined || (typeof __ae_20["featureValues"] === "object" && __ae_20["featureValues"] !== null && !Array.isArray(__ae_20["featureValues"]) && __rf_22(__ae_20["featureValues"]))) && (__ae_20["notes"] === undefined || (typeof __ae_20["notes"] === "string")))) {
|
|
41117
|
+
return false;
|
|
41118
|
+
}
|
|
41119
|
+
} return true; }
|
|
41120
|
+
function __af_27(a) { for (var __ae_26, i = 0; i < a.length; i++) {
|
|
41121
|
+
__ae_26 = a[i];
|
|
41122
|
+
if (!(typeof __ae_26 === "string")) {
|
|
41060
41123
|
return false;
|
|
41061
41124
|
}
|
|
41062
41125
|
} return true; }
|
|
41063
|
-
function
|
|
41064
|
-
case "all": return typeof
|
|
41065
|
-
case "custom": return typeof
|
|
41126
|
+
function __du_24(__dx_25) { switch (__dx_25["mode"]) {
|
|
41127
|
+
case "all": return typeof __dx_25 === "object" && __dx_25 !== null && !Array.isArray(__dx_25) && __dx_25["mode"] === "all";
|
|
41128
|
+
case "custom": return typeof __dx_25 === "object" && __dx_25 !== null && !Array.isArray(__dx_25) && __dx_25["mode"] === "custom" && Array.isArray(__dx_25["skills"]) && __af_27(__dx_25["skills"]);
|
|
41066
41129
|
default: return false;
|
|
41067
41130
|
} }
|
|
41068
|
-
var
|
|
41069
|
-
function
|
|
41070
|
-
case "directory": return typeof
|
|
41131
|
+
var __re_re_29 = new RegExp("^[a-z][a-z0-9-]*$");
|
|
41132
|
+
function __du_30(__dx_31) { switch (__dx_31["source"]) {
|
|
41133
|
+
case "directory": return typeof __dx_31 === "object" && __dx_31 !== null && !Array.isArray(__dx_31) && __dx_31["source"] === "directory" && typeof __dx_31["path"] === "string" && __dx_31["path"].length >= 1 && (__dx_31["enabled"] === undefined || (typeof __dx_31["enabled"] === "boolean"));
|
|
41071
41134
|
default: return false;
|
|
41072
41135
|
} }
|
|
41073
|
-
function
|
|
41074
|
-
|
|
41075
|
-
if (!(typeof
|
|
41136
|
+
function __rf_32(o) { var __rk_28, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
41137
|
+
__rk_28 = ks[i];
|
|
41138
|
+
if (!(typeof __rk_28 === "string" && __re_re_29.test(__rk_28) && typeof o[__rk_28] === "object" && o[__rk_28] !== null && !Array.isArray(o[__rk_28]) && __du_30(o[__rk_28]))) {
|
|
41076
41139
|
return false;
|
|
41077
41140
|
}
|
|
41078
41141
|
} return true; }
|
|
41079
|
-
function
|
|
41080
|
-
|
|
41081
|
-
if (!(typeof
|
|
41142
|
+
function __af_34(a) { for (var __ae_33, i = 0; i < a.length; i++) {
|
|
41143
|
+
__ae_33 = a[i];
|
|
41144
|
+
if (!(typeof __ae_33 === "string" && __re_re_29.test(__ae_33))) {
|
|
41082
41145
|
return false;
|
|
41083
41146
|
}
|
|
41084
41147
|
} return true; }
|
|
41085
41148
|
function safeParse_SessionOutboundMessage134(input) {
|
|
41086
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "get_daemon_config_response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["config"] === "object" && input["payload"]["config"] !== null && !Array.isArray(input["payload"]["config"]) && (input["payload"]["config"]["relay"] === undefined || (typeof input["payload"]["config"]["relay"] === "object" && input["payload"]["config"]["relay"] !== null && !Array.isArray(input["payload"]["config"]["relay"]) && typeof input["payload"]["config"]["relay"]["enabled"] === "boolean")) && typeof input["payload"]["config"]["mcp"] === "object" && input["payload"]["config"]["mcp"] !== null && !Array.isArray(input["payload"]["config"]["mcp"]) && (input["payload"]["config"]["mcp"]["enabled"] === undefined || (typeof input["payload"]["config"]["mcp"]["enabled"] === "boolean")) && typeof input["payload"]["config"]["mcp"]["injectIntoAgents"] === "boolean" && (input["payload"]["config"]["hostnames"] === undefined || (((input["payload"]["config"]["hostnames"] === true) || (Array.isArray(input["payload"]["config"]["hostnames"]) &&
|
|
41149
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "get_daemon_config_response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["config"] === "object" && input["payload"]["config"] !== null && !Array.isArray(input["payload"]["config"]) && (input["payload"]["config"]["relay"] === undefined || (typeof input["payload"]["config"]["relay"] === "object" && input["payload"]["config"]["relay"] !== null && !Array.isArray(input["payload"]["config"]["relay"]) && typeof input["payload"]["config"]["relay"]["enabled"] === "boolean" && (input["payload"]["config"]["relay"]["servers"] === undefined || (Array.isArray(input["payload"]["config"]["relay"]["servers"]) && __af_1(input["payload"]["config"]["relay"]["servers"]))))) && typeof input["payload"]["config"]["mcp"] === "object" && input["payload"]["config"]["mcp"] !== null && !Array.isArray(input["payload"]["config"]["mcp"]) && (input["payload"]["config"]["mcp"]["enabled"] === undefined || (typeof input["payload"]["config"]["mcp"]["enabled"] === "boolean")) && typeof input["payload"]["config"]["mcp"]["injectIntoAgents"] === "boolean" && (input["payload"]["config"]["hostnames"] === undefined || (((input["payload"]["config"]["hostnames"] === true) || (Array.isArray(input["payload"]["config"]["hostnames"]) && __af_3(input["payload"]["config"]["hostnames"]))))) && (input["payload"]["config"]["cors"] === undefined || (typeof input["payload"]["config"]["cors"] === "object" && input["payload"]["config"]["cors"] !== null && !Array.isArray(input["payload"]["config"]["cors"]) && Array.isArray(input["payload"]["config"]["cors"]["allowedOrigins"]) && __af_5(input["payload"]["config"]["cors"]["allowedOrigins"]))) && (input["payload"]["config"]["trustedProxies"] === undefined || (((input["payload"]["config"]["trustedProxies"] === true) || (Array.isArray(input["payload"]["config"]["trustedProxies"]) && __af_7(input["payload"]["config"]["trustedProxies"]))))) && (input["payload"]["config"]["git"] === undefined || (typeof input["payload"]["config"]["git"] === "object" && input["payload"]["config"]["git"] !== null && !Array.isArray(input["payload"]["config"]["git"]) && typeof input["payload"]["config"]["git"]["maxProcessesPerSecond"] === "number" && Number.isSafeInteger(input["payload"]["config"]["git"]["maxProcessesPerSecond"]) && input["payload"]["config"]["git"]["maxProcessesPerSecond"] > 0 && typeof input["payload"]["config"]["git"]["maxProcessConcurrency"] === "number" && Number.isSafeInteger(input["payload"]["config"]["git"]["maxProcessConcurrency"]) && input["payload"]["config"]["git"]["maxProcessConcurrency"] > 0)) && (input["payload"]["config"]["app"] === undefined || (typeof input["payload"]["config"]["app"] === "object" && input["payload"]["config"]["app"] !== null && !Array.isArray(input["payload"]["config"]["app"]) && typeof input["payload"]["config"]["app"]["baseUrl"] === "string")) && (input["payload"]["config"]["catalogRefreshTimeoutMs"] === undefined || (typeof input["payload"]["config"]["catalogRefreshTimeoutMs"] === "number" && Number.isSafeInteger(input["payload"]["config"]["catalogRefreshTimeoutMs"]) && input["payload"]["config"]["catalogRefreshTimeoutMs"] > 0)) && (input["payload"]["config"]["browserTools"] !== undefined && (typeof input["payload"]["config"]["browserTools"] === "object" && input["payload"]["config"]["browserTools"] !== null && !Array.isArray(input["payload"]["config"]["browserTools"]) && (input["payload"]["config"]["browserTools"]["enabled"] !== undefined && (typeof input["payload"]["config"]["browserTools"]["enabled"] === "boolean")))) && (input["payload"]["config"]["providers"] !== undefined && (typeof input["payload"]["config"]["providers"] === "object" && input["payload"]["config"]["providers"] !== null && !Array.isArray(input["payload"]["config"]["providers"]) && __rf_13(input["payload"]["config"]["providers"]))) && (input["payload"]["config"]["metadataGeneration"] !== undefined && (typeof input["payload"]["config"]["metadataGeneration"] === "object" && input["payload"]["config"]["metadataGeneration"] !== null && !Array.isArray(input["payload"]["config"]["metadataGeneration"]) && (input["payload"]["config"]["metadataGeneration"]["providers"] !== undefined && (Array.isArray(input["payload"]["config"]["metadataGeneration"]["providers"]) && __af_15(input["payload"]["config"]["metadataGeneration"]["providers"]))))) && (input["payload"]["config"]["autoArchiveAfterMerge"] !== undefined && (typeof input["payload"]["config"]["autoArchiveAfterMerge"] === "boolean")) && (input["payload"]["config"]["enableTerminalAgentHooks"] !== undefined && (typeof input["payload"]["config"]["enableTerminalAgentHooks"] === "boolean")) && (input["payload"]["config"]["appendSystemPrompt"] !== undefined && (typeof input["payload"]["config"]["appendSystemPrompt"] === "string")) && (input["payload"]["config"]["terminalProfiles"] === undefined || (Array.isArray(input["payload"]["config"]["terminalProfiles"]) && __af_19(input["payload"]["config"]["terminalProfiles"]))) && (input["payload"]["config"]["agentProfiles"] === undefined || (Array.isArray(input["payload"]["config"]["agentProfiles"]) && __af_23(input["payload"]["config"]["agentProfiles"]))) && (input["payload"]["config"]["agents"] === undefined || (typeof input["payload"]["config"]["agents"] === "object" && input["payload"]["config"]["agents"] !== null && !Array.isArray(input["payload"]["config"]["agents"]) && (input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === undefined || ((input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === null || (((input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === 60) || (input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === 120) || (input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === 240)))))))) && (input["payload"]["config"]["skills"] === undefined || (typeof input["payload"]["config"]["skills"] === "object" && input["payload"]["config"]["skills"] !== null && !Array.isArray(input["payload"]["config"]["skills"]) && (input["payload"]["config"]["skills"]["selection"] === undefined || (typeof input["payload"]["config"]["skills"]["selection"] === "object" && input["payload"]["config"]["skills"]["selection"] !== null && !Array.isArray(input["payload"]["config"]["skills"]["selection"]) && __du_24(input["payload"]["config"]["skills"]["selection"]))))) && (input["payload"]["config"]["pluginsEnabled"] === undefined || (typeof input["payload"]["config"]["pluginsEnabled"] === "boolean")) && (input["payload"]["config"]["plugins"] === undefined || (typeof input["payload"]["config"]["plugins"] === "object" && input["payload"]["config"]["plugins"] !== null && !Array.isArray(input["payload"]["config"]["plugins"]) && __rf_32(input["payload"]["config"]["plugins"]))) && (input["payload"]["config"]["disabledBuiltinPlugins"] === undefined || (Array.isArray(input["payload"]["config"]["disabledBuiltinPlugins"]) && __af_34(input["payload"]["config"]["disabledBuiltinPlugins"])))) {
|
|
41087
41150
|
return { success: true, data: input };
|
|
41088
41151
|
}
|
|
41089
41152
|
var _e = [];
|
|
@@ -41092,347 +41155,388 @@ export const SessionOutboundMessage134 = /* @__PURE__ */ (() => {
|
|
|
41092
41155
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
41093
41156
|
}
|
|
41094
41157
|
else {
|
|
41095
|
-
var
|
|
41096
|
-
if (
|
|
41097
|
-
_e.push({ code: "invalid_value", values: ["get_daemon_config_response"], input:
|
|
41158
|
+
var __o_35 = Object.assign({}, _d);
|
|
41159
|
+
if (__o_35["type"] !== "get_daemon_config_response") {
|
|
41160
|
+
_e.push({ code: "invalid_value", values: ["get_daemon_config_response"], input: __o_35["type"], path: ["type"] });
|
|
41098
41161
|
}
|
|
41099
|
-
if (typeof
|
|
41100
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41162
|
+
if (typeof __o_35["payload"] !== "object" || __o_35["payload"] === null || Array.isArray(__o_35["payload"])) {
|
|
41163
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_35["payload"], path: ["payload"] });
|
|
41101
41164
|
}
|
|
41102
41165
|
else {
|
|
41103
|
-
var
|
|
41104
|
-
if (typeof
|
|
41105
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41166
|
+
var __o_36 = Object.assign({}, __o_35["payload"]);
|
|
41167
|
+
if (typeof __o_36["requestId"] !== "string") {
|
|
41168
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["requestId"], path: ["payload"].concat("requestId") });
|
|
41106
41169
|
}
|
|
41107
|
-
if (typeof
|
|
41108
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41170
|
+
if (typeof __o_36["config"] !== "object" || __o_36["config"] === null || Array.isArray(__o_36["config"])) {
|
|
41171
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["config"], path: ["payload"].concat("config") });
|
|
41109
41172
|
}
|
|
41110
41173
|
else {
|
|
41111
|
-
var
|
|
41112
|
-
if (
|
|
41113
|
-
if (typeof
|
|
41114
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41174
|
+
var __o_37 = Object.assign({}, __o_36["config"]);
|
|
41175
|
+
if (__o_37["relay"] !== undefined) {
|
|
41176
|
+
if (typeof __o_37["relay"] !== "object" || __o_37["relay"] === null || Array.isArray(__o_37["relay"])) {
|
|
41177
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["relay"], path: ["payload"].concat("config").concat("relay") });
|
|
41115
41178
|
}
|
|
41116
41179
|
else {
|
|
41117
|
-
var
|
|
41118
|
-
if (typeof
|
|
41119
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41180
|
+
var __o_38 = __o_37["relay"];
|
|
41181
|
+
if (typeof __o_38["enabled"] !== "boolean") {
|
|
41182
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_38["enabled"], path: ["payload"].concat("config").concat("relay").concat("enabled") });
|
|
41183
|
+
}
|
|
41184
|
+
if (__o_38["servers"] !== undefined) {
|
|
41185
|
+
if (!Array.isArray(__o_38["servers"])) {
|
|
41186
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_38["servers"], path: ["payload"].concat("config").concat("relay").concat("servers") });
|
|
41187
|
+
}
|
|
41188
|
+
else {
|
|
41189
|
+
for (var __i_39 = 0; __i_39 < __o_38["servers"].length; __i_39++) {
|
|
41190
|
+
if (typeof __o_38["servers"][__i_39] !== "object" || __o_38["servers"][__i_39] === null || Array.isArray(__o_38["servers"][__i_39])) {
|
|
41191
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_38["servers"][__i_39], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39) });
|
|
41192
|
+
}
|
|
41193
|
+
else {
|
|
41194
|
+
var __o_40 = __o_38["servers"][__i_39];
|
|
41195
|
+
if (typeof __o_40["endpoint"] !== "string") {
|
|
41196
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_40["endpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("endpoint") });
|
|
41197
|
+
}
|
|
41198
|
+
else {
|
|
41199
|
+
if (__o_40["endpoint"].length < 1) {
|
|
41200
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_40["endpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("endpoint") });
|
|
41201
|
+
}
|
|
41202
|
+
}
|
|
41203
|
+
if (typeof __o_40["useTls"] !== "boolean") {
|
|
41204
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_40["useTls"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("useTls") });
|
|
41205
|
+
}
|
|
41206
|
+
if (__o_40["publicEndpoint"] !== undefined) {
|
|
41207
|
+
if (typeof __o_40["publicEndpoint"] !== "string") {
|
|
41208
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_40["publicEndpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("publicEndpoint") });
|
|
41209
|
+
}
|
|
41210
|
+
else {
|
|
41211
|
+
if (__o_40["publicEndpoint"].length < 1) {
|
|
41212
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_40["publicEndpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("publicEndpoint") });
|
|
41213
|
+
}
|
|
41214
|
+
}
|
|
41215
|
+
}
|
|
41216
|
+
if (__o_40["publicUseTls"] !== undefined) {
|
|
41217
|
+
if (typeof __o_40["publicUseTls"] !== "boolean") {
|
|
41218
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_40["publicUseTls"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("publicUseTls") });
|
|
41219
|
+
}
|
|
41220
|
+
}
|
|
41221
|
+
}
|
|
41222
|
+
}
|
|
41223
|
+
}
|
|
41120
41224
|
}
|
|
41121
41225
|
}
|
|
41122
41226
|
}
|
|
41123
|
-
if (typeof
|
|
41124
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41227
|
+
if (typeof __o_37["mcp"] !== "object" || __o_37["mcp"] === null || Array.isArray(__o_37["mcp"])) {
|
|
41228
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["mcp"], path: ["payload"].concat("config").concat("mcp") });
|
|
41125
41229
|
}
|
|
41126
41230
|
else {
|
|
41127
|
-
var
|
|
41128
|
-
if (
|
|
41129
|
-
if (typeof
|
|
41130
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41231
|
+
var __o_41 = __o_37["mcp"];
|
|
41232
|
+
if (__o_41["enabled"] !== undefined) {
|
|
41233
|
+
if (typeof __o_41["enabled"] !== "boolean") {
|
|
41234
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_41["enabled"], path: ["payload"].concat("config").concat("mcp").concat("enabled") });
|
|
41131
41235
|
}
|
|
41132
41236
|
}
|
|
41133
|
-
if (typeof
|
|
41134
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41237
|
+
if (typeof __o_41["injectIntoAgents"] !== "boolean") {
|
|
41238
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_41["injectIntoAgents"], path: ["payload"].concat("config").concat("mcp").concat("injectIntoAgents") });
|
|
41135
41239
|
}
|
|
41136
41240
|
}
|
|
41137
|
-
if (
|
|
41138
|
-
var
|
|
41139
|
-
var
|
|
41140
|
-
if (!
|
|
41141
|
-
var
|
|
41142
|
-
if (
|
|
41143
|
-
|
|
41241
|
+
if (__o_37["hostnames"] !== undefined) {
|
|
41242
|
+
var __u_42 = false;
|
|
41243
|
+
var __ue_43 = [];
|
|
41244
|
+
if (!__u_42) {
|
|
41245
|
+
var __ui_44 = [];
|
|
41246
|
+
if (__o_37["hostnames"] !== true) {
|
|
41247
|
+
__ui_44.push({ code: "invalid_value", values: [true], input: __o_37["hostnames"], path: ["payload"].concat("config").concat("hostnames") });
|
|
41144
41248
|
}
|
|
41145
|
-
if (
|
|
41146
|
-
|
|
41249
|
+
if (__ui_44.length === 0) {
|
|
41250
|
+
__u_42 = true;
|
|
41147
41251
|
}
|
|
41148
41252
|
else {
|
|
41149
41253
|
if (typeof __msg === "function") {
|
|
41150
|
-
for (var
|
|
41151
|
-
|
|
41152
|
-
|
|
41254
|
+
for (var __ufi_45 = 0; __ufi_45 < __ui_44.length; __ufi_45++) {
|
|
41255
|
+
__ui_44[__ufi_45].message = __msg(__ui_44[__ufi_45]);
|
|
41256
|
+
__ui_44[__ufi_45].input = undefined;
|
|
41153
41257
|
}
|
|
41154
41258
|
}
|
|
41155
|
-
|
|
41259
|
+
__ue_43.push(__ui_44);
|
|
41156
41260
|
}
|
|
41157
41261
|
}
|
|
41158
|
-
if (!
|
|
41159
|
-
var
|
|
41160
|
-
if (!Array.isArray(
|
|
41161
|
-
|
|
41262
|
+
if (!__u_42) {
|
|
41263
|
+
var __ui_46 = [];
|
|
41264
|
+
if (!Array.isArray(__o_37["hostnames"])) {
|
|
41265
|
+
__ui_46.push({ code: "invalid_type", expected: "array", input: __o_37["hostnames"], path: ["payload"].concat("config").concat("hostnames") });
|
|
41162
41266
|
}
|
|
41163
41267
|
else {
|
|
41164
|
-
for (var
|
|
41165
|
-
if (typeof
|
|
41166
|
-
|
|
41268
|
+
for (var __i_48 = 0; __i_48 < __o_37["hostnames"].length; __i_48++) {
|
|
41269
|
+
if (typeof __o_37["hostnames"][__i_48] !== "string") {
|
|
41270
|
+
__ui_46.push({ code: "invalid_type", expected: "string", input: __o_37["hostnames"][__i_48], path: ["payload"].concat("config").concat("hostnames").concat(__i_48) });
|
|
41167
41271
|
}
|
|
41168
41272
|
}
|
|
41169
41273
|
}
|
|
41170
|
-
if (
|
|
41171
|
-
|
|
41274
|
+
if (__ui_46.length === 0) {
|
|
41275
|
+
__u_42 = true;
|
|
41172
41276
|
}
|
|
41173
41277
|
else {
|
|
41174
41278
|
if (typeof __msg === "function") {
|
|
41175
|
-
for (var
|
|
41176
|
-
|
|
41177
|
-
|
|
41279
|
+
for (var __ufi_47 = 0; __ufi_47 < __ui_46.length; __ufi_47++) {
|
|
41280
|
+
__ui_46[__ufi_47].message = __msg(__ui_46[__ufi_47]);
|
|
41281
|
+
__ui_46[__ufi_47].input = undefined;
|
|
41178
41282
|
}
|
|
41179
41283
|
}
|
|
41180
|
-
|
|
41284
|
+
__ue_43.push(__ui_46);
|
|
41181
41285
|
}
|
|
41182
41286
|
}
|
|
41183
|
-
if (!
|
|
41184
|
-
_e.push({ code: "invalid_union", errors:
|
|
41287
|
+
if (!__u_42) {
|
|
41288
|
+
_e.push({ code: "invalid_union", errors: __ue_43, input: __o_37["hostnames"], path: ["payload"].concat("config").concat("hostnames") });
|
|
41185
41289
|
}
|
|
41186
41290
|
}
|
|
41187
|
-
if (
|
|
41188
|
-
if (typeof
|
|
41189
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41291
|
+
if (__o_37["cors"] !== undefined) {
|
|
41292
|
+
if (typeof __o_37["cors"] !== "object" || __o_37["cors"] === null || Array.isArray(__o_37["cors"])) {
|
|
41293
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["cors"], path: ["payload"].concat("config").concat("cors") });
|
|
41190
41294
|
}
|
|
41191
41295
|
else {
|
|
41192
|
-
var
|
|
41193
|
-
if (!Array.isArray(
|
|
41194
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41296
|
+
var __o_49 = __o_37["cors"];
|
|
41297
|
+
if (!Array.isArray(__o_49["allowedOrigins"])) {
|
|
41298
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_49["allowedOrigins"], path: ["payload"].concat("config").concat("cors").concat("allowedOrigins") });
|
|
41195
41299
|
}
|
|
41196
41300
|
else {
|
|
41197
|
-
for (var
|
|
41198
|
-
if (typeof
|
|
41199
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41301
|
+
for (var __i_50 = 0; __i_50 < __o_49["allowedOrigins"].length; __i_50++) {
|
|
41302
|
+
if (typeof __o_49["allowedOrigins"][__i_50] !== "string") {
|
|
41303
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_49["allowedOrigins"][__i_50], path: ["payload"].concat("config").concat("cors").concat("allowedOrigins").concat(__i_50) });
|
|
41200
41304
|
}
|
|
41201
41305
|
}
|
|
41202
41306
|
}
|
|
41203
41307
|
}
|
|
41204
41308
|
}
|
|
41205
|
-
if (
|
|
41206
|
-
var
|
|
41207
|
-
var
|
|
41208
|
-
if (!
|
|
41209
|
-
var
|
|
41210
|
-
if (
|
|
41211
|
-
|
|
41309
|
+
if (__o_37["trustedProxies"] !== undefined) {
|
|
41310
|
+
var __u_51 = false;
|
|
41311
|
+
var __ue_52 = [];
|
|
41312
|
+
if (!__u_51) {
|
|
41313
|
+
var __ui_53 = [];
|
|
41314
|
+
if (__o_37["trustedProxies"] !== true) {
|
|
41315
|
+
__ui_53.push({ code: "invalid_value", values: [true], input: __o_37["trustedProxies"], path: ["payload"].concat("config").concat("trustedProxies") });
|
|
41212
41316
|
}
|
|
41213
|
-
if (
|
|
41214
|
-
|
|
41317
|
+
if (__ui_53.length === 0) {
|
|
41318
|
+
__u_51 = true;
|
|
41215
41319
|
}
|
|
41216
41320
|
else {
|
|
41217
41321
|
if (typeof __msg === "function") {
|
|
41218
|
-
for (var
|
|
41219
|
-
|
|
41220
|
-
|
|
41322
|
+
for (var __ufi_54 = 0; __ufi_54 < __ui_53.length; __ufi_54++) {
|
|
41323
|
+
__ui_53[__ufi_54].message = __msg(__ui_53[__ufi_54]);
|
|
41324
|
+
__ui_53[__ufi_54].input = undefined;
|
|
41221
41325
|
}
|
|
41222
41326
|
}
|
|
41223
|
-
|
|
41327
|
+
__ue_52.push(__ui_53);
|
|
41224
41328
|
}
|
|
41225
41329
|
}
|
|
41226
|
-
if (!
|
|
41227
|
-
var
|
|
41228
|
-
if (!Array.isArray(
|
|
41229
|
-
|
|
41330
|
+
if (!__u_51) {
|
|
41331
|
+
var __ui_55 = [];
|
|
41332
|
+
if (!Array.isArray(__o_37["trustedProxies"])) {
|
|
41333
|
+
__ui_55.push({ code: "invalid_type", expected: "array", input: __o_37["trustedProxies"], path: ["payload"].concat("config").concat("trustedProxies") });
|
|
41230
41334
|
}
|
|
41231
41335
|
else {
|
|
41232
|
-
for (var
|
|
41233
|
-
if (typeof
|
|
41234
|
-
|
|
41336
|
+
for (var __i_57 = 0; __i_57 < __o_37["trustedProxies"].length; __i_57++) {
|
|
41337
|
+
if (typeof __o_37["trustedProxies"][__i_57] !== "string") {
|
|
41338
|
+
__ui_55.push({ code: "invalid_type", expected: "string", input: __o_37["trustedProxies"][__i_57], path: ["payload"].concat("config").concat("trustedProxies").concat(__i_57) });
|
|
41235
41339
|
}
|
|
41236
41340
|
}
|
|
41237
41341
|
}
|
|
41238
|
-
if (
|
|
41239
|
-
|
|
41342
|
+
if (__ui_55.length === 0) {
|
|
41343
|
+
__u_51 = true;
|
|
41240
41344
|
}
|
|
41241
41345
|
else {
|
|
41242
41346
|
if (typeof __msg === "function") {
|
|
41243
|
-
for (var
|
|
41244
|
-
|
|
41245
|
-
|
|
41347
|
+
for (var __ufi_56 = 0; __ufi_56 < __ui_55.length; __ufi_56++) {
|
|
41348
|
+
__ui_55[__ufi_56].message = __msg(__ui_55[__ufi_56]);
|
|
41349
|
+
__ui_55[__ufi_56].input = undefined;
|
|
41246
41350
|
}
|
|
41247
41351
|
}
|
|
41248
|
-
|
|
41352
|
+
__ue_52.push(__ui_55);
|
|
41249
41353
|
}
|
|
41250
41354
|
}
|
|
41251
|
-
if (!
|
|
41252
|
-
_e.push({ code: "invalid_union", errors:
|
|
41355
|
+
if (!__u_51) {
|
|
41356
|
+
_e.push({ code: "invalid_union", errors: __ue_52, input: __o_37["trustedProxies"], path: ["payload"].concat("config").concat("trustedProxies") });
|
|
41253
41357
|
}
|
|
41254
41358
|
}
|
|
41255
|
-
if (
|
|
41256
|
-
if (typeof
|
|
41257
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41359
|
+
if (__o_37["git"] !== undefined) {
|
|
41360
|
+
if (typeof __o_37["git"] !== "object" || __o_37["git"] === null || Array.isArray(__o_37["git"])) {
|
|
41361
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["git"], path: ["payload"].concat("config").concat("git") });
|
|
41258
41362
|
}
|
|
41259
41363
|
else {
|
|
41260
|
-
var
|
|
41261
|
-
if (typeof
|
|
41262
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
41364
|
+
var __o_58 = __o_37["git"];
|
|
41365
|
+
if (typeof __o_58["maxProcessesPerSecond"] !== "number") {
|
|
41366
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
41263
41367
|
}
|
|
41264
|
-
else if (Number.isNaN(
|
|
41265
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
41368
|
+
else if (Number.isNaN(__o_58["maxProcessesPerSecond"])) {
|
|
41369
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
41266
41370
|
}
|
|
41267
|
-
else if (!Number.isFinite(
|
|
41268
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
41371
|
+
else if (!Number.isFinite(__o_58["maxProcessesPerSecond"])) {
|
|
41372
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
41269
41373
|
}
|
|
41270
41374
|
else {
|
|
41271
|
-
if (!Number.isSafeInteger(
|
|
41272
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
41375
|
+
if (!Number.isSafeInteger(__o_58["maxProcessesPerSecond"])) {
|
|
41376
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
41273
41377
|
}
|
|
41274
|
-
if (
|
|
41275
|
-
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input:
|
|
41378
|
+
if (__o_58["maxProcessesPerSecond"] <= 0) {
|
|
41379
|
+
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
41276
41380
|
}
|
|
41277
41381
|
}
|
|
41278
|
-
if (typeof
|
|
41279
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
41382
|
+
if (typeof __o_58["maxProcessConcurrency"] !== "number") {
|
|
41383
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
41280
41384
|
}
|
|
41281
|
-
else if (Number.isNaN(
|
|
41282
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
41385
|
+
else if (Number.isNaN(__o_58["maxProcessConcurrency"])) {
|
|
41386
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
41283
41387
|
}
|
|
41284
|
-
else if (!Number.isFinite(
|
|
41285
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
41388
|
+
else if (!Number.isFinite(__o_58["maxProcessConcurrency"])) {
|
|
41389
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
41286
41390
|
}
|
|
41287
41391
|
else {
|
|
41288
|
-
if (!Number.isSafeInteger(
|
|
41289
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
41392
|
+
if (!Number.isSafeInteger(__o_58["maxProcessConcurrency"])) {
|
|
41393
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
41290
41394
|
}
|
|
41291
|
-
if (
|
|
41292
|
-
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input:
|
|
41395
|
+
if (__o_58["maxProcessConcurrency"] <= 0) {
|
|
41396
|
+
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
41293
41397
|
}
|
|
41294
41398
|
}
|
|
41295
41399
|
}
|
|
41296
41400
|
}
|
|
41297
|
-
if (
|
|
41298
|
-
if (typeof
|
|
41299
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41401
|
+
if (__o_37["app"] !== undefined) {
|
|
41402
|
+
if (typeof __o_37["app"] !== "object" || __o_37["app"] === null || Array.isArray(__o_37["app"])) {
|
|
41403
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["app"], path: ["payload"].concat("config").concat("app") });
|
|
41300
41404
|
}
|
|
41301
41405
|
else {
|
|
41302
|
-
var
|
|
41303
|
-
if (typeof
|
|
41304
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41406
|
+
var __o_59 = __o_37["app"];
|
|
41407
|
+
if (typeof __o_59["baseUrl"] !== "string") {
|
|
41408
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["baseUrl"], path: ["payload"].concat("config").concat("app").concat("baseUrl") });
|
|
41305
41409
|
}
|
|
41306
41410
|
}
|
|
41307
41411
|
}
|
|
41308
|
-
if (
|
|
41309
|
-
if (typeof
|
|
41310
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
41412
|
+
if (__o_37["catalogRefreshTimeoutMs"] !== undefined) {
|
|
41413
|
+
if (typeof __o_37["catalogRefreshTimeoutMs"] !== "number") {
|
|
41414
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
41311
41415
|
}
|
|
41312
|
-
else if (Number.isNaN(
|
|
41313
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
41416
|
+
else if (Number.isNaN(__o_37["catalogRefreshTimeoutMs"])) {
|
|
41417
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
41314
41418
|
}
|
|
41315
|
-
else if (!Number.isFinite(
|
|
41316
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
41419
|
+
else if (!Number.isFinite(__o_37["catalogRefreshTimeoutMs"])) {
|
|
41420
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
41317
41421
|
}
|
|
41318
41422
|
else {
|
|
41319
|
-
if (!Number.isSafeInteger(
|
|
41320
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
41423
|
+
if (!Number.isSafeInteger(__o_37["catalogRefreshTimeoutMs"])) {
|
|
41424
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
41321
41425
|
}
|
|
41322
|
-
if (
|
|
41323
|
-
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input:
|
|
41426
|
+
if (__o_37["catalogRefreshTimeoutMs"] <= 0) {
|
|
41427
|
+
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
41324
41428
|
}
|
|
41325
41429
|
}
|
|
41326
41430
|
}
|
|
41327
|
-
if (
|
|
41328
|
-
|
|
41431
|
+
if (__o_37["browserTools"] === undefined) {
|
|
41432
|
+
__o_37["browserTools"] = __rf[1]._zod.def.defaultValue;
|
|
41329
41433
|
}
|
|
41330
41434
|
else {
|
|
41331
|
-
if (typeof
|
|
41332
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41435
|
+
if (typeof __o_37["browserTools"] !== "object" || __o_37["browserTools"] === null || Array.isArray(__o_37["browserTools"])) {
|
|
41436
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["browserTools"], path: ["payload"].concat("config").concat("browserTools") });
|
|
41333
41437
|
}
|
|
41334
41438
|
else {
|
|
41335
|
-
var
|
|
41336
|
-
if (
|
|
41337
|
-
|
|
41439
|
+
var __o_60 = Object.assign({}, __o_37["browserTools"]);
|
|
41440
|
+
if (__o_60["enabled"] === undefined) {
|
|
41441
|
+
__o_60["enabled"] = __rf[0]._zod.def.defaultValue;
|
|
41338
41442
|
}
|
|
41339
41443
|
else {
|
|
41340
|
-
if (typeof
|
|
41341
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41444
|
+
if (typeof __o_60["enabled"] !== "boolean") {
|
|
41445
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_60["enabled"], path: ["payload"].concat("config").concat("browserTools").concat("enabled") });
|
|
41342
41446
|
}
|
|
41343
41447
|
}
|
|
41344
|
-
|
|
41448
|
+
__o_37["browserTools"] = __o_60;
|
|
41345
41449
|
}
|
|
41346
41450
|
}
|
|
41347
|
-
if (
|
|
41348
|
-
|
|
41451
|
+
if (__o_37["providers"] === undefined) {
|
|
41452
|
+
__o_37["providers"] = __rf[2]._zod.def.defaultValue;
|
|
41349
41453
|
}
|
|
41350
41454
|
else {
|
|
41351
|
-
if (typeof
|
|
41352
|
-
_e.push({ code: "invalid_type", expected: "record", input:
|
|
41455
|
+
if (typeof __o_37["providers"] !== "object" || __o_37["providers"] === null || Array.isArray(__o_37["providers"])) {
|
|
41456
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_37["providers"], path: ["payload"].concat("config").concat("providers") });
|
|
41353
41457
|
}
|
|
41354
41458
|
else {
|
|
41355
|
-
var
|
|
41356
|
-
for (var
|
|
41357
|
-
var
|
|
41358
|
-
var
|
|
41359
|
-
if (typeof
|
|
41360
|
-
|
|
41459
|
+
var __rk_61 = Object.keys(__o_37["providers"]);
|
|
41460
|
+
for (var __ri_62 = 0; __ri_62 < __rk_61.length; __ri_62++) {
|
|
41461
|
+
var __rkey_63 = __rk_61[__ri_62];
|
|
41462
|
+
var __rki_64 = [];
|
|
41463
|
+
if (typeof __rkey_63 !== "string") {
|
|
41464
|
+
__rki_64.push({ code: "invalid_type", expected: "string", input: __rkey_63, path: ["payload"].concat("config").concat("providers").concat(__rkey_63) });
|
|
41361
41465
|
}
|
|
41362
|
-
if (
|
|
41363
|
-
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("providers").concat(
|
|
41466
|
+
if (__rki_64.length > 0) {
|
|
41467
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("providers").concat(__rkey_63), issues: __rki_64 });
|
|
41364
41468
|
}
|
|
41365
41469
|
else {
|
|
41366
|
-
if (typeof
|
|
41367
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41470
|
+
if (typeof __o_37["providers"][__rkey_63] !== "object" || __o_37["providers"][__rkey_63] === null || Array.isArray(__o_37["providers"][__rkey_63])) {
|
|
41471
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["providers"][__rkey_63], path: ["payload"].concat("config").concat("providers").concat(__rkey_63) });
|
|
41368
41472
|
}
|
|
41369
41473
|
else {
|
|
41370
|
-
var
|
|
41371
|
-
if (
|
|
41372
|
-
if (typeof
|
|
41373
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41474
|
+
var __o_65 = __o_37["providers"][__rkey_63];
|
|
41475
|
+
if (__o_65["mateoTools"] !== undefined) {
|
|
41476
|
+
if (typeof __o_65["mateoTools"] !== "object" || __o_65["mateoTools"] === null || Array.isArray(__o_65["mateoTools"])) {
|
|
41477
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_65["mateoTools"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools") });
|
|
41374
41478
|
}
|
|
41375
41479
|
else {
|
|
41376
|
-
var
|
|
41377
|
-
if (
|
|
41378
|
-
if (typeof
|
|
41379
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41480
|
+
var __o_66 = __o_65["mateoTools"];
|
|
41481
|
+
if (__o_66["enabled"] !== undefined) {
|
|
41482
|
+
if (typeof __o_66["enabled"] !== "boolean") {
|
|
41483
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_66["enabled"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools").concat("enabled") });
|
|
41380
41484
|
}
|
|
41381
41485
|
}
|
|
41382
|
-
if (
|
|
41383
|
-
if (!Array.isArray(
|
|
41384
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41486
|
+
if (__o_66["disabledTools"] !== undefined) {
|
|
41487
|
+
if (!Array.isArray(__o_66["disabledTools"])) {
|
|
41488
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_66["disabledTools"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools").concat("disabledTools") });
|
|
41385
41489
|
}
|
|
41386
41490
|
else {
|
|
41387
|
-
for (var
|
|
41388
|
-
if (typeof
|
|
41389
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41491
|
+
for (var __i_67 = 0; __i_67 < __o_66["disabledTools"].length; __i_67++) {
|
|
41492
|
+
if (typeof __o_66["disabledTools"][__i_67] !== "string") {
|
|
41493
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_66["disabledTools"][__i_67], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools").concat("disabledTools").concat(__i_67) });
|
|
41390
41494
|
}
|
|
41391
41495
|
}
|
|
41392
41496
|
}
|
|
41393
41497
|
}
|
|
41394
41498
|
}
|
|
41395
41499
|
}
|
|
41396
|
-
if (
|
|
41397
|
-
if (typeof
|
|
41398
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41500
|
+
if (__o_65["enabled"] !== undefined) {
|
|
41501
|
+
if (typeof __o_65["enabled"] !== "boolean") {
|
|
41502
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_65["enabled"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("enabled") });
|
|
41399
41503
|
}
|
|
41400
41504
|
}
|
|
41401
|
-
if (
|
|
41402
|
-
if (!Array.isArray(
|
|
41403
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41505
|
+
if (__o_65["additionalModels"] !== undefined) {
|
|
41506
|
+
if (!Array.isArray(__o_65["additionalModels"])) {
|
|
41507
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_65["additionalModels"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels") });
|
|
41404
41508
|
}
|
|
41405
41509
|
else {
|
|
41406
|
-
for (var
|
|
41407
|
-
if (typeof
|
|
41408
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41510
|
+
for (var __i_68 = 0; __i_68 < __o_65["additionalModels"].length; __i_68++) {
|
|
41511
|
+
if (typeof __o_65["additionalModels"][__i_68] !== "object" || __o_65["additionalModels"][__i_68] === null || Array.isArray(__o_65["additionalModels"][__i_68])) {
|
|
41512
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_65["additionalModels"][__i_68], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68) });
|
|
41409
41513
|
}
|
|
41410
41514
|
else {
|
|
41411
|
-
var
|
|
41412
|
-
if (typeof
|
|
41413
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41515
|
+
var __o_69 = __o_65["additionalModels"][__i_68];
|
|
41516
|
+
if (typeof __o_69["id"] !== "string") {
|
|
41517
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["id"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("id") });
|
|
41414
41518
|
}
|
|
41415
41519
|
else {
|
|
41416
|
-
if (
|
|
41417
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
41520
|
+
if (__o_69["id"].length < 1) {
|
|
41521
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_69["id"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("id") });
|
|
41418
41522
|
}
|
|
41419
41523
|
}
|
|
41420
|
-
if (typeof
|
|
41421
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41524
|
+
if (typeof __o_69["label"] !== "string") {
|
|
41525
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["label"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("label") });
|
|
41422
41526
|
}
|
|
41423
41527
|
else {
|
|
41424
|
-
if (
|
|
41425
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
41528
|
+
if (__o_69["label"].length < 1) {
|
|
41529
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_69["label"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("label") });
|
|
41426
41530
|
}
|
|
41427
41531
|
}
|
|
41428
|
-
if (
|
|
41429
|
-
if (typeof
|
|
41430
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41532
|
+
if (__o_69["description"] !== undefined) {
|
|
41533
|
+
if (typeof __o_69["description"] !== "string") {
|
|
41534
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["description"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("description") });
|
|
41431
41535
|
}
|
|
41432
41536
|
}
|
|
41433
|
-
if (
|
|
41434
|
-
if (typeof
|
|
41435
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41537
|
+
if (__o_69["isDefault"] !== undefined) {
|
|
41538
|
+
if (typeof __o_69["isDefault"] !== "boolean") {
|
|
41539
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_69["isDefault"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("isDefault") });
|
|
41436
41540
|
}
|
|
41437
41541
|
}
|
|
41438
41542
|
}
|
|
@@ -41444,54 +41548,54 @@ export const SessionOutboundMessage134 = /* @__PURE__ */ (() => {
|
|
|
41444
41548
|
}
|
|
41445
41549
|
}
|
|
41446
41550
|
}
|
|
41447
|
-
if (
|
|
41448
|
-
|
|
41551
|
+
if (__o_37["metadataGeneration"] === undefined) {
|
|
41552
|
+
__o_37["metadataGeneration"] = __rf[4]._zod.def.defaultValue;
|
|
41449
41553
|
}
|
|
41450
41554
|
else {
|
|
41451
|
-
if (typeof
|
|
41452
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41555
|
+
if (typeof __o_37["metadataGeneration"] !== "object" || __o_37["metadataGeneration"] === null || Array.isArray(__o_37["metadataGeneration"])) {
|
|
41556
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["metadataGeneration"], path: ["payload"].concat("config").concat("metadataGeneration") });
|
|
41453
41557
|
}
|
|
41454
41558
|
else {
|
|
41455
|
-
var
|
|
41456
|
-
if (
|
|
41457
|
-
|
|
41559
|
+
var __o_70 = Object.assign({}, __o_37["metadataGeneration"]);
|
|
41560
|
+
if (__o_70["providers"] === undefined) {
|
|
41561
|
+
__o_70["providers"] = __rf[3]._zod.def.defaultValue;
|
|
41458
41562
|
}
|
|
41459
41563
|
else {
|
|
41460
|
-
if (!Array.isArray(
|
|
41461
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41564
|
+
if (!Array.isArray(__o_70["providers"])) {
|
|
41565
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_70["providers"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers") });
|
|
41462
41566
|
}
|
|
41463
41567
|
else {
|
|
41464
|
-
for (var
|
|
41465
|
-
if (typeof
|
|
41466
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41568
|
+
for (var __i_71 = 0; __i_71 < __o_70["providers"].length; __i_71++) {
|
|
41569
|
+
if (typeof __o_70["providers"][__i_71] !== "object" || __o_70["providers"][__i_71] === null || Array.isArray(__o_70["providers"][__i_71])) {
|
|
41570
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_70["providers"][__i_71], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71) });
|
|
41467
41571
|
}
|
|
41468
41572
|
else {
|
|
41469
|
-
var
|
|
41470
|
-
if (typeof
|
|
41471
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41573
|
+
var __o_72 = __o_70["providers"][__i_71];
|
|
41574
|
+
if (typeof __o_72["provider"] !== "string") {
|
|
41575
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["provider"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("provider") });
|
|
41472
41576
|
}
|
|
41473
41577
|
else {
|
|
41474
|
-
if (
|
|
41475
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
41578
|
+
if (__o_72["provider"].length < 1) {
|
|
41579
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_72["provider"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("provider") });
|
|
41476
41580
|
}
|
|
41477
41581
|
}
|
|
41478
|
-
if (
|
|
41479
|
-
if (typeof
|
|
41480
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41582
|
+
if (__o_72["model"] !== undefined) {
|
|
41583
|
+
if (typeof __o_72["model"] !== "string") {
|
|
41584
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["model"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("model") });
|
|
41481
41585
|
}
|
|
41482
41586
|
else {
|
|
41483
|
-
if (
|
|
41484
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
41587
|
+
if (__o_72["model"].length < 1) {
|
|
41588
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_72["model"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("model") });
|
|
41485
41589
|
}
|
|
41486
41590
|
}
|
|
41487
41591
|
}
|
|
41488
|
-
if (
|
|
41489
|
-
if (typeof
|
|
41490
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41592
|
+
if (__o_72["thinkingOptionId"] !== undefined) {
|
|
41593
|
+
if (typeof __o_72["thinkingOptionId"] !== "string") {
|
|
41594
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["thinkingOptionId"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("thinkingOptionId") });
|
|
41491
41595
|
}
|
|
41492
41596
|
else {
|
|
41493
|
-
if (
|
|
41494
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
41597
|
+
if (__o_72["thinkingOptionId"].length < 1) {
|
|
41598
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_72["thinkingOptionId"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("thinkingOptionId") });
|
|
41495
41599
|
}
|
|
41496
41600
|
}
|
|
41497
41601
|
}
|
|
@@ -41499,354 +41603,354 @@ export const SessionOutboundMessage134 = /* @__PURE__ */ (() => {
|
|
|
41499
41603
|
}
|
|
41500
41604
|
}
|
|
41501
41605
|
}
|
|
41502
|
-
|
|
41606
|
+
__o_37["metadataGeneration"] = __o_70;
|
|
41503
41607
|
}
|
|
41504
41608
|
}
|
|
41505
|
-
if (
|
|
41506
|
-
|
|
41609
|
+
if (__o_37["autoArchiveAfterMerge"] === undefined) {
|
|
41610
|
+
__o_37["autoArchiveAfterMerge"] = __rf[5]._zod.def.defaultValue;
|
|
41507
41611
|
}
|
|
41508
41612
|
else {
|
|
41509
|
-
if (typeof
|
|
41510
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41613
|
+
if (typeof __o_37["autoArchiveAfterMerge"] !== "boolean") {
|
|
41614
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_37["autoArchiveAfterMerge"], path: ["payload"].concat("config").concat("autoArchiveAfterMerge") });
|
|
41511
41615
|
}
|
|
41512
41616
|
}
|
|
41513
|
-
if (
|
|
41514
|
-
|
|
41617
|
+
if (__o_37["enableTerminalAgentHooks"] === undefined) {
|
|
41618
|
+
__o_37["enableTerminalAgentHooks"] = __rf[6]._zod.def.defaultValue;
|
|
41515
41619
|
}
|
|
41516
41620
|
else {
|
|
41517
|
-
if (typeof
|
|
41518
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41621
|
+
if (typeof __o_37["enableTerminalAgentHooks"] !== "boolean") {
|
|
41622
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_37["enableTerminalAgentHooks"], path: ["payload"].concat("config").concat("enableTerminalAgentHooks") });
|
|
41519
41623
|
}
|
|
41520
41624
|
}
|
|
41521
|
-
if (
|
|
41522
|
-
|
|
41625
|
+
if (__o_37["appendSystemPrompt"] === undefined) {
|
|
41626
|
+
__o_37["appendSystemPrompt"] = __rf[7]._zod.def.defaultValue;
|
|
41523
41627
|
}
|
|
41524
41628
|
else {
|
|
41525
|
-
if (typeof
|
|
41526
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41629
|
+
if (typeof __o_37["appendSystemPrompt"] !== "string") {
|
|
41630
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_37["appendSystemPrompt"], path: ["payload"].concat("config").concat("appendSystemPrompt") });
|
|
41527
41631
|
}
|
|
41528
41632
|
}
|
|
41529
|
-
if (
|
|
41530
|
-
if (!Array.isArray(
|
|
41531
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41633
|
+
if (__o_37["terminalProfiles"] !== undefined) {
|
|
41634
|
+
if (!Array.isArray(__o_37["terminalProfiles"])) {
|
|
41635
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_37["terminalProfiles"], path: ["payload"].concat("config").concat("terminalProfiles") });
|
|
41532
41636
|
}
|
|
41533
41637
|
else {
|
|
41534
|
-
for (var
|
|
41535
|
-
if (typeof
|
|
41536
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41638
|
+
for (var __i_73 = 0; __i_73 < __o_37["terminalProfiles"].length; __i_73++) {
|
|
41639
|
+
if (typeof __o_37["terminalProfiles"][__i_73] !== "object" || __o_37["terminalProfiles"][__i_73] === null || Array.isArray(__o_37["terminalProfiles"][__i_73])) {
|
|
41640
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["terminalProfiles"][__i_73], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73) });
|
|
41537
41641
|
}
|
|
41538
41642
|
else {
|
|
41539
|
-
var
|
|
41540
|
-
if (typeof
|
|
41541
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41643
|
+
var __o_74 = __o_37["terminalProfiles"][__i_73];
|
|
41644
|
+
if (typeof __o_74["id"] !== "string") {
|
|
41645
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["id"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("id") });
|
|
41542
41646
|
}
|
|
41543
|
-
if (typeof
|
|
41544
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41647
|
+
if (typeof __o_74["name"] !== "string") {
|
|
41648
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["name"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("name") });
|
|
41545
41649
|
}
|
|
41546
|
-
if (typeof
|
|
41547
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41650
|
+
if (typeof __o_74["command"] !== "string") {
|
|
41651
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["command"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("command") });
|
|
41548
41652
|
}
|
|
41549
|
-
if (
|
|
41550
|
-
if (!Array.isArray(
|
|
41551
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41653
|
+
if (__o_74["args"] !== undefined) {
|
|
41654
|
+
if (!Array.isArray(__o_74["args"])) {
|
|
41655
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_74["args"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("args") });
|
|
41552
41656
|
}
|
|
41553
41657
|
else {
|
|
41554
|
-
for (var
|
|
41555
|
-
if (typeof
|
|
41556
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41658
|
+
for (var __i_75 = 0; __i_75 < __o_74["args"].length; __i_75++) {
|
|
41659
|
+
if (typeof __o_74["args"][__i_75] !== "string") {
|
|
41660
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["args"][__i_75], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("args").concat(__i_75) });
|
|
41557
41661
|
}
|
|
41558
41662
|
}
|
|
41559
41663
|
}
|
|
41560
41664
|
}
|
|
41561
|
-
if (
|
|
41562
|
-
if (typeof
|
|
41563
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41665
|
+
if (__o_74["icon"] !== undefined) {
|
|
41666
|
+
if (typeof __o_74["icon"] !== "string") {
|
|
41667
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["icon"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("icon") });
|
|
41564
41668
|
}
|
|
41565
41669
|
}
|
|
41566
41670
|
}
|
|
41567
41671
|
}
|
|
41568
41672
|
}
|
|
41569
41673
|
}
|
|
41570
|
-
if (
|
|
41571
|
-
if (!Array.isArray(
|
|
41572
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41674
|
+
if (__o_37["agentProfiles"] !== undefined) {
|
|
41675
|
+
if (!Array.isArray(__o_37["agentProfiles"])) {
|
|
41676
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_37["agentProfiles"], path: ["payload"].concat("config").concat("agentProfiles") });
|
|
41573
41677
|
}
|
|
41574
41678
|
else {
|
|
41575
|
-
for (var
|
|
41576
|
-
if (typeof
|
|
41577
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41679
|
+
for (var __i_76 = 0; __i_76 < __o_37["agentProfiles"].length; __i_76++) {
|
|
41680
|
+
if (typeof __o_37["agentProfiles"][__i_76] !== "object" || __o_37["agentProfiles"][__i_76] === null || Array.isArray(__o_37["agentProfiles"][__i_76])) {
|
|
41681
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["agentProfiles"][__i_76], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76) });
|
|
41578
41682
|
}
|
|
41579
41683
|
else {
|
|
41580
|
-
var
|
|
41581
|
-
if (typeof
|
|
41582
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41684
|
+
var __o_77 = __o_37["agentProfiles"][__i_76];
|
|
41685
|
+
if (typeof __o_77["id"] !== "string") {
|
|
41686
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["id"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("id") });
|
|
41583
41687
|
}
|
|
41584
|
-
if (typeof
|
|
41585
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41688
|
+
if (typeof __o_77["name"] !== "string") {
|
|
41689
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["name"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("name") });
|
|
41586
41690
|
}
|
|
41587
|
-
if (
|
|
41588
|
-
if (typeof
|
|
41589
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41691
|
+
if (__o_77["icon"] !== undefined) {
|
|
41692
|
+
if (typeof __o_77["icon"] !== "string") {
|
|
41693
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["icon"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("icon") });
|
|
41590
41694
|
}
|
|
41591
41695
|
}
|
|
41592
|
-
if (
|
|
41593
|
-
if (typeof
|
|
41594
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41696
|
+
if (__o_77["color"] !== undefined) {
|
|
41697
|
+
if (typeof __o_77["color"] !== "string") {
|
|
41698
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["color"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("color") });
|
|
41595
41699
|
}
|
|
41596
41700
|
}
|
|
41597
|
-
if (typeof
|
|
41598
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41701
|
+
if (typeof __o_77["provider"] !== "string") {
|
|
41702
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["provider"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("provider") });
|
|
41599
41703
|
}
|
|
41600
|
-
if (
|
|
41601
|
-
if (typeof
|
|
41602
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41704
|
+
if (__o_77["model"] !== undefined) {
|
|
41705
|
+
if (typeof __o_77["model"] !== "string") {
|
|
41706
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["model"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("model") });
|
|
41603
41707
|
}
|
|
41604
41708
|
}
|
|
41605
|
-
if (
|
|
41606
|
-
if (typeof
|
|
41607
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41709
|
+
if (__o_77["modeId"] !== undefined) {
|
|
41710
|
+
if (typeof __o_77["modeId"] !== "string") {
|
|
41711
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["modeId"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("modeId") });
|
|
41608
41712
|
}
|
|
41609
41713
|
}
|
|
41610
|
-
if (
|
|
41611
|
-
if (typeof
|
|
41612
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41714
|
+
if (__o_77["thinkingOptionId"] !== undefined) {
|
|
41715
|
+
if (typeof __o_77["thinkingOptionId"] !== "string") {
|
|
41716
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["thinkingOptionId"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("thinkingOptionId") });
|
|
41613
41717
|
}
|
|
41614
41718
|
}
|
|
41615
|
-
if (
|
|
41616
|
-
if (typeof
|
|
41617
|
-
_e.push({ code: "invalid_type", expected: "record", input:
|
|
41719
|
+
if (__o_77["featureValues"] !== undefined) {
|
|
41720
|
+
if (typeof __o_77["featureValues"] !== "object" || __o_77["featureValues"] === null || Array.isArray(__o_77["featureValues"])) {
|
|
41721
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_77["featureValues"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("featureValues") });
|
|
41618
41722
|
}
|
|
41619
41723
|
else {
|
|
41620
|
-
var
|
|
41621
|
-
for (var
|
|
41622
|
-
var
|
|
41623
|
-
var
|
|
41624
|
-
if (typeof
|
|
41625
|
-
|
|
41724
|
+
var __rk_78 = Object.keys(__o_77["featureValues"]);
|
|
41725
|
+
for (var __ri_79 = 0; __ri_79 < __rk_78.length; __ri_79++) {
|
|
41726
|
+
var __rkey_80 = __rk_78[__ri_79];
|
|
41727
|
+
var __rki_81 = [];
|
|
41728
|
+
if (typeof __rkey_80 !== "string") {
|
|
41729
|
+
__rki_81.push({ code: "invalid_type", expected: "string", input: __rkey_80, path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("featureValues").concat(__rkey_80) });
|
|
41626
41730
|
}
|
|
41627
|
-
if (
|
|
41628
|
-
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("agentProfiles").concat(
|
|
41731
|
+
if (__rki_81.length > 0) {
|
|
41732
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("featureValues").concat(__rkey_80), issues: __rki_81 });
|
|
41629
41733
|
}
|
|
41630
41734
|
else { }
|
|
41631
41735
|
}
|
|
41632
41736
|
}
|
|
41633
41737
|
}
|
|
41634
|
-
if (
|
|
41635
|
-
if (typeof
|
|
41636
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41738
|
+
if (__o_77["notes"] !== undefined) {
|
|
41739
|
+
if (typeof __o_77["notes"] !== "string") {
|
|
41740
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["notes"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("notes") });
|
|
41637
41741
|
}
|
|
41638
41742
|
}
|
|
41639
41743
|
}
|
|
41640
41744
|
}
|
|
41641
41745
|
}
|
|
41642
41746
|
}
|
|
41643
|
-
if (
|
|
41644
|
-
if (typeof
|
|
41645
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41747
|
+
if (__o_37["agents"] !== undefined) {
|
|
41748
|
+
if (typeof __o_37["agents"] !== "object" || __o_37["agents"] === null || Array.isArray(__o_37["agents"])) {
|
|
41749
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["agents"], path: ["payload"].concat("config").concat("agents") });
|
|
41646
41750
|
}
|
|
41647
41751
|
else {
|
|
41648
|
-
var
|
|
41649
|
-
if (
|
|
41650
|
-
if (
|
|
41651
|
-
var
|
|
41652
|
-
var
|
|
41653
|
-
if (!
|
|
41654
|
-
var
|
|
41655
|
-
if (
|
|
41656
|
-
|
|
41657
|
-
}
|
|
41658
|
-
if (
|
|
41659
|
-
|
|
41752
|
+
var __o_82 = __o_37["agents"];
|
|
41753
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== undefined) {
|
|
41754
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== null) {
|
|
41755
|
+
var __u_83 = false;
|
|
41756
|
+
var __ue_84 = [];
|
|
41757
|
+
if (!__u_83) {
|
|
41758
|
+
var __ui_85 = [];
|
|
41759
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== 60) {
|
|
41760
|
+
__ui_85.push({ code: "invalid_value", values: [60], input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
41761
|
+
}
|
|
41762
|
+
if (__ui_85.length === 0) {
|
|
41763
|
+
__u_83 = true;
|
|
41660
41764
|
}
|
|
41661
41765
|
else {
|
|
41662
41766
|
if (typeof __msg === "function") {
|
|
41663
|
-
for (var
|
|
41664
|
-
|
|
41665
|
-
|
|
41767
|
+
for (var __ufi_86 = 0; __ufi_86 < __ui_85.length; __ufi_86++) {
|
|
41768
|
+
__ui_85[__ufi_86].message = __msg(__ui_85[__ufi_86]);
|
|
41769
|
+
__ui_85[__ufi_86].input = undefined;
|
|
41666
41770
|
}
|
|
41667
41771
|
}
|
|
41668
|
-
|
|
41772
|
+
__ue_84.push(__ui_85);
|
|
41669
41773
|
}
|
|
41670
41774
|
}
|
|
41671
|
-
if (!
|
|
41672
|
-
var
|
|
41673
|
-
if (
|
|
41674
|
-
|
|
41775
|
+
if (!__u_83) {
|
|
41776
|
+
var __ui_87 = [];
|
|
41777
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== 120) {
|
|
41778
|
+
__ui_87.push({ code: "invalid_value", values: [120], input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
41675
41779
|
}
|
|
41676
|
-
if (
|
|
41677
|
-
|
|
41780
|
+
if (__ui_87.length === 0) {
|
|
41781
|
+
__u_83 = true;
|
|
41678
41782
|
}
|
|
41679
41783
|
else {
|
|
41680
41784
|
if (typeof __msg === "function") {
|
|
41681
|
-
for (var
|
|
41682
|
-
|
|
41683
|
-
|
|
41785
|
+
for (var __ufi_88 = 0; __ufi_88 < __ui_87.length; __ufi_88++) {
|
|
41786
|
+
__ui_87[__ufi_88].message = __msg(__ui_87[__ufi_88]);
|
|
41787
|
+
__ui_87[__ufi_88].input = undefined;
|
|
41684
41788
|
}
|
|
41685
41789
|
}
|
|
41686
|
-
|
|
41790
|
+
__ue_84.push(__ui_87);
|
|
41687
41791
|
}
|
|
41688
41792
|
}
|
|
41689
|
-
if (!
|
|
41690
|
-
var
|
|
41691
|
-
if (
|
|
41692
|
-
|
|
41793
|
+
if (!__u_83) {
|
|
41794
|
+
var __ui_89 = [];
|
|
41795
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== 240) {
|
|
41796
|
+
__ui_89.push({ code: "invalid_value", values: [240], input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
41693
41797
|
}
|
|
41694
|
-
if (
|
|
41695
|
-
|
|
41798
|
+
if (__ui_89.length === 0) {
|
|
41799
|
+
__u_83 = true;
|
|
41696
41800
|
}
|
|
41697
41801
|
else {
|
|
41698
41802
|
if (typeof __msg === "function") {
|
|
41699
|
-
for (var
|
|
41700
|
-
|
|
41701
|
-
|
|
41803
|
+
for (var __ufi_90 = 0; __ufi_90 < __ui_89.length; __ufi_90++) {
|
|
41804
|
+
__ui_89[__ufi_90].message = __msg(__ui_89[__ufi_90]);
|
|
41805
|
+
__ui_89[__ufi_90].input = undefined;
|
|
41702
41806
|
}
|
|
41703
41807
|
}
|
|
41704
|
-
|
|
41808
|
+
__ue_84.push(__ui_89);
|
|
41705
41809
|
}
|
|
41706
41810
|
}
|
|
41707
|
-
if (!
|
|
41708
|
-
_e.push({ code: "invalid_union", errors:
|
|
41811
|
+
if (!__u_83) {
|
|
41812
|
+
_e.push({ code: "invalid_union", errors: __ue_84, input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
41709
41813
|
}
|
|
41710
41814
|
}
|
|
41711
41815
|
}
|
|
41712
41816
|
}
|
|
41713
41817
|
}
|
|
41714
|
-
if (
|
|
41715
|
-
if (typeof
|
|
41716
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41818
|
+
if (__o_37["skills"] !== undefined) {
|
|
41819
|
+
if (typeof __o_37["skills"] !== "object" || __o_37["skills"] === null || Array.isArray(__o_37["skills"])) {
|
|
41820
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["skills"], path: ["payload"].concat("config").concat("skills") });
|
|
41717
41821
|
}
|
|
41718
41822
|
else {
|
|
41719
|
-
var
|
|
41720
|
-
if (
|
|
41721
|
-
if (typeof
|
|
41722
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41823
|
+
var __o_91 = __o_37["skills"];
|
|
41824
|
+
if (__o_91["selection"] !== undefined) {
|
|
41825
|
+
if (typeof __o_91["selection"] !== "object" || __o_91["selection"] === null || Array.isArray(__o_91["selection"])) {
|
|
41826
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_91["selection"], path: ["payload"].concat("config").concat("skills").concat("selection") });
|
|
41723
41827
|
}
|
|
41724
41828
|
else {
|
|
41725
|
-
var
|
|
41726
|
-
switch (
|
|
41829
|
+
var __du_92 = __o_91["selection"];
|
|
41830
|
+
switch (__du_92["mode"]) {
|
|
41727
41831
|
case "all":
|
|
41728
|
-
if (typeof
|
|
41729
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41832
|
+
if (typeof __du_92 !== "object" || __du_92 === null || Array.isArray(__du_92)) {
|
|
41833
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_92, path: ["payload"].concat("config").concat("skills").concat("selection") });
|
|
41730
41834
|
}
|
|
41731
41835
|
else {
|
|
41732
|
-
var
|
|
41733
|
-
if (
|
|
41734
|
-
_e.push({ code: "invalid_value", values: ["all"], input:
|
|
41836
|
+
var __o_93 = __du_92;
|
|
41837
|
+
if (__o_93["mode"] !== "all") {
|
|
41838
|
+
_e.push({ code: "invalid_value", values: ["all"], input: __o_93["mode"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("mode") });
|
|
41735
41839
|
}
|
|
41736
41840
|
}
|
|
41737
41841
|
break;
|
|
41738
41842
|
case "custom":
|
|
41739
|
-
if (typeof
|
|
41740
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41843
|
+
if (typeof __du_92 !== "object" || __du_92 === null || Array.isArray(__du_92)) {
|
|
41844
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_92, path: ["payload"].concat("config").concat("skills").concat("selection") });
|
|
41741
41845
|
}
|
|
41742
41846
|
else {
|
|
41743
|
-
var
|
|
41744
|
-
if (
|
|
41745
|
-
_e.push({ code: "invalid_value", values: ["custom"], input:
|
|
41847
|
+
var __o_94 = __du_92;
|
|
41848
|
+
if (__o_94["mode"] !== "custom") {
|
|
41849
|
+
_e.push({ code: "invalid_value", values: ["custom"], input: __o_94["mode"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("mode") });
|
|
41746
41850
|
}
|
|
41747
|
-
if (!Array.isArray(
|
|
41748
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41851
|
+
if (!Array.isArray(__o_94["skills"])) {
|
|
41852
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_94["skills"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("skills") });
|
|
41749
41853
|
}
|
|
41750
41854
|
else {
|
|
41751
|
-
for (var
|
|
41752
|
-
if (typeof
|
|
41753
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41855
|
+
for (var __i_95 = 0; __i_95 < __o_94["skills"].length; __i_95++) {
|
|
41856
|
+
if (typeof __o_94["skills"][__i_95] !== "string") {
|
|
41857
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_94["skills"][__i_95], path: ["payload"].concat("config").concat("skills").concat("selection").concat("skills").concat(__i_95) });
|
|
41754
41858
|
}
|
|
41755
41859
|
}
|
|
41756
41860
|
}
|
|
41757
41861
|
}
|
|
41758
41862
|
break;
|
|
41759
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "mode", options: ["all", "custom"], input:
|
|
41863
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "mode", options: ["all", "custom"], input: __o_91["selection"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("mode") });
|
|
41760
41864
|
}
|
|
41761
41865
|
}
|
|
41762
41866
|
}
|
|
41763
41867
|
}
|
|
41764
41868
|
}
|
|
41765
|
-
if (
|
|
41766
|
-
if (typeof
|
|
41767
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41869
|
+
if (__o_37["pluginsEnabled"] !== undefined) {
|
|
41870
|
+
if (typeof __o_37["pluginsEnabled"] !== "boolean") {
|
|
41871
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_37["pluginsEnabled"], path: ["payload"].concat("config").concat("pluginsEnabled") });
|
|
41768
41872
|
}
|
|
41769
41873
|
}
|
|
41770
|
-
if (
|
|
41771
|
-
if (typeof
|
|
41772
|
-
_e.push({ code: "invalid_type", expected: "record", input:
|
|
41874
|
+
if (__o_37["plugins"] !== undefined) {
|
|
41875
|
+
if (typeof __o_37["plugins"] !== "object" || __o_37["plugins"] === null || Array.isArray(__o_37["plugins"])) {
|
|
41876
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_37["plugins"], path: ["payload"].concat("config").concat("plugins") });
|
|
41773
41877
|
}
|
|
41774
41878
|
else {
|
|
41775
|
-
var
|
|
41776
|
-
for (var
|
|
41777
|
-
var
|
|
41778
|
-
var
|
|
41779
|
-
if (typeof
|
|
41780
|
-
|
|
41879
|
+
var __rk_96 = Object.keys(__o_37["plugins"]);
|
|
41880
|
+
for (var __ri_97 = 0; __ri_97 < __rk_96.length; __ri_97++) {
|
|
41881
|
+
var __rkey_98 = __rk_96[__ri_97];
|
|
41882
|
+
var __rki_99 = [];
|
|
41883
|
+
if (typeof __rkey_98 !== "string") {
|
|
41884
|
+
__rki_99.push({ code: "invalid_type", expected: "string", input: __rkey_98, path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
41781
41885
|
}
|
|
41782
41886
|
else {
|
|
41783
|
-
if (!
|
|
41784
|
-
|
|
41887
|
+
if (!__re_re_29.test(__rkey_98)) {
|
|
41888
|
+
__rki_99.push({ code: "invalid_format", format: "regex", pattern: __re_re_29.toString(), origin: "string", input: __rkey_98, path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
41785
41889
|
}
|
|
41786
41890
|
}
|
|
41787
|
-
if (
|
|
41788
|
-
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("plugins").concat(
|
|
41891
|
+
if (__rki_99.length > 0) {
|
|
41892
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("plugins").concat(__rkey_98), issues: __rki_99 });
|
|
41789
41893
|
}
|
|
41790
41894
|
else {
|
|
41791
|
-
if (typeof
|
|
41792
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41895
|
+
if (typeof __o_37["plugins"][__rkey_98] !== "object" || __o_37["plugins"][__rkey_98] === null || Array.isArray(__o_37["plugins"][__rkey_98])) {
|
|
41896
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["plugins"][__rkey_98], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
41793
41897
|
}
|
|
41794
41898
|
else {
|
|
41795
|
-
var
|
|
41796
|
-
switch (
|
|
41899
|
+
var __du_100 = __o_37["plugins"][__rkey_98];
|
|
41900
|
+
switch (__du_100["source"]) {
|
|
41797
41901
|
case "directory":
|
|
41798
|
-
if (typeof
|
|
41799
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
41902
|
+
if (typeof __du_100 !== "object" || __du_100 === null || Array.isArray(__du_100)) {
|
|
41903
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_100, path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
41800
41904
|
}
|
|
41801
41905
|
else {
|
|
41802
|
-
var
|
|
41803
|
-
if (
|
|
41804
|
-
_e.push({ code: "invalid_value", values: ["directory"], input:
|
|
41906
|
+
var __o_101 = __du_100;
|
|
41907
|
+
if (__o_101["source"] !== "directory") {
|
|
41908
|
+
_e.push({ code: "invalid_value", values: ["directory"], input: __o_101["source"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("source") });
|
|
41805
41909
|
}
|
|
41806
|
-
if (typeof
|
|
41807
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41910
|
+
if (typeof __o_101["path"] !== "string") {
|
|
41911
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_101["path"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("path") });
|
|
41808
41912
|
}
|
|
41809
41913
|
else {
|
|
41810
|
-
if (
|
|
41811
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
41914
|
+
if (__o_101["path"].length < 1) {
|
|
41915
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_101["path"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("path") });
|
|
41812
41916
|
}
|
|
41813
41917
|
}
|
|
41814
|
-
if (
|
|
41815
|
-
if (typeof
|
|
41816
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
41918
|
+
if (__o_101["enabled"] !== undefined) {
|
|
41919
|
+
if (typeof __o_101["enabled"] !== "boolean") {
|
|
41920
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_101["enabled"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("enabled") });
|
|
41817
41921
|
}
|
|
41818
41922
|
}
|
|
41819
41923
|
}
|
|
41820
41924
|
break;
|
|
41821
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "source", options: ["directory"], input:
|
|
41925
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "source", options: ["directory"], input: __o_37["plugins"][__rkey_98], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("source") });
|
|
41822
41926
|
}
|
|
41823
41927
|
}
|
|
41824
41928
|
}
|
|
41825
41929
|
}
|
|
41826
41930
|
}
|
|
41827
41931
|
}
|
|
41828
|
-
if (
|
|
41829
|
-
if (!Array.isArray(
|
|
41830
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
41932
|
+
if (__o_37["disabledBuiltinPlugins"] !== undefined) {
|
|
41933
|
+
if (!Array.isArray(__o_37["disabledBuiltinPlugins"])) {
|
|
41934
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_37["disabledBuiltinPlugins"], path: ["payload"].concat("config").concat("disabledBuiltinPlugins") });
|
|
41831
41935
|
}
|
|
41832
41936
|
else {
|
|
41833
|
-
for (var
|
|
41834
|
-
if (typeof
|
|
41835
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
41937
|
+
for (var __i_102 = 0; __i_102 < __o_37["disabledBuiltinPlugins"].length; __i_102++) {
|
|
41938
|
+
if (typeof __o_37["disabledBuiltinPlugins"][__i_102] !== "string") {
|
|
41939
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_37["disabledBuiltinPlugins"][__i_102], path: ["payload"].concat("config").concat("disabledBuiltinPlugins").concat(__i_102) });
|
|
41836
41940
|
}
|
|
41837
41941
|
else {
|
|
41838
|
-
if (!
|
|
41839
|
-
_e.push({ code: "invalid_format", format: "regex", pattern:
|
|
41942
|
+
if (!__re_re_29.test(__o_37["disabledBuiltinPlugins"][__i_102])) {
|
|
41943
|
+
_e.push({ code: "invalid_format", format: "regex", pattern: __re_re_29.toString(), origin: "string", input: __o_37["disabledBuiltinPlugins"][__i_102], path: ["payload"].concat("config").concat("disabledBuiltinPlugins").concat(__i_102) });
|
|
41840
41944
|
}
|
|
41841
41945
|
}
|
|
41842
41946
|
}
|
|
41843
41947
|
}
|
|
41844
41948
|
}
|
|
41845
|
-
|
|
41949
|
+
__o_36["config"] = __o_37;
|
|
41846
41950
|
}
|
|
41847
|
-
|
|
41951
|
+
__o_35["payload"] = __o_36;
|
|
41848
41952
|
}
|
|
41849
|
-
_d =
|
|
41953
|
+
_d = __o_35;
|
|
41850
41954
|
}
|
|
41851
41955
|
return __fin(_e, _d);
|
|
41852
41956
|
}
|
|
@@ -41856,7 +41960,7 @@ export const SessionOutboundMessage135 = /* @__PURE__ */ (() => {
|
|
|
41856
41960
|
var __rf = [__src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["browserTools"]._zod.def.innerType.shape["enabled"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["browserTools"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["providers"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["metadataGeneration"]._zod.def.innerType.shape["providers"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["metadataGeneration"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["autoArchiveAfterMerge"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["enableTerminalAgentHooks"], __src_SessionOutboundMessage135.schema.shape["payload"].shape["config"].shape["appendSystemPrompt"]];
|
|
41857
41961
|
function __af_1(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
41858
41962
|
__ae_0 = a[i];
|
|
41859
|
-
if (!(typeof __ae_0 === "string")) {
|
|
41963
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["endpoint"] === "string" && __ae_0["endpoint"].length >= 1 && typeof __ae_0["useTls"] === "boolean" && (__ae_0["publicEndpoint"] === undefined || (typeof __ae_0["publicEndpoint"] === "string" && __ae_0["publicEndpoint"].length >= 1)) && (__ae_0["publicUseTls"] === undefined || (typeof __ae_0["publicUseTls"] === "boolean")))) {
|
|
41860
41964
|
return false;
|
|
41861
41965
|
}
|
|
41862
41966
|
} return true; }
|
|
@@ -41872,84 +41976,90 @@ export const SessionOutboundMessage135 = /* @__PURE__ */ (() => {
|
|
|
41872
41976
|
return false;
|
|
41873
41977
|
}
|
|
41874
41978
|
} return true; }
|
|
41875
|
-
function
|
|
41876
|
-
|
|
41877
|
-
if (!(typeof
|
|
41979
|
+
function __af_7(a) { for (var __ae_6, i = 0; i < a.length; i++) {
|
|
41980
|
+
__ae_6 = a[i];
|
|
41981
|
+
if (!(typeof __ae_6 === "string")) {
|
|
41878
41982
|
return false;
|
|
41879
41983
|
}
|
|
41880
41984
|
} return true; }
|
|
41881
41985
|
function __af_10(a) { for (var __ae_9, i = 0; i < a.length; i++) {
|
|
41882
41986
|
__ae_9 = a[i];
|
|
41883
|
-
if (!(typeof __ae_9 === "
|
|
41987
|
+
if (!(typeof __ae_9 === "string")) {
|
|
41884
41988
|
return false;
|
|
41885
41989
|
}
|
|
41886
41990
|
} return true; }
|
|
41887
|
-
function
|
|
41888
|
-
|
|
41889
|
-
if (!(typeof
|
|
41991
|
+
function __af_12(a) { for (var __ae_11, i = 0; i < a.length; i++) {
|
|
41992
|
+
__ae_11 = a[i];
|
|
41993
|
+
if (!(typeof __ae_11 === "object" && __ae_11 !== null && !Array.isArray(__ae_11) && typeof __ae_11["id"] === "string" && __ae_11["id"].length >= 1 && typeof __ae_11["label"] === "string" && __ae_11["label"].length >= 1 && (__ae_11["description"] === undefined || (typeof __ae_11["description"] === "string")) && (__ae_11["isDefault"] === undefined || (typeof __ae_11["isDefault"] === "boolean")))) {
|
|
41890
41994
|
return false;
|
|
41891
41995
|
}
|
|
41892
41996
|
} return true; }
|
|
41893
|
-
function
|
|
41894
|
-
|
|
41895
|
-
if (!(typeof
|
|
41997
|
+
function __rf_13(o) { var __rk_8, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
41998
|
+
__rk_8 = ks[i];
|
|
41999
|
+
if (!(typeof __rk_8 === "string" && typeof o[__rk_8] === "object" && o[__rk_8] !== null && !Array.isArray(o[__rk_8]) && (o[__rk_8]["mateoTools"] === undefined || (typeof o[__rk_8]["mateoTools"] === "object" && o[__rk_8]["mateoTools"] !== null && !Array.isArray(o[__rk_8]["mateoTools"]) && (o[__rk_8]["mateoTools"]["enabled"] === undefined || (typeof o[__rk_8]["mateoTools"]["enabled"] === "boolean")) && (o[__rk_8]["mateoTools"]["disabledTools"] === undefined || (Array.isArray(o[__rk_8]["mateoTools"]["disabledTools"]) && __af_10(o[__rk_8]["mateoTools"]["disabledTools"]))))) && (o[__rk_8]["enabled"] === undefined || (typeof o[__rk_8]["enabled"] === "boolean")) && (o[__rk_8]["additionalModels"] === undefined || (Array.isArray(o[__rk_8]["additionalModels"]) && __af_12(o[__rk_8]["additionalModels"]))))) {
|
|
41896
42000
|
return false;
|
|
41897
42001
|
}
|
|
41898
42002
|
} return true; }
|
|
41899
|
-
function
|
|
41900
|
-
|
|
41901
|
-
if (!(typeof
|
|
42003
|
+
function __af_15(a) { for (var __ae_14, i = 0; i < a.length; i++) {
|
|
42004
|
+
__ae_14 = a[i];
|
|
42005
|
+
if (!(typeof __ae_14 === "object" && __ae_14 !== null && !Array.isArray(__ae_14) && typeof __ae_14["provider"] === "string" && __ae_14["provider"].length >= 1 && (__ae_14["model"] === undefined || (typeof __ae_14["model"] === "string" && __ae_14["model"].length >= 1)) && (__ae_14["thinkingOptionId"] === undefined || (typeof __ae_14["thinkingOptionId"] === "string" && __ae_14["thinkingOptionId"].length >= 1)))) {
|
|
41902
42006
|
return false;
|
|
41903
42007
|
}
|
|
41904
42008
|
} return true; }
|
|
41905
|
-
function
|
|
41906
|
-
|
|
41907
|
-
if (!(typeof
|
|
42009
|
+
function __af_18(a) { for (var __ae_17, i = 0; i < a.length; i++) {
|
|
42010
|
+
__ae_17 = a[i];
|
|
42011
|
+
if (!(typeof __ae_17 === "string")) {
|
|
41908
42012
|
return false;
|
|
41909
42013
|
}
|
|
41910
42014
|
} return true; }
|
|
41911
|
-
function
|
|
41912
|
-
|
|
41913
|
-
if (!(typeof
|
|
42015
|
+
function __af_19(a) { for (var __ae_16, i = 0; i < a.length; i++) {
|
|
42016
|
+
__ae_16 = a[i];
|
|
42017
|
+
if (!(typeof __ae_16 === "object" && __ae_16 !== null && !Array.isArray(__ae_16) && typeof __ae_16["id"] === "string" && typeof __ae_16["name"] === "string" && typeof __ae_16["command"] === "string" && (__ae_16["args"] === undefined || (Array.isArray(__ae_16["args"]) && __af_18(__ae_16["args"]))) && (__ae_16["icon"] === undefined || (typeof __ae_16["icon"] === "string")))) {
|
|
41914
42018
|
return false;
|
|
41915
42019
|
}
|
|
41916
42020
|
} return true; }
|
|
41917
|
-
function
|
|
41918
|
-
|
|
41919
|
-
if (!(typeof
|
|
42021
|
+
function __rf_22(o) { var __rk_21, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
42022
|
+
__rk_21 = ks[i];
|
|
42023
|
+
if (!(typeof __rk_21 === "string")) {
|
|
41920
42024
|
return false;
|
|
41921
42025
|
}
|
|
41922
42026
|
} return true; }
|
|
41923
|
-
function
|
|
41924
|
-
|
|
41925
|
-
if (!(typeof
|
|
42027
|
+
function __af_23(a) { for (var __ae_20, i = 0; i < a.length; i++) {
|
|
42028
|
+
__ae_20 = a[i];
|
|
42029
|
+
if (!(typeof __ae_20 === "object" && __ae_20 !== null && !Array.isArray(__ae_20) && typeof __ae_20["id"] === "string" && typeof __ae_20["name"] === "string" && (__ae_20["icon"] === undefined || (typeof __ae_20["icon"] === "string")) && (__ae_20["color"] === undefined || (typeof __ae_20["color"] === "string")) && typeof __ae_20["provider"] === "string" && (__ae_20["model"] === undefined || (typeof __ae_20["model"] === "string")) && (__ae_20["modeId"] === undefined || (typeof __ae_20["modeId"] === "string")) && (__ae_20["thinkingOptionId"] === undefined || (typeof __ae_20["thinkingOptionId"] === "string")) && (__ae_20["featureValues"] === undefined || (typeof __ae_20["featureValues"] === "object" && __ae_20["featureValues"] !== null && !Array.isArray(__ae_20["featureValues"]) && __rf_22(__ae_20["featureValues"]))) && (__ae_20["notes"] === undefined || (typeof __ae_20["notes"] === "string")))) {
|
|
42030
|
+
return false;
|
|
42031
|
+
}
|
|
42032
|
+
} return true; }
|
|
42033
|
+
function __af_27(a) { for (var __ae_26, i = 0; i < a.length; i++) {
|
|
42034
|
+
__ae_26 = a[i];
|
|
42035
|
+
if (!(typeof __ae_26 === "string")) {
|
|
41926
42036
|
return false;
|
|
41927
42037
|
}
|
|
41928
42038
|
} return true; }
|
|
41929
|
-
function
|
|
41930
|
-
case "all": return typeof
|
|
41931
|
-
case "custom": return typeof
|
|
42039
|
+
function __du_24(__dx_25) { switch (__dx_25["mode"]) {
|
|
42040
|
+
case "all": return typeof __dx_25 === "object" && __dx_25 !== null && !Array.isArray(__dx_25) && __dx_25["mode"] === "all";
|
|
42041
|
+
case "custom": return typeof __dx_25 === "object" && __dx_25 !== null && !Array.isArray(__dx_25) && __dx_25["mode"] === "custom" && Array.isArray(__dx_25["skills"]) && __af_27(__dx_25["skills"]);
|
|
41932
42042
|
default: return false;
|
|
41933
42043
|
} }
|
|
41934
|
-
var
|
|
41935
|
-
function
|
|
41936
|
-
case "directory": return typeof
|
|
42044
|
+
var __re_re_29 = new RegExp("^[a-z][a-z0-9-]*$");
|
|
42045
|
+
function __du_30(__dx_31) { switch (__dx_31["source"]) {
|
|
42046
|
+
case "directory": return typeof __dx_31 === "object" && __dx_31 !== null && !Array.isArray(__dx_31) && __dx_31["source"] === "directory" && typeof __dx_31["path"] === "string" && __dx_31["path"].length >= 1 && (__dx_31["enabled"] === undefined || (typeof __dx_31["enabled"] === "boolean"));
|
|
41937
42047
|
default: return false;
|
|
41938
42048
|
} }
|
|
41939
|
-
function
|
|
41940
|
-
|
|
41941
|
-
if (!(typeof
|
|
42049
|
+
function __rf_32(o) { var __rk_28, ks = Object.keys(o); for (var i = 0; i < ks.length; i++) {
|
|
42050
|
+
__rk_28 = ks[i];
|
|
42051
|
+
if (!(typeof __rk_28 === "string" && __re_re_29.test(__rk_28) && typeof o[__rk_28] === "object" && o[__rk_28] !== null && !Array.isArray(o[__rk_28]) && __du_30(o[__rk_28]))) {
|
|
41942
42052
|
return false;
|
|
41943
42053
|
}
|
|
41944
42054
|
} return true; }
|
|
41945
|
-
function
|
|
41946
|
-
|
|
41947
|
-
if (!(typeof
|
|
42055
|
+
function __af_34(a) { for (var __ae_33, i = 0; i < a.length; i++) {
|
|
42056
|
+
__ae_33 = a[i];
|
|
42057
|
+
if (!(typeof __ae_33 === "string" && __re_re_29.test(__ae_33))) {
|
|
41948
42058
|
return false;
|
|
41949
42059
|
}
|
|
41950
42060
|
} return true; }
|
|
41951
42061
|
function safeParse_SessionOutboundMessage135(input) {
|
|
41952
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "set_daemon_config_response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["config"] === "object" && input["payload"]["config"] !== null && !Array.isArray(input["payload"]["config"]) && (input["payload"]["config"]["relay"] === undefined || (typeof input["payload"]["config"]["relay"] === "object" && input["payload"]["config"]["relay"] !== null && !Array.isArray(input["payload"]["config"]["relay"]) && typeof input["payload"]["config"]["relay"]["enabled"] === "boolean")) && typeof input["payload"]["config"]["mcp"] === "object" && input["payload"]["config"]["mcp"] !== null && !Array.isArray(input["payload"]["config"]["mcp"]) && (input["payload"]["config"]["mcp"]["enabled"] === undefined || (typeof input["payload"]["config"]["mcp"]["enabled"] === "boolean")) && typeof input["payload"]["config"]["mcp"]["injectIntoAgents"] === "boolean" && (input["payload"]["config"]["hostnames"] === undefined || (((input["payload"]["config"]["hostnames"] === true) || (Array.isArray(input["payload"]["config"]["hostnames"]) &&
|
|
42062
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "set_daemon_config_response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["config"] === "object" && input["payload"]["config"] !== null && !Array.isArray(input["payload"]["config"]) && (input["payload"]["config"]["relay"] === undefined || (typeof input["payload"]["config"]["relay"] === "object" && input["payload"]["config"]["relay"] !== null && !Array.isArray(input["payload"]["config"]["relay"]) && typeof input["payload"]["config"]["relay"]["enabled"] === "boolean" && (input["payload"]["config"]["relay"]["servers"] === undefined || (Array.isArray(input["payload"]["config"]["relay"]["servers"]) && __af_1(input["payload"]["config"]["relay"]["servers"]))))) && typeof input["payload"]["config"]["mcp"] === "object" && input["payload"]["config"]["mcp"] !== null && !Array.isArray(input["payload"]["config"]["mcp"]) && (input["payload"]["config"]["mcp"]["enabled"] === undefined || (typeof input["payload"]["config"]["mcp"]["enabled"] === "boolean")) && typeof input["payload"]["config"]["mcp"]["injectIntoAgents"] === "boolean" && (input["payload"]["config"]["hostnames"] === undefined || (((input["payload"]["config"]["hostnames"] === true) || (Array.isArray(input["payload"]["config"]["hostnames"]) && __af_3(input["payload"]["config"]["hostnames"]))))) && (input["payload"]["config"]["cors"] === undefined || (typeof input["payload"]["config"]["cors"] === "object" && input["payload"]["config"]["cors"] !== null && !Array.isArray(input["payload"]["config"]["cors"]) && Array.isArray(input["payload"]["config"]["cors"]["allowedOrigins"]) && __af_5(input["payload"]["config"]["cors"]["allowedOrigins"]))) && (input["payload"]["config"]["trustedProxies"] === undefined || (((input["payload"]["config"]["trustedProxies"] === true) || (Array.isArray(input["payload"]["config"]["trustedProxies"]) && __af_7(input["payload"]["config"]["trustedProxies"]))))) && (input["payload"]["config"]["git"] === undefined || (typeof input["payload"]["config"]["git"] === "object" && input["payload"]["config"]["git"] !== null && !Array.isArray(input["payload"]["config"]["git"]) && typeof input["payload"]["config"]["git"]["maxProcessesPerSecond"] === "number" && Number.isSafeInteger(input["payload"]["config"]["git"]["maxProcessesPerSecond"]) && input["payload"]["config"]["git"]["maxProcessesPerSecond"] > 0 && typeof input["payload"]["config"]["git"]["maxProcessConcurrency"] === "number" && Number.isSafeInteger(input["payload"]["config"]["git"]["maxProcessConcurrency"]) && input["payload"]["config"]["git"]["maxProcessConcurrency"] > 0)) && (input["payload"]["config"]["app"] === undefined || (typeof input["payload"]["config"]["app"] === "object" && input["payload"]["config"]["app"] !== null && !Array.isArray(input["payload"]["config"]["app"]) && typeof input["payload"]["config"]["app"]["baseUrl"] === "string")) && (input["payload"]["config"]["catalogRefreshTimeoutMs"] === undefined || (typeof input["payload"]["config"]["catalogRefreshTimeoutMs"] === "number" && Number.isSafeInteger(input["payload"]["config"]["catalogRefreshTimeoutMs"]) && input["payload"]["config"]["catalogRefreshTimeoutMs"] > 0)) && (input["payload"]["config"]["browserTools"] !== undefined && (typeof input["payload"]["config"]["browserTools"] === "object" && input["payload"]["config"]["browserTools"] !== null && !Array.isArray(input["payload"]["config"]["browserTools"]) && (input["payload"]["config"]["browserTools"]["enabled"] !== undefined && (typeof input["payload"]["config"]["browserTools"]["enabled"] === "boolean")))) && (input["payload"]["config"]["providers"] !== undefined && (typeof input["payload"]["config"]["providers"] === "object" && input["payload"]["config"]["providers"] !== null && !Array.isArray(input["payload"]["config"]["providers"]) && __rf_13(input["payload"]["config"]["providers"]))) && (input["payload"]["config"]["metadataGeneration"] !== undefined && (typeof input["payload"]["config"]["metadataGeneration"] === "object" && input["payload"]["config"]["metadataGeneration"] !== null && !Array.isArray(input["payload"]["config"]["metadataGeneration"]) && (input["payload"]["config"]["metadataGeneration"]["providers"] !== undefined && (Array.isArray(input["payload"]["config"]["metadataGeneration"]["providers"]) && __af_15(input["payload"]["config"]["metadataGeneration"]["providers"]))))) && (input["payload"]["config"]["autoArchiveAfterMerge"] !== undefined && (typeof input["payload"]["config"]["autoArchiveAfterMerge"] === "boolean")) && (input["payload"]["config"]["enableTerminalAgentHooks"] !== undefined && (typeof input["payload"]["config"]["enableTerminalAgentHooks"] === "boolean")) && (input["payload"]["config"]["appendSystemPrompt"] !== undefined && (typeof input["payload"]["config"]["appendSystemPrompt"] === "string")) && (input["payload"]["config"]["terminalProfiles"] === undefined || (Array.isArray(input["payload"]["config"]["terminalProfiles"]) && __af_19(input["payload"]["config"]["terminalProfiles"]))) && (input["payload"]["config"]["agentProfiles"] === undefined || (Array.isArray(input["payload"]["config"]["agentProfiles"]) && __af_23(input["payload"]["config"]["agentProfiles"]))) && (input["payload"]["config"]["agents"] === undefined || (typeof input["payload"]["config"]["agents"] === "object" && input["payload"]["config"]["agents"] !== null && !Array.isArray(input["payload"]["config"]["agents"]) && (input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === undefined || ((input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === null || (((input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === 60) || (input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === 120) || (input["payload"]["config"]["agents"]["idleRuntimeCleanupMinutes"] === 240)))))))) && (input["payload"]["config"]["skills"] === undefined || (typeof input["payload"]["config"]["skills"] === "object" && input["payload"]["config"]["skills"] !== null && !Array.isArray(input["payload"]["config"]["skills"]) && (input["payload"]["config"]["skills"]["selection"] === undefined || (typeof input["payload"]["config"]["skills"]["selection"] === "object" && input["payload"]["config"]["skills"]["selection"] !== null && !Array.isArray(input["payload"]["config"]["skills"]["selection"]) && __du_24(input["payload"]["config"]["skills"]["selection"]))))) && (input["payload"]["config"]["pluginsEnabled"] === undefined || (typeof input["payload"]["config"]["pluginsEnabled"] === "boolean")) && (input["payload"]["config"]["plugins"] === undefined || (typeof input["payload"]["config"]["plugins"] === "object" && input["payload"]["config"]["plugins"] !== null && !Array.isArray(input["payload"]["config"]["plugins"]) && __rf_32(input["payload"]["config"]["plugins"]))) && (input["payload"]["config"]["disabledBuiltinPlugins"] === undefined || (Array.isArray(input["payload"]["config"]["disabledBuiltinPlugins"]) && __af_34(input["payload"]["config"]["disabledBuiltinPlugins"])))) {
|
|
41953
42063
|
return { success: true, data: input };
|
|
41954
42064
|
}
|
|
41955
42065
|
var _e = [];
|
|
@@ -41958,347 +42068,388 @@ export const SessionOutboundMessage135 = /* @__PURE__ */ (() => {
|
|
|
41958
42068
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
41959
42069
|
}
|
|
41960
42070
|
else {
|
|
41961
|
-
var
|
|
41962
|
-
if (
|
|
41963
|
-
_e.push({ code: "invalid_value", values: ["set_daemon_config_response"], input:
|
|
42071
|
+
var __o_35 = Object.assign({}, _d);
|
|
42072
|
+
if (__o_35["type"] !== "set_daemon_config_response") {
|
|
42073
|
+
_e.push({ code: "invalid_value", values: ["set_daemon_config_response"], input: __o_35["type"], path: ["type"] });
|
|
41964
42074
|
}
|
|
41965
|
-
if (typeof
|
|
41966
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42075
|
+
if (typeof __o_35["payload"] !== "object" || __o_35["payload"] === null || Array.isArray(__o_35["payload"])) {
|
|
42076
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_35["payload"], path: ["payload"] });
|
|
41967
42077
|
}
|
|
41968
42078
|
else {
|
|
41969
|
-
var
|
|
41970
|
-
if (typeof
|
|
41971
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42079
|
+
var __o_36 = Object.assign({}, __o_35["payload"]);
|
|
42080
|
+
if (typeof __o_36["requestId"] !== "string") {
|
|
42081
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["requestId"], path: ["payload"].concat("requestId") });
|
|
41972
42082
|
}
|
|
41973
|
-
if (typeof
|
|
41974
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42083
|
+
if (typeof __o_36["config"] !== "object" || __o_36["config"] === null || Array.isArray(__o_36["config"])) {
|
|
42084
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["config"], path: ["payload"].concat("config") });
|
|
41975
42085
|
}
|
|
41976
42086
|
else {
|
|
41977
|
-
var
|
|
41978
|
-
if (
|
|
41979
|
-
if (typeof
|
|
41980
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42087
|
+
var __o_37 = Object.assign({}, __o_36["config"]);
|
|
42088
|
+
if (__o_37["relay"] !== undefined) {
|
|
42089
|
+
if (typeof __o_37["relay"] !== "object" || __o_37["relay"] === null || Array.isArray(__o_37["relay"])) {
|
|
42090
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["relay"], path: ["payload"].concat("config").concat("relay") });
|
|
41981
42091
|
}
|
|
41982
42092
|
else {
|
|
41983
|
-
var
|
|
41984
|
-
if (typeof
|
|
41985
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42093
|
+
var __o_38 = __o_37["relay"];
|
|
42094
|
+
if (typeof __o_38["enabled"] !== "boolean") {
|
|
42095
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_38["enabled"], path: ["payload"].concat("config").concat("relay").concat("enabled") });
|
|
42096
|
+
}
|
|
42097
|
+
if (__o_38["servers"] !== undefined) {
|
|
42098
|
+
if (!Array.isArray(__o_38["servers"])) {
|
|
42099
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_38["servers"], path: ["payload"].concat("config").concat("relay").concat("servers") });
|
|
42100
|
+
}
|
|
42101
|
+
else {
|
|
42102
|
+
for (var __i_39 = 0; __i_39 < __o_38["servers"].length; __i_39++) {
|
|
42103
|
+
if (typeof __o_38["servers"][__i_39] !== "object" || __o_38["servers"][__i_39] === null || Array.isArray(__o_38["servers"][__i_39])) {
|
|
42104
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_38["servers"][__i_39], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39) });
|
|
42105
|
+
}
|
|
42106
|
+
else {
|
|
42107
|
+
var __o_40 = __o_38["servers"][__i_39];
|
|
42108
|
+
if (typeof __o_40["endpoint"] !== "string") {
|
|
42109
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_40["endpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("endpoint") });
|
|
42110
|
+
}
|
|
42111
|
+
else {
|
|
42112
|
+
if (__o_40["endpoint"].length < 1) {
|
|
42113
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_40["endpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("endpoint") });
|
|
42114
|
+
}
|
|
42115
|
+
}
|
|
42116
|
+
if (typeof __o_40["useTls"] !== "boolean") {
|
|
42117
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_40["useTls"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("useTls") });
|
|
42118
|
+
}
|
|
42119
|
+
if (__o_40["publicEndpoint"] !== undefined) {
|
|
42120
|
+
if (typeof __o_40["publicEndpoint"] !== "string") {
|
|
42121
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_40["publicEndpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("publicEndpoint") });
|
|
42122
|
+
}
|
|
42123
|
+
else {
|
|
42124
|
+
if (__o_40["publicEndpoint"].length < 1) {
|
|
42125
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_40["publicEndpoint"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("publicEndpoint") });
|
|
42126
|
+
}
|
|
42127
|
+
}
|
|
42128
|
+
}
|
|
42129
|
+
if (__o_40["publicUseTls"] !== undefined) {
|
|
42130
|
+
if (typeof __o_40["publicUseTls"] !== "boolean") {
|
|
42131
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_40["publicUseTls"], path: ["payload"].concat("config").concat("relay").concat("servers").concat(__i_39).concat("publicUseTls") });
|
|
42132
|
+
}
|
|
42133
|
+
}
|
|
42134
|
+
}
|
|
42135
|
+
}
|
|
42136
|
+
}
|
|
41986
42137
|
}
|
|
41987
42138
|
}
|
|
41988
42139
|
}
|
|
41989
|
-
if (typeof
|
|
41990
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42140
|
+
if (typeof __o_37["mcp"] !== "object" || __o_37["mcp"] === null || Array.isArray(__o_37["mcp"])) {
|
|
42141
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["mcp"], path: ["payload"].concat("config").concat("mcp") });
|
|
41991
42142
|
}
|
|
41992
42143
|
else {
|
|
41993
|
-
var
|
|
41994
|
-
if (
|
|
41995
|
-
if (typeof
|
|
41996
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42144
|
+
var __o_41 = __o_37["mcp"];
|
|
42145
|
+
if (__o_41["enabled"] !== undefined) {
|
|
42146
|
+
if (typeof __o_41["enabled"] !== "boolean") {
|
|
42147
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_41["enabled"], path: ["payload"].concat("config").concat("mcp").concat("enabled") });
|
|
41997
42148
|
}
|
|
41998
42149
|
}
|
|
41999
|
-
if (typeof
|
|
42000
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42150
|
+
if (typeof __o_41["injectIntoAgents"] !== "boolean") {
|
|
42151
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_41["injectIntoAgents"], path: ["payload"].concat("config").concat("mcp").concat("injectIntoAgents") });
|
|
42001
42152
|
}
|
|
42002
42153
|
}
|
|
42003
|
-
if (
|
|
42004
|
-
var
|
|
42005
|
-
var
|
|
42006
|
-
if (!
|
|
42007
|
-
var
|
|
42008
|
-
if (
|
|
42009
|
-
|
|
42154
|
+
if (__o_37["hostnames"] !== undefined) {
|
|
42155
|
+
var __u_42 = false;
|
|
42156
|
+
var __ue_43 = [];
|
|
42157
|
+
if (!__u_42) {
|
|
42158
|
+
var __ui_44 = [];
|
|
42159
|
+
if (__o_37["hostnames"] !== true) {
|
|
42160
|
+
__ui_44.push({ code: "invalid_value", values: [true], input: __o_37["hostnames"], path: ["payload"].concat("config").concat("hostnames") });
|
|
42010
42161
|
}
|
|
42011
|
-
if (
|
|
42012
|
-
|
|
42162
|
+
if (__ui_44.length === 0) {
|
|
42163
|
+
__u_42 = true;
|
|
42013
42164
|
}
|
|
42014
42165
|
else {
|
|
42015
42166
|
if (typeof __msg === "function") {
|
|
42016
|
-
for (var
|
|
42017
|
-
|
|
42018
|
-
|
|
42167
|
+
for (var __ufi_45 = 0; __ufi_45 < __ui_44.length; __ufi_45++) {
|
|
42168
|
+
__ui_44[__ufi_45].message = __msg(__ui_44[__ufi_45]);
|
|
42169
|
+
__ui_44[__ufi_45].input = undefined;
|
|
42019
42170
|
}
|
|
42020
42171
|
}
|
|
42021
|
-
|
|
42172
|
+
__ue_43.push(__ui_44);
|
|
42022
42173
|
}
|
|
42023
42174
|
}
|
|
42024
|
-
if (!
|
|
42025
|
-
var
|
|
42026
|
-
if (!Array.isArray(
|
|
42027
|
-
|
|
42175
|
+
if (!__u_42) {
|
|
42176
|
+
var __ui_46 = [];
|
|
42177
|
+
if (!Array.isArray(__o_37["hostnames"])) {
|
|
42178
|
+
__ui_46.push({ code: "invalid_type", expected: "array", input: __o_37["hostnames"], path: ["payload"].concat("config").concat("hostnames") });
|
|
42028
42179
|
}
|
|
42029
42180
|
else {
|
|
42030
|
-
for (var
|
|
42031
|
-
if (typeof
|
|
42032
|
-
|
|
42181
|
+
for (var __i_48 = 0; __i_48 < __o_37["hostnames"].length; __i_48++) {
|
|
42182
|
+
if (typeof __o_37["hostnames"][__i_48] !== "string") {
|
|
42183
|
+
__ui_46.push({ code: "invalid_type", expected: "string", input: __o_37["hostnames"][__i_48], path: ["payload"].concat("config").concat("hostnames").concat(__i_48) });
|
|
42033
42184
|
}
|
|
42034
42185
|
}
|
|
42035
42186
|
}
|
|
42036
|
-
if (
|
|
42037
|
-
|
|
42187
|
+
if (__ui_46.length === 0) {
|
|
42188
|
+
__u_42 = true;
|
|
42038
42189
|
}
|
|
42039
42190
|
else {
|
|
42040
42191
|
if (typeof __msg === "function") {
|
|
42041
|
-
for (var
|
|
42042
|
-
|
|
42043
|
-
|
|
42192
|
+
for (var __ufi_47 = 0; __ufi_47 < __ui_46.length; __ufi_47++) {
|
|
42193
|
+
__ui_46[__ufi_47].message = __msg(__ui_46[__ufi_47]);
|
|
42194
|
+
__ui_46[__ufi_47].input = undefined;
|
|
42044
42195
|
}
|
|
42045
42196
|
}
|
|
42046
|
-
|
|
42197
|
+
__ue_43.push(__ui_46);
|
|
42047
42198
|
}
|
|
42048
42199
|
}
|
|
42049
|
-
if (!
|
|
42050
|
-
_e.push({ code: "invalid_union", errors:
|
|
42200
|
+
if (!__u_42) {
|
|
42201
|
+
_e.push({ code: "invalid_union", errors: __ue_43, input: __o_37["hostnames"], path: ["payload"].concat("config").concat("hostnames") });
|
|
42051
42202
|
}
|
|
42052
42203
|
}
|
|
42053
|
-
if (
|
|
42054
|
-
if (typeof
|
|
42055
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42204
|
+
if (__o_37["cors"] !== undefined) {
|
|
42205
|
+
if (typeof __o_37["cors"] !== "object" || __o_37["cors"] === null || Array.isArray(__o_37["cors"])) {
|
|
42206
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["cors"], path: ["payload"].concat("config").concat("cors") });
|
|
42056
42207
|
}
|
|
42057
42208
|
else {
|
|
42058
|
-
var
|
|
42059
|
-
if (!Array.isArray(
|
|
42060
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42209
|
+
var __o_49 = __o_37["cors"];
|
|
42210
|
+
if (!Array.isArray(__o_49["allowedOrigins"])) {
|
|
42211
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_49["allowedOrigins"], path: ["payload"].concat("config").concat("cors").concat("allowedOrigins") });
|
|
42061
42212
|
}
|
|
42062
42213
|
else {
|
|
42063
|
-
for (var
|
|
42064
|
-
if (typeof
|
|
42065
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42214
|
+
for (var __i_50 = 0; __i_50 < __o_49["allowedOrigins"].length; __i_50++) {
|
|
42215
|
+
if (typeof __o_49["allowedOrigins"][__i_50] !== "string") {
|
|
42216
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_49["allowedOrigins"][__i_50], path: ["payload"].concat("config").concat("cors").concat("allowedOrigins").concat(__i_50) });
|
|
42066
42217
|
}
|
|
42067
42218
|
}
|
|
42068
42219
|
}
|
|
42069
42220
|
}
|
|
42070
42221
|
}
|
|
42071
|
-
if (
|
|
42072
|
-
var
|
|
42073
|
-
var
|
|
42074
|
-
if (!
|
|
42075
|
-
var
|
|
42076
|
-
if (
|
|
42077
|
-
|
|
42222
|
+
if (__o_37["trustedProxies"] !== undefined) {
|
|
42223
|
+
var __u_51 = false;
|
|
42224
|
+
var __ue_52 = [];
|
|
42225
|
+
if (!__u_51) {
|
|
42226
|
+
var __ui_53 = [];
|
|
42227
|
+
if (__o_37["trustedProxies"] !== true) {
|
|
42228
|
+
__ui_53.push({ code: "invalid_value", values: [true], input: __o_37["trustedProxies"], path: ["payload"].concat("config").concat("trustedProxies") });
|
|
42078
42229
|
}
|
|
42079
|
-
if (
|
|
42080
|
-
|
|
42230
|
+
if (__ui_53.length === 0) {
|
|
42231
|
+
__u_51 = true;
|
|
42081
42232
|
}
|
|
42082
42233
|
else {
|
|
42083
42234
|
if (typeof __msg === "function") {
|
|
42084
|
-
for (var
|
|
42085
|
-
|
|
42086
|
-
|
|
42235
|
+
for (var __ufi_54 = 0; __ufi_54 < __ui_53.length; __ufi_54++) {
|
|
42236
|
+
__ui_53[__ufi_54].message = __msg(__ui_53[__ufi_54]);
|
|
42237
|
+
__ui_53[__ufi_54].input = undefined;
|
|
42087
42238
|
}
|
|
42088
42239
|
}
|
|
42089
|
-
|
|
42240
|
+
__ue_52.push(__ui_53);
|
|
42090
42241
|
}
|
|
42091
42242
|
}
|
|
42092
|
-
if (!
|
|
42093
|
-
var
|
|
42094
|
-
if (!Array.isArray(
|
|
42095
|
-
|
|
42243
|
+
if (!__u_51) {
|
|
42244
|
+
var __ui_55 = [];
|
|
42245
|
+
if (!Array.isArray(__o_37["trustedProxies"])) {
|
|
42246
|
+
__ui_55.push({ code: "invalid_type", expected: "array", input: __o_37["trustedProxies"], path: ["payload"].concat("config").concat("trustedProxies") });
|
|
42096
42247
|
}
|
|
42097
42248
|
else {
|
|
42098
|
-
for (var
|
|
42099
|
-
if (typeof
|
|
42100
|
-
|
|
42249
|
+
for (var __i_57 = 0; __i_57 < __o_37["trustedProxies"].length; __i_57++) {
|
|
42250
|
+
if (typeof __o_37["trustedProxies"][__i_57] !== "string") {
|
|
42251
|
+
__ui_55.push({ code: "invalid_type", expected: "string", input: __o_37["trustedProxies"][__i_57], path: ["payload"].concat("config").concat("trustedProxies").concat(__i_57) });
|
|
42101
42252
|
}
|
|
42102
42253
|
}
|
|
42103
42254
|
}
|
|
42104
|
-
if (
|
|
42105
|
-
|
|
42255
|
+
if (__ui_55.length === 0) {
|
|
42256
|
+
__u_51 = true;
|
|
42106
42257
|
}
|
|
42107
42258
|
else {
|
|
42108
42259
|
if (typeof __msg === "function") {
|
|
42109
|
-
for (var
|
|
42110
|
-
|
|
42111
|
-
|
|
42260
|
+
for (var __ufi_56 = 0; __ufi_56 < __ui_55.length; __ufi_56++) {
|
|
42261
|
+
__ui_55[__ufi_56].message = __msg(__ui_55[__ufi_56]);
|
|
42262
|
+
__ui_55[__ufi_56].input = undefined;
|
|
42112
42263
|
}
|
|
42113
42264
|
}
|
|
42114
|
-
|
|
42265
|
+
__ue_52.push(__ui_55);
|
|
42115
42266
|
}
|
|
42116
42267
|
}
|
|
42117
|
-
if (!
|
|
42118
|
-
_e.push({ code: "invalid_union", errors:
|
|
42268
|
+
if (!__u_51) {
|
|
42269
|
+
_e.push({ code: "invalid_union", errors: __ue_52, input: __o_37["trustedProxies"], path: ["payload"].concat("config").concat("trustedProxies") });
|
|
42119
42270
|
}
|
|
42120
42271
|
}
|
|
42121
|
-
if (
|
|
42122
|
-
if (typeof
|
|
42123
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42272
|
+
if (__o_37["git"] !== undefined) {
|
|
42273
|
+
if (typeof __o_37["git"] !== "object" || __o_37["git"] === null || Array.isArray(__o_37["git"])) {
|
|
42274
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["git"], path: ["payload"].concat("config").concat("git") });
|
|
42124
42275
|
}
|
|
42125
42276
|
else {
|
|
42126
|
-
var
|
|
42127
|
-
if (typeof
|
|
42128
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
42277
|
+
var __o_58 = __o_37["git"];
|
|
42278
|
+
if (typeof __o_58["maxProcessesPerSecond"] !== "number") {
|
|
42279
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
42129
42280
|
}
|
|
42130
|
-
else if (Number.isNaN(
|
|
42131
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
42281
|
+
else if (Number.isNaN(__o_58["maxProcessesPerSecond"])) {
|
|
42282
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
42132
42283
|
}
|
|
42133
|
-
else if (!Number.isFinite(
|
|
42134
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
42284
|
+
else if (!Number.isFinite(__o_58["maxProcessesPerSecond"])) {
|
|
42285
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
42135
42286
|
}
|
|
42136
42287
|
else {
|
|
42137
|
-
if (!Number.isSafeInteger(
|
|
42138
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
42288
|
+
if (!Number.isSafeInteger(__o_58["maxProcessesPerSecond"])) {
|
|
42289
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
42139
42290
|
}
|
|
42140
|
-
if (
|
|
42141
|
-
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input:
|
|
42291
|
+
if (__o_58["maxProcessesPerSecond"] <= 0) {
|
|
42292
|
+
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input: __o_58["maxProcessesPerSecond"], path: ["payload"].concat("config").concat("git").concat("maxProcessesPerSecond") });
|
|
42142
42293
|
}
|
|
42143
42294
|
}
|
|
42144
|
-
if (typeof
|
|
42145
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
42295
|
+
if (typeof __o_58["maxProcessConcurrency"] !== "number") {
|
|
42296
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
42146
42297
|
}
|
|
42147
|
-
else if (Number.isNaN(
|
|
42148
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
42298
|
+
else if (Number.isNaN(__o_58["maxProcessConcurrency"])) {
|
|
42299
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
42149
42300
|
}
|
|
42150
|
-
else if (!Number.isFinite(
|
|
42151
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
42301
|
+
else if (!Number.isFinite(__o_58["maxProcessConcurrency"])) {
|
|
42302
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
42152
42303
|
}
|
|
42153
42304
|
else {
|
|
42154
|
-
if (!Number.isSafeInteger(
|
|
42155
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
42305
|
+
if (!Number.isSafeInteger(__o_58["maxProcessConcurrency"])) {
|
|
42306
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
42156
42307
|
}
|
|
42157
|
-
if (
|
|
42158
|
-
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input:
|
|
42308
|
+
if (__o_58["maxProcessConcurrency"] <= 0) {
|
|
42309
|
+
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input: __o_58["maxProcessConcurrency"], path: ["payload"].concat("config").concat("git").concat("maxProcessConcurrency") });
|
|
42159
42310
|
}
|
|
42160
42311
|
}
|
|
42161
42312
|
}
|
|
42162
42313
|
}
|
|
42163
|
-
if (
|
|
42164
|
-
if (typeof
|
|
42165
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42314
|
+
if (__o_37["app"] !== undefined) {
|
|
42315
|
+
if (typeof __o_37["app"] !== "object" || __o_37["app"] === null || Array.isArray(__o_37["app"])) {
|
|
42316
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["app"], path: ["payload"].concat("config").concat("app") });
|
|
42166
42317
|
}
|
|
42167
42318
|
else {
|
|
42168
|
-
var
|
|
42169
|
-
if (typeof
|
|
42170
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42319
|
+
var __o_59 = __o_37["app"];
|
|
42320
|
+
if (typeof __o_59["baseUrl"] !== "string") {
|
|
42321
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["baseUrl"], path: ["payload"].concat("config").concat("app").concat("baseUrl") });
|
|
42171
42322
|
}
|
|
42172
42323
|
}
|
|
42173
42324
|
}
|
|
42174
|
-
if (
|
|
42175
|
-
if (typeof
|
|
42176
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
42325
|
+
if (__o_37["catalogRefreshTimeoutMs"] !== undefined) {
|
|
42326
|
+
if (typeof __o_37["catalogRefreshTimeoutMs"] !== "number") {
|
|
42327
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
42177
42328
|
}
|
|
42178
|
-
else if (Number.isNaN(
|
|
42179
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
42329
|
+
else if (Number.isNaN(__o_37["catalogRefreshTimeoutMs"])) {
|
|
42330
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
42180
42331
|
}
|
|
42181
|
-
else if (!Number.isFinite(
|
|
42182
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
42332
|
+
else if (!Number.isFinite(__o_37["catalogRefreshTimeoutMs"])) {
|
|
42333
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
42183
42334
|
}
|
|
42184
42335
|
else {
|
|
42185
|
-
if (!Number.isSafeInteger(
|
|
42186
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
42336
|
+
if (!Number.isSafeInteger(__o_37["catalogRefreshTimeoutMs"])) {
|
|
42337
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
42187
42338
|
}
|
|
42188
|
-
if (
|
|
42189
|
-
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input:
|
|
42339
|
+
if (__o_37["catalogRefreshTimeoutMs"] <= 0) {
|
|
42340
|
+
_e.push({ code: "too_small", minimum: 0, origin: "number", inclusive: false, input: __o_37["catalogRefreshTimeoutMs"], path: ["payload"].concat("config").concat("catalogRefreshTimeoutMs") });
|
|
42190
42341
|
}
|
|
42191
42342
|
}
|
|
42192
42343
|
}
|
|
42193
|
-
if (
|
|
42194
|
-
|
|
42344
|
+
if (__o_37["browserTools"] === undefined) {
|
|
42345
|
+
__o_37["browserTools"] = __rf[1]._zod.def.defaultValue;
|
|
42195
42346
|
}
|
|
42196
42347
|
else {
|
|
42197
|
-
if (typeof
|
|
42198
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42348
|
+
if (typeof __o_37["browserTools"] !== "object" || __o_37["browserTools"] === null || Array.isArray(__o_37["browserTools"])) {
|
|
42349
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["browserTools"], path: ["payload"].concat("config").concat("browserTools") });
|
|
42199
42350
|
}
|
|
42200
42351
|
else {
|
|
42201
|
-
var
|
|
42202
|
-
if (
|
|
42203
|
-
|
|
42352
|
+
var __o_60 = Object.assign({}, __o_37["browserTools"]);
|
|
42353
|
+
if (__o_60["enabled"] === undefined) {
|
|
42354
|
+
__o_60["enabled"] = __rf[0]._zod.def.defaultValue;
|
|
42204
42355
|
}
|
|
42205
42356
|
else {
|
|
42206
|
-
if (typeof
|
|
42207
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42357
|
+
if (typeof __o_60["enabled"] !== "boolean") {
|
|
42358
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_60["enabled"], path: ["payload"].concat("config").concat("browserTools").concat("enabled") });
|
|
42208
42359
|
}
|
|
42209
42360
|
}
|
|
42210
|
-
|
|
42361
|
+
__o_37["browserTools"] = __o_60;
|
|
42211
42362
|
}
|
|
42212
42363
|
}
|
|
42213
|
-
if (
|
|
42214
|
-
|
|
42364
|
+
if (__o_37["providers"] === undefined) {
|
|
42365
|
+
__o_37["providers"] = __rf[2]._zod.def.defaultValue;
|
|
42215
42366
|
}
|
|
42216
42367
|
else {
|
|
42217
|
-
if (typeof
|
|
42218
|
-
_e.push({ code: "invalid_type", expected: "record", input:
|
|
42368
|
+
if (typeof __o_37["providers"] !== "object" || __o_37["providers"] === null || Array.isArray(__o_37["providers"])) {
|
|
42369
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_37["providers"], path: ["payload"].concat("config").concat("providers") });
|
|
42219
42370
|
}
|
|
42220
42371
|
else {
|
|
42221
|
-
var
|
|
42222
|
-
for (var
|
|
42223
|
-
var
|
|
42224
|
-
var
|
|
42225
|
-
if (typeof
|
|
42226
|
-
|
|
42372
|
+
var __rk_61 = Object.keys(__o_37["providers"]);
|
|
42373
|
+
for (var __ri_62 = 0; __ri_62 < __rk_61.length; __ri_62++) {
|
|
42374
|
+
var __rkey_63 = __rk_61[__ri_62];
|
|
42375
|
+
var __rki_64 = [];
|
|
42376
|
+
if (typeof __rkey_63 !== "string") {
|
|
42377
|
+
__rki_64.push({ code: "invalid_type", expected: "string", input: __rkey_63, path: ["payload"].concat("config").concat("providers").concat(__rkey_63) });
|
|
42227
42378
|
}
|
|
42228
|
-
if (
|
|
42229
|
-
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("providers").concat(
|
|
42379
|
+
if (__rki_64.length > 0) {
|
|
42380
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("providers").concat(__rkey_63), issues: __rki_64 });
|
|
42230
42381
|
}
|
|
42231
42382
|
else {
|
|
42232
|
-
if (typeof
|
|
42233
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42383
|
+
if (typeof __o_37["providers"][__rkey_63] !== "object" || __o_37["providers"][__rkey_63] === null || Array.isArray(__o_37["providers"][__rkey_63])) {
|
|
42384
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["providers"][__rkey_63], path: ["payload"].concat("config").concat("providers").concat(__rkey_63) });
|
|
42234
42385
|
}
|
|
42235
42386
|
else {
|
|
42236
|
-
var
|
|
42237
|
-
if (
|
|
42238
|
-
if (typeof
|
|
42239
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42387
|
+
var __o_65 = __o_37["providers"][__rkey_63];
|
|
42388
|
+
if (__o_65["mateoTools"] !== undefined) {
|
|
42389
|
+
if (typeof __o_65["mateoTools"] !== "object" || __o_65["mateoTools"] === null || Array.isArray(__o_65["mateoTools"])) {
|
|
42390
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_65["mateoTools"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools") });
|
|
42240
42391
|
}
|
|
42241
42392
|
else {
|
|
42242
|
-
var
|
|
42243
|
-
if (
|
|
42244
|
-
if (typeof
|
|
42245
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42393
|
+
var __o_66 = __o_65["mateoTools"];
|
|
42394
|
+
if (__o_66["enabled"] !== undefined) {
|
|
42395
|
+
if (typeof __o_66["enabled"] !== "boolean") {
|
|
42396
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_66["enabled"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools").concat("enabled") });
|
|
42246
42397
|
}
|
|
42247
42398
|
}
|
|
42248
|
-
if (
|
|
42249
|
-
if (!Array.isArray(
|
|
42250
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42399
|
+
if (__o_66["disabledTools"] !== undefined) {
|
|
42400
|
+
if (!Array.isArray(__o_66["disabledTools"])) {
|
|
42401
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_66["disabledTools"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools").concat("disabledTools") });
|
|
42251
42402
|
}
|
|
42252
42403
|
else {
|
|
42253
|
-
for (var
|
|
42254
|
-
if (typeof
|
|
42255
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42404
|
+
for (var __i_67 = 0; __i_67 < __o_66["disabledTools"].length; __i_67++) {
|
|
42405
|
+
if (typeof __o_66["disabledTools"][__i_67] !== "string") {
|
|
42406
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_66["disabledTools"][__i_67], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("mateoTools").concat("disabledTools").concat(__i_67) });
|
|
42256
42407
|
}
|
|
42257
42408
|
}
|
|
42258
42409
|
}
|
|
42259
42410
|
}
|
|
42260
42411
|
}
|
|
42261
42412
|
}
|
|
42262
|
-
if (
|
|
42263
|
-
if (typeof
|
|
42264
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42413
|
+
if (__o_65["enabled"] !== undefined) {
|
|
42414
|
+
if (typeof __o_65["enabled"] !== "boolean") {
|
|
42415
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_65["enabled"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("enabled") });
|
|
42265
42416
|
}
|
|
42266
42417
|
}
|
|
42267
|
-
if (
|
|
42268
|
-
if (!Array.isArray(
|
|
42269
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42418
|
+
if (__o_65["additionalModels"] !== undefined) {
|
|
42419
|
+
if (!Array.isArray(__o_65["additionalModels"])) {
|
|
42420
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_65["additionalModels"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels") });
|
|
42270
42421
|
}
|
|
42271
42422
|
else {
|
|
42272
|
-
for (var
|
|
42273
|
-
if (typeof
|
|
42274
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42423
|
+
for (var __i_68 = 0; __i_68 < __o_65["additionalModels"].length; __i_68++) {
|
|
42424
|
+
if (typeof __o_65["additionalModels"][__i_68] !== "object" || __o_65["additionalModels"][__i_68] === null || Array.isArray(__o_65["additionalModels"][__i_68])) {
|
|
42425
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_65["additionalModels"][__i_68], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68) });
|
|
42275
42426
|
}
|
|
42276
42427
|
else {
|
|
42277
|
-
var
|
|
42278
|
-
if (typeof
|
|
42279
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42428
|
+
var __o_69 = __o_65["additionalModels"][__i_68];
|
|
42429
|
+
if (typeof __o_69["id"] !== "string") {
|
|
42430
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["id"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("id") });
|
|
42280
42431
|
}
|
|
42281
42432
|
else {
|
|
42282
|
-
if (
|
|
42283
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
42433
|
+
if (__o_69["id"].length < 1) {
|
|
42434
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_69["id"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("id") });
|
|
42284
42435
|
}
|
|
42285
42436
|
}
|
|
42286
|
-
if (typeof
|
|
42287
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42437
|
+
if (typeof __o_69["label"] !== "string") {
|
|
42438
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["label"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("label") });
|
|
42288
42439
|
}
|
|
42289
42440
|
else {
|
|
42290
|
-
if (
|
|
42291
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
42441
|
+
if (__o_69["label"].length < 1) {
|
|
42442
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_69["label"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("label") });
|
|
42292
42443
|
}
|
|
42293
42444
|
}
|
|
42294
|
-
if (
|
|
42295
|
-
if (typeof
|
|
42296
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42445
|
+
if (__o_69["description"] !== undefined) {
|
|
42446
|
+
if (typeof __o_69["description"] !== "string") {
|
|
42447
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["description"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("description") });
|
|
42297
42448
|
}
|
|
42298
42449
|
}
|
|
42299
|
-
if (
|
|
42300
|
-
if (typeof
|
|
42301
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42450
|
+
if (__o_69["isDefault"] !== undefined) {
|
|
42451
|
+
if (typeof __o_69["isDefault"] !== "boolean") {
|
|
42452
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_69["isDefault"], path: ["payload"].concat("config").concat("providers").concat(__rkey_63).concat("additionalModels").concat(__i_68).concat("isDefault") });
|
|
42302
42453
|
}
|
|
42303
42454
|
}
|
|
42304
42455
|
}
|
|
@@ -42310,54 +42461,54 @@ export const SessionOutboundMessage135 = /* @__PURE__ */ (() => {
|
|
|
42310
42461
|
}
|
|
42311
42462
|
}
|
|
42312
42463
|
}
|
|
42313
|
-
if (
|
|
42314
|
-
|
|
42464
|
+
if (__o_37["metadataGeneration"] === undefined) {
|
|
42465
|
+
__o_37["metadataGeneration"] = __rf[4]._zod.def.defaultValue;
|
|
42315
42466
|
}
|
|
42316
42467
|
else {
|
|
42317
|
-
if (typeof
|
|
42318
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42468
|
+
if (typeof __o_37["metadataGeneration"] !== "object" || __o_37["metadataGeneration"] === null || Array.isArray(__o_37["metadataGeneration"])) {
|
|
42469
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["metadataGeneration"], path: ["payload"].concat("config").concat("metadataGeneration") });
|
|
42319
42470
|
}
|
|
42320
42471
|
else {
|
|
42321
|
-
var
|
|
42322
|
-
if (
|
|
42323
|
-
|
|
42472
|
+
var __o_70 = Object.assign({}, __o_37["metadataGeneration"]);
|
|
42473
|
+
if (__o_70["providers"] === undefined) {
|
|
42474
|
+
__o_70["providers"] = __rf[3]._zod.def.defaultValue;
|
|
42324
42475
|
}
|
|
42325
42476
|
else {
|
|
42326
|
-
if (!Array.isArray(
|
|
42327
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42477
|
+
if (!Array.isArray(__o_70["providers"])) {
|
|
42478
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_70["providers"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers") });
|
|
42328
42479
|
}
|
|
42329
42480
|
else {
|
|
42330
|
-
for (var
|
|
42331
|
-
if (typeof
|
|
42332
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42481
|
+
for (var __i_71 = 0; __i_71 < __o_70["providers"].length; __i_71++) {
|
|
42482
|
+
if (typeof __o_70["providers"][__i_71] !== "object" || __o_70["providers"][__i_71] === null || Array.isArray(__o_70["providers"][__i_71])) {
|
|
42483
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_70["providers"][__i_71], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71) });
|
|
42333
42484
|
}
|
|
42334
42485
|
else {
|
|
42335
|
-
var
|
|
42336
|
-
if (typeof
|
|
42337
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42486
|
+
var __o_72 = __o_70["providers"][__i_71];
|
|
42487
|
+
if (typeof __o_72["provider"] !== "string") {
|
|
42488
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["provider"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("provider") });
|
|
42338
42489
|
}
|
|
42339
42490
|
else {
|
|
42340
|
-
if (
|
|
42341
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
42491
|
+
if (__o_72["provider"].length < 1) {
|
|
42492
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_72["provider"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("provider") });
|
|
42342
42493
|
}
|
|
42343
42494
|
}
|
|
42344
|
-
if (
|
|
42345
|
-
if (typeof
|
|
42346
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42495
|
+
if (__o_72["model"] !== undefined) {
|
|
42496
|
+
if (typeof __o_72["model"] !== "string") {
|
|
42497
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["model"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("model") });
|
|
42347
42498
|
}
|
|
42348
42499
|
else {
|
|
42349
|
-
if (
|
|
42350
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
42500
|
+
if (__o_72["model"].length < 1) {
|
|
42501
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_72["model"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("model") });
|
|
42351
42502
|
}
|
|
42352
42503
|
}
|
|
42353
42504
|
}
|
|
42354
|
-
if (
|
|
42355
|
-
if (typeof
|
|
42356
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42505
|
+
if (__o_72["thinkingOptionId"] !== undefined) {
|
|
42506
|
+
if (typeof __o_72["thinkingOptionId"] !== "string") {
|
|
42507
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["thinkingOptionId"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("thinkingOptionId") });
|
|
42357
42508
|
}
|
|
42358
42509
|
else {
|
|
42359
|
-
if (
|
|
42360
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
42510
|
+
if (__o_72["thinkingOptionId"].length < 1) {
|
|
42511
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_72["thinkingOptionId"], path: ["payload"].concat("config").concat("metadataGeneration").concat("providers").concat(__i_71).concat("thinkingOptionId") });
|
|
42361
42512
|
}
|
|
42362
42513
|
}
|
|
42363
42514
|
}
|
|
@@ -42365,354 +42516,354 @@ export const SessionOutboundMessage135 = /* @__PURE__ */ (() => {
|
|
|
42365
42516
|
}
|
|
42366
42517
|
}
|
|
42367
42518
|
}
|
|
42368
|
-
|
|
42519
|
+
__o_37["metadataGeneration"] = __o_70;
|
|
42369
42520
|
}
|
|
42370
42521
|
}
|
|
42371
|
-
if (
|
|
42372
|
-
|
|
42522
|
+
if (__o_37["autoArchiveAfterMerge"] === undefined) {
|
|
42523
|
+
__o_37["autoArchiveAfterMerge"] = __rf[5]._zod.def.defaultValue;
|
|
42373
42524
|
}
|
|
42374
42525
|
else {
|
|
42375
|
-
if (typeof
|
|
42376
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42526
|
+
if (typeof __o_37["autoArchiveAfterMerge"] !== "boolean") {
|
|
42527
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_37["autoArchiveAfterMerge"], path: ["payload"].concat("config").concat("autoArchiveAfterMerge") });
|
|
42377
42528
|
}
|
|
42378
42529
|
}
|
|
42379
|
-
if (
|
|
42380
|
-
|
|
42530
|
+
if (__o_37["enableTerminalAgentHooks"] === undefined) {
|
|
42531
|
+
__o_37["enableTerminalAgentHooks"] = __rf[6]._zod.def.defaultValue;
|
|
42381
42532
|
}
|
|
42382
42533
|
else {
|
|
42383
|
-
if (typeof
|
|
42384
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42534
|
+
if (typeof __o_37["enableTerminalAgentHooks"] !== "boolean") {
|
|
42535
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_37["enableTerminalAgentHooks"], path: ["payload"].concat("config").concat("enableTerminalAgentHooks") });
|
|
42385
42536
|
}
|
|
42386
42537
|
}
|
|
42387
|
-
if (
|
|
42388
|
-
|
|
42538
|
+
if (__o_37["appendSystemPrompt"] === undefined) {
|
|
42539
|
+
__o_37["appendSystemPrompt"] = __rf[7]._zod.def.defaultValue;
|
|
42389
42540
|
}
|
|
42390
42541
|
else {
|
|
42391
|
-
if (typeof
|
|
42392
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42542
|
+
if (typeof __o_37["appendSystemPrompt"] !== "string") {
|
|
42543
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_37["appendSystemPrompt"], path: ["payload"].concat("config").concat("appendSystemPrompt") });
|
|
42393
42544
|
}
|
|
42394
42545
|
}
|
|
42395
|
-
if (
|
|
42396
|
-
if (!Array.isArray(
|
|
42397
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42546
|
+
if (__o_37["terminalProfiles"] !== undefined) {
|
|
42547
|
+
if (!Array.isArray(__o_37["terminalProfiles"])) {
|
|
42548
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_37["terminalProfiles"], path: ["payload"].concat("config").concat("terminalProfiles") });
|
|
42398
42549
|
}
|
|
42399
42550
|
else {
|
|
42400
|
-
for (var
|
|
42401
|
-
if (typeof
|
|
42402
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42551
|
+
for (var __i_73 = 0; __i_73 < __o_37["terminalProfiles"].length; __i_73++) {
|
|
42552
|
+
if (typeof __o_37["terminalProfiles"][__i_73] !== "object" || __o_37["terminalProfiles"][__i_73] === null || Array.isArray(__o_37["terminalProfiles"][__i_73])) {
|
|
42553
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["terminalProfiles"][__i_73], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73) });
|
|
42403
42554
|
}
|
|
42404
42555
|
else {
|
|
42405
|
-
var
|
|
42406
|
-
if (typeof
|
|
42407
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42556
|
+
var __o_74 = __o_37["terminalProfiles"][__i_73];
|
|
42557
|
+
if (typeof __o_74["id"] !== "string") {
|
|
42558
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["id"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("id") });
|
|
42408
42559
|
}
|
|
42409
|
-
if (typeof
|
|
42410
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42560
|
+
if (typeof __o_74["name"] !== "string") {
|
|
42561
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["name"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("name") });
|
|
42411
42562
|
}
|
|
42412
|
-
if (typeof
|
|
42413
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42563
|
+
if (typeof __o_74["command"] !== "string") {
|
|
42564
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["command"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("command") });
|
|
42414
42565
|
}
|
|
42415
|
-
if (
|
|
42416
|
-
if (!Array.isArray(
|
|
42417
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42566
|
+
if (__o_74["args"] !== undefined) {
|
|
42567
|
+
if (!Array.isArray(__o_74["args"])) {
|
|
42568
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_74["args"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("args") });
|
|
42418
42569
|
}
|
|
42419
42570
|
else {
|
|
42420
|
-
for (var
|
|
42421
|
-
if (typeof
|
|
42422
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42571
|
+
for (var __i_75 = 0; __i_75 < __o_74["args"].length; __i_75++) {
|
|
42572
|
+
if (typeof __o_74["args"][__i_75] !== "string") {
|
|
42573
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["args"][__i_75], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("args").concat(__i_75) });
|
|
42423
42574
|
}
|
|
42424
42575
|
}
|
|
42425
42576
|
}
|
|
42426
42577
|
}
|
|
42427
|
-
if (
|
|
42428
|
-
if (typeof
|
|
42429
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42578
|
+
if (__o_74["icon"] !== undefined) {
|
|
42579
|
+
if (typeof __o_74["icon"] !== "string") {
|
|
42580
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["icon"], path: ["payload"].concat("config").concat("terminalProfiles").concat(__i_73).concat("icon") });
|
|
42430
42581
|
}
|
|
42431
42582
|
}
|
|
42432
42583
|
}
|
|
42433
42584
|
}
|
|
42434
42585
|
}
|
|
42435
42586
|
}
|
|
42436
|
-
if (
|
|
42437
|
-
if (!Array.isArray(
|
|
42438
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42587
|
+
if (__o_37["agentProfiles"] !== undefined) {
|
|
42588
|
+
if (!Array.isArray(__o_37["agentProfiles"])) {
|
|
42589
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_37["agentProfiles"], path: ["payload"].concat("config").concat("agentProfiles") });
|
|
42439
42590
|
}
|
|
42440
42591
|
else {
|
|
42441
|
-
for (var
|
|
42442
|
-
if (typeof
|
|
42443
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42592
|
+
for (var __i_76 = 0; __i_76 < __o_37["agentProfiles"].length; __i_76++) {
|
|
42593
|
+
if (typeof __o_37["agentProfiles"][__i_76] !== "object" || __o_37["agentProfiles"][__i_76] === null || Array.isArray(__o_37["agentProfiles"][__i_76])) {
|
|
42594
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["agentProfiles"][__i_76], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76) });
|
|
42444
42595
|
}
|
|
42445
42596
|
else {
|
|
42446
|
-
var
|
|
42447
|
-
if (typeof
|
|
42448
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42597
|
+
var __o_77 = __o_37["agentProfiles"][__i_76];
|
|
42598
|
+
if (typeof __o_77["id"] !== "string") {
|
|
42599
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["id"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("id") });
|
|
42449
42600
|
}
|
|
42450
|
-
if (typeof
|
|
42451
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42601
|
+
if (typeof __o_77["name"] !== "string") {
|
|
42602
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["name"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("name") });
|
|
42452
42603
|
}
|
|
42453
|
-
if (
|
|
42454
|
-
if (typeof
|
|
42455
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42604
|
+
if (__o_77["icon"] !== undefined) {
|
|
42605
|
+
if (typeof __o_77["icon"] !== "string") {
|
|
42606
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["icon"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("icon") });
|
|
42456
42607
|
}
|
|
42457
42608
|
}
|
|
42458
|
-
if (
|
|
42459
|
-
if (typeof
|
|
42460
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42609
|
+
if (__o_77["color"] !== undefined) {
|
|
42610
|
+
if (typeof __o_77["color"] !== "string") {
|
|
42611
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["color"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("color") });
|
|
42461
42612
|
}
|
|
42462
42613
|
}
|
|
42463
|
-
if (typeof
|
|
42464
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42614
|
+
if (typeof __o_77["provider"] !== "string") {
|
|
42615
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["provider"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("provider") });
|
|
42465
42616
|
}
|
|
42466
|
-
if (
|
|
42467
|
-
if (typeof
|
|
42468
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42617
|
+
if (__o_77["model"] !== undefined) {
|
|
42618
|
+
if (typeof __o_77["model"] !== "string") {
|
|
42619
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["model"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("model") });
|
|
42469
42620
|
}
|
|
42470
42621
|
}
|
|
42471
|
-
if (
|
|
42472
|
-
if (typeof
|
|
42473
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42622
|
+
if (__o_77["modeId"] !== undefined) {
|
|
42623
|
+
if (typeof __o_77["modeId"] !== "string") {
|
|
42624
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["modeId"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("modeId") });
|
|
42474
42625
|
}
|
|
42475
42626
|
}
|
|
42476
|
-
if (
|
|
42477
|
-
if (typeof
|
|
42478
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42627
|
+
if (__o_77["thinkingOptionId"] !== undefined) {
|
|
42628
|
+
if (typeof __o_77["thinkingOptionId"] !== "string") {
|
|
42629
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["thinkingOptionId"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("thinkingOptionId") });
|
|
42479
42630
|
}
|
|
42480
42631
|
}
|
|
42481
|
-
if (
|
|
42482
|
-
if (typeof
|
|
42483
|
-
_e.push({ code: "invalid_type", expected: "record", input:
|
|
42632
|
+
if (__o_77["featureValues"] !== undefined) {
|
|
42633
|
+
if (typeof __o_77["featureValues"] !== "object" || __o_77["featureValues"] === null || Array.isArray(__o_77["featureValues"])) {
|
|
42634
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_77["featureValues"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("featureValues") });
|
|
42484
42635
|
}
|
|
42485
42636
|
else {
|
|
42486
|
-
var
|
|
42487
|
-
for (var
|
|
42488
|
-
var
|
|
42489
|
-
var
|
|
42490
|
-
if (typeof
|
|
42491
|
-
|
|
42637
|
+
var __rk_78 = Object.keys(__o_77["featureValues"]);
|
|
42638
|
+
for (var __ri_79 = 0; __ri_79 < __rk_78.length; __ri_79++) {
|
|
42639
|
+
var __rkey_80 = __rk_78[__ri_79];
|
|
42640
|
+
var __rki_81 = [];
|
|
42641
|
+
if (typeof __rkey_80 !== "string") {
|
|
42642
|
+
__rki_81.push({ code: "invalid_type", expected: "string", input: __rkey_80, path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("featureValues").concat(__rkey_80) });
|
|
42492
42643
|
}
|
|
42493
|
-
if (
|
|
42494
|
-
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("agentProfiles").concat(
|
|
42644
|
+
if (__rki_81.length > 0) {
|
|
42645
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("featureValues").concat(__rkey_80), issues: __rki_81 });
|
|
42495
42646
|
}
|
|
42496
42647
|
else { }
|
|
42497
42648
|
}
|
|
42498
42649
|
}
|
|
42499
42650
|
}
|
|
42500
|
-
if (
|
|
42501
|
-
if (typeof
|
|
42502
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42651
|
+
if (__o_77["notes"] !== undefined) {
|
|
42652
|
+
if (typeof __o_77["notes"] !== "string") {
|
|
42653
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_77["notes"], path: ["payload"].concat("config").concat("agentProfiles").concat(__i_76).concat("notes") });
|
|
42503
42654
|
}
|
|
42504
42655
|
}
|
|
42505
42656
|
}
|
|
42506
42657
|
}
|
|
42507
42658
|
}
|
|
42508
42659
|
}
|
|
42509
|
-
if (
|
|
42510
|
-
if (typeof
|
|
42511
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42660
|
+
if (__o_37["agents"] !== undefined) {
|
|
42661
|
+
if (typeof __o_37["agents"] !== "object" || __o_37["agents"] === null || Array.isArray(__o_37["agents"])) {
|
|
42662
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["agents"], path: ["payload"].concat("config").concat("agents") });
|
|
42512
42663
|
}
|
|
42513
42664
|
else {
|
|
42514
|
-
var
|
|
42515
|
-
if (
|
|
42516
|
-
if (
|
|
42517
|
-
var
|
|
42518
|
-
var
|
|
42519
|
-
if (!
|
|
42520
|
-
var
|
|
42521
|
-
if (
|
|
42522
|
-
|
|
42523
|
-
}
|
|
42524
|
-
if (
|
|
42525
|
-
|
|
42665
|
+
var __o_82 = __o_37["agents"];
|
|
42666
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== undefined) {
|
|
42667
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== null) {
|
|
42668
|
+
var __u_83 = false;
|
|
42669
|
+
var __ue_84 = [];
|
|
42670
|
+
if (!__u_83) {
|
|
42671
|
+
var __ui_85 = [];
|
|
42672
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== 60) {
|
|
42673
|
+
__ui_85.push({ code: "invalid_value", values: [60], input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
42674
|
+
}
|
|
42675
|
+
if (__ui_85.length === 0) {
|
|
42676
|
+
__u_83 = true;
|
|
42526
42677
|
}
|
|
42527
42678
|
else {
|
|
42528
42679
|
if (typeof __msg === "function") {
|
|
42529
|
-
for (var
|
|
42530
|
-
|
|
42531
|
-
|
|
42680
|
+
for (var __ufi_86 = 0; __ufi_86 < __ui_85.length; __ufi_86++) {
|
|
42681
|
+
__ui_85[__ufi_86].message = __msg(__ui_85[__ufi_86]);
|
|
42682
|
+
__ui_85[__ufi_86].input = undefined;
|
|
42532
42683
|
}
|
|
42533
42684
|
}
|
|
42534
|
-
|
|
42685
|
+
__ue_84.push(__ui_85);
|
|
42535
42686
|
}
|
|
42536
42687
|
}
|
|
42537
|
-
if (!
|
|
42538
|
-
var
|
|
42539
|
-
if (
|
|
42540
|
-
|
|
42688
|
+
if (!__u_83) {
|
|
42689
|
+
var __ui_87 = [];
|
|
42690
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== 120) {
|
|
42691
|
+
__ui_87.push({ code: "invalid_value", values: [120], input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
42541
42692
|
}
|
|
42542
|
-
if (
|
|
42543
|
-
|
|
42693
|
+
if (__ui_87.length === 0) {
|
|
42694
|
+
__u_83 = true;
|
|
42544
42695
|
}
|
|
42545
42696
|
else {
|
|
42546
42697
|
if (typeof __msg === "function") {
|
|
42547
|
-
for (var
|
|
42548
|
-
|
|
42549
|
-
|
|
42698
|
+
for (var __ufi_88 = 0; __ufi_88 < __ui_87.length; __ufi_88++) {
|
|
42699
|
+
__ui_87[__ufi_88].message = __msg(__ui_87[__ufi_88]);
|
|
42700
|
+
__ui_87[__ufi_88].input = undefined;
|
|
42550
42701
|
}
|
|
42551
42702
|
}
|
|
42552
|
-
|
|
42703
|
+
__ue_84.push(__ui_87);
|
|
42553
42704
|
}
|
|
42554
42705
|
}
|
|
42555
|
-
if (!
|
|
42556
|
-
var
|
|
42557
|
-
if (
|
|
42558
|
-
|
|
42706
|
+
if (!__u_83) {
|
|
42707
|
+
var __ui_89 = [];
|
|
42708
|
+
if (__o_82["idleRuntimeCleanupMinutes"] !== 240) {
|
|
42709
|
+
__ui_89.push({ code: "invalid_value", values: [240], input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
42559
42710
|
}
|
|
42560
|
-
if (
|
|
42561
|
-
|
|
42711
|
+
if (__ui_89.length === 0) {
|
|
42712
|
+
__u_83 = true;
|
|
42562
42713
|
}
|
|
42563
42714
|
else {
|
|
42564
42715
|
if (typeof __msg === "function") {
|
|
42565
|
-
for (var
|
|
42566
|
-
|
|
42567
|
-
|
|
42716
|
+
for (var __ufi_90 = 0; __ufi_90 < __ui_89.length; __ufi_90++) {
|
|
42717
|
+
__ui_89[__ufi_90].message = __msg(__ui_89[__ufi_90]);
|
|
42718
|
+
__ui_89[__ufi_90].input = undefined;
|
|
42568
42719
|
}
|
|
42569
42720
|
}
|
|
42570
|
-
|
|
42721
|
+
__ue_84.push(__ui_89);
|
|
42571
42722
|
}
|
|
42572
42723
|
}
|
|
42573
|
-
if (!
|
|
42574
|
-
_e.push({ code: "invalid_union", errors:
|
|
42724
|
+
if (!__u_83) {
|
|
42725
|
+
_e.push({ code: "invalid_union", errors: __ue_84, input: __o_82["idleRuntimeCleanupMinutes"], path: ["payload"].concat("config").concat("agents").concat("idleRuntimeCleanupMinutes") });
|
|
42575
42726
|
}
|
|
42576
42727
|
}
|
|
42577
42728
|
}
|
|
42578
42729
|
}
|
|
42579
42730
|
}
|
|
42580
|
-
if (
|
|
42581
|
-
if (typeof
|
|
42582
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42731
|
+
if (__o_37["skills"] !== undefined) {
|
|
42732
|
+
if (typeof __o_37["skills"] !== "object" || __o_37["skills"] === null || Array.isArray(__o_37["skills"])) {
|
|
42733
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["skills"], path: ["payload"].concat("config").concat("skills") });
|
|
42583
42734
|
}
|
|
42584
42735
|
else {
|
|
42585
|
-
var
|
|
42586
|
-
if (
|
|
42587
|
-
if (typeof
|
|
42588
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42736
|
+
var __o_91 = __o_37["skills"];
|
|
42737
|
+
if (__o_91["selection"] !== undefined) {
|
|
42738
|
+
if (typeof __o_91["selection"] !== "object" || __o_91["selection"] === null || Array.isArray(__o_91["selection"])) {
|
|
42739
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_91["selection"], path: ["payload"].concat("config").concat("skills").concat("selection") });
|
|
42589
42740
|
}
|
|
42590
42741
|
else {
|
|
42591
|
-
var
|
|
42592
|
-
switch (
|
|
42742
|
+
var __du_92 = __o_91["selection"];
|
|
42743
|
+
switch (__du_92["mode"]) {
|
|
42593
42744
|
case "all":
|
|
42594
|
-
if (typeof
|
|
42595
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42745
|
+
if (typeof __du_92 !== "object" || __du_92 === null || Array.isArray(__du_92)) {
|
|
42746
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_92, path: ["payload"].concat("config").concat("skills").concat("selection") });
|
|
42596
42747
|
}
|
|
42597
42748
|
else {
|
|
42598
|
-
var
|
|
42599
|
-
if (
|
|
42600
|
-
_e.push({ code: "invalid_value", values: ["all"], input:
|
|
42749
|
+
var __o_93 = __du_92;
|
|
42750
|
+
if (__o_93["mode"] !== "all") {
|
|
42751
|
+
_e.push({ code: "invalid_value", values: ["all"], input: __o_93["mode"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("mode") });
|
|
42601
42752
|
}
|
|
42602
42753
|
}
|
|
42603
42754
|
break;
|
|
42604
42755
|
case "custom":
|
|
42605
|
-
if (typeof
|
|
42606
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42756
|
+
if (typeof __du_92 !== "object" || __du_92 === null || Array.isArray(__du_92)) {
|
|
42757
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_92, path: ["payload"].concat("config").concat("skills").concat("selection") });
|
|
42607
42758
|
}
|
|
42608
42759
|
else {
|
|
42609
|
-
var
|
|
42610
|
-
if (
|
|
42611
|
-
_e.push({ code: "invalid_value", values: ["custom"], input:
|
|
42760
|
+
var __o_94 = __du_92;
|
|
42761
|
+
if (__o_94["mode"] !== "custom") {
|
|
42762
|
+
_e.push({ code: "invalid_value", values: ["custom"], input: __o_94["mode"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("mode") });
|
|
42612
42763
|
}
|
|
42613
|
-
if (!Array.isArray(
|
|
42614
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42764
|
+
if (!Array.isArray(__o_94["skills"])) {
|
|
42765
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_94["skills"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("skills") });
|
|
42615
42766
|
}
|
|
42616
42767
|
else {
|
|
42617
|
-
for (var
|
|
42618
|
-
if (typeof
|
|
42619
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42768
|
+
for (var __i_95 = 0; __i_95 < __o_94["skills"].length; __i_95++) {
|
|
42769
|
+
if (typeof __o_94["skills"][__i_95] !== "string") {
|
|
42770
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_94["skills"][__i_95], path: ["payload"].concat("config").concat("skills").concat("selection").concat("skills").concat(__i_95) });
|
|
42620
42771
|
}
|
|
42621
42772
|
}
|
|
42622
42773
|
}
|
|
42623
42774
|
}
|
|
42624
42775
|
break;
|
|
42625
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "mode", options: ["all", "custom"], input:
|
|
42776
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "mode", options: ["all", "custom"], input: __o_91["selection"], path: ["payload"].concat("config").concat("skills").concat("selection").concat("mode") });
|
|
42626
42777
|
}
|
|
42627
42778
|
}
|
|
42628
42779
|
}
|
|
42629
42780
|
}
|
|
42630
42781
|
}
|
|
42631
|
-
if (
|
|
42632
|
-
if (typeof
|
|
42633
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42782
|
+
if (__o_37["pluginsEnabled"] !== undefined) {
|
|
42783
|
+
if (typeof __o_37["pluginsEnabled"] !== "boolean") {
|
|
42784
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_37["pluginsEnabled"], path: ["payload"].concat("config").concat("pluginsEnabled") });
|
|
42634
42785
|
}
|
|
42635
42786
|
}
|
|
42636
|
-
if (
|
|
42637
|
-
if (typeof
|
|
42638
|
-
_e.push({ code: "invalid_type", expected: "record", input:
|
|
42787
|
+
if (__o_37["plugins"] !== undefined) {
|
|
42788
|
+
if (typeof __o_37["plugins"] !== "object" || __o_37["plugins"] === null || Array.isArray(__o_37["plugins"])) {
|
|
42789
|
+
_e.push({ code: "invalid_type", expected: "record", input: __o_37["plugins"], path: ["payload"].concat("config").concat("plugins") });
|
|
42639
42790
|
}
|
|
42640
42791
|
else {
|
|
42641
|
-
var
|
|
42642
|
-
for (var
|
|
42643
|
-
var
|
|
42644
|
-
var
|
|
42645
|
-
if (typeof
|
|
42646
|
-
|
|
42792
|
+
var __rk_96 = Object.keys(__o_37["plugins"]);
|
|
42793
|
+
for (var __ri_97 = 0; __ri_97 < __rk_96.length; __ri_97++) {
|
|
42794
|
+
var __rkey_98 = __rk_96[__ri_97];
|
|
42795
|
+
var __rki_99 = [];
|
|
42796
|
+
if (typeof __rkey_98 !== "string") {
|
|
42797
|
+
__rki_99.push({ code: "invalid_type", expected: "string", input: __rkey_98, path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
42647
42798
|
}
|
|
42648
42799
|
else {
|
|
42649
|
-
if (!
|
|
42650
|
-
|
|
42800
|
+
if (!__re_re_29.test(__rkey_98)) {
|
|
42801
|
+
__rki_99.push({ code: "invalid_format", format: "regex", pattern: __re_re_29.toString(), origin: "string", input: __rkey_98, path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
42651
42802
|
}
|
|
42652
42803
|
}
|
|
42653
|
-
if (
|
|
42654
|
-
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("plugins").concat(
|
|
42804
|
+
if (__rki_99.length > 0) {
|
|
42805
|
+
_e.push({ code: "invalid_key", origin: "record", path: ["payload"].concat("config").concat("plugins").concat(__rkey_98), issues: __rki_99 });
|
|
42655
42806
|
}
|
|
42656
42807
|
else {
|
|
42657
|
-
if (typeof
|
|
42658
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42808
|
+
if (typeof __o_37["plugins"][__rkey_98] !== "object" || __o_37["plugins"][__rkey_98] === null || Array.isArray(__o_37["plugins"][__rkey_98])) {
|
|
42809
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["plugins"][__rkey_98], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
42659
42810
|
}
|
|
42660
42811
|
else {
|
|
42661
|
-
var
|
|
42662
|
-
switch (
|
|
42812
|
+
var __du_100 = __o_37["plugins"][__rkey_98];
|
|
42813
|
+
switch (__du_100["source"]) {
|
|
42663
42814
|
case "directory":
|
|
42664
|
-
if (typeof
|
|
42665
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
42815
|
+
if (typeof __du_100 !== "object" || __du_100 === null || Array.isArray(__du_100)) {
|
|
42816
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_100, path: ["payload"].concat("config").concat("plugins").concat(__rkey_98) });
|
|
42666
42817
|
}
|
|
42667
42818
|
else {
|
|
42668
|
-
var
|
|
42669
|
-
if (
|
|
42670
|
-
_e.push({ code: "invalid_value", values: ["directory"], input:
|
|
42819
|
+
var __o_101 = __du_100;
|
|
42820
|
+
if (__o_101["source"] !== "directory") {
|
|
42821
|
+
_e.push({ code: "invalid_value", values: ["directory"], input: __o_101["source"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("source") });
|
|
42671
42822
|
}
|
|
42672
|
-
if (typeof
|
|
42673
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42823
|
+
if (typeof __o_101["path"] !== "string") {
|
|
42824
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_101["path"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("path") });
|
|
42674
42825
|
}
|
|
42675
42826
|
else {
|
|
42676
|
-
if (
|
|
42677
|
-
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input:
|
|
42827
|
+
if (__o_101["path"].length < 1) {
|
|
42828
|
+
_e.push({ code: "too_small", minimum: 1, origin: "string", inclusive: true, input: __o_101["path"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("path") });
|
|
42678
42829
|
}
|
|
42679
42830
|
}
|
|
42680
|
-
if (
|
|
42681
|
-
if (typeof
|
|
42682
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
42831
|
+
if (__o_101["enabled"] !== undefined) {
|
|
42832
|
+
if (typeof __o_101["enabled"] !== "boolean") {
|
|
42833
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_101["enabled"], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("enabled") });
|
|
42683
42834
|
}
|
|
42684
42835
|
}
|
|
42685
42836
|
}
|
|
42686
42837
|
break;
|
|
42687
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "source", options: ["directory"], input:
|
|
42838
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "source", options: ["directory"], input: __o_37["plugins"][__rkey_98], path: ["payload"].concat("config").concat("plugins").concat(__rkey_98).concat("source") });
|
|
42688
42839
|
}
|
|
42689
42840
|
}
|
|
42690
42841
|
}
|
|
42691
42842
|
}
|
|
42692
42843
|
}
|
|
42693
42844
|
}
|
|
42694
|
-
if (
|
|
42695
|
-
if (!Array.isArray(
|
|
42696
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
42845
|
+
if (__o_37["disabledBuiltinPlugins"] !== undefined) {
|
|
42846
|
+
if (!Array.isArray(__o_37["disabledBuiltinPlugins"])) {
|
|
42847
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_37["disabledBuiltinPlugins"], path: ["payload"].concat("config").concat("disabledBuiltinPlugins") });
|
|
42697
42848
|
}
|
|
42698
42849
|
else {
|
|
42699
|
-
for (var
|
|
42700
|
-
if (typeof
|
|
42701
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
42850
|
+
for (var __i_102 = 0; __i_102 < __o_37["disabledBuiltinPlugins"].length; __i_102++) {
|
|
42851
|
+
if (typeof __o_37["disabledBuiltinPlugins"][__i_102] !== "string") {
|
|
42852
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_37["disabledBuiltinPlugins"][__i_102], path: ["payload"].concat("config").concat("disabledBuiltinPlugins").concat(__i_102) });
|
|
42702
42853
|
}
|
|
42703
42854
|
else {
|
|
42704
|
-
if (!
|
|
42705
|
-
_e.push({ code: "invalid_format", format: "regex", pattern:
|
|
42855
|
+
if (!__re_re_29.test(__o_37["disabledBuiltinPlugins"][__i_102])) {
|
|
42856
|
+
_e.push({ code: "invalid_format", format: "regex", pattern: __re_re_29.toString(), origin: "string", input: __o_37["disabledBuiltinPlugins"][__i_102], path: ["payload"].concat("config").concat("disabledBuiltinPlugins").concat(__i_102) });
|
|
42706
42857
|
}
|
|
42707
42858
|
}
|
|
42708
42859
|
}
|
|
42709
42860
|
}
|
|
42710
42861
|
}
|
|
42711
|
-
|
|
42862
|
+
__o_36["config"] = __o_37;
|
|
42712
42863
|
}
|
|
42713
|
-
|
|
42864
|
+
__o_35["payload"] = __o_36;
|
|
42714
42865
|
}
|
|
42715
|
-
_d =
|
|
42866
|
+
_d = __o_35;
|
|
42716
42867
|
}
|
|
42717
42868
|
return __fin(_e, _d);
|
|
42718
42869
|
}
|
|
@@ -54700,7 +54851,7 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54700
54851
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
54701
54852
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
54702
54853
|
__ae_0 = a[i];
|
|
54703
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
54854
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["relayEndpoint"] === undefined || (typeof __ae_0["relayEndpoint"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
54704
54855
|
return false;
|
|
54705
54856
|
}
|
|
54706
54857
|
} return true; }
|
|
@@ -54884,6 +55035,11 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54884
55035
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["remoteAddress"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("remoteAddress") });
|
|
54885
55036
|
}
|
|
54886
55037
|
}
|
|
55038
|
+
if (__o_10["relayEndpoint"] !== undefined) {
|
|
55039
|
+
if (typeof __o_10["relayEndpoint"] !== "string") {
|
|
55040
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["relayEndpoint"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("relayEndpoint") });
|
|
55041
|
+
}
|
|
55042
|
+
}
|
|
54887
55043
|
if (__o_10["deviceCredentialId"] !== undefined) {
|
|
54888
55044
|
if (typeof __o_10["deviceCredentialId"] !== "string") {
|
|
54889
55045
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["deviceCredentialId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("deviceCredentialId") });
|
|
@@ -80515,7 +80671,7 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80515
80671
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
80516
80672
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
80517
80673
|
__ae_0 = a[i];
|
|
80518
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
80674
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["relayEndpoint"] === undefined || (typeof __ae_0["relayEndpoint"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
80519
80675
|
return false;
|
|
80520
80676
|
}
|
|
80521
80677
|
} return true; }
|
|
@@ -80699,6 +80855,11 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80699
80855
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["remoteAddress"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("remoteAddress") });
|
|
80700
80856
|
}
|
|
80701
80857
|
}
|
|
80858
|
+
if (__o_10["relayEndpoint"] !== undefined) {
|
|
80859
|
+
if (typeof __o_10["relayEndpoint"] !== "string") {
|
|
80860
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["relayEndpoint"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("relayEndpoint") });
|
|
80861
|
+
}
|
|
80862
|
+
}
|
|
80702
80863
|
if (__o_10["deviceCredentialId"] !== undefined) {
|
|
80703
80864
|
if (typeof __o_10["deviceCredentialId"] !== "string") {
|
|
80704
80865
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["deviceCredentialId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("deviceCredentialId") });
|
|
@@ -81671,7 +81832,7 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
81671
81832
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
81672
81833
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
81673
81834
|
__ae_0 = a[i];
|
|
81674
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
81835
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["relayEndpoint"] === undefined || (typeof __ae_0["relayEndpoint"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
81675
81836
|
return false;
|
|
81676
81837
|
}
|
|
81677
81838
|
} return true; }
|
|
@@ -81858,6 +82019,11 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
81858
82019
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["remoteAddress"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("remoteAddress") });
|
|
81859
82020
|
}
|
|
81860
82021
|
}
|
|
82022
|
+
if (__o_10["relayEndpoint"] !== undefined) {
|
|
82023
|
+
if (typeof __o_10["relayEndpoint"] !== "string") {
|
|
82024
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["relayEndpoint"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("relayEndpoint") });
|
|
82025
|
+
}
|
|
82026
|
+
}
|
|
81861
82027
|
if (__o_10["deviceCredentialId"] !== undefined) {
|
|
81862
82028
|
if (typeof __o_10["deviceCredentialId"] !== "string") {
|
|
81863
82029
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["deviceCredentialId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("deviceCredentialId") });
|
|
@@ -85348,7 +85514,7 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
85348
85514
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
85349
85515
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
85350
85516
|
__ae_0 = a[i];
|
|
85351
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
85517
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && (__ae_0["customName"] === undefined || (typeof __ae_0["customName"] === "string" && __ae_0["customName"].length <= 256)) && (__ae_0["computerName"] === undefined || (typeof __ae_0["computerName"] === "string" && __ae_0["computerName"].length <= 256)) && (__ae_0["model"] === undefined || (typeof __ae_0["model"] === "string" && __ae_0["model"].length <= 256)) && (__ae_0["browser"] === undefined || (typeof __ae_0["browser"] === "string" && __ae_0["browser"].length <= 64)) && (__ae_0["os"] === undefined || (typeof __ae_0["os"] === "string" && __ae_0["os"].length <= 64)) && (__ae_0["osVersion"] === undefined || (typeof __ae_0["osVersion"] === "string" && __ae_0["osVersion"].length <= 64)) && (__ae_0["clientIdSuffix"] === undefined || (typeof __ae_0["clientIdSuffix"] === "string")) && typeof __ae_0["sessionId"] === "string" && typeof __ae_0["clientType"] === "string" && (__ae_0["deviceName"] === null || (typeof __ae_0["deviceName"] === "string")) && (__ae_0["platform"] === null || (typeof __ae_0["platform"] === "string")) && (__ae_0["appVersion"] === null || (typeof __ae_0["appVersion"] === "string")) && __enumSet_1.has(__ae_0["credential"]) && (__ae_0["fleetPeer"] === undefined || (typeof __ae_0["fleetPeer"] === "object" && __ae_0["fleetPeer"] !== null && !Array.isArray(__ae_0["fleetPeer"]) && typeof __ae_0["fleetPeer"]["serverId"] === "string" && (__ae_0["fleetPeer"]["label"] === null || (typeof __ae_0["fleetPeer"]["label"] === "string")))) && typeof __ae_0["connectedAt"] === "string" && typeof __ae_0["current"] === "boolean" && typeof __ae_0["alwaysKept"] === "boolean" && typeof __ae_0["canKeep"] === "boolean" && (__ae_0["transport"] === undefined || (__enumSet_2.has(__ae_0["transport"]))) && (__ae_0["remoteAddress"] === undefined || (typeof __ae_0["remoteAddress"] === "string")) && (__ae_0["relayEndpoint"] === undefined || (typeof __ae_0["relayEndpoint"] === "string")) && (__ae_0["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
85352
85518
|
return false;
|
|
85353
85519
|
}
|
|
85354
85520
|
} return true; }
|
|
@@ -85532,6 +85698,11 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
85532
85698
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["remoteAddress"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("remoteAddress") });
|
|
85533
85699
|
}
|
|
85534
85700
|
}
|
|
85701
|
+
if (__o_10["relayEndpoint"] !== undefined) {
|
|
85702
|
+
if (typeof __o_10["relayEndpoint"] !== "string") {
|
|
85703
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_10["relayEndpoint"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("relayEndpoint") });
|
|
85704
|
+
}
|
|
85705
|
+
}
|
|
85535
85706
|
if (__o_10["deviceCredentialId"] !== undefined) {
|
|
85536
85707
|
if (typeof __o_10["deviceCredentialId"] !== "string") {
|
|
85537
85708
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["deviceCredentialId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("deviceCredentialId") });
|