@getmateo/protocol 0.18.0 → 0.19.0
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/daemon-auth.d.ts +32 -0
- package/dist/daemon-auth.js +2 -0
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +66 -0
- package/dist/generated/validation/ws-outbound.aot.js +1215 -1035
- package/dist/messages.d.ts +251 -0
- package/dist/messages.js +8 -0
- package/dist/plugin-browser-consent-copy.d.ts +18 -0
- package/dist/plugin-browser-consent-copy.js +9 -0
- package/dist/validation/ws-outbound-envelope.d.ts +66 -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"]) && 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["deviceCredentialId"] === undefined || (typeof __ae_0["deviceCredentialId"] === "string")))) {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
23
|
} return true; }
|
|
@@ -28,7 +28,7 @@ export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
|
28
28
|
}
|
|
29
29
|
} return true; }
|
|
30
30
|
var __set_enum_11 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
31
|
-
var
|
|
31
|
+
var __set_enum_13 = new Set(["local", "direct", "relay", "hub"]);
|
|
32
32
|
function safeParse_SessionOutboundMessage0(input) {
|
|
33
33
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.auth.status.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["status"] === "object" && input["payload"]["status"] !== null && !Array.isArray(input["payload"]["status"]) && typeof input["payload"]["status"]["passwordEnabled"] === "boolean" && (input["payload"]["status"]["managedBy"] === null || ((input["payload"]["status"]["managedBy"] === "environment"))) && Array.isArray(input["payload"]["status"]["sessions"]) && __af_3(input["payload"]["status"]["sessions"]) && Array.isArray(input["payload"]["status"]["devices"]) && __af_5(input["payload"]["status"]["devices"])) {
|
|
34
34
|
return { success: true, data: input };
|
|
@@ -163,6 +163,22 @@ export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
|
163
163
|
if (!__set_enum_11.has(__o_10["credential"])) {
|
|
164
164
|
_e.push({ code: "invalid_value", values: ["none", "password", "localCredential", "device", "peer", "service"], input: __o_10["credential"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("credential") });
|
|
165
165
|
}
|
|
166
|
+
if (__o_10["fleetPeer"] !== undefined) {
|
|
167
|
+
if (typeof __o_10["fleetPeer"] !== "object" || __o_10["fleetPeer"] === null || Array.isArray(__o_10["fleetPeer"])) {
|
|
168
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_10["fleetPeer"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer") });
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
var __o_12 = __o_10["fleetPeer"];
|
|
172
|
+
if (typeof __o_12["serverId"] !== "string") {
|
|
173
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["serverId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("serverId") });
|
|
174
|
+
}
|
|
175
|
+
if (__o_12["label"] !== null) {
|
|
176
|
+
if (typeof __o_12["label"] !== "string") {
|
|
177
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["label"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("label") });
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
166
182
|
if (typeof __o_10["connectedAt"] !== "string") {
|
|
167
183
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["connectedAt"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("connectedAt") });
|
|
168
184
|
}
|
|
@@ -176,7 +192,7 @@ export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
|
176
192
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_10["canKeep"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("canKeep") });
|
|
177
193
|
}
|
|
178
194
|
if (__o_10["transport"] !== undefined) {
|
|
179
|
-
if (!
|
|
195
|
+
if (!__set_enum_13.has(__o_10["transport"])) {
|
|
180
196
|
_e.push({ code: "invalid_value", values: ["local", "direct", "relay", "hub"], input: __o_10["transport"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("transport") });
|
|
181
197
|
}
|
|
182
198
|
}
|
|
@@ -197,101 +213,101 @@ export const SessionOutboundMessage0 = /* @__PURE__ */ (() => {
|
|
|
197
213
|
_e.push({ code: "invalid_type", expected: "array", input: __o_8["devices"], path: ["payload"].concat("status").concat("devices") });
|
|
198
214
|
}
|
|
199
215
|
else {
|
|
200
|
-
for (var
|
|
201
|
-
if (typeof __o_8["devices"][
|
|
202
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][
|
|
216
|
+
for (var __i_14 = 0; __i_14 < __o_8["devices"].length; __i_14++) {
|
|
217
|
+
if (typeof __o_8["devices"][__i_14] !== "object" || __o_8["devices"][__i_14] === null || Array.isArray(__o_8["devices"][__i_14])) {
|
|
218
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][__i_14], path: ["payload"].concat("status").concat("devices").concat(__i_14) });
|
|
203
219
|
}
|
|
204
220
|
else {
|
|
205
|
-
var
|
|
206
|
-
if (
|
|
207
|
-
if (typeof
|
|
208
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
221
|
+
var __o_15 = __o_8["devices"][__i_14];
|
|
222
|
+
if (__o_15["customName"] !== undefined) {
|
|
223
|
+
if (typeof __o_15["customName"] !== "string") {
|
|
224
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
209
225
|
}
|
|
210
226
|
else {
|
|
211
|
-
if (
|
|
212
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
227
|
+
if (__o_15["customName"].length > 256) {
|
|
228
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
213
229
|
}
|
|
214
230
|
}
|
|
215
231
|
}
|
|
216
|
-
if (
|
|
217
|
-
if (typeof
|
|
218
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
232
|
+
if (__o_15["computerName"] !== undefined) {
|
|
233
|
+
if (typeof __o_15["computerName"] !== "string") {
|
|
234
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
219
235
|
}
|
|
220
236
|
else {
|
|
221
|
-
if (
|
|
222
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
237
|
+
if (__o_15["computerName"].length > 256) {
|
|
238
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
223
239
|
}
|
|
224
240
|
}
|
|
225
241
|
}
|
|
226
|
-
if (
|
|
227
|
-
if (typeof
|
|
228
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
242
|
+
if (__o_15["model"] !== undefined) {
|
|
243
|
+
if (typeof __o_15["model"] !== "string") {
|
|
244
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
229
245
|
}
|
|
230
246
|
else {
|
|
231
|
-
if (
|
|
232
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
247
|
+
if (__o_15["model"].length > 256) {
|
|
248
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
233
249
|
}
|
|
234
250
|
}
|
|
235
251
|
}
|
|
236
|
-
if (
|
|
237
|
-
if (typeof
|
|
238
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
252
|
+
if (__o_15["browser"] !== undefined) {
|
|
253
|
+
if (typeof __o_15["browser"] !== "string") {
|
|
254
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
239
255
|
}
|
|
240
256
|
else {
|
|
241
|
-
if (
|
|
242
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
257
|
+
if (__o_15["browser"].length > 64) {
|
|
258
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
243
259
|
}
|
|
244
260
|
}
|
|
245
261
|
}
|
|
246
|
-
if (
|
|
247
|
-
if (typeof
|
|
248
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
262
|
+
if (__o_15["os"] !== undefined) {
|
|
263
|
+
if (typeof __o_15["os"] !== "string") {
|
|
264
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
249
265
|
}
|
|
250
266
|
else {
|
|
251
|
-
if (
|
|
252
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
267
|
+
if (__o_15["os"].length > 64) {
|
|
268
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
253
269
|
}
|
|
254
270
|
}
|
|
255
271
|
}
|
|
256
|
-
if (
|
|
257
|
-
if (typeof
|
|
258
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
272
|
+
if (__o_15["osVersion"] !== undefined) {
|
|
273
|
+
if (typeof __o_15["osVersion"] !== "string") {
|
|
274
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
259
275
|
}
|
|
260
276
|
else {
|
|
261
|
-
if (
|
|
262
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
277
|
+
if (__o_15["osVersion"].length > 64) {
|
|
278
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
263
279
|
}
|
|
264
280
|
}
|
|
265
281
|
}
|
|
266
|
-
if (
|
|
267
|
-
if (typeof
|
|
268
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
282
|
+
if (__o_15["clientType"] !== undefined) {
|
|
283
|
+
if (typeof __o_15["clientType"] !== "string") {
|
|
284
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientType"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientType") });
|
|
269
285
|
}
|
|
270
286
|
}
|
|
271
|
-
if (
|
|
272
|
-
if (typeof
|
|
273
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
287
|
+
if (__o_15["clientIdSuffix"] !== undefined) {
|
|
288
|
+
if (typeof __o_15["clientIdSuffix"] !== "string") {
|
|
289
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientIdSuffix"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientIdSuffix") });
|
|
274
290
|
}
|
|
275
291
|
}
|
|
276
|
-
if (typeof
|
|
277
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
292
|
+
if (typeof __o_15["credentialId"] !== "string") {
|
|
293
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["credentialId"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("credentialId") });
|
|
278
294
|
}
|
|
279
|
-
if (
|
|
280
|
-
if (typeof
|
|
281
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
295
|
+
if (__o_15["deviceName"] !== null) {
|
|
296
|
+
if (typeof __o_15["deviceName"] !== "string") {
|
|
297
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["deviceName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("deviceName") });
|
|
282
298
|
}
|
|
283
299
|
}
|
|
284
|
-
if (
|
|
285
|
-
if (typeof
|
|
286
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
300
|
+
if (__o_15["platform"] !== null) {
|
|
301
|
+
if (typeof __o_15["platform"] !== "string") {
|
|
302
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["platform"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("platform") });
|
|
287
303
|
}
|
|
288
304
|
}
|
|
289
|
-
if (typeof
|
|
290
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
305
|
+
if (typeof __o_15["createdAt"] !== "string") {
|
|
306
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["createdAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("createdAt") });
|
|
291
307
|
}
|
|
292
|
-
if (
|
|
293
|
-
if (typeof
|
|
294
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
308
|
+
if (__o_15["lastSeenAt"] !== null) {
|
|
309
|
+
if (typeof __o_15["lastSeenAt"] !== "string") {
|
|
310
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["lastSeenAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("lastSeenAt") });
|
|
295
311
|
}
|
|
296
312
|
}
|
|
297
313
|
}
|
|
@@ -309,7 +325,7 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
309
325
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
310
326
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
311
327
|
__ae_0 = a[i];
|
|
312
|
-
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"]) && 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")))) {
|
|
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")))) {
|
|
313
329
|
return false;
|
|
314
330
|
}
|
|
315
331
|
} return true; }
|
|
@@ -320,7 +336,7 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
320
336
|
}
|
|
321
337
|
} return true; }
|
|
322
338
|
var __set_enum_11 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
323
|
-
var
|
|
339
|
+
var __set_enum_13 = new Set(["local", "direct", "relay", "hub"]);
|
|
324
340
|
function safeParse_SessionOutboundMessage1(input) {
|
|
325
341
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.auth.password.set.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["status"] === "object" && input["payload"]["status"] !== null && !Array.isArray(input["payload"]["status"]) && typeof input["payload"]["status"]["passwordEnabled"] === "boolean" && (input["payload"]["status"]["managedBy"] === null || ((input["payload"]["status"]["managedBy"] === "environment"))) && Array.isArray(input["payload"]["status"]["sessions"]) && __af_3(input["payload"]["status"]["sessions"]) && Array.isArray(input["payload"]["status"]["devices"]) && __af_5(input["payload"]["status"]["devices"]) && typeof input["payload"]["disconnected"] === "number" && Number.isSafeInteger(input["payload"]["disconnected"]) && input["payload"]["disconnected"] >= 0) {
|
|
326
342
|
return { success: true, data: input };
|
|
@@ -455,6 +471,22 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
455
471
|
if (!__set_enum_11.has(__o_10["credential"])) {
|
|
456
472
|
_e.push({ code: "invalid_value", values: ["none", "password", "localCredential", "device", "peer", "service"], input: __o_10["credential"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("credential") });
|
|
457
473
|
}
|
|
474
|
+
if (__o_10["fleetPeer"] !== undefined) {
|
|
475
|
+
if (typeof __o_10["fleetPeer"] !== "object" || __o_10["fleetPeer"] === null || Array.isArray(__o_10["fleetPeer"])) {
|
|
476
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_10["fleetPeer"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer") });
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
var __o_12 = __o_10["fleetPeer"];
|
|
480
|
+
if (typeof __o_12["serverId"] !== "string") {
|
|
481
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["serverId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("serverId") });
|
|
482
|
+
}
|
|
483
|
+
if (__o_12["label"] !== null) {
|
|
484
|
+
if (typeof __o_12["label"] !== "string") {
|
|
485
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["label"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("label") });
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
458
490
|
if (typeof __o_10["connectedAt"] !== "string") {
|
|
459
491
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["connectedAt"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("connectedAt") });
|
|
460
492
|
}
|
|
@@ -468,7 +500,7 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
468
500
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_10["canKeep"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("canKeep") });
|
|
469
501
|
}
|
|
470
502
|
if (__o_10["transport"] !== undefined) {
|
|
471
|
-
if (!
|
|
503
|
+
if (!__set_enum_13.has(__o_10["transport"])) {
|
|
472
504
|
_e.push({ code: "invalid_value", values: ["local", "direct", "relay", "hub"], input: __o_10["transport"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("transport") });
|
|
473
505
|
}
|
|
474
506
|
}
|
|
@@ -489,101 +521,101 @@ export const SessionOutboundMessage1 = /* @__PURE__ */ (() => {
|
|
|
489
521
|
_e.push({ code: "invalid_type", expected: "array", input: __o_8["devices"], path: ["payload"].concat("status").concat("devices") });
|
|
490
522
|
}
|
|
491
523
|
else {
|
|
492
|
-
for (var
|
|
493
|
-
if (typeof __o_8["devices"][
|
|
494
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][
|
|
524
|
+
for (var __i_14 = 0; __i_14 < __o_8["devices"].length; __i_14++) {
|
|
525
|
+
if (typeof __o_8["devices"][__i_14] !== "object" || __o_8["devices"][__i_14] === null || Array.isArray(__o_8["devices"][__i_14])) {
|
|
526
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][__i_14], path: ["payload"].concat("status").concat("devices").concat(__i_14) });
|
|
495
527
|
}
|
|
496
528
|
else {
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
if (typeof
|
|
500
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
529
|
+
var __o_15 = __o_8["devices"][__i_14];
|
|
530
|
+
if (__o_15["customName"] !== undefined) {
|
|
531
|
+
if (typeof __o_15["customName"] !== "string") {
|
|
532
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
501
533
|
}
|
|
502
534
|
else {
|
|
503
|
-
if (
|
|
504
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
535
|
+
if (__o_15["customName"].length > 256) {
|
|
536
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
505
537
|
}
|
|
506
538
|
}
|
|
507
539
|
}
|
|
508
|
-
if (
|
|
509
|
-
if (typeof
|
|
510
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
540
|
+
if (__o_15["computerName"] !== undefined) {
|
|
541
|
+
if (typeof __o_15["computerName"] !== "string") {
|
|
542
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
511
543
|
}
|
|
512
544
|
else {
|
|
513
|
-
if (
|
|
514
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
545
|
+
if (__o_15["computerName"].length > 256) {
|
|
546
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
515
547
|
}
|
|
516
548
|
}
|
|
517
549
|
}
|
|
518
|
-
if (
|
|
519
|
-
if (typeof
|
|
520
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
550
|
+
if (__o_15["model"] !== undefined) {
|
|
551
|
+
if (typeof __o_15["model"] !== "string") {
|
|
552
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
521
553
|
}
|
|
522
554
|
else {
|
|
523
|
-
if (
|
|
524
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
555
|
+
if (__o_15["model"].length > 256) {
|
|
556
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
525
557
|
}
|
|
526
558
|
}
|
|
527
559
|
}
|
|
528
|
-
if (
|
|
529
|
-
if (typeof
|
|
530
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
560
|
+
if (__o_15["browser"] !== undefined) {
|
|
561
|
+
if (typeof __o_15["browser"] !== "string") {
|
|
562
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
531
563
|
}
|
|
532
564
|
else {
|
|
533
|
-
if (
|
|
534
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
565
|
+
if (__o_15["browser"].length > 64) {
|
|
566
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
535
567
|
}
|
|
536
568
|
}
|
|
537
569
|
}
|
|
538
|
-
if (
|
|
539
|
-
if (typeof
|
|
540
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
570
|
+
if (__o_15["os"] !== undefined) {
|
|
571
|
+
if (typeof __o_15["os"] !== "string") {
|
|
572
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
541
573
|
}
|
|
542
574
|
else {
|
|
543
|
-
if (
|
|
544
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
575
|
+
if (__o_15["os"].length > 64) {
|
|
576
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
545
577
|
}
|
|
546
578
|
}
|
|
547
579
|
}
|
|
548
|
-
if (
|
|
549
|
-
if (typeof
|
|
550
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
580
|
+
if (__o_15["osVersion"] !== undefined) {
|
|
581
|
+
if (typeof __o_15["osVersion"] !== "string") {
|
|
582
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
551
583
|
}
|
|
552
584
|
else {
|
|
553
|
-
if (
|
|
554
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
585
|
+
if (__o_15["osVersion"].length > 64) {
|
|
586
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
555
587
|
}
|
|
556
588
|
}
|
|
557
589
|
}
|
|
558
|
-
if (
|
|
559
|
-
if (typeof
|
|
560
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
590
|
+
if (__o_15["clientType"] !== undefined) {
|
|
591
|
+
if (typeof __o_15["clientType"] !== "string") {
|
|
592
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientType"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientType") });
|
|
561
593
|
}
|
|
562
594
|
}
|
|
563
|
-
if (
|
|
564
|
-
if (typeof
|
|
565
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
595
|
+
if (__o_15["clientIdSuffix"] !== undefined) {
|
|
596
|
+
if (typeof __o_15["clientIdSuffix"] !== "string") {
|
|
597
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientIdSuffix"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientIdSuffix") });
|
|
566
598
|
}
|
|
567
599
|
}
|
|
568
|
-
if (typeof
|
|
569
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
600
|
+
if (typeof __o_15["credentialId"] !== "string") {
|
|
601
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["credentialId"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("credentialId") });
|
|
570
602
|
}
|
|
571
|
-
if (
|
|
572
|
-
if (typeof
|
|
573
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
603
|
+
if (__o_15["deviceName"] !== null) {
|
|
604
|
+
if (typeof __o_15["deviceName"] !== "string") {
|
|
605
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["deviceName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("deviceName") });
|
|
574
606
|
}
|
|
575
607
|
}
|
|
576
|
-
if (
|
|
577
|
-
if (typeof
|
|
578
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
608
|
+
if (__o_15["platform"] !== null) {
|
|
609
|
+
if (typeof __o_15["platform"] !== "string") {
|
|
610
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["platform"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("platform") });
|
|
579
611
|
}
|
|
580
612
|
}
|
|
581
|
-
if (typeof
|
|
582
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
613
|
+
if (typeof __o_15["createdAt"] !== "string") {
|
|
614
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["createdAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("createdAt") });
|
|
583
615
|
}
|
|
584
|
-
if (
|
|
585
|
-
if (typeof
|
|
586
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
616
|
+
if (__o_15["lastSeenAt"] !== null) {
|
|
617
|
+
if (typeof __o_15["lastSeenAt"] !== "string") {
|
|
618
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["lastSeenAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("lastSeenAt") });
|
|
587
619
|
}
|
|
588
620
|
}
|
|
589
621
|
}
|
|
@@ -48069,13 +48101,19 @@ export const SessionOutboundMessage160 = /* @__PURE__ */ (() => {
|
|
|
48069
48101
|
export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
48070
48102
|
var __rf = [__src_SessionOutboundMessage161.schema.shape["payload"]._zod.def.options[1].shape["mainRepoRoot"]];
|
|
48071
48103
|
var __enumSet_0 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48072
|
-
var __enumSet_1 = new Set(["
|
|
48104
|
+
var __enumSet_1 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48073
48105
|
var __enumSet_2 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48074
|
-
var
|
|
48075
|
-
var
|
|
48076
|
-
var
|
|
48106
|
+
var __enumSet_3 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48107
|
+
var __enumSet_4 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48108
|
+
var __enumSet_5 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48109
|
+
var __set_enum_14 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48110
|
+
var __set_enum_15 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48111
|
+
var __set_enum_21 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48112
|
+
var __set_enum_22 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48113
|
+
var __set_enum_29 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48114
|
+
var __set_enum_30 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48077
48115
|
function safeParse_SessionOutboundMessage161(input) {
|
|
48078
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_response" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) &&
|
|
48116
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_response" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_1.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_3.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_4.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_5.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))))) {
|
|
48079
48117
|
return { success: true, data: input };
|
|
48080
48118
|
}
|
|
48081
48119
|
var _e = [];
|
|
@@ -48084,369 +48122,405 @@ export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
|
48084
48122
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
48085
48123
|
}
|
|
48086
48124
|
else {
|
|
48087
|
-
var
|
|
48088
|
-
if (
|
|
48089
|
-
_e.push({ code: "invalid_value", values: ["checkout_status_response"], input:
|
|
48090
|
-
}
|
|
48091
|
-
var
|
|
48092
|
-
var
|
|
48093
|
-
if (!
|
|
48094
|
-
var
|
|
48095
|
-
var
|
|
48096
|
-
if (typeof
|
|
48097
|
-
|
|
48125
|
+
var __o_6 = Object.assign({}, _d);
|
|
48126
|
+
if (__o_6["type"] !== "checkout_status_response") {
|
|
48127
|
+
_e.push({ code: "invalid_value", values: ["checkout_status_response"], input: __o_6["type"], path: ["type"] });
|
|
48128
|
+
}
|
|
48129
|
+
var __u_7 = false;
|
|
48130
|
+
var __ue_8 = [];
|
|
48131
|
+
if (!__u_7) {
|
|
48132
|
+
var __ui_9 = [];
|
|
48133
|
+
var __uo_11 = __o_6["payload"];
|
|
48134
|
+
if (typeof __uo_11 !== "object" || __uo_11 === null || Array.isArray(__uo_11)) {
|
|
48135
|
+
__ui_9.push({ code: "invalid_type", expected: "object", input: __uo_11, path: ["payload"] });
|
|
48098
48136
|
}
|
|
48099
48137
|
else {
|
|
48100
|
-
var
|
|
48101
|
-
if (typeof
|
|
48102
|
-
|
|
48138
|
+
var __o_12 = __uo_11;
|
|
48139
|
+
if (typeof __o_12["cwd"] !== "string") {
|
|
48140
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_12["cwd"], path: ["payload"].concat("cwd") });
|
|
48103
48141
|
}
|
|
48104
|
-
if (
|
|
48105
|
-
if (typeof
|
|
48106
|
-
|
|
48142
|
+
if (__o_12["error"] !== null) {
|
|
48143
|
+
if (typeof __o_12["error"] !== "object" || __o_12["error"] === null || Array.isArray(__o_12["error"])) {
|
|
48144
|
+
__ui_9.push({ code: "invalid_type", expected: "object", input: __o_12["error"], path: ["payload"].concat("error") });
|
|
48107
48145
|
}
|
|
48108
48146
|
else {
|
|
48109
|
-
var
|
|
48110
|
-
if (!
|
|
48111
|
-
|
|
48147
|
+
var __o_13 = __o_12["error"];
|
|
48148
|
+
if (!__set_enum_14.has(__o_13["code"])) {
|
|
48149
|
+
__ui_9.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_13["code"], path: ["payload"].concat("error").concat("code") });
|
|
48150
|
+
}
|
|
48151
|
+
if (typeof __o_13["message"] !== "string") {
|
|
48152
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_13["message"], path: ["payload"].concat("error").concat("message") });
|
|
48112
48153
|
}
|
|
48113
|
-
|
|
48114
|
-
|
|
48154
|
+
}
|
|
48155
|
+
}
|
|
48156
|
+
if (typeof __o_12["requestId"] !== "string") {
|
|
48157
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_12["requestId"], path: ["payload"].concat("requestId") });
|
|
48158
|
+
}
|
|
48159
|
+
if (__o_12["upstreamRef"] !== undefined) {
|
|
48160
|
+
if (__o_12["upstreamRef"] !== null) {
|
|
48161
|
+
if (typeof __o_12["upstreamRef"] !== "string") {
|
|
48162
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_12["upstreamRef"], path: ["payload"].concat("upstreamRef") });
|
|
48115
48163
|
}
|
|
48116
48164
|
}
|
|
48117
48165
|
}
|
|
48118
|
-
if (
|
|
48119
|
-
|
|
48166
|
+
if (__o_12["upstreamState"] !== undefined) {
|
|
48167
|
+
if (!__set_enum_15.has(__o_12["upstreamState"])) {
|
|
48168
|
+
__ui_9.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_12["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48169
|
+
}
|
|
48120
48170
|
}
|
|
48121
|
-
if (
|
|
48122
|
-
if (
|
|
48123
|
-
if (typeof
|
|
48124
|
-
|
|
48171
|
+
if (__o_12["firstPushRemote"] !== undefined) {
|
|
48172
|
+
if (__o_12["firstPushRemote"] !== null) {
|
|
48173
|
+
if (typeof __o_12["firstPushRemote"] !== "string") {
|
|
48174
|
+
__ui_9.push({ code: "invalid_type", expected: "string", input: __o_12["firstPushRemote"], path: ["payload"].concat("firstPushRemote") });
|
|
48125
48175
|
}
|
|
48126
48176
|
}
|
|
48127
48177
|
}
|
|
48128
|
-
if (
|
|
48129
|
-
|
|
48178
|
+
if (__o_12["isGit"] !== false) {
|
|
48179
|
+
__ui_9.push({ code: "invalid_value", values: [false], input: __o_12["isGit"], path: ["payload"].concat("isGit") });
|
|
48130
48180
|
}
|
|
48131
|
-
if (
|
|
48132
|
-
|
|
48181
|
+
if (__o_12["isMateoOwnedWorktree"] !== false) {
|
|
48182
|
+
__ui_9.push({ code: "invalid_value", values: [false], input: __o_12["isMateoOwnedWorktree"], path: ["payload"].concat("isMateoOwnedWorktree") });
|
|
48133
48183
|
}
|
|
48134
|
-
if (
|
|
48135
|
-
|
|
48184
|
+
if (__o_12["repoRoot"] !== null) {
|
|
48185
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["repoRoot"], path: ["payload"].concat("repoRoot") });
|
|
48136
48186
|
}
|
|
48137
|
-
if (
|
|
48138
|
-
|
|
48187
|
+
if (__o_12["currentBranch"] !== null) {
|
|
48188
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["currentBranch"], path: ["payload"].concat("currentBranch") });
|
|
48139
48189
|
}
|
|
48140
|
-
if (
|
|
48141
|
-
|
|
48190
|
+
if (__o_12["isDirty"] !== null) {
|
|
48191
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["isDirty"], path: ["payload"].concat("isDirty") });
|
|
48142
48192
|
}
|
|
48143
|
-
if (
|
|
48144
|
-
|
|
48193
|
+
if (__o_12["baseRef"] !== null) {
|
|
48194
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["baseRef"], path: ["payload"].concat("baseRef") });
|
|
48145
48195
|
}
|
|
48146
|
-
if (
|
|
48147
|
-
|
|
48196
|
+
if (__o_12["aheadBehind"] !== null) {
|
|
48197
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["aheadBehind"], path: ["payload"].concat("aheadBehind") });
|
|
48148
48198
|
}
|
|
48149
|
-
if (
|
|
48150
|
-
|
|
48199
|
+
if (__o_12["aheadOfOrigin"] !== null) {
|
|
48200
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48151
48201
|
}
|
|
48152
|
-
if (
|
|
48153
|
-
|
|
48202
|
+
if (__o_12["behindOfOrigin"] !== null) {
|
|
48203
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48154
48204
|
}
|
|
48155
|
-
if (typeof
|
|
48156
|
-
|
|
48205
|
+
if (typeof __o_12["hasRemote"] !== "boolean") {
|
|
48206
|
+
__ui_9.push({ code: "invalid_type", expected: "boolean", input: __o_12["hasRemote"], path: ["payload"].concat("hasRemote") });
|
|
48157
48207
|
}
|
|
48158
|
-
if (
|
|
48159
|
-
|
|
48208
|
+
if (__o_12["remoteUrl"] !== null) {
|
|
48209
|
+
__ui_9.push({ code: "invalid_type", expected: "null", input: __o_12["remoteUrl"], path: ["payload"].concat("remoteUrl") });
|
|
48160
48210
|
}
|
|
48161
48211
|
}
|
|
48162
|
-
if (
|
|
48163
|
-
|
|
48164
|
-
|
|
48212
|
+
if (__ui_9.length === 0) {
|
|
48213
|
+
__u_7 = true;
|
|
48214
|
+
__o_6["payload"] = __uo_11;
|
|
48165
48215
|
}
|
|
48166
48216
|
else {
|
|
48167
48217
|
if (typeof __msg === "function") {
|
|
48168
|
-
for (var
|
|
48169
|
-
|
|
48170
|
-
|
|
48218
|
+
for (var __ufi_10 = 0; __ufi_10 < __ui_9.length; __ufi_10++) {
|
|
48219
|
+
__ui_9[__ufi_10].message = __msg(__ui_9[__ufi_10]);
|
|
48220
|
+
__ui_9[__ufi_10].input = undefined;
|
|
48171
48221
|
}
|
|
48172
48222
|
}
|
|
48173
|
-
|
|
48223
|
+
__ue_8.push(__ui_9);
|
|
48174
48224
|
}
|
|
48175
48225
|
}
|
|
48176
|
-
if (!
|
|
48177
|
-
var
|
|
48178
|
-
var
|
|
48179
|
-
if (typeof
|
|
48180
|
-
|
|
48226
|
+
if (!__u_7) {
|
|
48227
|
+
var __ui_16 = [];
|
|
48228
|
+
var __uo_18 = __o_6["payload"];
|
|
48229
|
+
if (typeof __uo_18 !== "object" || __uo_18 === null || Array.isArray(__uo_18)) {
|
|
48230
|
+
__ui_16.push({ code: "invalid_type", expected: "object", input: __uo_18, path: ["payload"] });
|
|
48181
48231
|
}
|
|
48182
48232
|
else {
|
|
48183
|
-
var
|
|
48184
|
-
if (typeof
|
|
48185
|
-
|
|
48233
|
+
var __o_19 = Object.assign({}, __uo_18);
|
|
48234
|
+
if (typeof __o_19["cwd"] !== "string") {
|
|
48235
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["cwd"], path: ["payload"].concat("cwd") });
|
|
48186
48236
|
}
|
|
48187
|
-
if (
|
|
48188
|
-
if (typeof
|
|
48189
|
-
|
|
48237
|
+
if (__o_19["error"] !== null) {
|
|
48238
|
+
if (typeof __o_19["error"] !== "object" || __o_19["error"] === null || Array.isArray(__o_19["error"])) {
|
|
48239
|
+
__ui_16.push({ code: "invalid_type", expected: "object", input: __o_19["error"], path: ["payload"].concat("error") });
|
|
48190
48240
|
}
|
|
48191
48241
|
else {
|
|
48192
|
-
var
|
|
48193
|
-
if (!
|
|
48194
|
-
|
|
48242
|
+
var __o_20 = __o_19["error"];
|
|
48243
|
+
if (!__set_enum_21.has(__o_20["code"])) {
|
|
48244
|
+
__ui_16.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_20["code"], path: ["payload"].concat("error").concat("code") });
|
|
48195
48245
|
}
|
|
48196
|
-
if (typeof
|
|
48197
|
-
|
|
48246
|
+
if (typeof __o_20["message"] !== "string") {
|
|
48247
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_20["message"], path: ["payload"].concat("error").concat("message") });
|
|
48198
48248
|
}
|
|
48199
48249
|
}
|
|
48200
48250
|
}
|
|
48201
|
-
if (typeof
|
|
48202
|
-
|
|
48251
|
+
if (typeof __o_19["requestId"] !== "string") {
|
|
48252
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["requestId"], path: ["payload"].concat("requestId") });
|
|
48203
48253
|
}
|
|
48204
|
-
if (
|
|
48205
|
-
if (
|
|
48206
|
-
if (typeof
|
|
48207
|
-
|
|
48254
|
+
if (__o_19["upstreamRef"] !== undefined) {
|
|
48255
|
+
if (__o_19["upstreamRef"] !== null) {
|
|
48256
|
+
if (typeof __o_19["upstreamRef"] !== "string") {
|
|
48257
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["upstreamRef"], path: ["payload"].concat("upstreamRef") });
|
|
48208
48258
|
}
|
|
48209
48259
|
}
|
|
48210
48260
|
}
|
|
48211
|
-
if (
|
|
48212
|
-
|
|
48261
|
+
if (__o_19["upstreamState"] !== undefined) {
|
|
48262
|
+
if (!__set_enum_22.has(__o_19["upstreamState"])) {
|
|
48263
|
+
__ui_16.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_19["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48264
|
+
}
|
|
48265
|
+
}
|
|
48266
|
+
if (__o_19["firstPushRemote"] !== undefined) {
|
|
48267
|
+
if (__o_19["firstPushRemote"] !== null) {
|
|
48268
|
+
if (typeof __o_19["firstPushRemote"] !== "string") {
|
|
48269
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["firstPushRemote"], path: ["payload"].concat("firstPushRemote") });
|
|
48270
|
+
}
|
|
48271
|
+
}
|
|
48213
48272
|
}
|
|
48214
|
-
if (
|
|
48215
|
-
|
|
48273
|
+
if (__o_19["isGit"] !== true) {
|
|
48274
|
+
__ui_16.push({ code: "invalid_value", values: [true], input: __o_19["isGit"], path: ["payload"].concat("isGit") });
|
|
48216
48275
|
}
|
|
48217
|
-
if (
|
|
48218
|
-
|
|
48276
|
+
if (__o_19["isMateoOwnedWorktree"] !== false) {
|
|
48277
|
+
__ui_16.push({ code: "invalid_value", values: [false], input: __o_19["isMateoOwnedWorktree"], path: ["payload"].concat("isMateoOwnedWorktree") });
|
|
48219
48278
|
}
|
|
48220
|
-
if (
|
|
48221
|
-
|
|
48279
|
+
if (typeof __o_19["repoRoot"] !== "string") {
|
|
48280
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["repoRoot"], path: ["payload"].concat("repoRoot") });
|
|
48281
|
+
}
|
|
48282
|
+
if (__o_19["mainRepoRoot"] === undefined) {
|
|
48283
|
+
__o_19["mainRepoRoot"] = __rf[0]._zod.def.defaultValue;
|
|
48222
48284
|
}
|
|
48223
48285
|
else {
|
|
48224
|
-
if (
|
|
48225
|
-
if (
|
|
48226
|
-
if (typeof
|
|
48227
|
-
|
|
48286
|
+
if (__o_19["mainRepoRoot"] !== undefined) {
|
|
48287
|
+
if (__o_19["mainRepoRoot"] !== null) {
|
|
48288
|
+
if (typeof __o_19["mainRepoRoot"] !== "string") {
|
|
48289
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["mainRepoRoot"], path: ["payload"].concat("mainRepoRoot") });
|
|
48228
48290
|
}
|
|
48229
48291
|
}
|
|
48230
48292
|
}
|
|
48231
48293
|
}
|
|
48232
|
-
if (
|
|
48233
|
-
if (typeof
|
|
48234
|
-
|
|
48294
|
+
if (__o_19["currentBranch"] !== null) {
|
|
48295
|
+
if (typeof __o_19["currentBranch"] !== "string") {
|
|
48296
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["currentBranch"], path: ["payload"].concat("currentBranch") });
|
|
48235
48297
|
}
|
|
48236
48298
|
}
|
|
48237
|
-
if (typeof
|
|
48238
|
-
|
|
48299
|
+
if (typeof __o_19["isDirty"] !== "boolean") {
|
|
48300
|
+
__ui_16.push({ code: "invalid_type", expected: "boolean", input: __o_19["isDirty"], path: ["payload"].concat("isDirty") });
|
|
48239
48301
|
}
|
|
48240
|
-
if (
|
|
48241
|
-
if (typeof
|
|
48242
|
-
|
|
48302
|
+
if (__o_19["baseRef"] !== null) {
|
|
48303
|
+
if (typeof __o_19["baseRef"] !== "string") {
|
|
48304
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["baseRef"], path: ["payload"].concat("baseRef") });
|
|
48243
48305
|
}
|
|
48244
48306
|
}
|
|
48245
|
-
if (
|
|
48246
|
-
if (typeof
|
|
48247
|
-
|
|
48307
|
+
if (__o_19["aheadBehind"] !== null) {
|
|
48308
|
+
if (typeof __o_19["aheadBehind"] !== "object" || __o_19["aheadBehind"] === null || Array.isArray(__o_19["aheadBehind"])) {
|
|
48309
|
+
__ui_16.push({ code: "invalid_type", expected: "object", input: __o_19["aheadBehind"], path: ["payload"].concat("aheadBehind") });
|
|
48248
48310
|
}
|
|
48249
48311
|
else {
|
|
48250
|
-
var
|
|
48251
|
-
if (typeof
|
|
48252
|
-
|
|
48312
|
+
var __o_23 = __o_19["aheadBehind"];
|
|
48313
|
+
if (typeof __o_23["ahead"] !== "number") {
|
|
48314
|
+
__ui_16.push({ code: "invalid_type", expected: "number", input: __o_23["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48253
48315
|
}
|
|
48254
|
-
else if (Number.isNaN(
|
|
48255
|
-
|
|
48316
|
+
else if (Number.isNaN(__o_23["ahead"])) {
|
|
48317
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_23["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48256
48318
|
}
|
|
48257
|
-
else if (!Number.isFinite(
|
|
48258
|
-
|
|
48319
|
+
else if (!Number.isFinite(__o_23["ahead"])) {
|
|
48320
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_23["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48259
48321
|
}
|
|
48260
|
-
if (typeof
|
|
48261
|
-
|
|
48322
|
+
if (typeof __o_23["behind"] !== "number") {
|
|
48323
|
+
__ui_16.push({ code: "invalid_type", expected: "number", input: __o_23["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48262
48324
|
}
|
|
48263
|
-
else if (Number.isNaN(
|
|
48264
|
-
|
|
48325
|
+
else if (Number.isNaN(__o_23["behind"])) {
|
|
48326
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_23["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48265
48327
|
}
|
|
48266
|
-
else if (!Number.isFinite(
|
|
48267
|
-
|
|
48328
|
+
else if (!Number.isFinite(__o_23["behind"])) {
|
|
48329
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_23["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48268
48330
|
}
|
|
48269
48331
|
}
|
|
48270
48332
|
}
|
|
48271
|
-
if (
|
|
48272
|
-
if (typeof
|
|
48273
|
-
|
|
48333
|
+
if (__o_19["aheadOfOrigin"] !== null) {
|
|
48334
|
+
if (typeof __o_19["aheadOfOrigin"] !== "number") {
|
|
48335
|
+
__ui_16.push({ code: "invalid_type", expected: "number", input: __o_19["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48274
48336
|
}
|
|
48275
|
-
else if (Number.isNaN(
|
|
48276
|
-
|
|
48337
|
+
else if (Number.isNaN(__o_19["aheadOfOrigin"])) {
|
|
48338
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_19["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48277
48339
|
}
|
|
48278
|
-
else if (!Number.isFinite(
|
|
48279
|
-
|
|
48340
|
+
else if (!Number.isFinite(__o_19["aheadOfOrigin"])) {
|
|
48341
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_19["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48280
48342
|
}
|
|
48281
48343
|
}
|
|
48282
|
-
if (
|
|
48283
|
-
if (typeof
|
|
48284
|
-
|
|
48344
|
+
if (__o_19["behindOfOrigin"] !== null) {
|
|
48345
|
+
if (typeof __o_19["behindOfOrigin"] !== "number") {
|
|
48346
|
+
__ui_16.push({ code: "invalid_type", expected: "number", input: __o_19["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48285
48347
|
}
|
|
48286
|
-
else if (Number.isNaN(
|
|
48287
|
-
|
|
48348
|
+
else if (Number.isNaN(__o_19["behindOfOrigin"])) {
|
|
48349
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_19["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48288
48350
|
}
|
|
48289
|
-
else if (!Number.isFinite(
|
|
48290
|
-
|
|
48351
|
+
else if (!Number.isFinite(__o_19["behindOfOrigin"])) {
|
|
48352
|
+
__ui_16.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_19["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48291
48353
|
}
|
|
48292
48354
|
}
|
|
48293
|
-
if (typeof
|
|
48294
|
-
|
|
48355
|
+
if (typeof __o_19["hasRemote"] !== "boolean") {
|
|
48356
|
+
__ui_16.push({ code: "invalid_type", expected: "boolean", input: __o_19["hasRemote"], path: ["payload"].concat("hasRemote") });
|
|
48295
48357
|
}
|
|
48296
|
-
if (
|
|
48297
|
-
if (typeof
|
|
48298
|
-
|
|
48358
|
+
if (__o_19["remoteUrl"] !== null) {
|
|
48359
|
+
if (typeof __o_19["remoteUrl"] !== "string") {
|
|
48360
|
+
__ui_16.push({ code: "invalid_type", expected: "string", input: __o_19["remoteUrl"], path: ["payload"].concat("remoteUrl") });
|
|
48299
48361
|
}
|
|
48300
48362
|
}
|
|
48301
|
-
|
|
48363
|
+
__uo_18 = __o_19;
|
|
48302
48364
|
}
|
|
48303
|
-
if (
|
|
48304
|
-
|
|
48305
|
-
|
|
48365
|
+
if (__ui_16.length === 0) {
|
|
48366
|
+
__u_7 = true;
|
|
48367
|
+
__o_6["payload"] = __uo_18;
|
|
48306
48368
|
}
|
|
48307
48369
|
else {
|
|
48308
48370
|
if (typeof __msg === "function") {
|
|
48309
|
-
for (var
|
|
48310
|
-
|
|
48311
|
-
|
|
48371
|
+
for (var __ufi_17 = 0; __ufi_17 < __ui_16.length; __ufi_17++) {
|
|
48372
|
+
__ui_16[__ufi_17].message = __msg(__ui_16[__ufi_17]);
|
|
48373
|
+
__ui_16[__ufi_17].input = undefined;
|
|
48312
48374
|
}
|
|
48313
48375
|
}
|
|
48314
|
-
|
|
48376
|
+
__ue_8.push(__ui_16);
|
|
48315
48377
|
}
|
|
48316
48378
|
}
|
|
48317
|
-
if (!
|
|
48318
|
-
var
|
|
48319
|
-
var
|
|
48320
|
-
if (typeof
|
|
48321
|
-
|
|
48379
|
+
if (!__u_7) {
|
|
48380
|
+
var __ui_24 = [];
|
|
48381
|
+
var __uo_26 = __o_6["payload"];
|
|
48382
|
+
if (typeof __uo_26 !== "object" || __uo_26 === null || Array.isArray(__uo_26)) {
|
|
48383
|
+
__ui_24.push({ code: "invalid_type", expected: "object", input: __uo_26, path: ["payload"] });
|
|
48322
48384
|
}
|
|
48323
48385
|
else {
|
|
48324
|
-
var
|
|
48325
|
-
if (typeof
|
|
48326
|
-
|
|
48386
|
+
var __o_27 = __uo_26;
|
|
48387
|
+
if (typeof __o_27["cwd"] !== "string") {
|
|
48388
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["cwd"], path: ["payload"].concat("cwd") });
|
|
48327
48389
|
}
|
|
48328
|
-
if (
|
|
48329
|
-
if (typeof
|
|
48330
|
-
|
|
48390
|
+
if (__o_27["error"] !== null) {
|
|
48391
|
+
if (typeof __o_27["error"] !== "object" || __o_27["error"] === null || Array.isArray(__o_27["error"])) {
|
|
48392
|
+
__ui_24.push({ code: "invalid_type", expected: "object", input: __o_27["error"], path: ["payload"].concat("error") });
|
|
48331
48393
|
}
|
|
48332
48394
|
else {
|
|
48333
|
-
var
|
|
48334
|
-
if (!
|
|
48335
|
-
|
|
48395
|
+
var __o_28 = __o_27["error"];
|
|
48396
|
+
if (!__set_enum_29.has(__o_28["code"])) {
|
|
48397
|
+
__ui_24.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_28["code"], path: ["payload"].concat("error").concat("code") });
|
|
48336
48398
|
}
|
|
48337
|
-
if (typeof
|
|
48338
|
-
|
|
48399
|
+
if (typeof __o_28["message"] !== "string") {
|
|
48400
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_28["message"], path: ["payload"].concat("error").concat("message") });
|
|
48401
|
+
}
|
|
48402
|
+
}
|
|
48403
|
+
}
|
|
48404
|
+
if (typeof __o_27["requestId"] !== "string") {
|
|
48405
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["requestId"], path: ["payload"].concat("requestId") });
|
|
48406
|
+
}
|
|
48407
|
+
if (__o_27["upstreamRef"] !== undefined) {
|
|
48408
|
+
if (__o_27["upstreamRef"] !== null) {
|
|
48409
|
+
if (typeof __o_27["upstreamRef"] !== "string") {
|
|
48410
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["upstreamRef"], path: ["payload"].concat("upstreamRef") });
|
|
48339
48411
|
}
|
|
48340
48412
|
}
|
|
48341
48413
|
}
|
|
48342
|
-
if (
|
|
48343
|
-
|
|
48414
|
+
if (__o_27["upstreamState"] !== undefined) {
|
|
48415
|
+
if (!__set_enum_30.has(__o_27["upstreamState"])) {
|
|
48416
|
+
__ui_24.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_27["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48417
|
+
}
|
|
48344
48418
|
}
|
|
48345
|
-
if (
|
|
48346
|
-
if (
|
|
48347
|
-
if (typeof
|
|
48348
|
-
|
|
48419
|
+
if (__o_27["firstPushRemote"] !== undefined) {
|
|
48420
|
+
if (__o_27["firstPushRemote"] !== null) {
|
|
48421
|
+
if (typeof __o_27["firstPushRemote"] !== "string") {
|
|
48422
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["firstPushRemote"], path: ["payload"].concat("firstPushRemote") });
|
|
48349
48423
|
}
|
|
48350
48424
|
}
|
|
48351
48425
|
}
|
|
48352
|
-
if (
|
|
48353
|
-
|
|
48426
|
+
if (__o_27["isGit"] !== true) {
|
|
48427
|
+
__ui_24.push({ code: "invalid_value", values: [true], input: __o_27["isGit"], path: ["payload"].concat("isGit") });
|
|
48354
48428
|
}
|
|
48355
|
-
if (
|
|
48356
|
-
|
|
48429
|
+
if (__o_27["isMateoOwnedWorktree"] !== true) {
|
|
48430
|
+
__ui_24.push({ code: "invalid_value", values: [true], input: __o_27["isMateoOwnedWorktree"], path: ["payload"].concat("isMateoOwnedWorktree") });
|
|
48357
48431
|
}
|
|
48358
|
-
if (typeof
|
|
48359
|
-
|
|
48432
|
+
if (typeof __o_27["repoRoot"] !== "string") {
|
|
48433
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["repoRoot"], path: ["payload"].concat("repoRoot") });
|
|
48360
48434
|
}
|
|
48361
|
-
if (typeof
|
|
48362
|
-
|
|
48435
|
+
if (typeof __o_27["mainRepoRoot"] !== "string") {
|
|
48436
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["mainRepoRoot"], path: ["payload"].concat("mainRepoRoot") });
|
|
48363
48437
|
}
|
|
48364
|
-
if (
|
|
48365
|
-
if (typeof
|
|
48366
|
-
|
|
48438
|
+
if (__o_27["currentBranch"] !== null) {
|
|
48439
|
+
if (typeof __o_27["currentBranch"] !== "string") {
|
|
48440
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["currentBranch"], path: ["payload"].concat("currentBranch") });
|
|
48367
48441
|
}
|
|
48368
48442
|
}
|
|
48369
|
-
if (typeof
|
|
48370
|
-
|
|
48443
|
+
if (typeof __o_27["isDirty"] !== "boolean") {
|
|
48444
|
+
__ui_24.push({ code: "invalid_type", expected: "boolean", input: __o_27["isDirty"], path: ["payload"].concat("isDirty") });
|
|
48371
48445
|
}
|
|
48372
|
-
if (typeof
|
|
48373
|
-
|
|
48446
|
+
if (typeof __o_27["baseRef"] !== "string") {
|
|
48447
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["baseRef"], path: ["payload"].concat("baseRef") });
|
|
48374
48448
|
}
|
|
48375
|
-
if (
|
|
48376
|
-
if (typeof
|
|
48377
|
-
|
|
48449
|
+
if (__o_27["aheadBehind"] !== null) {
|
|
48450
|
+
if (typeof __o_27["aheadBehind"] !== "object" || __o_27["aheadBehind"] === null || Array.isArray(__o_27["aheadBehind"])) {
|
|
48451
|
+
__ui_24.push({ code: "invalid_type", expected: "object", input: __o_27["aheadBehind"], path: ["payload"].concat("aheadBehind") });
|
|
48378
48452
|
}
|
|
48379
48453
|
else {
|
|
48380
|
-
var
|
|
48381
|
-
if (typeof
|
|
48382
|
-
|
|
48454
|
+
var __o_31 = __o_27["aheadBehind"];
|
|
48455
|
+
if (typeof __o_31["ahead"] !== "number") {
|
|
48456
|
+
__ui_24.push({ code: "invalid_type", expected: "number", input: __o_31["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48383
48457
|
}
|
|
48384
|
-
else if (Number.isNaN(
|
|
48385
|
-
|
|
48458
|
+
else if (Number.isNaN(__o_31["ahead"])) {
|
|
48459
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_31["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48386
48460
|
}
|
|
48387
|
-
else if (!Number.isFinite(
|
|
48388
|
-
|
|
48461
|
+
else if (!Number.isFinite(__o_31["ahead"])) {
|
|
48462
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_31["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48389
48463
|
}
|
|
48390
|
-
if (typeof
|
|
48391
|
-
|
|
48464
|
+
if (typeof __o_31["behind"] !== "number") {
|
|
48465
|
+
__ui_24.push({ code: "invalid_type", expected: "number", input: __o_31["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48392
48466
|
}
|
|
48393
|
-
else if (Number.isNaN(
|
|
48394
|
-
|
|
48467
|
+
else if (Number.isNaN(__o_31["behind"])) {
|
|
48468
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_31["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48395
48469
|
}
|
|
48396
|
-
else if (!Number.isFinite(
|
|
48397
|
-
|
|
48470
|
+
else if (!Number.isFinite(__o_31["behind"])) {
|
|
48471
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_31["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48398
48472
|
}
|
|
48399
48473
|
}
|
|
48400
48474
|
}
|
|
48401
|
-
if (
|
|
48402
|
-
if (typeof
|
|
48403
|
-
|
|
48475
|
+
if (__o_27["aheadOfOrigin"] !== null) {
|
|
48476
|
+
if (typeof __o_27["aheadOfOrigin"] !== "number") {
|
|
48477
|
+
__ui_24.push({ code: "invalid_type", expected: "number", input: __o_27["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48404
48478
|
}
|
|
48405
|
-
else if (Number.isNaN(
|
|
48406
|
-
|
|
48479
|
+
else if (Number.isNaN(__o_27["aheadOfOrigin"])) {
|
|
48480
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_27["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48407
48481
|
}
|
|
48408
|
-
else if (!Number.isFinite(
|
|
48409
|
-
|
|
48482
|
+
else if (!Number.isFinite(__o_27["aheadOfOrigin"])) {
|
|
48483
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_27["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48410
48484
|
}
|
|
48411
48485
|
}
|
|
48412
|
-
if (
|
|
48413
|
-
if (typeof
|
|
48414
|
-
|
|
48486
|
+
if (__o_27["behindOfOrigin"] !== null) {
|
|
48487
|
+
if (typeof __o_27["behindOfOrigin"] !== "number") {
|
|
48488
|
+
__ui_24.push({ code: "invalid_type", expected: "number", input: __o_27["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48415
48489
|
}
|
|
48416
|
-
else if (Number.isNaN(
|
|
48417
|
-
|
|
48490
|
+
else if (Number.isNaN(__o_27["behindOfOrigin"])) {
|
|
48491
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_27["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48418
48492
|
}
|
|
48419
|
-
else if (!Number.isFinite(
|
|
48420
|
-
|
|
48493
|
+
else if (!Number.isFinite(__o_27["behindOfOrigin"])) {
|
|
48494
|
+
__ui_24.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_27["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48421
48495
|
}
|
|
48422
48496
|
}
|
|
48423
|
-
if (typeof
|
|
48424
|
-
|
|
48497
|
+
if (typeof __o_27["hasRemote"] !== "boolean") {
|
|
48498
|
+
__ui_24.push({ code: "invalid_type", expected: "boolean", input: __o_27["hasRemote"], path: ["payload"].concat("hasRemote") });
|
|
48425
48499
|
}
|
|
48426
|
-
if (
|
|
48427
|
-
if (typeof
|
|
48428
|
-
|
|
48500
|
+
if (__o_27["remoteUrl"] !== null) {
|
|
48501
|
+
if (typeof __o_27["remoteUrl"] !== "string") {
|
|
48502
|
+
__ui_24.push({ code: "invalid_type", expected: "string", input: __o_27["remoteUrl"], path: ["payload"].concat("remoteUrl") });
|
|
48429
48503
|
}
|
|
48430
48504
|
}
|
|
48431
48505
|
}
|
|
48432
|
-
if (
|
|
48433
|
-
|
|
48434
|
-
|
|
48506
|
+
if (__ui_24.length === 0) {
|
|
48507
|
+
__u_7 = true;
|
|
48508
|
+
__o_6["payload"] = __uo_26;
|
|
48435
48509
|
}
|
|
48436
48510
|
else {
|
|
48437
48511
|
if (typeof __msg === "function") {
|
|
48438
|
-
for (var
|
|
48439
|
-
|
|
48440
|
-
|
|
48512
|
+
for (var __ufi_25 = 0; __ufi_25 < __ui_24.length; __ufi_25++) {
|
|
48513
|
+
__ui_24[__ufi_25].message = __msg(__ui_24[__ufi_25]);
|
|
48514
|
+
__ui_24[__ufi_25].input = undefined;
|
|
48441
48515
|
}
|
|
48442
48516
|
}
|
|
48443
|
-
|
|
48517
|
+
__ue_8.push(__ui_24);
|
|
48444
48518
|
}
|
|
48445
48519
|
}
|
|
48446
|
-
if (!
|
|
48447
|
-
_e.push({ code: "invalid_union", errors:
|
|
48520
|
+
if (!__u_7) {
|
|
48521
|
+
_e.push({ code: "invalid_union", errors: __ue_8, input: __o_6["payload"], path: ["payload"] });
|
|
48448
48522
|
}
|
|
48449
|
-
_d =
|
|
48523
|
+
_d = __o_6;
|
|
48450
48524
|
}
|
|
48451
48525
|
return __fin(_e, _d);
|
|
48452
48526
|
}
|
|
@@ -48455,27 +48529,33 @@ export const SessionOutboundMessage161 = /* @__PURE__ */ (() => {
|
|
|
48455
48529
|
export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
48456
48530
|
var __rf = [__src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.left._zod.def.options[1].shape["mainRepoRoot"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["forge"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["isDraft"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["mergeable"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["checks"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["mergeStateStatus"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["autoMergeRequest"]._zod.def.innerType._zod.def.innerType._zod.def.innerType.shape["enabledAt"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["autoMergeRequest"]._zod.def.innerType._zod.def.innerType._zod.def.innerType.shape["mergeMethod"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["autoMergeRequest"]._zod.def.innerType._zod.def.innerType._zod.def.innerType.shape["enabledBy"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["autoMergeRequest"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["viewerCanEnableAutoMerge"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["viewerCanDisableAutoMerge"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["viewerCanMergeAsAdmin"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["viewerCanUpdateBranch"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["repository"]._zod.def.innerType._zod.def.innerType.shape["autoMergeAllowed"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["repository"]._zod.def.innerType._zod.def.innerType.shape["mergeCommitAllowed"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["repository"]._zod.def.innerType._zod.def.innerType.shape["squashMergeAllowed"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["repository"]._zod.def.innerType._zod.def.innerType.shape["rebaseMergeAllowed"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["repository"]._zod.def.innerType._zod.def.innerType.shape["viewerDefaultMergeMethod"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["repository"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["isMergeQueueEnabled"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["status"]._zod.def.innerType.shape["github"]._zod.def.innerType.shape["isInMergeQueue"], __src_SessionOutboundMessage162.schema.shape["payload"]._zod.def.right.shape["prStatus"]._zod.def.innerType.shape["forge"]];
|
|
48457
48531
|
var __enumSet_0 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48458
|
-
var __enumSet_1 = new Set(["
|
|
48532
|
+
var __enumSet_1 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48459
48533
|
var __enumSet_2 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48460
|
-
|
|
48461
|
-
|
|
48462
|
-
|
|
48534
|
+
var __enumSet_3 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48535
|
+
var __enumSet_4 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48536
|
+
var __enumSet_5 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48537
|
+
function __af_8(a) { for (var __ae_7, i = 0; i < a.length; i++) {
|
|
48538
|
+
__ae_7 = a[i];
|
|
48539
|
+
if (!(typeof __ae_7 === "string")) {
|
|
48463
48540
|
return false;
|
|
48464
48541
|
}
|
|
48465
48542
|
} return true; }
|
|
48466
|
-
function
|
|
48467
|
-
|
|
48468
|
-
if (!(typeof
|
|
48543
|
+
function __af_9(a) { for (var __ae_6, i = 0; i < a.length; i++) {
|
|
48544
|
+
__ae_6 = a[i];
|
|
48545
|
+
if (!(typeof __ae_6 === "object" && __ae_6 !== null && !Array.isArray(__ae_6) && typeof __ae_6["name"] === "string" && typeof __ae_6["status"] === "string" && (__ae_6["url"] === null || (typeof __ae_6["url"] === "string")) && (__ae_6["workflow"] === undefined || (typeof __ae_6["workflow"] === "string")) && (__ae_6["duration"] === undefined || (typeof __ae_6["duration"] === "string")) && (__ae_6["checkRunId"] === undefined || (typeof __ae_6["checkRunId"] === "number" && !Number.isNaN(__ae_6["checkRunId"]) && Number.isFinite(__ae_6["checkRunId"]))) && (__ae_6["workflowRunId"] === undefined || (typeof __ae_6["workflowRunId"] === "number" && !Number.isNaN(__ae_6["workflowRunId"]) && Number.isFinite(__ae_6["workflowRunId"]))) && (__ae_6["traits"] === undefined || (Array.isArray(__ae_6["traits"]) && __af_8(__ae_6["traits"]))))) {
|
|
48469
48546
|
return false;
|
|
48470
48547
|
}
|
|
48471
48548
|
} return true; }
|
|
48472
|
-
var
|
|
48473
|
-
var
|
|
48474
|
-
var
|
|
48475
|
-
var
|
|
48476
|
-
var
|
|
48549
|
+
var __enumSet_10 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48550
|
+
var __set_enum_19 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48551
|
+
var __set_enum_20 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48552
|
+
var __set_enum_26 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48553
|
+
var __set_enum_27 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48554
|
+
var __set_enum_34 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48555
|
+
var __set_enum_35 = new Set(["tracked", "none", "gone", "unknown"]);
|
|
48556
|
+
var __set_enum_48 = new Set(["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"]);
|
|
48477
48557
|
function safeParse_SessionOutboundMessage162(input) {
|
|
48478
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_update" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_1.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string")))) && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && (input["payload"]["subscriptionId"] === undefined || (typeof input["payload"]["subscriptionId"] === "string")) && (input["payload"]["prStatus"] === undefined || (typeof input["payload"]["prStatus"] === "object" && input["payload"]["prStatus"] !== null && !Array.isArray(input["payload"]["prStatus"]) && typeof input["payload"]["prStatus"]["cwd"] === "string" && (input["payload"]["prStatus"]["status"] === null || (typeof input["payload"]["prStatus"]["status"] === "object" && input["payload"]["prStatus"]["status"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]) && (input["payload"]["prStatus"]["status"]["forge"] !== undefined && ((input["payload"]["prStatus"]["status"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["forge"] === "string")))) && (input["payload"]["prStatus"]["status"]["projectPath"] === undefined || (typeof input["payload"]["prStatus"]["status"]["projectPath"] === "string")) && (input["payload"]["prStatus"]["status"]["number"] === undefined || (typeof input["payload"]["prStatus"]["status"]["number"] === "number" && !Number.isNaN(input["payload"]["prStatus"]["status"]["number"]) && Number.isFinite(input["payload"]["prStatus"]["status"]["number"]))) && typeof input["payload"]["prStatus"]["status"]["url"] === "string" && typeof input["payload"]["prStatus"]["status"]["title"] === "string" && typeof input["payload"]["prStatus"]["status"]["state"] === "string" && typeof input["payload"]["prStatus"]["status"]["baseRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["headRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["isMerged"] === "boolean" && (input["payload"]["prStatus"]["status"]["isDraft"] !== undefined && ((input["payload"]["prStatus"]["status"]["isDraft"] === undefined || (typeof input["payload"]["prStatus"]["status"]["isDraft"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["mergeable"] !== undefined && ((input["payload"]["prStatus"]["status"]["mergeable"] === undefined || ((input["payload"]["prStatus"]["status"]["mergeable"] === "MERGEABLE" || input["payload"]["prStatus"]["status"]["mergeable"] === "CONFLICTING" || input["payload"]["prStatus"]["status"]["mergeable"] === "UNKNOWN"))))) && (input["payload"]["prStatus"]["status"]["checks"] !== undefined && ((input["payload"]["prStatus"]["status"]["checks"] === undefined || (Array.isArray(input["payload"]["prStatus"]["status"]["checks"]) && __af_6(input["payload"]["prStatus"]["status"]["checks"]))))) && (input["payload"]["prStatus"]["status"]["checksStatus"] === undefined || (typeof input["payload"]["prStatus"]["status"]["checksStatus"] === "string")) && (input["payload"]["prStatus"]["status"]["reviewDecision"] === undefined || ((input["payload"]["prStatus"]["status"]["reviewDecision"] === null || (typeof input["payload"]["prStatus"]["status"]["reviewDecision"] === "string")))) && (input["payload"]["prStatus"]["status"]["repoOwner"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoOwner"] === "string")) && (input["payload"]["prStatus"]["status"]["repoName"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoName"] === "string")) && (input["payload"]["prStatus"]["status"]["github"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"] === "object" && input["payload"]["prStatus"]["status"]["github"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]) && (input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === "object" && input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === "string")))))))))))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"] === "object" && input["payload"]["prStatus"]["status"]["github"]["repository"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["repository"]) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === "string")))))))))) && (input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === "boolean")))))) && (input["payload"]["prStatus"]["status"]["forgeSpecific"] === undefined || (true)))) && typeof input["payload"]["prStatus"]["githubFeaturesEnabled"] === "boolean" && (input["payload"]["prStatus"]["authState"] === undefined || (true)) && (input["payload"]["prStatus"]["forge"] !== undefined && ((input["payload"]["prStatus"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["forge"] === "string")))) && (input["payload"]["prStatus"]["error"] === null || (typeof input["payload"]["prStatus"]["error"] === "object" && input["payload"]["prStatus"]["error"] !== null && !Array.isArray(input["payload"]["prStatus"]["error"]) && __enumSet_7.has(input["payload"]["prStatus"]["error"]["code"]) && typeof input["payload"]["prStatus"]["error"]["message"] === "string")) && typeof input["payload"]["prStatus"]["requestId"] === "string"))) {
|
|
48558
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "checkout_status_update" && ((typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_0.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_1.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === false && input["payload"]["isMateoOwnedWorktree"] === false && input["payload"]["repoRoot"] === null && input["payload"]["currentBranch"] === null && input["payload"]["isDirty"] === null && input["payload"]["baseRef"] === null && input["payload"]["aheadBehind"] === null && input["payload"]["aheadOfOrigin"] === null && input["payload"]["behindOfOrigin"] === null && typeof input["payload"]["hasRemote"] === "boolean" && input["payload"]["remoteUrl"] === null) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_2.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_3.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === false && typeof input["payload"]["repoRoot"] === "string" && (input["payload"]["mainRepoRoot"] !== undefined && ((input["payload"]["mainRepoRoot"] === undefined || ((input["payload"]["mainRepoRoot"] === null || (typeof input["payload"]["mainRepoRoot"] === "string")))))) && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && (input["payload"]["baseRef"] === null || (typeof input["payload"]["baseRef"] === "string")) && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string"))) || (typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["cwd"] === "string" && (input["payload"]["error"] === null || (typeof input["payload"]["error"] === "object" && input["payload"]["error"] !== null && !Array.isArray(input["payload"]["error"]) && __enumSet_4.has(input["payload"]["error"]["code"]) && typeof input["payload"]["error"]["message"] === "string")) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["upstreamRef"] === undefined || ((input["payload"]["upstreamRef"] === null || (typeof input["payload"]["upstreamRef"] === "string")))) && (input["payload"]["upstreamState"] === undefined || (__enumSet_5.has(input["payload"]["upstreamState"]))) && (input["payload"]["firstPushRemote"] === undefined || ((input["payload"]["firstPushRemote"] === null || (typeof input["payload"]["firstPushRemote"] === "string")))) && input["payload"]["isGit"] === true && input["payload"]["isMateoOwnedWorktree"] === true && typeof input["payload"]["repoRoot"] === "string" && typeof input["payload"]["mainRepoRoot"] === "string" && (input["payload"]["currentBranch"] === null || (typeof input["payload"]["currentBranch"] === "string")) && typeof input["payload"]["isDirty"] === "boolean" && typeof input["payload"]["baseRef"] === "string" && (input["payload"]["aheadBehind"] === null || (typeof input["payload"]["aheadBehind"] === "object" && input["payload"]["aheadBehind"] !== null && !Array.isArray(input["payload"]["aheadBehind"]) && typeof input["payload"]["aheadBehind"]["ahead"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["ahead"]) && Number.isFinite(input["payload"]["aheadBehind"]["ahead"]) && typeof input["payload"]["aheadBehind"]["behind"] === "number" && !Number.isNaN(input["payload"]["aheadBehind"]["behind"]) && Number.isFinite(input["payload"]["aheadBehind"]["behind"]))) && (input["payload"]["aheadOfOrigin"] === null || (typeof input["payload"]["aheadOfOrigin"] === "number" && !Number.isNaN(input["payload"]["aheadOfOrigin"]) && Number.isFinite(input["payload"]["aheadOfOrigin"]))) && (input["payload"]["behindOfOrigin"] === null || (typeof input["payload"]["behindOfOrigin"] === "number" && !Number.isNaN(input["payload"]["behindOfOrigin"]) && Number.isFinite(input["payload"]["behindOfOrigin"]))) && typeof input["payload"]["hasRemote"] === "boolean" && (input["payload"]["remoteUrl"] === null || (typeof input["payload"]["remoteUrl"] === "string")))) && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && (input["payload"]["subscriptionId"] === undefined || (typeof input["payload"]["subscriptionId"] === "string")) && (input["payload"]["prStatus"] === undefined || (typeof input["payload"]["prStatus"] === "object" && input["payload"]["prStatus"] !== null && !Array.isArray(input["payload"]["prStatus"]) && typeof input["payload"]["prStatus"]["cwd"] === "string" && (input["payload"]["prStatus"]["status"] === null || (typeof input["payload"]["prStatus"]["status"] === "object" && input["payload"]["prStatus"]["status"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]) && (input["payload"]["prStatus"]["status"]["forge"] !== undefined && ((input["payload"]["prStatus"]["status"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["forge"] === "string")))) && (input["payload"]["prStatus"]["status"]["projectPath"] === undefined || (typeof input["payload"]["prStatus"]["status"]["projectPath"] === "string")) && (input["payload"]["prStatus"]["status"]["number"] === undefined || (typeof input["payload"]["prStatus"]["status"]["number"] === "number" && !Number.isNaN(input["payload"]["prStatus"]["status"]["number"]) && Number.isFinite(input["payload"]["prStatus"]["status"]["number"]))) && typeof input["payload"]["prStatus"]["status"]["url"] === "string" && typeof input["payload"]["prStatus"]["status"]["title"] === "string" && typeof input["payload"]["prStatus"]["status"]["state"] === "string" && typeof input["payload"]["prStatus"]["status"]["baseRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["headRefName"] === "string" && typeof input["payload"]["prStatus"]["status"]["isMerged"] === "boolean" && (input["payload"]["prStatus"]["status"]["isDraft"] !== undefined && ((input["payload"]["prStatus"]["status"]["isDraft"] === undefined || (typeof input["payload"]["prStatus"]["status"]["isDraft"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["mergeable"] !== undefined && ((input["payload"]["prStatus"]["status"]["mergeable"] === undefined || ((input["payload"]["prStatus"]["status"]["mergeable"] === "MERGEABLE" || input["payload"]["prStatus"]["status"]["mergeable"] === "CONFLICTING" || input["payload"]["prStatus"]["status"]["mergeable"] === "UNKNOWN"))))) && (input["payload"]["prStatus"]["status"]["checks"] !== undefined && ((input["payload"]["prStatus"]["status"]["checks"] === undefined || (Array.isArray(input["payload"]["prStatus"]["status"]["checks"]) && __af_9(input["payload"]["prStatus"]["status"]["checks"]))))) && (input["payload"]["prStatus"]["status"]["checksStatus"] === undefined || (typeof input["payload"]["prStatus"]["status"]["checksStatus"] === "string")) && (input["payload"]["prStatus"]["status"]["reviewDecision"] === undefined || ((input["payload"]["prStatus"]["status"]["reviewDecision"] === null || (typeof input["payload"]["prStatus"]["status"]["reviewDecision"] === "string")))) && (input["payload"]["prStatus"]["status"]["repoOwner"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoOwner"] === "string")) && (input["payload"]["prStatus"]["status"]["repoName"] === undefined || (typeof input["payload"]["prStatus"]["status"]["repoName"] === "string")) && (input["payload"]["prStatus"]["status"]["github"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"] === "object" && input["payload"]["prStatus"]["status"]["github"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]) && (input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["mergeStateStatus"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] === "object" && input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledAt"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["mergeMethod"] === "string")))))) && (input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["autoMergeRequest"]["enabledBy"] === "string")))))))))))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanEnableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanDisableAutoMerge"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanMergeAsAdmin"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["viewerCanUpdateBranch"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"] === "object" && input["payload"]["prStatus"]["status"]["github"]["repository"] !== null && !Array.isArray(input["payload"]["prStatus"]["status"]["github"]["repository"]) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["autoMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["mergeCommitAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["squashMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["rebaseMergeAllowed"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === undefined || ((input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === null || (typeof input["payload"]["prStatus"]["status"]["github"]["repository"]["viewerDefaultMergeMethod"] === "string")))))))))) && (input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isMergeQueueEnabled"] === "boolean")))) && (input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] !== undefined && ((input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === undefined || (typeof input["payload"]["prStatus"]["status"]["github"]["isInMergeQueue"] === "boolean")))))) && (input["payload"]["prStatus"]["status"]["forgeSpecific"] === undefined || (true)))) && typeof input["payload"]["prStatus"]["githubFeaturesEnabled"] === "boolean" && (input["payload"]["prStatus"]["authState"] === undefined || (true)) && (input["payload"]["prStatus"]["forge"] !== undefined && ((input["payload"]["prStatus"]["forge"] === undefined || (typeof input["payload"]["prStatus"]["forge"] === "string")))) && (input["payload"]["prStatus"]["error"] === null || (typeof input["payload"]["prStatus"]["error"] === "object" && input["payload"]["prStatus"]["error"] !== null && !Array.isArray(input["payload"]["prStatus"]["error"]) && __enumSet_10.has(input["payload"]["prStatus"]["error"]["code"]) && typeof input["payload"]["prStatus"]["error"]["message"] === "string")) && typeof input["payload"]["prStatus"]["requestId"] === "string"))) {
|
|
48479
48559
|
return { success: true, data: input };
|
|
48480
48560
|
}
|
|
48481
48561
|
var _e = [];
|
|
@@ -48484,527 +48564,563 @@ export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
|
48484
48564
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
48485
48565
|
}
|
|
48486
48566
|
else {
|
|
48487
|
-
var
|
|
48488
|
-
if (
|
|
48489
|
-
_e.push({ code: "invalid_value", values: ["checkout_status_update"], input:
|
|
48490
|
-
}
|
|
48491
|
-
var
|
|
48492
|
-
var
|
|
48493
|
-
if (!
|
|
48494
|
-
var
|
|
48495
|
-
var
|
|
48496
|
-
if (typeof
|
|
48497
|
-
|
|
48567
|
+
var __o_11 = Object.assign({}, _d);
|
|
48568
|
+
if (__o_11["type"] !== "checkout_status_update") {
|
|
48569
|
+
_e.push({ code: "invalid_value", values: ["checkout_status_update"], input: __o_11["type"], path: ["type"] });
|
|
48570
|
+
}
|
|
48571
|
+
var __u_12 = false;
|
|
48572
|
+
var __ue_13 = [];
|
|
48573
|
+
if (!__u_12) {
|
|
48574
|
+
var __ui_14 = [];
|
|
48575
|
+
var __uo_16 = __o_11["payload"];
|
|
48576
|
+
if (typeof __uo_16 !== "object" || __uo_16 === null || Array.isArray(__uo_16)) {
|
|
48577
|
+
__ui_14.push({ code: "invalid_type", expected: "object", input: __uo_16, path: ["payload"] });
|
|
48498
48578
|
}
|
|
48499
48579
|
else {
|
|
48500
|
-
var
|
|
48501
|
-
if (typeof
|
|
48502
|
-
|
|
48580
|
+
var __o_17 = __uo_16;
|
|
48581
|
+
if (typeof __o_17["cwd"] !== "string") {
|
|
48582
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_17["cwd"], path: ["payload"].concat("cwd") });
|
|
48503
48583
|
}
|
|
48504
|
-
if (
|
|
48505
|
-
if (typeof
|
|
48506
|
-
|
|
48584
|
+
if (__o_17["error"] !== null) {
|
|
48585
|
+
if (typeof __o_17["error"] !== "object" || __o_17["error"] === null || Array.isArray(__o_17["error"])) {
|
|
48586
|
+
__ui_14.push({ code: "invalid_type", expected: "object", input: __o_17["error"], path: ["payload"].concat("error") });
|
|
48507
48587
|
}
|
|
48508
48588
|
else {
|
|
48509
|
-
var
|
|
48510
|
-
if (!
|
|
48511
|
-
|
|
48589
|
+
var __o_18 = __o_17["error"];
|
|
48590
|
+
if (!__set_enum_19.has(__o_18["code"])) {
|
|
48591
|
+
__ui_14.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_18["code"], path: ["payload"].concat("error").concat("code") });
|
|
48512
48592
|
}
|
|
48513
|
-
if (typeof
|
|
48514
|
-
|
|
48593
|
+
if (typeof __o_18["message"] !== "string") {
|
|
48594
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_18["message"], path: ["payload"].concat("error").concat("message") });
|
|
48595
|
+
}
|
|
48596
|
+
}
|
|
48597
|
+
}
|
|
48598
|
+
if (typeof __o_17["requestId"] !== "string") {
|
|
48599
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_17["requestId"], path: ["payload"].concat("requestId") });
|
|
48600
|
+
}
|
|
48601
|
+
if (__o_17["upstreamRef"] !== undefined) {
|
|
48602
|
+
if (__o_17["upstreamRef"] !== null) {
|
|
48603
|
+
if (typeof __o_17["upstreamRef"] !== "string") {
|
|
48604
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_17["upstreamRef"], path: ["payload"].concat("upstreamRef") });
|
|
48515
48605
|
}
|
|
48516
48606
|
}
|
|
48517
48607
|
}
|
|
48518
|
-
if (
|
|
48519
|
-
|
|
48608
|
+
if (__o_17["upstreamState"] !== undefined) {
|
|
48609
|
+
if (!__set_enum_20.has(__o_17["upstreamState"])) {
|
|
48610
|
+
__ui_14.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_17["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48611
|
+
}
|
|
48520
48612
|
}
|
|
48521
|
-
if (
|
|
48522
|
-
if (
|
|
48523
|
-
if (typeof
|
|
48524
|
-
|
|
48613
|
+
if (__o_17["firstPushRemote"] !== undefined) {
|
|
48614
|
+
if (__o_17["firstPushRemote"] !== null) {
|
|
48615
|
+
if (typeof __o_17["firstPushRemote"] !== "string") {
|
|
48616
|
+
__ui_14.push({ code: "invalid_type", expected: "string", input: __o_17["firstPushRemote"], path: ["payload"].concat("firstPushRemote") });
|
|
48525
48617
|
}
|
|
48526
48618
|
}
|
|
48527
48619
|
}
|
|
48528
|
-
if (
|
|
48529
|
-
|
|
48620
|
+
if (__o_17["isGit"] !== false) {
|
|
48621
|
+
__ui_14.push({ code: "invalid_value", values: [false], input: __o_17["isGit"], path: ["payload"].concat("isGit") });
|
|
48530
48622
|
}
|
|
48531
|
-
if (
|
|
48532
|
-
|
|
48623
|
+
if (__o_17["isMateoOwnedWorktree"] !== false) {
|
|
48624
|
+
__ui_14.push({ code: "invalid_value", values: [false], input: __o_17["isMateoOwnedWorktree"], path: ["payload"].concat("isMateoOwnedWorktree") });
|
|
48533
48625
|
}
|
|
48534
|
-
if (
|
|
48535
|
-
|
|
48626
|
+
if (__o_17["repoRoot"] !== null) {
|
|
48627
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["repoRoot"], path: ["payload"].concat("repoRoot") });
|
|
48536
48628
|
}
|
|
48537
|
-
if (
|
|
48538
|
-
|
|
48629
|
+
if (__o_17["currentBranch"] !== null) {
|
|
48630
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["currentBranch"], path: ["payload"].concat("currentBranch") });
|
|
48539
48631
|
}
|
|
48540
|
-
if (
|
|
48541
|
-
|
|
48632
|
+
if (__o_17["isDirty"] !== null) {
|
|
48633
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["isDirty"], path: ["payload"].concat("isDirty") });
|
|
48542
48634
|
}
|
|
48543
|
-
if (
|
|
48544
|
-
|
|
48635
|
+
if (__o_17["baseRef"] !== null) {
|
|
48636
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["baseRef"], path: ["payload"].concat("baseRef") });
|
|
48545
48637
|
}
|
|
48546
|
-
if (
|
|
48547
|
-
|
|
48638
|
+
if (__o_17["aheadBehind"] !== null) {
|
|
48639
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["aheadBehind"], path: ["payload"].concat("aheadBehind") });
|
|
48548
48640
|
}
|
|
48549
|
-
if (
|
|
48550
|
-
|
|
48641
|
+
if (__o_17["aheadOfOrigin"] !== null) {
|
|
48642
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48551
48643
|
}
|
|
48552
|
-
if (
|
|
48553
|
-
|
|
48644
|
+
if (__o_17["behindOfOrigin"] !== null) {
|
|
48645
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48554
48646
|
}
|
|
48555
|
-
if (typeof
|
|
48556
|
-
|
|
48647
|
+
if (typeof __o_17["hasRemote"] !== "boolean") {
|
|
48648
|
+
__ui_14.push({ code: "invalid_type", expected: "boolean", input: __o_17["hasRemote"], path: ["payload"].concat("hasRemote") });
|
|
48557
48649
|
}
|
|
48558
|
-
if (
|
|
48559
|
-
|
|
48650
|
+
if (__o_17["remoteUrl"] !== null) {
|
|
48651
|
+
__ui_14.push({ code: "invalid_type", expected: "null", input: __o_17["remoteUrl"], path: ["payload"].concat("remoteUrl") });
|
|
48560
48652
|
}
|
|
48561
48653
|
}
|
|
48562
|
-
if (
|
|
48563
|
-
|
|
48564
|
-
|
|
48654
|
+
if (__ui_14.length === 0) {
|
|
48655
|
+
__u_12 = true;
|
|
48656
|
+
__o_11["payload"] = __uo_16;
|
|
48565
48657
|
}
|
|
48566
48658
|
else {
|
|
48567
48659
|
if (typeof __msg === "function") {
|
|
48568
|
-
for (var
|
|
48569
|
-
|
|
48570
|
-
|
|
48660
|
+
for (var __ufi_15 = 0; __ufi_15 < __ui_14.length; __ufi_15++) {
|
|
48661
|
+
__ui_14[__ufi_15].message = __msg(__ui_14[__ufi_15]);
|
|
48662
|
+
__ui_14[__ufi_15].input = undefined;
|
|
48571
48663
|
}
|
|
48572
48664
|
}
|
|
48573
|
-
|
|
48665
|
+
__ue_13.push(__ui_14);
|
|
48574
48666
|
}
|
|
48575
48667
|
}
|
|
48576
|
-
if (!
|
|
48577
|
-
var
|
|
48578
|
-
var
|
|
48579
|
-
if (typeof
|
|
48580
|
-
|
|
48668
|
+
if (!__u_12) {
|
|
48669
|
+
var __ui_21 = [];
|
|
48670
|
+
var __uo_23 = __o_11["payload"];
|
|
48671
|
+
if (typeof __uo_23 !== "object" || __uo_23 === null || Array.isArray(__uo_23)) {
|
|
48672
|
+
__ui_21.push({ code: "invalid_type", expected: "object", input: __uo_23, path: ["payload"] });
|
|
48581
48673
|
}
|
|
48582
48674
|
else {
|
|
48583
|
-
var
|
|
48584
|
-
if (typeof
|
|
48585
|
-
|
|
48675
|
+
var __o_24 = Object.assign({}, __uo_23);
|
|
48676
|
+
if (typeof __o_24["cwd"] !== "string") {
|
|
48677
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["cwd"], path: ["payload"].concat("cwd") });
|
|
48586
48678
|
}
|
|
48587
|
-
if (
|
|
48588
|
-
if (typeof
|
|
48589
|
-
|
|
48679
|
+
if (__o_24["error"] !== null) {
|
|
48680
|
+
if (typeof __o_24["error"] !== "object" || __o_24["error"] === null || Array.isArray(__o_24["error"])) {
|
|
48681
|
+
__ui_21.push({ code: "invalid_type", expected: "object", input: __o_24["error"], path: ["payload"].concat("error") });
|
|
48590
48682
|
}
|
|
48591
48683
|
else {
|
|
48592
|
-
var
|
|
48593
|
-
if (!
|
|
48594
|
-
|
|
48684
|
+
var __o_25 = __o_24["error"];
|
|
48685
|
+
if (!__set_enum_26.has(__o_25["code"])) {
|
|
48686
|
+
__ui_21.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_25["code"], path: ["payload"].concat("error").concat("code") });
|
|
48687
|
+
}
|
|
48688
|
+
if (typeof __o_25["message"] !== "string") {
|
|
48689
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_25["message"], path: ["payload"].concat("error").concat("message") });
|
|
48595
48690
|
}
|
|
48596
|
-
|
|
48597
|
-
|
|
48691
|
+
}
|
|
48692
|
+
}
|
|
48693
|
+
if (typeof __o_24["requestId"] !== "string") {
|
|
48694
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["requestId"], path: ["payload"].concat("requestId") });
|
|
48695
|
+
}
|
|
48696
|
+
if (__o_24["upstreamRef"] !== undefined) {
|
|
48697
|
+
if (__o_24["upstreamRef"] !== null) {
|
|
48698
|
+
if (typeof __o_24["upstreamRef"] !== "string") {
|
|
48699
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["upstreamRef"], path: ["payload"].concat("upstreamRef") });
|
|
48598
48700
|
}
|
|
48599
48701
|
}
|
|
48600
48702
|
}
|
|
48601
|
-
if (
|
|
48602
|
-
|
|
48703
|
+
if (__o_24["upstreamState"] !== undefined) {
|
|
48704
|
+
if (!__set_enum_27.has(__o_24["upstreamState"])) {
|
|
48705
|
+
__ui_21.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_24["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48706
|
+
}
|
|
48603
48707
|
}
|
|
48604
|
-
if (
|
|
48605
|
-
if (
|
|
48606
|
-
if (typeof
|
|
48607
|
-
|
|
48708
|
+
if (__o_24["firstPushRemote"] !== undefined) {
|
|
48709
|
+
if (__o_24["firstPushRemote"] !== null) {
|
|
48710
|
+
if (typeof __o_24["firstPushRemote"] !== "string") {
|
|
48711
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["firstPushRemote"], path: ["payload"].concat("firstPushRemote") });
|
|
48608
48712
|
}
|
|
48609
48713
|
}
|
|
48610
48714
|
}
|
|
48611
|
-
if (
|
|
48612
|
-
|
|
48715
|
+
if (__o_24["isGit"] !== true) {
|
|
48716
|
+
__ui_21.push({ code: "invalid_value", values: [true], input: __o_24["isGit"], path: ["payload"].concat("isGit") });
|
|
48613
48717
|
}
|
|
48614
|
-
if (
|
|
48615
|
-
|
|
48718
|
+
if (__o_24["isMateoOwnedWorktree"] !== false) {
|
|
48719
|
+
__ui_21.push({ code: "invalid_value", values: [false], input: __o_24["isMateoOwnedWorktree"], path: ["payload"].concat("isMateoOwnedWorktree") });
|
|
48616
48720
|
}
|
|
48617
|
-
if (typeof
|
|
48618
|
-
|
|
48721
|
+
if (typeof __o_24["repoRoot"] !== "string") {
|
|
48722
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["repoRoot"], path: ["payload"].concat("repoRoot") });
|
|
48619
48723
|
}
|
|
48620
|
-
if (
|
|
48621
|
-
|
|
48724
|
+
if (__o_24["mainRepoRoot"] === undefined) {
|
|
48725
|
+
__o_24["mainRepoRoot"] = __rf[0]._zod.def.defaultValue;
|
|
48622
48726
|
}
|
|
48623
48727
|
else {
|
|
48624
|
-
if (
|
|
48625
|
-
if (
|
|
48626
|
-
if (typeof
|
|
48627
|
-
|
|
48728
|
+
if (__o_24["mainRepoRoot"] !== undefined) {
|
|
48729
|
+
if (__o_24["mainRepoRoot"] !== null) {
|
|
48730
|
+
if (typeof __o_24["mainRepoRoot"] !== "string") {
|
|
48731
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["mainRepoRoot"], path: ["payload"].concat("mainRepoRoot") });
|
|
48628
48732
|
}
|
|
48629
48733
|
}
|
|
48630
48734
|
}
|
|
48631
48735
|
}
|
|
48632
|
-
if (
|
|
48633
|
-
if (typeof
|
|
48634
|
-
|
|
48736
|
+
if (__o_24["currentBranch"] !== null) {
|
|
48737
|
+
if (typeof __o_24["currentBranch"] !== "string") {
|
|
48738
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["currentBranch"], path: ["payload"].concat("currentBranch") });
|
|
48635
48739
|
}
|
|
48636
48740
|
}
|
|
48637
|
-
if (typeof
|
|
48638
|
-
|
|
48741
|
+
if (typeof __o_24["isDirty"] !== "boolean") {
|
|
48742
|
+
__ui_21.push({ code: "invalid_type", expected: "boolean", input: __o_24["isDirty"], path: ["payload"].concat("isDirty") });
|
|
48639
48743
|
}
|
|
48640
|
-
if (
|
|
48641
|
-
if (typeof
|
|
48642
|
-
|
|
48744
|
+
if (__o_24["baseRef"] !== null) {
|
|
48745
|
+
if (typeof __o_24["baseRef"] !== "string") {
|
|
48746
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["baseRef"], path: ["payload"].concat("baseRef") });
|
|
48643
48747
|
}
|
|
48644
48748
|
}
|
|
48645
|
-
if (
|
|
48646
|
-
if (typeof
|
|
48647
|
-
|
|
48749
|
+
if (__o_24["aheadBehind"] !== null) {
|
|
48750
|
+
if (typeof __o_24["aheadBehind"] !== "object" || __o_24["aheadBehind"] === null || Array.isArray(__o_24["aheadBehind"])) {
|
|
48751
|
+
__ui_21.push({ code: "invalid_type", expected: "object", input: __o_24["aheadBehind"], path: ["payload"].concat("aheadBehind") });
|
|
48648
48752
|
}
|
|
48649
48753
|
else {
|
|
48650
|
-
var
|
|
48651
|
-
if (typeof
|
|
48652
|
-
|
|
48754
|
+
var __o_28 = __o_24["aheadBehind"];
|
|
48755
|
+
if (typeof __o_28["ahead"] !== "number") {
|
|
48756
|
+
__ui_21.push({ code: "invalid_type", expected: "number", input: __o_28["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48653
48757
|
}
|
|
48654
|
-
else if (Number.isNaN(
|
|
48655
|
-
|
|
48758
|
+
else if (Number.isNaN(__o_28["ahead"])) {
|
|
48759
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_28["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48656
48760
|
}
|
|
48657
|
-
else if (!Number.isFinite(
|
|
48658
|
-
|
|
48761
|
+
else if (!Number.isFinite(__o_28["ahead"])) {
|
|
48762
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_28["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48659
48763
|
}
|
|
48660
|
-
if (typeof
|
|
48661
|
-
|
|
48764
|
+
if (typeof __o_28["behind"] !== "number") {
|
|
48765
|
+
__ui_21.push({ code: "invalid_type", expected: "number", input: __o_28["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48662
48766
|
}
|
|
48663
|
-
else if (Number.isNaN(
|
|
48664
|
-
|
|
48767
|
+
else if (Number.isNaN(__o_28["behind"])) {
|
|
48768
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_28["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48665
48769
|
}
|
|
48666
|
-
else if (!Number.isFinite(
|
|
48667
|
-
|
|
48770
|
+
else if (!Number.isFinite(__o_28["behind"])) {
|
|
48771
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_28["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48668
48772
|
}
|
|
48669
48773
|
}
|
|
48670
48774
|
}
|
|
48671
|
-
if (
|
|
48672
|
-
if (typeof
|
|
48673
|
-
|
|
48775
|
+
if (__o_24["aheadOfOrigin"] !== null) {
|
|
48776
|
+
if (typeof __o_24["aheadOfOrigin"] !== "number") {
|
|
48777
|
+
__ui_21.push({ code: "invalid_type", expected: "number", input: __o_24["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48674
48778
|
}
|
|
48675
|
-
else if (Number.isNaN(
|
|
48676
|
-
|
|
48779
|
+
else if (Number.isNaN(__o_24["aheadOfOrigin"])) {
|
|
48780
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_24["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48677
48781
|
}
|
|
48678
|
-
else if (!Number.isFinite(
|
|
48679
|
-
|
|
48782
|
+
else if (!Number.isFinite(__o_24["aheadOfOrigin"])) {
|
|
48783
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_24["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48680
48784
|
}
|
|
48681
48785
|
}
|
|
48682
|
-
if (
|
|
48683
|
-
if (typeof
|
|
48684
|
-
|
|
48786
|
+
if (__o_24["behindOfOrigin"] !== null) {
|
|
48787
|
+
if (typeof __o_24["behindOfOrigin"] !== "number") {
|
|
48788
|
+
__ui_21.push({ code: "invalid_type", expected: "number", input: __o_24["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48685
48789
|
}
|
|
48686
|
-
else if (Number.isNaN(
|
|
48687
|
-
|
|
48790
|
+
else if (Number.isNaN(__o_24["behindOfOrigin"])) {
|
|
48791
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_24["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48688
48792
|
}
|
|
48689
|
-
else if (!Number.isFinite(
|
|
48690
|
-
|
|
48793
|
+
else if (!Number.isFinite(__o_24["behindOfOrigin"])) {
|
|
48794
|
+
__ui_21.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_24["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48691
48795
|
}
|
|
48692
48796
|
}
|
|
48693
|
-
if (typeof
|
|
48694
|
-
|
|
48797
|
+
if (typeof __o_24["hasRemote"] !== "boolean") {
|
|
48798
|
+
__ui_21.push({ code: "invalid_type", expected: "boolean", input: __o_24["hasRemote"], path: ["payload"].concat("hasRemote") });
|
|
48695
48799
|
}
|
|
48696
|
-
if (
|
|
48697
|
-
if (typeof
|
|
48698
|
-
|
|
48800
|
+
if (__o_24["remoteUrl"] !== null) {
|
|
48801
|
+
if (typeof __o_24["remoteUrl"] !== "string") {
|
|
48802
|
+
__ui_21.push({ code: "invalid_type", expected: "string", input: __o_24["remoteUrl"], path: ["payload"].concat("remoteUrl") });
|
|
48699
48803
|
}
|
|
48700
48804
|
}
|
|
48701
|
-
|
|
48805
|
+
__uo_23 = __o_24;
|
|
48702
48806
|
}
|
|
48703
|
-
if (
|
|
48704
|
-
|
|
48705
|
-
|
|
48807
|
+
if (__ui_21.length === 0) {
|
|
48808
|
+
__u_12 = true;
|
|
48809
|
+
__o_11["payload"] = __uo_23;
|
|
48706
48810
|
}
|
|
48707
48811
|
else {
|
|
48708
48812
|
if (typeof __msg === "function") {
|
|
48709
|
-
for (var
|
|
48710
|
-
|
|
48711
|
-
|
|
48813
|
+
for (var __ufi_22 = 0; __ufi_22 < __ui_21.length; __ufi_22++) {
|
|
48814
|
+
__ui_21[__ufi_22].message = __msg(__ui_21[__ufi_22]);
|
|
48815
|
+
__ui_21[__ufi_22].input = undefined;
|
|
48712
48816
|
}
|
|
48713
48817
|
}
|
|
48714
|
-
|
|
48818
|
+
__ue_13.push(__ui_21);
|
|
48715
48819
|
}
|
|
48716
48820
|
}
|
|
48717
|
-
if (!
|
|
48718
|
-
var
|
|
48719
|
-
var
|
|
48720
|
-
if (typeof
|
|
48721
|
-
|
|
48821
|
+
if (!__u_12) {
|
|
48822
|
+
var __ui_29 = [];
|
|
48823
|
+
var __uo_31 = __o_11["payload"];
|
|
48824
|
+
if (typeof __uo_31 !== "object" || __uo_31 === null || Array.isArray(__uo_31)) {
|
|
48825
|
+
__ui_29.push({ code: "invalid_type", expected: "object", input: __uo_31, path: ["payload"] });
|
|
48722
48826
|
}
|
|
48723
48827
|
else {
|
|
48724
|
-
var
|
|
48725
|
-
if (typeof
|
|
48726
|
-
|
|
48828
|
+
var __o_32 = __uo_31;
|
|
48829
|
+
if (typeof __o_32["cwd"] !== "string") {
|
|
48830
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["cwd"], path: ["payload"].concat("cwd") });
|
|
48727
48831
|
}
|
|
48728
|
-
if (
|
|
48729
|
-
if (typeof
|
|
48730
|
-
|
|
48832
|
+
if (__o_32["error"] !== null) {
|
|
48833
|
+
if (typeof __o_32["error"] !== "object" || __o_32["error"] === null || Array.isArray(__o_32["error"])) {
|
|
48834
|
+
__ui_29.push({ code: "invalid_type", expected: "object", input: __o_32["error"], path: ["payload"].concat("error") });
|
|
48731
48835
|
}
|
|
48732
48836
|
else {
|
|
48733
|
-
var
|
|
48734
|
-
if (!
|
|
48735
|
-
|
|
48837
|
+
var __o_33 = __o_32["error"];
|
|
48838
|
+
if (!__set_enum_34.has(__o_33["code"])) {
|
|
48839
|
+
__ui_29.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_33["code"], path: ["payload"].concat("error").concat("code") });
|
|
48736
48840
|
}
|
|
48737
|
-
if (typeof
|
|
48738
|
-
|
|
48841
|
+
if (typeof __o_33["message"] !== "string") {
|
|
48842
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_33["message"], path: ["payload"].concat("error").concat("message") });
|
|
48739
48843
|
}
|
|
48740
48844
|
}
|
|
48741
48845
|
}
|
|
48742
|
-
if (typeof
|
|
48743
|
-
|
|
48846
|
+
if (typeof __o_32["requestId"] !== "string") {
|
|
48847
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["requestId"], path: ["payload"].concat("requestId") });
|
|
48744
48848
|
}
|
|
48745
|
-
if (
|
|
48746
|
-
if (
|
|
48747
|
-
if (typeof
|
|
48748
|
-
|
|
48849
|
+
if (__o_32["upstreamRef"] !== undefined) {
|
|
48850
|
+
if (__o_32["upstreamRef"] !== null) {
|
|
48851
|
+
if (typeof __o_32["upstreamRef"] !== "string") {
|
|
48852
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["upstreamRef"], path: ["payload"].concat("upstreamRef") });
|
|
48749
48853
|
}
|
|
48750
48854
|
}
|
|
48751
48855
|
}
|
|
48752
|
-
if (
|
|
48753
|
-
|
|
48856
|
+
if (__o_32["upstreamState"] !== undefined) {
|
|
48857
|
+
if (!__set_enum_35.has(__o_32["upstreamState"])) {
|
|
48858
|
+
__ui_29.push({ code: "invalid_value", values: ["tracked", "none", "gone", "unknown"], input: __o_32["upstreamState"], path: ["payload"].concat("upstreamState") });
|
|
48859
|
+
}
|
|
48754
48860
|
}
|
|
48755
|
-
if (
|
|
48756
|
-
|
|
48861
|
+
if (__o_32["firstPushRemote"] !== undefined) {
|
|
48862
|
+
if (__o_32["firstPushRemote"] !== null) {
|
|
48863
|
+
if (typeof __o_32["firstPushRemote"] !== "string") {
|
|
48864
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["firstPushRemote"], path: ["payload"].concat("firstPushRemote") });
|
|
48865
|
+
}
|
|
48866
|
+
}
|
|
48757
48867
|
}
|
|
48758
|
-
if (
|
|
48759
|
-
|
|
48868
|
+
if (__o_32["isGit"] !== true) {
|
|
48869
|
+
__ui_29.push({ code: "invalid_value", values: [true], input: __o_32["isGit"], path: ["payload"].concat("isGit") });
|
|
48760
48870
|
}
|
|
48761
|
-
if (
|
|
48762
|
-
|
|
48871
|
+
if (__o_32["isMateoOwnedWorktree"] !== true) {
|
|
48872
|
+
__ui_29.push({ code: "invalid_value", values: [true], input: __o_32["isMateoOwnedWorktree"], path: ["payload"].concat("isMateoOwnedWorktree") });
|
|
48763
48873
|
}
|
|
48764
|
-
if (
|
|
48765
|
-
|
|
48766
|
-
|
|
48874
|
+
if (typeof __o_32["repoRoot"] !== "string") {
|
|
48875
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["repoRoot"], path: ["payload"].concat("repoRoot") });
|
|
48876
|
+
}
|
|
48877
|
+
if (typeof __o_32["mainRepoRoot"] !== "string") {
|
|
48878
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["mainRepoRoot"], path: ["payload"].concat("mainRepoRoot") });
|
|
48879
|
+
}
|
|
48880
|
+
if (__o_32["currentBranch"] !== null) {
|
|
48881
|
+
if (typeof __o_32["currentBranch"] !== "string") {
|
|
48882
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["currentBranch"], path: ["payload"].concat("currentBranch") });
|
|
48767
48883
|
}
|
|
48768
48884
|
}
|
|
48769
|
-
if (typeof
|
|
48770
|
-
|
|
48885
|
+
if (typeof __o_32["isDirty"] !== "boolean") {
|
|
48886
|
+
__ui_29.push({ code: "invalid_type", expected: "boolean", input: __o_32["isDirty"], path: ["payload"].concat("isDirty") });
|
|
48771
48887
|
}
|
|
48772
|
-
if (typeof
|
|
48773
|
-
|
|
48888
|
+
if (typeof __o_32["baseRef"] !== "string") {
|
|
48889
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["baseRef"], path: ["payload"].concat("baseRef") });
|
|
48774
48890
|
}
|
|
48775
|
-
if (
|
|
48776
|
-
if (typeof
|
|
48777
|
-
|
|
48891
|
+
if (__o_32["aheadBehind"] !== null) {
|
|
48892
|
+
if (typeof __o_32["aheadBehind"] !== "object" || __o_32["aheadBehind"] === null || Array.isArray(__o_32["aheadBehind"])) {
|
|
48893
|
+
__ui_29.push({ code: "invalid_type", expected: "object", input: __o_32["aheadBehind"], path: ["payload"].concat("aheadBehind") });
|
|
48778
48894
|
}
|
|
48779
48895
|
else {
|
|
48780
|
-
var
|
|
48781
|
-
if (typeof
|
|
48782
|
-
|
|
48896
|
+
var __o_36 = __o_32["aheadBehind"];
|
|
48897
|
+
if (typeof __o_36["ahead"] !== "number") {
|
|
48898
|
+
__ui_29.push({ code: "invalid_type", expected: "number", input: __o_36["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48783
48899
|
}
|
|
48784
|
-
else if (Number.isNaN(
|
|
48785
|
-
|
|
48900
|
+
else if (Number.isNaN(__o_36["ahead"])) {
|
|
48901
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_36["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48786
48902
|
}
|
|
48787
|
-
else if (!Number.isFinite(
|
|
48788
|
-
|
|
48903
|
+
else if (!Number.isFinite(__o_36["ahead"])) {
|
|
48904
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_36["ahead"], path: ["payload"].concat("aheadBehind").concat("ahead") });
|
|
48789
48905
|
}
|
|
48790
|
-
if (typeof
|
|
48791
|
-
|
|
48906
|
+
if (typeof __o_36["behind"] !== "number") {
|
|
48907
|
+
__ui_29.push({ code: "invalid_type", expected: "number", input: __o_36["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48792
48908
|
}
|
|
48793
|
-
else if (Number.isNaN(
|
|
48794
|
-
|
|
48909
|
+
else if (Number.isNaN(__o_36["behind"])) {
|
|
48910
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_36["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48795
48911
|
}
|
|
48796
|
-
else if (!Number.isFinite(
|
|
48797
|
-
|
|
48912
|
+
else if (!Number.isFinite(__o_36["behind"])) {
|
|
48913
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_36["behind"], path: ["payload"].concat("aheadBehind").concat("behind") });
|
|
48798
48914
|
}
|
|
48799
48915
|
}
|
|
48800
48916
|
}
|
|
48801
|
-
if (
|
|
48802
|
-
if (typeof
|
|
48803
|
-
|
|
48917
|
+
if (__o_32["aheadOfOrigin"] !== null) {
|
|
48918
|
+
if (typeof __o_32["aheadOfOrigin"] !== "number") {
|
|
48919
|
+
__ui_29.push({ code: "invalid_type", expected: "number", input: __o_32["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48804
48920
|
}
|
|
48805
|
-
else if (Number.isNaN(
|
|
48806
|
-
|
|
48921
|
+
else if (Number.isNaN(__o_32["aheadOfOrigin"])) {
|
|
48922
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_32["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48807
48923
|
}
|
|
48808
|
-
else if (!Number.isFinite(
|
|
48809
|
-
|
|
48924
|
+
else if (!Number.isFinite(__o_32["aheadOfOrigin"])) {
|
|
48925
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_32["aheadOfOrigin"], path: ["payload"].concat("aheadOfOrigin") });
|
|
48810
48926
|
}
|
|
48811
48927
|
}
|
|
48812
|
-
if (
|
|
48813
|
-
if (typeof
|
|
48814
|
-
|
|
48928
|
+
if (__o_32["behindOfOrigin"] !== null) {
|
|
48929
|
+
if (typeof __o_32["behindOfOrigin"] !== "number") {
|
|
48930
|
+
__ui_29.push({ code: "invalid_type", expected: "number", input: __o_32["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48815
48931
|
}
|
|
48816
|
-
else if (Number.isNaN(
|
|
48817
|
-
|
|
48932
|
+
else if (Number.isNaN(__o_32["behindOfOrigin"])) {
|
|
48933
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_32["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48818
48934
|
}
|
|
48819
|
-
else if (!Number.isFinite(
|
|
48820
|
-
|
|
48935
|
+
else if (!Number.isFinite(__o_32["behindOfOrigin"])) {
|
|
48936
|
+
__ui_29.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_32["behindOfOrigin"], path: ["payload"].concat("behindOfOrigin") });
|
|
48821
48937
|
}
|
|
48822
48938
|
}
|
|
48823
|
-
if (typeof
|
|
48824
|
-
|
|
48939
|
+
if (typeof __o_32["hasRemote"] !== "boolean") {
|
|
48940
|
+
__ui_29.push({ code: "invalid_type", expected: "boolean", input: __o_32["hasRemote"], path: ["payload"].concat("hasRemote") });
|
|
48825
48941
|
}
|
|
48826
|
-
if (
|
|
48827
|
-
if (typeof
|
|
48828
|
-
|
|
48942
|
+
if (__o_32["remoteUrl"] !== null) {
|
|
48943
|
+
if (typeof __o_32["remoteUrl"] !== "string") {
|
|
48944
|
+
__ui_29.push({ code: "invalid_type", expected: "string", input: __o_32["remoteUrl"], path: ["payload"].concat("remoteUrl") });
|
|
48829
48945
|
}
|
|
48830
48946
|
}
|
|
48831
48947
|
}
|
|
48832
|
-
if (
|
|
48833
|
-
|
|
48834
|
-
|
|
48948
|
+
if (__ui_29.length === 0) {
|
|
48949
|
+
__u_12 = true;
|
|
48950
|
+
__o_11["payload"] = __uo_31;
|
|
48835
48951
|
}
|
|
48836
48952
|
else {
|
|
48837
48953
|
if (typeof __msg === "function") {
|
|
48838
|
-
for (var
|
|
48839
|
-
|
|
48840
|
-
|
|
48954
|
+
for (var __ufi_30 = 0; __ufi_30 < __ui_29.length; __ufi_30++) {
|
|
48955
|
+
__ui_29[__ufi_30].message = __msg(__ui_29[__ufi_30]);
|
|
48956
|
+
__ui_29[__ufi_30].input = undefined;
|
|
48841
48957
|
}
|
|
48842
48958
|
}
|
|
48843
|
-
|
|
48959
|
+
__ue_13.push(__ui_29);
|
|
48844
48960
|
}
|
|
48845
48961
|
}
|
|
48846
|
-
if (!
|
|
48847
|
-
_e.push({ code: "invalid_union", errors:
|
|
48962
|
+
if (!__u_12) {
|
|
48963
|
+
_e.push({ code: "invalid_union", errors: __ue_13, input: __o_11["payload"], path: ["payload"] });
|
|
48848
48964
|
}
|
|
48849
|
-
if (typeof
|
|
48850
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
48965
|
+
if (typeof __o_11["payload"] !== "object" || __o_11["payload"] === null || Array.isArray(__o_11["payload"])) {
|
|
48966
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_11["payload"], path: ["payload"] });
|
|
48851
48967
|
}
|
|
48852
48968
|
else {
|
|
48853
|
-
var
|
|
48854
|
-
if (
|
|
48855
|
-
if (typeof
|
|
48856
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
48969
|
+
var __o_37 = Object.assign({}, __o_11["payload"]);
|
|
48970
|
+
if (__o_37["subscriptionId"] !== undefined) {
|
|
48971
|
+
if (typeof __o_37["subscriptionId"] !== "string") {
|
|
48972
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_37["subscriptionId"], path: ["payload"].concat("subscriptionId") });
|
|
48857
48973
|
}
|
|
48858
48974
|
}
|
|
48859
|
-
if (
|
|
48860
|
-
if (typeof
|
|
48861
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
48975
|
+
if (__o_37["prStatus"] !== undefined) {
|
|
48976
|
+
if (typeof __o_37["prStatus"] !== "object" || __o_37["prStatus"] === null || Array.isArray(__o_37["prStatus"])) {
|
|
48977
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_37["prStatus"], path: ["payload"].concat("prStatus") });
|
|
48862
48978
|
}
|
|
48863
48979
|
else {
|
|
48864
|
-
var
|
|
48865
|
-
if (typeof
|
|
48866
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
48980
|
+
var __o_38 = Object.assign({}, __o_37["prStatus"]);
|
|
48981
|
+
if (typeof __o_38["cwd"] !== "string") {
|
|
48982
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["cwd"], path: ["payload"].concat("prStatus").concat("cwd") });
|
|
48867
48983
|
}
|
|
48868
|
-
if (
|
|
48869
|
-
if (typeof
|
|
48870
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
48984
|
+
if (__o_38["status"] !== null) {
|
|
48985
|
+
if (typeof __o_38["status"] !== "object" || __o_38["status"] === null || Array.isArray(__o_38["status"])) {
|
|
48986
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_38["status"], path: ["payload"].concat("prStatus").concat("status") });
|
|
48871
48987
|
}
|
|
48872
48988
|
else {
|
|
48873
|
-
var
|
|
48874
|
-
if (
|
|
48875
|
-
|
|
48989
|
+
var __o_39 = Object.assign({}, __o_38["status"]);
|
|
48990
|
+
if (__o_39["forge"] === undefined) {
|
|
48991
|
+
__o_39["forge"] = __rf[1]._zod.def.defaultValue;
|
|
48876
48992
|
}
|
|
48877
48993
|
else {
|
|
48878
|
-
if (
|
|
48879
|
-
if (typeof
|
|
48880
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
48994
|
+
if (__o_39["forge"] !== undefined) {
|
|
48995
|
+
if (typeof __o_39["forge"] !== "string") {
|
|
48996
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["forge"], path: ["payload"].concat("prStatus").concat("status").concat("forge") });
|
|
48881
48997
|
}
|
|
48882
48998
|
}
|
|
48883
48999
|
}
|
|
48884
|
-
if (
|
|
48885
|
-
if (typeof
|
|
48886
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49000
|
+
if (__o_39["projectPath"] !== undefined) {
|
|
49001
|
+
if (typeof __o_39["projectPath"] !== "string") {
|
|
49002
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["projectPath"], path: ["payload"].concat("prStatus").concat("status").concat("projectPath") });
|
|
48887
49003
|
}
|
|
48888
49004
|
}
|
|
48889
|
-
if (
|
|
48890
|
-
if (typeof
|
|
48891
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
49005
|
+
if (__o_39["number"] !== undefined) {
|
|
49006
|
+
if (typeof __o_39["number"] !== "number") {
|
|
49007
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_39["number"], path: ["payload"].concat("prStatus").concat("status").concat("number") });
|
|
48892
49008
|
}
|
|
48893
|
-
else if (Number.isNaN(
|
|
48894
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
49009
|
+
else if (Number.isNaN(__o_39["number"])) {
|
|
49010
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_39["number"], path: ["payload"].concat("prStatus").concat("status").concat("number") });
|
|
48895
49011
|
}
|
|
48896
|
-
else if (!Number.isFinite(
|
|
48897
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
49012
|
+
else if (!Number.isFinite(__o_39["number"])) {
|
|
49013
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_39["number"], path: ["payload"].concat("prStatus").concat("status").concat("number") });
|
|
48898
49014
|
}
|
|
48899
49015
|
}
|
|
48900
|
-
if (typeof
|
|
48901
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49016
|
+
if (typeof __o_39["url"] !== "string") {
|
|
49017
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["url"], path: ["payload"].concat("prStatus").concat("status").concat("url") });
|
|
48902
49018
|
}
|
|
48903
|
-
if (typeof
|
|
48904
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49019
|
+
if (typeof __o_39["title"] !== "string") {
|
|
49020
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["title"], path: ["payload"].concat("prStatus").concat("status").concat("title") });
|
|
48905
49021
|
}
|
|
48906
|
-
if (typeof
|
|
48907
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49022
|
+
if (typeof __o_39["state"] !== "string") {
|
|
49023
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["state"], path: ["payload"].concat("prStatus").concat("status").concat("state") });
|
|
48908
49024
|
}
|
|
48909
|
-
if (typeof
|
|
48910
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49025
|
+
if (typeof __o_39["baseRefName"] !== "string") {
|
|
49026
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["baseRefName"], path: ["payload"].concat("prStatus").concat("status").concat("baseRefName") });
|
|
48911
49027
|
}
|
|
48912
|
-
if (typeof
|
|
48913
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49028
|
+
if (typeof __o_39["headRefName"] !== "string") {
|
|
49029
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["headRefName"], path: ["payload"].concat("prStatus").concat("status").concat("headRefName") });
|
|
48914
49030
|
}
|
|
48915
|
-
if (typeof
|
|
48916
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49031
|
+
if (typeof __o_39["isMerged"] !== "boolean") {
|
|
49032
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_39["isMerged"], path: ["payload"].concat("prStatus").concat("status").concat("isMerged") });
|
|
48917
49033
|
}
|
|
48918
|
-
if (
|
|
48919
|
-
|
|
49034
|
+
if (__o_39["isDraft"] === undefined) {
|
|
49035
|
+
__o_39["isDraft"] = __rf[2]._zod.def.defaultValue;
|
|
48920
49036
|
}
|
|
48921
49037
|
else {
|
|
48922
|
-
if (
|
|
48923
|
-
if (typeof
|
|
48924
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49038
|
+
if (__o_39["isDraft"] !== undefined) {
|
|
49039
|
+
if (typeof __o_39["isDraft"] !== "boolean") {
|
|
49040
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_39["isDraft"], path: ["payload"].concat("prStatus").concat("status").concat("isDraft") });
|
|
48925
49041
|
}
|
|
48926
49042
|
}
|
|
48927
49043
|
}
|
|
48928
|
-
if (
|
|
48929
|
-
|
|
49044
|
+
if (__o_39["mergeable"] === undefined) {
|
|
49045
|
+
__o_39["mergeable"] = __rf[3]._zod.def.defaultValue;
|
|
48930
49046
|
}
|
|
48931
49047
|
else {
|
|
48932
|
-
if (
|
|
48933
|
-
var
|
|
48934
|
-
if (
|
|
48935
|
-
|
|
49048
|
+
if (__o_39["mergeable"] !== undefined) {
|
|
49049
|
+
var __ci_40 = [];
|
|
49050
|
+
if (__o_39["mergeable"] !== "MERGEABLE" && __o_39["mergeable"] !== "CONFLICTING" && __o_39["mergeable"] !== "UNKNOWN") {
|
|
49051
|
+
__ci_40.push({ code: "invalid_value", values: ["MERGEABLE", "CONFLICTING", "UNKNOWN"], input: __o_39["mergeable"], path: ["payload"].concat("prStatus").concat("status").concat("mergeable") });
|
|
48936
49052
|
}
|
|
48937
|
-
if (
|
|
48938
|
-
|
|
49053
|
+
if (__ci_40.length > 0) {
|
|
49054
|
+
__o_39["mergeable"] = "UNKNOWN";
|
|
48939
49055
|
}
|
|
48940
49056
|
}
|
|
48941
49057
|
}
|
|
48942
|
-
if (
|
|
48943
|
-
|
|
49058
|
+
if (__o_39["checks"] === undefined) {
|
|
49059
|
+
__o_39["checks"] = __rf[4]._zod.def.defaultValue;
|
|
48944
49060
|
}
|
|
48945
49061
|
else {
|
|
48946
|
-
if (
|
|
48947
|
-
if (!Array.isArray(
|
|
48948
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
49062
|
+
if (__o_39["checks"] !== undefined) {
|
|
49063
|
+
if (!Array.isArray(__o_39["checks"])) {
|
|
49064
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_39["checks"], path: ["payload"].concat("prStatus").concat("status").concat("checks") });
|
|
48949
49065
|
}
|
|
48950
49066
|
else {
|
|
48951
|
-
for (var
|
|
48952
|
-
if (typeof
|
|
48953
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
49067
|
+
for (var __i_41 = 0; __i_41 < __o_39["checks"].length; __i_41++) {
|
|
49068
|
+
if (typeof __o_39["checks"][__i_41] !== "object" || __o_39["checks"][__i_41] === null || Array.isArray(__o_39["checks"][__i_41])) {
|
|
49069
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_39["checks"][__i_41], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41) });
|
|
48954
49070
|
}
|
|
48955
49071
|
else {
|
|
48956
|
-
var
|
|
48957
|
-
if (typeof
|
|
48958
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49072
|
+
var __o_42 = __o_39["checks"][__i_41];
|
|
49073
|
+
if (typeof __o_42["name"] !== "string") {
|
|
49074
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_42["name"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("name") });
|
|
48959
49075
|
}
|
|
48960
|
-
if (typeof
|
|
48961
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49076
|
+
if (typeof __o_42["status"] !== "string") {
|
|
49077
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_42["status"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("status") });
|
|
48962
49078
|
}
|
|
48963
|
-
if (
|
|
48964
|
-
if (typeof
|
|
48965
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49079
|
+
if (__o_42["url"] !== null) {
|
|
49080
|
+
if (typeof __o_42["url"] !== "string") {
|
|
49081
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_42["url"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("url") });
|
|
48966
49082
|
}
|
|
48967
49083
|
}
|
|
48968
|
-
if (
|
|
48969
|
-
if (typeof
|
|
48970
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49084
|
+
if (__o_42["workflow"] !== undefined) {
|
|
49085
|
+
if (typeof __o_42["workflow"] !== "string") {
|
|
49086
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_42["workflow"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("workflow") });
|
|
48971
49087
|
}
|
|
48972
49088
|
}
|
|
48973
|
-
if (
|
|
48974
|
-
if (typeof
|
|
48975
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49089
|
+
if (__o_42["duration"] !== undefined) {
|
|
49090
|
+
if (typeof __o_42["duration"] !== "string") {
|
|
49091
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_42["duration"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("duration") });
|
|
48976
49092
|
}
|
|
48977
49093
|
}
|
|
48978
|
-
if (
|
|
48979
|
-
if (typeof
|
|
48980
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
49094
|
+
if (__o_42["checkRunId"] !== undefined) {
|
|
49095
|
+
if (typeof __o_42["checkRunId"] !== "number") {
|
|
49096
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_42["checkRunId"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("checkRunId") });
|
|
48981
49097
|
}
|
|
48982
|
-
else if (Number.isNaN(
|
|
48983
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
49098
|
+
else if (Number.isNaN(__o_42["checkRunId"])) {
|
|
49099
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_42["checkRunId"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("checkRunId") });
|
|
48984
49100
|
}
|
|
48985
|
-
else if (!Number.isFinite(
|
|
48986
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
49101
|
+
else if (!Number.isFinite(__o_42["checkRunId"])) {
|
|
49102
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_42["checkRunId"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("checkRunId") });
|
|
48987
49103
|
}
|
|
48988
49104
|
}
|
|
48989
|
-
if (
|
|
48990
|
-
if (typeof
|
|
48991
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
49105
|
+
if (__o_42["workflowRunId"] !== undefined) {
|
|
49106
|
+
if (typeof __o_42["workflowRunId"] !== "number") {
|
|
49107
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_42["workflowRunId"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("workflowRunId") });
|
|
48992
49108
|
}
|
|
48993
|
-
else if (Number.isNaN(
|
|
48994
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
49109
|
+
else if (Number.isNaN(__o_42["workflowRunId"])) {
|
|
49110
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_42["workflowRunId"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("workflowRunId") });
|
|
48995
49111
|
}
|
|
48996
|
-
else if (!Number.isFinite(
|
|
48997
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
49112
|
+
else if (!Number.isFinite(__o_42["workflowRunId"])) {
|
|
49113
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_42["workflowRunId"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("workflowRunId") });
|
|
48998
49114
|
}
|
|
48999
49115
|
}
|
|
49000
|
-
if (
|
|
49001
|
-
if (!Array.isArray(
|
|
49002
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
49116
|
+
if (__o_42["traits"] !== undefined) {
|
|
49117
|
+
if (!Array.isArray(__o_42["traits"])) {
|
|
49118
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_42["traits"], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("traits") });
|
|
49003
49119
|
}
|
|
49004
49120
|
else {
|
|
49005
|
-
for (var
|
|
49006
|
-
if (typeof
|
|
49007
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49121
|
+
for (var __i_43 = 0; __i_43 < __o_42["traits"].length; __i_43++) {
|
|
49122
|
+
if (typeof __o_42["traits"][__i_43] !== "string") {
|
|
49123
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_42["traits"][__i_43], path: ["payload"].concat("prStatus").concat("status").concat("checks").concat(__i_41).concat("traits").concat(__i_43) });
|
|
49008
49124
|
}
|
|
49009
49125
|
}
|
|
49010
49126
|
}
|
|
@@ -49014,268 +49130,268 @@ export const SessionOutboundMessage162 = /* @__PURE__ */ (() => {
|
|
|
49014
49130
|
}
|
|
49015
49131
|
}
|
|
49016
49132
|
}
|
|
49017
|
-
if (
|
|
49018
|
-
if (typeof
|
|
49019
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49133
|
+
if (__o_39["checksStatus"] !== undefined) {
|
|
49134
|
+
if (typeof __o_39["checksStatus"] !== "string") {
|
|
49135
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["checksStatus"], path: ["payload"].concat("prStatus").concat("status").concat("checksStatus") });
|
|
49020
49136
|
}
|
|
49021
49137
|
}
|
|
49022
|
-
if (
|
|
49023
|
-
if (
|
|
49024
|
-
if (typeof
|
|
49025
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49138
|
+
if (__o_39["reviewDecision"] !== undefined) {
|
|
49139
|
+
if (__o_39["reviewDecision"] !== null) {
|
|
49140
|
+
if (typeof __o_39["reviewDecision"] !== "string") {
|
|
49141
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["reviewDecision"], path: ["payload"].concat("prStatus").concat("status").concat("reviewDecision") });
|
|
49026
49142
|
}
|
|
49027
49143
|
}
|
|
49028
49144
|
}
|
|
49029
|
-
if (
|
|
49030
|
-
if (typeof
|
|
49031
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49145
|
+
if (__o_39["repoOwner"] !== undefined) {
|
|
49146
|
+
if (typeof __o_39["repoOwner"] !== "string") {
|
|
49147
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["repoOwner"], path: ["payload"].concat("prStatus").concat("status").concat("repoOwner") });
|
|
49032
49148
|
}
|
|
49033
49149
|
}
|
|
49034
|
-
if (
|
|
49035
|
-
if (typeof
|
|
49036
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49150
|
+
if (__o_39["repoName"] !== undefined) {
|
|
49151
|
+
if (typeof __o_39["repoName"] !== "string") {
|
|
49152
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["repoName"], path: ["payload"].concat("prStatus").concat("status").concat("repoName") });
|
|
49037
49153
|
}
|
|
49038
49154
|
}
|
|
49039
|
-
if (
|
|
49040
|
-
if (typeof
|
|
49041
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
49155
|
+
if (__o_39["github"] !== undefined) {
|
|
49156
|
+
if (typeof __o_39["github"] !== "object" || __o_39["github"] === null || Array.isArray(__o_39["github"])) {
|
|
49157
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_39["github"], path: ["payload"].concat("prStatus").concat("status").concat("github") });
|
|
49042
49158
|
}
|
|
49043
49159
|
else {
|
|
49044
|
-
var
|
|
49045
|
-
if (
|
|
49046
|
-
|
|
49160
|
+
var __o_44 = Object.assign({}, __o_39["github"]);
|
|
49161
|
+
if (__o_44["mergeStateStatus"] === undefined) {
|
|
49162
|
+
__o_44["mergeStateStatus"] = __rf[5]._zod.def.defaultValue;
|
|
49047
49163
|
}
|
|
49048
49164
|
else {
|
|
49049
|
-
if (
|
|
49050
|
-
if (
|
|
49051
|
-
if (typeof
|
|
49052
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49165
|
+
if (__o_44["mergeStateStatus"] !== undefined) {
|
|
49166
|
+
if (__o_44["mergeStateStatus"] !== null) {
|
|
49167
|
+
if (typeof __o_44["mergeStateStatus"] !== "string") {
|
|
49168
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_44["mergeStateStatus"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("mergeStateStatus") });
|
|
49053
49169
|
}
|
|
49054
49170
|
}
|
|
49055
49171
|
}
|
|
49056
49172
|
}
|
|
49057
|
-
if (
|
|
49058
|
-
|
|
49173
|
+
if (__o_44["autoMergeRequest"] === undefined) {
|
|
49174
|
+
__o_44["autoMergeRequest"] = __rf[9]._zod.def.defaultValue;
|
|
49059
49175
|
}
|
|
49060
49176
|
else {
|
|
49061
|
-
if (
|
|
49062
|
-
if (
|
|
49063
|
-
if (typeof
|
|
49064
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
49177
|
+
if (__o_44["autoMergeRequest"] !== undefined) {
|
|
49178
|
+
if (__o_44["autoMergeRequest"] !== null) {
|
|
49179
|
+
if (typeof __o_44["autoMergeRequest"] !== "object" || __o_44["autoMergeRequest"] === null || Array.isArray(__o_44["autoMergeRequest"])) {
|
|
49180
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_44["autoMergeRequest"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("autoMergeRequest") });
|
|
49065
49181
|
}
|
|
49066
49182
|
else {
|
|
49067
|
-
var
|
|
49068
|
-
if (
|
|
49069
|
-
|
|
49183
|
+
var __o_45 = Object.assign({}, __o_44["autoMergeRequest"]);
|
|
49184
|
+
if (__o_45["enabledAt"] === undefined) {
|
|
49185
|
+
__o_45["enabledAt"] = __rf[6]._zod.def.defaultValue;
|
|
49070
49186
|
}
|
|
49071
49187
|
else {
|
|
49072
|
-
if (
|
|
49073
|
-
if (
|
|
49074
|
-
if (typeof
|
|
49075
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49188
|
+
if (__o_45["enabledAt"] !== undefined) {
|
|
49189
|
+
if (__o_45["enabledAt"] !== null) {
|
|
49190
|
+
if (typeof __o_45["enabledAt"] !== "string") {
|
|
49191
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_45["enabledAt"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("autoMergeRequest").concat("enabledAt") });
|
|
49076
49192
|
}
|
|
49077
49193
|
}
|
|
49078
49194
|
}
|
|
49079
49195
|
}
|
|
49080
|
-
if (
|
|
49081
|
-
|
|
49196
|
+
if (__o_45["mergeMethod"] === undefined) {
|
|
49197
|
+
__o_45["mergeMethod"] = __rf[7]._zod.def.defaultValue;
|
|
49082
49198
|
}
|
|
49083
49199
|
else {
|
|
49084
|
-
if (
|
|
49085
|
-
if (
|
|
49086
|
-
if (typeof
|
|
49087
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49200
|
+
if (__o_45["mergeMethod"] !== undefined) {
|
|
49201
|
+
if (__o_45["mergeMethod"] !== null) {
|
|
49202
|
+
if (typeof __o_45["mergeMethod"] !== "string") {
|
|
49203
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_45["mergeMethod"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("autoMergeRequest").concat("mergeMethod") });
|
|
49088
49204
|
}
|
|
49089
49205
|
}
|
|
49090
49206
|
}
|
|
49091
49207
|
}
|
|
49092
|
-
if (
|
|
49093
|
-
|
|
49208
|
+
if (__o_45["enabledBy"] === undefined) {
|
|
49209
|
+
__o_45["enabledBy"] = __rf[8]._zod.def.defaultValue;
|
|
49094
49210
|
}
|
|
49095
49211
|
else {
|
|
49096
|
-
if (
|
|
49097
|
-
if (
|
|
49098
|
-
if (typeof
|
|
49099
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49212
|
+
if (__o_45["enabledBy"] !== undefined) {
|
|
49213
|
+
if (__o_45["enabledBy"] !== null) {
|
|
49214
|
+
if (typeof __o_45["enabledBy"] !== "string") {
|
|
49215
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_45["enabledBy"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("autoMergeRequest").concat("enabledBy") });
|
|
49100
49216
|
}
|
|
49101
49217
|
}
|
|
49102
49218
|
}
|
|
49103
49219
|
}
|
|
49104
|
-
|
|
49220
|
+
__o_44["autoMergeRequest"] = __o_45;
|
|
49105
49221
|
}
|
|
49106
49222
|
}
|
|
49107
49223
|
}
|
|
49108
49224
|
}
|
|
49109
|
-
if (
|
|
49110
|
-
|
|
49225
|
+
if (__o_44["viewerCanEnableAutoMerge"] === undefined) {
|
|
49226
|
+
__o_44["viewerCanEnableAutoMerge"] = __rf[10]._zod.def.defaultValue;
|
|
49111
49227
|
}
|
|
49112
49228
|
else {
|
|
49113
|
-
if (
|
|
49114
|
-
if (typeof
|
|
49115
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49229
|
+
if (__o_44["viewerCanEnableAutoMerge"] !== undefined) {
|
|
49230
|
+
if (typeof __o_44["viewerCanEnableAutoMerge"] !== "boolean") {
|
|
49231
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_44["viewerCanEnableAutoMerge"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("viewerCanEnableAutoMerge") });
|
|
49116
49232
|
}
|
|
49117
49233
|
}
|
|
49118
49234
|
}
|
|
49119
|
-
if (
|
|
49120
|
-
|
|
49235
|
+
if (__o_44["viewerCanDisableAutoMerge"] === undefined) {
|
|
49236
|
+
__o_44["viewerCanDisableAutoMerge"] = __rf[11]._zod.def.defaultValue;
|
|
49121
49237
|
}
|
|
49122
49238
|
else {
|
|
49123
|
-
if (
|
|
49124
|
-
if (typeof
|
|
49125
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49239
|
+
if (__o_44["viewerCanDisableAutoMerge"] !== undefined) {
|
|
49240
|
+
if (typeof __o_44["viewerCanDisableAutoMerge"] !== "boolean") {
|
|
49241
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_44["viewerCanDisableAutoMerge"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("viewerCanDisableAutoMerge") });
|
|
49126
49242
|
}
|
|
49127
49243
|
}
|
|
49128
49244
|
}
|
|
49129
|
-
if (
|
|
49130
|
-
|
|
49245
|
+
if (__o_44["viewerCanMergeAsAdmin"] === undefined) {
|
|
49246
|
+
__o_44["viewerCanMergeAsAdmin"] = __rf[12]._zod.def.defaultValue;
|
|
49131
49247
|
}
|
|
49132
49248
|
else {
|
|
49133
|
-
if (
|
|
49134
|
-
if (typeof
|
|
49135
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49249
|
+
if (__o_44["viewerCanMergeAsAdmin"] !== undefined) {
|
|
49250
|
+
if (typeof __o_44["viewerCanMergeAsAdmin"] !== "boolean") {
|
|
49251
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_44["viewerCanMergeAsAdmin"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("viewerCanMergeAsAdmin") });
|
|
49136
49252
|
}
|
|
49137
49253
|
}
|
|
49138
49254
|
}
|
|
49139
|
-
if (
|
|
49140
|
-
|
|
49255
|
+
if (__o_44["viewerCanUpdateBranch"] === undefined) {
|
|
49256
|
+
__o_44["viewerCanUpdateBranch"] = __rf[13]._zod.def.defaultValue;
|
|
49141
49257
|
}
|
|
49142
49258
|
else {
|
|
49143
|
-
if (
|
|
49144
|
-
if (typeof
|
|
49145
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49259
|
+
if (__o_44["viewerCanUpdateBranch"] !== undefined) {
|
|
49260
|
+
if (typeof __o_44["viewerCanUpdateBranch"] !== "boolean") {
|
|
49261
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_44["viewerCanUpdateBranch"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("viewerCanUpdateBranch") });
|
|
49146
49262
|
}
|
|
49147
49263
|
}
|
|
49148
49264
|
}
|
|
49149
|
-
if (
|
|
49150
|
-
|
|
49265
|
+
if (__o_44["repository"] === undefined) {
|
|
49266
|
+
__o_44["repository"] = __rf[19]._zod.def.defaultValue;
|
|
49151
49267
|
}
|
|
49152
49268
|
else {
|
|
49153
|
-
if (
|
|
49154
|
-
if (typeof
|
|
49155
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
49269
|
+
if (__o_44["repository"] !== undefined) {
|
|
49270
|
+
if (typeof __o_44["repository"] !== "object" || __o_44["repository"] === null || Array.isArray(__o_44["repository"])) {
|
|
49271
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_44["repository"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("repository") });
|
|
49156
49272
|
}
|
|
49157
49273
|
else {
|
|
49158
|
-
var
|
|
49159
|
-
if (
|
|
49160
|
-
|
|
49274
|
+
var __o_46 = Object.assign({}, __o_44["repository"]);
|
|
49275
|
+
if (__o_46["autoMergeAllowed"] === undefined) {
|
|
49276
|
+
__o_46["autoMergeAllowed"] = __rf[14]._zod.def.defaultValue;
|
|
49161
49277
|
}
|
|
49162
49278
|
else {
|
|
49163
|
-
if (
|
|
49164
|
-
if (typeof
|
|
49165
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49279
|
+
if (__o_46["autoMergeAllowed"] !== undefined) {
|
|
49280
|
+
if (typeof __o_46["autoMergeAllowed"] !== "boolean") {
|
|
49281
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_46["autoMergeAllowed"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("repository").concat("autoMergeAllowed") });
|
|
49166
49282
|
}
|
|
49167
49283
|
}
|
|
49168
49284
|
}
|
|
49169
|
-
if (
|
|
49170
|
-
|
|
49285
|
+
if (__o_46["mergeCommitAllowed"] === undefined) {
|
|
49286
|
+
__o_46["mergeCommitAllowed"] = __rf[15]._zod.def.defaultValue;
|
|
49171
49287
|
}
|
|
49172
49288
|
else {
|
|
49173
|
-
if (
|
|
49174
|
-
if (typeof
|
|
49175
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49289
|
+
if (__o_46["mergeCommitAllowed"] !== undefined) {
|
|
49290
|
+
if (typeof __o_46["mergeCommitAllowed"] !== "boolean") {
|
|
49291
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_46["mergeCommitAllowed"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("repository").concat("mergeCommitAllowed") });
|
|
49176
49292
|
}
|
|
49177
49293
|
}
|
|
49178
49294
|
}
|
|
49179
|
-
if (
|
|
49180
|
-
|
|
49295
|
+
if (__o_46["squashMergeAllowed"] === undefined) {
|
|
49296
|
+
__o_46["squashMergeAllowed"] = __rf[16]._zod.def.defaultValue;
|
|
49181
49297
|
}
|
|
49182
49298
|
else {
|
|
49183
|
-
if (
|
|
49184
|
-
if (typeof
|
|
49185
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49299
|
+
if (__o_46["squashMergeAllowed"] !== undefined) {
|
|
49300
|
+
if (typeof __o_46["squashMergeAllowed"] !== "boolean") {
|
|
49301
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_46["squashMergeAllowed"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("repository").concat("squashMergeAllowed") });
|
|
49186
49302
|
}
|
|
49187
49303
|
}
|
|
49188
49304
|
}
|
|
49189
|
-
if (
|
|
49190
|
-
|
|
49305
|
+
if (__o_46["rebaseMergeAllowed"] === undefined) {
|
|
49306
|
+
__o_46["rebaseMergeAllowed"] = __rf[17]._zod.def.defaultValue;
|
|
49191
49307
|
}
|
|
49192
49308
|
else {
|
|
49193
|
-
if (
|
|
49194
|
-
if (typeof
|
|
49195
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49309
|
+
if (__o_46["rebaseMergeAllowed"] !== undefined) {
|
|
49310
|
+
if (typeof __o_46["rebaseMergeAllowed"] !== "boolean") {
|
|
49311
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_46["rebaseMergeAllowed"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("repository").concat("rebaseMergeAllowed") });
|
|
49196
49312
|
}
|
|
49197
49313
|
}
|
|
49198
49314
|
}
|
|
49199
|
-
if (
|
|
49200
|
-
|
|
49315
|
+
if (__o_46["viewerDefaultMergeMethod"] === undefined) {
|
|
49316
|
+
__o_46["viewerDefaultMergeMethod"] = __rf[18]._zod.def.defaultValue;
|
|
49201
49317
|
}
|
|
49202
49318
|
else {
|
|
49203
|
-
if (
|
|
49204
|
-
if (
|
|
49205
|
-
if (typeof
|
|
49206
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49319
|
+
if (__o_46["viewerDefaultMergeMethod"] !== undefined) {
|
|
49320
|
+
if (__o_46["viewerDefaultMergeMethod"] !== null) {
|
|
49321
|
+
if (typeof __o_46["viewerDefaultMergeMethod"] !== "string") {
|
|
49322
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_46["viewerDefaultMergeMethod"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("repository").concat("viewerDefaultMergeMethod") });
|
|
49207
49323
|
}
|
|
49208
49324
|
}
|
|
49209
49325
|
}
|
|
49210
49326
|
}
|
|
49211
|
-
|
|
49327
|
+
__o_44["repository"] = __o_46;
|
|
49212
49328
|
}
|
|
49213
49329
|
}
|
|
49214
49330
|
}
|
|
49215
|
-
if (
|
|
49216
|
-
|
|
49331
|
+
if (__o_44["isMergeQueueEnabled"] === undefined) {
|
|
49332
|
+
__o_44["isMergeQueueEnabled"] = __rf[20]._zod.def.defaultValue;
|
|
49217
49333
|
}
|
|
49218
49334
|
else {
|
|
49219
|
-
if (
|
|
49220
|
-
if (typeof
|
|
49221
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49335
|
+
if (__o_44["isMergeQueueEnabled"] !== undefined) {
|
|
49336
|
+
if (typeof __o_44["isMergeQueueEnabled"] !== "boolean") {
|
|
49337
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_44["isMergeQueueEnabled"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("isMergeQueueEnabled") });
|
|
49222
49338
|
}
|
|
49223
49339
|
}
|
|
49224
49340
|
}
|
|
49225
|
-
if (
|
|
49226
|
-
|
|
49341
|
+
if (__o_44["isInMergeQueue"] === undefined) {
|
|
49342
|
+
__o_44["isInMergeQueue"] = __rf[21]._zod.def.defaultValue;
|
|
49227
49343
|
}
|
|
49228
49344
|
else {
|
|
49229
|
-
if (
|
|
49230
|
-
if (typeof
|
|
49231
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49345
|
+
if (__o_44["isInMergeQueue"] !== undefined) {
|
|
49346
|
+
if (typeof __o_44["isInMergeQueue"] !== "boolean") {
|
|
49347
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_44["isInMergeQueue"], path: ["payload"].concat("prStatus").concat("status").concat("github").concat("isInMergeQueue") });
|
|
49232
49348
|
}
|
|
49233
49349
|
}
|
|
49234
49350
|
}
|
|
49235
|
-
|
|
49351
|
+
__o_39["github"] = __o_44;
|
|
49236
49352
|
}
|
|
49237
49353
|
}
|
|
49238
|
-
if (
|
|
49239
|
-
|
|
49354
|
+
if (__o_39["forgeSpecific"] !== undefined) { }
|
|
49355
|
+
__o_38["status"] = __o_39;
|
|
49240
49356
|
}
|
|
49241
49357
|
}
|
|
49242
|
-
if (typeof
|
|
49243
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
49358
|
+
if (typeof __o_38["githubFeaturesEnabled"] !== "boolean") {
|
|
49359
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_38["githubFeaturesEnabled"], path: ["payload"].concat("prStatus").concat("githubFeaturesEnabled") });
|
|
49244
49360
|
}
|
|
49245
|
-
if (
|
|
49246
|
-
if (
|
|
49247
|
-
|
|
49361
|
+
if (__o_38["authState"] !== undefined) { }
|
|
49362
|
+
if (__o_38["forge"] === undefined) {
|
|
49363
|
+
__o_38["forge"] = __rf[22]._zod.def.defaultValue;
|
|
49248
49364
|
}
|
|
49249
49365
|
else {
|
|
49250
|
-
if (
|
|
49251
|
-
if (typeof
|
|
49252
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49366
|
+
if (__o_38["forge"] !== undefined) {
|
|
49367
|
+
if (typeof __o_38["forge"] !== "string") {
|
|
49368
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["forge"], path: ["payload"].concat("prStatus").concat("forge") });
|
|
49253
49369
|
}
|
|
49254
49370
|
}
|
|
49255
49371
|
}
|
|
49256
|
-
if (
|
|
49257
|
-
if (typeof
|
|
49258
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
49372
|
+
if (__o_38["error"] !== null) {
|
|
49373
|
+
if (typeof __o_38["error"] !== "object" || __o_38["error"] === null || Array.isArray(__o_38["error"])) {
|
|
49374
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_38["error"], path: ["payload"].concat("prStatus").concat("error") });
|
|
49259
49375
|
}
|
|
49260
49376
|
else {
|
|
49261
|
-
var
|
|
49262
|
-
if (!
|
|
49263
|
-
_e.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input:
|
|
49377
|
+
var __o_47 = __o_38["error"];
|
|
49378
|
+
if (!__set_enum_48.has(__o_47["code"])) {
|
|
49379
|
+
_e.push({ code: "invalid_value", values: ["NOT_GIT_REPO", "NOT_ALLOWED", "MERGE_CONFLICT", "UNKNOWN"], input: __o_47["code"], path: ["payload"].concat("prStatus").concat("error").concat("code") });
|
|
49264
49380
|
}
|
|
49265
|
-
if (typeof
|
|
49266
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49381
|
+
if (typeof __o_47["message"] !== "string") {
|
|
49382
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_47["message"], path: ["payload"].concat("prStatus").concat("error").concat("message") });
|
|
49267
49383
|
}
|
|
49268
49384
|
}
|
|
49269
49385
|
}
|
|
49270
|
-
if (typeof
|
|
49271
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
49386
|
+
if (typeof __o_38["requestId"] !== "string") {
|
|
49387
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["requestId"], path: ["payload"].concat("prStatus").concat("requestId") });
|
|
49272
49388
|
}
|
|
49273
|
-
|
|
49389
|
+
__o_37["prStatus"] = __o_38;
|
|
49274
49390
|
}
|
|
49275
49391
|
}
|
|
49276
|
-
|
|
49392
|
+
__o_11["payload"] = __o_37;
|
|
49277
49393
|
}
|
|
49278
|
-
_d =
|
|
49394
|
+
_d = __o_11;
|
|
49279
49395
|
}
|
|
49280
49396
|
return __fin(_e, _d);
|
|
49281
49397
|
}
|
|
@@ -54570,7 +54686,7 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54570
54686
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
54571
54687
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
54572
54688
|
__ae_0 = a[i];
|
|
54573
|
-
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"]) && 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")))) {
|
|
54689
|
+
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")))) {
|
|
54574
54690
|
return false;
|
|
54575
54691
|
}
|
|
54576
54692
|
} return true; }
|
|
@@ -54581,7 +54697,7 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54581
54697
|
}
|
|
54582
54698
|
} return true; }
|
|
54583
54699
|
var __set_enum_11 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
54584
|
-
var
|
|
54700
|
+
var __set_enum_13 = new Set(["local", "direct", "relay", "hub"]);
|
|
54585
54701
|
function safeParse_SessionOutboundMessage2(input) {
|
|
54586
54702
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.auth.device.revoke.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["status"] === "object" && input["payload"]["status"] !== null && !Array.isArray(input["payload"]["status"]) && typeof input["payload"]["status"]["passwordEnabled"] === "boolean" && (input["payload"]["status"]["managedBy"] === null || ((input["payload"]["status"]["managedBy"] === "environment"))) && Array.isArray(input["payload"]["status"]["sessions"]) && __af_3(input["payload"]["status"]["sessions"]) && Array.isArray(input["payload"]["status"]["devices"]) && __af_5(input["payload"]["status"]["devices"])) {
|
|
54587
54703
|
return { success: true, data: input };
|
|
@@ -54716,6 +54832,22 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54716
54832
|
if (!__set_enum_11.has(__o_10["credential"])) {
|
|
54717
54833
|
_e.push({ code: "invalid_value", values: ["none", "password", "localCredential", "device", "peer", "service"], input: __o_10["credential"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("credential") });
|
|
54718
54834
|
}
|
|
54835
|
+
if (__o_10["fleetPeer"] !== undefined) {
|
|
54836
|
+
if (typeof __o_10["fleetPeer"] !== "object" || __o_10["fleetPeer"] === null || Array.isArray(__o_10["fleetPeer"])) {
|
|
54837
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_10["fleetPeer"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer") });
|
|
54838
|
+
}
|
|
54839
|
+
else {
|
|
54840
|
+
var __o_12 = __o_10["fleetPeer"];
|
|
54841
|
+
if (typeof __o_12["serverId"] !== "string") {
|
|
54842
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["serverId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("serverId") });
|
|
54843
|
+
}
|
|
54844
|
+
if (__o_12["label"] !== null) {
|
|
54845
|
+
if (typeof __o_12["label"] !== "string") {
|
|
54846
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["label"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("label") });
|
|
54847
|
+
}
|
|
54848
|
+
}
|
|
54849
|
+
}
|
|
54850
|
+
}
|
|
54719
54851
|
if (typeof __o_10["connectedAt"] !== "string") {
|
|
54720
54852
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["connectedAt"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("connectedAt") });
|
|
54721
54853
|
}
|
|
@@ -54729,7 +54861,7 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54729
54861
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_10["canKeep"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("canKeep") });
|
|
54730
54862
|
}
|
|
54731
54863
|
if (__o_10["transport"] !== undefined) {
|
|
54732
|
-
if (!
|
|
54864
|
+
if (!__set_enum_13.has(__o_10["transport"])) {
|
|
54733
54865
|
_e.push({ code: "invalid_value", values: ["local", "direct", "relay", "hub"], input: __o_10["transport"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("transport") });
|
|
54734
54866
|
}
|
|
54735
54867
|
}
|
|
@@ -54750,101 +54882,101 @@ export const SessionOutboundMessage2 = /* @__PURE__ */ (() => {
|
|
|
54750
54882
|
_e.push({ code: "invalid_type", expected: "array", input: __o_8["devices"], path: ["payload"].concat("status").concat("devices") });
|
|
54751
54883
|
}
|
|
54752
54884
|
else {
|
|
54753
|
-
for (var
|
|
54754
|
-
if (typeof __o_8["devices"][
|
|
54755
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][
|
|
54885
|
+
for (var __i_14 = 0; __i_14 < __o_8["devices"].length; __i_14++) {
|
|
54886
|
+
if (typeof __o_8["devices"][__i_14] !== "object" || __o_8["devices"][__i_14] === null || Array.isArray(__o_8["devices"][__i_14])) {
|
|
54887
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][__i_14], path: ["payload"].concat("status").concat("devices").concat(__i_14) });
|
|
54756
54888
|
}
|
|
54757
54889
|
else {
|
|
54758
|
-
var
|
|
54759
|
-
if (
|
|
54760
|
-
if (typeof
|
|
54761
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54890
|
+
var __o_15 = __o_8["devices"][__i_14];
|
|
54891
|
+
if (__o_15["customName"] !== undefined) {
|
|
54892
|
+
if (typeof __o_15["customName"] !== "string") {
|
|
54893
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
54762
54894
|
}
|
|
54763
54895
|
else {
|
|
54764
|
-
if (
|
|
54765
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
54896
|
+
if (__o_15["customName"].length > 256) {
|
|
54897
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
54766
54898
|
}
|
|
54767
54899
|
}
|
|
54768
54900
|
}
|
|
54769
|
-
if (
|
|
54770
|
-
if (typeof
|
|
54771
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54901
|
+
if (__o_15["computerName"] !== undefined) {
|
|
54902
|
+
if (typeof __o_15["computerName"] !== "string") {
|
|
54903
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
54772
54904
|
}
|
|
54773
54905
|
else {
|
|
54774
|
-
if (
|
|
54775
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
54906
|
+
if (__o_15["computerName"].length > 256) {
|
|
54907
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
54776
54908
|
}
|
|
54777
54909
|
}
|
|
54778
54910
|
}
|
|
54779
|
-
if (
|
|
54780
|
-
if (typeof
|
|
54781
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54911
|
+
if (__o_15["model"] !== undefined) {
|
|
54912
|
+
if (typeof __o_15["model"] !== "string") {
|
|
54913
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
54782
54914
|
}
|
|
54783
54915
|
else {
|
|
54784
|
-
if (
|
|
54785
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
54916
|
+
if (__o_15["model"].length > 256) {
|
|
54917
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
54786
54918
|
}
|
|
54787
54919
|
}
|
|
54788
54920
|
}
|
|
54789
|
-
if (
|
|
54790
|
-
if (typeof
|
|
54791
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54921
|
+
if (__o_15["browser"] !== undefined) {
|
|
54922
|
+
if (typeof __o_15["browser"] !== "string") {
|
|
54923
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
54792
54924
|
}
|
|
54793
54925
|
else {
|
|
54794
|
-
if (
|
|
54795
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
54926
|
+
if (__o_15["browser"].length > 64) {
|
|
54927
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
54796
54928
|
}
|
|
54797
54929
|
}
|
|
54798
54930
|
}
|
|
54799
|
-
if (
|
|
54800
|
-
if (typeof
|
|
54801
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54931
|
+
if (__o_15["os"] !== undefined) {
|
|
54932
|
+
if (typeof __o_15["os"] !== "string") {
|
|
54933
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
54802
54934
|
}
|
|
54803
54935
|
else {
|
|
54804
|
-
if (
|
|
54805
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
54936
|
+
if (__o_15["os"].length > 64) {
|
|
54937
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
54806
54938
|
}
|
|
54807
54939
|
}
|
|
54808
54940
|
}
|
|
54809
|
-
if (
|
|
54810
|
-
if (typeof
|
|
54811
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54941
|
+
if (__o_15["osVersion"] !== undefined) {
|
|
54942
|
+
if (typeof __o_15["osVersion"] !== "string") {
|
|
54943
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
54812
54944
|
}
|
|
54813
54945
|
else {
|
|
54814
|
-
if (
|
|
54815
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
54946
|
+
if (__o_15["osVersion"].length > 64) {
|
|
54947
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
54816
54948
|
}
|
|
54817
54949
|
}
|
|
54818
54950
|
}
|
|
54819
|
-
if (
|
|
54820
|
-
if (typeof
|
|
54821
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54951
|
+
if (__o_15["clientType"] !== undefined) {
|
|
54952
|
+
if (typeof __o_15["clientType"] !== "string") {
|
|
54953
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientType"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientType") });
|
|
54822
54954
|
}
|
|
54823
54955
|
}
|
|
54824
|
-
if (
|
|
54825
|
-
if (typeof
|
|
54826
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54956
|
+
if (__o_15["clientIdSuffix"] !== undefined) {
|
|
54957
|
+
if (typeof __o_15["clientIdSuffix"] !== "string") {
|
|
54958
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientIdSuffix"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientIdSuffix") });
|
|
54827
54959
|
}
|
|
54828
54960
|
}
|
|
54829
|
-
if (typeof
|
|
54830
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54961
|
+
if (typeof __o_15["credentialId"] !== "string") {
|
|
54962
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["credentialId"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("credentialId") });
|
|
54831
54963
|
}
|
|
54832
|
-
if (
|
|
54833
|
-
if (typeof
|
|
54834
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54964
|
+
if (__o_15["deviceName"] !== null) {
|
|
54965
|
+
if (typeof __o_15["deviceName"] !== "string") {
|
|
54966
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["deviceName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("deviceName") });
|
|
54835
54967
|
}
|
|
54836
54968
|
}
|
|
54837
|
-
if (
|
|
54838
|
-
if (typeof
|
|
54839
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54969
|
+
if (__o_15["platform"] !== null) {
|
|
54970
|
+
if (typeof __o_15["platform"] !== "string") {
|
|
54971
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["platform"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("platform") });
|
|
54840
54972
|
}
|
|
54841
54973
|
}
|
|
54842
|
-
if (typeof
|
|
54843
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54974
|
+
if (typeof __o_15["createdAt"] !== "string") {
|
|
54975
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["createdAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("createdAt") });
|
|
54844
54976
|
}
|
|
54845
|
-
if (
|
|
54846
|
-
if (typeof
|
|
54847
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
54977
|
+
if (__o_15["lastSeenAt"] !== null) {
|
|
54978
|
+
if (typeof __o_15["lastSeenAt"] !== "string") {
|
|
54979
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["lastSeenAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("lastSeenAt") });
|
|
54848
54980
|
}
|
|
54849
54981
|
}
|
|
54850
54982
|
}
|
|
@@ -80671,7 +80803,7 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80671
80803
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
80672
80804
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
80673
80805
|
__ae_0 = a[i];
|
|
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"]) && 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")))) {
|
|
80806
|
+
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")))) {
|
|
80675
80807
|
return false;
|
|
80676
80808
|
}
|
|
80677
80809
|
} return true; }
|
|
@@ -80682,7 +80814,7 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80682
80814
|
}
|
|
80683
80815
|
} return true; }
|
|
80684
80816
|
var __set_enum_11 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
80685
|
-
var
|
|
80817
|
+
var __set_enum_13 = new Set(["local", "direct", "relay", "hub"]);
|
|
80686
80818
|
function safeParse_SessionOutboundMessage5(input) {
|
|
80687
80819
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.auth.session.disconnect.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["status"] === "object" && input["payload"]["status"] !== null && !Array.isArray(input["payload"]["status"]) && typeof input["payload"]["status"]["passwordEnabled"] === "boolean" && (input["payload"]["status"]["managedBy"] === null || ((input["payload"]["status"]["managedBy"] === "environment"))) && Array.isArray(input["payload"]["status"]["sessions"]) && __af_3(input["payload"]["status"]["sessions"]) && Array.isArray(input["payload"]["status"]["devices"]) && __af_5(input["payload"]["status"]["devices"])) {
|
|
80688
80820
|
return { success: true, data: input };
|
|
@@ -80817,6 +80949,22 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80817
80949
|
if (!__set_enum_11.has(__o_10["credential"])) {
|
|
80818
80950
|
_e.push({ code: "invalid_value", values: ["none", "password", "localCredential", "device", "peer", "service"], input: __o_10["credential"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("credential") });
|
|
80819
80951
|
}
|
|
80952
|
+
if (__o_10["fleetPeer"] !== undefined) {
|
|
80953
|
+
if (typeof __o_10["fleetPeer"] !== "object" || __o_10["fleetPeer"] === null || Array.isArray(__o_10["fleetPeer"])) {
|
|
80954
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_10["fleetPeer"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer") });
|
|
80955
|
+
}
|
|
80956
|
+
else {
|
|
80957
|
+
var __o_12 = __o_10["fleetPeer"];
|
|
80958
|
+
if (typeof __o_12["serverId"] !== "string") {
|
|
80959
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["serverId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("serverId") });
|
|
80960
|
+
}
|
|
80961
|
+
if (__o_12["label"] !== null) {
|
|
80962
|
+
if (typeof __o_12["label"] !== "string") {
|
|
80963
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["label"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("label") });
|
|
80964
|
+
}
|
|
80965
|
+
}
|
|
80966
|
+
}
|
|
80967
|
+
}
|
|
80820
80968
|
if (typeof __o_10["connectedAt"] !== "string") {
|
|
80821
80969
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["connectedAt"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("connectedAt") });
|
|
80822
80970
|
}
|
|
@@ -80830,7 +80978,7 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80830
80978
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_10["canKeep"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("canKeep") });
|
|
80831
80979
|
}
|
|
80832
80980
|
if (__o_10["transport"] !== undefined) {
|
|
80833
|
-
if (!
|
|
80981
|
+
if (!__set_enum_13.has(__o_10["transport"])) {
|
|
80834
80982
|
_e.push({ code: "invalid_value", values: ["local", "direct", "relay", "hub"], input: __o_10["transport"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("transport") });
|
|
80835
80983
|
}
|
|
80836
80984
|
}
|
|
@@ -80851,101 +80999,101 @@ export const SessionOutboundMessage5 = /* @__PURE__ */ (() => {
|
|
|
80851
80999
|
_e.push({ code: "invalid_type", expected: "array", input: __o_8["devices"], path: ["payload"].concat("status").concat("devices") });
|
|
80852
81000
|
}
|
|
80853
81001
|
else {
|
|
80854
|
-
for (var
|
|
80855
|
-
if (typeof __o_8["devices"][
|
|
80856
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][
|
|
81002
|
+
for (var __i_14 = 0; __i_14 < __o_8["devices"].length; __i_14++) {
|
|
81003
|
+
if (typeof __o_8["devices"][__i_14] !== "object" || __o_8["devices"][__i_14] === null || Array.isArray(__o_8["devices"][__i_14])) {
|
|
81004
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][__i_14], path: ["payload"].concat("status").concat("devices").concat(__i_14) });
|
|
80857
81005
|
}
|
|
80858
81006
|
else {
|
|
80859
|
-
var
|
|
80860
|
-
if (
|
|
80861
|
-
if (typeof
|
|
80862
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81007
|
+
var __o_15 = __o_8["devices"][__i_14];
|
|
81008
|
+
if (__o_15["customName"] !== undefined) {
|
|
81009
|
+
if (typeof __o_15["customName"] !== "string") {
|
|
81010
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
80863
81011
|
}
|
|
80864
81012
|
else {
|
|
80865
|
-
if (
|
|
80866
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
81013
|
+
if (__o_15["customName"].length > 256) {
|
|
81014
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
80867
81015
|
}
|
|
80868
81016
|
}
|
|
80869
81017
|
}
|
|
80870
|
-
if (
|
|
80871
|
-
if (typeof
|
|
80872
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81018
|
+
if (__o_15["computerName"] !== undefined) {
|
|
81019
|
+
if (typeof __o_15["computerName"] !== "string") {
|
|
81020
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
80873
81021
|
}
|
|
80874
81022
|
else {
|
|
80875
|
-
if (
|
|
80876
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
81023
|
+
if (__o_15["computerName"].length > 256) {
|
|
81024
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
80877
81025
|
}
|
|
80878
81026
|
}
|
|
80879
81027
|
}
|
|
80880
|
-
if (
|
|
80881
|
-
if (typeof
|
|
80882
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81028
|
+
if (__o_15["model"] !== undefined) {
|
|
81029
|
+
if (typeof __o_15["model"] !== "string") {
|
|
81030
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
80883
81031
|
}
|
|
80884
81032
|
else {
|
|
80885
|
-
if (
|
|
80886
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
81033
|
+
if (__o_15["model"].length > 256) {
|
|
81034
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
80887
81035
|
}
|
|
80888
81036
|
}
|
|
80889
81037
|
}
|
|
80890
|
-
if (
|
|
80891
|
-
if (typeof
|
|
80892
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81038
|
+
if (__o_15["browser"] !== undefined) {
|
|
81039
|
+
if (typeof __o_15["browser"] !== "string") {
|
|
81040
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
80893
81041
|
}
|
|
80894
81042
|
else {
|
|
80895
|
-
if (
|
|
80896
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
81043
|
+
if (__o_15["browser"].length > 64) {
|
|
81044
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
80897
81045
|
}
|
|
80898
81046
|
}
|
|
80899
81047
|
}
|
|
80900
|
-
if (
|
|
80901
|
-
if (typeof
|
|
80902
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81048
|
+
if (__o_15["os"] !== undefined) {
|
|
81049
|
+
if (typeof __o_15["os"] !== "string") {
|
|
81050
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
80903
81051
|
}
|
|
80904
81052
|
else {
|
|
80905
|
-
if (
|
|
80906
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
81053
|
+
if (__o_15["os"].length > 64) {
|
|
81054
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
80907
81055
|
}
|
|
80908
81056
|
}
|
|
80909
81057
|
}
|
|
80910
|
-
if (
|
|
80911
|
-
if (typeof
|
|
80912
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81058
|
+
if (__o_15["osVersion"] !== undefined) {
|
|
81059
|
+
if (typeof __o_15["osVersion"] !== "string") {
|
|
81060
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
80913
81061
|
}
|
|
80914
81062
|
else {
|
|
80915
|
-
if (
|
|
80916
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
81063
|
+
if (__o_15["osVersion"].length > 64) {
|
|
81064
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
80917
81065
|
}
|
|
80918
81066
|
}
|
|
80919
81067
|
}
|
|
80920
|
-
if (
|
|
80921
|
-
if (typeof
|
|
80922
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81068
|
+
if (__o_15["clientType"] !== undefined) {
|
|
81069
|
+
if (typeof __o_15["clientType"] !== "string") {
|
|
81070
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientType"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientType") });
|
|
80923
81071
|
}
|
|
80924
81072
|
}
|
|
80925
|
-
if (
|
|
80926
|
-
if (typeof
|
|
80927
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81073
|
+
if (__o_15["clientIdSuffix"] !== undefined) {
|
|
81074
|
+
if (typeof __o_15["clientIdSuffix"] !== "string") {
|
|
81075
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientIdSuffix"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientIdSuffix") });
|
|
80928
81076
|
}
|
|
80929
81077
|
}
|
|
80930
|
-
if (typeof
|
|
80931
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81078
|
+
if (typeof __o_15["credentialId"] !== "string") {
|
|
81079
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["credentialId"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("credentialId") });
|
|
80932
81080
|
}
|
|
80933
|
-
if (
|
|
80934
|
-
if (typeof
|
|
80935
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81081
|
+
if (__o_15["deviceName"] !== null) {
|
|
81082
|
+
if (typeof __o_15["deviceName"] !== "string") {
|
|
81083
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["deviceName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("deviceName") });
|
|
80936
81084
|
}
|
|
80937
81085
|
}
|
|
80938
|
-
if (
|
|
80939
|
-
if (typeof
|
|
80940
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81086
|
+
if (__o_15["platform"] !== null) {
|
|
81087
|
+
if (typeof __o_15["platform"] !== "string") {
|
|
81088
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["platform"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("platform") });
|
|
80941
81089
|
}
|
|
80942
81090
|
}
|
|
80943
|
-
if (typeof
|
|
80944
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81091
|
+
if (typeof __o_15["createdAt"] !== "string") {
|
|
81092
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["createdAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("createdAt") });
|
|
80945
81093
|
}
|
|
80946
|
-
if (
|
|
80947
|
-
if (typeof
|
|
80948
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
81094
|
+
if (__o_15["lastSeenAt"] !== null) {
|
|
81095
|
+
if (typeof __o_15["lastSeenAt"] !== "string") {
|
|
81096
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["lastSeenAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("lastSeenAt") });
|
|
80949
81097
|
}
|
|
80950
81098
|
}
|
|
80951
81099
|
}
|
|
@@ -81951,7 +82099,7 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
81951
82099
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
81952
82100
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
81953
82101
|
__ae_0 = a[i];
|
|
81954
|
-
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"]) && 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")))) {
|
|
82102
|
+
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")))) {
|
|
81955
82103
|
return false;
|
|
81956
82104
|
}
|
|
81957
82105
|
} return true; }
|
|
@@ -81962,7 +82110,7 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
81962
82110
|
}
|
|
81963
82111
|
} return true; }
|
|
81964
82112
|
var __set_enum_11 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
81965
|
-
var
|
|
82113
|
+
var __set_enum_13 = new Set(["local", "direct", "relay", "hub"]);
|
|
81966
82114
|
function safeParse_SessionOutboundMessage6(input) {
|
|
81967
82115
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.auth.status.subscribe.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["subscriptionId"] === "string" && typeof input["payload"]["status"] === "object" && input["payload"]["status"] !== null && !Array.isArray(input["payload"]["status"]) && typeof input["payload"]["status"]["passwordEnabled"] === "boolean" && (input["payload"]["status"]["managedBy"] === null || ((input["payload"]["status"]["managedBy"] === "environment"))) && Array.isArray(input["payload"]["status"]["sessions"]) && __af_3(input["payload"]["status"]["sessions"]) && Array.isArray(input["payload"]["status"]["devices"]) && __af_5(input["payload"]["status"]["devices"])) {
|
|
81968
82116
|
return { success: true, data: input };
|
|
@@ -82100,6 +82248,22 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
82100
82248
|
if (!__set_enum_11.has(__o_10["credential"])) {
|
|
82101
82249
|
_e.push({ code: "invalid_value", values: ["none", "password", "localCredential", "device", "peer", "service"], input: __o_10["credential"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("credential") });
|
|
82102
82250
|
}
|
|
82251
|
+
if (__o_10["fleetPeer"] !== undefined) {
|
|
82252
|
+
if (typeof __o_10["fleetPeer"] !== "object" || __o_10["fleetPeer"] === null || Array.isArray(__o_10["fleetPeer"])) {
|
|
82253
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_10["fleetPeer"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer") });
|
|
82254
|
+
}
|
|
82255
|
+
else {
|
|
82256
|
+
var __o_12 = __o_10["fleetPeer"];
|
|
82257
|
+
if (typeof __o_12["serverId"] !== "string") {
|
|
82258
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["serverId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("serverId") });
|
|
82259
|
+
}
|
|
82260
|
+
if (__o_12["label"] !== null) {
|
|
82261
|
+
if (typeof __o_12["label"] !== "string") {
|
|
82262
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["label"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("label") });
|
|
82263
|
+
}
|
|
82264
|
+
}
|
|
82265
|
+
}
|
|
82266
|
+
}
|
|
82103
82267
|
if (typeof __o_10["connectedAt"] !== "string") {
|
|
82104
82268
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["connectedAt"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("connectedAt") });
|
|
82105
82269
|
}
|
|
@@ -82113,7 +82277,7 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
82113
82277
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_10["canKeep"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("canKeep") });
|
|
82114
82278
|
}
|
|
82115
82279
|
if (__o_10["transport"] !== undefined) {
|
|
82116
|
-
if (!
|
|
82280
|
+
if (!__set_enum_13.has(__o_10["transport"])) {
|
|
82117
82281
|
_e.push({ code: "invalid_value", values: ["local", "direct", "relay", "hub"], input: __o_10["transport"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("transport") });
|
|
82118
82282
|
}
|
|
82119
82283
|
}
|
|
@@ -82134,101 +82298,101 @@ export const SessionOutboundMessage6 = /* @__PURE__ */ (() => {
|
|
|
82134
82298
|
_e.push({ code: "invalid_type", expected: "array", input: __o_8["devices"], path: ["payload"].concat("status").concat("devices") });
|
|
82135
82299
|
}
|
|
82136
82300
|
else {
|
|
82137
|
-
for (var
|
|
82138
|
-
if (typeof __o_8["devices"][
|
|
82139
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][
|
|
82301
|
+
for (var __i_14 = 0; __i_14 < __o_8["devices"].length; __i_14++) {
|
|
82302
|
+
if (typeof __o_8["devices"][__i_14] !== "object" || __o_8["devices"][__i_14] === null || Array.isArray(__o_8["devices"][__i_14])) {
|
|
82303
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][__i_14], path: ["payload"].concat("status").concat("devices").concat(__i_14) });
|
|
82140
82304
|
}
|
|
82141
82305
|
else {
|
|
82142
|
-
var
|
|
82143
|
-
if (
|
|
82144
|
-
if (typeof
|
|
82145
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82306
|
+
var __o_15 = __o_8["devices"][__i_14];
|
|
82307
|
+
if (__o_15["customName"] !== undefined) {
|
|
82308
|
+
if (typeof __o_15["customName"] !== "string") {
|
|
82309
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
82146
82310
|
}
|
|
82147
82311
|
else {
|
|
82148
|
-
if (
|
|
82149
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
82312
|
+
if (__o_15["customName"].length > 256) {
|
|
82313
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
82150
82314
|
}
|
|
82151
82315
|
}
|
|
82152
82316
|
}
|
|
82153
|
-
if (
|
|
82154
|
-
if (typeof
|
|
82155
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82317
|
+
if (__o_15["computerName"] !== undefined) {
|
|
82318
|
+
if (typeof __o_15["computerName"] !== "string") {
|
|
82319
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
82156
82320
|
}
|
|
82157
82321
|
else {
|
|
82158
|
-
if (
|
|
82159
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
82322
|
+
if (__o_15["computerName"].length > 256) {
|
|
82323
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
82160
82324
|
}
|
|
82161
82325
|
}
|
|
82162
82326
|
}
|
|
82163
|
-
if (
|
|
82164
|
-
if (typeof
|
|
82165
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82327
|
+
if (__o_15["model"] !== undefined) {
|
|
82328
|
+
if (typeof __o_15["model"] !== "string") {
|
|
82329
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
82166
82330
|
}
|
|
82167
82331
|
else {
|
|
82168
|
-
if (
|
|
82169
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
82332
|
+
if (__o_15["model"].length > 256) {
|
|
82333
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
82170
82334
|
}
|
|
82171
82335
|
}
|
|
82172
82336
|
}
|
|
82173
|
-
if (
|
|
82174
|
-
if (typeof
|
|
82175
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82337
|
+
if (__o_15["browser"] !== undefined) {
|
|
82338
|
+
if (typeof __o_15["browser"] !== "string") {
|
|
82339
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
82176
82340
|
}
|
|
82177
82341
|
else {
|
|
82178
|
-
if (
|
|
82179
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
82342
|
+
if (__o_15["browser"].length > 64) {
|
|
82343
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
82180
82344
|
}
|
|
82181
82345
|
}
|
|
82182
82346
|
}
|
|
82183
|
-
if (
|
|
82184
|
-
if (typeof
|
|
82185
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82347
|
+
if (__o_15["os"] !== undefined) {
|
|
82348
|
+
if (typeof __o_15["os"] !== "string") {
|
|
82349
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
82186
82350
|
}
|
|
82187
82351
|
else {
|
|
82188
|
-
if (
|
|
82189
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
82352
|
+
if (__o_15["os"].length > 64) {
|
|
82353
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
82190
82354
|
}
|
|
82191
82355
|
}
|
|
82192
82356
|
}
|
|
82193
|
-
if (
|
|
82194
|
-
if (typeof
|
|
82195
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82357
|
+
if (__o_15["osVersion"] !== undefined) {
|
|
82358
|
+
if (typeof __o_15["osVersion"] !== "string") {
|
|
82359
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
82196
82360
|
}
|
|
82197
82361
|
else {
|
|
82198
|
-
if (
|
|
82199
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
82362
|
+
if (__o_15["osVersion"].length > 64) {
|
|
82363
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
82200
82364
|
}
|
|
82201
82365
|
}
|
|
82202
82366
|
}
|
|
82203
|
-
if (
|
|
82204
|
-
if (typeof
|
|
82205
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82367
|
+
if (__o_15["clientType"] !== undefined) {
|
|
82368
|
+
if (typeof __o_15["clientType"] !== "string") {
|
|
82369
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientType"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientType") });
|
|
82206
82370
|
}
|
|
82207
82371
|
}
|
|
82208
|
-
if (
|
|
82209
|
-
if (typeof
|
|
82210
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82372
|
+
if (__o_15["clientIdSuffix"] !== undefined) {
|
|
82373
|
+
if (typeof __o_15["clientIdSuffix"] !== "string") {
|
|
82374
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientIdSuffix"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientIdSuffix") });
|
|
82211
82375
|
}
|
|
82212
82376
|
}
|
|
82213
|
-
if (typeof
|
|
82214
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82377
|
+
if (typeof __o_15["credentialId"] !== "string") {
|
|
82378
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["credentialId"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("credentialId") });
|
|
82215
82379
|
}
|
|
82216
|
-
if (
|
|
82217
|
-
if (typeof
|
|
82218
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82380
|
+
if (__o_15["deviceName"] !== null) {
|
|
82381
|
+
if (typeof __o_15["deviceName"] !== "string") {
|
|
82382
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["deviceName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("deviceName") });
|
|
82219
82383
|
}
|
|
82220
82384
|
}
|
|
82221
|
-
if (
|
|
82222
|
-
if (typeof
|
|
82223
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82385
|
+
if (__o_15["platform"] !== null) {
|
|
82386
|
+
if (typeof __o_15["platform"] !== "string") {
|
|
82387
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["platform"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("platform") });
|
|
82224
82388
|
}
|
|
82225
82389
|
}
|
|
82226
|
-
if (typeof
|
|
82227
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82390
|
+
if (typeof __o_15["createdAt"] !== "string") {
|
|
82391
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["createdAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("createdAt") });
|
|
82228
82392
|
}
|
|
82229
|
-
if (
|
|
82230
|
-
if (typeof
|
|
82231
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
82393
|
+
if (__o_15["lastSeenAt"] !== null) {
|
|
82394
|
+
if (typeof __o_15["lastSeenAt"] !== "string") {
|
|
82395
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["lastSeenAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("lastSeenAt") });
|
|
82232
82396
|
}
|
|
82233
82397
|
}
|
|
82234
82398
|
}
|
|
@@ -84712,7 +84876,7 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
84712
84876
|
var __enumSet_2 = new Set(["local", "direct", "relay", "hub"]);
|
|
84713
84877
|
function __af_3(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
84714
84878
|
__ae_0 = a[i];
|
|
84715
|
-
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"]) && 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")))) {
|
|
84879
|
+
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")))) {
|
|
84716
84880
|
return false;
|
|
84717
84881
|
}
|
|
84718
84882
|
} return true; }
|
|
@@ -84723,7 +84887,7 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
84723
84887
|
}
|
|
84724
84888
|
} return true; }
|
|
84725
84889
|
var __set_enum_11 = new Set(["none", "password", "localCredential", "device", "peer", "service"]);
|
|
84726
|
-
var
|
|
84890
|
+
var __set_enum_13 = new Set(["local", "direct", "relay", "hub"]);
|
|
84727
84891
|
function safeParse_SessionOutboundMessage7(input) {
|
|
84728
84892
|
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "daemon.auth.status.changed" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["subscriptionId"] === "string" && typeof input["payload"]["status"] === "object" && input["payload"]["status"] !== null && !Array.isArray(input["payload"]["status"]) && typeof input["payload"]["status"]["passwordEnabled"] === "boolean" && (input["payload"]["status"]["managedBy"] === null || ((input["payload"]["status"]["managedBy"] === "environment"))) && Array.isArray(input["payload"]["status"]["sessions"]) && __af_3(input["payload"]["status"]["sessions"]) && Array.isArray(input["payload"]["status"]["devices"]) && __af_5(input["payload"]["status"]["devices"])) {
|
|
84729
84893
|
return { success: true, data: input };
|
|
@@ -84858,6 +85022,22 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
84858
85022
|
if (!__set_enum_11.has(__o_10["credential"])) {
|
|
84859
85023
|
_e.push({ code: "invalid_value", values: ["none", "password", "localCredential", "device", "peer", "service"], input: __o_10["credential"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("credential") });
|
|
84860
85024
|
}
|
|
85025
|
+
if (__o_10["fleetPeer"] !== undefined) {
|
|
85026
|
+
if (typeof __o_10["fleetPeer"] !== "object" || __o_10["fleetPeer"] === null || Array.isArray(__o_10["fleetPeer"])) {
|
|
85027
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_10["fleetPeer"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer") });
|
|
85028
|
+
}
|
|
85029
|
+
else {
|
|
85030
|
+
var __o_12 = __o_10["fleetPeer"];
|
|
85031
|
+
if (typeof __o_12["serverId"] !== "string") {
|
|
85032
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["serverId"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("serverId") });
|
|
85033
|
+
}
|
|
85034
|
+
if (__o_12["label"] !== null) {
|
|
85035
|
+
if (typeof __o_12["label"] !== "string") {
|
|
85036
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_12["label"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("fleetPeer").concat("label") });
|
|
85037
|
+
}
|
|
85038
|
+
}
|
|
85039
|
+
}
|
|
85040
|
+
}
|
|
84861
85041
|
if (typeof __o_10["connectedAt"] !== "string") {
|
|
84862
85042
|
_e.push({ code: "invalid_type", expected: "string", input: __o_10["connectedAt"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("connectedAt") });
|
|
84863
85043
|
}
|
|
@@ -84871,7 +85051,7 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
84871
85051
|
_e.push({ code: "invalid_type", expected: "boolean", input: __o_10["canKeep"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("canKeep") });
|
|
84872
85052
|
}
|
|
84873
85053
|
if (__o_10["transport"] !== undefined) {
|
|
84874
|
-
if (!
|
|
85054
|
+
if (!__set_enum_13.has(__o_10["transport"])) {
|
|
84875
85055
|
_e.push({ code: "invalid_value", values: ["local", "direct", "relay", "hub"], input: __o_10["transport"], path: ["payload"].concat("status").concat("sessions").concat(__i_9).concat("transport") });
|
|
84876
85056
|
}
|
|
84877
85057
|
}
|
|
@@ -84892,101 +85072,101 @@ export const SessionOutboundMessage7 = /* @__PURE__ */ (() => {
|
|
|
84892
85072
|
_e.push({ code: "invalid_type", expected: "array", input: __o_8["devices"], path: ["payload"].concat("status").concat("devices") });
|
|
84893
85073
|
}
|
|
84894
85074
|
else {
|
|
84895
|
-
for (var
|
|
84896
|
-
if (typeof __o_8["devices"][
|
|
84897
|
-
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][
|
|
85075
|
+
for (var __i_14 = 0; __i_14 < __o_8["devices"].length; __i_14++) {
|
|
85076
|
+
if (typeof __o_8["devices"][__i_14] !== "object" || __o_8["devices"][__i_14] === null || Array.isArray(__o_8["devices"][__i_14])) {
|
|
85077
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_8["devices"][__i_14], path: ["payload"].concat("status").concat("devices").concat(__i_14) });
|
|
84898
85078
|
}
|
|
84899
85079
|
else {
|
|
84900
|
-
var
|
|
84901
|
-
if (
|
|
84902
|
-
if (typeof
|
|
84903
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85080
|
+
var __o_15 = __o_8["devices"][__i_14];
|
|
85081
|
+
if (__o_15["customName"] !== undefined) {
|
|
85082
|
+
if (typeof __o_15["customName"] !== "string") {
|
|
85083
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
84904
85084
|
}
|
|
84905
85085
|
else {
|
|
84906
|
-
if (
|
|
84907
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
85086
|
+
if (__o_15["customName"].length > 256) {
|
|
85087
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["customName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("customName") });
|
|
84908
85088
|
}
|
|
84909
85089
|
}
|
|
84910
85090
|
}
|
|
84911
|
-
if (
|
|
84912
|
-
if (typeof
|
|
84913
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85091
|
+
if (__o_15["computerName"] !== undefined) {
|
|
85092
|
+
if (typeof __o_15["computerName"] !== "string") {
|
|
85093
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
84914
85094
|
}
|
|
84915
85095
|
else {
|
|
84916
|
-
if (
|
|
84917
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
85096
|
+
if (__o_15["computerName"].length > 256) {
|
|
85097
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["computerName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("computerName") });
|
|
84918
85098
|
}
|
|
84919
85099
|
}
|
|
84920
85100
|
}
|
|
84921
|
-
if (
|
|
84922
|
-
if (typeof
|
|
84923
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85101
|
+
if (__o_15["model"] !== undefined) {
|
|
85102
|
+
if (typeof __o_15["model"] !== "string") {
|
|
85103
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
84924
85104
|
}
|
|
84925
85105
|
else {
|
|
84926
|
-
if (
|
|
84927
|
-
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input:
|
|
85106
|
+
if (__o_15["model"].length > 256) {
|
|
85107
|
+
_e.push({ code: "too_big", maximum: 256, origin: "string", inclusive: true, input: __o_15["model"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("model") });
|
|
84928
85108
|
}
|
|
84929
85109
|
}
|
|
84930
85110
|
}
|
|
84931
|
-
if (
|
|
84932
|
-
if (typeof
|
|
84933
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85111
|
+
if (__o_15["browser"] !== undefined) {
|
|
85112
|
+
if (typeof __o_15["browser"] !== "string") {
|
|
85113
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
84934
85114
|
}
|
|
84935
85115
|
else {
|
|
84936
|
-
if (
|
|
84937
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
85116
|
+
if (__o_15["browser"].length > 64) {
|
|
85117
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["browser"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("browser") });
|
|
84938
85118
|
}
|
|
84939
85119
|
}
|
|
84940
85120
|
}
|
|
84941
|
-
if (
|
|
84942
|
-
if (typeof
|
|
84943
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85121
|
+
if (__o_15["os"] !== undefined) {
|
|
85122
|
+
if (typeof __o_15["os"] !== "string") {
|
|
85123
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
84944
85124
|
}
|
|
84945
85125
|
else {
|
|
84946
|
-
if (
|
|
84947
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
85126
|
+
if (__o_15["os"].length > 64) {
|
|
85127
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["os"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("os") });
|
|
84948
85128
|
}
|
|
84949
85129
|
}
|
|
84950
85130
|
}
|
|
84951
|
-
if (
|
|
84952
|
-
if (typeof
|
|
84953
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85131
|
+
if (__o_15["osVersion"] !== undefined) {
|
|
85132
|
+
if (typeof __o_15["osVersion"] !== "string") {
|
|
85133
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
84954
85134
|
}
|
|
84955
85135
|
else {
|
|
84956
|
-
if (
|
|
84957
|
-
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input:
|
|
85136
|
+
if (__o_15["osVersion"].length > 64) {
|
|
85137
|
+
_e.push({ code: "too_big", maximum: 64, origin: "string", inclusive: true, input: __o_15["osVersion"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("osVersion") });
|
|
84958
85138
|
}
|
|
84959
85139
|
}
|
|
84960
85140
|
}
|
|
84961
|
-
if (
|
|
84962
|
-
if (typeof
|
|
84963
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85141
|
+
if (__o_15["clientType"] !== undefined) {
|
|
85142
|
+
if (typeof __o_15["clientType"] !== "string") {
|
|
85143
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientType"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientType") });
|
|
84964
85144
|
}
|
|
84965
85145
|
}
|
|
84966
|
-
if (
|
|
84967
|
-
if (typeof
|
|
84968
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85146
|
+
if (__o_15["clientIdSuffix"] !== undefined) {
|
|
85147
|
+
if (typeof __o_15["clientIdSuffix"] !== "string") {
|
|
85148
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["clientIdSuffix"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("clientIdSuffix") });
|
|
84969
85149
|
}
|
|
84970
85150
|
}
|
|
84971
|
-
if (typeof
|
|
84972
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85151
|
+
if (typeof __o_15["credentialId"] !== "string") {
|
|
85152
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["credentialId"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("credentialId") });
|
|
84973
85153
|
}
|
|
84974
|
-
if (
|
|
84975
|
-
if (typeof
|
|
84976
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85154
|
+
if (__o_15["deviceName"] !== null) {
|
|
85155
|
+
if (typeof __o_15["deviceName"] !== "string") {
|
|
85156
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["deviceName"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("deviceName") });
|
|
84977
85157
|
}
|
|
84978
85158
|
}
|
|
84979
|
-
if (
|
|
84980
|
-
if (typeof
|
|
84981
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85159
|
+
if (__o_15["platform"] !== null) {
|
|
85160
|
+
if (typeof __o_15["platform"] !== "string") {
|
|
85161
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["platform"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("platform") });
|
|
84982
85162
|
}
|
|
84983
85163
|
}
|
|
84984
|
-
if (typeof
|
|
84985
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85164
|
+
if (typeof __o_15["createdAt"] !== "string") {
|
|
85165
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["createdAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("createdAt") });
|
|
84986
85166
|
}
|
|
84987
|
-
if (
|
|
84988
|
-
if (typeof
|
|
84989
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
85167
|
+
if (__o_15["lastSeenAt"] !== null) {
|
|
85168
|
+
if (typeof __o_15["lastSeenAt"] !== "string") {
|
|
85169
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_15["lastSeenAt"], path: ["payload"].concat("status").concat("devices").concat(__i_14).concat("lastSeenAt") });
|
|
84990
85170
|
}
|
|
84991
85171
|
}
|
|
84992
85172
|
}
|