@camerontaylor/paseo-protocol 0.12.0-beta.1.fork.1 → 0.12.0-fork.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-automation/capabilities.d.ts +1 -1
- package/dist/browser-automation/rpc-schemas.d.ts +1 -1
- package/dist/generated/validation/ws-outbound-schema-metadata.d.ts +143 -31
- package/dist/generated/validation/ws-outbound.aot.js +1074 -580
- package/dist/messages.d.ts +741 -237
- package/dist/messages.js +13 -7
- package/dist/paseo-tool-call-detail.d.ts +1 -14
- package/dist/paseo-tool-call-detail.js +2 -306
- package/dist/paseo-tool-presentation/agent-message.d.ts +10 -0
- package/dist/paseo-tool-presentation/agent-message.js +22 -0
- package/dist/paseo-tool-presentation/catalog.d.ts +309 -0
- package/dist/paseo-tool-presentation/catalog.js +315 -0
- package/dist/paseo-tool-presentation/detail-sections.d.ts +15 -0
- package/dist/paseo-tool-presentation/detail-sections.js +161 -0
- package/dist/paseo-tool-presentation/index.d.ts +22 -0
- package/dist/paseo-tool-presentation/index.js +62 -0
- package/dist/paseo-tool-presentation/summary-text.d.ts +7 -0
- package/dist/paseo-tool-presentation/summary-text.js +22 -0
- package/dist/provider-icon-names.js +3 -0
- package/dist/tool-call-display.d.ts +2 -0
- package/dist/tool-call-display.js +15 -11
- package/dist/validation/ws-outbound-envelope.d.ts +143 -31
- package/package.json +1 -1
- package/dist/agent-message-display.d.ts +0 -8
- package/dist/agent-message-display.js +0 -20
|
@@ -43999,29 +43999,55 @@ export const SessionOutboundMessage207 = /* @__PURE__ */ (() => {
|
|
|
43999
43999
|
case "error": return typeof __dx_1 === "object" && __dx_1 !== null && !Array.isArray(__dx_1) && __dx_1["status"] === "error" && typeof __dx_1["error"] === "string";
|
|
44000
44000
|
default: return false;
|
|
44001
44001
|
} }
|
|
44002
|
-
|
|
44003
|
-
|
|
44004
|
-
|
|
44005
|
-
|
|
44002
|
+
var __enumSet_16 = new Set(["default", "ok", "warning", "danger"]);
|
|
44003
|
+
function __af_17(a) { for (var __ae_15, i = 0; i < a.length; i++) {
|
|
44004
|
+
__ae_15 = a[i];
|
|
44005
|
+
if (!(typeof __ae_15 === "object" && __ae_15 !== null && !Array.isArray(__ae_15) && typeof __ae_15["id"] === "string" && typeof __ae_15["label"] === "string" && (__ae_15["shortLabel"] === undefined || (typeof __ae_15["shortLabel"] === "string")) && (__ae_15["summary"] === undefined || (typeof __ae_15["summary"] === "boolean")) && (__ae_15["usedPct"] === undefined || ((__ae_15["usedPct"] === null || (typeof __ae_15["usedPct"] === "number" && !Number.isNaN(__ae_15["usedPct"]) && Number.isFinite(__ae_15["usedPct"]))))) && (__ae_15["remainingPct"] === undefined || ((__ae_15["remainingPct"] === null || (typeof __ae_15["remainingPct"] === "number" && !Number.isNaN(__ae_15["remainingPct"]) && Number.isFinite(__ae_15["remainingPct"]))))) && (__ae_15["resetsAt"] === undefined || ((__ae_15["resetsAt"] === null || (typeof __ae_15["resetsAt"] === "string")))) && (__ae_15["runsOutAt"] === undefined || ((__ae_15["runsOutAt"] === null || (typeof __ae_15["runsOutAt"] === "string")))) && (__ae_15["shortfallPct"] === undefined || ((__ae_15["shortfallPct"] === null || (typeof __ae_15["shortfallPct"] === "number" && !Number.isNaN(__ae_15["shortfallPct"]) && Number.isFinite(__ae_15["shortfallPct"]))))) && (__ae_15["tone"] === undefined || (__enumSet_16.has(__ae_15["tone"]))))) {
|
|
44006
|
+
return false;
|
|
44007
|
+
}
|
|
44008
|
+
} return true; }
|
|
44009
|
+
var __enumSet_19 = new Set(["usd", "credits", "requests", "tokens"]);
|
|
44010
|
+
var __enumSet_20 = new Set(["default", "ok", "warning", "danger"]);
|
|
44011
|
+
function __af_21(a) { for (var __ae_18, i = 0; i < a.length; i++) {
|
|
44012
|
+
__ae_18 = a[i];
|
|
44013
|
+
if (!(typeof __ae_18 === "object" && __ae_18 !== null && !Array.isArray(__ae_18) && typeof __ae_18["id"] === "string" && typeof __ae_18["label"] === "string" && (__ae_18["used"] === undefined || ((__ae_18["used"] === null || (typeof __ae_18["used"] === "number" && !Number.isNaN(__ae_18["used"]) && Number.isFinite(__ae_18["used"]))))) && (__ae_18["remaining"] === undefined || ((__ae_18["remaining"] === null || (typeof __ae_18["remaining"] === "number" && !Number.isNaN(__ae_18["remaining"]) && Number.isFinite(__ae_18["remaining"]))))) && (__ae_18["limit"] === undefined || ((__ae_18["limit"] === null || (typeof __ae_18["limit"] === "number" && !Number.isNaN(__ae_18["limit"]) && Number.isFinite(__ae_18["limit"]))))) && __enumSet_19.has(__ae_18["unit"]) && (__ae_18["resetsAt"] === undefined || ((__ae_18["resetsAt"] === null || (typeof __ae_18["resetsAt"] === "string")))) && (__ae_18["tone"] === undefined || (__enumSet_20.has(__ae_18["tone"]))))) {
|
|
44014
|
+
return false;
|
|
44015
|
+
}
|
|
44016
|
+
} return true; }
|
|
44017
|
+
var __enumSet_23 = new Set(["default", "ok", "warning", "danger"]);
|
|
44018
|
+
function __af_24(a) { for (var __ae_22, i = 0; i < a.length; i++) {
|
|
44019
|
+
__ae_22 = a[i];
|
|
44020
|
+
if (!(typeof __ae_22 === "object" && __ae_22 !== null && !Array.isArray(__ae_22) && typeof __ae_22["id"] === "string" && typeof __ae_22["label"] === "string" && typeof __ae_22["value"] === "string" && (__ae_22["tone"] === undefined || (__enumSet_23.has(__ae_22["tone"]))))) {
|
|
44021
|
+
return false;
|
|
44022
|
+
}
|
|
44023
|
+
} return true; }
|
|
44024
|
+
function __du_28(__dx_29) { switch (__dx_29["kind"]) {
|
|
44025
|
+
case "expired": return typeof __dx_29 === "object" && __dx_29 !== null && !Array.isArray(__dx_29) && __dx_29["kind"] === "expired" && typeof __dx_29["expiresAt"] === "string" && __re_re_14.test(__dx_29["expiresAt"]) && (__dx_29["refreshedBy"] === undefined || (typeof __dx_29["refreshedBy"] === "string"));
|
|
44026
|
+
case "rejected": return typeof __dx_29 === "object" && __dx_29 !== null && !Array.isArray(__dx_29) && __dx_29["kind"] === "rejected" && typeof __dx_29["status"] === "number" && Number.isSafeInteger(__dx_29["status"]) && (__dx_29["refreshedBy"] === undefined || (typeof __dx_29["refreshedBy"] === "string"));
|
|
44027
|
+
case "no_quota": return typeof __dx_29 === "object" && __dx_29 !== null && !Array.isArray(__dx_29) && __dx_29["kind"] === "no_quota" && typeof __dx_29["detail"] === "string";
|
|
44006
44028
|
default: return false;
|
|
44007
44029
|
} }
|
|
44008
|
-
function
|
|
44009
|
-
case "unavailable": return typeof
|
|
44010
|
-
case "error": return typeof
|
|
44030
|
+
function __du_26(__dx_27) { switch (__dx_27["status"]) {
|
|
44031
|
+
case "unavailable": return typeof __dx_27 === "object" && __dx_27 !== null && !Array.isArray(__dx_27) && __dx_27["status"] === "unavailable" && typeof __dx_27["problem"] === "object" && __dx_27["problem"] !== null && !Array.isArray(__dx_27["problem"]) && __du_28(__dx_27["problem"]);
|
|
44032
|
+
case "error": return typeof __dx_27 === "object" && __dx_27 !== null && !Array.isArray(__dx_27) && __dx_27["status"] === "error" && typeof __dx_27["error"] === "string";
|
|
44011
44033
|
default: return false;
|
|
44012
44034
|
} }
|
|
44013
|
-
function
|
|
44014
|
-
|
|
44015
|
-
if (!(typeof
|
|
44035
|
+
function __af_30(a) { for (var __ae_25, i = 0; i < a.length; i++) {
|
|
44036
|
+
__ae_25 = a[i];
|
|
44037
|
+
if (!(typeof __ae_25 === "object" && __ae_25 !== null && !Array.isArray(__ae_25) && typeof __ae_25["harness"] === "string" && typeof __ae_25["report"] === "object" && __ae_25["report"] !== null && !Array.isArray(__ae_25["report"]) && __du_26(__ae_25["report"]))) {
|
|
44016
44038
|
return false;
|
|
44017
44039
|
}
|
|
44018
44040
|
} return true; }
|
|
44019
|
-
var
|
|
44020
|
-
var
|
|
44021
|
-
var
|
|
44022
|
-
var
|
|
44041
|
+
var __set_enum_39 = new Set(["default", "ok", "warning", "danger"]);
|
|
44042
|
+
var __set_enum_42 = new Set(["usd", "credits", "requests", "tokens"]);
|
|
44043
|
+
var __set_enum_43 = new Set(["default", "ok", "warning", "danger"]);
|
|
44044
|
+
var __set_enum_46 = new Set(["default", "ok", "warning", "danger"]);
|
|
44045
|
+
var __set_enum_57 = new Set(["default", "ok", "warning", "danger"]);
|
|
44046
|
+
var __set_enum_60 = new Set(["usd", "credits", "requests", "tokens"]);
|
|
44047
|
+
var __set_enum_61 = new Set(["default", "ok", "warning", "danger"]);
|
|
44048
|
+
var __set_enum_64 = new Set(["default", "ok", "warning", "danger"]);
|
|
44023
44049
|
function safeParse_SessionOutboundMessage207(input) {
|
|
44024
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "usage.list_reports.update" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["report"] === "object" && input["payload"]["report"] !== null && !Array.isArray(input["payload"]["report"]) && typeof input["payload"]["report"]["id"] === "string" && typeof input["payload"]["report"]["account"] === "object" && input["payload"]["report"]["account"] !== null && !Array.isArray(input["payload"]["report"]["account"]) && (input["payload"]["report"]["account"]["label"] === undefined || (typeof input["payload"]["report"]["account"]["label"] === "string")) && typeof input["payload"]["report"]["fetchedAt"] === "string" && typeof input["payload"]["report"]["sourceId"] === "string" && typeof input["payload"]["report"]["sourceLabel"] === "string" && (input["payload"]["report"]["icon"] === undefined || (typeof input["payload"]["report"]["icon"] === "string")) && typeof input["payload"]["report"]["report"] === "object" && input["payload"]["report"]["report"] !== null && !Array.isArray(input["payload"]["report"]["report"]) && __du_0(input["payload"]["report"]["report"]) && (input["payload"]["report"]["loginErrors"] === undefined || (Array.isArray(input["payload"]["report"]["loginErrors"]) &&
|
|
44050
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "usage.list_reports.update" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && typeof input["payload"]["report"] === "object" && input["payload"]["report"] !== null && !Array.isArray(input["payload"]["report"]) && typeof input["payload"]["report"]["id"] === "string" && typeof input["payload"]["report"]["account"] === "object" && input["payload"]["report"]["account"] !== null && !Array.isArray(input["payload"]["report"]["account"]) && (input["payload"]["report"]["account"]["label"] === undefined || (typeof input["payload"]["report"]["account"]["label"] === "string")) && typeof input["payload"]["report"]["fetchedAt"] === "string" && typeof input["payload"]["report"]["sourceId"] === "string" && typeof input["payload"]["report"]["sourceLabel"] === "string" && (input["payload"]["report"]["icon"] === undefined || (typeof input["payload"]["report"]["icon"] === "string")) && typeof input["payload"]["report"]["report"] === "object" && input["payload"]["report"]["report"] !== null && !Array.isArray(input["payload"]["report"]["report"]) && __du_0(input["payload"]["report"]["report"]) && (input["payload"]["report"]["successfulAt"] === undefined || (typeof input["payload"]["report"]["successfulAt"] === "string")) && (input["payload"]["report"]["lastSuccessful"] === undefined || (typeof input["payload"]["report"]["lastSuccessful"] === "object" && input["payload"]["report"]["lastSuccessful"] !== null && !Array.isArray(input["payload"]["report"]["lastSuccessful"]) && typeof input["payload"]["report"]["lastSuccessful"]["fetchedAt"] === "string" && typeof input["payload"]["report"]["lastSuccessful"]["report"] === "object" && input["payload"]["report"]["lastSuccessful"]["report"] !== null && !Array.isArray(input["payload"]["report"]["lastSuccessful"]["report"]) && input["payload"]["report"]["lastSuccessful"]["report"]["status"] === "available" && (input["payload"]["report"]["lastSuccessful"]["report"]["planLabel"] === undefined || (typeof input["payload"]["report"]["lastSuccessful"]["report"]["planLabel"] === "string")) && Array.isArray(input["payload"]["report"]["lastSuccessful"]["report"]["windows"]) && __af_17(input["payload"]["report"]["lastSuccessful"]["report"]["windows"]) && (input["payload"]["report"]["lastSuccessful"]["report"]["balances"] === undefined || (Array.isArray(input["payload"]["report"]["lastSuccessful"]["report"]["balances"]) && __af_21(input["payload"]["report"]["lastSuccessful"]["report"]["balances"]))) && (input["payload"]["report"]["lastSuccessful"]["report"]["details"] === undefined || (Array.isArray(input["payload"]["report"]["lastSuccessful"]["report"]["details"]) && __af_24(input["payload"]["report"]["lastSuccessful"]["report"]["details"]))))) && (input["payload"]["report"]["loginErrors"] === undefined || (Array.isArray(input["payload"]["report"]["loginErrors"]) && __af_30(input["payload"]["report"]["loginErrors"])))) {
|
|
44025
44051
|
return { success: true, data: input };
|
|
44026
44052
|
}
|
|
44027
44053
|
var _e = [];
|
|
@@ -44030,256 +44056,256 @@ export const SessionOutboundMessage207 = /* @__PURE__ */ (() => {
|
|
|
44030
44056
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
44031
44057
|
}
|
|
44032
44058
|
else {
|
|
44033
|
-
var
|
|
44034
|
-
if (
|
|
44035
|
-
_e.push({ code: "invalid_value", values: ["usage.list_reports.update"], input:
|
|
44059
|
+
var __o_31 = _d;
|
|
44060
|
+
if (__o_31["type"] !== "usage.list_reports.update") {
|
|
44061
|
+
_e.push({ code: "invalid_value", values: ["usage.list_reports.update"], input: __o_31["type"], path: ["type"] });
|
|
44036
44062
|
}
|
|
44037
|
-
if (typeof
|
|
44038
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44063
|
+
if (typeof __o_31["payload"] !== "object" || __o_31["payload"] === null || Array.isArray(__o_31["payload"])) {
|
|
44064
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_31["payload"], path: ["payload"] });
|
|
44039
44065
|
}
|
|
44040
44066
|
else {
|
|
44041
|
-
var
|
|
44042
|
-
if (typeof
|
|
44043
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44067
|
+
var __o_32 = __o_31["payload"];
|
|
44068
|
+
if (typeof __o_32["requestId"] !== "string") {
|
|
44069
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_32["requestId"], path: ["payload"].concat("requestId") });
|
|
44044
44070
|
}
|
|
44045
|
-
if (typeof
|
|
44046
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44071
|
+
if (typeof __o_32["report"] !== "object" || __o_32["report"] === null || Array.isArray(__o_32["report"])) {
|
|
44072
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_32["report"], path: ["payload"].concat("report") });
|
|
44047
44073
|
}
|
|
44048
44074
|
else {
|
|
44049
|
-
var
|
|
44050
|
-
if (typeof
|
|
44051
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44075
|
+
var __o_33 = __o_32["report"];
|
|
44076
|
+
if (typeof __o_33["id"] !== "string") {
|
|
44077
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_33["id"], path: ["payload"].concat("report").concat("id") });
|
|
44052
44078
|
}
|
|
44053
|
-
if (typeof
|
|
44054
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44079
|
+
if (typeof __o_33["account"] !== "object" || __o_33["account"] === null || Array.isArray(__o_33["account"])) {
|
|
44080
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_33["account"], path: ["payload"].concat("report").concat("account") });
|
|
44055
44081
|
}
|
|
44056
44082
|
else {
|
|
44057
|
-
var
|
|
44058
|
-
if (
|
|
44059
|
-
if (typeof
|
|
44060
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44083
|
+
var __o_34 = __o_33["account"];
|
|
44084
|
+
if (__o_34["label"] !== undefined) {
|
|
44085
|
+
if (typeof __o_34["label"] !== "string") {
|
|
44086
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_34["label"], path: ["payload"].concat("report").concat("account").concat("label") });
|
|
44061
44087
|
}
|
|
44062
44088
|
}
|
|
44063
44089
|
}
|
|
44064
|
-
if (typeof
|
|
44065
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44090
|
+
if (typeof __o_33["fetchedAt"] !== "string") {
|
|
44091
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_33["fetchedAt"], path: ["payload"].concat("report").concat("fetchedAt") });
|
|
44066
44092
|
}
|
|
44067
|
-
if (typeof
|
|
44068
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44093
|
+
if (typeof __o_33["sourceId"] !== "string") {
|
|
44094
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_33["sourceId"], path: ["payload"].concat("report").concat("sourceId") });
|
|
44069
44095
|
}
|
|
44070
|
-
if (typeof
|
|
44071
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44096
|
+
if (typeof __o_33["sourceLabel"] !== "string") {
|
|
44097
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_33["sourceLabel"], path: ["payload"].concat("report").concat("sourceLabel") });
|
|
44072
44098
|
}
|
|
44073
|
-
if (
|
|
44074
|
-
if (typeof
|
|
44075
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44099
|
+
if (__o_33["icon"] !== undefined) {
|
|
44100
|
+
if (typeof __o_33["icon"] !== "string") {
|
|
44101
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_33["icon"], path: ["payload"].concat("report").concat("icon") });
|
|
44076
44102
|
}
|
|
44077
44103
|
}
|
|
44078
|
-
if (typeof
|
|
44079
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44104
|
+
if (typeof __o_33["report"] !== "object" || __o_33["report"] === null || Array.isArray(__o_33["report"])) {
|
|
44105
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_33["report"], path: ["payload"].concat("report").concat("report") });
|
|
44080
44106
|
}
|
|
44081
44107
|
else {
|
|
44082
|
-
var
|
|
44083
|
-
switch (
|
|
44108
|
+
var __du_35 = __o_33["report"];
|
|
44109
|
+
switch (__du_35["status"]) {
|
|
44084
44110
|
case "available":
|
|
44085
|
-
if (typeof
|
|
44086
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44111
|
+
if (typeof __du_35 !== "object" || __du_35 === null || Array.isArray(__du_35)) {
|
|
44112
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_35, path: ["payload"].concat("report").concat("report") });
|
|
44087
44113
|
}
|
|
44088
44114
|
else {
|
|
44089
|
-
var
|
|
44090
|
-
if (
|
|
44091
|
-
_e.push({ code: "invalid_value", values: ["available"], input:
|
|
44115
|
+
var __o_36 = __du_35;
|
|
44116
|
+
if (__o_36["status"] !== "available") {
|
|
44117
|
+
_e.push({ code: "invalid_value", values: ["available"], input: __o_36["status"], path: ["payload"].concat("report").concat("report").concat("status") });
|
|
44092
44118
|
}
|
|
44093
|
-
if (
|
|
44094
|
-
if (typeof
|
|
44095
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44119
|
+
if (__o_36["planLabel"] !== undefined) {
|
|
44120
|
+
if (typeof __o_36["planLabel"] !== "string") {
|
|
44121
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["planLabel"], path: ["payload"].concat("report").concat("report").concat("planLabel") });
|
|
44096
44122
|
}
|
|
44097
44123
|
}
|
|
44098
|
-
if (!Array.isArray(
|
|
44099
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
44124
|
+
if (!Array.isArray(__o_36["windows"])) {
|
|
44125
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_36["windows"], path: ["payload"].concat("report").concat("report").concat("windows") });
|
|
44100
44126
|
}
|
|
44101
44127
|
else {
|
|
44102
|
-
for (var
|
|
44103
|
-
if (typeof
|
|
44104
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44128
|
+
for (var __i_37 = 0; __i_37 < __o_36["windows"].length; __i_37++) {
|
|
44129
|
+
if (typeof __o_36["windows"][__i_37] !== "object" || __o_36["windows"][__i_37] === null || Array.isArray(__o_36["windows"][__i_37])) {
|
|
44130
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["windows"][__i_37], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37) });
|
|
44105
44131
|
}
|
|
44106
44132
|
else {
|
|
44107
|
-
var
|
|
44108
|
-
if (typeof
|
|
44109
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44133
|
+
var __o_38 = __o_36["windows"][__i_37];
|
|
44134
|
+
if (typeof __o_38["id"] !== "string") {
|
|
44135
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["id"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("id") });
|
|
44110
44136
|
}
|
|
44111
|
-
if (typeof
|
|
44112
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44137
|
+
if (typeof __o_38["label"] !== "string") {
|
|
44138
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["label"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("label") });
|
|
44113
44139
|
}
|
|
44114
|
-
if (
|
|
44115
|
-
if (typeof
|
|
44116
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44140
|
+
if (__o_38["shortLabel"] !== undefined) {
|
|
44141
|
+
if (typeof __o_38["shortLabel"] !== "string") {
|
|
44142
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["shortLabel"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("shortLabel") });
|
|
44117
44143
|
}
|
|
44118
44144
|
}
|
|
44119
|
-
if (
|
|
44120
|
-
if (typeof
|
|
44121
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
44145
|
+
if (__o_38["summary"] !== undefined) {
|
|
44146
|
+
if (typeof __o_38["summary"] !== "boolean") {
|
|
44147
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_38["summary"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("summary") });
|
|
44122
44148
|
}
|
|
44123
44149
|
}
|
|
44124
|
-
if (
|
|
44125
|
-
if (
|
|
44126
|
-
if (typeof
|
|
44127
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44150
|
+
if (__o_38["usedPct"] !== undefined) {
|
|
44151
|
+
if (__o_38["usedPct"] !== null) {
|
|
44152
|
+
if (typeof __o_38["usedPct"] !== "number") {
|
|
44153
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_38["usedPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("usedPct") });
|
|
44128
44154
|
}
|
|
44129
|
-
else if (Number.isNaN(
|
|
44130
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44155
|
+
else if (Number.isNaN(__o_38["usedPct"])) {
|
|
44156
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_38["usedPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("usedPct") });
|
|
44131
44157
|
}
|
|
44132
|
-
else if (!Number.isFinite(
|
|
44133
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44158
|
+
else if (!Number.isFinite(__o_38["usedPct"])) {
|
|
44159
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_38["usedPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("usedPct") });
|
|
44134
44160
|
}
|
|
44135
44161
|
}
|
|
44136
44162
|
}
|
|
44137
|
-
if (
|
|
44138
|
-
if (
|
|
44139
|
-
if (typeof
|
|
44140
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44163
|
+
if (__o_38["remainingPct"] !== undefined) {
|
|
44164
|
+
if (__o_38["remainingPct"] !== null) {
|
|
44165
|
+
if (typeof __o_38["remainingPct"] !== "number") {
|
|
44166
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_38["remainingPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("remainingPct") });
|
|
44141
44167
|
}
|
|
44142
|
-
else if (Number.isNaN(
|
|
44143
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44168
|
+
else if (Number.isNaN(__o_38["remainingPct"])) {
|
|
44169
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_38["remainingPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("remainingPct") });
|
|
44144
44170
|
}
|
|
44145
|
-
else if (!Number.isFinite(
|
|
44146
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44171
|
+
else if (!Number.isFinite(__o_38["remainingPct"])) {
|
|
44172
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_38["remainingPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("remainingPct") });
|
|
44147
44173
|
}
|
|
44148
44174
|
}
|
|
44149
44175
|
}
|
|
44150
|
-
if (
|
|
44151
|
-
if (
|
|
44152
|
-
if (typeof
|
|
44153
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44176
|
+
if (__o_38["resetsAt"] !== undefined) {
|
|
44177
|
+
if (__o_38["resetsAt"] !== null) {
|
|
44178
|
+
if (typeof __o_38["resetsAt"] !== "string") {
|
|
44179
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["resetsAt"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("resetsAt") });
|
|
44154
44180
|
}
|
|
44155
44181
|
}
|
|
44156
44182
|
}
|
|
44157
|
-
if (
|
|
44158
|
-
if (
|
|
44159
|
-
if (typeof
|
|
44160
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44183
|
+
if (__o_38["runsOutAt"] !== undefined) {
|
|
44184
|
+
if (__o_38["runsOutAt"] !== null) {
|
|
44185
|
+
if (typeof __o_38["runsOutAt"] !== "string") {
|
|
44186
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_38["runsOutAt"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("runsOutAt") });
|
|
44161
44187
|
}
|
|
44162
44188
|
}
|
|
44163
44189
|
}
|
|
44164
|
-
if (
|
|
44165
|
-
if (
|
|
44166
|
-
if (typeof
|
|
44167
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44190
|
+
if (__o_38["shortfallPct"] !== undefined) {
|
|
44191
|
+
if (__o_38["shortfallPct"] !== null) {
|
|
44192
|
+
if (typeof __o_38["shortfallPct"] !== "number") {
|
|
44193
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_38["shortfallPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("shortfallPct") });
|
|
44168
44194
|
}
|
|
44169
|
-
else if (Number.isNaN(
|
|
44170
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44195
|
+
else if (Number.isNaN(__o_38["shortfallPct"])) {
|
|
44196
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_38["shortfallPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("shortfallPct") });
|
|
44171
44197
|
}
|
|
44172
|
-
else if (!Number.isFinite(
|
|
44173
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44198
|
+
else if (!Number.isFinite(__o_38["shortfallPct"])) {
|
|
44199
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_38["shortfallPct"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("shortfallPct") });
|
|
44174
44200
|
}
|
|
44175
44201
|
}
|
|
44176
44202
|
}
|
|
44177
|
-
if (
|
|
44178
|
-
if (!
|
|
44179
|
-
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input:
|
|
44203
|
+
if (__o_38["tone"] !== undefined) {
|
|
44204
|
+
if (!__set_enum_39.has(__o_38["tone"])) {
|
|
44205
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_38["tone"], path: ["payload"].concat("report").concat("report").concat("windows").concat(__i_37).concat("tone") });
|
|
44180
44206
|
}
|
|
44181
44207
|
}
|
|
44182
44208
|
}
|
|
44183
44209
|
}
|
|
44184
44210
|
}
|
|
44185
|
-
if (
|
|
44186
|
-
if (!Array.isArray(
|
|
44187
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
44211
|
+
if (__o_36["balances"] !== undefined) {
|
|
44212
|
+
if (!Array.isArray(__o_36["balances"])) {
|
|
44213
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_36["balances"], path: ["payload"].concat("report").concat("report").concat("balances") });
|
|
44188
44214
|
}
|
|
44189
44215
|
else {
|
|
44190
|
-
for (var
|
|
44191
|
-
if (typeof
|
|
44192
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44216
|
+
for (var __i_40 = 0; __i_40 < __o_36["balances"].length; __i_40++) {
|
|
44217
|
+
if (typeof __o_36["balances"][__i_40] !== "object" || __o_36["balances"][__i_40] === null || Array.isArray(__o_36["balances"][__i_40])) {
|
|
44218
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["balances"][__i_40], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40) });
|
|
44193
44219
|
}
|
|
44194
44220
|
else {
|
|
44195
|
-
var
|
|
44196
|
-
if (typeof
|
|
44197
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44221
|
+
var __o_41 = __o_36["balances"][__i_40];
|
|
44222
|
+
if (typeof __o_41["id"] !== "string") {
|
|
44223
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["id"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("id") });
|
|
44198
44224
|
}
|
|
44199
|
-
if (typeof
|
|
44200
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44225
|
+
if (typeof __o_41["label"] !== "string") {
|
|
44226
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["label"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("label") });
|
|
44201
44227
|
}
|
|
44202
|
-
if (
|
|
44203
|
-
if (
|
|
44204
|
-
if (typeof
|
|
44205
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44228
|
+
if (__o_41["used"] !== undefined) {
|
|
44229
|
+
if (__o_41["used"] !== null) {
|
|
44230
|
+
if (typeof __o_41["used"] !== "number") {
|
|
44231
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_41["used"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("used") });
|
|
44206
44232
|
}
|
|
44207
|
-
else if (Number.isNaN(
|
|
44208
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44233
|
+
else if (Number.isNaN(__o_41["used"])) {
|
|
44234
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_41["used"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("used") });
|
|
44209
44235
|
}
|
|
44210
|
-
else if (!Number.isFinite(
|
|
44211
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44236
|
+
else if (!Number.isFinite(__o_41["used"])) {
|
|
44237
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_41["used"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("used") });
|
|
44212
44238
|
}
|
|
44213
44239
|
}
|
|
44214
44240
|
}
|
|
44215
|
-
if (
|
|
44216
|
-
if (
|
|
44217
|
-
if (typeof
|
|
44218
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44241
|
+
if (__o_41["remaining"] !== undefined) {
|
|
44242
|
+
if (__o_41["remaining"] !== null) {
|
|
44243
|
+
if (typeof __o_41["remaining"] !== "number") {
|
|
44244
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_41["remaining"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("remaining") });
|
|
44219
44245
|
}
|
|
44220
|
-
else if (Number.isNaN(
|
|
44221
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44246
|
+
else if (Number.isNaN(__o_41["remaining"])) {
|
|
44247
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_41["remaining"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("remaining") });
|
|
44222
44248
|
}
|
|
44223
|
-
else if (!Number.isFinite(
|
|
44224
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44249
|
+
else if (!Number.isFinite(__o_41["remaining"])) {
|
|
44250
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_41["remaining"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("remaining") });
|
|
44225
44251
|
}
|
|
44226
44252
|
}
|
|
44227
44253
|
}
|
|
44228
|
-
if (
|
|
44229
|
-
if (
|
|
44230
|
-
if (typeof
|
|
44231
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44254
|
+
if (__o_41["limit"] !== undefined) {
|
|
44255
|
+
if (__o_41["limit"] !== null) {
|
|
44256
|
+
if (typeof __o_41["limit"] !== "number") {
|
|
44257
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_41["limit"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("limit") });
|
|
44232
44258
|
}
|
|
44233
|
-
else if (Number.isNaN(
|
|
44234
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44259
|
+
else if (Number.isNaN(__o_41["limit"])) {
|
|
44260
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_41["limit"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("limit") });
|
|
44235
44261
|
}
|
|
44236
|
-
else if (!Number.isFinite(
|
|
44237
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44262
|
+
else if (!Number.isFinite(__o_41["limit"])) {
|
|
44263
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_41["limit"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("limit") });
|
|
44238
44264
|
}
|
|
44239
44265
|
}
|
|
44240
44266
|
}
|
|
44241
|
-
if (!
|
|
44242
|
-
_e.push({ code: "invalid_value", values: ["usd", "credits", "requests", "tokens"], input:
|
|
44267
|
+
if (!__set_enum_42.has(__o_41["unit"])) {
|
|
44268
|
+
_e.push({ code: "invalid_value", values: ["usd", "credits", "requests", "tokens"], input: __o_41["unit"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("unit") });
|
|
44243
44269
|
}
|
|
44244
|
-
if (
|
|
44245
|
-
if (
|
|
44246
|
-
if (typeof
|
|
44247
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44270
|
+
if (__o_41["resetsAt"] !== undefined) {
|
|
44271
|
+
if (__o_41["resetsAt"] !== null) {
|
|
44272
|
+
if (typeof __o_41["resetsAt"] !== "string") {
|
|
44273
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["resetsAt"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("resetsAt") });
|
|
44248
44274
|
}
|
|
44249
44275
|
}
|
|
44250
44276
|
}
|
|
44251
|
-
if (
|
|
44252
|
-
if (!
|
|
44253
|
-
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input:
|
|
44277
|
+
if (__o_41["tone"] !== undefined) {
|
|
44278
|
+
if (!__set_enum_43.has(__o_41["tone"])) {
|
|
44279
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_41["tone"], path: ["payload"].concat("report").concat("report").concat("balances").concat(__i_40).concat("tone") });
|
|
44254
44280
|
}
|
|
44255
44281
|
}
|
|
44256
44282
|
}
|
|
44257
44283
|
}
|
|
44258
44284
|
}
|
|
44259
44285
|
}
|
|
44260
|
-
if (
|
|
44261
|
-
if (!Array.isArray(
|
|
44262
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
44286
|
+
if (__o_36["details"] !== undefined) {
|
|
44287
|
+
if (!Array.isArray(__o_36["details"])) {
|
|
44288
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_36["details"], path: ["payload"].concat("report").concat("report").concat("details") });
|
|
44263
44289
|
}
|
|
44264
44290
|
else {
|
|
44265
|
-
for (var
|
|
44266
|
-
if (typeof
|
|
44267
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44291
|
+
for (var __i_44 = 0; __i_44 < __o_36["details"].length; __i_44++) {
|
|
44292
|
+
if (typeof __o_36["details"][__i_44] !== "object" || __o_36["details"][__i_44] === null || Array.isArray(__o_36["details"][__i_44])) {
|
|
44293
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["details"][__i_44], path: ["payload"].concat("report").concat("report").concat("details").concat(__i_44) });
|
|
44268
44294
|
}
|
|
44269
44295
|
else {
|
|
44270
|
-
var
|
|
44271
|
-
if (typeof
|
|
44272
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44296
|
+
var __o_45 = __o_36["details"][__i_44];
|
|
44297
|
+
if (typeof __o_45["id"] !== "string") {
|
|
44298
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_45["id"], path: ["payload"].concat("report").concat("report").concat("details").concat(__i_44).concat("id") });
|
|
44273
44299
|
}
|
|
44274
|
-
if (typeof
|
|
44275
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44300
|
+
if (typeof __o_45["label"] !== "string") {
|
|
44301
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_45["label"], path: ["payload"].concat("report").concat("report").concat("details").concat(__i_44).concat("label") });
|
|
44276
44302
|
}
|
|
44277
|
-
if (typeof
|
|
44278
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44303
|
+
if (typeof __o_45["value"] !== "string") {
|
|
44304
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_45["value"], path: ["payload"].concat("report").concat("report").concat("details").concat(__i_44).concat("value") });
|
|
44279
44305
|
}
|
|
44280
|
-
if (
|
|
44281
|
-
if (!
|
|
44282
|
-
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input:
|
|
44306
|
+
if (__o_45["tone"] !== undefined) {
|
|
44307
|
+
if (!__set_enum_46.has(__o_45["tone"])) {
|
|
44308
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_45["tone"], path: ["payload"].concat("report").concat("report").concat("details").concat(__i_44).concat("tone") });
|
|
44283
44309
|
}
|
|
44284
44310
|
}
|
|
44285
44311
|
}
|
|
@@ -44289,233 +44315,454 @@ export const SessionOutboundMessage207 = /* @__PURE__ */ (() => {
|
|
|
44289
44315
|
}
|
|
44290
44316
|
break;
|
|
44291
44317
|
case "unavailable":
|
|
44292
|
-
if (typeof
|
|
44293
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44318
|
+
if (typeof __du_35 !== "object" || __du_35 === null || Array.isArray(__du_35)) {
|
|
44319
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_35, path: ["payload"].concat("report").concat("report") });
|
|
44294
44320
|
}
|
|
44295
44321
|
else {
|
|
44296
|
-
var
|
|
44297
|
-
if (
|
|
44298
|
-
_e.push({ code: "invalid_value", values: ["unavailable"], input:
|
|
44322
|
+
var __o_47 = __du_35;
|
|
44323
|
+
if (__o_47["status"] !== "unavailable") {
|
|
44324
|
+
_e.push({ code: "invalid_value", values: ["unavailable"], input: __o_47["status"], path: ["payload"].concat("report").concat("report").concat("status") });
|
|
44299
44325
|
}
|
|
44300
|
-
if (typeof
|
|
44301
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44326
|
+
if (typeof __o_47["problem"] !== "object" || __o_47["problem"] === null || Array.isArray(__o_47["problem"])) {
|
|
44327
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_47["problem"], path: ["payload"].concat("report").concat("report").concat("problem") });
|
|
44302
44328
|
}
|
|
44303
44329
|
else {
|
|
44304
|
-
var
|
|
44305
|
-
switch (
|
|
44330
|
+
var __du_48 = __o_47["problem"];
|
|
44331
|
+
switch (__du_48["kind"]) {
|
|
44306
44332
|
case "expired":
|
|
44307
|
-
if (typeof
|
|
44308
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44333
|
+
if (typeof __du_48 !== "object" || __du_48 === null || Array.isArray(__du_48)) {
|
|
44334
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_48, path: ["payload"].concat("report").concat("report").concat("problem") });
|
|
44309
44335
|
}
|
|
44310
44336
|
else {
|
|
44311
|
-
var
|
|
44312
|
-
if (
|
|
44313
|
-
_e.push({ code: "invalid_value", values: ["expired"], input:
|
|
44337
|
+
var __o_49 = __du_48;
|
|
44338
|
+
if (__o_49["kind"] !== "expired") {
|
|
44339
|
+
_e.push({ code: "invalid_value", values: ["expired"], input: __o_49["kind"], path: ["payload"].concat("report").concat("report").concat("problem").concat("kind") });
|
|
44314
44340
|
}
|
|
44315
|
-
if (typeof
|
|
44316
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44341
|
+
if (typeof __o_49["expiresAt"] !== "string") {
|
|
44342
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_49["expiresAt"], path: ["payload"].concat("report").concat("report").concat("problem").concat("expiresAt") });
|
|
44317
44343
|
}
|
|
44318
44344
|
else {
|
|
44319
|
-
if (!__re_re_14.test(
|
|
44320
|
-
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_14.toString(), origin: "string", input:
|
|
44345
|
+
if (!__re_re_14.test(__o_49["expiresAt"])) {
|
|
44346
|
+
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_14.toString(), origin: "string", input: __o_49["expiresAt"], path: ["payload"].concat("report").concat("report").concat("problem").concat("expiresAt") });
|
|
44321
44347
|
}
|
|
44322
44348
|
}
|
|
44323
|
-
if (
|
|
44324
|
-
if (typeof
|
|
44325
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44349
|
+
if (__o_49["refreshedBy"] !== undefined) {
|
|
44350
|
+
if (typeof __o_49["refreshedBy"] !== "string") {
|
|
44351
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_49["refreshedBy"], path: ["payload"].concat("report").concat("report").concat("problem").concat("refreshedBy") });
|
|
44326
44352
|
}
|
|
44327
44353
|
}
|
|
44328
44354
|
}
|
|
44329
44355
|
break;
|
|
44330
44356
|
case "rejected":
|
|
44331
|
-
if (typeof
|
|
44332
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44357
|
+
if (typeof __du_48 !== "object" || __du_48 === null || Array.isArray(__du_48)) {
|
|
44358
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_48, path: ["payload"].concat("report").concat("report").concat("problem") });
|
|
44333
44359
|
}
|
|
44334
44360
|
else {
|
|
44335
|
-
var
|
|
44336
|
-
if (
|
|
44337
|
-
_e.push({ code: "invalid_value", values: ["rejected"], input:
|
|
44361
|
+
var __o_50 = __du_48;
|
|
44362
|
+
if (__o_50["kind"] !== "rejected") {
|
|
44363
|
+
_e.push({ code: "invalid_value", values: ["rejected"], input: __o_50["kind"], path: ["payload"].concat("report").concat("report").concat("problem").concat("kind") });
|
|
44338
44364
|
}
|
|
44339
|
-
if (typeof
|
|
44340
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44365
|
+
if (typeof __o_50["status"] !== "number") {
|
|
44366
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_50["status"], path: ["payload"].concat("report").concat("report").concat("problem").concat("status") });
|
|
44341
44367
|
}
|
|
44342
|
-
else if (Number.isNaN(
|
|
44343
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44368
|
+
else if (Number.isNaN(__o_50["status"])) {
|
|
44369
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_50["status"], path: ["payload"].concat("report").concat("report").concat("problem").concat("status") });
|
|
44344
44370
|
}
|
|
44345
|
-
else if (!Number.isFinite(
|
|
44346
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44371
|
+
else if (!Number.isFinite(__o_50["status"])) {
|
|
44372
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_50["status"], path: ["payload"].concat("report").concat("report").concat("problem").concat("status") });
|
|
44347
44373
|
}
|
|
44348
44374
|
else {
|
|
44349
|
-
if (!Number.isSafeInteger(
|
|
44350
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
44375
|
+
if (!Number.isSafeInteger(__o_50["status"])) {
|
|
44376
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_50["status"], path: ["payload"].concat("report").concat("report").concat("problem").concat("status") });
|
|
44351
44377
|
}
|
|
44352
44378
|
}
|
|
44353
|
-
if (
|
|
44354
|
-
if (typeof
|
|
44355
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44379
|
+
if (__o_50["refreshedBy"] !== undefined) {
|
|
44380
|
+
if (typeof __o_50["refreshedBy"] !== "string") {
|
|
44381
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_50["refreshedBy"], path: ["payload"].concat("report").concat("report").concat("problem").concat("refreshedBy") });
|
|
44356
44382
|
}
|
|
44357
44383
|
}
|
|
44358
44384
|
}
|
|
44359
44385
|
break;
|
|
44360
44386
|
case "no_quota":
|
|
44361
|
-
if (typeof
|
|
44362
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44387
|
+
if (typeof __du_48 !== "object" || __du_48 === null || Array.isArray(__du_48)) {
|
|
44388
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_48, path: ["payload"].concat("report").concat("report").concat("problem") });
|
|
44363
44389
|
}
|
|
44364
44390
|
else {
|
|
44365
|
-
var
|
|
44366
|
-
if (
|
|
44367
|
-
_e.push({ code: "invalid_value", values: ["no_quota"], input:
|
|
44391
|
+
var __o_51 = __du_48;
|
|
44392
|
+
if (__o_51["kind"] !== "no_quota") {
|
|
44393
|
+
_e.push({ code: "invalid_value", values: ["no_quota"], input: __o_51["kind"], path: ["payload"].concat("report").concat("report").concat("problem").concat("kind") });
|
|
44368
44394
|
}
|
|
44369
|
-
if (typeof
|
|
44370
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44395
|
+
if (typeof __o_51["detail"] !== "string") {
|
|
44396
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_51["detail"], path: ["payload"].concat("report").concat("report").concat("problem").concat("detail") });
|
|
44371
44397
|
}
|
|
44372
44398
|
}
|
|
44373
44399
|
break;
|
|
44374
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input:
|
|
44400
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input: __o_47["problem"], path: ["payload"].concat("report").concat("report").concat("problem").concat("kind") });
|
|
44375
44401
|
}
|
|
44376
44402
|
}
|
|
44377
44403
|
}
|
|
44378
44404
|
break;
|
|
44379
44405
|
case "error":
|
|
44380
|
-
if (typeof
|
|
44381
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44406
|
+
if (typeof __du_35 !== "object" || __du_35 === null || Array.isArray(__du_35)) {
|
|
44407
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_35, path: ["payload"].concat("report").concat("report") });
|
|
44382
44408
|
}
|
|
44383
44409
|
else {
|
|
44384
|
-
var
|
|
44385
|
-
if (
|
|
44386
|
-
_e.push({ code: "invalid_value", values: ["error"], input:
|
|
44410
|
+
var __o_52 = __du_35;
|
|
44411
|
+
if (__o_52["status"] !== "error") {
|
|
44412
|
+
_e.push({ code: "invalid_value", values: ["error"], input: __o_52["status"], path: ["payload"].concat("report").concat("report").concat("status") });
|
|
44387
44413
|
}
|
|
44388
|
-
if (typeof
|
|
44389
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44414
|
+
if (typeof __o_52["error"] !== "string") {
|
|
44415
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_52["error"], path: ["payload"].concat("report").concat("report").concat("error") });
|
|
44390
44416
|
}
|
|
44391
44417
|
}
|
|
44392
44418
|
break;
|
|
44393
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["available", "unavailable", "error"], input:
|
|
44419
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["available", "unavailable", "error"], input: __o_33["report"], path: ["payload"].concat("report").concat("report").concat("status") });
|
|
44420
|
+
}
|
|
44421
|
+
}
|
|
44422
|
+
if (__o_33["successfulAt"] !== undefined) {
|
|
44423
|
+
if (typeof __o_33["successfulAt"] !== "string") {
|
|
44424
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_33["successfulAt"], path: ["payload"].concat("report").concat("successfulAt") });
|
|
44425
|
+
}
|
|
44426
|
+
}
|
|
44427
|
+
if (__o_33["lastSuccessful"] !== undefined) {
|
|
44428
|
+
if (typeof __o_33["lastSuccessful"] !== "object" || __o_33["lastSuccessful"] === null || Array.isArray(__o_33["lastSuccessful"])) {
|
|
44429
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_33["lastSuccessful"], path: ["payload"].concat("report").concat("lastSuccessful") });
|
|
44430
|
+
}
|
|
44431
|
+
else {
|
|
44432
|
+
var __o_53 = __o_33["lastSuccessful"];
|
|
44433
|
+
if (typeof __o_53["fetchedAt"] !== "string") {
|
|
44434
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_53["fetchedAt"], path: ["payload"].concat("report").concat("lastSuccessful").concat("fetchedAt") });
|
|
44435
|
+
}
|
|
44436
|
+
if (typeof __o_53["report"] !== "object" || __o_53["report"] === null || Array.isArray(__o_53["report"])) {
|
|
44437
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_53["report"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report") });
|
|
44438
|
+
}
|
|
44439
|
+
else {
|
|
44440
|
+
var __o_54 = __o_53["report"];
|
|
44441
|
+
if (__o_54["status"] !== "available") {
|
|
44442
|
+
_e.push({ code: "invalid_value", values: ["available"], input: __o_54["status"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("status") });
|
|
44443
|
+
}
|
|
44444
|
+
if (__o_54["planLabel"] !== undefined) {
|
|
44445
|
+
if (typeof __o_54["planLabel"] !== "string") {
|
|
44446
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_54["planLabel"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("planLabel") });
|
|
44447
|
+
}
|
|
44448
|
+
}
|
|
44449
|
+
if (!Array.isArray(__o_54["windows"])) {
|
|
44450
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_54["windows"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows") });
|
|
44451
|
+
}
|
|
44452
|
+
else {
|
|
44453
|
+
for (var __i_55 = 0; __i_55 < __o_54["windows"].length; __i_55++) {
|
|
44454
|
+
if (typeof __o_54["windows"][__i_55] !== "object" || __o_54["windows"][__i_55] === null || Array.isArray(__o_54["windows"][__i_55])) {
|
|
44455
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_54["windows"][__i_55], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55) });
|
|
44456
|
+
}
|
|
44457
|
+
else {
|
|
44458
|
+
var __o_56 = __o_54["windows"][__i_55];
|
|
44459
|
+
if (typeof __o_56["id"] !== "string") {
|
|
44460
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_56["id"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("id") });
|
|
44461
|
+
}
|
|
44462
|
+
if (typeof __o_56["label"] !== "string") {
|
|
44463
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_56["label"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("label") });
|
|
44464
|
+
}
|
|
44465
|
+
if (__o_56["shortLabel"] !== undefined) {
|
|
44466
|
+
if (typeof __o_56["shortLabel"] !== "string") {
|
|
44467
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_56["shortLabel"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("shortLabel") });
|
|
44468
|
+
}
|
|
44469
|
+
}
|
|
44470
|
+
if (__o_56["summary"] !== undefined) {
|
|
44471
|
+
if (typeof __o_56["summary"] !== "boolean") {
|
|
44472
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_56["summary"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("summary") });
|
|
44473
|
+
}
|
|
44474
|
+
}
|
|
44475
|
+
if (__o_56["usedPct"] !== undefined) {
|
|
44476
|
+
if (__o_56["usedPct"] !== null) {
|
|
44477
|
+
if (typeof __o_56["usedPct"] !== "number") {
|
|
44478
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_56["usedPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("usedPct") });
|
|
44479
|
+
}
|
|
44480
|
+
else if (Number.isNaN(__o_56["usedPct"])) {
|
|
44481
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_56["usedPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("usedPct") });
|
|
44482
|
+
}
|
|
44483
|
+
else if (!Number.isFinite(__o_56["usedPct"])) {
|
|
44484
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_56["usedPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("usedPct") });
|
|
44485
|
+
}
|
|
44486
|
+
}
|
|
44487
|
+
}
|
|
44488
|
+
if (__o_56["remainingPct"] !== undefined) {
|
|
44489
|
+
if (__o_56["remainingPct"] !== null) {
|
|
44490
|
+
if (typeof __o_56["remainingPct"] !== "number") {
|
|
44491
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_56["remainingPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("remainingPct") });
|
|
44492
|
+
}
|
|
44493
|
+
else if (Number.isNaN(__o_56["remainingPct"])) {
|
|
44494
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_56["remainingPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("remainingPct") });
|
|
44495
|
+
}
|
|
44496
|
+
else if (!Number.isFinite(__o_56["remainingPct"])) {
|
|
44497
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_56["remainingPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("remainingPct") });
|
|
44498
|
+
}
|
|
44499
|
+
}
|
|
44500
|
+
}
|
|
44501
|
+
if (__o_56["resetsAt"] !== undefined) {
|
|
44502
|
+
if (__o_56["resetsAt"] !== null) {
|
|
44503
|
+
if (typeof __o_56["resetsAt"] !== "string") {
|
|
44504
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_56["resetsAt"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("resetsAt") });
|
|
44505
|
+
}
|
|
44506
|
+
}
|
|
44507
|
+
}
|
|
44508
|
+
if (__o_56["runsOutAt"] !== undefined) {
|
|
44509
|
+
if (__o_56["runsOutAt"] !== null) {
|
|
44510
|
+
if (typeof __o_56["runsOutAt"] !== "string") {
|
|
44511
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_56["runsOutAt"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("runsOutAt") });
|
|
44512
|
+
}
|
|
44513
|
+
}
|
|
44514
|
+
}
|
|
44515
|
+
if (__o_56["shortfallPct"] !== undefined) {
|
|
44516
|
+
if (__o_56["shortfallPct"] !== null) {
|
|
44517
|
+
if (typeof __o_56["shortfallPct"] !== "number") {
|
|
44518
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_56["shortfallPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("shortfallPct") });
|
|
44519
|
+
}
|
|
44520
|
+
else if (Number.isNaN(__o_56["shortfallPct"])) {
|
|
44521
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_56["shortfallPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("shortfallPct") });
|
|
44522
|
+
}
|
|
44523
|
+
else if (!Number.isFinite(__o_56["shortfallPct"])) {
|
|
44524
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_56["shortfallPct"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("shortfallPct") });
|
|
44525
|
+
}
|
|
44526
|
+
}
|
|
44527
|
+
}
|
|
44528
|
+
if (__o_56["tone"] !== undefined) {
|
|
44529
|
+
if (!__set_enum_57.has(__o_56["tone"])) {
|
|
44530
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_56["tone"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("windows").concat(__i_55).concat("tone") });
|
|
44531
|
+
}
|
|
44532
|
+
}
|
|
44533
|
+
}
|
|
44534
|
+
}
|
|
44535
|
+
}
|
|
44536
|
+
if (__o_54["balances"] !== undefined) {
|
|
44537
|
+
if (!Array.isArray(__o_54["balances"])) {
|
|
44538
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_54["balances"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances") });
|
|
44539
|
+
}
|
|
44540
|
+
else {
|
|
44541
|
+
for (var __i_58 = 0; __i_58 < __o_54["balances"].length; __i_58++) {
|
|
44542
|
+
if (typeof __o_54["balances"][__i_58] !== "object" || __o_54["balances"][__i_58] === null || Array.isArray(__o_54["balances"][__i_58])) {
|
|
44543
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_54["balances"][__i_58], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58) });
|
|
44544
|
+
}
|
|
44545
|
+
else {
|
|
44546
|
+
var __o_59 = __o_54["balances"][__i_58];
|
|
44547
|
+
if (typeof __o_59["id"] !== "string") {
|
|
44548
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["id"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("id") });
|
|
44549
|
+
}
|
|
44550
|
+
if (typeof __o_59["label"] !== "string") {
|
|
44551
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["label"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("label") });
|
|
44552
|
+
}
|
|
44553
|
+
if (__o_59["used"] !== undefined) {
|
|
44554
|
+
if (__o_59["used"] !== null) {
|
|
44555
|
+
if (typeof __o_59["used"] !== "number") {
|
|
44556
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_59["used"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("used") });
|
|
44557
|
+
}
|
|
44558
|
+
else if (Number.isNaN(__o_59["used"])) {
|
|
44559
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_59["used"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("used") });
|
|
44560
|
+
}
|
|
44561
|
+
else if (!Number.isFinite(__o_59["used"])) {
|
|
44562
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_59["used"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("used") });
|
|
44563
|
+
}
|
|
44564
|
+
}
|
|
44565
|
+
}
|
|
44566
|
+
if (__o_59["remaining"] !== undefined) {
|
|
44567
|
+
if (__o_59["remaining"] !== null) {
|
|
44568
|
+
if (typeof __o_59["remaining"] !== "number") {
|
|
44569
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_59["remaining"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("remaining") });
|
|
44570
|
+
}
|
|
44571
|
+
else if (Number.isNaN(__o_59["remaining"])) {
|
|
44572
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_59["remaining"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("remaining") });
|
|
44573
|
+
}
|
|
44574
|
+
else if (!Number.isFinite(__o_59["remaining"])) {
|
|
44575
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_59["remaining"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("remaining") });
|
|
44576
|
+
}
|
|
44577
|
+
}
|
|
44578
|
+
}
|
|
44579
|
+
if (__o_59["limit"] !== undefined) {
|
|
44580
|
+
if (__o_59["limit"] !== null) {
|
|
44581
|
+
if (typeof __o_59["limit"] !== "number") {
|
|
44582
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_59["limit"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("limit") });
|
|
44583
|
+
}
|
|
44584
|
+
else if (Number.isNaN(__o_59["limit"])) {
|
|
44585
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_59["limit"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("limit") });
|
|
44586
|
+
}
|
|
44587
|
+
else if (!Number.isFinite(__o_59["limit"])) {
|
|
44588
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_59["limit"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("limit") });
|
|
44589
|
+
}
|
|
44590
|
+
}
|
|
44591
|
+
}
|
|
44592
|
+
if (!__set_enum_60.has(__o_59["unit"])) {
|
|
44593
|
+
_e.push({ code: "invalid_value", values: ["usd", "credits", "requests", "tokens"], input: __o_59["unit"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("unit") });
|
|
44594
|
+
}
|
|
44595
|
+
if (__o_59["resetsAt"] !== undefined) {
|
|
44596
|
+
if (__o_59["resetsAt"] !== null) {
|
|
44597
|
+
if (typeof __o_59["resetsAt"] !== "string") {
|
|
44598
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["resetsAt"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("resetsAt") });
|
|
44599
|
+
}
|
|
44600
|
+
}
|
|
44601
|
+
}
|
|
44602
|
+
if (__o_59["tone"] !== undefined) {
|
|
44603
|
+
if (!__set_enum_61.has(__o_59["tone"])) {
|
|
44604
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_59["tone"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("balances").concat(__i_58).concat("tone") });
|
|
44605
|
+
}
|
|
44606
|
+
}
|
|
44607
|
+
}
|
|
44608
|
+
}
|
|
44609
|
+
}
|
|
44610
|
+
}
|
|
44611
|
+
if (__o_54["details"] !== undefined) {
|
|
44612
|
+
if (!Array.isArray(__o_54["details"])) {
|
|
44613
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_54["details"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("details") });
|
|
44614
|
+
}
|
|
44615
|
+
else {
|
|
44616
|
+
for (var __i_62 = 0; __i_62 < __o_54["details"].length; __i_62++) {
|
|
44617
|
+
if (typeof __o_54["details"][__i_62] !== "object" || __o_54["details"][__i_62] === null || Array.isArray(__o_54["details"][__i_62])) {
|
|
44618
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_54["details"][__i_62], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("details").concat(__i_62) });
|
|
44619
|
+
}
|
|
44620
|
+
else {
|
|
44621
|
+
var __o_63 = __o_54["details"][__i_62];
|
|
44622
|
+
if (typeof __o_63["id"] !== "string") {
|
|
44623
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_63["id"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("details").concat(__i_62).concat("id") });
|
|
44624
|
+
}
|
|
44625
|
+
if (typeof __o_63["label"] !== "string") {
|
|
44626
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_63["label"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("details").concat(__i_62).concat("label") });
|
|
44627
|
+
}
|
|
44628
|
+
if (typeof __o_63["value"] !== "string") {
|
|
44629
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_63["value"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("details").concat(__i_62).concat("value") });
|
|
44630
|
+
}
|
|
44631
|
+
if (__o_63["tone"] !== undefined) {
|
|
44632
|
+
if (!__set_enum_64.has(__o_63["tone"])) {
|
|
44633
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_63["tone"], path: ["payload"].concat("report").concat("lastSuccessful").concat("report").concat("details").concat(__i_62).concat("tone") });
|
|
44634
|
+
}
|
|
44635
|
+
}
|
|
44636
|
+
}
|
|
44637
|
+
}
|
|
44638
|
+
}
|
|
44639
|
+
}
|
|
44640
|
+
}
|
|
44394
44641
|
}
|
|
44395
44642
|
}
|
|
44396
|
-
if (
|
|
44397
|
-
if (!Array.isArray(
|
|
44398
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
44643
|
+
if (__o_33["loginErrors"] !== undefined) {
|
|
44644
|
+
if (!Array.isArray(__o_33["loginErrors"])) {
|
|
44645
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_33["loginErrors"], path: ["payload"].concat("report").concat("loginErrors") });
|
|
44399
44646
|
}
|
|
44400
44647
|
else {
|
|
44401
|
-
for (var
|
|
44402
|
-
if (typeof
|
|
44403
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44648
|
+
for (var __i_65 = 0; __i_65 < __o_33["loginErrors"].length; __i_65++) {
|
|
44649
|
+
if (typeof __o_33["loginErrors"][__i_65] !== "object" || __o_33["loginErrors"][__i_65] === null || Array.isArray(__o_33["loginErrors"][__i_65])) {
|
|
44650
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_33["loginErrors"][__i_65], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65) });
|
|
44404
44651
|
}
|
|
44405
44652
|
else {
|
|
44406
|
-
var
|
|
44407
|
-
if (typeof
|
|
44408
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44653
|
+
var __o_66 = __o_33["loginErrors"][__i_65];
|
|
44654
|
+
if (typeof __o_66["harness"] !== "string") {
|
|
44655
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_66["harness"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("harness") });
|
|
44409
44656
|
}
|
|
44410
|
-
if (typeof
|
|
44411
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44657
|
+
if (typeof __o_66["report"] !== "object" || __o_66["report"] === null || Array.isArray(__o_66["report"])) {
|
|
44658
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_66["report"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report") });
|
|
44412
44659
|
}
|
|
44413
44660
|
else {
|
|
44414
|
-
var
|
|
44415
|
-
switch (
|
|
44661
|
+
var __du_67 = __o_66["report"];
|
|
44662
|
+
switch (__du_67["status"]) {
|
|
44416
44663
|
case "unavailable":
|
|
44417
|
-
if (typeof
|
|
44418
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44664
|
+
if (typeof __du_67 !== "object" || __du_67 === null || Array.isArray(__du_67)) {
|
|
44665
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_67, path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report") });
|
|
44419
44666
|
}
|
|
44420
44667
|
else {
|
|
44421
|
-
var
|
|
44422
|
-
if (
|
|
44423
|
-
_e.push({ code: "invalid_value", values: ["unavailable"], input:
|
|
44668
|
+
var __o_68 = __du_67;
|
|
44669
|
+
if (__o_68["status"] !== "unavailable") {
|
|
44670
|
+
_e.push({ code: "invalid_value", values: ["unavailable"], input: __o_68["status"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("status") });
|
|
44424
44671
|
}
|
|
44425
|
-
if (typeof
|
|
44426
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44672
|
+
if (typeof __o_68["problem"] !== "object" || __o_68["problem"] === null || Array.isArray(__o_68["problem"])) {
|
|
44673
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_68["problem"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem") });
|
|
44427
44674
|
}
|
|
44428
44675
|
else {
|
|
44429
|
-
var
|
|
44430
|
-
switch (
|
|
44676
|
+
var __du_69 = __o_68["problem"];
|
|
44677
|
+
switch (__du_69["kind"]) {
|
|
44431
44678
|
case "expired":
|
|
44432
|
-
if (typeof
|
|
44433
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44679
|
+
if (typeof __du_69 !== "object" || __du_69 === null || Array.isArray(__du_69)) {
|
|
44680
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_69, path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem") });
|
|
44434
44681
|
}
|
|
44435
44682
|
else {
|
|
44436
|
-
var
|
|
44437
|
-
if (
|
|
44438
|
-
_e.push({ code: "invalid_value", values: ["expired"], input:
|
|
44683
|
+
var __o_70 = __du_69;
|
|
44684
|
+
if (__o_70["kind"] !== "expired") {
|
|
44685
|
+
_e.push({ code: "invalid_value", values: ["expired"], input: __o_70["kind"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("kind") });
|
|
44439
44686
|
}
|
|
44440
|
-
if (typeof
|
|
44441
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44687
|
+
if (typeof __o_70["expiresAt"] !== "string") {
|
|
44688
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_70["expiresAt"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("expiresAt") });
|
|
44442
44689
|
}
|
|
44443
44690
|
else {
|
|
44444
|
-
if (!__re_re_14.test(
|
|
44445
|
-
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_14.toString(), origin: "string", input:
|
|
44691
|
+
if (!__re_re_14.test(__o_70["expiresAt"])) {
|
|
44692
|
+
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_14.toString(), origin: "string", input: __o_70["expiresAt"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("expiresAt") });
|
|
44446
44693
|
}
|
|
44447
44694
|
}
|
|
44448
|
-
if (
|
|
44449
|
-
if (typeof
|
|
44450
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44695
|
+
if (__o_70["refreshedBy"] !== undefined) {
|
|
44696
|
+
if (typeof __o_70["refreshedBy"] !== "string") {
|
|
44697
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_70["refreshedBy"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("refreshedBy") });
|
|
44451
44698
|
}
|
|
44452
44699
|
}
|
|
44453
44700
|
}
|
|
44454
44701
|
break;
|
|
44455
44702
|
case "rejected":
|
|
44456
|
-
if (typeof
|
|
44457
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44703
|
+
if (typeof __du_69 !== "object" || __du_69 === null || Array.isArray(__du_69)) {
|
|
44704
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_69, path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem") });
|
|
44458
44705
|
}
|
|
44459
44706
|
else {
|
|
44460
|
-
var
|
|
44461
|
-
if (
|
|
44462
|
-
_e.push({ code: "invalid_value", values: ["rejected"], input:
|
|
44707
|
+
var __o_71 = __du_69;
|
|
44708
|
+
if (__o_71["kind"] !== "rejected") {
|
|
44709
|
+
_e.push({ code: "invalid_value", values: ["rejected"], input: __o_71["kind"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("kind") });
|
|
44463
44710
|
}
|
|
44464
|
-
if (typeof
|
|
44465
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44711
|
+
if (typeof __o_71["status"] !== "number") {
|
|
44712
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_71["status"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("status") });
|
|
44466
44713
|
}
|
|
44467
|
-
else if (Number.isNaN(
|
|
44468
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44714
|
+
else if (Number.isNaN(__o_71["status"])) {
|
|
44715
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_71["status"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("status") });
|
|
44469
44716
|
}
|
|
44470
|
-
else if (!Number.isFinite(
|
|
44471
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44717
|
+
else if (!Number.isFinite(__o_71["status"])) {
|
|
44718
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_71["status"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("status") });
|
|
44472
44719
|
}
|
|
44473
44720
|
else {
|
|
44474
|
-
if (!Number.isSafeInteger(
|
|
44475
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
44721
|
+
if (!Number.isSafeInteger(__o_71["status"])) {
|
|
44722
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_71["status"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("status") });
|
|
44476
44723
|
}
|
|
44477
44724
|
}
|
|
44478
|
-
if (
|
|
44479
|
-
if (typeof
|
|
44480
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44725
|
+
if (__o_71["refreshedBy"] !== undefined) {
|
|
44726
|
+
if (typeof __o_71["refreshedBy"] !== "string") {
|
|
44727
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_71["refreshedBy"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("refreshedBy") });
|
|
44481
44728
|
}
|
|
44482
44729
|
}
|
|
44483
44730
|
}
|
|
44484
44731
|
break;
|
|
44485
44732
|
case "no_quota":
|
|
44486
|
-
if (typeof
|
|
44487
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44733
|
+
if (typeof __du_69 !== "object" || __du_69 === null || Array.isArray(__du_69)) {
|
|
44734
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_69, path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem") });
|
|
44488
44735
|
}
|
|
44489
44736
|
else {
|
|
44490
|
-
var
|
|
44491
|
-
if (
|
|
44492
|
-
_e.push({ code: "invalid_value", values: ["no_quota"], input:
|
|
44737
|
+
var __o_72 = __du_69;
|
|
44738
|
+
if (__o_72["kind"] !== "no_quota") {
|
|
44739
|
+
_e.push({ code: "invalid_value", values: ["no_quota"], input: __o_72["kind"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("kind") });
|
|
44493
44740
|
}
|
|
44494
|
-
if (typeof
|
|
44495
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44741
|
+
if (typeof __o_72["detail"] !== "string") {
|
|
44742
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_72["detail"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("detail") });
|
|
44496
44743
|
}
|
|
44497
44744
|
}
|
|
44498
44745
|
break;
|
|
44499
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input:
|
|
44746
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input: __o_68["problem"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("problem").concat("kind") });
|
|
44500
44747
|
}
|
|
44501
44748
|
}
|
|
44502
44749
|
}
|
|
44503
44750
|
break;
|
|
44504
44751
|
case "error":
|
|
44505
|
-
if (typeof
|
|
44506
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44752
|
+
if (typeof __du_67 !== "object" || __du_67 === null || Array.isArray(__du_67)) {
|
|
44753
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_67, path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report") });
|
|
44507
44754
|
}
|
|
44508
44755
|
else {
|
|
44509
|
-
var
|
|
44510
|
-
if (
|
|
44511
|
-
_e.push({ code: "invalid_value", values: ["error"], input:
|
|
44756
|
+
var __o_73 = __du_67;
|
|
44757
|
+
if (__o_73["status"] !== "error") {
|
|
44758
|
+
_e.push({ code: "invalid_value", values: ["error"], input: __o_73["status"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("status") });
|
|
44512
44759
|
}
|
|
44513
|
-
if (typeof
|
|
44514
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44760
|
+
if (typeof __o_73["error"] !== "string") {
|
|
44761
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_73["error"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("error") });
|
|
44515
44762
|
}
|
|
44516
44763
|
}
|
|
44517
44764
|
break;
|
|
44518
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["unavailable", "error"], input:
|
|
44765
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["unavailable", "error"], input: __o_66["report"], path: ["payload"].concat("report").concat("loginErrors").concat(__i_65).concat("report").concat("status") });
|
|
44519
44766
|
}
|
|
44520
44767
|
}
|
|
44521
44768
|
}
|
|
@@ -44565,35 +44812,61 @@ export const SessionOutboundMessage208 = /* @__PURE__ */ (() => {
|
|
|
44565
44812
|
case "error": return typeof __dx_2 === "object" && __dx_2 !== null && !Array.isArray(__dx_2) && __dx_2["status"] === "error" && typeof __dx_2["error"] === "string";
|
|
44566
44813
|
default: return false;
|
|
44567
44814
|
} }
|
|
44568
|
-
|
|
44569
|
-
|
|
44570
|
-
|
|
44571
|
-
|
|
44815
|
+
var __enumSet_17 = new Set(["default", "ok", "warning", "danger"]);
|
|
44816
|
+
function __af_18(a) { for (var __ae_16, i = 0; i < a.length; i++) {
|
|
44817
|
+
__ae_16 = a[i];
|
|
44818
|
+
if (!(typeof __ae_16 === "object" && __ae_16 !== null && !Array.isArray(__ae_16) && typeof __ae_16["id"] === "string" && typeof __ae_16["label"] === "string" && (__ae_16["shortLabel"] === undefined || (typeof __ae_16["shortLabel"] === "string")) && (__ae_16["summary"] === undefined || (typeof __ae_16["summary"] === "boolean")) && (__ae_16["usedPct"] === undefined || ((__ae_16["usedPct"] === null || (typeof __ae_16["usedPct"] === "number" && !Number.isNaN(__ae_16["usedPct"]) && Number.isFinite(__ae_16["usedPct"]))))) && (__ae_16["remainingPct"] === undefined || ((__ae_16["remainingPct"] === null || (typeof __ae_16["remainingPct"] === "number" && !Number.isNaN(__ae_16["remainingPct"]) && Number.isFinite(__ae_16["remainingPct"]))))) && (__ae_16["resetsAt"] === undefined || ((__ae_16["resetsAt"] === null || (typeof __ae_16["resetsAt"] === "string")))) && (__ae_16["runsOutAt"] === undefined || ((__ae_16["runsOutAt"] === null || (typeof __ae_16["runsOutAt"] === "string")))) && (__ae_16["shortfallPct"] === undefined || ((__ae_16["shortfallPct"] === null || (typeof __ae_16["shortfallPct"] === "number" && !Number.isNaN(__ae_16["shortfallPct"]) && Number.isFinite(__ae_16["shortfallPct"]))))) && (__ae_16["tone"] === undefined || (__enumSet_17.has(__ae_16["tone"]))))) {
|
|
44819
|
+
return false;
|
|
44820
|
+
}
|
|
44821
|
+
} return true; }
|
|
44822
|
+
var __enumSet_20 = new Set(["usd", "credits", "requests", "tokens"]);
|
|
44823
|
+
var __enumSet_21 = new Set(["default", "ok", "warning", "danger"]);
|
|
44824
|
+
function __af_22(a) { for (var __ae_19, i = 0; i < a.length; i++) {
|
|
44825
|
+
__ae_19 = a[i];
|
|
44826
|
+
if (!(typeof __ae_19 === "object" && __ae_19 !== null && !Array.isArray(__ae_19) && typeof __ae_19["id"] === "string" && typeof __ae_19["label"] === "string" && (__ae_19["used"] === undefined || ((__ae_19["used"] === null || (typeof __ae_19["used"] === "number" && !Number.isNaN(__ae_19["used"]) && Number.isFinite(__ae_19["used"]))))) && (__ae_19["remaining"] === undefined || ((__ae_19["remaining"] === null || (typeof __ae_19["remaining"] === "number" && !Number.isNaN(__ae_19["remaining"]) && Number.isFinite(__ae_19["remaining"]))))) && (__ae_19["limit"] === undefined || ((__ae_19["limit"] === null || (typeof __ae_19["limit"] === "number" && !Number.isNaN(__ae_19["limit"]) && Number.isFinite(__ae_19["limit"]))))) && __enumSet_20.has(__ae_19["unit"]) && (__ae_19["resetsAt"] === undefined || ((__ae_19["resetsAt"] === null || (typeof __ae_19["resetsAt"] === "string")))) && (__ae_19["tone"] === undefined || (__enumSet_21.has(__ae_19["tone"]))))) {
|
|
44827
|
+
return false;
|
|
44828
|
+
}
|
|
44829
|
+
} return true; }
|
|
44830
|
+
var __enumSet_24 = new Set(["default", "ok", "warning", "danger"]);
|
|
44831
|
+
function __af_25(a) { for (var __ae_23, i = 0; i < a.length; i++) {
|
|
44832
|
+
__ae_23 = a[i];
|
|
44833
|
+
if (!(typeof __ae_23 === "object" && __ae_23 !== null && !Array.isArray(__ae_23) && typeof __ae_23["id"] === "string" && typeof __ae_23["label"] === "string" && typeof __ae_23["value"] === "string" && (__ae_23["tone"] === undefined || (__enumSet_24.has(__ae_23["tone"]))))) {
|
|
44834
|
+
return false;
|
|
44835
|
+
}
|
|
44836
|
+
} return true; }
|
|
44837
|
+
function __du_29(__dx_30) { switch (__dx_30["kind"]) {
|
|
44838
|
+
case "expired": return typeof __dx_30 === "object" && __dx_30 !== null && !Array.isArray(__dx_30) && __dx_30["kind"] === "expired" && typeof __dx_30["expiresAt"] === "string" && __re_re_15.test(__dx_30["expiresAt"]) && (__dx_30["refreshedBy"] === undefined || (typeof __dx_30["refreshedBy"] === "string"));
|
|
44839
|
+
case "rejected": return typeof __dx_30 === "object" && __dx_30 !== null && !Array.isArray(__dx_30) && __dx_30["kind"] === "rejected" && typeof __dx_30["status"] === "number" && Number.isSafeInteger(__dx_30["status"]) && (__dx_30["refreshedBy"] === undefined || (typeof __dx_30["refreshedBy"] === "string"));
|
|
44840
|
+
case "no_quota": return typeof __dx_30 === "object" && __dx_30 !== null && !Array.isArray(__dx_30) && __dx_30["kind"] === "no_quota" && typeof __dx_30["detail"] === "string";
|
|
44572
44841
|
default: return false;
|
|
44573
44842
|
} }
|
|
44574
|
-
function
|
|
44575
|
-
case "unavailable": return typeof
|
|
44576
|
-
case "error": return typeof
|
|
44843
|
+
function __du_27(__dx_28) { switch (__dx_28["status"]) {
|
|
44844
|
+
case "unavailable": return typeof __dx_28 === "object" && __dx_28 !== null && !Array.isArray(__dx_28) && __dx_28["status"] === "unavailable" && typeof __dx_28["problem"] === "object" && __dx_28["problem"] !== null && !Array.isArray(__dx_28["problem"]) && __du_29(__dx_28["problem"]);
|
|
44845
|
+
case "error": return typeof __dx_28 === "object" && __dx_28 !== null && !Array.isArray(__dx_28) && __dx_28["status"] === "error" && typeof __dx_28["error"] === "string";
|
|
44577
44846
|
default: return false;
|
|
44578
44847
|
} }
|
|
44579
|
-
function
|
|
44580
|
-
|
|
44581
|
-
if (!(typeof
|
|
44848
|
+
function __af_31(a) { for (var __ae_26, i = 0; i < a.length; i++) {
|
|
44849
|
+
__ae_26 = a[i];
|
|
44850
|
+
if (!(typeof __ae_26 === "object" && __ae_26 !== null && !Array.isArray(__ae_26) && typeof __ae_26["harness"] === "string" && typeof __ae_26["report"] === "object" && __ae_26["report"] !== null && !Array.isArray(__ae_26["report"]) && __du_27(__ae_26["report"]))) {
|
|
44582
44851
|
return false;
|
|
44583
44852
|
}
|
|
44584
44853
|
} return true; }
|
|
44585
|
-
function
|
|
44854
|
+
function __af_32(a) { for (var __ae_0, i = 0; i < a.length; i++) {
|
|
44586
44855
|
__ae_0 = a[i];
|
|
44587
|
-
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["id"] === "string" && typeof __ae_0["account"] === "object" && __ae_0["account"] !== null && !Array.isArray(__ae_0["account"]) && (__ae_0["account"]["label"] === undefined || (typeof __ae_0["account"]["label"] === "string")) && typeof __ae_0["fetchedAt"] === "string" && typeof __ae_0["sourceId"] === "string" && typeof __ae_0["sourceLabel"] === "string" && (__ae_0["icon"] === undefined || (typeof __ae_0["icon"] === "string")) && typeof __ae_0["report"] === "object" && __ae_0["report"] !== null && !Array.isArray(__ae_0["report"]) && __du_1(__ae_0["report"]) && (__ae_0["loginErrors"] === undefined || (Array.isArray(__ae_0["loginErrors"]) &&
|
|
44856
|
+
if (!(typeof __ae_0 === "object" && __ae_0 !== null && !Array.isArray(__ae_0) && typeof __ae_0["id"] === "string" && typeof __ae_0["account"] === "object" && __ae_0["account"] !== null && !Array.isArray(__ae_0["account"]) && (__ae_0["account"]["label"] === undefined || (typeof __ae_0["account"]["label"] === "string")) && typeof __ae_0["fetchedAt"] === "string" && typeof __ae_0["sourceId"] === "string" && typeof __ae_0["sourceLabel"] === "string" && (__ae_0["icon"] === undefined || (typeof __ae_0["icon"] === "string")) && typeof __ae_0["report"] === "object" && __ae_0["report"] !== null && !Array.isArray(__ae_0["report"]) && __du_1(__ae_0["report"]) && (__ae_0["successfulAt"] === undefined || (typeof __ae_0["successfulAt"] === "string")) && (__ae_0["lastSuccessful"] === undefined || (typeof __ae_0["lastSuccessful"] === "object" && __ae_0["lastSuccessful"] !== null && !Array.isArray(__ae_0["lastSuccessful"]) && typeof __ae_0["lastSuccessful"]["fetchedAt"] === "string" && typeof __ae_0["lastSuccessful"]["report"] === "object" && __ae_0["lastSuccessful"]["report"] !== null && !Array.isArray(__ae_0["lastSuccessful"]["report"]) && __ae_0["lastSuccessful"]["report"]["status"] === "available" && (__ae_0["lastSuccessful"]["report"]["planLabel"] === undefined || (typeof __ae_0["lastSuccessful"]["report"]["planLabel"] === "string")) && Array.isArray(__ae_0["lastSuccessful"]["report"]["windows"]) && __af_18(__ae_0["lastSuccessful"]["report"]["windows"]) && (__ae_0["lastSuccessful"]["report"]["balances"] === undefined || (Array.isArray(__ae_0["lastSuccessful"]["report"]["balances"]) && __af_22(__ae_0["lastSuccessful"]["report"]["balances"]))) && (__ae_0["lastSuccessful"]["report"]["details"] === undefined || (Array.isArray(__ae_0["lastSuccessful"]["report"]["details"]) && __af_25(__ae_0["lastSuccessful"]["report"]["details"]))))) && (__ae_0["loginErrors"] === undefined || (Array.isArray(__ae_0["loginErrors"]) && __af_31(__ae_0["loginErrors"]))))) {
|
|
44588
44857
|
return false;
|
|
44589
44858
|
}
|
|
44590
44859
|
} return true; }
|
|
44591
|
-
var
|
|
44592
|
-
var
|
|
44593
|
-
var
|
|
44594
|
-
var
|
|
44860
|
+
var __set_enum_42 = new Set(["default", "ok", "warning", "danger"]);
|
|
44861
|
+
var __set_enum_45 = new Set(["usd", "credits", "requests", "tokens"]);
|
|
44862
|
+
var __set_enum_46 = new Set(["default", "ok", "warning", "danger"]);
|
|
44863
|
+
var __set_enum_49 = new Set(["default", "ok", "warning", "danger"]);
|
|
44864
|
+
var __set_enum_60 = new Set(["default", "ok", "warning", "danger"]);
|
|
44865
|
+
var __set_enum_63 = new Set(["usd", "credits", "requests", "tokens"]);
|
|
44866
|
+
var __set_enum_64 = new Set(["default", "ok", "warning", "danger"]);
|
|
44867
|
+
var __set_enum_67 = new Set(["default", "ok", "warning", "danger"]);
|
|
44595
44868
|
function safeParse_SessionOutboundMessage208(input) {
|
|
44596
|
-
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "usage.list_reports.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["reports"] === undefined || (Array.isArray(input["payload"]["reports"]) &&
|
|
44869
|
+
if (typeof input === "object" && input !== null && !Array.isArray(input) && input["type"] === "usage.list_reports.response" && typeof input["payload"] === "object" && input["payload"] !== null && !Array.isArray(input["payload"]) && typeof input["payload"]["requestId"] === "string" && (input["payload"]["reports"] === undefined || (Array.isArray(input["payload"]["reports"]) && __af_32(input["payload"]["reports"]))) && (input["payload"]["error"] === undefined || ((input["payload"]["error"] === null || (typeof input["payload"]["error"] === "string"))))) {
|
|
44597
44870
|
return { success: true, data: input };
|
|
44598
44871
|
}
|
|
44599
44872
|
var _e = [];
|
|
@@ -44602,262 +44875,262 @@ export const SessionOutboundMessage208 = /* @__PURE__ */ (() => {
|
|
|
44602
44875
|
_e.push({ code: "invalid_type", expected: "object", input: _d, path: [] });
|
|
44603
44876
|
}
|
|
44604
44877
|
else {
|
|
44605
|
-
var
|
|
44606
|
-
if (
|
|
44607
|
-
_e.push({ code: "invalid_value", values: ["usage.list_reports.response"], input:
|
|
44878
|
+
var __o_33 = _d;
|
|
44879
|
+
if (__o_33["type"] !== "usage.list_reports.response") {
|
|
44880
|
+
_e.push({ code: "invalid_value", values: ["usage.list_reports.response"], input: __o_33["type"], path: ["type"] });
|
|
44608
44881
|
}
|
|
44609
|
-
if (typeof
|
|
44610
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44882
|
+
if (typeof __o_33["payload"] !== "object" || __o_33["payload"] === null || Array.isArray(__o_33["payload"])) {
|
|
44883
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_33["payload"], path: ["payload"] });
|
|
44611
44884
|
}
|
|
44612
44885
|
else {
|
|
44613
|
-
var
|
|
44614
|
-
if (typeof
|
|
44615
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44886
|
+
var __o_34 = __o_33["payload"];
|
|
44887
|
+
if (typeof __o_34["requestId"] !== "string") {
|
|
44888
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_34["requestId"], path: ["payload"].concat("requestId") });
|
|
44616
44889
|
}
|
|
44617
|
-
if (
|
|
44618
|
-
if (!Array.isArray(
|
|
44619
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
44890
|
+
if (__o_34["reports"] !== undefined) {
|
|
44891
|
+
if (!Array.isArray(__o_34["reports"])) {
|
|
44892
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_34["reports"], path: ["payload"].concat("reports") });
|
|
44620
44893
|
}
|
|
44621
44894
|
else {
|
|
44622
|
-
for (var
|
|
44623
|
-
if (typeof
|
|
44624
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44895
|
+
for (var __i_35 = 0; __i_35 < __o_34["reports"].length; __i_35++) {
|
|
44896
|
+
if (typeof __o_34["reports"][__i_35] !== "object" || __o_34["reports"][__i_35] === null || Array.isArray(__o_34["reports"][__i_35])) {
|
|
44897
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_34["reports"][__i_35], path: ["payload"].concat("reports").concat(__i_35) });
|
|
44625
44898
|
}
|
|
44626
44899
|
else {
|
|
44627
|
-
var
|
|
44628
|
-
if (typeof
|
|
44629
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44900
|
+
var __o_36 = __o_34["reports"][__i_35];
|
|
44901
|
+
if (typeof __o_36["id"] !== "string") {
|
|
44902
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["id"], path: ["payload"].concat("reports").concat(__i_35).concat("id") });
|
|
44630
44903
|
}
|
|
44631
|
-
if (typeof
|
|
44632
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44904
|
+
if (typeof __o_36["account"] !== "object" || __o_36["account"] === null || Array.isArray(__o_36["account"])) {
|
|
44905
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["account"], path: ["payload"].concat("reports").concat(__i_35).concat("account") });
|
|
44633
44906
|
}
|
|
44634
44907
|
else {
|
|
44635
|
-
var
|
|
44636
|
-
if (
|
|
44637
|
-
if (typeof
|
|
44638
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44908
|
+
var __o_37 = __o_36["account"];
|
|
44909
|
+
if (__o_37["label"] !== undefined) {
|
|
44910
|
+
if (typeof __o_37["label"] !== "string") {
|
|
44911
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_37["label"], path: ["payload"].concat("reports").concat(__i_35).concat("account").concat("label") });
|
|
44639
44912
|
}
|
|
44640
44913
|
}
|
|
44641
44914
|
}
|
|
44642
|
-
if (typeof
|
|
44643
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44915
|
+
if (typeof __o_36["fetchedAt"] !== "string") {
|
|
44916
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["fetchedAt"], path: ["payload"].concat("reports").concat(__i_35).concat("fetchedAt") });
|
|
44644
44917
|
}
|
|
44645
|
-
if (typeof
|
|
44646
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44918
|
+
if (typeof __o_36["sourceId"] !== "string") {
|
|
44919
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["sourceId"], path: ["payload"].concat("reports").concat(__i_35).concat("sourceId") });
|
|
44647
44920
|
}
|
|
44648
|
-
if (typeof
|
|
44649
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44921
|
+
if (typeof __o_36["sourceLabel"] !== "string") {
|
|
44922
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["sourceLabel"], path: ["payload"].concat("reports").concat(__i_35).concat("sourceLabel") });
|
|
44650
44923
|
}
|
|
44651
|
-
if (
|
|
44652
|
-
if (typeof
|
|
44653
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44924
|
+
if (__o_36["icon"] !== undefined) {
|
|
44925
|
+
if (typeof __o_36["icon"] !== "string") {
|
|
44926
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["icon"], path: ["payload"].concat("reports").concat(__i_35).concat("icon") });
|
|
44654
44927
|
}
|
|
44655
44928
|
}
|
|
44656
|
-
if (typeof
|
|
44657
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44929
|
+
if (typeof __o_36["report"] !== "object" || __o_36["report"] === null || Array.isArray(__o_36["report"])) {
|
|
44930
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["report"], path: ["payload"].concat("reports").concat(__i_35).concat("report") });
|
|
44658
44931
|
}
|
|
44659
44932
|
else {
|
|
44660
|
-
var
|
|
44661
|
-
switch (
|
|
44933
|
+
var __du_38 = __o_36["report"];
|
|
44934
|
+
switch (__du_38["status"]) {
|
|
44662
44935
|
case "available":
|
|
44663
|
-
if (typeof
|
|
44664
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44936
|
+
if (typeof __du_38 !== "object" || __du_38 === null || Array.isArray(__du_38)) {
|
|
44937
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_38, path: ["payload"].concat("reports").concat(__i_35).concat("report") });
|
|
44665
44938
|
}
|
|
44666
44939
|
else {
|
|
44667
|
-
var
|
|
44668
|
-
if (
|
|
44669
|
-
_e.push({ code: "invalid_value", values: ["available"], input:
|
|
44940
|
+
var __o_39 = __du_38;
|
|
44941
|
+
if (__o_39["status"] !== "available") {
|
|
44942
|
+
_e.push({ code: "invalid_value", values: ["available"], input: __o_39["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("status") });
|
|
44670
44943
|
}
|
|
44671
|
-
if (
|
|
44672
|
-
if (typeof
|
|
44673
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44944
|
+
if (__o_39["planLabel"] !== undefined) {
|
|
44945
|
+
if (typeof __o_39["planLabel"] !== "string") {
|
|
44946
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_39["planLabel"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("planLabel") });
|
|
44674
44947
|
}
|
|
44675
44948
|
}
|
|
44676
|
-
if (!Array.isArray(
|
|
44677
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
44949
|
+
if (!Array.isArray(__o_39["windows"])) {
|
|
44950
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_39["windows"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows") });
|
|
44678
44951
|
}
|
|
44679
44952
|
else {
|
|
44680
|
-
for (var
|
|
44681
|
-
if (typeof
|
|
44682
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
44953
|
+
for (var __i_40 = 0; __i_40 < __o_39["windows"].length; __i_40++) {
|
|
44954
|
+
if (typeof __o_39["windows"][__i_40] !== "object" || __o_39["windows"][__i_40] === null || Array.isArray(__o_39["windows"][__i_40])) {
|
|
44955
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_39["windows"][__i_40], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40) });
|
|
44683
44956
|
}
|
|
44684
44957
|
else {
|
|
44685
|
-
var
|
|
44686
|
-
if (typeof
|
|
44687
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44958
|
+
var __o_41 = __o_39["windows"][__i_40];
|
|
44959
|
+
if (typeof __o_41["id"] !== "string") {
|
|
44960
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["id"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("id") });
|
|
44688
44961
|
}
|
|
44689
|
-
if (typeof
|
|
44690
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44962
|
+
if (typeof __o_41["label"] !== "string") {
|
|
44963
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["label"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("label") });
|
|
44691
44964
|
}
|
|
44692
|
-
if (
|
|
44693
|
-
if (typeof
|
|
44694
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
44965
|
+
if (__o_41["shortLabel"] !== undefined) {
|
|
44966
|
+
if (typeof __o_41["shortLabel"] !== "string") {
|
|
44967
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["shortLabel"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("shortLabel") });
|
|
44695
44968
|
}
|
|
44696
44969
|
}
|
|
44697
|
-
if (
|
|
44698
|
-
if (typeof
|
|
44699
|
-
_e.push({ code: "invalid_type", expected: "boolean", input:
|
|
44970
|
+
if (__o_41["summary"] !== undefined) {
|
|
44971
|
+
if (typeof __o_41["summary"] !== "boolean") {
|
|
44972
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_41["summary"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("summary") });
|
|
44700
44973
|
}
|
|
44701
44974
|
}
|
|
44702
|
-
if (
|
|
44703
|
-
if (
|
|
44704
|
-
if (typeof
|
|
44705
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44975
|
+
if (__o_41["usedPct"] !== undefined) {
|
|
44976
|
+
if (__o_41["usedPct"] !== null) {
|
|
44977
|
+
if (typeof __o_41["usedPct"] !== "number") {
|
|
44978
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_41["usedPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("usedPct") });
|
|
44706
44979
|
}
|
|
44707
|
-
else if (Number.isNaN(
|
|
44708
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44980
|
+
else if (Number.isNaN(__o_41["usedPct"])) {
|
|
44981
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_41["usedPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("usedPct") });
|
|
44709
44982
|
}
|
|
44710
|
-
else if (!Number.isFinite(
|
|
44711
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44983
|
+
else if (!Number.isFinite(__o_41["usedPct"])) {
|
|
44984
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_41["usedPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("usedPct") });
|
|
44712
44985
|
}
|
|
44713
44986
|
}
|
|
44714
44987
|
}
|
|
44715
|
-
if (
|
|
44716
|
-
if (
|
|
44717
|
-
if (typeof
|
|
44718
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
44988
|
+
if (__o_41["remainingPct"] !== undefined) {
|
|
44989
|
+
if (__o_41["remainingPct"] !== null) {
|
|
44990
|
+
if (typeof __o_41["remainingPct"] !== "number") {
|
|
44991
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_41["remainingPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("remainingPct") });
|
|
44719
44992
|
}
|
|
44720
|
-
else if (Number.isNaN(
|
|
44721
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
44993
|
+
else if (Number.isNaN(__o_41["remainingPct"])) {
|
|
44994
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_41["remainingPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("remainingPct") });
|
|
44722
44995
|
}
|
|
44723
|
-
else if (!Number.isFinite(
|
|
44724
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
44996
|
+
else if (!Number.isFinite(__o_41["remainingPct"])) {
|
|
44997
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_41["remainingPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("remainingPct") });
|
|
44725
44998
|
}
|
|
44726
44999
|
}
|
|
44727
45000
|
}
|
|
44728
|
-
if (
|
|
44729
|
-
if (
|
|
44730
|
-
if (typeof
|
|
44731
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45001
|
+
if (__o_41["resetsAt"] !== undefined) {
|
|
45002
|
+
if (__o_41["resetsAt"] !== null) {
|
|
45003
|
+
if (typeof __o_41["resetsAt"] !== "string") {
|
|
45004
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["resetsAt"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("resetsAt") });
|
|
44732
45005
|
}
|
|
44733
45006
|
}
|
|
44734
45007
|
}
|
|
44735
|
-
if (
|
|
44736
|
-
if (
|
|
44737
|
-
if (typeof
|
|
44738
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45008
|
+
if (__o_41["runsOutAt"] !== undefined) {
|
|
45009
|
+
if (__o_41["runsOutAt"] !== null) {
|
|
45010
|
+
if (typeof __o_41["runsOutAt"] !== "string") {
|
|
45011
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_41["runsOutAt"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("runsOutAt") });
|
|
44739
45012
|
}
|
|
44740
45013
|
}
|
|
44741
45014
|
}
|
|
44742
|
-
if (
|
|
44743
|
-
if (
|
|
44744
|
-
if (typeof
|
|
44745
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
45015
|
+
if (__o_41["shortfallPct"] !== undefined) {
|
|
45016
|
+
if (__o_41["shortfallPct"] !== null) {
|
|
45017
|
+
if (typeof __o_41["shortfallPct"] !== "number") {
|
|
45018
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_41["shortfallPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("shortfallPct") });
|
|
44746
45019
|
}
|
|
44747
|
-
else if (Number.isNaN(
|
|
44748
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
45020
|
+
else if (Number.isNaN(__o_41["shortfallPct"])) {
|
|
45021
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_41["shortfallPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("shortfallPct") });
|
|
44749
45022
|
}
|
|
44750
|
-
else if (!Number.isFinite(
|
|
44751
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
45023
|
+
else if (!Number.isFinite(__o_41["shortfallPct"])) {
|
|
45024
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_41["shortfallPct"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("shortfallPct") });
|
|
44752
45025
|
}
|
|
44753
45026
|
}
|
|
44754
45027
|
}
|
|
44755
|
-
if (
|
|
44756
|
-
if (!
|
|
44757
|
-
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input:
|
|
45028
|
+
if (__o_41["tone"] !== undefined) {
|
|
45029
|
+
if (!__set_enum_42.has(__o_41["tone"])) {
|
|
45030
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_41["tone"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("windows").concat(__i_40).concat("tone") });
|
|
44758
45031
|
}
|
|
44759
45032
|
}
|
|
44760
45033
|
}
|
|
44761
45034
|
}
|
|
44762
45035
|
}
|
|
44763
|
-
if (
|
|
44764
|
-
if (!Array.isArray(
|
|
44765
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
45036
|
+
if (__o_39["balances"] !== undefined) {
|
|
45037
|
+
if (!Array.isArray(__o_39["balances"])) {
|
|
45038
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_39["balances"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances") });
|
|
44766
45039
|
}
|
|
44767
45040
|
else {
|
|
44768
|
-
for (var
|
|
44769
|
-
if (typeof
|
|
44770
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45041
|
+
for (var __i_43 = 0; __i_43 < __o_39["balances"].length; __i_43++) {
|
|
45042
|
+
if (typeof __o_39["balances"][__i_43] !== "object" || __o_39["balances"][__i_43] === null || Array.isArray(__o_39["balances"][__i_43])) {
|
|
45043
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_39["balances"][__i_43], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43) });
|
|
44771
45044
|
}
|
|
44772
45045
|
else {
|
|
44773
|
-
var
|
|
44774
|
-
if (typeof
|
|
44775
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45046
|
+
var __o_44 = __o_39["balances"][__i_43];
|
|
45047
|
+
if (typeof __o_44["id"] !== "string") {
|
|
45048
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_44["id"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("id") });
|
|
44776
45049
|
}
|
|
44777
|
-
if (typeof
|
|
44778
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45050
|
+
if (typeof __o_44["label"] !== "string") {
|
|
45051
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_44["label"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("label") });
|
|
44779
45052
|
}
|
|
44780
|
-
if (
|
|
44781
|
-
if (
|
|
44782
|
-
if (typeof
|
|
44783
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
45053
|
+
if (__o_44["used"] !== undefined) {
|
|
45054
|
+
if (__o_44["used"] !== null) {
|
|
45055
|
+
if (typeof __o_44["used"] !== "number") {
|
|
45056
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_44["used"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("used") });
|
|
44784
45057
|
}
|
|
44785
|
-
else if (Number.isNaN(
|
|
44786
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
45058
|
+
else if (Number.isNaN(__o_44["used"])) {
|
|
45059
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_44["used"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("used") });
|
|
44787
45060
|
}
|
|
44788
|
-
else if (!Number.isFinite(
|
|
44789
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
45061
|
+
else if (!Number.isFinite(__o_44["used"])) {
|
|
45062
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_44["used"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("used") });
|
|
44790
45063
|
}
|
|
44791
45064
|
}
|
|
44792
45065
|
}
|
|
44793
|
-
if (
|
|
44794
|
-
if (
|
|
44795
|
-
if (typeof
|
|
44796
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
45066
|
+
if (__o_44["remaining"] !== undefined) {
|
|
45067
|
+
if (__o_44["remaining"] !== null) {
|
|
45068
|
+
if (typeof __o_44["remaining"] !== "number") {
|
|
45069
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_44["remaining"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("remaining") });
|
|
44797
45070
|
}
|
|
44798
|
-
else if (Number.isNaN(
|
|
44799
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
45071
|
+
else if (Number.isNaN(__o_44["remaining"])) {
|
|
45072
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_44["remaining"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("remaining") });
|
|
44800
45073
|
}
|
|
44801
|
-
else if (!Number.isFinite(
|
|
44802
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
45074
|
+
else if (!Number.isFinite(__o_44["remaining"])) {
|
|
45075
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_44["remaining"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("remaining") });
|
|
44803
45076
|
}
|
|
44804
45077
|
}
|
|
44805
45078
|
}
|
|
44806
|
-
if (
|
|
44807
|
-
if (
|
|
44808
|
-
if (typeof
|
|
44809
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
45079
|
+
if (__o_44["limit"] !== undefined) {
|
|
45080
|
+
if (__o_44["limit"] !== null) {
|
|
45081
|
+
if (typeof __o_44["limit"] !== "number") {
|
|
45082
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_44["limit"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("limit") });
|
|
44810
45083
|
}
|
|
44811
|
-
else if (Number.isNaN(
|
|
44812
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
45084
|
+
else if (Number.isNaN(__o_44["limit"])) {
|
|
45085
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_44["limit"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("limit") });
|
|
44813
45086
|
}
|
|
44814
|
-
else if (!Number.isFinite(
|
|
44815
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
45087
|
+
else if (!Number.isFinite(__o_44["limit"])) {
|
|
45088
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_44["limit"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("limit") });
|
|
44816
45089
|
}
|
|
44817
45090
|
}
|
|
44818
45091
|
}
|
|
44819
|
-
if (!
|
|
44820
|
-
_e.push({ code: "invalid_value", values: ["usd", "credits", "requests", "tokens"], input:
|
|
45092
|
+
if (!__set_enum_45.has(__o_44["unit"])) {
|
|
45093
|
+
_e.push({ code: "invalid_value", values: ["usd", "credits", "requests", "tokens"], input: __o_44["unit"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("unit") });
|
|
44821
45094
|
}
|
|
44822
|
-
if (
|
|
44823
|
-
if (
|
|
44824
|
-
if (typeof
|
|
44825
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45095
|
+
if (__o_44["resetsAt"] !== undefined) {
|
|
45096
|
+
if (__o_44["resetsAt"] !== null) {
|
|
45097
|
+
if (typeof __o_44["resetsAt"] !== "string") {
|
|
45098
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_44["resetsAt"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("resetsAt") });
|
|
44826
45099
|
}
|
|
44827
45100
|
}
|
|
44828
45101
|
}
|
|
44829
|
-
if (
|
|
44830
|
-
if (!
|
|
44831
|
-
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input:
|
|
45102
|
+
if (__o_44["tone"] !== undefined) {
|
|
45103
|
+
if (!__set_enum_46.has(__o_44["tone"])) {
|
|
45104
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_44["tone"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("balances").concat(__i_43).concat("tone") });
|
|
44832
45105
|
}
|
|
44833
45106
|
}
|
|
44834
45107
|
}
|
|
44835
45108
|
}
|
|
44836
45109
|
}
|
|
44837
45110
|
}
|
|
44838
|
-
if (
|
|
44839
|
-
if (!Array.isArray(
|
|
44840
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
45111
|
+
if (__o_39["details"] !== undefined) {
|
|
45112
|
+
if (!Array.isArray(__o_39["details"])) {
|
|
45113
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_39["details"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("details") });
|
|
44841
45114
|
}
|
|
44842
45115
|
else {
|
|
44843
|
-
for (var
|
|
44844
|
-
if (typeof
|
|
44845
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45116
|
+
for (var __i_47 = 0; __i_47 < __o_39["details"].length; __i_47++) {
|
|
45117
|
+
if (typeof __o_39["details"][__i_47] !== "object" || __o_39["details"][__i_47] === null || Array.isArray(__o_39["details"][__i_47])) {
|
|
45118
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_39["details"][__i_47], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("details").concat(__i_47) });
|
|
44846
45119
|
}
|
|
44847
45120
|
else {
|
|
44848
|
-
var
|
|
44849
|
-
if (typeof
|
|
44850
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45121
|
+
var __o_48 = __o_39["details"][__i_47];
|
|
45122
|
+
if (typeof __o_48["id"] !== "string") {
|
|
45123
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_48["id"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("details").concat(__i_47).concat("id") });
|
|
44851
45124
|
}
|
|
44852
|
-
if (typeof
|
|
44853
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45125
|
+
if (typeof __o_48["label"] !== "string") {
|
|
45126
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_48["label"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("details").concat(__i_47).concat("label") });
|
|
44854
45127
|
}
|
|
44855
|
-
if (typeof
|
|
44856
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45128
|
+
if (typeof __o_48["value"] !== "string") {
|
|
45129
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_48["value"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("details").concat(__i_47).concat("value") });
|
|
44857
45130
|
}
|
|
44858
|
-
if (
|
|
44859
|
-
if (!
|
|
44860
|
-
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input:
|
|
45131
|
+
if (__o_48["tone"] !== undefined) {
|
|
45132
|
+
if (!__set_enum_49.has(__o_48["tone"])) {
|
|
45133
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_48["tone"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("details").concat(__i_47).concat("tone") });
|
|
44861
45134
|
}
|
|
44862
45135
|
}
|
|
44863
45136
|
}
|
|
@@ -44867,233 +45140,454 @@ export const SessionOutboundMessage208 = /* @__PURE__ */ (() => {
|
|
|
44867
45140
|
}
|
|
44868
45141
|
break;
|
|
44869
45142
|
case "unavailable":
|
|
44870
|
-
if (typeof
|
|
44871
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45143
|
+
if (typeof __du_38 !== "object" || __du_38 === null || Array.isArray(__du_38)) {
|
|
45144
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_38, path: ["payload"].concat("reports").concat(__i_35).concat("report") });
|
|
44872
45145
|
}
|
|
44873
45146
|
else {
|
|
44874
|
-
var
|
|
44875
|
-
if (
|
|
44876
|
-
_e.push({ code: "invalid_value", values: ["unavailable"], input:
|
|
45147
|
+
var __o_50 = __du_38;
|
|
45148
|
+
if (__o_50["status"] !== "unavailable") {
|
|
45149
|
+
_e.push({ code: "invalid_value", values: ["unavailable"], input: __o_50["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("status") });
|
|
44877
45150
|
}
|
|
44878
|
-
if (typeof
|
|
44879
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45151
|
+
if (typeof __o_50["problem"] !== "object" || __o_50["problem"] === null || Array.isArray(__o_50["problem"])) {
|
|
45152
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_50["problem"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem") });
|
|
44880
45153
|
}
|
|
44881
45154
|
else {
|
|
44882
|
-
var
|
|
44883
|
-
switch (
|
|
45155
|
+
var __du_51 = __o_50["problem"];
|
|
45156
|
+
switch (__du_51["kind"]) {
|
|
44884
45157
|
case "expired":
|
|
44885
|
-
if (typeof
|
|
44886
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45158
|
+
if (typeof __du_51 !== "object" || __du_51 === null || Array.isArray(__du_51)) {
|
|
45159
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_51, path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem") });
|
|
44887
45160
|
}
|
|
44888
45161
|
else {
|
|
44889
|
-
var
|
|
44890
|
-
if (
|
|
44891
|
-
_e.push({ code: "invalid_value", values: ["expired"], input:
|
|
45162
|
+
var __o_52 = __du_51;
|
|
45163
|
+
if (__o_52["kind"] !== "expired") {
|
|
45164
|
+
_e.push({ code: "invalid_value", values: ["expired"], input: __o_52["kind"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("kind") });
|
|
44892
45165
|
}
|
|
44893
|
-
if (typeof
|
|
44894
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45166
|
+
if (typeof __o_52["expiresAt"] !== "string") {
|
|
45167
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_52["expiresAt"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("expiresAt") });
|
|
44895
45168
|
}
|
|
44896
45169
|
else {
|
|
44897
|
-
if (!__re_re_15.test(
|
|
44898
|
-
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_15.toString(), origin: "string", input:
|
|
45170
|
+
if (!__re_re_15.test(__o_52["expiresAt"])) {
|
|
45171
|
+
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_15.toString(), origin: "string", input: __o_52["expiresAt"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("expiresAt") });
|
|
44899
45172
|
}
|
|
44900
45173
|
}
|
|
44901
|
-
if (
|
|
44902
|
-
if (typeof
|
|
44903
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45174
|
+
if (__o_52["refreshedBy"] !== undefined) {
|
|
45175
|
+
if (typeof __o_52["refreshedBy"] !== "string") {
|
|
45176
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_52["refreshedBy"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("refreshedBy") });
|
|
44904
45177
|
}
|
|
44905
45178
|
}
|
|
44906
45179
|
}
|
|
44907
45180
|
break;
|
|
44908
45181
|
case "rejected":
|
|
44909
|
-
if (typeof
|
|
44910
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45182
|
+
if (typeof __du_51 !== "object" || __du_51 === null || Array.isArray(__du_51)) {
|
|
45183
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_51, path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem") });
|
|
44911
45184
|
}
|
|
44912
45185
|
else {
|
|
44913
|
-
var
|
|
44914
|
-
if (
|
|
44915
|
-
_e.push({ code: "invalid_value", values: ["rejected"], input:
|
|
45186
|
+
var __o_53 = __du_51;
|
|
45187
|
+
if (__o_53["kind"] !== "rejected") {
|
|
45188
|
+
_e.push({ code: "invalid_value", values: ["rejected"], input: __o_53["kind"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("kind") });
|
|
44916
45189
|
}
|
|
44917
|
-
if (typeof
|
|
44918
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
45190
|
+
if (typeof __o_53["status"] !== "number") {
|
|
45191
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_53["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("status") });
|
|
44919
45192
|
}
|
|
44920
|
-
else if (Number.isNaN(
|
|
44921
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
45193
|
+
else if (Number.isNaN(__o_53["status"])) {
|
|
45194
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_53["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("status") });
|
|
44922
45195
|
}
|
|
44923
|
-
else if (!Number.isFinite(
|
|
44924
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
45196
|
+
else if (!Number.isFinite(__o_53["status"])) {
|
|
45197
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_53["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("status") });
|
|
44925
45198
|
}
|
|
44926
45199
|
else {
|
|
44927
|
-
if (!Number.isSafeInteger(
|
|
44928
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
45200
|
+
if (!Number.isSafeInteger(__o_53["status"])) {
|
|
45201
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_53["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("status") });
|
|
44929
45202
|
}
|
|
44930
45203
|
}
|
|
44931
|
-
if (
|
|
44932
|
-
if (typeof
|
|
44933
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45204
|
+
if (__o_53["refreshedBy"] !== undefined) {
|
|
45205
|
+
if (typeof __o_53["refreshedBy"] !== "string") {
|
|
45206
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_53["refreshedBy"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("refreshedBy") });
|
|
44934
45207
|
}
|
|
44935
45208
|
}
|
|
44936
45209
|
}
|
|
44937
45210
|
break;
|
|
44938
45211
|
case "no_quota":
|
|
44939
|
-
if (typeof
|
|
44940
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45212
|
+
if (typeof __du_51 !== "object" || __du_51 === null || Array.isArray(__du_51)) {
|
|
45213
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_51, path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem") });
|
|
44941
45214
|
}
|
|
44942
45215
|
else {
|
|
44943
|
-
var
|
|
44944
|
-
if (
|
|
44945
|
-
_e.push({ code: "invalid_value", values: ["no_quota"], input:
|
|
45216
|
+
var __o_54 = __du_51;
|
|
45217
|
+
if (__o_54["kind"] !== "no_quota") {
|
|
45218
|
+
_e.push({ code: "invalid_value", values: ["no_quota"], input: __o_54["kind"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("kind") });
|
|
44946
45219
|
}
|
|
44947
|
-
if (typeof
|
|
44948
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45220
|
+
if (typeof __o_54["detail"] !== "string") {
|
|
45221
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_54["detail"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("detail") });
|
|
44949
45222
|
}
|
|
44950
45223
|
}
|
|
44951
45224
|
break;
|
|
44952
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input:
|
|
45225
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input: __o_50["problem"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("problem").concat("kind") });
|
|
44953
45226
|
}
|
|
44954
45227
|
}
|
|
44955
45228
|
}
|
|
44956
45229
|
break;
|
|
44957
45230
|
case "error":
|
|
44958
|
-
if (typeof
|
|
44959
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45231
|
+
if (typeof __du_38 !== "object" || __du_38 === null || Array.isArray(__du_38)) {
|
|
45232
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_38, path: ["payload"].concat("reports").concat(__i_35).concat("report") });
|
|
44960
45233
|
}
|
|
44961
45234
|
else {
|
|
44962
|
-
var
|
|
44963
|
-
if (
|
|
44964
|
-
_e.push({ code: "invalid_value", values: ["error"], input:
|
|
45235
|
+
var __o_55 = __du_38;
|
|
45236
|
+
if (__o_55["status"] !== "error") {
|
|
45237
|
+
_e.push({ code: "invalid_value", values: ["error"], input: __o_55["status"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("status") });
|
|
44965
45238
|
}
|
|
44966
|
-
if (typeof
|
|
44967
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45239
|
+
if (typeof __o_55["error"] !== "string") {
|
|
45240
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_55["error"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("error") });
|
|
44968
45241
|
}
|
|
44969
45242
|
}
|
|
44970
45243
|
break;
|
|
44971
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["available", "unavailable", "error"], input:
|
|
45244
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["available", "unavailable", "error"], input: __o_36["report"], path: ["payload"].concat("reports").concat(__i_35).concat("report").concat("status") });
|
|
45245
|
+
}
|
|
45246
|
+
}
|
|
45247
|
+
if (__o_36["successfulAt"] !== undefined) {
|
|
45248
|
+
if (typeof __o_36["successfulAt"] !== "string") {
|
|
45249
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_36["successfulAt"], path: ["payload"].concat("reports").concat(__i_35).concat("successfulAt") });
|
|
45250
|
+
}
|
|
45251
|
+
}
|
|
45252
|
+
if (__o_36["lastSuccessful"] !== undefined) {
|
|
45253
|
+
if (typeof __o_36["lastSuccessful"] !== "object" || __o_36["lastSuccessful"] === null || Array.isArray(__o_36["lastSuccessful"])) {
|
|
45254
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["lastSuccessful"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful") });
|
|
45255
|
+
}
|
|
45256
|
+
else {
|
|
45257
|
+
var __o_56 = __o_36["lastSuccessful"];
|
|
45258
|
+
if (typeof __o_56["fetchedAt"] !== "string") {
|
|
45259
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_56["fetchedAt"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("fetchedAt") });
|
|
45260
|
+
}
|
|
45261
|
+
if (typeof __o_56["report"] !== "object" || __o_56["report"] === null || Array.isArray(__o_56["report"])) {
|
|
45262
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_56["report"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report") });
|
|
45263
|
+
}
|
|
45264
|
+
else {
|
|
45265
|
+
var __o_57 = __o_56["report"];
|
|
45266
|
+
if (__o_57["status"] !== "available") {
|
|
45267
|
+
_e.push({ code: "invalid_value", values: ["available"], input: __o_57["status"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("status") });
|
|
45268
|
+
}
|
|
45269
|
+
if (__o_57["planLabel"] !== undefined) {
|
|
45270
|
+
if (typeof __o_57["planLabel"] !== "string") {
|
|
45271
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_57["planLabel"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("planLabel") });
|
|
45272
|
+
}
|
|
45273
|
+
}
|
|
45274
|
+
if (!Array.isArray(__o_57["windows"])) {
|
|
45275
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_57["windows"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows") });
|
|
45276
|
+
}
|
|
45277
|
+
else {
|
|
45278
|
+
for (var __i_58 = 0; __i_58 < __o_57["windows"].length; __i_58++) {
|
|
45279
|
+
if (typeof __o_57["windows"][__i_58] !== "object" || __o_57["windows"][__i_58] === null || Array.isArray(__o_57["windows"][__i_58])) {
|
|
45280
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_57["windows"][__i_58], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58) });
|
|
45281
|
+
}
|
|
45282
|
+
else {
|
|
45283
|
+
var __o_59 = __o_57["windows"][__i_58];
|
|
45284
|
+
if (typeof __o_59["id"] !== "string") {
|
|
45285
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["id"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("id") });
|
|
45286
|
+
}
|
|
45287
|
+
if (typeof __o_59["label"] !== "string") {
|
|
45288
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["label"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("label") });
|
|
45289
|
+
}
|
|
45290
|
+
if (__o_59["shortLabel"] !== undefined) {
|
|
45291
|
+
if (typeof __o_59["shortLabel"] !== "string") {
|
|
45292
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["shortLabel"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("shortLabel") });
|
|
45293
|
+
}
|
|
45294
|
+
}
|
|
45295
|
+
if (__o_59["summary"] !== undefined) {
|
|
45296
|
+
if (typeof __o_59["summary"] !== "boolean") {
|
|
45297
|
+
_e.push({ code: "invalid_type", expected: "boolean", input: __o_59["summary"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("summary") });
|
|
45298
|
+
}
|
|
45299
|
+
}
|
|
45300
|
+
if (__o_59["usedPct"] !== undefined) {
|
|
45301
|
+
if (__o_59["usedPct"] !== null) {
|
|
45302
|
+
if (typeof __o_59["usedPct"] !== "number") {
|
|
45303
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_59["usedPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("usedPct") });
|
|
45304
|
+
}
|
|
45305
|
+
else if (Number.isNaN(__o_59["usedPct"])) {
|
|
45306
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_59["usedPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("usedPct") });
|
|
45307
|
+
}
|
|
45308
|
+
else if (!Number.isFinite(__o_59["usedPct"])) {
|
|
45309
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_59["usedPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("usedPct") });
|
|
45310
|
+
}
|
|
45311
|
+
}
|
|
45312
|
+
}
|
|
45313
|
+
if (__o_59["remainingPct"] !== undefined) {
|
|
45314
|
+
if (__o_59["remainingPct"] !== null) {
|
|
45315
|
+
if (typeof __o_59["remainingPct"] !== "number") {
|
|
45316
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_59["remainingPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("remainingPct") });
|
|
45317
|
+
}
|
|
45318
|
+
else if (Number.isNaN(__o_59["remainingPct"])) {
|
|
45319
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_59["remainingPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("remainingPct") });
|
|
45320
|
+
}
|
|
45321
|
+
else if (!Number.isFinite(__o_59["remainingPct"])) {
|
|
45322
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_59["remainingPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("remainingPct") });
|
|
45323
|
+
}
|
|
45324
|
+
}
|
|
45325
|
+
}
|
|
45326
|
+
if (__o_59["resetsAt"] !== undefined) {
|
|
45327
|
+
if (__o_59["resetsAt"] !== null) {
|
|
45328
|
+
if (typeof __o_59["resetsAt"] !== "string") {
|
|
45329
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["resetsAt"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("resetsAt") });
|
|
45330
|
+
}
|
|
45331
|
+
}
|
|
45332
|
+
}
|
|
45333
|
+
if (__o_59["runsOutAt"] !== undefined) {
|
|
45334
|
+
if (__o_59["runsOutAt"] !== null) {
|
|
45335
|
+
if (typeof __o_59["runsOutAt"] !== "string") {
|
|
45336
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_59["runsOutAt"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("runsOutAt") });
|
|
45337
|
+
}
|
|
45338
|
+
}
|
|
45339
|
+
}
|
|
45340
|
+
if (__o_59["shortfallPct"] !== undefined) {
|
|
45341
|
+
if (__o_59["shortfallPct"] !== null) {
|
|
45342
|
+
if (typeof __o_59["shortfallPct"] !== "number") {
|
|
45343
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_59["shortfallPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("shortfallPct") });
|
|
45344
|
+
}
|
|
45345
|
+
else if (Number.isNaN(__o_59["shortfallPct"])) {
|
|
45346
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_59["shortfallPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("shortfallPct") });
|
|
45347
|
+
}
|
|
45348
|
+
else if (!Number.isFinite(__o_59["shortfallPct"])) {
|
|
45349
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_59["shortfallPct"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("shortfallPct") });
|
|
45350
|
+
}
|
|
45351
|
+
}
|
|
45352
|
+
}
|
|
45353
|
+
if (__o_59["tone"] !== undefined) {
|
|
45354
|
+
if (!__set_enum_60.has(__o_59["tone"])) {
|
|
45355
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_59["tone"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("windows").concat(__i_58).concat("tone") });
|
|
45356
|
+
}
|
|
45357
|
+
}
|
|
45358
|
+
}
|
|
45359
|
+
}
|
|
45360
|
+
}
|
|
45361
|
+
if (__o_57["balances"] !== undefined) {
|
|
45362
|
+
if (!Array.isArray(__o_57["balances"])) {
|
|
45363
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_57["balances"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances") });
|
|
45364
|
+
}
|
|
45365
|
+
else {
|
|
45366
|
+
for (var __i_61 = 0; __i_61 < __o_57["balances"].length; __i_61++) {
|
|
45367
|
+
if (typeof __o_57["balances"][__i_61] !== "object" || __o_57["balances"][__i_61] === null || Array.isArray(__o_57["balances"][__i_61])) {
|
|
45368
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_57["balances"][__i_61], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61) });
|
|
45369
|
+
}
|
|
45370
|
+
else {
|
|
45371
|
+
var __o_62 = __o_57["balances"][__i_61];
|
|
45372
|
+
if (typeof __o_62["id"] !== "string") {
|
|
45373
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_62["id"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("id") });
|
|
45374
|
+
}
|
|
45375
|
+
if (typeof __o_62["label"] !== "string") {
|
|
45376
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_62["label"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("label") });
|
|
45377
|
+
}
|
|
45378
|
+
if (__o_62["used"] !== undefined) {
|
|
45379
|
+
if (__o_62["used"] !== null) {
|
|
45380
|
+
if (typeof __o_62["used"] !== "number") {
|
|
45381
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_62["used"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("used") });
|
|
45382
|
+
}
|
|
45383
|
+
else if (Number.isNaN(__o_62["used"])) {
|
|
45384
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_62["used"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("used") });
|
|
45385
|
+
}
|
|
45386
|
+
else if (!Number.isFinite(__o_62["used"])) {
|
|
45387
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_62["used"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("used") });
|
|
45388
|
+
}
|
|
45389
|
+
}
|
|
45390
|
+
}
|
|
45391
|
+
if (__o_62["remaining"] !== undefined) {
|
|
45392
|
+
if (__o_62["remaining"] !== null) {
|
|
45393
|
+
if (typeof __o_62["remaining"] !== "number") {
|
|
45394
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_62["remaining"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("remaining") });
|
|
45395
|
+
}
|
|
45396
|
+
else if (Number.isNaN(__o_62["remaining"])) {
|
|
45397
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_62["remaining"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("remaining") });
|
|
45398
|
+
}
|
|
45399
|
+
else if (!Number.isFinite(__o_62["remaining"])) {
|
|
45400
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_62["remaining"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("remaining") });
|
|
45401
|
+
}
|
|
45402
|
+
}
|
|
45403
|
+
}
|
|
45404
|
+
if (__o_62["limit"] !== undefined) {
|
|
45405
|
+
if (__o_62["limit"] !== null) {
|
|
45406
|
+
if (typeof __o_62["limit"] !== "number") {
|
|
45407
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_62["limit"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("limit") });
|
|
45408
|
+
}
|
|
45409
|
+
else if (Number.isNaN(__o_62["limit"])) {
|
|
45410
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_62["limit"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("limit") });
|
|
45411
|
+
}
|
|
45412
|
+
else if (!Number.isFinite(__o_62["limit"])) {
|
|
45413
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_62["limit"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("limit") });
|
|
45414
|
+
}
|
|
45415
|
+
}
|
|
45416
|
+
}
|
|
45417
|
+
if (!__set_enum_63.has(__o_62["unit"])) {
|
|
45418
|
+
_e.push({ code: "invalid_value", values: ["usd", "credits", "requests", "tokens"], input: __o_62["unit"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("unit") });
|
|
45419
|
+
}
|
|
45420
|
+
if (__o_62["resetsAt"] !== undefined) {
|
|
45421
|
+
if (__o_62["resetsAt"] !== null) {
|
|
45422
|
+
if (typeof __o_62["resetsAt"] !== "string") {
|
|
45423
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_62["resetsAt"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("resetsAt") });
|
|
45424
|
+
}
|
|
45425
|
+
}
|
|
45426
|
+
}
|
|
45427
|
+
if (__o_62["tone"] !== undefined) {
|
|
45428
|
+
if (!__set_enum_64.has(__o_62["tone"])) {
|
|
45429
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_62["tone"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("balances").concat(__i_61).concat("tone") });
|
|
45430
|
+
}
|
|
45431
|
+
}
|
|
45432
|
+
}
|
|
45433
|
+
}
|
|
45434
|
+
}
|
|
45435
|
+
}
|
|
45436
|
+
if (__o_57["details"] !== undefined) {
|
|
45437
|
+
if (!Array.isArray(__o_57["details"])) {
|
|
45438
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_57["details"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("details") });
|
|
45439
|
+
}
|
|
45440
|
+
else {
|
|
45441
|
+
for (var __i_65 = 0; __i_65 < __o_57["details"].length; __i_65++) {
|
|
45442
|
+
if (typeof __o_57["details"][__i_65] !== "object" || __o_57["details"][__i_65] === null || Array.isArray(__o_57["details"][__i_65])) {
|
|
45443
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_57["details"][__i_65], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("details").concat(__i_65) });
|
|
45444
|
+
}
|
|
45445
|
+
else {
|
|
45446
|
+
var __o_66 = __o_57["details"][__i_65];
|
|
45447
|
+
if (typeof __o_66["id"] !== "string") {
|
|
45448
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_66["id"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("details").concat(__i_65).concat("id") });
|
|
45449
|
+
}
|
|
45450
|
+
if (typeof __o_66["label"] !== "string") {
|
|
45451
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_66["label"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("details").concat(__i_65).concat("label") });
|
|
45452
|
+
}
|
|
45453
|
+
if (typeof __o_66["value"] !== "string") {
|
|
45454
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_66["value"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("details").concat(__i_65).concat("value") });
|
|
45455
|
+
}
|
|
45456
|
+
if (__o_66["tone"] !== undefined) {
|
|
45457
|
+
if (!__set_enum_67.has(__o_66["tone"])) {
|
|
45458
|
+
_e.push({ code: "invalid_value", values: ["default", "ok", "warning", "danger"], input: __o_66["tone"], path: ["payload"].concat("reports").concat(__i_35).concat("lastSuccessful").concat("report").concat("details").concat(__i_65).concat("tone") });
|
|
45459
|
+
}
|
|
45460
|
+
}
|
|
45461
|
+
}
|
|
45462
|
+
}
|
|
45463
|
+
}
|
|
45464
|
+
}
|
|
45465
|
+
}
|
|
44972
45466
|
}
|
|
44973
45467
|
}
|
|
44974
|
-
if (
|
|
44975
|
-
if (!Array.isArray(
|
|
44976
|
-
_e.push({ code: "invalid_type", expected: "array", input:
|
|
45468
|
+
if (__o_36["loginErrors"] !== undefined) {
|
|
45469
|
+
if (!Array.isArray(__o_36["loginErrors"])) {
|
|
45470
|
+
_e.push({ code: "invalid_type", expected: "array", input: __o_36["loginErrors"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors") });
|
|
44977
45471
|
}
|
|
44978
45472
|
else {
|
|
44979
|
-
for (var
|
|
44980
|
-
if (typeof
|
|
44981
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45473
|
+
for (var __i_68 = 0; __i_68 < __o_36["loginErrors"].length; __i_68++) {
|
|
45474
|
+
if (typeof __o_36["loginErrors"][__i_68] !== "object" || __o_36["loginErrors"][__i_68] === null || Array.isArray(__o_36["loginErrors"][__i_68])) {
|
|
45475
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_36["loginErrors"][__i_68], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68) });
|
|
44982
45476
|
}
|
|
44983
45477
|
else {
|
|
44984
|
-
var
|
|
44985
|
-
if (typeof
|
|
44986
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45478
|
+
var __o_69 = __o_36["loginErrors"][__i_68];
|
|
45479
|
+
if (typeof __o_69["harness"] !== "string") {
|
|
45480
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_69["harness"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("harness") });
|
|
44987
45481
|
}
|
|
44988
|
-
if (typeof
|
|
44989
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45482
|
+
if (typeof __o_69["report"] !== "object" || __o_69["report"] === null || Array.isArray(__o_69["report"])) {
|
|
45483
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_69["report"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report") });
|
|
44990
45484
|
}
|
|
44991
45485
|
else {
|
|
44992
|
-
var
|
|
44993
|
-
switch (
|
|
45486
|
+
var __du_70 = __o_69["report"];
|
|
45487
|
+
switch (__du_70["status"]) {
|
|
44994
45488
|
case "unavailable":
|
|
44995
|
-
if (typeof
|
|
44996
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45489
|
+
if (typeof __du_70 !== "object" || __du_70 === null || Array.isArray(__du_70)) {
|
|
45490
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_70, path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report") });
|
|
44997
45491
|
}
|
|
44998
45492
|
else {
|
|
44999
|
-
var
|
|
45000
|
-
if (
|
|
45001
|
-
_e.push({ code: "invalid_value", values: ["unavailable"], input:
|
|
45493
|
+
var __o_71 = __du_70;
|
|
45494
|
+
if (__o_71["status"] !== "unavailable") {
|
|
45495
|
+
_e.push({ code: "invalid_value", values: ["unavailable"], input: __o_71["status"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("status") });
|
|
45002
45496
|
}
|
|
45003
|
-
if (typeof
|
|
45004
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45497
|
+
if (typeof __o_71["problem"] !== "object" || __o_71["problem"] === null || Array.isArray(__o_71["problem"])) {
|
|
45498
|
+
_e.push({ code: "invalid_type", expected: "object", input: __o_71["problem"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem") });
|
|
45005
45499
|
}
|
|
45006
45500
|
else {
|
|
45007
|
-
var
|
|
45008
|
-
switch (
|
|
45501
|
+
var __du_72 = __o_71["problem"];
|
|
45502
|
+
switch (__du_72["kind"]) {
|
|
45009
45503
|
case "expired":
|
|
45010
|
-
if (typeof
|
|
45011
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45504
|
+
if (typeof __du_72 !== "object" || __du_72 === null || Array.isArray(__du_72)) {
|
|
45505
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_72, path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem") });
|
|
45012
45506
|
}
|
|
45013
45507
|
else {
|
|
45014
|
-
var
|
|
45015
|
-
if (
|
|
45016
|
-
_e.push({ code: "invalid_value", values: ["expired"], input:
|
|
45508
|
+
var __o_73 = __du_72;
|
|
45509
|
+
if (__o_73["kind"] !== "expired") {
|
|
45510
|
+
_e.push({ code: "invalid_value", values: ["expired"], input: __o_73["kind"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("kind") });
|
|
45017
45511
|
}
|
|
45018
|
-
if (typeof
|
|
45019
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45512
|
+
if (typeof __o_73["expiresAt"] !== "string") {
|
|
45513
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_73["expiresAt"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("expiresAt") });
|
|
45020
45514
|
}
|
|
45021
45515
|
else {
|
|
45022
|
-
if (!__re_re_15.test(
|
|
45023
|
-
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_15.toString(), origin: "string", input:
|
|
45516
|
+
if (!__re_re_15.test(__o_73["expiresAt"])) {
|
|
45517
|
+
_e.push({ code: "invalid_format", format: "datetime", pattern: __re_re_15.toString(), origin: "string", input: __o_73["expiresAt"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("expiresAt") });
|
|
45024
45518
|
}
|
|
45025
45519
|
}
|
|
45026
|
-
if (
|
|
45027
|
-
if (typeof
|
|
45028
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45520
|
+
if (__o_73["refreshedBy"] !== undefined) {
|
|
45521
|
+
if (typeof __o_73["refreshedBy"] !== "string") {
|
|
45522
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_73["refreshedBy"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("refreshedBy") });
|
|
45029
45523
|
}
|
|
45030
45524
|
}
|
|
45031
45525
|
}
|
|
45032
45526
|
break;
|
|
45033
45527
|
case "rejected":
|
|
45034
|
-
if (typeof
|
|
45035
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45528
|
+
if (typeof __du_72 !== "object" || __du_72 === null || Array.isArray(__du_72)) {
|
|
45529
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_72, path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem") });
|
|
45036
45530
|
}
|
|
45037
45531
|
else {
|
|
45038
|
-
var
|
|
45039
|
-
if (
|
|
45040
|
-
_e.push({ code: "invalid_value", values: ["rejected"], input:
|
|
45532
|
+
var __o_74 = __du_72;
|
|
45533
|
+
if (__o_74["kind"] !== "rejected") {
|
|
45534
|
+
_e.push({ code: "invalid_value", values: ["rejected"], input: __o_74["kind"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("kind") });
|
|
45041
45535
|
}
|
|
45042
|
-
if (typeof
|
|
45043
|
-
_e.push({ code: "invalid_type", expected: "number", input:
|
|
45536
|
+
if (typeof __o_74["status"] !== "number") {
|
|
45537
|
+
_e.push({ code: "invalid_type", expected: "number", input: __o_74["status"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("status") });
|
|
45044
45538
|
}
|
|
45045
|
-
else if (Number.isNaN(
|
|
45046
|
-
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input:
|
|
45539
|
+
else if (Number.isNaN(__o_74["status"])) {
|
|
45540
|
+
_e.push({ code: "invalid_type", expected: "number", received: "NaN", input: __o_74["status"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("status") });
|
|
45047
45541
|
}
|
|
45048
|
-
else if (!Number.isFinite(
|
|
45049
|
-
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input:
|
|
45542
|
+
else if (!Number.isFinite(__o_74["status"])) {
|
|
45543
|
+
_e.push({ code: "invalid_type", expected: "number", received: "Infinity", input: __o_74["status"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("status") });
|
|
45050
45544
|
}
|
|
45051
45545
|
else {
|
|
45052
|
-
if (!Number.isSafeInteger(
|
|
45053
|
-
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input:
|
|
45546
|
+
if (!Number.isSafeInteger(__o_74["status"])) {
|
|
45547
|
+
_e.push({ code: "invalid_type", expected: "int", format: "safeint", input: __o_74["status"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("status") });
|
|
45054
45548
|
}
|
|
45055
45549
|
}
|
|
45056
|
-
if (
|
|
45057
|
-
if (typeof
|
|
45058
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45550
|
+
if (__o_74["refreshedBy"] !== undefined) {
|
|
45551
|
+
if (typeof __o_74["refreshedBy"] !== "string") {
|
|
45552
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_74["refreshedBy"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("refreshedBy") });
|
|
45059
45553
|
}
|
|
45060
45554
|
}
|
|
45061
45555
|
}
|
|
45062
45556
|
break;
|
|
45063
45557
|
case "no_quota":
|
|
45064
|
-
if (typeof
|
|
45065
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45558
|
+
if (typeof __du_72 !== "object" || __du_72 === null || Array.isArray(__du_72)) {
|
|
45559
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_72, path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem") });
|
|
45066
45560
|
}
|
|
45067
45561
|
else {
|
|
45068
|
-
var
|
|
45069
|
-
if (
|
|
45070
|
-
_e.push({ code: "invalid_value", values: ["no_quota"], input:
|
|
45562
|
+
var __o_75 = __du_72;
|
|
45563
|
+
if (__o_75["kind"] !== "no_quota") {
|
|
45564
|
+
_e.push({ code: "invalid_value", values: ["no_quota"], input: __o_75["kind"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("kind") });
|
|
45071
45565
|
}
|
|
45072
|
-
if (typeof
|
|
45073
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45566
|
+
if (typeof __o_75["detail"] !== "string") {
|
|
45567
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_75["detail"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("detail") });
|
|
45074
45568
|
}
|
|
45075
45569
|
}
|
|
45076
45570
|
break;
|
|
45077
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input:
|
|
45571
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "kind", options: ["expired", "rejected", "no_quota"], input: __o_71["problem"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("problem").concat("kind") });
|
|
45078
45572
|
}
|
|
45079
45573
|
}
|
|
45080
45574
|
}
|
|
45081
45575
|
break;
|
|
45082
45576
|
case "error":
|
|
45083
|
-
if (typeof
|
|
45084
|
-
_e.push({ code: "invalid_type", expected: "object", input:
|
|
45577
|
+
if (typeof __du_70 !== "object" || __du_70 === null || Array.isArray(__du_70)) {
|
|
45578
|
+
_e.push({ code: "invalid_type", expected: "object", input: __du_70, path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report") });
|
|
45085
45579
|
}
|
|
45086
45580
|
else {
|
|
45087
|
-
var
|
|
45088
|
-
if (
|
|
45089
|
-
_e.push({ code: "invalid_value", values: ["error"], input:
|
|
45581
|
+
var __o_76 = __du_70;
|
|
45582
|
+
if (__o_76["status"] !== "error") {
|
|
45583
|
+
_e.push({ code: "invalid_value", values: ["error"], input: __o_76["status"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("status") });
|
|
45090
45584
|
}
|
|
45091
|
-
if (typeof
|
|
45092
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45585
|
+
if (typeof __o_76["error"] !== "string") {
|
|
45586
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_76["error"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("error") });
|
|
45093
45587
|
}
|
|
45094
45588
|
}
|
|
45095
45589
|
break;
|
|
45096
|
-
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["unavailable", "error"], input:
|
|
45590
|
+
default: _e.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: "status", options: ["unavailable", "error"], input: __o_69["report"], path: ["payload"].concat("reports").concat(__i_35).concat("loginErrors").concat(__i_68).concat("report").concat("status") });
|
|
45097
45591
|
}
|
|
45098
45592
|
}
|
|
45099
45593
|
}
|
|
@@ -45104,10 +45598,10 @@ export const SessionOutboundMessage208 = /* @__PURE__ */ (() => {
|
|
|
45104
45598
|
}
|
|
45105
45599
|
}
|
|
45106
45600
|
}
|
|
45107
|
-
if (
|
|
45108
|
-
if (
|
|
45109
|
-
if (typeof
|
|
45110
|
-
_e.push({ code: "invalid_type", expected: "string", input:
|
|
45601
|
+
if (__o_34["error"] !== undefined) {
|
|
45602
|
+
if (__o_34["error"] !== null) {
|
|
45603
|
+
if (typeof __o_34["error"] !== "string") {
|
|
45604
|
+
_e.push({ code: "invalid_type", expected: "string", input: __o_34["error"], path: ["payload"].concat("error") });
|
|
45111
45605
|
}
|
|
45112
45606
|
}
|
|
45113
45607
|
}
|