From 9fb367b26e1e624d844b452e808687c092e97383 Mon Sep 17 00:00:00 2001
From: MrScripty
Date: Thu, 24 Sep 2026 17:57:55 -0700
Subject: [PATCH 01/32] feat(torch): select release-compatible runtime defaults
---
.../issues.md | 2 +-
.../upstream-version-manager-progress.md | 86 +-
.../torch-upstream-version-management/plan.md | 43 +-
electron/src/generated/desktop-contract.ts | 20 +-
.../desktop-contract.validators.d.ts | 10 +-
.../generated/desktop-contract.validators.js | 2703 +++++++++++------
electron/src/preload.ts | 6 +
.../TorchDesktopProjection.test.tsx | 18 +-
.../components/TorchInstallPreview.test.tsx | 331 +-
.../src/components/TorchInstallPreview.tsx | 146 +-
.../components/app-panels/TorchPanel.test.tsx | 10 +-
frontend/src/generated/desktop-contract.ts | 20 +-
.../desktop-contract.validators.d.ts | 10 +-
.../generated/desktop-contract.validators.js | 2703 +++++++++++------
frontend/src/types/api-bridge-runtime.ts | 3 +-
frontend/src/types/torch-install.ts | 2 +
.../src/version_manager/mod.rs | 6 +-
.../src/version_manager/torch_alternatives.rs | 965 +++++-
.../src/version_manager/torch_preview.rs | 103 +-
rust/crates/pumas-rpc/src/contract.rs | 239 ++
rust/crates/pumas-rpc/src/contract/export.rs | 8 +
rust/crates/pumas-rpc/src/handlers/mod.rs | 6 +
torch-server/resolve_runtime.py | 308 +-
torch-server/tests/test_resolve_runtime.py | 270 +-
24 files changed, 5827 insertions(+), 2191 deletions(-)
diff --git a/docs/plans/current-standards-remediation-2026-09-03/issues.md b/docs/plans/current-standards-remediation-2026-09-03/issues.md
index a1a7d4631..8a4e585d0 100644
--- a/docs/plans/current-standards-remediation-2026-09-03/issues.md
+++ b/docs/plans/current-standards-remediation-2026-09-03/issues.md
@@ -34,7 +34,7 @@ acceptance. Current program-level coordination findings follow.
| `PRG-I14` | High | Rust M2F's producer-owned `ConversionProgressOutcome` preserves the core contract's camelCase inner fields, while the handwritten frontend `api-conversion.ts` claims snake_case progress fields. | Cross-process contract drift; does not invalidate the closed Rust producer slice but blocks PRG-A2 consumer acceptance. | Preserve Rust as semantic owner. Platform M1 must generate/decode its exact shape after zero-Legacy, and frontend M4 must delete/migrate the handwritten mismatch rather than making another local schema copy. | Malformed/mismatched conversion payload corpus fails explicitly through the generated Electron/preload Adapter and renderer consumer tests. |
| `PRG-I15` | High | Rust M2H review found the core interrupted-download scan mapped a `spawn_blocking` join failure to an empty list, while an intentionally disabled or failed-to-initialize HF client mapped status/mutation/list calls to not-found, false-without-reason, or successful empty data. | Producer truth and lifecycle composition; invalidated the affected M2H closed-outcome claim and would have made platform M1 generate unavailable/failure states as valid missing/empty results. | Resolved: the canonical core/public/desktop seams return disabled HF as `Err`, preserve task-join failure, and keep legitimate missing/false/empty results distinct. The transitional UniFFI caller only projects `Result` pending its accepted removal; no manifest/shared expansion occurred. | Passed: direct disabled-HF and deterministic join-failure tests, real desktop valid-missing/empty cases, real local-IPC method rejection, full core/RPC/adapter suites, default/no-default Clippy/check, format, and diff checks. This seam remains valid, but PRG-I19 separately reopens the recovery mutation commands, so aggregate M2H/count acceptance is suspended. |
| `PRG-I16` | Medium | The post-M3 full frontend suite initially passed 470/471: unchanged `ModelMetadataModal.test.tsx` still queried deleted accessible backdrop label `Close metadata modal` and emitted `act` warnings from unawaited initial loads. | Focused evidence reconciliation; frontend owns the stale caller test, and the failure blocked M3-S3b/full-tranche acceptance without invalidating accepted ModalDialog behavior. | Resolved test-only: the caller awaits initial metadata, drives the aria-hidden backdrop's actual `mousedown` Interface, and sends Escape to `document`; no product source or obsolete accessible backdrop was restored. | Passed: focused modal/Popover tests, full lint/types/builds, and the expanded full frontend suite at 109 files/473 tests without the prior warnings. |
-| `PRG-I17` | High | Platform M3 found that the reachable GUI-managed Torch path installed upstream source while its launcher expected Pumas `serve.py`; the manifest also advertised Python 3.10 despite the repository pinning 3.12.3. The embedded sidecar, upstream wheel resolver, and managed runtime path have since been implemented and exercised through RPC, including real 2.10 CUDA/Tuldok inference. | Cross-plan deployment authority; Torch runtime installation/process ownership stays in `pumas-app-manager`, sidecar execution stays in `torch-server`, and desktop/API projection consumes the RPC contract. | **Resolved within the repository-owner-authorized scope:** discover stable upstream `vMAJOR.MINOR.PATCH` tags independently of Pumas qualification, subject to a 20-page / 120-second complete-listing budget that fails without partial success. Offer CPU/CUDA/ROCm binary-wheel installation only when the full official hash-locked dependencies resolve for Linux x86_64 and an installed CPython 3.10–3.13. Do not provision Python, compile Torch from source, or claim XPU/other operating systems. Keep install, selection, default, start, and stop explicit. | Passed U1–U4: live discovery returned 63 stable tags; dynamic `v2.9.0+cpu` / CPython 3.12 preview resolved 25 hashed wheels, installed, passed identity/core probe, was selected, passed managed sidecar health/protocol 3, and stopped by owned generation. Cancellation/state-preservation and typed-preview rejection tests passed; the composed desktop projection test passed. See the [accepted plan](../torch-upstream-version-management/plan.md), [current runtime inventory](../torch-diffusion-serving/reports/upstream-version-manager-progress.md), and [retained acceptance summary and artifact manifest](../torch-upstream-version-management/reports/v2.9.0-cpu-rpc-acceptance.json). This is runtime-manager acceptance via RPC plus composed desktop controls, not a real interactive desktop run or an all-release image claim. The actual Tuldok image result remains the exact Torch 2.10 / CUDA 13.0 / Python 3.12 / FLUX.2 tuple. |
+| `PRG-I17` | High | Platform M3 found that the reachable GUI-managed Torch path installed upstream source while its launcher expected Pumas `serve.py`; the manifest also advertised Python 3.10 despite the repository pinning 3.12.3. The embedded sidecar, upstream wheel resolver, and managed runtime path have since been implemented and exercised through RPC, including real 2.10 CUDA/Tuldok inference. | Cross-plan deployment authority; Torch runtime installation/process ownership stays in `pumas-app-manager`, sidecar execution stays in `torch-server`, and desktop/API projection consumes the RPC contract. | **Resolved within the repository-owner-authorized scope:** discover stable upstream `vMAJOR.MINOR.PATCH` tags independently of Pumas qualification, subject to a 20-page / 120-second complete-listing budget that fails without partial success. Offer CPU/CUDA/ROCm binary-wheel installation only when the full official hash-locked dependencies resolve for Linux x86_64 and an installed CPython 3.10–3.13. Do not provision Python, compile Torch from source, or claim XPU/other operating systems. Keep install, selection, default, start, and stop explicit. | Passed U1–U4: live discovery returned 63 stable tags; dynamic `v2.9.0+cpu` / CPython 3.12 preview resolved 25 hashed wheels, installed, passed identity/core probe, was selected, passed managed sidecar health/protocol 3, and stopped by owned generation. U6 now discovers release-specific official wheels, filters channels against detected display vendors, recommends only when scan and driver checks support it, and defaults to a Pumas-owned FLUX.2 profile with build/Python/profile choices in Advanced. The live `v2.14.0` scan returned no `cu134`; it does not establish a completed v2.14 dependency preview, install, or image generation. Cancellation/state-preservation and typed-preview rejection tests passed; the composed desktop projection test passed. See the [accepted plan](../torch-upstream-version-management/plan.md), [current runtime inventory](../torch-diffusion-serving/reports/upstream-version-manager-progress.md), and [retained acceptance summary and artifact manifest](../torch-upstream-version-management/reports/v2.9.0-cpu-rpc-acceptance.json). This is runtime-manager acceptance via RPC plus composed desktop controls, not a real interactive desktop run or an all-release image claim. The actual Tuldok image result remains the exact Torch 2.10 / CUDA 13.0 / Python 3.12 / FLUX.2 tuple. |
| `PRG-I18` | High | Rust M2I review found four corrected producer counterexample families, then downstream consumer review found a fifth: a complete Q5 row still carried subordinate selected-Q4 recovery identity, and the current renderer prioritizes that identity when matching activity, falsely attaching Q4 state to the ready Q5 row. The earlier families were whole-catalog rejection of valid mixed state, bidirectional hierarchy dirtiness, host-dependent recovery grammar, and bounded run-ID collision. | Rust core/RPC catalog contract and program sequence; the consumer contradiction reopens M2I and blocks its count increase, M2J, RUST-A2, platform M1 generation, and frontend M4 consumption even though the corrected hierarchy/list/grammar/bounds subclaims remain valid. | Active corrective gate: `Complete` cannot carry subordinate recovery identity; only a truly partial row may expose a recovery action. Preserve authoritative ready classification without a renderer-unneeded mixed state, and keep the earlier corrected producer evidence as partial subclaims. | Cross-owner Q5-complete/Q4-part projection must serialize complete with no recovery identity, then the actual renderer matching/row-state corpus must keep Q5 ready and must not attach Q4 activity. Re-run both feature modes and independent review before M2I counts advance or M2J starts. |
| `PRG-I19` | Critical | The original M2H recovery request accepted caller-owned repository/path authority. Corrected Slice A closes the durable publication/store prerequisite, and fourth-freeze Slice B now closes the deep task/blocking owner after three rejected boundaries exposed reservation, drain, projection, cancellation, callback, and filesystem-custody defects. C1 and C2 are internally verified, and C3's narrow ordinary admission/resume/restore checkpoint passed review and targeted evidence. The interrupted-response/fresh-owner-reopen path is verified; full C3 is active after PRG-I24's migration scope approval; hard process-crash recovery, stable runtime queue identity, comprehensive owned restore, stalled pause, relocation, and guard-free effects remain incomplete. Builder callback wrappers still spawn the real importer mutation and return before lifecycle observation; C4 owns that repair. Live desktop consumers still send the removed ambient shape. | Rust M2H mutation/filesystem/lifecycle authority plus the M2I/frontend handoff. The unresolved ordinary lifecycle can publish false active state, strand Pausing, signal or call user code under a guard, surrender shared marker/part authority while a state remains resumable, lose FIFO/crash truth, let importer metadata mutate after cancel/release, or regain ambient/path-string authority. M2I recovery/count acceptance stays reopened and M2J, RUST-A2, downstream generation/consumption, and incompatible standalone producer integration remain blocked. | The aggregate boundary remains decomposed into five serialized slices. Slices A/B and C1/C2 are internally accepted; C3 has only its narrow admission checkpoint verified. The focused Rust plan owns current evidence and remaining integration limits. Slice C uses the focused Rust plan's exact source write set, including its bounded shared finalization seam. It makes admission durably ordered before public success/effects; derives destination identity and effects from one held configured root plus validated relative target; exclusively persists ordinary, queue, and Pending/Verified quarantine truth with independent sticky provenance; retains Paused/recoverable Error or Pending authority; releases only verified published terminal state by exact generation with panic rescue; binds pause/resume/relocation to the owner; linearizes guard-free snapshots; owns the actual Aux/Completion importer futures under destination custody; and keeps public synchronous callbacks notification-only. No new public constructor/wire outcome is admitted. Preserve all A/B publication, custody, cleanup, failure-provenance, and projection guarantees. One active Pumas runtime per root remains the task-admission precondition. General client Drop remains M4/RUST-A6; public core/UniFFI ambient routes are transitional only. | Slice A passed both reviews after 18 atomic and 22 store tests per mode. Slice B passed both reviews and root reproduction at exact fourth-freeze hashes with lifecycle 18/18 and download 85/85 per mode, both Clippy modes, format/diff, and current plan gates. Slice C requires deterministic durable-admission/FIFO crash restore and malformed-v3 graph validation, quarantine begin/verify/remove ambiguity, alias/missing/replacement identity, atomic-marker ambiguity, production importer mutation/cancel/successor ordering, exact/partial/auxiliary/recovery-domain contention, pause/final-cleanup winners, dormant resume/cancel/relocation, terminal panic rescue, and reentrant guard/signal oracles; all A/B regressions and focused dual-mode gates must pass before its exact-hash freeze and reviews. Slices D/E then prove domain and closed/full claims. Coherent verified incremental commits follow the root commit decision; compatible reachable contracts are required, and full C3/consumer/release acceptance remains open. |
| `PRG-I20` | High | Cross-owner review of the frozen Electron launcher-root recovery producer found that every resolved authority projected to generic `ready`, so a valid environment/argument authority incorrectly enabled a persisted selection that the same explicit authority would outrank on restart. The native chooser also had no single attempt owner: dialog rejection was not projected through the closed result, concurrent invocations could race, and attempts remained available after `restarting`, `replacement-visibility-unknown`, or `published-durability-unavailable`. | Platform M2 startup/selection lifecycle and the serialized frontend recovery handoff. The producer could not define an honest user decision or integrate with its renderer consumer while selection policy and attempt ownership were ambiguous. | Resolved at the corrected producer source boundary: path-free ready state carries `select-library|correct-launch-input`; only supersedable authority offers the chooser. One main-process handler owns dialog, validation, persistence, and synchronous relaunch request; concurrent callers share its Promise; unchanged outcomes explicitly retry; ambiguous, published, and restarting outcomes lock/replay; dialog and relaunch rejection have closed typed outcomes. | Passed locally: 18 focused recovery/preload checks, full Electron build and seven test files, lint, TypeScript validation, plan structure, and diff checks. Program independently reran the full Electron tests/lint/validation. These lifecycle subclaims remain valid, but PRG-I21 separately reopens the uncommitted producer/consumer tranche because the compiled sandboxed preload cannot load its decoder module. |
diff --git a/docs/plans/torch-diffusion-serving/reports/upstream-version-manager-progress.md b/docs/plans/torch-diffusion-serving/reports/upstream-version-manager-progress.md
index 106988a49..037a0f11f 100644
--- a/docs/plans/torch-diffusion-serving/reports/upstream-version-manager-progress.md
+++ b/docs/plans/torch-diffusion-serving/reports/upstream-version-manager-progress.md
@@ -46,9 +46,27 @@ the current-standards coordination entry is [PRG-I17](../../current-standards-re
interpreters. One installed build/interpreter/adapter combination is supported
per upstream tag; the UI must disclose the installed combination before a
different combination is attempted.
+- Dynamic install choices now come from a bounded scan of the official PyTorch
+ wheel directory and exact per-channel indexes for the selected release and
+ installed CPython tags. A release/build/Python pair is offered only when that
+ exact Torch wheel exists for Linux x86_64. Partial scans remain inconclusive;
+ they do not turn an unobserved wheel into a confirmed absence. The desktop uses
+ the manager recommendation without requiring build, Python, or image-profile
+ selections, and advanced settings contain only returned exact pairs. On a
+ NVIDIA+Intel host, CUDA and CPU may be shown while ROCm is filtered out.
+ Automatic CUDA selection requires a complete scan and an installed NVIDIA
+ driver meeting the documented Linux minor-compatibility floor for the channel;
+ unknown/newer channel families remain advanced. Minor compatibility can limit
+ features and PTX, so device and model checks still run after installation.
+ ROCm remains an advanced choice because PCI detection and an `amdgpu` binding
+ alone do not establish that a particular GPU supports a particular ROCm wheel.
+ An incomplete scan recommends an exact CPU wheel provisionally when present.
- The desktop asks the manager for available choices and a retained preview
before installation. Dynamic previews show every resolved wheel URL, version,
- and SHA-256, with `none` or FLUX.2 adapter dependencies selected separately.
+ and SHA-256. The default `flux2` selection means Pumas' FLUX.2 image dependency
+ profile; it is not an upstream Torch component. Core runtime only is available
+ as an explicit advanced profile. Neither profile implies qualification for
+ image generation on every release.
The manager retains the exact pip resolution and a fingerprint of the chosen
interpreter; installation consumes that retained lock without resolving again.
Previews expire after 30 minutes and the in-memory store retains at most 32;
@@ -94,6 +112,30 @@ the current-standards coordination entry is [PRG-I17](../../current-standards-re
stops only its admitted process generation. The
desktop exposes a generation-conditional Stop action after a successful trial.
+## 2026-09-24 release-specific choices follow-up
+
+The reported `v2.14.0` rejection was caused by applying a global `cu134` build
+choice to every release. Official wheel discovery confirmed that `v2.14.0` has
+exact CPU and CUDA `cu126`, `cu130`, and `cu132` wheel candidates and no
+`cu134` candidate; Python changes cannot make the absent build/release pair
+exist. The manager's release-options RPC now scans official channels and
+returns exact installed-interpreter matches. It filters choices by detected PCI
+display vendor, ranks Python 3.12 then 3.13, 3.11, 3.10 when several exact
+matches are available, and uses conservative driver policy for automatic CUDA
+recommendation. NVIDIA's published minor-compatibility floors are used for
+CUDA 13.x, 12.x, and 11.x; unrecognized families and ROCm are not automatically
+recommended. The current execution sandbox detects GPU vendors but cannot
+communicate with the NVIDIA driver, so its automatic choice is CPU where an exact
+CPU wheel exists. This is not a claim about the driver's availability to the
+unsandboxed desktop process.
+
+The flow selects Pumas' FLUX.2 image dependency profile by default. Exact package
+resolution still determines whether that profile can be installed for a given
+Torch release, and a passing package preview does not prove device use, image
+generation, or Tuldok compatibility. The existing real Tuldok evidence remains
+limited to Torch 2.10 / CUDA 13.0 / Python 3.12 / FLUX.2; no v2.14.0 image result
+or all-release inference claim is added by this implementation.
+
## Earlier evidence retained from the previous report
The counts and direct-resolver experiments in this subsection predate the
@@ -196,7 +238,11 @@ The original isolated launcher root and temporary acceptance file were under
management acceptance for the authorized Linux/Python scope. It does not claim a
real interactive Pumas desktop run.
-## 2026-09-24 current-tree gates
+## Historical pre-U6 branch gates
+
+These counts describe the earlier PR branch before the release-specific U6
+changes below. They remain useful as the prior baseline, not as the current-tree
+verification result.
- Python resolver: 18 tests passed, including Rust/Python ordered build-vocabulary
parity; Ruff passed. The `pumas-app-manager` library suite passed 136 tests,
@@ -235,6 +281,42 @@ real interactive Pumas desktop run.
completed successfully on 2026-09-24; all five executed jobs passed, including
the default-feature Rust quality and no-inference headless gates.
+## 2026-09-24 U6 release-specific gates
+
+- The live official-index command
+ `python3.12 -I torch-server/resolve_runtime.py --release-options --version 2.14.0 --interpreter python3.10 --interpreter python3.11 --interpreter python3.12`
+ completed with
+ `completeScan=true` for installed CPython 3.10, 3.11, and 3.12. Exact
+ candidates were CPU, `cu126`, `cu130`, `cu132`, `rocm7.2`, and `rocm7.14`
+ for each interpreter; there was no `cu134` candidate. The manager filters
+ those raw upstream results against detected display vendors, so an
+ NVIDIA-plus-Intel host retains CPU/CUDA and does not offer ROCm. CUDA
+ auto-recommendation also requires a complete scan and a recognized NVIDIA
+ driver floor. This sandbox cannot query the NVIDIA driver, so it does not
+ establish which CUDA channel the unsandboxed desktop will recommend.
+- Full Python suite: 84 tests passed; `ruff check torch-server` and
+ `ruff format --check torch-server` passed. `pumas-app-manager`: all 149 tests
+ passed, including the 14 release-options, driver-floor, incomplete-scan, and
+ legacy-alternatives filtering tests. `pumas-rpc`: 256 unit tests, 17
+ integration tests, and 2 intent integration tests passed; 10 integration and
+ 2 live-network intent tests were ignored. Rust formatting and manager Clippy
+ with warnings denied passed.
+- Frontend: all 126 test files and 708 tests passed; typecheck and lint passed.
+ The focused preview tests cover automatic recommendation, exact-release
+ advanced choices, a null recommendation, Pumas-owned FLUX.2 labeling, and
+ rejection of CPU-host CUDA/ROCm or mismatched alternatives. Electron's
+ generated desktop contract check passed. The independent Sol xhigh review
+ found no issue in the repaired host/release filtering or retained-preview
+ boundary; the Astra high final review found no remaining implementation
+ finding and requested this historical/current inventory split.
+- The live scan confirms wheel availability only. A direct full resolver attempt
+ for `v2.14.0` / `cu132` / FLUX.2 ran for several minutes without returning a
+ result and was interrupted; this establishes neither success nor a dependency
+ incompatibility. A completed retained dependency preview, install, managed
+ startup, and Tuldok image generation have not been established here. The
+ existing actual image result remains limited to Torch 2.10 / CUDA 13.0 /
+ Python 3.12 / FLUX.2.
+
## Separate desktop and image-serving claim
1. The real FLUX.2 GPU/Tuldok result is exercised through RPC and remains scoped
diff --git a/docs/plans/torch-upstream-version-management/plan.md b/docs/plans/torch-upstream-version-management/plan.md
index 3771ebb87..5e8a5809c 100644
--- a/docs/plans/torch-upstream-version-management/plan.md
+++ b/docs/plans/torch-upstream-version-management/plan.md
@@ -1,6 +1,6 @@
# Plan: Upstream Torch Version Management
-**Plan status:** `Completed`
+**Plan status:** `Active`
**Owner:** Pumas runtime integration
@@ -9,18 +9,24 @@ reviewing the active Torch deployment inventory.
## Execution state
-**Current phase:** U1–U4 are accepted for the approved Linux x86_64 / installed
-CPython scope. Focused tests, production builds, generated-contract checks, and
-read-only cross-layer reviews passed; the real v2.9.0 CPU install and managed RPC
-lifecycle passed on 2026-09-24. U5 retains the exact Torch 2.10 CUDA 13.0 / FLUX.2
-Tuldok evidence. A real interactive Pumas desktop image run and image generation
-across other Torch tuples are not claimed by this plan.
-
-**Blocker:** None within the authorized scope.
-
-**Next slice:** No acceptance work remains in this plan. A real desktop-driven
-Tuldok repeat or broader user-defined image-model plugin contract would need a
-separately scoped follow-up.
+**Current phase:** U1–U5 remain accepted for the approved Linux x86_64 / installed
+CPython scope. U6 implementation and acceptance gates are complete: the live
+release-specific `v2.14.0` wheel scan, host filtering and driver policy,
+generated RPC contract, manager tests, and desktop tests pass. A full
+`v2.14.0` FLUX.2 dependency preview and image-generation run remain a separate
+exact-tuple validation. A real interactive Pumas desktop image run and image
+generation across other Torch tuples are not claimed by this plan.
+
+**Blocker:** No source implementation blocker. The current sandbox cannot
+communicate with the NVIDIA driver, and the full `v2.14.0` FLUX.2 dependency
+preview has not completed. CUDA recommendation and Tuldok image generation for
+that tuple still need host evidence.
+
+**Next slice:** Resolve and retain the exact `v2.14.0` / `cu132` / automatically
+selected installed Python / Pumas FLUX.2 dependency preview. If it resolves,
+install, select, start, and generate through Tuldok on the GPU host; record any
+upstream dependency incompatibility explicitly. Keep this exact-tuple result
+separate from any all-release claim.
## Product contract
@@ -48,6 +54,16 @@ does not claim the dynamic path's full per-wheel URL preview. Every other tuple
for `v2.9.1` uses the normal retained preview path and does not inherit the
preset's qualification.
+Normal installation does not require the user to pick a build, Python
+interpreter, or dependency profile. The manager discovers exact official wheels
+for the selected release and installed CPython 3.10–3.13 interpreters, filters
+GPU channels by detected display-device vendor, and returns a recommendation
+when its bounded scan and host checks support one. Advanced controls can select
+only a returned exact wheel/interpreter pair. Every install still requires the
+existing full dependency preview and retained hash lock. The default image
+profile is Pumas-owned FLUX.2 dependencies, not an upstream Torch feature; Core
+runtime only remains an explicit advanced choice.
+
Installing a release does not activate it or make it the default. Selection,
default selection, sidecar startup, and stopping remain explicit version/profile
operations. A successful import or health check qualifies only its exact
@@ -74,6 +90,7 @@ updated PRG-I17 disposition.
| U3 | A non-preset release installs into staging from the retained lock, passes identity/core probes, and publishes only after validation. Failure/cancellation preserves installed, active, and default state. | Managed installation tests and an isolated real v2.9.0+cpu / CPython 3.12 installation on Linux x86_64; see the [RPC acceptance summary and artifact manifest](reports/v2.9.0-cpu-rpc-acceptance.json). |
| U4 | The installed runtime can be inspected, explicitly selected, started by a managed Torch profile, health/protocol checked, and stopped by its owned generation through Pumas RPC or the desktop. | Composed desktop test plus a real older-release RPC lifecycle on Linux x86_64; see the [RPC acceptance summary](reports/v2.9.0-cpu-rpc-acceptance.json). |
| U5 | The current real Tuldok image result remains accurately scoped to its exact Torch 2.10 CUDA 13.0 / FLUX.2 tuple; no general model/plugin or all-release image-generation support is inferred. | Reuse [2.10 GPU and Tuldok evidence](../torch-diffusion-serving/reports/upstream-v210-cu130-flux2-e2e.md); update the runtime inventory in [the progress report](../torch-diffusion-serving/reports/upstream-version-manager-progress.md). |
+| U6 | For each selected stable release, the manager discovers that release's exact official CPU/CUDA/ROCm wheel matches for installed CPython interpreters, filters GPU families against detected display devices, and supplies a host-aware default when compatibility is established. Build, Python, and Pumas dependency profile are optional advanced settings. Partial discovery stays inconclusive; a wheel match still requires the full retained dependency preview. | Dynamic official-index scan fixtures and live `v2.14.0` scan; NVIDIA driver-floor/unknown/partial-scan manager tests; typed RPC and generated-contract checks; desktop preview tests for automatic defaults, release-bounded overrides, null recommendations, and Pumas profile labeling. No all-release image qualification is inferred. |
## Ownership and verification
diff --git a/electron/src/generated/desktop-contract.ts b/electron/src/generated/desktop-contract.ts
index eb3e65bad..ae8ff956d 100644
--- a/electron/src/generated/desktop-contract.ts
+++ b/electron/src/generated/desktop-contract.ts
@@ -1,5 +1,5 @@
-// Generated from pumas-rpc contract.rs; SHA256 4f6771f852879c4de52ee8d1e66c25a3bba650bf832d9dbba022b3b8b0b4c75c. DO NOT EDIT.
-import { validateAvailableVersionsOutcome, validateBackendStatusOutcome, validateCancelInstallationOutcome, validateCatalogSearchOutcome, validateCheckVersionDependenciesOutcome, validateCheckVersionDependenciesParams, validateConversionCancelledOutcome, validateConversionEnvironmentOutcome, validateConversionListOutcome, validateConversionProgressResponse, validateConversionSetupStartedOutcome, validateConversionSetupStatusOutcome, validateConversionStartedOutcome, validateDownloadIdParams, validateDownloadListOutcome, validateDownloadMutationOutcome, validateDownloadStartedOutcome, validateDownloadStatusOutcome, validateFindTorchAlternativesParams, validateGetBackendSetupParams, validateGetHfDownloadDetailsParams, validateGetReleaseDependenciesOutcome, validateGetReleaseDependenciesParams, validateGetTorchPreviewReportParams, validateGetTorchRuntimeProbeParams, validateGithubCacheStatusOutcome, validateHfDownloadDetailsOutcome, validateInferenceSettingsOutcome, validateInstallVersionDependenciesOutcome, validateInstallVersionDependenciesParams, validateInstallVersionOutcome, validateInstallVersionParams, validateInstallationProgressOutcome, validateInstalledVersionsOutcome, validateLibraryModelMetadataOutcome, validateLinkHealthOutcome, validateModelIndexRefreshOutcome, validateModelsOutcome, validatePartialDownloadOutcome, validatePreviewTorchRuntimeParams, validatePublicError, validateRecoverDownloadParams, validateRemoveVersionOutcome, validateRouterProfileSyncStatus, validateRuntimeLaunchOutcome, validateRuntimeLaunchParams, validateRuntimeRunningOutcome, validateRuntimeStopOutcome, validateSearchCatalogParams, validateSelectedVersionOutcome, validateSetDefaultVersionOutcome, validateSetDefaultVersionParams, validateStartBackendSetupParams, validateStartConversionSetupParams, validateStopRuntimeProfileGenerationOutcome, validateStopRuntimeProfileGenerationParams, validateSuccessOutcome, validateSupportedQuantTypesOutcome, validateSwitchVersionOutcome, validateSwitchVersionParams, validateTorchRuntimePreview, validateTorchRuntimePreviewArtifact, validateTorchRuntimePreviewOutcome, validateTorchRuntimePreviewQualification, validateTorchRuntimePreviewRejectionReason, validateTrialTorchRuntimeOutcome, validateTrialTorchRuntimeParams, validateUpdateInferenceSettingsOutcome, validateUpdateInferenceSettingsParams, validateUpdateModelNotesOutcome, validateUpdateModelNotesParams, validateValidateInstallationsOutcome, validateVersionInfoOutcome, validateVersionStatusOutcome } from './desktop-contract.validators.js';
+// Generated from pumas-rpc contract.rs; SHA256 67dd940c814b877de830883b563b559875d539d93a9158aba6cb812ffba3419a. DO NOT EDIT.
+import { validateAvailableVersionsOutcome, validateBackendStatusOutcome, validateCancelInstallationOutcome, validateCatalogSearchOutcome, validateCheckVersionDependenciesOutcome, validateCheckVersionDependenciesParams, validateConversionCancelledOutcome, validateConversionEnvironmentOutcome, validateConversionListOutcome, validateConversionProgressResponse, validateConversionSetupStartedOutcome, validateConversionSetupStatusOutcome, validateConversionStartedOutcome, validateDownloadIdParams, validateDownloadListOutcome, validateDownloadMutationOutcome, validateDownloadStartedOutcome, validateDownloadStatusOutcome, validateFindTorchAlternativesParams, validateGetBackendSetupParams, validateGetHfDownloadDetailsParams, validateGetReleaseDependenciesOutcome, validateGetReleaseDependenciesParams, validateGetTorchPreviewReportParams, validateGetTorchReleaseOptionsParams, validateGetTorchRuntimeProbeParams, validateGithubCacheStatusOutcome, validateHfDownloadDetailsOutcome, validateInferenceSettingsOutcome, validateInstallVersionDependenciesOutcome, validateInstallVersionDependenciesParams, validateInstallVersionOutcome, validateInstallVersionParams, validateInstallationProgressOutcome, validateInstalledVersionsOutcome, validateLibraryModelMetadataOutcome, validateLinkHealthOutcome, validateModelIndexRefreshOutcome, validateModelsOutcome, validatePartialDownloadOutcome, validatePreviewTorchRuntimeParams, validatePublicError, validateRecoverDownloadParams, validateRemoveVersionOutcome, validateRouterProfileSyncStatus, validateRuntimeLaunchOutcome, validateRuntimeLaunchParams, validateRuntimeRunningOutcome, validateRuntimeStopOutcome, validateSearchCatalogParams, validateSelectedVersionOutcome, validateSetDefaultVersionOutcome, validateSetDefaultVersionParams, validateStartBackendSetupParams, validateStartConversionSetupParams, validateStopRuntimeProfileGenerationOutcome, validateStopRuntimeProfileGenerationParams, validateSuccessOutcome, validateSupportedQuantTypesOutcome, validateSwitchVersionOutcome, validateSwitchVersionParams, validateTorchDriverAvailability, validateTorchGpuVendor, validateTorchReleaseCombination, validateTorchReleaseDriverStatus, validateTorchReleaseOptionsOutcome, validateTorchReleaseOptionsStatus, validateTorchReleaseRecommendation, validateTorchRuntimePreview, validateTorchRuntimePreviewArtifact, validateTorchRuntimePreviewOutcome, validateTorchRuntimePreviewQualification, validateTorchRuntimePreviewRejectionReason, validateTrialTorchRuntimeOutcome, validateTrialTorchRuntimeParams, validateUpdateInferenceSettingsOutcome, validateUpdateInferenceSettingsParams, validateUpdateModelNotesOutcome, validateUpdateModelNotesParams, validateValidateInstallationsOutcome, validateVersionInfoOutcome, validateVersionStatusOutcome } from './desktop-contract.validators.js';
export type AvailableVersionsOutcome = (AvailableVersionsSuccess) | (AvailableVersionsRateLimited);
export type AvailableVersionsRateLimited = { "error": string; "rate_limited": true; "retry_after_secs": number | null; "success": false };
export type AvailableVersionsSuccess = { "success": true; "versions": ReadonlyArray };
@@ -50,6 +50,7 @@ export type GetHfDownloadDetailsParams = ({ "quants"?: ReadonlyArray | n
export type GetReleaseDependenciesOutcome = { "dependencies": ReadonlyArray; "success": true };
export type GetReleaseDependenciesParams = ({ "app_id": string; "tag": string }) | ({ "appId": string; "tag": string });
export type GetTorchPreviewReportParams = ({ "preview_id": string }) | ({ "previewId": string });
+export type GetTorchReleaseOptionsParams = { "tag": string };
export type GetTorchRuntimeProbeParams = { "tag": string };
export type GithubCacheStatusNoManager = { "has_cache": false; "is_fetching": false; "is_valid": false };
export type GithubCacheStatusOutcome = (GithubCacheStatusSnapshot) | (GithubCacheStatusNoManager);
@@ -113,6 +114,13 @@ export type SuccessOutcome = { "success": true };
export type SupportedQuantTypesOutcome = { "quant_types": ReadonlyArray; "success": true };
export type SwitchVersionOutcome = { "success": boolean };
export type SwitchVersionParams = ({ "app_id": string; "tag": string }) | ({ "appId": string; "tag": string });
+export type TorchDriverAvailability = "available" | "unavailable" | "not_present" | "unknown";
+export type TorchGpuVendor = "nvidia" | "amd" | "intel";
+export type TorchReleaseCombination = { "build": string; "python": string; "sha256"?: string | null; "wheelUrl": string };
+export type TorchReleaseDriverStatus = { "amd": TorchDriverAvailability; "nvidia": TorchDriverAvailability };
+export type TorchReleaseOptionsOutcome = { "checkedChannels": ReadonlyArray; "combinations": ReadonlyArray; "completeScan": boolean; "detectedGpuVendors": ReadonlyArray; "driverStatus": TorchReleaseDriverStatus; "issues": ReadonlyArray; "recommendationNote": string | null; "recommended": (TorchReleaseRecommendation) | (null); "status": TorchReleaseOptionsStatus; "tag": string };
+export type TorchReleaseOptionsStatus = "matches" | "none" | "inconclusive";
+export type TorchReleaseRecommendation = { "build": string; "python": string };
export type TorchRuntimePreview = { "adapter": string; "artifacts": ReadonlyArray; "build": string; "expiresInSeconds": number; "previewId": string; "python": string; "qualification": TorchRuntimePreviewQualification; "tag": string };
export type TorchRuntimePreviewArtifact = { "name": string; "sha256": string; "url": string; "version": string };
export type TorchRuntimePreviewOutcome = ({ "preview": TorchRuntimePreview; "status": "resolved" }) | ({ "message": string; "reason": TorchRuntimePreviewRejectionReason; "status": "rejected" });
@@ -189,6 +197,7 @@ export function decodeGetHfDownloadDetailsParams(input: unknown): DecodeOutcome<
export function decodeGetReleaseDependenciesOutcome(input: unknown): DecodeOutcome { return decode(input, validateGetReleaseDependenciesOutcome); }
export function decodeGetReleaseDependenciesParams(input: unknown): DecodeOutcome { return decode(input, validateGetReleaseDependenciesParams); }
export function decodeGetTorchPreviewReportParams(input: unknown): DecodeOutcome { return decode(input, validateGetTorchPreviewReportParams); }
+export function decodeGetTorchReleaseOptionsParams(input: unknown): DecodeOutcome { return decode(input, validateGetTorchReleaseOptionsParams); }
export function decodeGetTorchRuntimeProbeParams(input: unknown): DecodeOutcome { return decode(input, validateGetTorchRuntimeProbeParams); }
export function decodeGithubCacheStatusOutcome(input: unknown): DecodeOutcome { return decode(input, validateGithubCacheStatusOutcome); }
export function decodeHfDownloadDetailsOutcome(input: unknown): DecodeOutcome { return decode(input, validateHfDownloadDetailsOutcome); }
@@ -225,6 +234,13 @@ export function decodeSuccessOutcome(input: unknown): DecodeOutcome { return decode(input, validateSupportedQuantTypesOutcome); }
export function decodeSwitchVersionOutcome(input: unknown): DecodeOutcome { return decode(input, validateSwitchVersionOutcome); }
export function decodeSwitchVersionParams(input: unknown): DecodeOutcome { return decode(input, validateSwitchVersionParams); }
+export function decodeTorchDriverAvailability(input: unknown): DecodeOutcome { return decode(input, validateTorchDriverAvailability); }
+export function decodeTorchGpuVendor(input: unknown): DecodeOutcome { return decode(input, validateTorchGpuVendor); }
+export function decodeTorchReleaseCombination(input: unknown): DecodeOutcome { return decode(input, validateTorchReleaseCombination); }
+export function decodeTorchReleaseDriverStatus(input: unknown): DecodeOutcome { return decode(input, validateTorchReleaseDriverStatus); }
+export function decodeTorchReleaseOptionsOutcome(input: unknown): DecodeOutcome { return decode(input, validateTorchReleaseOptionsOutcome); }
+export function decodeTorchReleaseOptionsStatus(input: unknown): DecodeOutcome { return decode(input, validateTorchReleaseOptionsStatus); }
+export function decodeTorchReleaseRecommendation(input: unknown): DecodeOutcome { return decode(input, validateTorchReleaseRecommendation); }
export function decodeTorchRuntimePreview(input: unknown): DecodeOutcome { return decode(input, validateTorchRuntimePreview); }
export function decodeTorchRuntimePreviewArtifact(input: unknown): DecodeOutcome { return decode(input, validateTorchRuntimePreviewArtifact); }
export function decodeTorchRuntimePreviewOutcome(input: unknown): DecodeOutcome { return decode(input, validateTorchRuntimePreviewOutcome); }
diff --git a/electron/src/generated/desktop-contract.validators.d.ts b/electron/src/generated/desktop-contract.validators.d.ts
index a3d66a5d4..8a0ca8711 100644
--- a/electron/src/generated/desktop-contract.validators.d.ts
+++ b/electron/src/generated/desktop-contract.validators.d.ts
@@ -1,4 +1,4 @@
-// Generated from pumas-rpc contract.rs; SHA256 4f6771f852879c4de52ee8d1e66c25a3bba650bf832d9dbba022b3b8b0b4c75c. DO NOT EDIT.
+// Generated from pumas-rpc contract.rs; SHA256 67dd940c814b877de830883b563b559875d539d93a9158aba6cb812ffba3419a. DO NOT EDIT.
export declare function validateAvailableVersionsOutcome(value: unknown): boolean;
export declare function validateBackendStatusOutcome(value: unknown): boolean;
export declare function validateCancelInstallationOutcome(value: unknown): boolean;
@@ -23,6 +23,7 @@ export declare function validateGetHfDownloadDetailsParams(value: unknown): bool
export declare function validateGetReleaseDependenciesOutcome(value: unknown): boolean;
export declare function validateGetReleaseDependenciesParams(value: unknown): boolean;
export declare function validateGetTorchPreviewReportParams(value: unknown): boolean;
+export declare function validateGetTorchReleaseOptionsParams(value: unknown): boolean;
export declare function validateGetTorchRuntimeProbeParams(value: unknown): boolean;
export declare function validateGithubCacheStatusOutcome(value: unknown): boolean;
export declare function validateHfDownloadDetailsOutcome(value: unknown): boolean;
@@ -59,6 +60,13 @@ export declare function validateSuccessOutcome(value: unknown): boolean;
export declare function validateSupportedQuantTypesOutcome(value: unknown): boolean;
export declare function validateSwitchVersionOutcome(value: unknown): boolean;
export declare function validateSwitchVersionParams(value: unknown): boolean;
+export declare function validateTorchDriverAvailability(value: unknown): boolean;
+export declare function validateTorchGpuVendor(value: unknown): boolean;
+export declare function validateTorchReleaseCombination(value: unknown): boolean;
+export declare function validateTorchReleaseDriverStatus(value: unknown): boolean;
+export declare function validateTorchReleaseOptionsOutcome(value: unknown): boolean;
+export declare function validateTorchReleaseOptionsStatus(value: unknown): boolean;
+export declare function validateTorchReleaseRecommendation(value: unknown): boolean;
export declare function validateTorchRuntimePreview(value: unknown): boolean;
export declare function validateTorchRuntimePreviewArtifact(value: unknown): boolean;
export declare function validateTorchRuntimePreviewOutcome(value: unknown): boolean;
diff --git a/electron/src/generated/desktop-contract.validators.js b/electron/src/generated/desktop-contract.validators.js
index 3ee71fab8..abfafbec0 100644
--- a/electron/src/generated/desktop-contract.validators.js
+++ b/electron/src/generated/desktop-contract.validators.js
@@ -1,4 +1,4 @@
-// Generated from pumas-rpc contract.rs; SHA256 4f6771f852879c4de52ee8d1e66c25a3bba650bf832d9dbba022b3b8b0b4c75c. DO NOT EDIT.
+// Generated from pumas-rpc contract.rs; SHA256 67dd940c814b877de830883b563b559875d539d93a9158aba6cb812ffba3419a. DO NOT EDIT.
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -7735,7 +7735,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
validate55.errors = vErrors;
return errors === 0;
}
-var validateGetTorchRuntimeProbeParams = validate56;
+var validateGetTorchReleaseOptionsParams = validate56;
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
@@ -7771,9 +7771,45 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
validate56.errors = vErrors;
return errors === 0;
}
-var validateGithubCacheStatusOutcome = validate57;
-var schema67 = { "additionalProperties": false, "properties": { "age_seconds": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "has_cache": { "type": "boolean" }, "is_fetching": { "type": "boolean" }, "is_valid": { "type": "boolean" }, "last_fetched": { "type": ["string", "null"] }, "releases_count": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] } }, "required": ["has_cache", "is_valid", "is_fetching", "age_seconds", "last_fetched", "releases_count"], "type": "object" };
+var validateGetTorchRuntimeProbeParams = validate57;
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (errors === 0) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.tag === void 0 && (missing0 = "tag")) {
+ validate57.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ return false;
+ } else {
+ const _errs1 = errors;
+ for (const key0 in data) {
+ if (!(key0 === "tag")) {
+ validate57.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.tag !== void 0) {
+ if (typeof data.tag !== "string") {
+ validate57.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ }
+ }
+ }
+ } else {
+ validate57.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ validate57.errors = vErrors;
+ return errors === 0;
+}
+var validateGithubCacheStatusOutcome = validate58;
+var schema68 = { "additionalProperties": false, "properties": { "age_seconds": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "has_cache": { "type": "boolean" }, "is_fetching": { "type": "boolean" }, "is_valid": { "type": "boolean" }, "last_fetched": { "type": ["string", "null"] }, "releases_count": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] } }, "required": ["has_cache", "is_valid", "is_fetching", "age_seconds", "last_fetched", "releases_count"], "type": "object" };
+function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -7810,7 +7846,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.age_seconds;
const _errs5 = errors;
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0)) && data0 !== null) {
- const err2 = { instancePath: instancePath + "/age_seconds", schemaPath: "#/definitions/GithubCacheStatusSnapshot/properties/age_seconds/type", keyword: "type", params: { type: schema67.properties.age_seconds.type }, message: "must be integer,null" };
+ const err2 = { instancePath: instancePath + "/age_seconds", schemaPath: "#/definitions/GithubCacheStatusSnapshot/properties/age_seconds/type", keyword: "type", params: { type: schema68.properties.age_seconds.type }, message: "must be integer,null" };
if (vErrors === null) {
vErrors = [err2];
} else {
@@ -7898,7 +7934,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
let data4 = data.last_fetched;
const _errs13 = errors;
if (typeof data4 !== "string" && data4 !== null) {
- const err8 = { instancePath: instancePath + "/last_fetched", schemaPath: "#/definitions/GithubCacheStatusSnapshot/properties/last_fetched/type", keyword: "type", params: { type: schema67.properties.last_fetched.type }, message: "must be string,null" };
+ const err8 = { instancePath: instancePath + "/last_fetched", schemaPath: "#/definitions/GithubCacheStatusSnapshot/properties/last_fetched/type", keyword: "type", params: { type: schema68.properties.last_fetched.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err8];
} else {
@@ -7915,7 +7951,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
let data5 = data.releases_count;
const _errs15 = errors;
if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5)) && data5 !== null) {
- const err9 = { instancePath: instancePath + "/releases_count", schemaPath: "#/definitions/GithubCacheStatusSnapshot/properties/releases_count/type", keyword: "type", params: { type: schema67.properties.releases_count.type }, message: "must be integer,null" };
+ const err9 = { instancePath: instancePath + "/releases_count", schemaPath: "#/definitions/GithubCacheStatusSnapshot/properties/releases_count/type", keyword: "type", params: { type: schema68.properties.releases_count.type }, message: "must be integer,null" };
if (vErrors === null) {
vErrors = [err9];
} else {
@@ -8100,7 +8136,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err22);
}
errors++;
- validate57.errors = vErrors;
+ validate58.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -8112,26 +8148,26 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate57.errors = vErrors;
+ validate58.errors = vErrors;
return errors === 0;
}
-var validateHfDownloadDetailsOutcome = validate58;
-var schema71 = { "additionalProperties": false, "description": "Exact download details derived from a repository file tree.", "properties": { "downloadOptions": { "default": [], "items": { "$ref": "#/definitions/DownloadOption" }, "type": "array" }, "repoId": { "type": "string" }, "totalSizeBytes": { "default": null, "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] } }, "required": ["repoId", "downloadOptions", "totalSizeBytes"], "type": "object" };
-var schema72 = { "additionalProperties": false, "description": "Download option for a quantization variant or file group.", "properties": { "fileGroup": { "$ref": "#/definitions/FileGroup" }, "quant": { "type": "string" }, "sizeBytes": { "default": null, "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] } }, "required": ["quant", "sizeBytes"], "type": "object" };
-function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateHfDownloadDetailsOutcome = validate59;
+var schema72 = { "additionalProperties": false, "description": "Exact download details derived from a repository file tree.", "properties": { "downloadOptions": { "default": [], "items": { "$ref": "#/definitions/DownloadOption" }, "type": "array" }, "repoId": { "type": "string" }, "totalSizeBytes": { "default": null, "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] } }, "required": ["repoId", "downloadOptions", "totalSizeBytes"], "type": "object" };
+var schema73 = { "additionalProperties": false, "description": "Download option for a quantization variant or file group.", "properties": { "fileGroup": { "$ref": "#/definitions/FileGroup" }, "quant": { "type": "string" }, "sizeBytes": { "default": null, "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] } }, "required": ["quant", "sizeBytes"], "type": "object" };
+function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.quant === void 0 && (missing0 = "quant") || data.sizeBytes === void 0 && (missing0 = "sizeBytes")) {
- validate61.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate62.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "fileGroup" || key0 === "quant" || key0 === "sizeBytes")) {
- validate61.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate62.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -8145,13 +8181,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
let missing1;
if (data0.filenames === void 0 && (missing1 = "filenames") || data0.shardCount === void 0 && (missing1 = "shardCount") || data0.label === void 0 && (missing1 = "label")) {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup", schemaPath: "#/definitions/FileGroup/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup", schemaPath: "#/definitions/FileGroup/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
return false;
} else {
const _errs5 = errors;
for (const key1 in data0) {
if (!(key1 === "filenames" || key1 === "label" || key1 === "shardCount")) {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup", schemaPath: "#/definitions/FileGroup/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup", schemaPath: "#/definitions/FileGroup/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -8167,7 +8203,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
for (let i0 = 0; i0 < len0; i0++) {
const _errs8 = errors;
if (typeof data1[i0] !== "string") {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup/filenames/" + i0, schemaPath: "#/definitions/FileGroup/properties/filenames/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup/filenames/" + i0, schemaPath: "#/definitions/FileGroup/properties/filenames/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs8 === errors;
@@ -8176,7 +8212,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup/filenames", schemaPath: "#/definitions/FileGroup/properties/filenames/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup/filenames", schemaPath: "#/definitions/FileGroup/properties/filenames/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -8188,7 +8224,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
if (data0.label !== void 0) {
const _errs10 = errors;
if (typeof data0.label !== "string") {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup/label", schemaPath: "#/definitions/FileGroup/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup/label", schemaPath: "#/definitions/FileGroup/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid2 = _errs10 === errors;
@@ -8200,17 +8236,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
let data4 = data0.shardCount;
const _errs12 = errors;
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup/shardCount", schemaPath: "#/definitions/FileGroup/properties/shardCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup/shardCount", schemaPath: "#/definitions/FileGroup/properties/shardCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs12) {
if (typeof data4 == "number" && isFinite(data4)) {
if (data4 > 4294967295 || isNaN(data4)) {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup/shardCount", schemaPath: "#/definitions/FileGroup/properties/shardCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup/shardCount", schemaPath: "#/definitions/FileGroup/properties/shardCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
return false;
} else {
if (data4 < 0 || isNaN(data4)) {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup/shardCount", schemaPath: "#/definitions/FileGroup/properties/shardCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup/shardCount", schemaPath: "#/definitions/FileGroup/properties/shardCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -8225,7 +8261,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate61.errors = [{ instancePath: instancePath + "/fileGroup", schemaPath: "#/definitions/FileGroup/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate62.errors = [{ instancePath: instancePath + "/fileGroup", schemaPath: "#/definitions/FileGroup/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -8237,7 +8273,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
if (data.quant !== void 0) {
const _errs14 = errors;
if (typeof data.quant !== "string") {
- validate61.errors = [{ instancePath: instancePath + "/quant", schemaPath: "#/properties/quant/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate62.errors = [{ instancePath: instancePath + "/quant", schemaPath: "#/properties/quant/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs14 === errors;
@@ -8249,17 +8285,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
let data6 = data.sizeBytes;
const _errs16 = errors;
if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6)) && data6 !== null) {
- validate61.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/type", keyword: "type", params: { type: schema72.properties.sizeBytes.type }, message: "must be integer,null" }];
+ validate62.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/type", keyword: "type", params: { type: schema73.properties.sizeBytes.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs16) {
if (typeof data6 == "number" && isFinite(data6)) {
if (data6 > 9007199254740991 || isNaN(data6)) {
- validate61.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate62.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data6 < 0 || isNaN(data6)) {
- validate61.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate62.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -8274,27 +8310,27 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate61.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate62.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate61.errors = vErrors;
+ validate62.errors = vErrors;
return errors === 0;
}
-function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.repoId === void 0 && (missing0 = "repoId") || data.downloadOptions === void 0 && (missing0 = "downloadOptions") || data.totalSizeBytes === void 0 && (missing0 = "totalSizeBytes")) {
- validate60.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate61.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "downloadOptions" || key0 === "repoId" || key0 === "totalSizeBytes")) {
- validate60.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate61.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -8309,8 +8345,8 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
const len0 = data0.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs4 = errors;
- if (!validate61(data0[i0], { instancePath: instancePath + "/downloadOptions/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
+ if (!validate62(data0[i0], { instancePath: instancePath + "/downloadOptions/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
errors = vErrors.length;
}
var valid1 = _errs4 === errors;
@@ -8319,7 +8355,7 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate60.errors = [{ instancePath: instancePath + "/downloadOptions", schemaPath: "#/properties/downloadOptions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate61.errors = [{ instancePath: instancePath + "/downloadOptions", schemaPath: "#/properties/downloadOptions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -8331,7 +8367,7 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
if (data.repoId !== void 0) {
const _errs5 = errors;
if (typeof data.repoId !== "string") {
- validate60.errors = [{ instancePath: instancePath + "/repoId", schemaPath: "#/properties/repoId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate61.errors = [{ instancePath: instancePath + "/repoId", schemaPath: "#/properties/repoId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs5 === errors;
@@ -8343,17 +8379,17 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
let data3 = data.totalSizeBytes;
const _errs7 = errors;
if (!(typeof data3 == "number" && (!(data3 % 1) && !isNaN(data3)) && isFinite(data3)) && data3 !== null) {
- validate60.errors = [{ instancePath: instancePath + "/totalSizeBytes", schemaPath: "#/properties/totalSizeBytes/type", keyword: "type", params: { type: schema71.properties.totalSizeBytes.type }, message: "must be integer,null" }];
+ validate61.errors = [{ instancePath: instancePath + "/totalSizeBytes", schemaPath: "#/properties/totalSizeBytes/type", keyword: "type", params: { type: schema72.properties.totalSizeBytes.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs7) {
if (typeof data3 == "number" && isFinite(data3)) {
if (data3 > 9007199254740991 || isNaN(data3)) {
- validate60.errors = [{ instancePath: instancePath + "/totalSizeBytes", schemaPath: "#/properties/totalSizeBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate61.errors = [{ instancePath: instancePath + "/totalSizeBytes", schemaPath: "#/properties/totalSizeBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data3 < 0 || isNaN(data3)) {
- validate60.errors = [{ instancePath: instancePath + "/totalSizeBytes", schemaPath: "#/properties/totalSizeBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate61.errors = [{ instancePath: instancePath + "/totalSizeBytes", schemaPath: "#/properties/totalSizeBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -8368,27 +8404,27 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate60.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate61.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate60.errors = vErrors;
+ validate61.errors = vErrors;
return errors === 0;
}
-function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.details === void 0 && (missing0 = "details")) {
- validate59.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate60.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "details" || key0 === "success")) {
- validate59.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate60.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -8396,8 +8432,8 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
if (_errs1 === errors) {
if (data.details !== void 0) {
const _errs2 = errors;
- if (!validate60(data.details, { instancePath: instancePath + "/details", parentData: data, parentDataProperty: "details", rootData })) {
- vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
+ if (!validate61(data.details, { instancePath: instancePath + "/details", parentData: data, parentDataProperty: "details", rootData })) {
+ vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
errors = vErrors.length;
}
var valid0 = _errs2 === errors;
@@ -8409,11 +8445,11 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.success;
const _errs3 = errors;
if (typeof data1 !== "boolean") {
- validate59.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate60.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data1) {
- validate59.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate60.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs3 === errors;
@@ -8424,21 +8460,21 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate59.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate60.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate59.errors = vErrors;
+ validate60.errors = vErrors;
return errors === 0;
}
-function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
let valid0 = false;
const _errs1 = errors;
- if (!validate59(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
+ if (!validate60(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
errors = vErrors.length;
}
var _valid0 = _errs1 === errors;
@@ -8537,7 +8573,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err6);
}
errors++;
- validate58.errors = vErrors;
+ validate59.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -8549,15 +8585,15 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate58.errors = vErrors;
+ validate59.errors = vErrors;
return errors === 0;
}
-var validateInferenceSettingsOutcome = validate65;
-var schema76 = { "additionalProperties": false, "description": "Describes a single configurable inference parameter with its type,\ndefault value, and optional constraints.\n\nDownstream consumers (e.g. Pantograph node graph) use this schema\nto dynamically render UI controls for model-specific settings.", "properties": { "constraints": { "anyOf": [{ "$ref": "#/definitions/ParamConstraints" }, { "type": "null" }], "default": null, "description": "Optional numeric/enum constraints." }, "default": { "$ref": "#/definitions/DesktopJsonValue" }, "description": { "default": null, "description": "Optional description / tooltip.", "type": ["string", "null"] }, "key": { "description": 'Machine-readable key (e.g. "context_length", "denoising_steps").', "type": "string" }, "label": { "description": 'Human-readable label (e.g. "Context Length").', "type": "string" }, "param_type": { "allOf": [{ "$ref": "#/definitions/ParamType" }], "description": "Data type of this parameter." } }, "required": ["key", "label", "param_type", "default", "description", "constraints"], "type": "object" };
-var schema79 = { "description": "Data type for an inference parameter.", "enum": ["Number", "Integer", "String", "Boolean"], "type": "string" };
-var schema77 = { "additionalProperties": false, "description": "Constraints on an inference parameter value.", "properties": { "allowed_values": { "anyOf": [{ "type": "null" }, { "items": { "$ref": "#/definitions/DesktopJsonValue" }, "type": "array" }] }, "max": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "min": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] } }, "required": ["min", "max", "allowed_values"], "type": "object" };
-var wrapper0 = { validate: validate68 };
-function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInferenceSettingsOutcome = validate66;
+var schema77 = { "additionalProperties": false, "description": "Describes a single configurable inference parameter with its type,\ndefault value, and optional constraints.\n\nDownstream consumers (e.g. Pantograph node graph) use this schema\nto dynamically render UI controls for model-specific settings.", "properties": { "constraints": { "anyOf": [{ "$ref": "#/definitions/ParamConstraints" }, { "type": "null" }], "default": null, "description": "Optional numeric/enum constraints." }, "default": { "$ref": "#/definitions/DesktopJsonValue" }, "description": { "default": null, "description": "Optional description / tooltip.", "type": ["string", "null"] }, "key": { "description": 'Machine-readable key (e.g. "context_length", "denoising_steps").', "type": "string" }, "label": { "description": 'Human-readable label (e.g. "Context Length").', "type": "string" }, "param_type": { "allOf": [{ "$ref": "#/definitions/ParamType" }], "description": "Data type of this parameter." } }, "required": ["key", "label", "param_type", "default", "description", "constraints"], "type": "object" };
+var schema80 = { "description": "Data type for an inference parameter.", "enum": ["Number", "Integer", "String", "Boolean"], "type": "string" };
+var schema78 = { "additionalProperties": false, "description": "Constraints on an inference parameter value.", "properties": { "allowed_values": { "anyOf": [{ "type": "null" }, { "items": { "$ref": "#/definitions/DesktopJsonValue" }, "type": "array" }] }, "max": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "min": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] } }, "required": ["min", "max", "allowed_values"], "type": "object" };
+var wrapper0 = { validate: validate69 };
+function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -8704,7 +8740,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err8);
}
errors++;
- validate68.errors = vErrors;
+ validate69.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -8716,23 +8752,23 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate68.errors = vErrors;
+ validate69.errors = vErrors;
return errors === 0;
}
-function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.min === void 0 && (missing0 = "min") || data.max === void 0 && (missing0 = "max") || data.allowed_values === void 0 && (missing0 = "allowed_values")) {
- validate67.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate68.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "allowed_values" || key0 === "max" || key0 === "min")) {
- validate67.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate68.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -8763,8 +8799,8 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
const len0 = data0.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs8 = errors;
- if (!validate68(data0[i0], { instancePath: instancePath + "/allowed_values/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
+ if (!validate69(data0[i0], { instancePath: instancePath + "/allowed_values/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
errors = vErrors.length;
}
var valid2 = _errs8 === errors;
@@ -8793,7 +8829,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err2);
}
errors++;
- validate67.errors = vErrors;
+ validate68.errors = vErrors;
return false;
} else {
errors = _errs3;
@@ -8814,17 +8850,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
let data2 = data.max;
const _errs9 = errors;
if (!(typeof data2 == "number" && isFinite(data2)) && data2 !== null) {
- validate67.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/type", keyword: "type", params: { type: schema77.properties.max.type }, message: "must be number,null" }];
+ validate68.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/type", keyword: "type", params: { type: schema78.properties.max.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs9) {
if (typeof data2 == "number" && isFinite(data2)) {
if (data2 > 17976931348623157e292 || isNaN(data2)) {
- validate67.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
+ validate68.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
return false;
} else {
if (data2 < -17976931348623157e292 || isNaN(data2)) {
- validate67.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
+ validate68.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
return false;
}
}
@@ -8839,17 +8875,17 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
let data3 = data.min;
const _errs11 = errors;
if (!(typeof data3 == "number" && isFinite(data3)) && data3 !== null) {
- validate67.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/type", keyword: "type", params: { type: schema77.properties.min.type }, message: "must be number,null" }];
+ validate68.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/type", keyword: "type", params: { type: schema78.properties.min.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs11) {
if (typeof data3 == "number" && isFinite(data3)) {
if (data3 > 17976931348623157e292 || isNaN(data3)) {
- validate67.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
+ validate68.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
return false;
} else {
if (data3 < -17976931348623157e292 || isNaN(data3)) {
- validate67.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
+ validate68.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
return false;
}
}
@@ -8864,27 +8900,27 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate67.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate68.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate67.errors = vErrors;
+ validate68.errors = vErrors;
return errors === 0;
}
-function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.key === void 0 && (missing0 = "key") || data.label === void 0 && (missing0 = "label") || data.param_type === void 0 && (missing0 = "param_type") || data.default === void 0 && (missing0 = "default") || data.description === void 0 && (missing0 = "description") || data.constraints === void 0 && (missing0 = "constraints")) {
- validate66.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate67.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "constraints" || key0 === "default" || key0 === "description" || key0 === "key" || key0 === "label" || key0 === "param_type")) {
- validate66.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate67.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -8896,8 +8932,8 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
const _errs3 = errors;
let valid1 = false;
const _errs4 = errors;
- if (!validate67(data0, { instancePath: instancePath + "/constraints", parentData: data, parentDataProperty: "constraints", rootData })) {
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
+ if (!validate68(data0, { instancePath: instancePath + "/constraints", parentData: data, parentDataProperty: "constraints", rootData })) {
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
errors = vErrors.length;
}
var _valid0 = _errs4 === errors;
@@ -8924,7 +8960,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err1);
}
errors++;
- validate66.errors = vErrors;
+ validate67.errors = vErrors;
return false;
} else {
errors = _errs3;
@@ -8943,8 +8979,8 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
if (valid0) {
if (data.default !== void 0) {
const _errs7 = errors;
- if (!validate68(data.default, { instancePath: instancePath + "/default", parentData: data, parentDataProperty: "default", rootData })) {
- vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
+ if (!validate69(data.default, { instancePath: instancePath + "/default", parentData: data, parentDataProperty: "default", rootData })) {
+ vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
errors = vErrors.length;
}
var valid0 = _errs7 === errors;
@@ -8956,7 +8992,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
let data2 = data.description;
const _errs8 = errors;
if (typeof data2 !== "string" && data2 !== null) {
- validate66.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: schema76.properties.description.type }, message: "must be string,null" }];
+ validate67.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: schema77.properties.description.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -8967,7 +9003,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
if (data.key !== void 0) {
const _errs10 = errors;
if (typeof data.key !== "string") {
- validate66.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate67.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs10 === errors;
@@ -8978,7 +9014,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
if (data.label !== void 0) {
const _errs12 = errors;
if (typeof data.label !== "string") {
- validate66.errors = [{ instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate67.errors = [{ instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs12 === errors;
@@ -8990,11 +9026,11 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
let data5 = data.param_type;
const _errs14 = errors;
if (typeof data5 !== "string") {
- validate66.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate67.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data5 === "Number" || data5 === "Integer" || data5 === "String" || data5 === "Boolean")) {
- validate66.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" }];
+ validate67.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/enum", keyword: "enum", params: { allowedValues: schema80.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs14 === errors;
@@ -9009,27 +9045,27 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate66.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate67.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate66.errors = vErrors;
+ validate67.errors = vErrors;
return errors === 0;
}
-function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.model_id === void 0 && (missing0 = "model_id") || data.inference_settings === void 0 && (missing0 = "inference_settings")) {
- validate65.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate66.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "inference_settings" || key0 === "model_id" || key0 === "success")) {
- validate65.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate66.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -9044,8 +9080,8 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
const len0 = data0.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs4 = errors;
- if (!validate66(data0[i0], { instancePath: instancePath + "/inference_settings/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate66.errors : vErrors.concat(validate66.errors);
+ if (!validate67(data0[i0], { instancePath: instancePath + "/inference_settings/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
errors = vErrors.length;
}
var valid1 = _errs4 === errors;
@@ -9054,7 +9090,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate65.errors = [{ instancePath: instancePath + "/inference_settings", schemaPath: "#/properties/inference_settings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate66.errors = [{ instancePath: instancePath + "/inference_settings", schemaPath: "#/properties/inference_settings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -9066,7 +9102,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
if (data.model_id !== void 0) {
const _errs5 = errors;
if (typeof data.model_id !== "string") {
- validate65.errors = [{ instancePath: instancePath + "/model_id", schemaPath: "#/properties/model_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate66.errors = [{ instancePath: instancePath + "/model_id", schemaPath: "#/properties/model_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs5 === errors;
@@ -9078,11 +9114,11 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
let data3 = data.success;
const _errs7 = errors;
if (typeof data3 !== "boolean") {
- validate65.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate66.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data3) {
- validate65.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate66.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs7 === errors;
@@ -9094,31 +9130,31 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate65.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate66.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate65.errors = vErrors;
+ validate66.errors = vErrors;
return errors === 0;
}
-var validateInstallationProgressOutcome = validate73;
-var schema81 = { "additionalProperties": false, "properties": { "completedAt": { "type": ["string", "null"] }, "completedDependencies": { "maximum": 4294967295, "minimum": 0, "type": "integer" }, "completedItems": { "items": { "$ref": "#/definitions/RuntimeInstallationProgressItem" }, "type": "array" }, "currentItem": { "type": ["string", "null"] }, "dependencyCount": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] }, "downloadSpeed": { "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "downloadedBytes": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "error": { "type": ["string", "null"] }, "etaSeconds": { "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "logPath": { "type": ["string", "null"] }, "overallProgress": { "maximum": 34028234663852886e22, "minimum": -34028234663852886e22, "type": ["number", "null"] }, "stage": { "$ref": "#/definitions/RuntimeInstallationStage" }, "stageProgress": { "maximum": 34028234663852886e22, "minimum": -34028234663852886e22, "type": ["number", "null"] }, "startedAt": { "type": "string" }, "success": { "type": ["boolean", "null"] }, "tag": { "type": "string" }, "totalSize": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] } }, "required": ["tag", "startedAt", "stage", "stageProgress", "overallProgress", "currentItem", "downloadSpeed", "etaSeconds", "totalSize", "downloadedBytes", "dependencyCount", "completedDependencies", "completedItems", "error", "completedAt", "success", "logPath"], "type": "object" };
-var schema82 = { "additionalProperties": false, "properties": { "completedAt": { "type": "string" }, "name": { "type": "string" }, "size": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "type": { "type": "string" } }, "required": ["name", "type", "size", "completedAt"], "type": "object" };
-var schema83 = { "enum": ["download", "extract", "venv", "dependencies", "setup"], "type": "string" };
-function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInstallationProgressOutcome = validate74;
+var schema82 = { "additionalProperties": false, "properties": { "completedAt": { "type": ["string", "null"] }, "completedDependencies": { "maximum": 4294967295, "minimum": 0, "type": "integer" }, "completedItems": { "items": { "$ref": "#/definitions/RuntimeInstallationProgressItem" }, "type": "array" }, "currentItem": { "type": ["string", "null"] }, "dependencyCount": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] }, "downloadSpeed": { "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "downloadedBytes": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "error": { "type": ["string", "null"] }, "etaSeconds": { "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "logPath": { "type": ["string", "null"] }, "overallProgress": { "maximum": 34028234663852886e22, "minimum": -34028234663852886e22, "type": ["number", "null"] }, "stage": { "$ref": "#/definitions/RuntimeInstallationStage" }, "stageProgress": { "maximum": 34028234663852886e22, "minimum": -34028234663852886e22, "type": ["number", "null"] }, "startedAt": { "type": "string" }, "success": { "type": ["boolean", "null"] }, "tag": { "type": "string" }, "totalSize": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] } }, "required": ["tag", "startedAt", "stage", "stageProgress", "overallProgress", "currentItem", "downloadSpeed", "etaSeconds", "totalSize", "downloadedBytes", "dependencyCount", "completedDependencies", "completedItems", "error", "completedAt", "success", "logPath"], "type": "object" };
+var schema83 = { "additionalProperties": false, "properties": { "completedAt": { "type": "string" }, "name": { "type": "string" }, "size": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "type": { "type": "string" } }, "required": ["name", "type", "size", "completedAt"], "type": "object" };
+var schema84 = { "enum": ["download", "extract", "venv", "dependencies", "setup"], "type": "string" };
+function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.tag === void 0 && (missing0 = "tag") || data.startedAt === void 0 && (missing0 = "startedAt") || data.stage === void 0 && (missing0 = "stage") || data.stageProgress === void 0 && (missing0 = "stageProgress") || data.overallProgress === void 0 && (missing0 = "overallProgress") || data.currentItem === void 0 && (missing0 = "currentItem") || data.downloadSpeed === void 0 && (missing0 = "downloadSpeed") || data.etaSeconds === void 0 && (missing0 = "etaSeconds") || data.totalSize === void 0 && (missing0 = "totalSize") || data.downloadedBytes === void 0 && (missing0 = "downloadedBytes") || data.dependencyCount === void 0 && (missing0 = "dependencyCount") || data.completedDependencies === void 0 && (missing0 = "completedDependencies") || data.completedItems === void 0 && (missing0 = "completedItems") || data.error === void 0 && (missing0 = "error") || data.completedAt === void 0 && (missing0 = "completedAt") || data.success === void 0 && (missing0 = "success") || data.logPath === void 0 && (missing0 = "logPath")) {
- validate74.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate75.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
- if (!func2.call(schema81.properties, key0)) {
- validate74.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ if (!func2.call(schema82.properties, key0)) {
+ validate75.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -9128,7 +9164,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.completedAt;
const _errs2 = errors;
if (typeof data0 !== "string" && data0 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/completedAt", schemaPath: "#/properties/completedAt/type", keyword: "type", params: { type: schema81.properties.completedAt.type }, message: "must be string,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedAt", schemaPath: "#/properties/completedAt/type", keyword: "type", params: { type: schema82.properties.completedAt.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -9140,17 +9176,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.completedDependencies;
const _errs4 = errors;
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
- validate74.errors = [{ instancePath: instancePath + "/completedDependencies", schemaPath: "#/properties/completedDependencies/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedDependencies", schemaPath: "#/properties/completedDependencies/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs4) {
if (typeof data1 == "number" && isFinite(data1)) {
if (data1 > 4294967295 || isNaN(data1)) {
- validate74.errors = [{ instancePath: instancePath + "/completedDependencies", schemaPath: "#/properties/completedDependencies/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedDependencies", schemaPath: "#/properties/completedDependencies/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
return false;
} else {
if (data1 < 0 || isNaN(data1)) {
- validate74.errors = [{ instancePath: instancePath + "/completedDependencies", schemaPath: "#/properties/completedDependencies/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedDependencies", schemaPath: "#/properties/completedDependencies/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -9176,13 +9212,13 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
let missing1;
if (data3.name === void 0 && (missing1 = "name") || data3.type === void 0 && (missing1 = "type") || data3.size === void 0 && (missing1 = "size") || data3.completedAt === void 0 && (missing1 = "completedAt")) {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/definitions/RuntimeInstallationProgressItem/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/definitions/RuntimeInstallationProgressItem/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
return false;
} else {
const _errs11 = errors;
for (const key1 in data3) {
if (!(key1 === "completedAt" || key1 === "name" || key1 === "size" || key1 === "type")) {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/definitions/RuntimeInstallationProgressItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/definitions/RuntimeInstallationProgressItem/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -9191,7 +9227,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
if (data3.completedAt !== void 0) {
const _errs12 = errors;
if (typeof data3.completedAt !== "string") {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/completedAt", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/completedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/completedAt", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/completedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs12 === errors;
@@ -9202,7 +9238,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
if (data3.name !== void 0) {
const _errs14 = errors;
if (typeof data3.name !== "string") {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/name", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/name", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs14 === errors;
@@ -9214,17 +9250,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data6 = data3.size;
const _errs16 = errors;
if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6)) && data6 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/size", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/size/type", keyword: "type", params: { type: schema82.properties.size.type }, message: "must be integer,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/size", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/size/type", keyword: "type", params: { type: schema83.properties.size.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs16) {
if (typeof data6 == "number" && isFinite(data6)) {
if (data6 > 9007199254740991 || isNaN(data6)) {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/size", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/size/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/size", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/size/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data6 < 0 || isNaN(data6)) {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/size", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/size/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/size", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/size/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -9238,7 +9274,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
if (data3.type !== void 0) {
const _errs18 = errors;
if (typeof data3.type !== "string") {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/type", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0 + "/type", schemaPath: "#/definitions/RuntimeInstallationProgressItem/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs18 === errors;
@@ -9251,7 +9287,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate74.errors = [{ instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/definitions/RuntimeInstallationProgressItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems/" + i0, schemaPath: "#/definitions/RuntimeInstallationProgressItem/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -9261,7 +9297,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate74.errors = [{ instancePath: instancePath + "/completedItems", schemaPath: "#/properties/completedItems/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate75.errors = [{ instancePath: instancePath + "/completedItems", schemaPath: "#/properties/completedItems/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -9274,7 +9310,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data8 = data.currentItem;
const _errs20 = errors;
if (typeof data8 !== "string" && data8 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/currentItem", schemaPath: "#/properties/currentItem/type", keyword: "type", params: { type: schema81.properties.currentItem.type }, message: "must be string,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/currentItem", schemaPath: "#/properties/currentItem/type", keyword: "type", params: { type: schema82.properties.currentItem.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs20 === errors;
@@ -9286,17 +9322,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data9 = data.dependencyCount;
const _errs22 = errors;
if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9)) && data9 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/type", keyword: "type", params: { type: schema81.properties.dependencyCount.type }, message: "must be integer,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/type", keyword: "type", params: { type: schema82.properties.dependencyCount.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs22) {
if (typeof data9 == "number" && isFinite(data9)) {
if (data9 > 4294967295 || isNaN(data9)) {
- validate74.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
+ validate75.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
return false;
} else {
if (data9 < 0 || isNaN(data9)) {
- validate74.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate75.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -9311,17 +9347,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data10 = data.downloadSpeed;
const _errs24 = errors;
if (!(typeof data10 == "number" && isFinite(data10)) && data10 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/downloadSpeed", schemaPath: "#/properties/downloadSpeed/type", keyword: "type", params: { type: schema81.properties.downloadSpeed.type }, message: "must be number,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/downloadSpeed", schemaPath: "#/properties/downloadSpeed/type", keyword: "type", params: { type: schema82.properties.downloadSpeed.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs24) {
if (typeof data10 == "number" && isFinite(data10)) {
if (data10 > 17976931348623157e292 || isNaN(data10)) {
- validate74.errors = [{ instancePath: instancePath + "/downloadSpeed", schemaPath: "#/properties/downloadSpeed/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
+ validate75.errors = [{ instancePath: instancePath + "/downloadSpeed", schemaPath: "#/properties/downloadSpeed/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
return false;
} else {
if (data10 < -17976931348623157e292 || isNaN(data10)) {
- validate74.errors = [{ instancePath: instancePath + "/downloadSpeed", schemaPath: "#/properties/downloadSpeed/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
+ validate75.errors = [{ instancePath: instancePath + "/downloadSpeed", schemaPath: "#/properties/downloadSpeed/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
return false;
}
}
@@ -9336,17 +9372,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data11 = data.downloadedBytes;
const _errs26 = errors;
if (!(typeof data11 == "number" && (!(data11 % 1) && !isNaN(data11)) && isFinite(data11))) {
- validate74.errors = [{ instancePath: instancePath + "/downloadedBytes", schemaPath: "#/properties/downloadedBytes/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate75.errors = [{ instancePath: instancePath + "/downloadedBytes", schemaPath: "#/properties/downloadedBytes/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs26) {
if (typeof data11 == "number" && isFinite(data11)) {
if (data11 > 9007199254740991 || isNaN(data11)) {
- validate74.errors = [{ instancePath: instancePath + "/downloadedBytes", schemaPath: "#/properties/downloadedBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate75.errors = [{ instancePath: instancePath + "/downloadedBytes", schemaPath: "#/properties/downloadedBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data11 < 0 || isNaN(data11)) {
- validate74.errors = [{ instancePath: instancePath + "/downloadedBytes", schemaPath: "#/properties/downloadedBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate75.errors = [{ instancePath: instancePath + "/downloadedBytes", schemaPath: "#/properties/downloadedBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -9361,7 +9397,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data12 = data.error;
const _errs28 = errors;
if (typeof data12 !== "string" && data12 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: schema81.properties.error.type }, message: "must be string,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: schema82.properties.error.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs28 === errors;
@@ -9373,17 +9409,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data13 = data.etaSeconds;
const _errs30 = errors;
if (!(typeof data13 == "number" && isFinite(data13)) && data13 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/etaSeconds", schemaPath: "#/properties/etaSeconds/type", keyword: "type", params: { type: schema81.properties.etaSeconds.type }, message: "must be number,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/etaSeconds", schemaPath: "#/properties/etaSeconds/type", keyword: "type", params: { type: schema82.properties.etaSeconds.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs30) {
if (typeof data13 == "number" && isFinite(data13)) {
if (data13 > 17976931348623157e292 || isNaN(data13)) {
- validate74.errors = [{ instancePath: instancePath + "/etaSeconds", schemaPath: "#/properties/etaSeconds/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
+ validate75.errors = [{ instancePath: instancePath + "/etaSeconds", schemaPath: "#/properties/etaSeconds/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
return false;
} else {
if (data13 < -17976931348623157e292 || isNaN(data13)) {
- validate74.errors = [{ instancePath: instancePath + "/etaSeconds", schemaPath: "#/properties/etaSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
+ validate75.errors = [{ instancePath: instancePath + "/etaSeconds", schemaPath: "#/properties/etaSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
return false;
}
}
@@ -9398,7 +9434,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data14 = data.logPath;
const _errs32 = errors;
if (typeof data14 !== "string" && data14 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/logPath", schemaPath: "#/properties/logPath/type", keyword: "type", params: { type: schema81.properties.logPath.type }, message: "must be string,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/logPath", schemaPath: "#/properties/logPath/type", keyword: "type", params: { type: schema82.properties.logPath.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs32 === errors;
@@ -9410,17 +9446,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data15 = data.overallProgress;
const _errs34 = errors;
if (!(typeof data15 == "number" && isFinite(data15)) && data15 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/overallProgress", schemaPath: "#/properties/overallProgress/type", keyword: "type", params: { type: schema81.properties.overallProgress.type }, message: "must be number,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/overallProgress", schemaPath: "#/properties/overallProgress/type", keyword: "type", params: { type: schema82.properties.overallProgress.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs34) {
if (typeof data15 == "number" && isFinite(data15)) {
if (data15 > 34028234663852886e22 || isNaN(data15)) {
- validate74.errors = [{ instancePath: instancePath + "/overallProgress", schemaPath: "#/properties/overallProgress/maximum", keyword: "maximum", params: { comparison: "<=", limit: 34028234663852886e22 }, message: "must be <= 3.4028234663852886e+38" }];
+ validate75.errors = [{ instancePath: instancePath + "/overallProgress", schemaPath: "#/properties/overallProgress/maximum", keyword: "maximum", params: { comparison: "<=", limit: 34028234663852886e22 }, message: "must be <= 3.4028234663852886e+38" }];
return false;
} else {
if (data15 < -34028234663852886e22 || isNaN(data15)) {
- validate74.errors = [{ instancePath: instancePath + "/overallProgress", schemaPath: "#/properties/overallProgress/minimum", keyword: "minimum", params: { comparison: ">=", limit: -34028234663852886e22 }, message: "must be >= -3.4028234663852886e+38" }];
+ validate75.errors = [{ instancePath: instancePath + "/overallProgress", schemaPath: "#/properties/overallProgress/minimum", keyword: "minimum", params: { comparison: ">=", limit: -34028234663852886e22 }, message: "must be >= -3.4028234663852886e+38" }];
return false;
}
}
@@ -9435,11 +9471,11 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data16 = data.stage;
const _errs36 = errors;
if (typeof data16 !== "string") {
- validate74.errors = [{ instancePath: instancePath + "/stage", schemaPath: "#/definitions/RuntimeInstallationStage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate75.errors = [{ instancePath: instancePath + "/stage", schemaPath: "#/definitions/RuntimeInstallationStage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data16 === "download" || data16 === "extract" || data16 === "venv" || data16 === "dependencies" || data16 === "setup")) {
- validate74.errors = [{ instancePath: instancePath + "/stage", schemaPath: "#/definitions/RuntimeInstallationStage/enum", keyword: "enum", params: { allowedValues: schema83.enum }, message: "must be equal to one of the allowed values" }];
+ validate75.errors = [{ instancePath: instancePath + "/stage", schemaPath: "#/definitions/RuntimeInstallationStage/enum", keyword: "enum", params: { allowedValues: schema84.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs36 === errors;
@@ -9451,17 +9487,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data17 = data.stageProgress;
const _errs39 = errors;
if (!(typeof data17 == "number" && isFinite(data17)) && data17 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/stageProgress", schemaPath: "#/properties/stageProgress/type", keyword: "type", params: { type: schema81.properties.stageProgress.type }, message: "must be number,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/stageProgress", schemaPath: "#/properties/stageProgress/type", keyword: "type", params: { type: schema82.properties.stageProgress.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs39) {
if (typeof data17 == "number" && isFinite(data17)) {
if (data17 > 34028234663852886e22 || isNaN(data17)) {
- validate74.errors = [{ instancePath: instancePath + "/stageProgress", schemaPath: "#/properties/stageProgress/maximum", keyword: "maximum", params: { comparison: "<=", limit: 34028234663852886e22 }, message: "must be <= 3.4028234663852886e+38" }];
+ validate75.errors = [{ instancePath: instancePath + "/stageProgress", schemaPath: "#/properties/stageProgress/maximum", keyword: "maximum", params: { comparison: "<=", limit: 34028234663852886e22 }, message: "must be <= 3.4028234663852886e+38" }];
return false;
} else {
if (data17 < -34028234663852886e22 || isNaN(data17)) {
- validate74.errors = [{ instancePath: instancePath + "/stageProgress", schemaPath: "#/properties/stageProgress/minimum", keyword: "minimum", params: { comparison: ">=", limit: -34028234663852886e22 }, message: "must be >= -3.4028234663852886e+38" }];
+ validate75.errors = [{ instancePath: instancePath + "/stageProgress", schemaPath: "#/properties/stageProgress/minimum", keyword: "minimum", params: { comparison: ">=", limit: -34028234663852886e22 }, message: "must be >= -3.4028234663852886e+38" }];
return false;
}
}
@@ -9475,7 +9511,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
if (data.startedAt !== void 0) {
const _errs41 = errors;
if (typeof data.startedAt !== "string") {
- validate74.errors = [{ instancePath: instancePath + "/startedAt", schemaPath: "#/properties/startedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate75.errors = [{ instancePath: instancePath + "/startedAt", schemaPath: "#/properties/startedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs41 === errors;
@@ -9487,7 +9523,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data19 = data.success;
const _errs43 = errors;
if (typeof data19 !== "boolean" && data19 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: schema81.properties.success.type }, message: "must be boolean,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: schema82.properties.success.type }, message: "must be boolean,null" }];
return false;
}
var valid0 = _errs43 === errors;
@@ -9498,7 +9534,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
if (data.tag !== void 0) {
const _errs45 = errors;
if (typeof data.tag !== "string") {
- validate74.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate75.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs45 === errors;
@@ -9510,17 +9546,17 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
let data21 = data.totalSize;
const _errs47 = errors;
if (!(typeof data21 == "number" && (!(data21 % 1) && !isNaN(data21)) && isFinite(data21)) && data21 !== null) {
- validate74.errors = [{ instancePath: instancePath + "/totalSize", schemaPath: "#/properties/totalSize/type", keyword: "type", params: { type: schema81.properties.totalSize.type }, message: "must be integer,null" }];
+ validate75.errors = [{ instancePath: instancePath + "/totalSize", schemaPath: "#/properties/totalSize/type", keyword: "type", params: { type: schema82.properties.totalSize.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs47) {
if (typeof data21 == "number" && isFinite(data21)) {
if (data21 > 9007199254740991 || isNaN(data21)) {
- validate74.errors = [{ instancePath: instancePath + "/totalSize", schemaPath: "#/properties/totalSize/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate75.errors = [{ instancePath: instancePath + "/totalSize", schemaPath: "#/properties/totalSize/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data21 < 0 || isNaN(data21)) {
- validate74.errors = [{ instancePath: instancePath + "/totalSize", schemaPath: "#/properties/totalSize/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate75.errors = [{ instancePath: instancePath + "/totalSize", schemaPath: "#/properties/totalSize/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -9549,21 +9585,21 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate74.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate75.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate74.errors = vErrors;
+ validate75.errors = vErrors;
return errors === 0;
}
-function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
let valid0 = false;
const _errs1 = errors;
- if (!validate74(data, { instancePath, parentData, parentDataProperty, rootData })) {
- vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
+ if (!validate75(data, { instancePath, parentData, parentDataProperty, rootData })) {
+ vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
errors = vErrors.length;
}
var _valid0 = _errs1 === errors;
@@ -9590,7 +9626,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err1);
}
errors++;
- validate73.errors = vErrors;
+ validate74.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -9602,24 +9638,24 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate73.errors = vErrors;
+ validate74.errors = vErrors;
return errors === 0;
}
-var validateInstalledVersionsOutcome = validate76;
-function validate76(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInstalledVersionsOutcome = validate77;
+function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.versions === void 0 && (missing0 = "versions")) {
- validate76.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate77.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success" || key0 === "versions")) {
- validate76.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate77.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -9629,11 +9665,11 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.success;
const _errs2 = errors;
if (typeof data0 !== "boolean") {
- validate76.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate77.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data0) {
- validate76.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate77.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -9651,7 +9687,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
for (let i0 = 0; i0 < len0; i0++) {
const _errs6 = errors;
if (typeof data1[i0] !== "string") {
- validate76.errors = [{ instancePath: instancePath + "/versions/" + i0, schemaPath: "#/properties/versions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate77.errors = [{ instancePath: instancePath + "/versions/" + i0, schemaPath: "#/properties/versions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid1 = _errs6 === errors;
@@ -9660,7 +9696,7 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate76.errors = [{ instancePath: instancePath + "/versions", schemaPath: "#/properties/versions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate77.errors = [{ instancePath: instancePath + "/versions", schemaPath: "#/properties/versions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -9672,28 +9708,28 @@ function validate76(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate76.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate77.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate76.errors = vErrors;
+ validate77.errors = vErrors;
return errors === 0;
}
-var validateInstallVersionDependenciesOutcome = validate77;
-function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInstallVersionDependenciesOutcome = validate78;
+function validate78(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success")) {
- validate77.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate78.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success")) {
- validate77.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate78.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -9701,22 +9737,22 @@ function validate77(data, { instancePath = "", parentData, parentDataProperty, r
if (_errs1 === errors) {
if (data.success !== void 0) {
if (typeof data.success !== "boolean") {
- validate77.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate78.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
}
}
}
} else {
- validate77.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate78.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate77.errors = vErrors;
+ validate78.errors = vErrors;
return errors === 0;
}
-var validateInstallVersionDependenciesParams = validate78;
-function validate78(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInstallVersionDependenciesParams = validate79;
+function validate79(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -9877,7 +9913,7 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err10);
}
errors++;
- validate78.errors = vErrors;
+ validate79.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -9889,11 +9925,11 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate78.errors = vErrors;
+ validate79.errors = vErrors;
return errors === 0;
}
-var validateInstallVersionOutcome = validate79;
-function validate79(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInstallVersionOutcome = validate80;
+function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -10076,7 +10112,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err12);
}
errors++;
- validate79.errors = vErrors;
+ validate80.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -10088,12 +10124,12 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate79.errors = vErrors;
+ validate80.errors = vErrors;
return errors === 0;
}
-var validateInstallVersionParams = validate80;
-var schema90 = { "anyOf": [{ "additionalProperties": false, "properties": { "app_id": { "type": "string" }, "preview_id": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["app_id", "tag"], "type": "object" }, { "additionalProperties": false, "properties": { "app_id": { "type": "string" }, "previewId": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["app_id", "tag"], "type": "object" }, { "additionalProperties": false, "properties": { "appId": { "type": "string" }, "preview_id": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["appId", "tag"], "type": "object" }, { "additionalProperties": false, "properties": { "appId": { "type": "string" }, "previewId": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["appId", "tag"], "type": "object" }] };
-function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateInstallVersionParams = validate81;
+var schema91 = { "anyOf": [{ "additionalProperties": false, "properties": { "app_id": { "type": "string" }, "preview_id": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["app_id", "tag"], "type": "object" }, { "additionalProperties": false, "properties": { "app_id": { "type": "string" }, "previewId": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["app_id", "tag"], "type": "object" }, { "additionalProperties": false, "properties": { "appId": { "type": "string" }, "preview_id": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["appId", "tag"], "type": "object" }, { "additionalProperties": false, "properties": { "appId": { "type": "string" }, "previewId": { "default": null, "type": ["string", "null"] }, "tag": { "type": "string" } }, "required": ["appId", "tag"], "type": "object" }] };
+function validate81(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -10145,7 +10181,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.preview_id;
const _errs6 = errors;
if (typeof data1 !== "string" && data1 !== null) {
- const err3 = { instancePath: instancePath + "/preview_id", schemaPath: "#/anyOf/0/properties/preview_id/type", keyword: "type", params: { type: schema90.anyOf[0].properties.preview_id.type }, message: "must be string,null" };
+ const err3 = { instancePath: instancePath + "/preview_id", schemaPath: "#/anyOf/0/properties/preview_id/type", keyword: "type", params: { type: schema91.anyOf[0].properties.preview_id.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err3];
} else {
@@ -10237,7 +10273,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
let data4 = data.previewId;
const _errs15 = errors;
if (typeof data4 !== "string" && data4 !== null) {
- const err9 = { instancePath: instancePath + "/previewId", schemaPath: "#/anyOf/1/properties/previewId/type", keyword: "type", params: { type: schema90.anyOf[1].properties.previewId.type }, message: "must be string,null" };
+ const err9 = { instancePath: instancePath + "/previewId", schemaPath: "#/anyOf/1/properties/previewId/type", keyword: "type", params: { type: schema91.anyOf[1].properties.previewId.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err9];
} else {
@@ -10329,7 +10365,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
let data7 = data.preview_id;
const _errs24 = errors;
if (typeof data7 !== "string" && data7 !== null) {
- const err15 = { instancePath: instancePath + "/preview_id", schemaPath: "#/anyOf/2/properties/preview_id/type", keyword: "type", params: { type: schema90.anyOf[2].properties.preview_id.type }, message: "must be string,null" };
+ const err15 = { instancePath: instancePath + "/preview_id", schemaPath: "#/anyOf/2/properties/preview_id/type", keyword: "type", params: { type: schema91.anyOf[2].properties.preview_id.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err15];
} else {
@@ -10421,7 +10457,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
let data10 = data.previewId;
const _errs33 = errors;
if (typeof data10 !== "string" && data10 !== null) {
- const err21 = { instancePath: instancePath + "/previewId", schemaPath: "#/anyOf/3/properties/previewId/type", keyword: "type", params: { type: schema90.anyOf[3].properties.previewId.type }, message: "must be string,null" };
+ const err21 = { instancePath: instancePath + "/previewId", schemaPath: "#/anyOf/3/properties/previewId/type", keyword: "type", params: { type: schema91.anyOf[3].properties.previewId.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err21];
} else {
@@ -10476,7 +10512,7 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err24);
}
errors++;
- validate80.errors = vErrors;
+ validate81.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -10488,26 +10524,26 @@ function validate80(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate80.errors = vErrors;
+ validate81.errors = vErrors;
return errors === 0;
}
-var validateLibraryModelMetadataOutcome = validate81;
-var schema92 = { "additionalProperties": false, "description": "Derived component metadata for a directory-root bundle model.", "properties": { "class_name": { "default": null, "type": ["string", "null"] }, "name": { "type": "string" }, "relative_path": { "type": "string" }, "source_library": { "default": null, "type": ["string", "null"] }, "state": { "$ref": "#/definitions/BundleComponentState" } }, "required": ["name", "relative_path", "source_library", "class_name", "state"], "type": "object" };
-var schema93 = { "description": "Presence/state of a bundle component derived from bundle metadata.", "enum": ["present", "missing", "unreadable", "path_escape"], "type": "string" };
-function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateLibraryModelMetadataOutcome = validate82;
+var schema93 = { "additionalProperties": false, "description": "Derived component metadata for a directory-root bundle model.", "properties": { "class_name": { "default": null, "type": ["string", "null"] }, "name": { "type": "string" }, "relative_path": { "type": "string" }, "source_library": { "default": null, "type": ["string", "null"] }, "state": { "$ref": "#/definitions/BundleComponentState" } }, "required": ["name", "relative_path", "source_library", "class_name", "state"], "type": "object" };
+var schema94 = { "description": "Presence/state of a bundle component derived from bundle metadata.", "enum": ["present", "missing", "unreadable", "path_escape"], "type": "string" };
+function validate83(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.name === void 0 && (missing0 = "name") || data.relative_path === void 0 && (missing0 = "relative_path") || data.source_library === void 0 && (missing0 = "source_library") || data.class_name === void 0 && (missing0 = "class_name") || data.state === void 0 && (missing0 = "state")) {
- validate82.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate83.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "class_name" || key0 === "name" || key0 === "relative_path" || key0 === "source_library" || key0 === "state")) {
- validate82.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate83.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -10517,7 +10553,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.class_name;
const _errs2 = errors;
if (typeof data0 !== "string" && data0 !== null) {
- validate82.errors = [{ instancePath: instancePath + "/class_name", schemaPath: "#/properties/class_name/type", keyword: "type", params: { type: schema92.properties.class_name.type }, message: "must be string,null" }];
+ validate83.errors = [{ instancePath: instancePath + "/class_name", schemaPath: "#/properties/class_name/type", keyword: "type", params: { type: schema93.properties.class_name.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -10528,7 +10564,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
if (data.name !== void 0) {
const _errs4 = errors;
if (typeof data.name !== "string") {
- validate82.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate83.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -10539,7 +10575,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
if (data.relative_path !== void 0) {
const _errs6 = errors;
if (typeof data.relative_path !== "string") {
- validate82.errors = [{ instancePath: instancePath + "/relative_path", schemaPath: "#/properties/relative_path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate83.errors = [{ instancePath: instancePath + "/relative_path", schemaPath: "#/properties/relative_path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs6 === errors;
@@ -10551,7 +10587,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
let data3 = data.source_library;
const _errs8 = errors;
if (typeof data3 !== "string" && data3 !== null) {
- validate82.errors = [{ instancePath: instancePath + "/source_library", schemaPath: "#/properties/source_library/type", keyword: "type", params: { type: schema92.properties.source_library.type }, message: "must be string,null" }];
+ validate83.errors = [{ instancePath: instancePath + "/source_library", schemaPath: "#/properties/source_library/type", keyword: "type", params: { type: schema93.properties.source_library.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -10563,11 +10599,11 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
let data4 = data.state;
const _errs10 = errors;
if (typeof data4 !== "string") {
- validate82.errors = [{ instancePath: instancePath + "/state", schemaPath: "#/definitions/BundleComponentState/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate83.errors = [{ instancePath: instancePath + "/state", schemaPath: "#/definitions/BundleComponentState/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data4 === "present" || data4 === "missing" || data4 === "unreadable" || data4 === "path_escape")) {
- validate82.errors = [{ instancePath: instancePath + "/state", schemaPath: "#/definitions/BundleComponentState/enum", keyword: "enum", params: { allowedValues: schema93.enum }, message: "must be equal to one of the allowed values" }];
+ validate83.errors = [{ instancePath: instancePath + "/state", schemaPath: "#/definitions/BundleComponentState/enum", keyword: "enum", params: { allowedValues: schema94.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs10 === errors;
@@ -10581,15 +10617,15 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate82.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate83.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate82.errors = vErrors;
+ validate83.errors = vErrors;
return errors === 0;
}
-var wrapper2 = { validate: validate84 };
-function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var wrapper2 = { validate: validate85 };
+function validate85(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -10736,7 +10772,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err8);
}
errors++;
- validate84.errors = vErrors;
+ validate85.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -10748,23 +10784,23 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate84.errors = vErrors;
+ validate85.errors = vErrors;
return errors === 0;
}
-function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate87(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.file_type === void 0 && (missing0 = "file_type") || data.metadata === void 0 && (missing0 = "metadata")) {
- validate86.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate87.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "file_type" || key0 === "metadata")) {
- validate86.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate87.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -10773,7 +10809,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
if (data.file_type !== void 0) {
const _errs2 = errors;
if (typeof data.file_type !== "string") {
- validate86.errors = [{ instancePath: instancePath + "/file_type", schemaPath: "#/properties/file_type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate87.errors = [{ instancePath: instancePath + "/file_type", schemaPath: "#/properties/file_type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -10788,8 +10824,8 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
for (const key1 in data1) {
const _errs7 = errors;
- if (!validate84(data1[key1], { instancePath: instancePath + "/metadata/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data1, parentDataProperty: key1, rootData })) {
- vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
+ if (!validate85(data1[key1], { instancePath: instancePath + "/metadata/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data1, parentDataProperty: key1, rootData })) {
+ vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors);
errors = vErrors.length;
}
var valid1 = _errs7 === errors;
@@ -10798,7 +10834,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate86.errors = [{ instancePath: instancePath + "/metadata", schemaPath: "#/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate87.errors = [{ instancePath: instancePath + "/metadata", schemaPath: "#/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -10810,27 +10846,27 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate86.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate87.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate86.errors = vErrors;
+ validate87.errors = vErrors;
return errors === 0;
}
-function validate81(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.model_id === void 0 && (missing0 = "model_id")) {
- validate81.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate82.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "component_manifest" || key0 === "effective_metadata" || key0 === "embedded_metadata" || key0 === "model_id" || key0 === "primary_file" || key0 === "stored_metadata" || key0 === "success")) {
- validate81.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate82.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -10845,8 +10881,8 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
const len0 = data0.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs4 = errors;
- if (!validate82(data0[i0], { instancePath: instancePath + "/component_manifest/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
+ if (!validate83(data0[i0], { instancePath: instancePath + "/component_manifest/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
errors = vErrors.length;
}
var valid1 = _errs4 === errors;
@@ -10855,7 +10891,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate81.errors = [{ instancePath: instancePath + "/component_manifest", schemaPath: "#/properties/component_manifest/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate82.errors = [{ instancePath: instancePath + "/component_manifest", schemaPath: "#/properties/component_manifest/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -10871,8 +10907,8 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
for (const key1 in data2) {
const _errs8 = errors;
- if (!validate84(data2[key1], { instancePath: instancePath + "/effective_metadata/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key1, rootData })) {
- vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
+ if (!validate85(data2[key1], { instancePath: instancePath + "/effective_metadata/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data2, parentDataProperty: key1, rootData })) {
+ vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors);
errors = vErrors.length;
}
var valid2 = _errs8 === errors;
@@ -10881,7 +10917,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate81.errors = [{ instancePath: instancePath + "/effective_metadata", schemaPath: "#/properties/effective_metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate82.errors = [{ instancePath: instancePath + "/effective_metadata", schemaPath: "#/properties/effective_metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -10892,8 +10928,8 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
if (valid0) {
if (data.embedded_metadata !== void 0) {
const _errs9 = errors;
- if (!validate86(data.embedded_metadata, { instancePath: instancePath + "/embedded_metadata", parentData: data, parentDataProperty: "embedded_metadata", rootData })) {
- vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors);
+ if (!validate87(data.embedded_metadata, { instancePath: instancePath + "/embedded_metadata", parentData: data, parentDataProperty: "embedded_metadata", rootData })) {
+ vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
errors = vErrors.length;
}
var valid0 = _errs9 === errors;
@@ -10904,7 +10940,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
if (data.model_id !== void 0) {
const _errs10 = errors;
if (typeof data.model_id !== "string") {
- validate81.errors = [{ instancePath: instancePath + "/model_id", schemaPath: "#/properties/model_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate82.errors = [{ instancePath: instancePath + "/model_id", schemaPath: "#/properties/model_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs10 === errors;
@@ -10915,7 +10951,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
if (data.primary_file !== void 0) {
const _errs12 = errors;
if (typeof data.primary_file !== "string") {
- validate81.errors = [{ instancePath: instancePath + "/primary_file", schemaPath: "#/properties/primary_file/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate82.errors = [{ instancePath: instancePath + "/primary_file", schemaPath: "#/properties/primary_file/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs12 === errors;
@@ -10930,8 +10966,8 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
for (const key2 in data7) {
const _errs17 = errors;
- if (!validate84(data7[key2], { instancePath: instancePath + "/stored_metadata/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key2, rootData })) {
- vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
+ if (!validate85(data7[key2], { instancePath: instancePath + "/stored_metadata/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data7, parentDataProperty: key2, rootData })) {
+ vErrors = vErrors === null ? validate85.errors : vErrors.concat(validate85.errors);
errors = vErrors.length;
}
var valid3 = _errs17 === errors;
@@ -10940,7 +10976,7 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate81.errors = [{ instancePath: instancePath + "/stored_metadata", schemaPath: "#/properties/stored_metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate82.errors = [{ instancePath: instancePath + "/stored_metadata", schemaPath: "#/properties/stored_metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -10953,11 +10989,11 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
let data9 = data.success;
const _errs18 = errors;
if (typeof data9 !== "boolean") {
- validate81.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate82.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data9) {
- validate81.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate82.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs18 === errors;
@@ -10973,16 +11009,16 @@ function validate81(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate81.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate82.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate81.errors = vErrors;
+ validate82.errors = vErrors;
return errors === 0;
}
-var validateLinkHealthOutcome = validate90;
-var schema97 = { "additionalProperties": false, "description": "Link health response.\n\nNote: Not FFI-compatible due to `usize` fields. Use wrapper types in pumas-uniffi.", "properties": { "broken_links": { "items": { "type": "string" }, "type": "array" }, "error": { "type": "null" }, "errors": { "items": { "type": "string" }, "type": "array" }, "healthy_links": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "orphaned_links": { "items": { "type": "string" }, "type": "array" }, "status": { "enum": ["healthy", "degraded"], "type": "string" }, "success": { "const": true, "type": "boolean" }, "total_links": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "warnings": { "items": { "type": "string" }, "type": "array" } }, "pumasLinkHealth": true, "required": ["success", "status", "total_links", "healthy_links", "broken_links", "orphaned_links", "warnings", "errors"], "type": "object" };
-function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateLinkHealthOutcome = validate91;
+var schema98 = { "additionalProperties": false, "description": "Link health response.\n\nNote: Not FFI-compatible due to `usize` fields. Use wrapper types in pumas-uniffi.", "properties": { "broken_links": { "items": { "type": "string" }, "type": "array" }, "error": { "type": "null" }, "errors": { "items": { "type": "string" }, "type": "array" }, "healthy_links": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "orphaned_links": { "items": { "type": "string" }, "type": "array" }, "status": { "enum": ["healthy", "degraded"], "type": "string" }, "success": { "const": true, "type": "boolean" }, "total_links": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "warnings": { "items": { "type": "string" }, "type": "array" } }, "pumasLinkHealth": true, "required": ["success", "status", "total_links", "healthy_links", "broken_links", "orphaned_links", "warnings", "errors"], "type": "object" };
+function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs1 = errors;
@@ -10990,13 +11026,13 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.status === void 0 && (missing0 = "status") || data.total_links === void 0 && (missing0 = "total_links") || data.healthy_links === void 0 && (missing0 = "healthy_links") || data.broken_links === void 0 && (missing0 = "broken_links") || data.orphaned_links === void 0 && (missing0 = "orphaned_links") || data.warnings === void 0 && (missing0 = "warnings") || data.errors === void 0 && (missing0 = "errors")) {
- validate90.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate91.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs3 = errors;
for (const key0 in data) {
- if (!func2.call(schema97.properties, key0)) {
- validate90.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ if (!func2.call(schema98.properties, key0)) {
+ validate91.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -11012,7 +11048,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
for (let i0 = 0; i0 < len0; i0++) {
const _errs6 = errors;
if (typeof data0[i0] !== "string") {
- validate90.errors = [{ instancePath: instancePath + "/broken_links/" + i0, schemaPath: "#/definitions/LinkHealthResponse/properties/broken_links/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate91.errors = [{ instancePath: instancePath + "/broken_links/" + i0, schemaPath: "#/definitions/LinkHealthResponse/properties/broken_links/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs6 === errors;
@@ -11021,7 +11057,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate90.errors = [{ instancePath: instancePath + "/broken_links", schemaPath: "#/definitions/LinkHealthResponse/properties/broken_links/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate91.errors = [{ instancePath: instancePath + "/broken_links", schemaPath: "#/definitions/LinkHealthResponse/properties/broken_links/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -11033,7 +11069,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
if (data.error !== void 0) {
const _errs8 = errors;
if (data.error !== null) {
- validate90.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/definitions/LinkHealthResponse/properties/error/type", keyword: "type", params: { type: "null" }, message: "must be null" }];
+ validate91.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/definitions/LinkHealthResponse/properties/error/type", keyword: "type", params: { type: "null" }, message: "must be null" }];
return false;
}
var valid2 = _errs8 === errors;
@@ -11051,7 +11087,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
for (let i1 = 0; i1 < len1; i1++) {
const _errs12 = errors;
if (typeof data3[i1] !== "string") {
- validate90.errors = [{ instancePath: instancePath + "/errors/" + i1, schemaPath: "#/definitions/LinkHealthResponse/properties/errors/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate91.errors = [{ instancePath: instancePath + "/errors/" + i1, schemaPath: "#/definitions/LinkHealthResponse/properties/errors/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid4 = _errs12 === errors;
@@ -11060,7 +11096,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate90.errors = [{ instancePath: instancePath + "/errors", schemaPath: "#/definitions/LinkHealthResponse/properties/errors/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate91.errors = [{ instancePath: instancePath + "/errors", schemaPath: "#/definitions/LinkHealthResponse/properties/errors/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -11073,17 +11109,17 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
let data5 = data.healthy_links;
const _errs14 = errors;
if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
- validate90.errors = [{ instancePath: instancePath + "/healthy_links", schemaPath: "#/definitions/LinkHealthResponse/properties/healthy_links/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate91.errors = [{ instancePath: instancePath + "/healthy_links", schemaPath: "#/definitions/LinkHealthResponse/properties/healthy_links/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs14) {
if (typeof data5 == "number" && isFinite(data5)) {
if (data5 > 9007199254740991 || isNaN(data5)) {
- validate90.errors = [{ instancePath: instancePath + "/healthy_links", schemaPath: "#/definitions/LinkHealthResponse/properties/healthy_links/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate91.errors = [{ instancePath: instancePath + "/healthy_links", schemaPath: "#/definitions/LinkHealthResponse/properties/healthy_links/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data5 < 0 || isNaN(data5)) {
- validate90.errors = [{ instancePath: instancePath + "/healthy_links", schemaPath: "#/definitions/LinkHealthResponse/properties/healthy_links/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate91.errors = [{ instancePath: instancePath + "/healthy_links", schemaPath: "#/definitions/LinkHealthResponse/properties/healthy_links/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -11104,7 +11140,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
for (let i2 = 0; i2 < len2; i2++) {
const _errs18 = errors;
if (typeof data6[i2] !== "string") {
- validate90.errors = [{ instancePath: instancePath + "/orphaned_links/" + i2, schemaPath: "#/definitions/LinkHealthResponse/properties/orphaned_links/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate91.errors = [{ instancePath: instancePath + "/orphaned_links/" + i2, schemaPath: "#/definitions/LinkHealthResponse/properties/orphaned_links/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid5 = _errs18 === errors;
@@ -11113,7 +11149,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate90.errors = [{ instancePath: instancePath + "/orphaned_links", schemaPath: "#/definitions/LinkHealthResponse/properties/orphaned_links/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate91.errors = [{ instancePath: instancePath + "/orphaned_links", schemaPath: "#/definitions/LinkHealthResponse/properties/orphaned_links/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -11126,11 +11162,11 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
let data8 = data.status;
const _errs20 = errors;
if (typeof data8 !== "string") {
- validate90.errors = [{ instancePath: instancePath + "/status", schemaPath: "#/definitions/LinkHealthResponse/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate91.errors = [{ instancePath: instancePath + "/status", schemaPath: "#/definitions/LinkHealthResponse/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data8 === "healthy" || data8 === "degraded")) {
- validate90.errors = [{ instancePath: instancePath + "/status", schemaPath: "#/definitions/LinkHealthResponse/properties/status/enum", keyword: "enum", params: { allowedValues: schema97.properties.status.enum }, message: "must be equal to one of the allowed values" }];
+ validate91.errors = [{ instancePath: instancePath + "/status", schemaPath: "#/definitions/LinkHealthResponse/properties/status/enum", keyword: "enum", params: { allowedValues: schema98.properties.status.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid2 = _errs20 === errors;
@@ -11142,11 +11178,11 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
let data9 = data.success;
const _errs22 = errors;
if (typeof data9 !== "boolean") {
- validate90.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/definitions/LinkHealthResponse/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate91.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/definitions/LinkHealthResponse/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data9) {
- validate90.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/definitions/LinkHealthResponse/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate91.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/definitions/LinkHealthResponse/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid2 = _errs22 === errors;
@@ -11158,17 +11194,17 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
let data10 = data.total_links;
const _errs24 = errors;
if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
- validate90.errors = [{ instancePath: instancePath + "/total_links", schemaPath: "#/definitions/LinkHealthResponse/properties/total_links/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate91.errors = [{ instancePath: instancePath + "/total_links", schemaPath: "#/definitions/LinkHealthResponse/properties/total_links/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs24) {
if (typeof data10 == "number" && isFinite(data10)) {
if (data10 > 9007199254740991 || isNaN(data10)) {
- validate90.errors = [{ instancePath: instancePath + "/total_links", schemaPath: "#/definitions/LinkHealthResponse/properties/total_links/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate91.errors = [{ instancePath: instancePath + "/total_links", schemaPath: "#/definitions/LinkHealthResponse/properties/total_links/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data10 < 0 || isNaN(data10)) {
- validate90.errors = [{ instancePath: instancePath + "/total_links", schemaPath: "#/definitions/LinkHealthResponse/properties/total_links/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate91.errors = [{ instancePath: instancePath + "/total_links", schemaPath: "#/definitions/LinkHealthResponse/properties/total_links/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -11189,7 +11225,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
for (let i3 = 0; i3 < len3; i3++) {
const _errs28 = errors;
if (typeof data11[i3] !== "string") {
- validate90.errors = [{ instancePath: instancePath + "/warnings/" + i3, schemaPath: "#/definitions/LinkHealthResponse/properties/warnings/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate91.errors = [{ instancePath: instancePath + "/warnings/" + i3, schemaPath: "#/definitions/LinkHealthResponse/properties/warnings/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid6 = _errs28 === errors;
@@ -11198,7 +11234,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate90.errors = [{ instancePath: instancePath + "/warnings", schemaPath: "#/definitions/LinkHealthResponse/properties/warnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate91.errors = [{ instancePath: instancePath + "/warnings", schemaPath: "#/definitions/LinkHealthResponse/properties/warnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -11208,7 +11244,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
}
if (valid2) {
if (!Array.isArray(data.broken_links) || data.healthy_links + data.broken_links.length !== data.total_links || data.status === "healthy" !== (data.broken_links.length === 0)) {
- validate90.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/pumasLinkHealth", keyword: "pumasLinkHealth", params: {}, message: 'must pass "pumasLinkHealth" keyword validation' }];
+ validate91.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/pumasLinkHealth", keyword: "pumasLinkHealth", params: {}, message: 'must pass "pumasLinkHealth" keyword validation' }];
return false;
}
}
@@ -11223,36 +11259,36 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate90.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate91.errors = [{ instancePath, schemaPath: "#/definitions/LinkHealthResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
if (!Array.isArray(data.broken_links) || data.healthy_links + data.broken_links.length !== data.total_links || data.status === "healthy" !== (data.broken_links.length === 0)) {
- validate90.errors = [{ instancePath, schemaPath: "#/pumasLinkHealth", keyword: "pumasLinkHealth", params: {}, message: 'must pass "pumasLinkHealth" keyword validation' }];
+ validate91.errors = [{ instancePath, schemaPath: "#/pumasLinkHealth", keyword: "pumasLinkHealth", params: {}, message: 'must pass "pumasLinkHealth" keyword validation' }];
return false;
}
}
}
- validate90.errors = vErrors;
+ validate91.errors = vErrors;
return errors === 0;
}
-var validateModelIndexRefreshOutcome = validate91;
-function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateModelIndexRefreshOutcome = validate92;
+function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.indexed_count === void 0 && (missing0 = "indexed_count")) {
- validate91.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate92.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "indexed_count" || key0 === "success")) {
- validate91.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate92.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -11262,17 +11298,17 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.indexed_count;
const _errs2 = errors;
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
- validate91.errors = [{ instancePath: instancePath + "/indexed_count", schemaPath: "#/properties/indexed_count/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate92.errors = [{ instancePath: instancePath + "/indexed_count", schemaPath: "#/properties/indexed_count/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs2) {
if (typeof data0 == "number" && isFinite(data0)) {
if (data0 > 4294967295 || isNaN(data0)) {
- validate91.errors = [{ instancePath: instancePath + "/indexed_count", schemaPath: "#/properties/indexed_count/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
+ validate92.errors = [{ instancePath: instancePath + "/indexed_count", schemaPath: "#/properties/indexed_count/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
return false;
} else {
if (data0 < 0 || isNaN(data0)) {
- validate91.errors = [{ instancePath: instancePath + "/indexed_count", schemaPath: "#/properties/indexed_count/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate92.errors = [{ instancePath: instancePath + "/indexed_count", schemaPath: "#/properties/indexed_count/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -11287,11 +11323,11 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.success;
const _errs4 = errors;
if (typeof data1 !== "boolean") {
- validate91.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate92.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data1) {
- validate91.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate92.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -11302,20 +11338,20 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate91.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate92.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate91.errors = vErrors;
+ validate92.errors = vErrors;
return errors === 0;
}
-var validateModelsOutcome = validate92;
-var schema100 = { "additionalProperties": false, "properties": { "artifact": { "$ref": "#/definitions/CatalogArtifactState" }, "dependencyCount": { "maximum": 512, "minimum": 0, "type": "integer" }, "displayDate": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "displayName": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "format": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "id": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "integrity": { "$ref": "#/definitions/CatalogIntegrityState" }, "modelDir": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "modelType": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "quantization": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "relatedAvailable": { "type": "boolean" }, "sizeBytes": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "pumasCatalogRow": true, "required": ["id", "modelDir", "displayName", "modelType", "dependencyCount", "relatedAvailable", "artifact", "integrity"], "type": "object" };
-var schema102 = { "enum": ["part_file_present", "expected_files_missing"], "type": "string" };
+var validateModelsOutcome = validate93;
+var schema101 = { "additionalProperties": false, "properties": { "artifact": { "$ref": "#/definitions/CatalogArtifactState" }, "dependencyCount": { "maximum": 512, "minimum": 0, "type": "integer" }, "displayDate": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "displayName": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "format": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "id": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "integrity": { "$ref": "#/definitions/CatalogIntegrityState" }, "modelDir": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "modelType": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "quantization": { "minLength": 1, "pumasCanonicalText": true, "pumasUtf8Max": 4096, "type": "string" }, "relatedAvailable": { "type": "boolean" }, "sizeBytes": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "pumasCatalogRow": true, "required": ["id", "modelDir", "displayName", "modelType", "dependencyCount", "relatedAvailable", "artifact", "integrity"], "type": "object" };
+var schema103 = { "enum": ["part_file_present", "expected_files_missing"], "type": "string" };
var pattern17 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
var pattern18 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
var pattern19 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
-function validate94(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -11500,7 +11536,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
errors++;
}
if (!(data3 === "part_file_present" || data3 === "expected_files_missing")) {
- const err14 = { instancePath: instancePath + "/reasons/" + i0, schemaPath: "#/definitions/CatalogPartialReason/enum", keyword: "enum", params: { allowedValues: schema102.enum }, message: "must be equal to one of the allowed values" };
+ const err14 = { instancePath: instancePath + "/reasons/" + i0, schemaPath: "#/definitions/CatalogPartialReason/enum", keyword: "enum", params: { allowedValues: schema103.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err14];
} else {
@@ -11933,7 +11969,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err43);
}
errors++;
- validate94.errors = vErrors;
+ validate95.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -11945,7 +11981,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
}
}
}
- validate94.errors = vErrors;
+ validate95.errors = vErrors;
return errors === 0;
}
var pattern20 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
@@ -11955,20 +11991,20 @@ var pattern23 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
var pattern24 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
var pattern25 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
var pattern26 = new RegExp("^\\p{White_Space}|\\p{White_Space}$", "u");
-function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate94(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.id === void 0 && (missing0 = "id") || data.modelDir === void 0 && (missing0 = "modelDir") || data.displayName === void 0 && (missing0 = "displayName") || data.modelType === void 0 && (missing0 = "modelType") || data.dependencyCount === void 0 && (missing0 = "dependencyCount") || data.relatedAvailable === void 0 && (missing0 = "relatedAvailable") || data.artifact === void 0 && (missing0 = "artifact") || data.integrity === void 0 && (missing0 = "integrity")) {
- validate93.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate94.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
- if (!func2.call(schema100.properties, key0)) {
- validate93.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ if (!func2.call(schema101.properties, key0)) {
+ validate94.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -11976,8 +12012,8 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (_errs1 === errors) {
if (data.artifact !== void 0) {
const _errs2 = errors;
- if (!validate94(data.artifact, { instancePath: instancePath + "/artifact", parentData: data, parentDataProperty: "artifact", rootData })) {
- vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);
+ if (!validate95(data.artifact, { instancePath: instancePath + "/artifact", parentData: data, parentDataProperty: "artifact", rootData })) {
+ vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
errors = vErrors.length;
}
var valid0 = _errs2 === errors;
@@ -11989,17 +12025,17 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.dependencyCount;
const _errs3 = errors;
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
- validate93.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate94.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs3) {
if (typeof data1 == "number" && isFinite(data1)) {
if (data1 > 512 || isNaN(data1)) {
- validate93.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 512 }, message: "must be <= 512" }];
+ validate94.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 512 }, message: "must be <= 512" }];
return false;
} else {
if (data1 < 0 || isNaN(data1)) {
- validate93.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate94.errors = [{ instancePath: instancePath + "/dependencyCount", schemaPath: "#/properties/dependencyCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -12016,21 +12052,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs5) {
if (typeof data2 === "string") {
if (func5(data2) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data2.length === 0 || pattern20.test(data2)) {
- validate93.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data2).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/displayDate", schemaPath: "#/properties/displayDate/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12045,21 +12081,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs7) {
if (typeof data3 === "string") {
if (func5(data3) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data3.length === 0 || pattern21.test(data3)) {
- validate93.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data3).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/displayName", schemaPath: "#/properties/displayName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12074,21 +12110,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs9) {
if (typeof data4 === "string") {
if (func5(data4) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data4.length === 0 || pattern22.test(data4)) {
- validate93.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data4).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/format", schemaPath: "#/properties/format/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12103,21 +12139,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs11) {
if (typeof data5 === "string") {
if (func5(data5) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data5.length === 0 || pattern23.test(data5)) {
- validate93.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data5).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12359,7 +12395,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err15);
}
errors++;
- validate93.errors = vErrors;
+ validate94.errors = vErrors;
return false;
} else {
errors = _errs15;
@@ -12382,21 +12418,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs32) {
if (typeof data12 === "string") {
if (func5(data12) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data12.length === 0 || pattern24.test(data12)) {
- validate93.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data12).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/modelDir", schemaPath: "#/properties/modelDir/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12411,21 +12447,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs34) {
if (typeof data13 === "string") {
if (func5(data13) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data13.length === 0 || pattern25.test(data13)) {
- validate93.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data13).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/modelType", schemaPath: "#/properties/modelType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12440,21 +12476,21 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (errors === _errs36) {
if (typeof data14 === "string") {
if (func5(data14) < 1) {
- validate93.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
+ validate94.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
return false;
} else {
if (data14.length === 0 || pattern26.test(data14)) {
- validate93.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/pumasCanonicalText", keyword: "pumasCanonicalText", params: {}, message: 'must pass "pumasCanonicalText" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data14).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate93.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate94.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
}
} else {
- validate93.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate94.errors = [{ instancePath: instancePath + "/quantization", schemaPath: "#/properties/quantization/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -12466,7 +12502,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
if (data.relatedAvailable !== void 0) {
const _errs38 = errors;
if (typeof data.relatedAvailable !== "boolean") {
- validate93.errors = [{ instancePath: instancePath + "/relatedAvailable", schemaPath: "#/properties/relatedAvailable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate94.errors = [{ instancePath: instancePath + "/relatedAvailable", schemaPath: "#/properties/relatedAvailable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs38 === errors;
@@ -12478,17 +12514,17 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
let data16 = data.sizeBytes;
const _errs40 = errors;
if (!(typeof data16 == "number" && (!(data16 % 1) && !isNaN(data16)) && isFinite(data16))) {
- validate93.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate94.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs40) {
if (typeof data16 == "number" && isFinite(data16)) {
if (data16 > 9007199254740991 || isNaN(data16)) {
- validate93.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate94.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data16 < 0 || isNaN(data16)) {
- validate93.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate94.errors = [{ instancePath: instancePath + "/sizeBytes", schemaPath: "#/properties/sizeBytes/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -12500,7 +12536,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
}
if (valid0) {
if (data.integrity?.state === "duplicate" && (!Array.isArray(data.integrity.otherModelIds) || data.integrity.count !== data.integrity.otherModelIds.length + 1 || data.integrity.count < 2 || data.integrity.otherModelIds.includes(data.id) || new Set(data.integrity.otherModelIds).size !== data.integrity.otherModelIds.length)) {
- validate93.errors = [{ instancePath, schemaPath: "#/pumasCatalogRow", keyword: "pumasCatalogRow", params: {}, message: 'must pass "pumasCatalogRow" keyword validation' }];
+ validate94.errors = [{ instancePath, schemaPath: "#/pumasCatalogRow", keyword: "pumasCatalogRow", params: {}, message: 'must pass "pumasCatalogRow" keyword validation' }];
return false;
}
}
@@ -12518,27 +12554,27 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate93.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate94.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate93.errors = vErrors;
+ validate94.errors = vErrors;
return errors === 0;
}
-function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.models === void 0 && (missing0 = "models")) {
- validate92.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate93.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "models" || key0 === "success")) {
- validate92.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate93.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -12552,8 +12588,8 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
const _errs4 = errors;
for (const key1 in data0) {
const _errs5 = errors;
- if (!validate93(data0[key1], { instancePath: instancePath + "/models/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key1, rootData })) {
- vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
+ if (!validate94(data0[key1], { instancePath: instancePath + "/models/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data0, parentDataProperty: key1, rootData })) {
+ vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);
errors = vErrors.length;
}
var valid1 = _errs5 === errors;
@@ -12563,12 +12599,12 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
}
if (_errs4 === errors) {
if (Object.entries(data0).some(([key, value]) => value === null || typeof value !== "object" || key !== value.id)) {
- validate92.errors = [{ instancePath: instancePath + "/models", schemaPath: "#/properties/models/pumasCatalogMap", keyword: "pumasCatalogMap", params: {}, message: 'must pass "pumasCatalogMap" keyword validation' }];
+ validate93.errors = [{ instancePath: instancePath + "/models", schemaPath: "#/properties/models/pumasCatalogMap", keyword: "pumasCatalogMap", params: {}, message: 'must pass "pumasCatalogMap" keyword validation' }];
return false;
}
}
} else {
- validate92.errors = [{ instancePath: instancePath + "/models", schemaPath: "#/properties/models/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate93.errors = [{ instancePath: instancePath + "/models", schemaPath: "#/properties/models/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -12581,11 +12617,11 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
let data2 = data.success;
const _errs6 = errors;
if (typeof data2 !== "boolean") {
- validate92.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate93.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data2) {
- validate92.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate93.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs6 === errors;
@@ -12596,32 +12632,32 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate92.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate93.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate92.errors = vErrors;
+ validate93.errors = vErrors;
return errors === 0;
}
-var validatePartialDownloadOutcome = validate97;
-var schema105 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "DownloadStatus": { "description": "Model download status.", "enum": ["queued", "downloading", "pausing", "paused", "cancelling", "completed", "cancelled", "error"], "type": "string" }, "PartialDownloadActionName": { "enum": ["resume", "recover", "attach", "none"], "type": "string" }, "PartialDownloadReason": { "enum": ["hf_client_unavailable", "download_root_busy", "model_not_found", "model_not_partial", "recovery_unavailable", "recovery_context_stale", "resume_rejected", "already_completed", "already_cancelled", "invalid_repo_id", "repo_not_found", "rate_limited", "permission_denied", "network_error", "recover_failed"], "type": "string" } }, "properties": { "action": { "$ref": "#/definitions/PartialDownloadActionName" }, "download_id": { "type": ["string", "null"] }, "error": { "type": ["string", "null"] }, "reason_code": { "anyOf": [{ "$ref": "#/definitions/PartialDownloadReason" }, { "type": "null" }] }, "status": { "anyOf": [{ "$ref": "#/definitions/DownloadStatus" }, { "type": "null" }] }, "success": { "type": "boolean" } }, "pumasPartialOutcome": true, "required": ["success", "action", "download_id", "status", "reason_code", "error"], "title": "PartialDownloadOutcome", "type": "object" };
-var schema106 = { "enum": ["resume", "recover", "attach", "none"], "type": "string" };
-var schema107 = { "enum": ["hf_client_unavailable", "download_root_busy", "model_not_found", "model_not_partial", "recovery_unavailable", "recovery_context_stale", "resume_rejected", "already_completed", "already_cancelled", "invalid_repo_id", "repo_not_found", "rate_limited", "permission_denied", "network_error", "recover_failed"], "type": "string" };
-var schema108 = { "description": "Model download status.", "enum": ["queued", "downloading", "pausing", "paused", "cancelling", "completed", "cancelled", "error"], "type": "string" };
-function validate97(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validatePartialDownloadOutcome = validate98;
+var schema106 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "DownloadStatus": { "description": "Model download status.", "enum": ["queued", "downloading", "pausing", "paused", "cancelling", "completed", "cancelled", "error"], "type": "string" }, "PartialDownloadActionName": { "enum": ["resume", "recover", "attach", "none"], "type": "string" }, "PartialDownloadReason": { "enum": ["hf_client_unavailable", "download_root_busy", "model_not_found", "model_not_partial", "recovery_unavailable", "recovery_context_stale", "resume_rejected", "already_completed", "already_cancelled", "invalid_repo_id", "repo_not_found", "rate_limited", "permission_denied", "network_error", "recover_failed"], "type": "string" } }, "properties": { "action": { "$ref": "#/definitions/PartialDownloadActionName" }, "download_id": { "type": ["string", "null"] }, "error": { "type": ["string", "null"] }, "reason_code": { "anyOf": [{ "$ref": "#/definitions/PartialDownloadReason" }, { "type": "null" }] }, "status": { "anyOf": [{ "$ref": "#/definitions/DownloadStatus" }, { "type": "null" }] }, "success": { "type": "boolean" } }, "pumasPartialOutcome": true, "required": ["success", "action", "download_id", "status", "reason_code", "error"], "title": "PartialDownloadOutcome", "type": "object" };
+var schema107 = { "enum": ["resume", "recover", "attach", "none"], "type": "string" };
+var schema108 = { "enum": ["hf_client_unavailable", "download_root_busy", "model_not_found", "model_not_partial", "recovery_unavailable", "recovery_context_stale", "resume_rejected", "already_completed", "already_cancelled", "invalid_repo_id", "repo_not_found", "rate_limited", "permission_denied", "network_error", "recover_failed"], "type": "string" };
+var schema109 = { "description": "Model download status.", "enum": ["queued", "downloading", "pausing", "paused", "cancelling", "completed", "cancelled", "error"], "type": "string" };
+function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.action === void 0 && (missing0 = "action") || data.download_id === void 0 && (missing0 = "download_id") || data.status === void 0 && (missing0 = "status") || data.reason_code === void 0 && (missing0 = "reason_code") || data.error === void 0 && (missing0 = "error")) {
- validate97.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate98.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "action" || key0 === "download_id" || key0 === "error" || key0 === "reason_code" || key0 === "status" || key0 === "success")) {
- validate97.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate98.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -12631,11 +12667,11 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.action;
const _errs2 = errors;
if (typeof data0 !== "string") {
- validate97.errors = [{ instancePath: instancePath + "/action", schemaPath: "#/definitions/PartialDownloadActionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate98.errors = [{ instancePath: instancePath + "/action", schemaPath: "#/definitions/PartialDownloadActionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data0 === "resume" || data0 === "recover" || data0 === "attach" || data0 === "none")) {
- validate97.errors = [{ instancePath: instancePath + "/action", schemaPath: "#/definitions/PartialDownloadActionName/enum", keyword: "enum", params: { allowedValues: schema106.enum }, message: "must be equal to one of the allowed values" }];
+ validate98.errors = [{ instancePath: instancePath + "/action", schemaPath: "#/definitions/PartialDownloadActionName/enum", keyword: "enum", params: { allowedValues: schema107.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -12647,7 +12683,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.download_id;
const _errs5 = errors;
if (typeof data1 !== "string" && data1 !== null) {
- validate97.errors = [{ instancePath: instancePath + "/download_id", schemaPath: "#/properties/download_id/type", keyword: "type", params: { type: schema105.properties.download_id.type }, message: "must be string,null" }];
+ validate98.errors = [{ instancePath: instancePath + "/download_id", schemaPath: "#/properties/download_id/type", keyword: "type", params: { type: schema106.properties.download_id.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs5 === errors;
@@ -12659,7 +12695,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
let data2 = data.error;
const _errs7 = errors;
if (typeof data2 !== "string" && data2 !== null) {
- validate97.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: schema105.properties.error.type }, message: "must be string,null" }];
+ validate98.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: schema106.properties.error.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs7 === errors;
@@ -12683,7 +12719,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
errors++;
}
if (!(data3 === "hf_client_unavailable" || data3 === "download_root_busy" || data3 === "model_not_found" || data3 === "model_not_partial" || data3 === "recovery_unavailable" || data3 === "recovery_context_stale" || data3 === "resume_rejected" || data3 === "already_completed" || data3 === "already_cancelled" || data3 === "invalid_repo_id" || data3 === "repo_not_found" || data3 === "rate_limited" || data3 === "permission_denied" || data3 === "network_error" || data3 === "recover_failed")) {
- const err1 = { instancePath: instancePath + "/reason_code", schemaPath: "#/definitions/PartialDownloadReason/enum", keyword: "enum", params: { allowedValues: schema107.enum }, message: "must be equal to one of the allowed values" };
+ const err1 = { instancePath: instancePath + "/reason_code", schemaPath: "#/definitions/PartialDownloadReason/enum", keyword: "enum", params: { allowedValues: schema108.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err1];
} else {
@@ -12715,7 +12751,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err3);
}
errors++;
- validate97.errors = vErrors;
+ validate98.errors = vErrors;
return false;
} else {
errors = _errs10;
@@ -12748,7 +12784,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
errors++;
}
if (!(data4 === "queued" || data4 === "downloading" || data4 === "pausing" || data4 === "paused" || data4 === "cancelling" || data4 === "completed" || data4 === "cancelled" || data4 === "error")) {
- const err5 = { instancePath: instancePath + "/status", schemaPath: "#/definitions/DownloadStatus/enum", keyword: "enum", params: { allowedValues: schema108.enum }, message: "must be equal to one of the allowed values" };
+ const err5 = { instancePath: instancePath + "/status", schemaPath: "#/definitions/DownloadStatus/enum", keyword: "enum", params: { allowedValues: schema109.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err5];
} else {
@@ -12780,7 +12816,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
vErrors.push(err7);
}
errors++;
- validate97.errors = vErrors;
+ validate98.errors = vErrors;
return false;
} else {
errors = _errs17;
@@ -12800,7 +12836,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
if (data.success !== void 0) {
const _errs23 = errors;
if (typeof data.success !== "boolean") {
- validate97.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate98.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs23 === errors;
@@ -12809,7 +12845,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
}
if (valid0) {
if (!((data.action === "resume" || data.action === "recover") && data.success === true && typeof data.download_id === "string" && data.download_id.length > 0 && data.status === "queued" && data.reason_code === null && data.error === null || data.action === "attach" && data.success === true && typeof data.download_id === "string" && data.download_id.length > 0 && ["queued", "downloading", "pausing", "cancelling"].includes(data.status) && data.reason_code === null && data.error === null || data.action === "none" && data.success === false && typeof data.error === "string" && (data.download_id === null && data.status === null && !["already_completed", "already_cancelled", "resume_rejected"].includes(data.reason_code) && data.reason_code !== null || typeof data.download_id === "string" && data.download_id.length > 0 && (data.status === "completed" && data.reason_code === "already_completed" || data.status === "cancelled" && data.reason_code === "already_cancelled" || ["paused", "error"].includes(data.status) && data.reason_code === "resume_rejected")))) {
- validate97.errors = [{ instancePath, schemaPath: "#/pumasPartialOutcome", keyword: "pumasPartialOutcome", params: {}, message: 'must pass "pumasPartialOutcome" keyword validation' }];
+ validate98.errors = [{ instancePath, schemaPath: "#/pumasPartialOutcome", keyword: "pumasPartialOutcome", params: {}, message: 'must pass "pumasPartialOutcome" keyword validation' }];
return false;
}
}
@@ -12821,28 +12857,28 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate97.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate98.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate97.errors = vErrors;
+ validate98.errors = vErrors;
return errors === 0;
}
-var validatePreviewTorchRuntimeParams = validate98;
-function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validatePreviewTorchRuntimeParams = validate99;
+function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.tag === void 0 && (missing0 = "tag") || data.build === void 0 && (missing0 = "build") || data.python === void 0 && (missing0 = "python")) {
- validate98.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate99.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "adapter" || key0 === "build" || key0 === "python" || key0 === "tag")) {
- validate98.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate99.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -12851,7 +12887,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
if (data.adapter !== void 0) {
const _errs2 = errors;
if (typeof data.adapter !== "string") {
- validate98.errors = [{ instancePath: instancePath + "/adapter", schemaPath: "#/properties/adapter/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate99.errors = [{ instancePath: instancePath + "/adapter", schemaPath: "#/properties/adapter/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -12862,7 +12898,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
if (data.build !== void 0) {
const _errs4 = errors;
if (typeof data.build !== "string") {
- validate98.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate99.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -12873,7 +12909,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
if (data.python !== void 0) {
const _errs6 = errors;
if (typeof data.python !== "string") {
- validate98.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate99.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs6 === errors;
@@ -12884,7 +12920,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
if (data.tag !== void 0) {
const _errs8 = errors;
if (typeof data.tag !== "string") {
- validate98.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate99.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -12897,29 +12933,29 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate98.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate99.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate98.errors = vErrors;
+ validate99.errors = vErrors;
return errors === 0;
}
-var validatePublicError = validate99;
-var schema111 = { "description": "Stable public failure categories shared by RPC transports.", "enum": ["invalid_request", "not_found", "conflict", "cancelled", "unavailable", "operation_failed", "internal"], "type": "string" };
-function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validatePublicError = validate100;
+var schema112 = { "description": "Stable public failure categories shared by RPC transports.", "enum": ["invalid_request", "not_found", "conflict", "cancelled", "unavailable", "operation_failed", "internal"], "type": "string" };
+function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.code === void 0 && (missing0 = "code") || data.class === void 0 && (missing0 = "class") || data.message === void 0 && (missing0 = "message")) {
- validate99.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate100.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "class" || key0 === "code" || key0 === "message")) {
- validate99.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate100.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -12929,11 +12965,11 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
let data0 = data.class;
const _errs2 = errors;
if (typeof data0 !== "string") {
- validate99.errors = [{ instancePath: instancePath + "/class", schemaPath: "#/definitions/PublicErrorClass/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate100.errors = [{ instancePath: instancePath + "/class", schemaPath: "#/definitions/PublicErrorClass/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data0 === "invalid_request" || data0 === "not_found" || data0 === "conflict" || data0 === "cancelled" || data0 === "unavailable" || data0 === "operation_failed" || data0 === "internal")) {
- validate99.errors = [{ instancePath: instancePath + "/class", schemaPath: "#/definitions/PublicErrorClass/enum", keyword: "enum", params: { allowedValues: schema111.enum }, message: "must be equal to one of the allowed values" }];
+ validate100.errors = [{ instancePath: instancePath + "/class", schemaPath: "#/definitions/PublicErrorClass/enum", keyword: "enum", params: { allowedValues: schema112.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -12945,17 +12981,17 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
let data1 = data.code;
const _errs5 = errors;
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
- validate99.errors = [{ instancePath: instancePath + "/code", schemaPath: "#/properties/code/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate100.errors = [{ instancePath: instancePath + "/code", schemaPath: "#/properties/code/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs5) {
if (typeof data1 == "number" && isFinite(data1)) {
if (data1 > 2147483647 || isNaN(data1)) {
- validate99.errors = [{ instancePath: instancePath + "/code", schemaPath: "#/properties/code/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2147483647 }, message: "must be <= 2147483647" }];
+ validate100.errors = [{ instancePath: instancePath + "/code", schemaPath: "#/properties/code/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2147483647 }, message: "must be <= 2147483647" }];
return false;
} else {
if (data1 < -2147483648 || isNaN(data1)) {
- validate99.errors = [{ instancePath: instancePath + "/code", schemaPath: "#/properties/code/minimum", keyword: "minimum", params: { comparison: ">=", limit: -2147483648 }, message: "must be >= -2147483648" }];
+ validate100.errors = [{ instancePath: instancePath + "/code", schemaPath: "#/properties/code/minimum", keyword: "minimum", params: { comparison: ">=", limit: -2147483648 }, message: "must be >= -2147483648" }];
return false;
}
}
@@ -12969,7 +13005,7 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
if (data.message !== void 0) {
const _errs7 = errors;
if (typeof data.message !== "string") {
- validate99.errors = [{ instancePath: instancePath + "/message", schemaPath: "#/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate100.errors = [{ instancePath: instancePath + "/message", schemaPath: "#/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs7 === errors;
@@ -12981,28 +13017,28 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
}
}
} else {
- validate99.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate100.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate99.errors = vErrors;
+ validate100.errors = vErrors;
return errors === 0;
}
-var validateRecoverDownloadParams = validate100;
-function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRecoverDownloadParams = validate101;
+function validate101(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.modelId === void 0 && (missing0 = "modelId") || data.recoveryToken === void 0 && (missing0 = "recoveryToken")) {
- validate100.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate101.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "modelId" || key0 === "recoveryToken")) {
- validate100.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate101.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13017,16 +13053,16 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
const stem = component.split(".")[0].replace(/[a-z]/g, (letter) => letter.toUpperCase());
return component.length === 0 || component === "." || component === ".." || /[. ]$/.test(component) || encodeURIComponent(component).replace(/%[0-9A-F]{2}/g, "x").length > 255 || ["CON", "PRN", "AUX", "NUL", "CONIN$", "CONOUT$"].includes(stem) || /^(COM|LPT)[1-9]$/.test(stem);
})) {
- validate100.errors = [{ instancePath: instancePath + "/modelId", schemaPath: "#/properties/modelId/pumasPortablePath", keyword: "pumasPortablePath", params: {}, message: 'must pass "pumasPortablePath" keyword validation' }];
+ validate101.errors = [{ instancePath: instancePath + "/modelId", schemaPath: "#/properties/modelId/pumasPortablePath", keyword: "pumasPortablePath", params: {}, message: 'must pass "pumasPortablePath" keyword validation' }];
return false;
} else {
if (encodeURIComponent(data0).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate100.errors = [{ instancePath: instancePath + "/modelId", schemaPath: "#/properties/modelId/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate101.errors = [{ instancePath: instancePath + "/modelId", schemaPath: "#/properties/modelId/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
}
} else {
- validate100.errors = [{ instancePath: instancePath + "/modelId", schemaPath: "#/properties/modelId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate101.errors = [{ instancePath: instancePath + "/modelId", schemaPath: "#/properties/modelId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -13041,11 +13077,11 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
if (errors === _errs4) {
if (typeof data1 === "string") {
if (!pattern0.test(data1)) {
- validate100.errors = [{ instancePath: instancePath + "/recoveryToken", schemaPath: "#/properties/recoveryToken/pattern", keyword: "pattern", params: { pattern: "^v1:[0-9a-f]{64}$" }, message: 'must match pattern "^v1:[0-9a-f]{64}$"' }];
+ validate101.errors = [{ instancePath: instancePath + "/recoveryToken", schemaPath: "#/properties/recoveryToken/pattern", keyword: "pattern", params: { pattern: "^v1:[0-9a-f]{64}$" }, message: 'must match pattern "^v1:[0-9a-f]{64}$"' }];
return false;
}
} else {
- validate100.errors = [{ instancePath: instancePath + "/recoveryToken", schemaPath: "#/properties/recoveryToken/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate101.errors = [{ instancePath: instancePath + "/recoveryToken", schemaPath: "#/properties/recoveryToken/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -13057,28 +13093,28 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate100.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate101.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate100.errors = vErrors;
+ validate101.errors = vErrors;
return errors === 0;
}
-var validateRemoveVersionOutcome = validate101;
-function validate101(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRemoveVersionOutcome = validate102;
+function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success")) {
- validate101.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate102.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success")) {
- validate101.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate102.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13086,24 +13122,24 @@ function validate101(data, { instancePath = "", parentData, parentDataProperty,
if (_errs1 === errors) {
if (data.success !== void 0) {
if (typeof data.success !== "boolean") {
- validate101.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate102.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
}
}
}
} else {
- validate101.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate102.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate101.errors = vErrors;
+ validate102.errors = vErrors;
return errors === 0;
}
-var validateRouterProfileSyncStatus = validate102;
-var schema114 = { "definitions": { "RouterCatalogState": { "enum": ["current", "pending", "uncertain"], "type": "string" }, "RouterObservationState": { "enum": ["connecting", "current", "unavailable"], "type": "string" } }, "oneOf": [{ "additionalProperties": false, "properties": { "catalog_state": { "enum": ["current", "pending"], "type": "string" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "last_error": { "type": ["string", "null"] }, "observation_state": { "$ref": "#/definitions/RouterObservationState" }, "pending_model_ids": { "items": { "type": "string" }, "type": "array" }, "profile_id": { "type": "string" } }, "required": ["profile_id", "generation", "observation_state", "catalog_state", "pending_model_ids", "last_error"], "type": "object" }, { "additionalProperties": false, "properties": { "catalog_state": { "enum": ["uncertain"], "type": "string" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "last_error": { "type": ["string", "null"] }, "observation_state": { "enum": ["unavailable"], "type": "string" }, "pending_model_ids": { "items": { "type": "string" }, "type": "array" }, "profile_id": { "type": "string" } }, "required": ["profile_id", "generation", "observation_state", "catalog_state", "pending_model_ids", "last_error"], "type": "object" }] };
-var schema115 = { "enum": ["connecting", "current", "unavailable"], "type": "string" };
-function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRouterProfileSyncStatus = validate103;
+var schema115 = { "definitions": { "RouterCatalogState": { "enum": ["current", "pending", "uncertain"], "type": "string" }, "RouterObservationState": { "enum": ["connecting", "current", "unavailable"], "type": "string" } }, "oneOf": [{ "additionalProperties": false, "properties": { "catalog_state": { "enum": ["current", "pending"], "type": "string" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "last_error": { "type": ["string", "null"] }, "observation_state": { "$ref": "#/definitions/RouterObservationState" }, "pending_model_ids": { "items": { "type": "string" }, "type": "array" }, "profile_id": { "type": "string" } }, "required": ["profile_id", "generation", "observation_state", "catalog_state", "pending_model_ids", "last_error"], "type": "object" }, { "additionalProperties": false, "properties": { "catalog_state": { "enum": ["uncertain"], "type": "string" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "last_error": { "type": ["string", "null"] }, "observation_state": { "enum": ["unavailable"], "type": "string" }, "pending_model_ids": { "items": { "type": "string" }, "type": "array" }, "profile_id": { "type": "string" } }, "required": ["profile_id", "generation", "observation_state", "catalog_state", "pending_model_ids", "last_error"], "type": "object" }] };
+var schema116 = { "enum": ["connecting", "current", "unavailable"], "type": "string" };
+function validate103(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -13149,7 +13185,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
errors++;
}
if (!(data0 === "current" || data0 === "pending")) {
- const err3 = { instancePath: instancePath + "/catalog_state", schemaPath: "#/oneOf/0/properties/catalog_state/enum", keyword: "enum", params: { allowedValues: schema114.oneOf[0].properties.catalog_state.enum }, message: "must be equal to one of the allowed values" };
+ const err3 = { instancePath: instancePath + "/catalog_state", schemaPath: "#/oneOf/0/properties/catalog_state/enum", keyword: "enum", params: { allowedValues: schema115.oneOf[0].properties.catalog_state.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err3];
} else {
@@ -13206,7 +13242,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
let data2 = data.last_error;
const _errs8 = errors;
if (typeof data2 !== "string" && data2 !== null) {
- const err7 = { instancePath: instancePath + "/last_error", schemaPath: "#/oneOf/0/properties/last_error/type", keyword: "type", params: { type: schema114.oneOf[0].properties.last_error.type }, message: "must be string,null" };
+ const err7 = { instancePath: instancePath + "/last_error", schemaPath: "#/oneOf/0/properties/last_error/type", keyword: "type", params: { type: schema115.oneOf[0].properties.last_error.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err7];
} else {
@@ -13232,7 +13268,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
errors++;
}
if (!(data3 === "connecting" || data3 === "current" || data3 === "unavailable")) {
- const err9 = { instancePath: instancePath + "/observation_state", schemaPath: "#/definitions/RouterObservationState/enum", keyword: "enum", params: { allowedValues: schema115.enum }, message: "must be equal to one of the allowed values" };
+ const err9 = { instancePath: instancePath + "/observation_state", schemaPath: "#/definitions/RouterObservationState/enum", keyword: "enum", params: { allowedValues: schema116.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err9];
} else {
@@ -13360,7 +13396,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
errors++;
}
if (!(data7 === "uncertain")) {
- const err17 = { instancePath: instancePath + "/catalog_state", schemaPath: "#/oneOf/1/properties/catalog_state/enum", keyword: "enum", params: { allowedValues: schema114.oneOf[1].properties.catalog_state.enum }, message: "must be equal to one of the allowed values" };
+ const err17 = { instancePath: instancePath + "/catalog_state", schemaPath: "#/oneOf/1/properties/catalog_state/enum", keyword: "enum", params: { allowedValues: schema115.oneOf[1].properties.catalog_state.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err17];
} else {
@@ -13417,7 +13453,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
let data9 = data.last_error;
const _errs26 = errors;
if (typeof data9 !== "string" && data9 !== null) {
- const err21 = { instancePath: instancePath + "/last_error", schemaPath: "#/oneOf/1/properties/last_error/type", keyword: "type", params: { type: schema114.oneOf[1].properties.last_error.type }, message: "must be string,null" };
+ const err21 = { instancePath: instancePath + "/last_error", schemaPath: "#/oneOf/1/properties/last_error/type", keyword: "type", params: { type: schema115.oneOf[1].properties.last_error.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err21];
} else {
@@ -13443,7 +13479,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
errors++;
}
if (!(data10 === "unavailable")) {
- const err23 = { instancePath: instancePath + "/observation_state", schemaPath: "#/oneOf/1/properties/observation_state/enum", keyword: "enum", params: { allowedValues: schema114.oneOf[1].properties.observation_state.enum }, message: "must be equal to one of the allowed values" };
+ const err23 = { instancePath: instancePath + "/observation_state", schemaPath: "#/oneOf/1/properties/observation_state/enum", keyword: "enum", params: { allowedValues: schema115.oneOf[1].properties.observation_state.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err23];
} else {
@@ -13544,7 +13580,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err28);
}
errors++;
- validate102.errors = vErrors;
+ validate103.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -13556,24 +13592,24 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate102.errors = vErrors;
+ validate103.errors = vErrors;
return errors === 0;
}
-var validateRuntimeLaunchOutcome = validate103;
-function validate103(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRuntimeLaunchOutcome = validate104;
+function validate104(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success")) {
- validate103.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate104.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "error" || key0 === "log_path" || key0 === "ready" || key0 === "success")) {
- validate103.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate104.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13582,7 +13618,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
if (data.error !== void 0) {
const _errs2 = errors;
if (typeof data.error !== "string") {
- validate103.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate104.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -13593,7 +13629,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
if (data.log_path !== void 0) {
const _errs4 = errors;
if (typeof data.log_path !== "string") {
- validate103.errors = [{ instancePath: instancePath + "/log_path", schemaPath: "#/properties/log_path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate104.errors = [{ instancePath: instancePath + "/log_path", schemaPath: "#/properties/log_path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -13604,7 +13640,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
if (data.ready !== void 0) {
const _errs6 = errors;
if (typeof data.ready !== "boolean") {
- validate103.errors = [{ instancePath: instancePath + "/ready", schemaPath: "#/properties/ready/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate104.errors = [{ instancePath: instancePath + "/ready", schemaPath: "#/properties/ready/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs6 === errors;
@@ -13615,7 +13651,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
if (data.success !== void 0) {
const _errs8 = errors;
if (typeof data.success !== "boolean") {
- validate103.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate104.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -13628,58 +13664,58 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate103.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate104.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate103.errors = vErrors;
+ validate104.errors = vErrors;
return errors === 0;
}
-var validateRuntimeLaunchParams = validate104;
-function validate104(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRuntimeLaunchParams = validate105;
+function validate105(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
for (const key0 in data) {
- validate104.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate105.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
} else {
- validate104.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate105.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate104.errors = vErrors;
+ validate105.errors = vErrors;
return errors === 0;
}
-var validateRuntimeRunningOutcome = validate105;
-function validate105(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRuntimeRunningOutcome = validate106;
+function validate106(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (typeof data !== "boolean") {
- validate105.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate106.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
- validate105.errors = vErrors;
+ validate106.errors = vErrors;
return errors === 0;
}
-var validateRuntimeStopOutcome = validate106;
-function validate106(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateRuntimeStopOutcome = validate107;
+function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success")) {
- validate106.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate107.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success")) {
- validate106.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate107.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13687,36 +13723,36 @@ function validate106(data, { instancePath = "", parentData, parentDataProperty,
if (_errs1 === errors) {
if (data.success !== void 0) {
if (typeof data.success !== "boolean") {
- validate106.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate107.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
}
}
}
} else {
- validate106.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate107.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate106.errors = vErrors;
+ validate107.errors = vErrors;
return errors === 0;
}
-var validateSearchCatalogParams = validate107;
-var schema120 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "limit": { "maximum": 512, "minimum": 1, "type": ["integer", "null"] }, "offset": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] }, "query": { "pumasUtf8Max": 4096, "type": "string" } }, "required": ["query"], "title": "SearchCatalogParams", "type": "object" };
-function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateSearchCatalogParams = validate108;
+var schema121 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "limit": { "maximum": 512, "minimum": 1, "type": ["integer", "null"] }, "offset": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] }, "query": { "pumasUtf8Max": 4096, "type": "string" } }, "required": ["query"], "title": "SearchCatalogParams", "type": "object" };
+function validate108(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.query === void 0 && (missing0 = "query")) {
- validate107.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate108.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "limit" || key0 === "offset" || key0 === "query")) {
- validate107.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate108.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13726,17 +13762,17 @@ function validate107(data, { instancePath = "", parentData, parentDataProperty,
let data0 = data.limit;
const _errs2 = errors;
if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0)) && data0 !== null) {
- validate107.errors = [{ instancePath: instancePath + "/limit", schemaPath: "#/properties/limit/type", keyword: "type", params: { type: schema120.properties.limit.type }, message: "must be integer,null" }];
+ validate108.errors = [{ instancePath: instancePath + "/limit", schemaPath: "#/properties/limit/type", keyword: "type", params: { type: schema121.properties.limit.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs2) {
if (typeof data0 == "number" && isFinite(data0)) {
if (data0 > 512 || isNaN(data0)) {
- validate107.errors = [{ instancePath: instancePath + "/limit", schemaPath: "#/properties/limit/maximum", keyword: "maximum", params: { comparison: "<=", limit: 512 }, message: "must be <= 512" }];
+ validate108.errors = [{ instancePath: instancePath + "/limit", schemaPath: "#/properties/limit/maximum", keyword: "maximum", params: { comparison: "<=", limit: 512 }, message: "must be <= 512" }];
return false;
} else {
if (data0 < 1 || isNaN(data0)) {
- validate107.errors = [{ instancePath: instancePath + "/limit", schemaPath: "#/properties/limit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
+ validate108.errors = [{ instancePath: instancePath + "/limit", schemaPath: "#/properties/limit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
return false;
}
}
@@ -13751,17 +13787,17 @@ function validate107(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.offset;
const _errs4 = errors;
if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1)) && data1 !== null) {
- validate107.errors = [{ instancePath: instancePath + "/offset", schemaPath: "#/properties/offset/type", keyword: "type", params: { type: schema120.properties.offset.type }, message: "must be integer,null" }];
+ validate108.errors = [{ instancePath: instancePath + "/offset", schemaPath: "#/properties/offset/type", keyword: "type", params: { type: schema121.properties.offset.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs4) {
if (typeof data1 == "number" && isFinite(data1)) {
if (data1 > 4294967295 || isNaN(data1)) {
- validate107.errors = [{ instancePath: instancePath + "/offset", schemaPath: "#/properties/offset/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
+ validate108.errors = [{ instancePath: instancePath + "/offset", schemaPath: "#/properties/offset/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
return false;
} else {
if (data1 < 0 || isNaN(data1)) {
- validate107.errors = [{ instancePath: instancePath + "/offset", schemaPath: "#/properties/offset/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate108.errors = [{ instancePath: instancePath + "/offset", schemaPath: "#/properties/offset/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -13778,11 +13814,11 @@ function validate107(data, { instancePath = "", parentData, parentDataProperty,
if (errors === _errs6) {
if (typeof data2 === "string") {
if (encodeURIComponent(data2).replace(/%[0-9A-F]{2}/g, "x").length > 4096) {
- validate107.errors = [{ instancePath: instancePath + "/query", schemaPath: "#/properties/query/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
+ validate108.errors = [{ instancePath: instancePath + "/query", schemaPath: "#/properties/query/pumasUtf8Max", keyword: "pumasUtf8Max", params: {}, message: 'must pass "pumasUtf8Max" keyword validation' }];
return false;
}
} else {
- validate107.errors = [{ instancePath: instancePath + "/query", schemaPath: "#/properties/query/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate108.errors = [{ instancePath: instancePath + "/query", schemaPath: "#/properties/query/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
}
@@ -13795,28 +13831,28 @@ function validate107(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate107.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate108.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate107.errors = vErrors;
+ validate108.errors = vErrors;
return errors === 0;
}
-var validateSelectedVersionOutcome = validate108;
-function validate108(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateSelectedVersionOutcome = validate109;
+function validate109(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.version === void 0 && (missing0 = "version")) {
- validate108.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate109.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success" || key0 === "version")) {
- validate108.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate109.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13826,11 +13862,11 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
let data0 = data.success;
const _errs2 = errors;
if (typeof data0 !== "boolean") {
- validate108.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate109.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data0) {
- validate108.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate109.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -13841,7 +13877,7 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
if (data.version !== void 0) {
const _errs4 = errors;
if (typeof data.version !== "string") {
- validate108.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate109.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -13852,28 +13888,28 @@ function validate108(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate108.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate109.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate108.errors = vErrors;
+ validate109.errors = vErrors;
return errors === 0;
}
-var validateSetDefaultVersionOutcome = validate109;
-function validate109(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateSetDefaultVersionOutcome = validate110;
+function validate110(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success")) {
- validate109.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate110.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success")) {
- validate109.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate110.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -13881,23 +13917,23 @@ function validate109(data, { instancePath = "", parentData, parentDataProperty,
if (_errs1 === errors) {
if (data.success !== void 0) {
if (typeof data.success !== "boolean") {
- validate109.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate110.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
}
}
}
} else {
- validate109.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate110.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate109.errors = vErrors;
+ validate110.errors = vErrors;
return errors === 0;
}
-var validateSetDefaultVersionParams = validate110;
-var schema123 = { "anyOf": [{ "additionalProperties": false, "properties": { "app_id": { "type": "string" }, "tag": { "default": null, "type": ["string", "null"] } }, "required": ["app_id"], "type": "object" }, { "additionalProperties": false, "properties": { "appId": { "type": "string" }, "tag": { "default": null, "type": ["string", "null"] } }, "required": ["appId"], "type": "object" }] };
-function validate110(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateSetDefaultVersionParams = validate111;
+var schema124 = { "anyOf": [{ "additionalProperties": false, "properties": { "app_id": { "type": "string" }, "tag": { "default": null, "type": ["string", "null"] } }, "required": ["app_id"], "type": "object" }, { "additionalProperties": false, "properties": { "appId": { "type": "string" }, "tag": { "default": null, "type": ["string", "null"] } }, "required": ["appId"], "type": "object" }] };
+function validate111(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -13949,7 +13985,7 @@ function validate110(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.tag;
const _errs6 = errors;
if (typeof data1 !== "string" && data1 !== null) {
- const err3 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/0/properties/tag/type", keyword: "type", params: { type: schema123.anyOf[0].properties.tag.type }, message: "must be string,null" };
+ const err3 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/0/properties/tag/type", keyword: "type", params: { type: schema124.anyOf[0].properties.tag.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err3];
} else {
@@ -14024,7 +14060,7 @@ function validate110(data, { instancePath = "", parentData, parentDataProperty,
let data3 = data.tag;
const _errs13 = errors;
if (typeof data3 !== "string" && data3 !== null) {
- const err8 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/1/properties/tag/type", keyword: "type", params: { type: schema123.anyOf[1].properties.tag.type }, message: "must be string,null" };
+ const err8 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/1/properties/tag/type", keyword: "type", params: { type: schema124.anyOf[1].properties.tag.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err8];
} else {
@@ -14060,7 +14096,7 @@ function validate110(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err10);
}
errors++;
- validate110.errors = vErrors;
+ validate111.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -14072,25 +14108,25 @@ function validate110(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate110.errors = vErrors;
+ validate111.errors = vErrors;
return errors === 0;
}
-var validateStartBackendSetupParams = validate111;
-var schema124 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "QuantBackend": { "description": "Identifies which quantization backend provides a capability.", "oneOf": [{ "const": "python_conversion", "description": "Existing Python-based safetensors \u2194 GGUF F16 conversion.", "type": "string" }, { "const": "llama_cpp", "description": "llama.cpp native quantization (llama-quantize, llama-imatrix).", "type": "string" }, { "const": "nvfp4", "description": "NVIDIA NVFP4 via TensorRT-LLM / nvidia-modelopt (Phase 2).", "type": "string" }, { "const": "fp8", "description": "CPU conversion to Transformers block-scaled FP8 Safetensors.", "type": "string" }, { "const": "sherry", "description": "Sherry / AngelSlim quantization-aware training (Phase 3).", "type": "string" }] } }, "properties": { "backend": { "$ref": "#/definitions/QuantBackend" }, "expected_previous_operation_id": { "default": null, "maxLength": 36, "minLength": 36, "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": ["string", "null"] } }, "required": ["backend"], "title": "StartBackendSetupParams", "type": "object" };
-function validate111(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateStartBackendSetupParams = validate112;
+var schema125 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "QuantBackend": { "description": "Identifies which quantization backend provides a capability.", "oneOf": [{ "const": "python_conversion", "description": "Existing Python-based safetensors \u2194 GGUF F16 conversion.", "type": "string" }, { "const": "llama_cpp", "description": "llama.cpp native quantization (llama-quantize, llama-imatrix).", "type": "string" }, { "const": "nvfp4", "description": "NVIDIA NVFP4 via TensorRT-LLM / nvidia-modelopt (Phase 2).", "type": "string" }, { "const": "fp8", "description": "CPU conversion to Transformers block-scaled FP8 Safetensors.", "type": "string" }, { "const": "sherry", "description": "Sherry / AngelSlim quantization-aware training (Phase 3).", "type": "string" }] } }, "properties": { "backend": { "$ref": "#/definitions/QuantBackend" }, "expected_previous_operation_id": { "default": null, "maxLength": 36, "minLength": 36, "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": ["string", "null"] } }, "required": ["backend"], "title": "StartBackendSetupParams", "type": "object" };
+function validate112(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.backend === void 0 && (missing0 = "backend")) {
- validate111.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate112.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "backend" || key0 === "expected_previous_operation_id")) {
- validate111.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate112.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -14250,7 +14286,7 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err10);
}
errors++;
- validate111.errors = vErrors;
+ validate112.errors = vErrors;
return false;
} else {
errors = _errs4;
@@ -14271,21 +14307,21 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.expected_previous_operation_id;
const _errs15 = errors;
if (typeof data1 !== "string" && data1 !== null) {
- validate111.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/type", keyword: "type", params: { type: schema124.properties.expected_previous_operation_id.type }, message: "must be string,null" }];
+ validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/type", keyword: "type", params: { type: schema125.properties.expected_previous_operation_id.type }, message: "must be string,null" }];
return false;
}
if (errors === _errs15) {
if (typeof data1 === "string") {
if (func5(data1) > 36) {
- validate111.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/maxLength", keyword: "maxLength", params: { limit: 36 }, message: "must NOT have more than 36 characters" }];
+ validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/maxLength", keyword: "maxLength", params: { limit: 36 }, message: "must NOT have more than 36 characters" }];
return false;
} else {
if (func5(data1) < 36) {
- validate111.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/minLength", keyword: "minLength", params: { limit: 36 }, message: "must NOT have fewer than 36 characters" }];
+ validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/minLength", keyword: "minLength", params: { limit: 36 }, message: "must NOT have fewer than 36 characters" }];
return false;
} else {
if (!pattern12.test(data1)) {
- validate111.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, message: 'must match pattern "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"' }];
+ validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, message: 'must match pattern "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"' }];
return false;
}
}
@@ -14300,16 +14336,16 @@ function validate111(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate111.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate112.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate111.errors = vErrors;
+ validate112.errors = vErrors;
return errors === 0;
}
-var validateStartConversionSetupParams = validate112;
-var schema126 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "expected_previous_operation_id": { "default": null, "maxLength": 36, "minLength": 36, "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": ["string", "null"] } }, "title": "StartConversionSetupParams", "type": "object" };
-function validate112(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateStartConversionSetupParams = validate113;
+var schema127 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "expected_previous_operation_id": { "default": null, "maxLength": 36, "minLength": 36, "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": ["string", "null"] } }, "title": "StartConversionSetupParams", "type": "object" };
+function validate113(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
@@ -14317,7 +14353,7 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "expected_previous_operation_id")) {
- validate112.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate113.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -14327,21 +14363,21 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
let data0 = data.expected_previous_operation_id;
const _errs2 = errors;
if (typeof data0 !== "string" && data0 !== null) {
- validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/type", keyword: "type", params: { type: schema126.properties.expected_previous_operation_id.type }, message: "must be string,null" }];
+ validate113.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/type", keyword: "type", params: { type: schema127.properties.expected_previous_operation_id.type }, message: "must be string,null" }];
return false;
}
if (errors === _errs2) {
if (typeof data0 === "string") {
if (func5(data0) > 36) {
- validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/maxLength", keyword: "maxLength", params: { limit: 36 }, message: "must NOT have more than 36 characters" }];
+ validate113.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/maxLength", keyword: "maxLength", params: { limit: 36 }, message: "must NOT have more than 36 characters" }];
return false;
} else {
if (func5(data0) < 36) {
- validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/minLength", keyword: "minLength", params: { limit: 36 }, message: "must NOT have fewer than 36 characters" }];
+ validate113.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/minLength", keyword: "minLength", params: { limit: 36 }, message: "must NOT have fewer than 36 characters" }];
return false;
} else {
if (!pattern12.test(data0)) {
- validate112.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, message: 'must match pattern "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"' }];
+ validate113.errors = [{ instancePath: instancePath + "/expected_previous_operation_id", schemaPath: "#/properties/expected_previous_operation_id/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, message: 'must match pattern "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"' }];
return false;
}
}
@@ -14351,28 +14387,28 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate112.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate113.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate112.errors = vErrors;
+ validate113.errors = vErrors;
return errors === 0;
}
-var validateStopRuntimeProfileGenerationOutcome = validate113;
-function validate113(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateStopRuntimeProfileGenerationOutcome = validate114;
+function validate114(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.stopped === void 0 && (missing0 = "stopped")) {
- validate113.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate114.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "stopped" || key0 === "success")) {
- validate113.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate114.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -14381,7 +14417,7 @@ function validate113(data, { instancePath = "", parentData, parentDataProperty,
if (data.stopped !== void 0) {
const _errs2 = errors;
if (typeof data.stopped !== "boolean") {
- validate113.errors = [{ instancePath: instancePath + "/stopped", schemaPath: "#/properties/stopped/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate114.errors = [{ instancePath: instancePath + "/stopped", schemaPath: "#/properties/stopped/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -14392,7 +14428,7 @@ function validate113(data, { instancePath = "", parentData, parentDataProperty,
if (data.success !== void 0) {
const _errs4 = errors;
if (typeof data.success !== "boolean") {
- validate113.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate114.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -14403,15 +14439,15 @@ function validate113(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate113.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate114.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate113.errors = vErrors;
+ validate114.errors = vErrors;
return errors === 0;
}
-var validateStopRuntimeProfileGenerationParams = validate114;
-function validate114(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateStopRuntimeProfileGenerationParams = validate115;
+function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -14572,7 +14608,7 @@ function validate114(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err10);
}
errors++;
- validate114.errors = vErrors;
+ validate115.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -14584,24 +14620,24 @@ function validate114(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate114.errors = vErrors;
+ validate115.errors = vErrors;
return errors === 0;
}
-var validateSuccessOutcome = validate115;
-function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateSuccessOutcome = validate116;
+function validate116(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success")) {
- validate115.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate116.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "success")) {
- validate115.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate116.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -14610,39 +14646,39 @@ function validate115(data, { instancePath = "", parentData, parentDataProperty,
if (data.success !== void 0) {
let data0 = data.success;
if (typeof data0 !== "boolean") {
- validate115.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate116.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data0) {
- validate115.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate116.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
}
}
}
} else {
- validate115.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate116.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate115.errors = vErrors;
+ validate116.errors = vErrors;
return errors === 0;
}
-var validateSupportedQuantTypesOutcome = validate116;
-function validate117(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateSupportedQuantTypesOutcome = validate117;
+function validate118(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.name === void 0 && (missing0 = "name") || data.description === void 0 && (missing0 = "description") || data.bitsPerWeight === void 0 && (missing0 = "bitsPerWeight") || data.recommended === void 0 && (missing0 = "recommended") || data.backend === void 0 && (missing0 = "backend") || data.imatrixRecommended === void 0 && (missing0 = "imatrixRecommended")) {
- validate117.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate118.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "backend" || key0 === "bitsPerWeight" || key0 === "description" || key0 === "imatrixRecommended" || key0 === "name" || key0 === "recommended")) {
- validate117.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate118.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -14839,7 +14875,7 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err12);
}
errors++;
- validate117.errors = vErrors;
+ validate118.errors = vErrors;
return false;
} else {
errors = _errs3;
@@ -14862,16 +14898,16 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
if (errors === _errs19) {
if (typeof data1 == "number" && isFinite(data1)) {
if (data1 > 34028234663852886e22 || isNaN(data1)) {
- validate117.errors = [{ instancePath: instancePath + "/bitsPerWeight", schemaPath: "#/properties/bitsPerWeight/maximum", keyword: "maximum", params: { comparison: "<=", limit: 34028234663852886e22 }, message: "must be <= 3.4028234663852886e+38" }];
+ validate118.errors = [{ instancePath: instancePath + "/bitsPerWeight", schemaPath: "#/properties/bitsPerWeight/maximum", keyword: "maximum", params: { comparison: "<=", limit: 34028234663852886e22 }, message: "must be <= 3.4028234663852886e+38" }];
return false;
} else {
if (data1 < 0 || isNaN(data1)) {
- validate117.errors = [{ instancePath: instancePath + "/bitsPerWeight", schemaPath: "#/properties/bitsPerWeight/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate118.errors = [{ instancePath: instancePath + "/bitsPerWeight", schemaPath: "#/properties/bitsPerWeight/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
} else {
- validate117.errors = [{ instancePath: instancePath + "/bitsPerWeight", schemaPath: "#/properties/bitsPerWeight/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
+ validate118.errors = [{ instancePath: instancePath + "/bitsPerWeight", schemaPath: "#/properties/bitsPerWeight/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
return false;
}
}
@@ -14883,7 +14919,7 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
if (data.description !== void 0) {
const _errs21 = errors;
if (typeof data.description !== "string") {
- validate117.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate118.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs21 === errors;
@@ -14894,7 +14930,7 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
if (data.imatrixRecommended !== void 0) {
const _errs23 = errors;
if (typeof data.imatrixRecommended !== "boolean") {
- validate117.errors = [{ instancePath: instancePath + "/imatrixRecommended", schemaPath: "#/properties/imatrixRecommended/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate118.errors = [{ instancePath: instancePath + "/imatrixRecommended", schemaPath: "#/properties/imatrixRecommended/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs23 === errors;
@@ -14905,7 +14941,7 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
if (data.name !== void 0) {
const _errs25 = errors;
if (typeof data.name !== "string") {
- validate117.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate118.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs25 === errors;
@@ -14916,7 +14952,7 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
if (data.recommended !== void 0) {
const _errs27 = errors;
if (typeof data.recommended !== "boolean") {
- validate117.errors = [{ instancePath: instancePath + "/recommended", schemaPath: "#/properties/recommended/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate118.errors = [{ instancePath: instancePath + "/recommended", schemaPath: "#/properties/recommended/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs27 === errors;
@@ -14931,27 +14967,27 @@ function validate117(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate117.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate118.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate117.errors = vErrors;
+ validate118.errors = vErrors;
return errors === 0;
}
-function validate116(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate117(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.quant_types === void 0 && (missing0 = "quant_types")) {
- validate116.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate117.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "quant_types" || key0 === "success")) {
- validate116.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate117.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -14966,8 +15002,8 @@ function validate116(data, { instancePath = "", parentData, parentDataProperty,
const len0 = data0.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs4 = errors;
- if (!validate117(data0[i0], { instancePath: instancePath + "/quant_types/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);
+ if (!validate118(data0[i0], { instancePath: instancePath + "/quant_types/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate118.errors : vErrors.concat(validate118.errors);
errors = vErrors.length;
}
var valid1 = _errs4 === errors;
@@ -14976,7 +15012,7 @@ function validate116(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate116.errors = [{ instancePath: instancePath + "/quant_types", schemaPath: "#/properties/quant_types/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate117.errors = [{ instancePath: instancePath + "/quant_types", schemaPath: "#/properties/quant_types/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -14989,11 +15025,11 @@ function validate116(data, { instancePath = "", parentData, parentDataProperty,
let data2 = data.success;
const _errs5 = errors;
if (typeof data2 !== "boolean") {
- validate116.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate117.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data2) {
- validate116.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate117.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs5 === errors;
@@ -15004,242 +15040,951 @@ function validate116(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate116.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate117.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ validate117.errors = vErrors;
+ return errors === 0;
+}
+var validateSwitchVersionOutcome = validate120;
+function validate120(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (errors === 0) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.success === void 0 && (missing0 = "success")) {
+ validate120.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ return false;
+ } else {
+ const _errs1 = errors;
+ for (const key0 in data) {
+ if (!(key0 === "success")) {
+ validate120.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.success !== void 0) {
+ if (typeof data.success !== "boolean") {
+ validate120.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ return false;
+ }
+ }
+ }
+ }
+ } else {
+ validate120.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ validate120.errors = vErrors;
+ return errors === 0;
+}
+var validateSwitchVersionParams = validate121;
+function validate121(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ const _errs0 = errors;
+ let valid0 = false;
+ const _errs1 = errors;
+ if (errors === _errs1) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.app_id === void 0 && (missing0 = "app_id") || data.tag === void 0 && (missing0 = "tag")) {
+ const err0 = { instancePath, schemaPath: "#/anyOf/0/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" };
+ if (vErrors === null) {
+ vErrors = [err0];
+ } else {
+ vErrors.push(err0);
+ }
+ errors++;
+ } else {
+ const _errs3 = errors;
+ for (const key0 in data) {
+ if (!(key0 === "app_id" || key0 === "tag")) {
+ const err1 = { instancePath, schemaPath: "#/anyOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
+ if (vErrors === null) {
+ vErrors = [err1];
+ } else {
+ vErrors.push(err1);
+ }
+ errors++;
+ break;
+ }
+ }
+ if (_errs3 === errors) {
+ if (data.app_id !== void 0) {
+ const _errs4 = errors;
+ if (typeof data.app_id !== "string") {
+ const err2 = { instancePath: instancePath + "/app_id", schemaPath: "#/anyOf/0/properties/app_id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
+ if (vErrors === null) {
+ vErrors = [err2];
+ } else {
+ vErrors.push(err2);
+ }
+ errors++;
+ }
+ var valid1 = _errs4 === errors;
+ } else {
+ var valid1 = true;
+ }
+ if (valid1) {
+ if (data.tag !== void 0) {
+ const _errs6 = errors;
+ if (typeof data.tag !== "string") {
+ const err3 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/0/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" };
+ if (vErrors === null) {
+ vErrors = [err3];
+ } else {
+ vErrors.push(err3);
+ }
+ errors++;
+ }
+ var valid1 = _errs6 === errors;
+ } else {
+ var valid1 = true;
+ }
+ }
+ }
+ }
+ } else {
+ const err4 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
+ if (vErrors === null) {
+ vErrors = [err4];
+ } else {
+ vErrors.push(err4);
+ }
+ errors++;
+ }
+ }
+ var _valid0 = _errs1 === errors;
+ valid0 = valid0 || _valid0;
+ if (!valid0) {
+ const _errs8 = errors;
+ if (errors === _errs8) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing1;
+ if (data.appId === void 0 && (missing1 = "appId") || data.tag === void 0 && (missing1 = "tag")) {
+ const err5 = { instancePath, schemaPath: "#/anyOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
+ if (vErrors === null) {
+ vErrors = [err5];
+ } else {
+ vErrors.push(err5);
+ }
+ errors++;
+ } else {
+ const _errs10 = errors;
+ for (const key1 in data) {
+ if (!(key1 === "appId" || key1 === "tag")) {
+ const err6 = { instancePath, schemaPath: "#/anyOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
+ if (vErrors === null) {
+ vErrors = [err6];
+ } else {
+ vErrors.push(err6);
+ }
+ errors++;
+ break;
+ }
+ }
+ if (_errs10 === errors) {
+ if (data.appId !== void 0) {
+ const _errs11 = errors;
+ if (typeof data.appId !== "string") {
+ const err7 = { instancePath: instancePath + "/appId", schemaPath: "#/anyOf/1/properties/appId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
+ if (vErrors === null) {
+ vErrors = [err7];
+ } else {
+ vErrors.push(err7);
+ }
+ errors++;
+ }
+ var valid2 = _errs11 === errors;
+ } else {
+ var valid2 = true;
+ }
+ if (valid2) {
+ if (data.tag !== void 0) {
+ const _errs13 = errors;
+ if (typeof data.tag !== "string") {
+ const err8 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/1/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" };
+ if (vErrors === null) {
+ vErrors = [err8];
+ } else {
+ vErrors.push(err8);
+ }
+ errors++;
+ }
+ var valid2 = _errs13 === errors;
+ } else {
+ var valid2 = true;
+ }
+ }
+ }
+ }
+ } else {
+ const err9 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
+ if (vErrors === null) {
+ vErrors = [err9];
+ } else {
+ vErrors.push(err9);
+ }
+ errors++;
+ }
+ }
+ var _valid0 = _errs8 === errors;
+ valid0 = valid0 || _valid0;
+ }
+ if (!valid0) {
+ const err10 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
+ if (vErrors === null) {
+ vErrors = [err10];
+ } else {
+ vErrors.push(err10);
+ }
+ errors++;
+ validate121.errors = vErrors;
+ return false;
+ } else {
+ errors = _errs0;
+ if (vErrors !== null) {
+ if (_errs0) {
+ vErrors.length = _errs0;
+ } else {
+ vErrors = null;
+ }
+ }
+ }
+ validate121.errors = vErrors;
+ return errors === 0;
+}
+var validateTorchDriverAvailability = validate122;
+var schema136 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["available", "unavailable", "not_present", "unknown"], "title": "TorchDriverAvailability", "type": "string" };
+function validate122(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (typeof data !== "string") {
+ validate122.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data === "available" || data === "unavailable" || data === "not_present" || data === "unknown")) {
+ validate122.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema136.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ validate122.errors = vErrors;
+ return errors === 0;
+}
+var validateTorchGpuVendor = validate123;
+var schema137 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["nvidia", "amd", "intel"], "title": "TorchGpuVendor", "type": "string" };
+function validate123(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (typeof data !== "string") {
+ validate123.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data === "nvidia" || data === "amd" || data === "intel")) {
+ validate123.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema137.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ validate123.errors = vErrors;
+ return errors === 0;
+}
+var validateTorchReleaseCombination = validate124;
+var schema138 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "build": { "type": "string" }, "python": { "type": "string" }, "sha256": { "type": ["string", "null"] }, "wheelUrl": { "type": "string" } }, "required": ["build", "python", "wheelUrl"], "title": "TorchReleaseCombination", "type": "object" };
+function validate124(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (errors === 0) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.build === void 0 && (missing0 = "build") || data.python === void 0 && (missing0 = "python") || data.wheelUrl === void 0 && (missing0 = "wheelUrl")) {
+ validate124.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ return false;
+ } else {
+ const _errs1 = errors;
+ for (const key0 in data) {
+ if (!(key0 === "build" || key0 === "python" || key0 === "sha256" || key0 === "wheelUrl")) {
+ validate124.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.build !== void 0) {
+ const _errs2 = errors;
+ if (typeof data.build !== "string") {
+ validate124.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid0 = _errs2 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.python !== void 0) {
+ const _errs4 = errors;
+ if (typeof data.python !== "string") {
+ validate124.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid0 = _errs4 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.sha256 !== void 0) {
+ let data2 = data.sha256;
+ const _errs6 = errors;
+ if (typeof data2 !== "string" && data2 !== null) {
+ validate124.errors = [{ instancePath: instancePath + "/sha256", schemaPath: "#/properties/sha256/type", keyword: "type", params: { type: schema138.properties.sha256.type }, message: "must be string,null" }];
+ return false;
+ }
+ var valid0 = _errs6 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.wheelUrl !== void 0) {
+ const _errs8 = errors;
+ if (typeof data.wheelUrl !== "string") {
+ validate124.errors = [{ instancePath: instancePath + "/wheelUrl", schemaPath: "#/properties/wheelUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid0 = _errs8 === errors;
+ } else {
+ var valid0 = true;
+ }
+ }
+ }
+ }
+ }
+ }
+ } else {
+ validate124.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ validate124.errors = vErrors;
+ return errors === 0;
+}
+var validateTorchReleaseDriverStatus = validate125;
+var schema140 = { "enum": ["available", "unavailable", "not_present", "unknown"], "type": "string" };
+function validate125(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (errors === 0) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.nvidia === void 0 && (missing0 = "nvidia") || data.amd === void 0 && (missing0 = "amd")) {
+ validate125.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ return false;
+ } else {
+ const _errs1 = errors;
+ for (const key0 in data) {
+ if (!(key0 === "amd" || key0 === "nvidia")) {
+ validate125.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.amd !== void 0) {
+ let data0 = data.amd;
+ const _errs2 = errors;
+ if (typeof data0 !== "string") {
+ validate125.errors = [{ instancePath: instancePath + "/amd", schemaPath: "#/definitions/TorchDriverAvailability/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data0 === "available" || data0 === "unavailable" || data0 === "not_present" || data0 === "unknown")) {
+ validate125.errors = [{ instancePath: instancePath + "/amd", schemaPath: "#/definitions/TorchDriverAvailability/enum", keyword: "enum", params: { allowedValues: schema140.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ var valid0 = _errs2 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.nvidia !== void 0) {
+ let data1 = data.nvidia;
+ const _errs5 = errors;
+ if (typeof data1 !== "string") {
+ validate125.errors = [{ instancePath: instancePath + "/nvidia", schemaPath: "#/definitions/TorchDriverAvailability/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data1 === "available" || data1 === "unavailable" || data1 === "not_present" || data1 === "unknown")) {
+ validate125.errors = [{ instancePath: instancePath + "/nvidia", schemaPath: "#/definitions/TorchDriverAvailability/enum", keyword: "enum", params: { allowedValues: schema140.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ var valid0 = _errs5 === errors;
+ } else {
+ var valid0 = true;
+ }
+ }
+ }
+ }
+ } else {
+ validate125.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ validate125.errors = vErrors;
+ return errors === 0;
+}
+var validateTorchReleaseOptionsOutcome = validate126;
+var schema142 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "TorchDriverAvailability": { "enum": ["available", "unavailable", "not_present", "unknown"], "type": "string" }, "TorchGpuVendor": { "enum": ["nvidia", "amd", "intel"], "type": "string" }, "TorchReleaseCombination": { "additionalProperties": false, "properties": { "build": { "type": "string" }, "python": { "type": "string" }, "sha256": { "type": ["string", "null"] }, "wheelUrl": { "type": "string" } }, "required": ["build", "python", "wheelUrl"], "type": "object" }, "TorchReleaseDriverStatus": { "additionalProperties": false, "properties": { "amd": { "$ref": "#/definitions/TorchDriverAvailability" }, "nvidia": { "$ref": "#/definitions/TorchDriverAvailability" } }, "required": ["nvidia", "amd"], "type": "object" }, "TorchReleaseOptionsStatus": { "enum": ["matches", "none", "inconclusive"], "type": "string" }, "TorchReleaseRecommendation": { "additionalProperties": false, "properties": { "build": { "type": "string" }, "python": { "type": "string" } }, "required": ["build", "python"], "type": "object" } }, "properties": { "checkedChannels": { "items": { "type": "string" }, "type": "array" }, "combinations": { "items": { "$ref": "#/definitions/TorchReleaseCombination" }, "type": "array" }, "completeScan": { "type": "boolean" }, "detectedGpuVendors": { "items": { "$ref": "#/definitions/TorchGpuVendor" }, "type": "array" }, "driverStatus": { "$ref": "#/definitions/TorchReleaseDriverStatus" }, "issues": { "items": { "type": "string" }, "type": "array" }, "recommendationNote": { "type": ["string", "null"] }, "recommended": { "anyOf": [{ "$ref": "#/definitions/TorchReleaseRecommendation" }, { "type": "null" }] }, "status": { "$ref": "#/definitions/TorchReleaseOptionsStatus" }, "tag": { "type": "string" } }, "required": ["tag", "status", "completeScan", "checkedChannels", "combinations", "issues", "detectedGpuVendors", "driverStatus", "recommended", "recommendationNote"], "title": "TorchReleaseOptionsOutcome", "type": "object" };
+var schema143 = { "additionalProperties": false, "properties": { "build": { "type": "string" }, "python": { "type": "string" }, "sha256": { "type": ["string", "null"] }, "wheelUrl": { "type": "string" } }, "required": ["build", "python", "wheelUrl"], "type": "object" };
+var schema144 = { "enum": ["nvidia", "amd", "intel"], "type": "string" };
+var schema149 = { "enum": ["matches", "none", "inconclusive"], "type": "string" };
+var schema146 = { "enum": ["available", "unavailable", "not_present", "unknown"], "type": "string" };
+function validate127(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (errors === 0) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.nvidia === void 0 && (missing0 = "nvidia") || data.amd === void 0 && (missing0 = "amd")) {
+ validate127.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ return false;
+ } else {
+ const _errs1 = errors;
+ for (const key0 in data) {
+ if (!(key0 === "amd" || key0 === "nvidia")) {
+ validate127.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.amd !== void 0) {
+ let data0 = data.amd;
+ const _errs2 = errors;
+ if (typeof data0 !== "string") {
+ validate127.errors = [{ instancePath: instancePath + "/amd", schemaPath: "#/definitions/TorchDriverAvailability/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data0 === "available" || data0 === "unavailable" || data0 === "not_present" || data0 === "unknown")) {
+ validate127.errors = [{ instancePath: instancePath + "/amd", schemaPath: "#/definitions/TorchDriverAvailability/enum", keyword: "enum", params: { allowedValues: schema146.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ var valid0 = _errs2 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.nvidia !== void 0) {
+ let data1 = data.nvidia;
+ const _errs5 = errors;
+ if (typeof data1 !== "string") {
+ validate127.errors = [{ instancePath: instancePath + "/nvidia", schemaPath: "#/definitions/TorchDriverAvailability/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data1 === "available" || data1 === "unavailable" || data1 === "not_present" || data1 === "unknown")) {
+ validate127.errors = [{ instancePath: instancePath + "/nvidia", schemaPath: "#/definitions/TorchDriverAvailability/enum", keyword: "enum", params: { allowedValues: schema146.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ var valid0 = _errs5 === errors;
+ } else {
+ var valid0 = true;
+ }
+ }
+ }
+ }
+ } else {
+ validate127.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ validate127.errors = vErrors;
+ return errors === 0;
+}
+function validate126(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (errors === 0) {
+ if (data && typeof data == "object" && !Array.isArray(data)) {
+ let missing0;
+ if (data.tag === void 0 && (missing0 = "tag") || data.status === void 0 && (missing0 = "status") || data.completeScan === void 0 && (missing0 = "completeScan") || data.checkedChannels === void 0 && (missing0 = "checkedChannels") || data.combinations === void 0 && (missing0 = "combinations") || data.issues === void 0 && (missing0 = "issues") || data.detectedGpuVendors === void 0 && (missing0 = "detectedGpuVendors") || data.driverStatus === void 0 && (missing0 = "driverStatus") || data.recommended === void 0 && (missing0 = "recommended") || data.recommendationNote === void 0 && (missing0 = "recommendationNote")) {
+ validate126.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ return false;
+ } else {
+ const _errs1 = errors;
+ for (const key0 in data) {
+ if (!func2.call(schema142.properties, key0)) {
+ validate126.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs1 === errors) {
+ if (data.checkedChannels !== void 0) {
+ let data0 = data.checkedChannels;
+ const _errs2 = errors;
+ if (errors === _errs2) {
+ if (Array.isArray(data0)) {
+ var valid1 = true;
+ const len0 = data0.length;
+ for (let i0 = 0; i0 < len0; i0++) {
+ const _errs4 = errors;
+ if (typeof data0[i0] !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/checkedChannels/" + i0, schemaPath: "#/properties/checkedChannels/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid1 = _errs4 === errors;
+ if (!valid1) {
+ break;
+ }
+ }
+ } else {
+ validate126.errors = [{ instancePath: instancePath + "/checkedChannels", schemaPath: "#/properties/checkedChannels/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ return false;
+ }
+ }
+ var valid0 = _errs2 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.combinations !== void 0) {
+ let data2 = data.combinations;
+ const _errs6 = errors;
+ if (errors === _errs6) {
+ if (Array.isArray(data2)) {
+ var valid2 = true;
+ const len1 = data2.length;
+ for (let i1 = 0; i1 < len1; i1++) {
+ let data3 = data2[i1];
+ const _errs8 = errors;
+ const _errs9 = errors;
+ if (errors === _errs9) {
+ if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
+ let missing1;
+ if (data3.build === void 0 && (missing1 = "build") || data3.python === void 0 && (missing1 = "python") || data3.wheelUrl === void 0 && (missing1 = "wheelUrl")) {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1, schemaPath: "#/definitions/TorchReleaseCombination/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ return false;
+ } else {
+ const _errs11 = errors;
+ for (const key1 in data3) {
+ if (!(key1 === "build" || key1 === "python" || key1 === "sha256" || key1 === "wheelUrl")) {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1, schemaPath: "#/definitions/TorchReleaseCombination/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ return false;
+ break;
+ }
+ }
+ if (_errs11 === errors) {
+ if (data3.build !== void 0) {
+ const _errs12 = errors;
+ if (typeof data3.build !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1 + "/build", schemaPath: "#/definitions/TorchReleaseCombination/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid4 = _errs12 === errors;
+ } else {
+ var valid4 = true;
+ }
+ if (valid4) {
+ if (data3.python !== void 0) {
+ const _errs14 = errors;
+ if (typeof data3.python !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1 + "/python", schemaPath: "#/definitions/TorchReleaseCombination/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid4 = _errs14 === errors;
+ } else {
+ var valid4 = true;
+ }
+ if (valid4) {
+ if (data3.sha256 !== void 0) {
+ let data6 = data3.sha256;
+ const _errs16 = errors;
+ if (typeof data6 !== "string" && data6 !== null) {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1 + "/sha256", schemaPath: "#/definitions/TorchReleaseCombination/properties/sha256/type", keyword: "type", params: { type: schema143.properties.sha256.type }, message: "must be string,null" }];
+ return false;
+ }
+ var valid4 = _errs16 === errors;
+ } else {
+ var valid4 = true;
+ }
+ if (valid4) {
+ if (data3.wheelUrl !== void 0) {
+ const _errs18 = errors;
+ if (typeof data3.wheelUrl !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1 + "/wheelUrl", schemaPath: "#/definitions/TorchReleaseCombination/properties/wheelUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid4 = _errs18 === errors;
+ } else {
+ var valid4 = true;
+ }
+ }
+ }
+ }
+ }
+ }
+ } else {
+ validate126.errors = [{ instancePath: instancePath + "/combinations/" + i1, schemaPath: "#/definitions/TorchReleaseCombination/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
+ }
+ }
+ var valid2 = _errs8 === errors;
+ if (!valid2) {
+ break;
+ }
+ }
+ } else {
+ validate126.errors = [{ instancePath: instancePath + "/combinations", schemaPath: "#/properties/combinations/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ return false;
+ }
+ }
+ var valid0 = _errs6 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.completeScan !== void 0) {
+ const _errs20 = errors;
+ if (typeof data.completeScan !== "boolean") {
+ validate126.errors = [{ instancePath: instancePath + "/completeScan", schemaPath: "#/properties/completeScan/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ return false;
+ }
+ var valid0 = _errs20 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.detectedGpuVendors !== void 0) {
+ let data9 = data.detectedGpuVendors;
+ const _errs22 = errors;
+ if (errors === _errs22) {
+ if (Array.isArray(data9)) {
+ var valid5 = true;
+ const len2 = data9.length;
+ for (let i2 = 0; i2 < len2; i2++) {
+ let data10 = data9[i2];
+ const _errs24 = errors;
+ if (typeof data10 !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/detectedGpuVendors/" + i2, schemaPath: "#/definitions/TorchGpuVendor/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data10 === "nvidia" || data10 === "amd" || data10 === "intel")) {
+ validate126.errors = [{ instancePath: instancePath + "/detectedGpuVendors/" + i2, schemaPath: "#/definitions/TorchGpuVendor/enum", keyword: "enum", params: { allowedValues: schema144.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ var valid5 = _errs24 === errors;
+ if (!valid5) {
+ break;
+ }
+ }
+ } else {
+ validate126.errors = [{ instancePath: instancePath + "/detectedGpuVendors", schemaPath: "#/properties/detectedGpuVendors/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ return false;
+ }
+ }
+ var valid0 = _errs22 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.driverStatus !== void 0) {
+ const _errs27 = errors;
+ if (!validate127(data.driverStatus, { instancePath: instancePath + "/driverStatus", parentData: data, parentDataProperty: "driverStatus", rootData })) {
+ vErrors = vErrors === null ? validate127.errors : vErrors.concat(validate127.errors);
+ errors = vErrors.length;
+ }
+ var valid0 = _errs27 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.issues !== void 0) {
+ let data12 = data.issues;
+ const _errs28 = errors;
+ if (errors === _errs28) {
+ if (Array.isArray(data12)) {
+ var valid7 = true;
+ const len3 = data12.length;
+ for (let i3 = 0; i3 < len3; i3++) {
+ const _errs30 = errors;
+ if (typeof data12[i3] !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/issues/" + i3, schemaPath: "#/properties/issues/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid7 = _errs30 === errors;
+ if (!valid7) {
+ break;
+ }
+ }
+ } else {
+ validate126.errors = [{ instancePath: instancePath + "/issues", schemaPath: "#/properties/issues/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ return false;
+ }
+ }
+ var valid0 = _errs28 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.recommendationNote !== void 0) {
+ let data14 = data.recommendationNote;
+ const _errs32 = errors;
+ if (typeof data14 !== "string" && data14 !== null) {
+ validate126.errors = [{ instancePath: instancePath + "/recommendationNote", schemaPath: "#/properties/recommendationNote/type", keyword: "type", params: { type: schema142.properties.recommendationNote.type }, message: "must be string,null" }];
+ return false;
+ }
+ var valid0 = _errs32 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.recommended !== void 0) {
+ let data15 = data.recommended;
+ const _errs34 = errors;
+ const _errs35 = errors;
+ let valid8 = false;
+ const _errs36 = errors;
+ const _errs37 = errors;
+ if (errors === _errs37) {
+ if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
+ let missing2;
+ if (data15.build === void 0 && (missing2 = "build") || data15.python === void 0 && (missing2 = "python")) {
+ const err0 = { instancePath: instancePath + "/recommended", schemaPath: "#/definitions/TorchReleaseRecommendation/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
+ if (vErrors === null) {
+ vErrors = [err0];
+ } else {
+ vErrors.push(err0);
+ }
+ errors++;
+ } else {
+ const _errs39 = errors;
+ for (const key2 in data15) {
+ if (!(key2 === "build" || key2 === "python")) {
+ const err1 = { instancePath: instancePath + "/recommended", schemaPath: "#/definitions/TorchReleaseRecommendation/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
+ if (vErrors === null) {
+ vErrors = [err1];
+ } else {
+ vErrors.push(err1);
+ }
+ errors++;
+ break;
+ }
+ }
+ if (_errs39 === errors) {
+ if (data15.build !== void 0) {
+ const _errs40 = errors;
+ if (typeof data15.build !== "string") {
+ const err2 = { instancePath: instancePath + "/recommended/build", schemaPath: "#/definitions/TorchReleaseRecommendation/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" };
+ if (vErrors === null) {
+ vErrors = [err2];
+ } else {
+ vErrors.push(err2);
+ }
+ errors++;
+ }
+ var valid10 = _errs40 === errors;
+ } else {
+ var valid10 = true;
+ }
+ if (valid10) {
+ if (data15.python !== void 0) {
+ const _errs42 = errors;
+ if (typeof data15.python !== "string") {
+ const err3 = { instancePath: instancePath + "/recommended/python", schemaPath: "#/definitions/TorchReleaseRecommendation/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" };
+ if (vErrors === null) {
+ vErrors = [err3];
+ } else {
+ vErrors.push(err3);
+ }
+ errors++;
+ }
+ var valid10 = _errs42 === errors;
+ } else {
+ var valid10 = true;
+ }
+ }
+ }
+ }
+ } else {
+ const err4 = { instancePath: instancePath + "/recommended", schemaPath: "#/definitions/TorchReleaseRecommendation/type", keyword: "type", params: { type: "object" }, message: "must be object" };
+ if (vErrors === null) {
+ vErrors = [err4];
+ } else {
+ vErrors.push(err4);
+ }
+ errors++;
+ }
+ }
+ var _valid0 = _errs36 === errors;
+ valid8 = valid8 || _valid0;
+ if (!valid8) {
+ const _errs44 = errors;
+ if (data15 !== null) {
+ const err5 = { instancePath: instancePath + "/recommended", schemaPath: "#/properties/recommended/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
+ if (vErrors === null) {
+ vErrors = [err5];
+ } else {
+ vErrors.push(err5);
+ }
+ errors++;
+ }
+ var _valid0 = _errs44 === errors;
+ valid8 = valid8 || _valid0;
+ }
+ if (!valid8) {
+ const err6 = { instancePath: instancePath + "/recommended", schemaPath: "#/properties/recommended/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
+ if (vErrors === null) {
+ vErrors = [err6];
+ } else {
+ vErrors.push(err6);
+ }
+ errors++;
+ validate126.errors = vErrors;
+ return false;
+ } else {
+ errors = _errs35;
+ if (vErrors !== null) {
+ if (_errs35) {
+ vErrors.length = _errs35;
+ } else {
+ vErrors = null;
+ }
+ }
+ }
+ var valid0 = _errs34 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.status !== void 0) {
+ let data18 = data.status;
+ const _errs46 = errors;
+ if (typeof data18 !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/status", schemaPath: "#/definitions/TorchReleaseOptionsStatus/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data18 === "matches" || data18 === "none" || data18 === "inconclusive")) {
+ validate126.errors = [{ instancePath: instancePath + "/status", schemaPath: "#/definitions/TorchReleaseOptionsStatus/enum", keyword: "enum", params: { allowedValues: schema149.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ var valid0 = _errs46 === errors;
+ } else {
+ var valid0 = true;
+ }
+ if (valid0) {
+ if (data.tag !== void 0) {
+ const _errs49 = errors;
+ if (typeof data.tag !== "string") {
+ validate126.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ var valid0 = _errs49 === errors;
+ } else {
+ var valid0 = true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ } else {
+ validate126.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate116.errors = vErrors;
+ validate126.errors = vErrors;
+ return errors === 0;
+}
+var validateTorchReleaseOptionsStatus = validate129;
+var schema150 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["matches", "none", "inconclusive"], "title": "TorchReleaseOptionsStatus", "type": "string" };
+function validate129(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+ let vErrors = null;
+ let errors = 0;
+ if (typeof data !== "string") {
+ validate129.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
+ }
+ if (!(data === "matches" || data === "none" || data === "inconclusive")) {
+ validate129.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema150.enum }, message: "must be equal to one of the allowed values" }];
+ return false;
+ }
+ validate129.errors = vErrors;
return errors === 0;
}
-var validateSwitchVersionOutcome = validate119;
-function validate119(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTorchReleaseRecommendation = validate130;
+function validate130(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
- if (data.success === void 0 && (missing0 = "success")) {
- validate119.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ if (data.build === void 0 && (missing0 = "build") || data.python === void 0 && (missing0 = "python")) {
+ validate130.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
- if (!(key0 === "success")) {
- validate119.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ if (!(key0 === "build" || key0 === "python")) {
+ validate130.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
}
if (_errs1 === errors) {
- if (data.success !== void 0) {
- if (typeof data.success !== "boolean") {
- validate119.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ if (data.build !== void 0) {
+ const _errs2 = errors;
+ if (typeof data.build !== "string") {
+ validate130.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
- }
- }
- }
- } else {
- validate119.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
- return false;
- }
- }
- validate119.errors = vErrors;
- return errors === 0;
-}
-var validateSwitchVersionParams = validate120;
-function validate120(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
- let vErrors = null;
- let errors = 0;
- const _errs0 = errors;
- let valid0 = false;
- const _errs1 = errors;
- if (errors === _errs1) {
- if (data && typeof data == "object" && !Array.isArray(data)) {
- let missing0;
- if (data.app_id === void 0 && (missing0 = "app_id") || data.tag === void 0 && (missing0 = "tag")) {
- const err0 = { instancePath, schemaPath: "#/anyOf/0/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" };
- if (vErrors === null) {
- vErrors = [err0];
- } else {
- vErrors.push(err0);
- }
- errors++;
- } else {
- const _errs3 = errors;
- for (const key0 in data) {
- if (!(key0 === "app_id" || key0 === "tag")) {
- const err1 = { instancePath, schemaPath: "#/anyOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
- if (vErrors === null) {
- vErrors = [err1];
- } else {
- vErrors.push(err1);
- }
- errors++;
- break;
- }
- }
- if (_errs3 === errors) {
- if (data.app_id !== void 0) {
- const _errs4 = errors;
- if (typeof data.app_id !== "string") {
- const err2 = { instancePath: instancePath + "/app_id", schemaPath: "#/anyOf/0/properties/app_id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
- if (vErrors === null) {
- vErrors = [err2];
- } else {
- vErrors.push(err2);
- }
- errors++;
- }
- var valid1 = _errs4 === errors;
- } else {
- var valid1 = true;
- }
- if (valid1) {
- if (data.tag !== void 0) {
- const _errs6 = errors;
- if (typeof data.tag !== "string") {
- const err3 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/0/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" };
- if (vErrors === null) {
- vErrors = [err3];
- } else {
- vErrors.push(err3);
- }
- errors++;
- }
- var valid1 = _errs6 === errors;
- } else {
- var valid1 = true;
- }
- }
- }
- }
- } else {
- const err4 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
- if (vErrors === null) {
- vErrors = [err4];
- } else {
- vErrors.push(err4);
- }
- errors++;
- }
- }
- var _valid0 = _errs1 === errors;
- valid0 = valid0 || _valid0;
- if (!valid0) {
- const _errs8 = errors;
- if (errors === _errs8) {
- if (data && typeof data == "object" && !Array.isArray(data)) {
- let missing1;
- if (data.appId === void 0 && (missing1 = "appId") || data.tag === void 0 && (missing1 = "tag")) {
- const err5 = { instancePath, schemaPath: "#/anyOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
- if (vErrors === null) {
- vErrors = [err5];
+ var valid0 = _errs2 === errors;
} else {
- vErrors.push(err5);
- }
- errors++;
- } else {
- const _errs10 = errors;
- for (const key1 in data) {
- if (!(key1 === "appId" || key1 === "tag")) {
- const err6 = { instancePath, schemaPath: "#/anyOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
- if (vErrors === null) {
- vErrors = [err6];
- } else {
- vErrors.push(err6);
- }
- errors++;
- break;
- }
+ var valid0 = true;
}
- if (_errs10 === errors) {
- if (data.appId !== void 0) {
- const _errs11 = errors;
- if (typeof data.appId !== "string") {
- const err7 = { instancePath: instancePath + "/appId", schemaPath: "#/anyOf/1/properties/appId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
- if (vErrors === null) {
- vErrors = [err7];
- } else {
- vErrors.push(err7);
- }
- errors++;
+ if (valid0) {
+ if (data.python !== void 0) {
+ const _errs4 = errors;
+ if (typeof data.python !== "string") {
+ validate130.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ return false;
}
- var valid2 = _errs11 === errors;
+ var valid0 = _errs4 === errors;
} else {
- var valid2 = true;
- }
- if (valid2) {
- if (data.tag !== void 0) {
- const _errs13 = errors;
- if (typeof data.tag !== "string") {
- const err8 = { instancePath: instancePath + "/tag", schemaPath: "#/anyOf/1/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" };
- if (vErrors === null) {
- vErrors = [err8];
- } else {
- vErrors.push(err8);
- }
- errors++;
- }
- var valid2 = _errs13 === errors;
- } else {
- var valid2 = true;
- }
+ var valid0 = true;
}
}
}
- } else {
- const err9 = { instancePath, schemaPath: "#/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
- if (vErrors === null) {
- vErrors = [err9];
- } else {
- vErrors.push(err9);
- }
- errors++;
}
- }
- var _valid0 = _errs8 === errors;
- valid0 = valid0 || _valid0;
- }
- if (!valid0) {
- const err10 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
- if (vErrors === null) {
- vErrors = [err10];
} else {
- vErrors.push(err10);
- }
- errors++;
- validate120.errors = vErrors;
- return false;
- } else {
- errors = _errs0;
- if (vErrors !== null) {
- if (_errs0) {
- vErrors.length = _errs0;
- } else {
- vErrors = null;
- }
+ validate130.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ return false;
}
}
- validate120.errors = vErrors;
+ validate130.errors = vErrors;
return errors === 0;
}
-var validateTorchRuntimePreview = validate121;
-var schema137 = { "enum": ["qualified", "unverified"], "type": "string" };
-function validate121(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTorchRuntimePreview = validate131;
+var schema154 = { "enum": ["qualified", "unverified"], "type": "string" };
+function validate131(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.previewId === void 0 && (missing0 = "previewId") || data.tag === void 0 && (missing0 = "tag") || data.build === void 0 && (missing0 = "build") || data.python === void 0 && (missing0 = "python") || data.adapter === void 0 && (missing0 = "adapter") || data.artifacts === void 0 && (missing0 = "artifacts") || data.qualification === void 0 && (missing0 = "qualification") || data.expiresInSeconds === void 0 && (missing0 = "expiresInSeconds")) {
- validate121.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate131.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "adapter" || key0 === "artifacts" || key0 === "build" || key0 === "expiresInSeconds" || key0 === "previewId" || key0 === "python" || key0 === "qualification" || key0 === "tag")) {
- validate121.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate131.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -15248,7 +15993,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data.adapter !== void 0) {
const _errs2 = errors;
if (typeof data.adapter !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/adapter", schemaPath: "#/properties/adapter/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/adapter", schemaPath: "#/properties/adapter/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -15271,13 +16016,13 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
let missing1;
if (data2.name === void 0 && (missing1 = "name") || data2.version === void 0 && (missing1 = "version") || data2.url === void 0 && (missing1 = "url") || data2.sha256 === void 0 && (missing1 = "sha256")) {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
return false;
} else {
const _errs9 = errors;
for (const key1 in data2) {
if (!(key1 === "name" || key1 === "sha256" || key1 === "url" || key1 === "version")) {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -15286,7 +16031,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data2.name !== void 0) {
const _errs10 = errors;
if (typeof data2.name !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/name", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/name", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs10 === errors;
@@ -15297,7 +16042,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data2.sha256 !== void 0) {
const _errs12 = errors;
if (typeof data2.sha256 !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/sha256", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/sha256/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/sha256", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/sha256/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs12 === errors;
@@ -15308,7 +16053,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data2.url !== void 0) {
const _errs14 = errors;
if (typeof data2.url !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/url", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/url", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs14 === errors;
@@ -15319,7 +16064,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data2.version !== void 0) {
const _errs16 = errors;
if (typeof data2.version !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/version", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/version", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs16 === errors;
@@ -15332,7 +16077,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate121.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -15342,7 +16087,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate121.errors = [{ instancePath: instancePath + "/artifacts", schemaPath: "#/properties/artifacts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate131.errors = [{ instancePath: instancePath + "/artifacts", schemaPath: "#/properties/artifacts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -15354,7 +16099,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data.build !== void 0) {
const _errs18 = errors;
if (typeof data.build !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs18 === errors;
@@ -15366,17 +16111,17 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
let data8 = data.expiresInSeconds;
const _errs20 = errors;
if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
- validate121.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate131.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs20) {
if (typeof data8 == "number" && isFinite(data8)) {
if (data8 > 9007199254740991 || isNaN(data8)) {
- validate121.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate131.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data8 < 0 || isNaN(data8)) {
- validate121.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate131.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -15390,7 +16135,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data.previewId !== void 0) {
const _errs22 = errors;
if (typeof data.previewId !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/previewId", schemaPath: "#/properties/previewId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/previewId", schemaPath: "#/properties/previewId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs22 === errors;
@@ -15401,7 +16146,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data.python !== void 0) {
const _errs24 = errors;
if (typeof data.python !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs24 === errors;
@@ -15413,11 +16158,11 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
let data11 = data.qualification;
const _errs26 = errors;
if (typeof data11 !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data11 === "qualified" || data11 === "unverified")) {
- validate121.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/enum", keyword: "enum", params: { allowedValues: schema137.enum }, message: "must be equal to one of the allowed values" }];
+ validate131.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/enum", keyword: "enum", params: { allowedValues: schema154.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs26 === errors;
@@ -15428,7 +16173,7 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
if (data.tag !== void 0) {
const _errs29 = errors;
if (typeof data.tag !== "string") {
- validate121.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate131.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs29 === errors;
@@ -15445,28 +16190,28 @@ function validate121(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate121.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate131.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate121.errors = vErrors;
+ validate131.errors = vErrors;
return errors === 0;
}
-var validateTorchRuntimePreviewArtifact = validate122;
-function validate122(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTorchRuntimePreviewArtifact = validate132;
+function validate132(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.name === void 0 && (missing0 = "name") || data.version === void 0 && (missing0 = "version") || data.url === void 0 && (missing0 = "url") || data.sha256 === void 0 && (missing0 = "sha256")) {
- validate122.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate132.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "name" || key0 === "sha256" || key0 === "url" || key0 === "version")) {
- validate122.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate132.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -15475,7 +16220,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
if (data.name !== void 0) {
const _errs2 = errors;
if (typeof data.name !== "string") {
- validate122.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate132.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -15486,7 +16231,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
if (data.sha256 !== void 0) {
const _errs4 = errors;
if (typeof data.sha256 !== "string") {
- validate122.errors = [{ instancePath: instancePath + "/sha256", schemaPath: "#/properties/sha256/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate132.errors = [{ instancePath: instancePath + "/sha256", schemaPath: "#/properties/sha256/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -15497,7 +16242,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
if (data.url !== void 0) {
const _errs6 = errors;
if (typeof data.url !== "string") {
- validate122.errors = [{ instancePath: instancePath + "/url", schemaPath: "#/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate132.errors = [{ instancePath: instancePath + "/url", schemaPath: "#/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs6 === errors;
@@ -15508,7 +16253,7 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
if (data.version !== void 0) {
const _errs8 = errors;
if (typeof data.version !== "string") {
- validate122.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate132.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -15521,30 +16266,30 @@ function validate122(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate122.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate132.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate122.errors = vErrors;
+ validate132.errors = vErrors;
return errors === 0;
}
-var validateTorchRuntimePreviewOutcome = validate123;
-var schema143 = { "enum": ["unsupported", "validation_failed", "network_inconclusive", "inconclusive"], "type": "string" };
-var schema142 = { "enum": ["qualified", "unverified"], "type": "string" };
-function validate124(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTorchRuntimePreviewOutcome = validate133;
+var schema160 = { "enum": ["unsupported", "validation_failed", "network_inconclusive", "inconclusive"], "type": "string" };
+var schema159 = { "enum": ["qualified", "unverified"], "type": "string" };
+function validate134(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.previewId === void 0 && (missing0 = "previewId") || data.tag === void 0 && (missing0 = "tag") || data.build === void 0 && (missing0 = "build") || data.python === void 0 && (missing0 = "python") || data.adapter === void 0 && (missing0 = "adapter") || data.artifacts === void 0 && (missing0 = "artifacts") || data.qualification === void 0 && (missing0 = "qualification") || data.expiresInSeconds === void 0 && (missing0 = "expiresInSeconds")) {
- validate124.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate134.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "adapter" || key0 === "artifacts" || key0 === "build" || key0 === "expiresInSeconds" || key0 === "previewId" || key0 === "python" || key0 === "qualification" || key0 === "tag")) {
- validate124.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate134.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -15553,7 +16298,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data.adapter !== void 0) {
const _errs2 = errors;
if (typeof data.adapter !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/adapter", schemaPath: "#/properties/adapter/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/adapter", schemaPath: "#/properties/adapter/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -15576,13 +16321,13 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
let missing1;
if (data2.name === void 0 && (missing1 = "name") || data2.version === void 0 && (missing1 = "version") || data2.url === void 0 && (missing1 = "url") || data2.sha256 === void 0 && (missing1 = "sha256")) {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
return false;
} else {
const _errs9 = errors;
for (const key1 in data2) {
if (!(key1 === "name" || key1 === "sha256" || key1 === "url" || key1 === "version")) {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -15591,7 +16336,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data2.name !== void 0) {
const _errs10 = errors;
if (typeof data2.name !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/name", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/name", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs10 === errors;
@@ -15602,7 +16347,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data2.sha256 !== void 0) {
const _errs12 = errors;
if (typeof data2.sha256 !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/sha256", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/sha256/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/sha256", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/sha256/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs12 === errors;
@@ -15613,7 +16358,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data2.url !== void 0) {
const _errs14 = errors;
if (typeof data2.url !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/url", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/url", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs14 === errors;
@@ -15624,7 +16369,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data2.version !== void 0) {
const _errs16 = errors;
if (typeof data2.version !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/version", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0 + "/version", schemaPath: "#/definitions/TorchRuntimePreviewArtifact/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs16 === errors;
@@ -15637,7 +16382,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate124.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts/" + i0, schemaPath: "#/definitions/TorchRuntimePreviewArtifact/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -15647,7 +16392,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate124.errors = [{ instancePath: instancePath + "/artifacts", schemaPath: "#/properties/artifacts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate134.errors = [{ instancePath: instancePath + "/artifacts", schemaPath: "#/properties/artifacts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -15659,7 +16404,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data.build !== void 0) {
const _errs18 = errors;
if (typeof data.build !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/build", schemaPath: "#/properties/build/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs18 === errors;
@@ -15671,17 +16416,17 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
let data8 = data.expiresInSeconds;
const _errs20 = errors;
if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
- validate124.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate134.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs20) {
if (typeof data8 == "number" && isFinite(data8)) {
if (data8 > 9007199254740991 || isNaN(data8)) {
- validate124.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate134.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data8 < 0 || isNaN(data8)) {
- validate124.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate134.errors = [{ instancePath: instancePath + "/expiresInSeconds", schemaPath: "#/properties/expiresInSeconds/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -15695,7 +16440,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data.previewId !== void 0) {
const _errs22 = errors;
if (typeof data.previewId !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/previewId", schemaPath: "#/properties/previewId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/previewId", schemaPath: "#/properties/previewId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs22 === errors;
@@ -15706,7 +16451,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data.python !== void 0) {
const _errs24 = errors;
if (typeof data.python !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/python", schemaPath: "#/properties/python/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs24 === errors;
@@ -15718,11 +16463,11 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
let data11 = data.qualification;
const _errs26 = errors;
if (typeof data11 !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data11 === "qualified" || data11 === "unverified")) {
- validate124.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/enum", keyword: "enum", params: { allowedValues: schema142.enum }, message: "must be equal to one of the allowed values" }];
+ validate134.errors = [{ instancePath: instancePath + "/qualification", schemaPath: "#/definitions/TorchRuntimePreviewQualification/enum", keyword: "enum", params: { allowedValues: schema159.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs26 === errors;
@@ -15733,7 +16478,7 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
if (data.tag !== void 0) {
const _errs29 = errors;
if (typeof data.tag !== "string") {
- validate124.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate134.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs29 === errors;
@@ -15750,14 +16495,14 @@ function validate124(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate124.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate134.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate124.errors = vErrors;
+ validate134.errors = vErrors;
return errors === 0;
}
-function validate123(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate133(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -15792,8 +16537,8 @@ function validate123(data, { instancePath = "", parentData, parentDataProperty,
if (_errs3 === errors) {
if (data.preview !== void 0) {
const _errs4 = errors;
- if (!validate124(data.preview, { instancePath: instancePath + "/preview", parentData: data, parentDataProperty: "preview", rootData })) {
- vErrors = vErrors === null ? validate124.errors : vErrors.concat(validate124.errors);
+ if (!validate134(data.preview, { instancePath: instancePath + "/preview", parentData: data, parentDataProperty: "preview", rootData })) {
+ vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors);
errors = vErrors.length;
}
var valid1 = _errs4 === errors;
@@ -15900,7 +16645,7 @@ function validate123(data, { instancePath = "", parentData, parentDataProperty,
errors++;
}
if (!(data3 === "unsupported" || data3 === "validation_failed" || data3 === "network_inconclusive" || data3 === "inconclusive")) {
- const err9 = { instancePath: instancePath + "/reason", schemaPath: "#/definitions/TorchRuntimePreviewRejectionReason/enum", keyword: "enum", params: { allowedValues: schema143.enum }, message: "must be equal to one of the allowed values" };
+ const err9 = { instancePath: instancePath + "/reason", schemaPath: "#/definitions/TorchRuntimePreviewRejectionReason/enum", keyword: "enum", params: { allowedValues: schema160.enum }, message: "must be equal to one of the allowed values" };
if (vErrors === null) {
vErrors = [err9];
} else {
@@ -15970,7 +16715,7 @@ function validate123(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err13);
}
errors++;
- validate123.errors = vErrors;
+ validate133.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -15982,57 +16727,57 @@ function validate123(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate123.errors = vErrors;
+ validate133.errors = vErrors;
return errors === 0;
}
-var validateTorchRuntimePreviewQualification = validate126;
-var schema144 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["qualified", "unverified"], "title": "TorchRuntimePreviewQualification", "type": "string" };
-function validate126(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTorchRuntimePreviewQualification = validate136;
+var schema161 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["qualified", "unverified"], "title": "TorchRuntimePreviewQualification", "type": "string" };
+function validate136(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (typeof data !== "string") {
- validate126.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate136.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data === "qualified" || data === "unverified")) {
- validate126.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema144.enum }, message: "must be equal to one of the allowed values" }];
+ validate136.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema161.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
- validate126.errors = vErrors;
+ validate136.errors = vErrors;
return errors === 0;
}
-var validateTorchRuntimePreviewRejectionReason = validate127;
-var schema145 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["unsupported", "validation_failed", "network_inconclusive", "inconclusive"], "title": "TorchRuntimePreviewRejectionReason", "type": "string" };
-function validate127(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTorchRuntimePreviewRejectionReason = validate137;
+var schema162 = { "$schema": "http://json-schema.org/draft-07/schema#", "enum": ["unsupported", "validation_failed", "network_inconclusive", "inconclusive"], "title": "TorchRuntimePreviewRejectionReason", "type": "string" };
+function validate137(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (typeof data !== "string") {
- validate127.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate137.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data === "unsupported" || data === "validation_failed" || data === "network_inconclusive" || data === "inconclusive")) {
- validate127.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema145.enum }, message: "must be equal to one of the allowed values" }];
+ validate137.errors = [{ instancePath, schemaPath: "#/enum", keyword: "enum", params: { allowedValues: schema162.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
- validate127.errors = vErrors;
+ validate137.errors = vErrors;
return errors === 0;
}
-var validateTrialTorchRuntimeOutcome = validate128;
-var schema146 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "cleanup": { "type": "string" }, "error": { "type": ["string", "null"] }, "generation": { "type": ["string", "null"] }, "healthStatus": { "type": "string" }, "profileId": { "type": "string" }, "protocol": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] }, "startedByTrial": { "type": "boolean" }, "startupStatus": { "type": "string" }, "success": { "type": "boolean" }, "tag": { "type": "string" } }, "required": ["success", "tag", "profileId", "startupStatus", "healthStatus", "protocol", "capabilities", "generation", "startedByTrial", "error", "cleanup"], "title": "TrialTorchRuntimeOutcome", "type": "object" };
-function validate128(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTrialTorchRuntimeOutcome = validate138;
+var schema163 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "cleanup": { "type": "string" }, "error": { "type": ["string", "null"] }, "generation": { "type": ["string", "null"] }, "healthStatus": { "type": "string" }, "profileId": { "type": "string" }, "protocol": { "maximum": 4294967295, "minimum": 0, "type": ["integer", "null"] }, "startedByTrial": { "type": "boolean" }, "startupStatus": { "type": "string" }, "success": { "type": "boolean" }, "tag": { "type": "string" } }, "required": ["success", "tag", "profileId", "startupStatus", "healthStatus", "protocol", "capabilities", "generation", "startedByTrial", "error", "cleanup"], "title": "TrialTorchRuntimeOutcome", "type": "object" };
+function validate138(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.tag === void 0 && (missing0 = "tag") || data.profileId === void 0 && (missing0 = "profileId") || data.startupStatus === void 0 && (missing0 = "startupStatus") || data.healthStatus === void 0 && (missing0 = "healthStatus") || data.protocol === void 0 && (missing0 = "protocol") || data.capabilities === void 0 && (missing0 = "capabilities") || data.generation === void 0 && (missing0 = "generation") || data.startedByTrial === void 0 && (missing0 = "startedByTrial") || data.error === void 0 && (missing0 = "error") || data.cleanup === void 0 && (missing0 = "cleanup")) {
- validate128.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate138.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
- if (!func2.call(schema146.properties, key0)) {
- validate128.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ if (!func2.call(schema163.properties, key0)) {
+ validate138.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -16048,7 +16793,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
for (let i0 = 0; i0 < len0; i0++) {
const _errs4 = errors;
if (typeof data0[i0] !== "string") {
- validate128.errors = [{ instancePath: instancePath + "/capabilities/" + i0, schemaPath: "#/properties/capabilities/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate138.errors = [{ instancePath: instancePath + "/capabilities/" + i0, schemaPath: "#/properties/capabilities/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid1 = _errs4 === errors;
@@ -16057,7 +16802,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate128.errors = [{ instancePath: instancePath + "/capabilities", schemaPath: "#/properties/capabilities/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate138.errors = [{ instancePath: instancePath + "/capabilities", schemaPath: "#/properties/capabilities/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -16069,7 +16814,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.cleanup !== void 0) {
const _errs6 = errors;
if (typeof data.cleanup !== "string") {
- validate128.errors = [{ instancePath: instancePath + "/cleanup", schemaPath: "#/properties/cleanup/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate138.errors = [{ instancePath: instancePath + "/cleanup", schemaPath: "#/properties/cleanup/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs6 === errors;
@@ -16081,7 +16826,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
let data3 = data.error;
const _errs8 = errors;
if (typeof data3 !== "string" && data3 !== null) {
- validate128.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: schema146.properties.error.type }, message: "must be string,null" }];
+ validate138.errors = [{ instancePath: instancePath + "/error", schemaPath: "#/properties/error/type", keyword: "type", params: { type: schema163.properties.error.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -16093,7 +16838,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
let data4 = data.generation;
const _errs10 = errors;
if (typeof data4 !== "string" && data4 !== null) {
- validate128.errors = [{ instancePath: instancePath + "/generation", schemaPath: "#/properties/generation/type", keyword: "type", params: { type: schema146.properties.generation.type }, message: "must be string,null" }];
+ validate138.errors = [{ instancePath: instancePath + "/generation", schemaPath: "#/properties/generation/type", keyword: "type", params: { type: schema163.properties.generation.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs10 === errors;
@@ -16104,7 +16849,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.healthStatus !== void 0) {
const _errs12 = errors;
if (typeof data.healthStatus !== "string") {
- validate128.errors = [{ instancePath: instancePath + "/healthStatus", schemaPath: "#/properties/healthStatus/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate138.errors = [{ instancePath: instancePath + "/healthStatus", schemaPath: "#/properties/healthStatus/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs12 === errors;
@@ -16115,7 +16860,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.profileId !== void 0) {
const _errs14 = errors;
if (typeof data.profileId !== "string") {
- validate128.errors = [{ instancePath: instancePath + "/profileId", schemaPath: "#/properties/profileId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate138.errors = [{ instancePath: instancePath + "/profileId", schemaPath: "#/properties/profileId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs14 === errors;
@@ -16127,17 +16872,17 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
let data7 = data.protocol;
const _errs16 = errors;
if (!(typeof data7 == "number" && (!(data7 % 1) && !isNaN(data7)) && isFinite(data7)) && data7 !== null) {
- validate128.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/type", keyword: "type", params: { type: schema146.properties.protocol.type }, message: "must be integer,null" }];
+ validate138.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/type", keyword: "type", params: { type: schema163.properties.protocol.type }, message: "must be integer,null" }];
return false;
}
if (errors === _errs16) {
if (typeof data7 == "number" && isFinite(data7)) {
if (data7 > 4294967295 || isNaN(data7)) {
- validate128.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
+ validate138.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" }];
return false;
} else {
if (data7 < 0 || isNaN(data7)) {
- validate128.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate138.errors = [{ instancePath: instancePath + "/protocol", schemaPath: "#/properties/protocol/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -16151,7 +16896,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.startedByTrial !== void 0) {
const _errs18 = errors;
if (typeof data.startedByTrial !== "boolean") {
- validate128.errors = [{ instancePath: instancePath + "/startedByTrial", schemaPath: "#/properties/startedByTrial/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate138.errors = [{ instancePath: instancePath + "/startedByTrial", schemaPath: "#/properties/startedByTrial/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs18 === errors;
@@ -16162,7 +16907,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.startupStatus !== void 0) {
const _errs20 = errors;
if (typeof data.startupStatus !== "string") {
- validate128.errors = [{ instancePath: instancePath + "/startupStatus", schemaPath: "#/properties/startupStatus/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate138.errors = [{ instancePath: instancePath + "/startupStatus", schemaPath: "#/properties/startupStatus/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs20 === errors;
@@ -16173,7 +16918,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.success !== void 0) {
const _errs22 = errors;
if (typeof data.success !== "boolean") {
- validate128.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate138.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs22 === errors;
@@ -16184,7 +16929,7 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
if (data.tag !== void 0) {
const _errs24 = errors;
if (typeof data.tag !== "string") {
- validate128.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate138.errors = [{ instancePath: instancePath + "/tag", schemaPath: "#/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs24 === errors;
@@ -16204,15 +16949,15 @@ function validate128(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate128.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate138.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate128.errors = vErrors;
+ validate138.errors = vErrors;
return errors === 0;
}
-var validateTrialTorchRuntimeParams = validate129;
-function validate129(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateTrialTorchRuntimeParams = validate139;
+function validate139(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -16373,7 +17118,7 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err10);
}
errors++;
- validate129.errors = vErrors;
+ validate139.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -16385,24 +17130,24 @@ function validate129(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate129.errors = vErrors;
+ validate139.errors = vErrors;
return errors === 0;
}
-var validateUpdateInferenceSettingsOutcome = validate130;
-function validate130(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateUpdateInferenceSettingsOutcome = validate140;
+function validate140(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.model_id === void 0 && (missing0 = "model_id")) {
- validate130.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate140.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "model_id" || key0 === "success")) {
- validate130.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate140.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -16411,7 +17156,7 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
if (data.model_id !== void 0) {
const _errs2 = errors;
if (typeof data.model_id !== "string") {
- validate130.errors = [{ instancePath: instancePath + "/model_id", schemaPath: "#/properties/model_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate140.errors = [{ instancePath: instancePath + "/model_id", schemaPath: "#/properties/model_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -16423,11 +17168,11 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.success;
const _errs4 = errors;
if (typeof data1 !== "boolean") {
- validate130.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate140.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data1) {
- validate130.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate140.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -16438,19 +17183,19 @@ function validate130(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate130.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate140.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate130.errors = vErrors;
+ validate140.errors = vErrors;
return errors === 0;
}
-var validateUpdateInferenceSettingsParams = validate131;
-var schema150 = { "additionalProperties": false, "properties": { "constraints": { "anyOf": [{ "$ref": "#/definitions/InferenceConstraintsInput" }, { "type": "null" }] }, "default": { "$ref": "#/definitions/DesktopJsonValue" }, "description": { "default": null, "type": ["string", "null"] }, "key": { "type": "string" }, "label": { "type": "string" }, "param_type": { "$ref": "#/definitions/ParamType" } }, "required": ["key", "label", "param_type", "default"], "type": "object" };
-var schema153 = { "description": "Data type for an inference parameter.", "enum": ["Number", "Integer", "String", "Boolean"], "type": "string" };
-var schema151 = { "additionalProperties": false, "properties": { "allowed_values": { "anyOf": [{ "type": "null" }, { "items": { "$ref": "#/definitions/DesktopJsonValue" }, "type": "array" }] }, "max": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "min": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] } }, "type": "object" };
-var wrapper4 = { validate: validate134 };
-function validate134(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateUpdateInferenceSettingsParams = validate141;
+var schema167 = { "additionalProperties": false, "properties": { "constraints": { "anyOf": [{ "$ref": "#/definitions/InferenceConstraintsInput" }, { "type": "null" }] }, "default": { "$ref": "#/definitions/DesktopJsonValue" }, "description": { "default": null, "type": ["string", "null"] }, "key": { "type": "string" }, "label": { "type": "string" }, "param_type": { "$ref": "#/definitions/ParamType" } }, "required": ["key", "label", "param_type", "default"], "type": "object" };
+var schema170 = { "description": "Data type for an inference parameter.", "enum": ["Number", "Integer", "String", "Boolean"], "type": "string" };
+var schema168 = { "additionalProperties": false, "properties": { "allowed_values": { "anyOf": [{ "type": "null" }, { "items": { "$ref": "#/definitions/DesktopJsonValue" }, "type": "array" }] }, "max": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] }, "min": { "default": null, "maximum": 17976931348623157e292, "minimum": -17976931348623157e292, "type": ["number", "null"] } }, "type": "object" };
+var wrapper4 = { validate: validate144 };
+function validate144(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -16597,7 +17342,7 @@ function validate134(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err8);
}
errors++;
- validate134.errors = vErrors;
+ validate144.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -16609,10 +17354,10 @@ function validate134(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate134.errors = vErrors;
+ validate144.errors = vErrors;
return errors === 0;
}
-function validate133(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate143(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
@@ -16620,7 +17365,7 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "allowed_values" || key0 === "max" || key0 === "min")) {
- validate133.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate143.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -16651,8 +17396,8 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
const len0 = data0.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs8 = errors;
- if (!validate134(data0[i0], { instancePath: instancePath + "/allowed_values/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors);
+ if (!validate144(data0[i0], { instancePath: instancePath + "/allowed_values/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
errors = vErrors.length;
}
var valid2 = _errs8 === errors;
@@ -16681,7 +17426,7 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err2);
}
errors++;
- validate133.errors = vErrors;
+ validate143.errors = vErrors;
return false;
} else {
errors = _errs3;
@@ -16702,17 +17447,17 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
let data2 = data.max;
const _errs9 = errors;
if (!(typeof data2 == "number" && isFinite(data2)) && data2 !== null) {
- validate133.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/type", keyword: "type", params: { type: schema151.properties.max.type }, message: "must be number,null" }];
+ validate143.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/type", keyword: "type", params: { type: schema168.properties.max.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs9) {
if (typeof data2 == "number" && isFinite(data2)) {
if (data2 > 17976931348623157e292 || isNaN(data2)) {
- validate133.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
+ validate143.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
return false;
} else {
if (data2 < -17976931348623157e292 || isNaN(data2)) {
- validate133.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
+ validate143.errors = [{ instancePath: instancePath + "/max", schemaPath: "#/properties/max/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
return false;
}
}
@@ -16727,17 +17472,17 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
let data3 = data.min;
const _errs11 = errors;
if (!(typeof data3 == "number" && isFinite(data3)) && data3 !== null) {
- validate133.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/type", keyword: "type", params: { type: schema151.properties.min.type }, message: "must be number,null" }];
+ validate143.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/type", keyword: "type", params: { type: schema168.properties.min.type }, message: "must be number,null" }];
return false;
}
if (errors === _errs11) {
if (typeof data3 == "number" && isFinite(data3)) {
if (data3 > 17976931348623157e292 || isNaN(data3)) {
- validate133.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
+ validate143.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/maximum", keyword: "maximum", params: { comparison: "<=", limit: 17976931348623157e292 }, message: "must be <= 1.7976931348623157e+308" }];
return false;
} else {
if (data3 < -17976931348623157e292 || isNaN(data3)) {
- validate133.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
+ validate143.errors = [{ instancePath: instancePath + "/min", schemaPath: "#/properties/min/minimum", keyword: "minimum", params: { comparison: ">=", limit: -17976931348623157e292 }, message: "must be >= -1.7976931348623157e+308" }];
return false;
}
}
@@ -16751,27 +17496,27 @@ function validate133(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate133.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate143.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate133.errors = vErrors;
+ validate143.errors = vErrors;
return errors === 0;
}
-function validate132(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate142(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.key === void 0 && (missing0 = "key") || data.label === void 0 && (missing0 = "label") || data.param_type === void 0 && (missing0 = "param_type") || data.default === void 0 && (missing0 = "default")) {
- validate132.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate142.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "constraints" || key0 === "default" || key0 === "description" || key0 === "key" || key0 === "label" || key0 === "param_type")) {
- validate132.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate142.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -16783,8 +17528,8 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
const _errs3 = errors;
let valid1 = false;
const _errs4 = errors;
- if (!validate133(data0, { instancePath: instancePath + "/constraints", parentData: data, parentDataProperty: "constraints", rootData })) {
- vErrors = vErrors === null ? validate133.errors : vErrors.concat(validate133.errors);
+ if (!validate143(data0, { instancePath: instancePath + "/constraints", parentData: data, parentDataProperty: "constraints", rootData })) {
+ vErrors = vErrors === null ? validate143.errors : vErrors.concat(validate143.errors);
errors = vErrors.length;
}
var _valid0 = _errs4 === errors;
@@ -16811,7 +17556,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err1);
}
errors++;
- validate132.errors = vErrors;
+ validate142.errors = vErrors;
return false;
} else {
errors = _errs3;
@@ -16830,8 +17575,8 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
if (valid0) {
if (data.default !== void 0) {
const _errs7 = errors;
- if (!validate134(data.default, { instancePath: instancePath + "/default", parentData: data, parentDataProperty: "default", rootData })) {
- vErrors = vErrors === null ? validate134.errors : vErrors.concat(validate134.errors);
+ if (!validate144(data.default, { instancePath: instancePath + "/default", parentData: data, parentDataProperty: "default", rootData })) {
+ vErrors = vErrors === null ? validate144.errors : vErrors.concat(validate144.errors);
errors = vErrors.length;
}
var valid0 = _errs7 === errors;
@@ -16843,7 +17588,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
let data2 = data.description;
const _errs8 = errors;
if (typeof data2 !== "string" && data2 !== null) {
- validate132.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: schema150.properties.description.type }, message: "must be string,null" }];
+ validate142.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: schema167.properties.description.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs8 === errors;
@@ -16854,7 +17599,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
if (data.key !== void 0) {
const _errs10 = errors;
if (typeof data.key !== "string") {
- validate132.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate142.errors = [{ instancePath: instancePath + "/key", schemaPath: "#/properties/key/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs10 === errors;
@@ -16865,7 +17610,7 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
if (data.label !== void 0) {
const _errs12 = errors;
if (typeof data.label !== "string") {
- validate132.errors = [{ instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate142.errors = [{ instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid0 = _errs12 === errors;
@@ -16877,11 +17622,11 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
let data5 = data.param_type;
const _errs14 = errors;
if (typeof data5 !== "string") {
- validate132.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate142.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
if (!(data5 === "Number" || data5 === "Integer" || data5 === "String" || data5 === "Boolean")) {
- validate132.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/enum", keyword: "enum", params: { allowedValues: schema153.enum }, message: "must be equal to one of the allowed values" }];
+ validate142.errors = [{ instancePath: instancePath + "/param_type", schemaPath: "#/definitions/ParamType/enum", keyword: "enum", params: { allowedValues: schema170.enum }, message: "must be equal to one of the allowed values" }];
return false;
}
var valid0 = _errs14 === errors;
@@ -16896,14 +17641,14 @@ function validate132(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate132.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate142.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate132.errors = vErrors;
+ validate142.errors = vErrors;
return errors === 0;
}
-function validate131(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate141(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -16960,8 +17705,8 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
const len0 = data1.length;
for (let i0 = 0; i0 < len0; i0++) {
const _errs8 = errors;
- if (!validate132(data1[i0], { instancePath: instancePath + "/settings/" + i0, parentData: data1, parentDataProperty: i0, rootData })) {
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
+ if (!validate142(data1[i0], { instancePath: instancePath + "/settings/" + i0, parentData: data1, parentDataProperty: i0, rootData })) {
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
errors = vErrors.length;
}
var valid2 = _errs8 === errors;
@@ -17035,8 +17780,8 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
const len1 = data3.length;
for (let i1 = 0; i1 < len1; i1++) {
const _errs14 = errors;
- if (!validate132(data3[i1], { instancePath: instancePath + "/inference_settings/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
+ if (!validate142(data3[i1], { instancePath: instancePath + "/inference_settings/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
errors = vErrors.length;
}
var valid4 = _errs14 === errors;
@@ -17126,8 +17871,8 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
const len2 = data6.length;
for (let i2 = 0; i2 < len2; i2++) {
const _errs22 = errors;
- if (!validate132(data6[i2], { instancePath: instancePath + "/inferenceSettings/" + i2, parentData: data6, parentDataProperty: i2, rootData })) {
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
+ if (!validate142(data6[i2], { instancePath: instancePath + "/inferenceSettings/" + i2, parentData: data6, parentDataProperty: i2, rootData })) {
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
errors = vErrors.length;
}
var valid6 = _errs22 === errors;
@@ -17233,8 +17978,8 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
const len3 = data10.length;
for (let i3 = 0; i3 < len3; i3++) {
const _errs32 = errors;
- if (!validate132(data10[i3], { instancePath: instancePath + "/settings/" + i3, parentData: data10, parentDataProperty: i3, rootData })) {
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
+ if (!validate142(data10[i3], { instancePath: instancePath + "/settings/" + i3, parentData: data10, parentDataProperty: i3, rootData })) {
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
errors = vErrors.length;
}
var valid8 = _errs32 === errors;
@@ -17308,8 +18053,8 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
const len4 = data12.length;
for (let i4 = 0; i4 < len4; i4++) {
const _errs38 = errors;
- if (!validate132(data12[i4], { instancePath: instancePath + "/inference_settings/" + i4, parentData: data12, parentDataProperty: i4, rootData })) {
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
+ if (!validate142(data12[i4], { instancePath: instancePath + "/inference_settings/" + i4, parentData: data12, parentDataProperty: i4, rootData })) {
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
errors = vErrors.length;
}
var valid10 = _errs38 === errors;
@@ -17399,8 +18144,8 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
const len5 = data15.length;
for (let i5 = 0; i5 < len5; i5++) {
const _errs46 = errors;
- if (!validate132(data15[i5], { instancePath: instancePath + "/inferenceSettings/" + i5, parentData: data15, parentDataProperty: i5, rootData })) {
- vErrors = vErrors === null ? validate132.errors : vErrors.concat(validate132.errors);
+ if (!validate142(data15[i5], { instancePath: instancePath + "/inferenceSettings/" + i5, parentData: data15, parentDataProperty: i5, rootData })) {
+ vErrors = vErrors === null ? validate142.errors : vErrors.concat(validate142.errors);
errors = vErrors.length;
}
var valid12 = _errs46 === errors;
@@ -17466,7 +18211,7 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err30);
}
errors++;
- validate131.errors = vErrors;
+ validate141.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -17478,11 +18223,11 @@ function validate131(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate131.errors = vErrors;
+ validate141.errors = vErrors;
return errors === 0;
}
-var validateUpdateModelNotesOutcome = validate144;
-function validate144(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateUpdateModelNotesOutcome = validate154;
+function validate154(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -17699,7 +18444,7 @@ function validate144(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err14);
}
errors++;
- validate144.errors = vErrors;
+ validate154.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -17711,12 +18456,12 @@ function validate144(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate144.errors = vErrors;
+ validate154.errors = vErrors;
return errors === 0;
}
-var validateUpdateModelNotesParams = validate145;
-var schema157 = { "anyOf": [{ "additionalProperties": false, "properties": { "model_id": { "type": "string" }, "notes": { "default": null, "type": ["string", "null"] } }, "required": ["model_id"], "type": "object" }, { "additionalProperties": false, "properties": { "model_id": { "type": "string" }, "model_notes": { "default": null, "type": ["string", "null"] } }, "required": ["model_id"], "type": "object" }, { "additionalProperties": false, "properties": { "modelId": { "type": "string" }, "notes": { "default": null, "type": ["string", "null"] } }, "required": ["modelId"], "type": "object" }, { "additionalProperties": false, "properties": { "modelId": { "type": "string" }, "model_notes": { "default": null, "type": ["string", "null"] } }, "required": ["modelId"], "type": "object" }] };
-function validate145(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateUpdateModelNotesParams = validate155;
+var schema174 = { "anyOf": [{ "additionalProperties": false, "properties": { "model_id": { "type": "string" }, "notes": { "default": null, "type": ["string", "null"] } }, "required": ["model_id"], "type": "object" }, { "additionalProperties": false, "properties": { "model_id": { "type": "string" }, "model_notes": { "default": null, "type": ["string", "null"] } }, "required": ["model_id"], "type": "object" }, { "additionalProperties": false, "properties": { "modelId": { "type": "string" }, "notes": { "default": null, "type": ["string", "null"] } }, "required": ["modelId"], "type": "object" }, { "additionalProperties": false, "properties": { "modelId": { "type": "string" }, "model_notes": { "default": null, "type": ["string", "null"] } }, "required": ["modelId"], "type": "object" }] };
+function validate155(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
const _errs0 = errors;
@@ -17768,7 +18513,7 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.notes;
const _errs6 = errors;
if (typeof data1 !== "string" && data1 !== null) {
- const err3 = { instancePath: instancePath + "/notes", schemaPath: "#/anyOf/0/properties/notes/type", keyword: "type", params: { type: schema157.anyOf[0].properties.notes.type }, message: "must be string,null" };
+ const err3 = { instancePath: instancePath + "/notes", schemaPath: "#/anyOf/0/properties/notes/type", keyword: "type", params: { type: schema174.anyOf[0].properties.notes.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err3];
} else {
@@ -17843,7 +18588,7 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
let data3 = data.model_notes;
const _errs13 = errors;
if (typeof data3 !== "string" && data3 !== null) {
- const err8 = { instancePath: instancePath + "/model_notes", schemaPath: "#/anyOf/1/properties/model_notes/type", keyword: "type", params: { type: schema157.anyOf[1].properties.model_notes.type }, message: "must be string,null" };
+ const err8 = { instancePath: instancePath + "/model_notes", schemaPath: "#/anyOf/1/properties/model_notes/type", keyword: "type", params: { type: schema174.anyOf[1].properties.model_notes.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err8];
} else {
@@ -17918,7 +18663,7 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
let data5 = data.notes;
const _errs20 = errors;
if (typeof data5 !== "string" && data5 !== null) {
- const err13 = { instancePath: instancePath + "/notes", schemaPath: "#/anyOf/2/properties/notes/type", keyword: "type", params: { type: schema157.anyOf[2].properties.notes.type }, message: "must be string,null" };
+ const err13 = { instancePath: instancePath + "/notes", schemaPath: "#/anyOf/2/properties/notes/type", keyword: "type", params: { type: schema174.anyOf[2].properties.notes.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err13];
} else {
@@ -17993,7 +18738,7 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
let data7 = data.model_notes;
const _errs27 = errors;
if (typeof data7 !== "string" && data7 !== null) {
- const err18 = { instancePath: instancePath + "/model_notes", schemaPath: "#/anyOf/3/properties/model_notes/type", keyword: "type", params: { type: schema157.anyOf[3].properties.model_notes.type }, message: "must be string,null" };
+ const err18 = { instancePath: instancePath + "/model_notes", schemaPath: "#/anyOf/3/properties/model_notes/type", keyword: "type", params: { type: schema174.anyOf[3].properties.model_notes.type }, message: "must be string,null" };
if (vErrors === null) {
vErrors = [err18];
} else {
@@ -18031,7 +18776,7 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
vErrors.push(err20);
}
errors++;
- validate145.errors = vErrors;
+ validate155.errors = vErrors;
return false;
} else {
errors = _errs0;
@@ -18043,24 +18788,24 @@ function validate145(data, { instancePath = "", parentData, parentDataProperty,
}
}
}
- validate145.errors = vErrors;
+ validate155.errors = vErrors;
return errors === 0;
}
-var validateValidateInstallationsOutcome = validate146;
-function validate146(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateValidateInstallationsOutcome = validate156;
+function validate156(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.removed_tags === void 0 && (missing0 = "removed_tags") || data.orphaned_dirs === void 0 && (missing0 = "orphaned_dirs") || data.valid_count === void 0 && (missing0 = "valid_count")) {
- validate146.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate156.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "orphaned_dirs" || key0 === "removed_tags" || key0 === "valid_count")) {
- validate146.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate156.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18076,7 +18821,7 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
for (let i0 = 0; i0 < len0; i0++) {
const _errs4 = errors;
if (typeof data0[i0] !== "string") {
- validate146.errors = [{ instancePath: instancePath + "/orphaned_dirs/" + i0, schemaPath: "#/properties/orphaned_dirs/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate156.errors = [{ instancePath: instancePath + "/orphaned_dirs/" + i0, schemaPath: "#/properties/orphaned_dirs/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid1 = _errs4 === errors;
@@ -18085,7 +18830,7 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate146.errors = [{ instancePath: instancePath + "/orphaned_dirs", schemaPath: "#/properties/orphaned_dirs/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate156.errors = [{ instancePath: instancePath + "/orphaned_dirs", schemaPath: "#/properties/orphaned_dirs/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -18104,7 +18849,7 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
for (let i1 = 0; i1 < len1; i1++) {
const _errs8 = errors;
if (typeof data2[i1] !== "string") {
- validate146.errors = [{ instancePath: instancePath + "/removed_tags/" + i1, schemaPath: "#/properties/removed_tags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate156.errors = [{ instancePath: instancePath + "/removed_tags/" + i1, schemaPath: "#/properties/removed_tags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid2 = _errs8 === errors;
@@ -18113,7 +18858,7 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate146.errors = [{ instancePath: instancePath + "/removed_tags", schemaPath: "#/properties/removed_tags/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate156.errors = [{ instancePath: instancePath + "/removed_tags", schemaPath: "#/properties/removed_tags/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -18126,17 +18871,17 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
let data4 = data.valid_count;
const _errs10 = errors;
if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
- validate146.errors = [{ instancePath: instancePath + "/valid_count", schemaPath: "#/properties/valid_count/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate156.errors = [{ instancePath: instancePath + "/valid_count", schemaPath: "#/properties/valid_count/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs10) {
if (typeof data4 == "number" && isFinite(data4)) {
if (data4 > 9007199254740991 || isNaN(data4)) {
- validate146.errors = [{ instancePath: instancePath + "/valid_count", schemaPath: "#/properties/valid_count/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate156.errors = [{ instancePath: instancePath + "/valid_count", schemaPath: "#/properties/valid_count/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data4 < 0 || isNaN(data4)) {
- validate146.errors = [{ instancePath: instancePath + "/valid_count", schemaPath: "#/properties/valid_count/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate156.errors = [{ instancePath: instancePath + "/valid_count", schemaPath: "#/properties/valid_count/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -18151,28 +18896,28 @@ function validate146(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate146.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate156.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate146.errors = vErrors;
+ validate156.errors = vErrors;
return errors === 0;
}
-var validateVersionInfoOutcome = validate147;
-function validate147(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateVersionInfoOutcome = validate157;
+function validate157(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.info === void 0 && (missing0 = "info")) {
- validate147.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate157.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "info" || key0 === "success")) {
- validate147.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate157.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18186,13 +18931,13 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
let missing1;
if (data0.tag === void 0 && (missing1 = "tag") || data0.installed === void 0 && (missing1 = "installed") || data0.size === void 0 && (missing1 = "size")) {
- validate147.errors = [{ instancePath: instancePath + "/info", schemaPath: "#/definitions/RuntimeVersionInfo/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ validate157.errors = [{ instancePath: instancePath + "/info", schemaPath: "#/definitions/RuntimeVersionInfo/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
return false;
} else {
const _errs5 = errors;
for (const key1 in data0) {
if (!(key1 === "installed" || key1 === "size" || key1 === "tag")) {
- validate147.errors = [{ instancePath: instancePath + "/info", schemaPath: "#/definitions/RuntimeVersionInfo/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ validate157.errors = [{ instancePath: instancePath + "/info", schemaPath: "#/definitions/RuntimeVersionInfo/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18201,7 +18946,7 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
if (data0.installed !== void 0) {
const _errs6 = errors;
if (typeof data0.installed !== "boolean") {
- validate147.errors = [{ instancePath: instancePath + "/info/installed", schemaPath: "#/definitions/RuntimeVersionInfo/properties/installed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate157.errors = [{ instancePath: instancePath + "/info/installed", schemaPath: "#/definitions/RuntimeVersionInfo/properties/installed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid2 = _errs6 === errors;
@@ -18212,7 +18957,7 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
if (data0.size !== void 0) {
const _errs8 = errors;
if (data0.size !== null) {
- validate147.errors = [{ instancePath: instancePath + "/info/size", schemaPath: "#/definitions/RuntimeVersionInfo/properties/size/type", keyword: "type", params: { type: "null" }, message: "must be null" }];
+ validate157.errors = [{ instancePath: instancePath + "/info/size", schemaPath: "#/definitions/RuntimeVersionInfo/properties/size/type", keyword: "type", params: { type: "null" }, message: "must be null" }];
return false;
}
var valid2 = _errs8 === errors;
@@ -18223,7 +18968,7 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
if (data0.tag !== void 0) {
const _errs10 = errors;
if (typeof data0.tag !== "string") {
- validate147.errors = [{ instancePath: instancePath + "/info/tag", schemaPath: "#/definitions/RuntimeVersionInfo/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate157.errors = [{ instancePath: instancePath + "/info/tag", schemaPath: "#/definitions/RuntimeVersionInfo/properties/tag/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid2 = _errs10 === errors;
@@ -18235,7 +18980,7 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate147.errors = [{ instancePath: instancePath + "/info", schemaPath: "#/definitions/RuntimeVersionInfo/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate157.errors = [{ instancePath: instancePath + "/info", schemaPath: "#/definitions/RuntimeVersionInfo/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -18248,11 +18993,11 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
let data4 = data.success;
const _errs12 = errors;
if (typeof data4 !== "boolean") {
- validate147.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate157.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data4) {
- validate147.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate157.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs12 === errors;
@@ -18263,29 +19008,29 @@ function validate147(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate147.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate157.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate147.errors = vErrors;
+ validate157.errors = vErrors;
return errors === 0;
}
-var validateVersionStatusOutcome = validate148;
-var schema162 = { "additionalProperties": false, "properties": { "activeVersion": { "type": ["string", "null"] }, "defaultVersion": { "type": ["string", "null"] }, "installedCount": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "versions": { "additionalProperties": { "$ref": "#/definitions/RuntimeVersionEntry" }, "type": "object" } }, "required": ["installedCount", "activeVersion", "defaultVersion", "versions"], "type": "object" };
-function validate150(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+var validateVersionStatusOutcome = validate158;
+var schema179 = { "additionalProperties": false, "properties": { "activeVersion": { "type": ["string", "null"] }, "defaultVersion": { "type": ["string", "null"] }, "installedCount": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "versions": { "additionalProperties": { "$ref": "#/definitions/RuntimeVersionEntry" }, "type": "object" } }, "required": ["installedCount", "activeVersion", "defaultVersion", "versions"], "type": "object" };
+function validate160(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.isActive === void 0 && (missing0 = "isActive") || data.dependencies === void 0 && (missing0 = "dependencies")) {
- validate150.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate160.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "dependencies" || key0 === "isActive")) {
- validate150.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate160.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18299,13 +19044,13 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
let missing1;
if (data0.installed === void 0 && (missing1 = "installed") || data0.missing === void 0 && (missing1 = "missing")) {
- validate150.errors = [{ instancePath: instancePath + "/dependencies", schemaPath: "#/definitions/RuntimeVersionDependencies/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies", schemaPath: "#/definitions/RuntimeVersionDependencies/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
return false;
} else {
const _errs5 = errors;
for (const key1 in data0) {
if (!(key1 === "installed" || key1 === "missing")) {
- validate150.errors = [{ instancePath: instancePath + "/dependencies", schemaPath: "#/definitions/RuntimeVersionDependencies/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies", schemaPath: "#/definitions/RuntimeVersionDependencies/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18321,7 +19066,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
for (let i0 = 0; i0 < len0; i0++) {
const _errs8 = errors;
if (typeof data1[i0] !== "string") {
- validate150.errors = [{ instancePath: instancePath + "/dependencies/installed/" + i0, schemaPath: "#/definitions/RuntimeVersionDependencies/properties/installed/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies/installed/" + i0, schemaPath: "#/definitions/RuntimeVersionDependencies/properties/installed/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid3 = _errs8 === errors;
@@ -18330,7 +19075,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate150.errors = [{ instancePath: instancePath + "/dependencies/installed", schemaPath: "#/definitions/RuntimeVersionDependencies/properties/installed/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies/installed", schemaPath: "#/definitions/RuntimeVersionDependencies/properties/installed/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -18349,7 +19094,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
for (let i1 = 0; i1 < len1; i1++) {
const _errs12 = errors;
if (typeof data3[i1] !== "string") {
- validate150.errors = [{ instancePath: instancePath + "/dependencies/missing/" + i1, schemaPath: "#/definitions/RuntimeVersionDependencies/properties/missing/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies/missing/" + i1, schemaPath: "#/definitions/RuntimeVersionDependencies/properties/missing/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
return false;
}
var valid4 = _errs12 === errors;
@@ -18358,7 +19103,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate150.errors = [{ instancePath: instancePath + "/dependencies/missing", schemaPath: "#/definitions/RuntimeVersionDependencies/properties/missing/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies/missing", schemaPath: "#/definitions/RuntimeVersionDependencies/properties/missing/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
return false;
}
}
@@ -18370,7 +19115,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate150.errors = [{ instancePath: instancePath + "/dependencies", schemaPath: "#/definitions/RuntimeVersionDependencies/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate160.errors = [{ instancePath: instancePath + "/dependencies", schemaPath: "#/definitions/RuntimeVersionDependencies/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -18382,7 +19127,7 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
if (data.isActive !== void 0) {
const _errs14 = errors;
if (typeof data.isActive !== "boolean") {
- validate150.errors = [{ instancePath: instancePath + "/isActive", schemaPath: "#/properties/isActive/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate160.errors = [{ instancePath: instancePath + "/isActive", schemaPath: "#/properties/isActive/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
var valid0 = _errs14 === errors;
@@ -18393,27 +19138,27 @@ function validate150(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate150.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate160.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate150.errors = vErrors;
+ validate160.errors = vErrors;
return errors === 0;
}
-function validate149(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate159(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.installedCount === void 0 && (missing0 = "installedCount") || data.activeVersion === void 0 && (missing0 = "activeVersion") || data.defaultVersion === void 0 && (missing0 = "defaultVersion") || data.versions === void 0 && (missing0 = "versions")) {
- validate149.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate159.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "activeVersion" || key0 === "defaultVersion" || key0 === "installedCount" || key0 === "versions")) {
- validate149.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate159.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18423,7 +19168,7 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
let data0 = data.activeVersion;
const _errs2 = errors;
if (typeof data0 !== "string" && data0 !== null) {
- validate149.errors = [{ instancePath: instancePath + "/activeVersion", schemaPath: "#/properties/activeVersion/type", keyword: "type", params: { type: schema162.properties.activeVersion.type }, message: "must be string,null" }];
+ validate159.errors = [{ instancePath: instancePath + "/activeVersion", schemaPath: "#/properties/activeVersion/type", keyword: "type", params: { type: schema179.properties.activeVersion.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs2 === errors;
@@ -18435,7 +19180,7 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.defaultVersion;
const _errs4 = errors;
if (typeof data1 !== "string" && data1 !== null) {
- validate149.errors = [{ instancePath: instancePath + "/defaultVersion", schemaPath: "#/properties/defaultVersion/type", keyword: "type", params: { type: schema162.properties.defaultVersion.type }, message: "must be string,null" }];
+ validate159.errors = [{ instancePath: instancePath + "/defaultVersion", schemaPath: "#/properties/defaultVersion/type", keyword: "type", params: { type: schema179.properties.defaultVersion.type }, message: "must be string,null" }];
return false;
}
var valid0 = _errs4 === errors;
@@ -18447,17 +19192,17 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
let data2 = data.installedCount;
const _errs6 = errors;
if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
- validate149.errors = [{ instancePath: instancePath + "/installedCount", schemaPath: "#/properties/installedCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
+ validate159.errors = [{ instancePath: instancePath + "/installedCount", schemaPath: "#/properties/installedCount/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
return false;
}
if (errors === _errs6) {
if (typeof data2 == "number" && isFinite(data2)) {
if (data2 > 9007199254740991 || isNaN(data2)) {
- validate149.errors = [{ instancePath: instancePath + "/installedCount", schemaPath: "#/properties/installedCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
+ validate159.errors = [{ instancePath: instancePath + "/installedCount", schemaPath: "#/properties/installedCount/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
return false;
} else {
if (data2 < 0 || isNaN(data2)) {
- validate149.errors = [{ instancePath: instancePath + "/installedCount", schemaPath: "#/properties/installedCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
+ validate159.errors = [{ instancePath: instancePath + "/installedCount", schemaPath: "#/properties/installedCount/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
return false;
}
}
@@ -18475,8 +19220,8 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
for (const key1 in data3) {
const _errs11 = errors;
- if (!validate150(data3[key1], { instancePath: instancePath + "/versions/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data3, parentDataProperty: key1, rootData })) {
- vErrors = vErrors === null ? validate150.errors : vErrors.concat(validate150.errors);
+ if (!validate160(data3[key1], { instancePath: instancePath + "/versions/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data3, parentDataProperty: key1, rootData })) {
+ vErrors = vErrors === null ? validate160.errors : vErrors.concat(validate160.errors);
errors = vErrors.length;
}
var valid1 = _errs11 === errors;
@@ -18485,7 +19230,7 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate149.errors = [{ instancePath: instancePath + "/versions", schemaPath: "#/properties/versions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate159.errors = [{ instancePath: instancePath + "/versions", schemaPath: "#/properties/versions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
@@ -18499,27 +19244,27 @@ function validate149(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate149.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate159.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate149.errors = vErrors;
+ validate159.errors = vErrors;
return errors === 0;
}
-function validate148(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
+function validate158(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
let vErrors = null;
let errors = 0;
if (errors === 0) {
if (data && typeof data == "object" && !Array.isArray(data)) {
let missing0;
if (data.success === void 0 && (missing0 = "success") || data.status === void 0 && (missing0 = "status")) {
- validate148.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
+ validate158.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
return false;
} else {
const _errs1 = errors;
for (const key0 in data) {
if (!(key0 === "status" || key0 === "success")) {
- validate148.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
+ validate158.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
return false;
break;
}
@@ -18527,8 +19272,8 @@ function validate148(data, { instancePath = "", parentData, parentDataProperty,
if (_errs1 === errors) {
if (data.status !== void 0) {
const _errs2 = errors;
- if (!validate149(data.status, { instancePath: instancePath + "/status", parentData: data, parentDataProperty: "status", rootData })) {
- vErrors = vErrors === null ? validate149.errors : vErrors.concat(validate149.errors);
+ if (!validate159(data.status, { instancePath: instancePath + "/status", parentData: data, parentDataProperty: "status", rootData })) {
+ vErrors = vErrors === null ? validate159.errors : vErrors.concat(validate159.errors);
errors = vErrors.length;
}
var valid0 = _errs2 === errors;
@@ -18540,11 +19285,11 @@ function validate148(data, { instancePath = "", parentData, parentDataProperty,
let data1 = data.success;
const _errs3 = errors;
if (typeof data1 !== "boolean") {
- validate148.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
+ validate158.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
return false;
}
if (true !== data1) {
- validate148.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
+ validate158.errors = [{ instancePath: instancePath + "/success", schemaPath: "#/properties/success/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
return false;
}
var valid0 = _errs3 === errors;
@@ -18555,11 +19300,11 @@ function validate148(data, { instancePath = "", parentData, parentDataProperty,
}
}
} else {
- validate148.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
+ validate158.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
return false;
}
}
- validate148.errors = vErrors;
+ validate158.errors = vErrors;
return errors === 0;
}
export {
@@ -18587,6 +19332,7 @@ export {
validateGetReleaseDependenciesOutcome,
validateGetReleaseDependenciesParams,
validateGetTorchPreviewReportParams,
+ validateGetTorchReleaseOptionsParams,
validateGetTorchRuntimeProbeParams,
validateGithubCacheStatusOutcome,
validateHfDownloadDetailsOutcome,
@@ -18623,6 +19369,13 @@ export {
validateSupportedQuantTypesOutcome,
validateSwitchVersionOutcome,
validateSwitchVersionParams,
+ validateTorchDriverAvailability,
+ validateTorchGpuVendor,
+ validateTorchReleaseCombination,
+ validateTorchReleaseDriverStatus,
+ validateTorchReleaseOptionsOutcome,
+ validateTorchReleaseOptionsStatus,
+ validateTorchReleaseRecommendation,
validateTorchRuntimePreview,
validateTorchRuntimePreviewArtifact,
validateTorchRuntimePreviewOutcome,
diff --git a/electron/src/preload.ts b/electron/src/preload.ts
index e00241c73..34710c4d4 100644
--- a/electron/src/preload.ts
+++ b/electron/src/preload.ts
@@ -67,6 +67,8 @@ import {
decodeSetDefaultVersionParams,
decodeInstallVersionOutcome,
decodeInstallVersionParams,
+ decodeGetTorchReleaseOptionsParams,
+ decodeTorchReleaseOptionsOutcome,
decodePreviewTorchRuntimeParams,
decodeTorchRuntimePreviewOutcome,
decodeGetTorchRuntimeProbeParams,
@@ -644,6 +646,10 @@ const electronAPI = {
return validatedApiCall('install_version', decodeInstallVersionOutcome, params);
},
get_torch_runtime_options: async () => validateTorchOptions(await apiCall('get_torch_runtime_options')),
+ get_torch_release_options: (tag: string) => {
+ const params = requireDecoded(decodeGetTorchReleaseOptionsParams({ tag }), 'get_torch_release_options request');
+ return validatedApiCall('get_torch_release_options', decodeTorchReleaseOptionsOutcome, params);
+ },
preview_torch_runtime: async (request: { tag: string; build: string; python: string; adapter: string }) => {
const params = requireDecoded(decodePreviewTorchRuntimeParams(request), 'preview_torch_runtime request');
return validatedApiCall('preview_torch_runtime', decodeTorchRuntimePreviewOutcome, params);
diff --git a/frontend/src/components/TorchDesktopProjection.test.tsx b/frontend/src/components/TorchDesktopProjection.test.tsx
index 333d950a8..c48b5d34c 100644
--- a/frontend/src/components/TorchDesktopProjection.test.tsx
+++ b/frontend/src/components/TorchDesktopProjection.test.tsx
@@ -87,6 +87,21 @@ describe('Torch desktop projection', () => {
{ tag: releaseTag, build: 'cpu', python: 'python3.12', adapter: 'flux2', qualification: 'unverified' },
],
});
+ const getReleaseOptions = vi.fn().mockResolvedValue({
+ tag: releaseTag,
+ status: 'matches',
+ completeScan: true,
+ checkedChannels: ['cpu', 'cu130'],
+ combinations: [
+ { build: 'cpu', python: 'python3.12', wheelUrl: 'https://download.pytorch.org/whl/cpu/torch.whl' },
+ { build: 'cu130', python: 'python3.12', wheelUrl: 'https://download.pytorch.org/whl/cu130/torch.whl' },
+ ],
+ issues: [],
+ detectedGpuVendors: [],
+ driverStatus: { nvidia: 'not_present', amd: 'not_present' },
+ recommended: { build: 'cpu', python: 'python3.12' },
+ recommendationNote: null,
+ });
const preview = vi.fn().mockResolvedValue({
status: 'resolved', preview: {
previewId, expiresInSeconds: 300, tag: releaseTag, build: 'cpu', python: 'python3.12', adapter: 'flux2',
@@ -107,6 +122,7 @@ describe('Torch desktop projection', () => {
const unconditionalStop = vi.fn();
vi.stubGlobal('electronAPI', {
get_torch_runtime_options: getOptions,
+ get_torch_release_options: getReleaseOptions,
preview_torch_runtime: preview,
get_torch_runtime_probe: probe,
get_runtime_profiles_snapshot: vi.fn().mockResolvedValue({ success: true, snapshot: { profiles: [
@@ -130,7 +146,7 @@ describe('Torch desktop projection', () => {
if (!installButton) throw new TypeError('Expected install button');
fireEvent.click(installButton);
expect(installVersion).not.toHaveBeenCalled();
- fireEvent.change(await screen.findByRole('combobox', { name: 'Image adapter' }), { target: { value: 'flux2' } });
+ expect(await screen.findByText('Pumas image dependencies are selected by Pumas for its FLUX.2 path; they are not part of upstream Torch.')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
await waitFor(() => expect(screen.getByText('SHA-256: abc123')).toBeInTheDocument());
expect(preview).toHaveBeenCalledWith({ tag: releaseTag, build: 'cpu', python: 'python3.12', adapter: 'flux2' });
diff --git a/frontend/src/components/TorchInstallPreview.test.tsx b/frontend/src/components/TorchInstallPreview.test.tsx
index 85dea0908..3030c60b4 100644
--- a/frontend/src/components/TorchInstallPreview.test.tsx
+++ b/frontend/src/components/TorchInstallPreview.test.tsx
@@ -1,180 +1,283 @@
-import { fireEvent, render, screen, waitFor } from '@testing-library/react';
-import { describe, expect, it, vi } from 'vitest';
+import { fireEvent, render, screen, waitFor, within } from '@testing-library/react';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
import { TorchInstallPreview } from './TorchInstallPreview';
-import type { TorchAlternativesOutcome, TorchRuntimeOptions, TorchRuntimePreview, TorchRuntimePreviewOutcome, TorchRuntimePreviewRequest } from '../types/torch-install';
+import type {
+ TorchAlternativesOutcome,
+ TorchReleaseOptionsOutcome,
+ TorchRuntimeOptions,
+ TorchRuntimePreviewOutcome,
+ TorchRuntimePreviewRequest,
+} from '../types/torch-install';
-const getOptions = vi.fn<() => Promise>();
+const getReleaseOptions = vi.fn<(tag: string) => Promise>();
+const getPresetOptions = vi.fn<() => Promise>();
const getPreview = vi.fn<(request: TorchRuntimePreviewRequest) => Promise>();
const getAlternatives = vi.fn<(tag: string, build: string, python: string) => Promise>();
vi.mock('../api/adapter', () => ({
api: {
- get_torch_runtime_options: () => getOptions(),
+ get_torch_release_options: (tag: string) => getReleaseOptions(tag),
+ get_torch_runtime_options: () => getPresetOptions(),
preview_torch_runtime: (request: TorchRuntimePreviewRequest) => getPreview(request),
find_torch_alternatives: (tag: string, build: string, python: string) => getAlternatives(tag, build, python),
},
}));
-const options = {
- builds: ['cpu', 'cu130'],
- pythons: [{ id: 'python3.12', label: 'Python 3.12 at /usr/bin/python3.12' }],
- adapters: ['none', 'flux2'],
- installed: [],
+const release: TorchReleaseOptionsOutcome = {
+ tag: 'v2.14.0', status: 'matches', completeScan: true,
+ checkedChannels: ['cpu', 'cu130'],
+ combinations: [
+ { build: 'cpu', python: 'python3.11', wheelUrl: 'https://download.pytorch.org/whl/cpu/torch.whl' },
+ { build: 'cu130', python: 'python3.12', wheelUrl: 'https://download.pytorch.org/whl/cu130/torch.whl' },
+ ],
+ issues: [], detectedGpuVendors: ['nvidia', 'intel'],
+ driverStatus: { nvidia: 'available', amd: 'not_present' },
+ recommended: { build: 'cu130', python: 'python3.12' }, recommendationNote: null,
+};
+const preset: TorchRuntimeOptions = {
+ builds: ['cpu', 'cu130', 'cu134', 'rocm'],
+ pythons: [{ id: 'python3.12', label: 'Python 3.12' }],
+ adapters: ['none', 'flux2'], installed: [],
preset: { tag: 'v2.9.1', build: 'cu130', python: 'python3.12', adapter: 'bundled' },
};
-const resolved = (preview: TorchRuntimePreview): TorchRuntimePreviewOutcome => ({ status: 'resolved', preview });
+beforeEach(() => {
+ vi.clearAllMocks();
+ getReleaseOptions.mockResolvedValue(release);
+ getPresetOptions.mockResolvedValue(preset);
+ getPreview.mockImplementation(async (request) => ({
+ status: 'resolved',
+ preview: {
+ ...request, previewId: 'review-1', expiresInSeconds: 300,
+ qualification: request.adapter === 'bundled' ? 'qualified' : 'unverified',
+ artifacts: [{ name: 'torch', version: '2.14.0', url: 'https://download.pytorch.org/torch.whl', sha256: 'abc123' }],
+ },
+ }));
+});
describe('TorchInstallPreview', () => {
- it('shows exact artifacts and installs only the reviewed selection', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockResolvedValue(resolved({
- previewId: 'review-1', expiresInSeconds: 300, tag: 'v2.10.0', build: 'cpu', python: 'python3.12',
- adapter: 'none', qualification: 'unverified',
- artifacts: [{ name: 'torch', version: '2.10.0', url: 'https://download.pytorch.org/whl/cpu/torch.whl', sha256: 'abc123' }],
- }));
+ it('uses the manager recommendation without requiring build, Python, or profile selectors', async () => {
const onInstall = vi.fn();
- render();
+ render();
- const install = screen.getByRole('button', { name: 'Install reviewed artifacts' });
- expect(install).toBeDisabled();
- expect(screen.getByText(/does not install Python/)).toBeInTheDocument();
- expect(screen.getByText(/Source compilation is a separate unsupported path/)).toBeInTheDocument();
- fireEvent.click(await screen.findByRole('button', { name: 'Check selected combination' }));
- await waitFor(() => expect(screen.getByText('SHA-256: abc123')).toBeInTheDocument());
- expect(getPreview).toHaveBeenCalledWith({ tag: 'v2.10.0', build: 'cpu', python: 'python3.12', adapter: 'none' });
- expect(screen.getByText('URL: https://download.pytorch.org/whl/cpu/torch.whl')).toBeInTheDocument();
- expect(install).toBeEnabled();
+ expect(await screen.findByText(/Recommended setup: cu130 · python3.12 · Pumas image dependencies/)).toBeInTheDocument();
+ expect(getReleaseOptions).toHaveBeenCalledWith('v2.14.0');
+ expect(getPresetOptions).not.toHaveBeenCalled();
+ expect(screen.getByText('Advanced setup').closest('details')).not.toHaveAttribute('open');
+ expect(screen.getByText(/selected by Pumas for its FLUX.2 path; they are not part of upstream Torch/)).toBeInTheDocument();
- fireEvent.change(screen.getByRole('combobox', { name: 'Torch build' }), { target: { value: 'cu130' } });
- expect(install).toBeDisabled();
fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
- await waitFor(() => expect(install).toBeDisabled());
- expect(onInstall).not.toHaveBeenCalled();
+ await waitFor(() => expect(getPreview).toHaveBeenCalledWith({ tag: 'v2.14.0', build: 'cu130', python: 'python3.12', adapter: 'flux2' }));
+ expect(await screen.findByText('SHA-256: abc123')).toBeInTheDocument();
+ fireEvent.click(screen.getByRole('button', { name: 'Install reviewed artifacts' }));
+ expect(onInstall).toHaveBeenCalledWith('review-1');
});
- it('locks the legacy preset and keeps an inconclusive probe from installing', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockResolvedValue({ status: 'rejected', reason: 'network_inconclusive', message: 'index unreachable' });
- const onInstall = vi.fn();
- render();
+ it('limits advanced build and Python overrides to this release’s returned combinations', async () => {
+ render();
+ fireEvent.click(await screen.findByText('Advanced setup'));
+ const build = screen.getByRole('combobox', { name: 'Torch build' });
+ expect(within(build).getAllByRole('option').map((option) => option.textContent)).toEqual(['Choose a build', 'cpu', 'cu130']);
+ expect(within(build).queryByRole('option', { name: /cu134|rocm/i })).not.toBeInTheDocument();
+ const python = screen.getByRole('combobox', { name: 'Installed Python' });
+ expect(within(python).getAllByRole('option').map((option) => option.textContent)).toEqual(['Choose installed Python', 'python3.12']);
+ fireEvent.change(build, { target: { value: 'cpu' } });
+ expect(python).toHaveValue('python3.11');
+ expect(within(python).getAllByRole('option').map((option) => option.textContent)).toEqual(['Choose installed Python', 'python3.11']);
+ fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
+ await waitFor(() => expect(getPreview).toHaveBeenCalledWith({ tag: 'v2.14.0', build: 'cpu', python: 'python3.11', adapter: 'flux2' }));
+ });
- expect(await screen.findByRole('combobox', { name: 'Torch build' })).toBeDisabled();
+ it('requires a deliberate advanced selection when no recommendation exists for a GPU-only release', async () => {
+ getReleaseOptions.mockResolvedValue({
+ ...release,
+ checkedChannels: ['cu132'],
+ combinations: [{ build: 'cu132', python: 'python3.12', wheelUrl: 'https://download.pytorch.org/whl/cu132/torch.whl' }],
+ recommended: null,
+ recommendationNote: 'No GPU driver could be verified.',
+ });
+ render();
+
+ expect(await screen.findByText(/No setup was recommended. Open Advanced setup/)).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Check selected combination' })).toBeDisabled();
+ expect(getPreview).not.toHaveBeenCalled();
+ fireEvent.click(screen.getByText('Advanced setup'));
+ const build = screen.getByRole('combobox', { name: 'Torch build' });
+ expect(build).toHaveValue('');
expect(screen.getByRole('combobox', { name: 'Installed Python' })).toBeDisabled();
+ fireEvent.change(build, { target: { value: 'cu132' } });
+ expect(screen.getByRole('combobox', { name: 'Installed Python' })).toHaveValue('python3.12');
fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
- expect(await screen.findByRole('alert')).toHaveTextContent('Network inconclusive');
- expect(screen.getByRole('button', { name: 'Install fixed preset' })).toBeDisabled();
- expect(screen.queryByRole('button', { name: 'Find compatible alternatives' })).not.toBeInTheDocument();
- expect(onInstall).not.toHaveBeenCalled();
+ await waitFor(() => expect(getPreview).toHaveBeenCalledWith({ tag: 'v2.14.0', build: 'cu132', python: 'python3.12', adapter: 'flux2' }));
});
- it('offers the qualified preset and an unverified exact-wheel choice for the same release', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockImplementation(async (request) => resolved({
- previewId: request.adapter === 'bundled' ? 'qualified-preset' : 'upstream-cpu',
- expiresInSeconds: 300,
- ...request,
- qualification: request.adapter === 'bundled' ? 'qualified' : 'unverified',
- artifacts: [],
- }));
+ it('shows the manager’s driver caveat alongside a CPU recommendation', async () => {
+ getReleaseOptions.mockResolvedValue({
+ ...release,
+ driverStatus: { ...release.driverStatus, nvidia: 'unavailable' },
+ recommended: { build: 'cpu', python: 'python3.11' },
+ recommendationNote: 'NVIDIA hardware was detected, but its driver could not be verified. CPU is recommended.',
+ });
+ render();
+ expect(await screen.findByText(/Recommended setup: cpu · python3.11/)).toBeInTheDocument();
+ expect(screen.getByText(/driver could not be verified. CPU is recommended/)).toBeInTheDocument();
+ });
+
+ it('makes Core runtime only a deliberate advanced choice', async () => {
+ render();
+ fireEvent.click(await screen.findByText('Advanced setup'));
+ fireEvent.change(screen.getByRole('combobox', { name: 'Dependency profile' }), { target: { value: 'none' } });
+ expect(screen.getByText(/Recommended setup: cu130 · python3.12 · Core runtime only/)).toBeInTheDocument();
+ fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
+ await waitFor(() => expect(getPreview).toHaveBeenCalledWith({ tag: 'v2.14.0', build: 'cu130', python: 'python3.12', adapter: 'none' }));
+ });
+
+ it('does not imply an incomplete discovery found no wheels', async () => {
+ getReleaseOptions.mockResolvedValue({ ...release, status: 'inconclusive', completeScan: false, combinations: [], recommended: null, issues: ['index timed out'] });
+ render();
+ expect(await screen.findByText(/Release discovery was inconclusive. Some official wheels may exist/)).toBeInTheDocument();
+ expect(screen.getByText('index timed out')).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Check selected combination' })).toBeDisabled();
+ expect(screen.queryByText(/No official wheel matches were found/)).not.toBeInTheDocument();
+ });
+
+ it('requires an installed compatible Python before checking release wheels', async () => {
+ getReleaseOptions.mockResolvedValue({
+ ...release, status: 'inconclusive', completeScan: false,
+ checkedChannels: [], combinations: [], recommended: null,
+ issues: ['No installed CPython 3.10–3.13 interpreter on Linux x86_64 could inspect official wheels'],
+ });
+ render();
+
+ expect(await screen.findByText(/No installed CPython 3.10–3.13 interpreter/)).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Check selected combination' })).toBeDisabled();
+ expect(screen.getByRole('button', { name: 'Install reviewed artifacts' })).toBeDisabled();
+ expect(getPreview).not.toHaveBeenCalled();
+ });
+
+ it('keeps the qualified v2.9.1 bundled preset and an unverified upstream choice distinct', async () => {
+ getReleaseOptions.mockResolvedValue({ ...release, tag: 'v2.9.1' });
const onInstall = vi.fn();
render();
-
- const presetChoice = await screen.findByRole('button', { name: 'Qualified fixed preset' });
- expect(presetChoice).toHaveAttribute('aria-pressed', 'true');
- expect(screen.getByRole('combobox', { name: 'Torch build' })).toBeDisabled();
+ const qualified = await screen.findByRole('button', { name: 'Qualified fixed preset' });
+ expect(qualified).toHaveAttribute('aria-pressed', 'true');
+ expect(screen.queryByRole('combobox', { name: 'Torch build' })).not.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
- await waitFor(() => expect(getPreview).toHaveBeenCalledWith({
- tag: 'v2.9.1', build: 'cu130', python: 'python3.12', adapter: 'bundled',
- }));
+ await waitFor(() => expect(getPreview).toHaveBeenCalledWith({ tag: 'v2.9.1', build: 'cu130', python: 'python3.12', adapter: 'bundled' }));
fireEvent.click(screen.getByRole('button', { name: 'Install fixed preset' }));
- expect(onInstall).toHaveBeenCalledWith('qualified-preset');
+ expect(onInstall).toHaveBeenCalledWith('review-1');
fireEvent.click(screen.getByRole('button', { name: 'Other official wheels (unverified)' }));
expect(screen.getByRole('button', { name: 'Install reviewed artifacts' })).toBeDisabled();
- expect(screen.getByRole('combobox', { name: 'Torch build' })).toBeEnabled();
- expect(screen.getByRole('combobox', { name: 'Image adapter' })).toBeEnabled();
- expect(screen.getByRole('combobox', { name: 'Image adapter' })).toHaveValue('none');
+ expect(screen.getByText(/Pumas image dependencies are selected by Pumas/)).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Check selected combination' }));
- await waitFor(() => expect(getPreview).toHaveBeenLastCalledWith({
- tag: 'v2.9.1', build: 'cpu', python: 'python3.12', adapter: 'none',
- }));
- expect(screen.getByText(/Artifact resolution is unverified/)).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: 'Install reviewed artifacts' }));
- expect(onInstall).toHaveBeenLastCalledWith('upstream-cpu');
+ await waitFor(() => expect(getPreview).toHaveBeenLastCalledWith({ tag: 'v2.9.1', build: 'cu130', python: 'python3.12', adapter: 'flux2' }));
+ expect(await screen.findByText(/Artifact resolution is unverified/)).toBeInTheDocument();
});
- it('requires an already installed compatible Python before checking wheels', async () => {
- getOptions.mockResolvedValue({ ...options, pythons: [] });
- render();
- expect(await screen.findByText(/Install CPython 3.10–3.13 for Linux x86_64/)).toBeInTheDocument();
+ it('leaves the upstream v2.9.1 choice unset when the manager has no recommendation', async () => {
+ getReleaseOptions.mockResolvedValue({
+ ...release, tag: 'v2.9.1', recommended: null,
+ checkedChannels: ['cu132'],
+ combinations: [{ build: 'cu132', python: 'python3.12', wheelUrl: 'https://download.pytorch.org/whl/cu132/torch.whl' }],
+ });
+ render();
+ fireEvent.click(await screen.findByRole('button', { name: 'Other official wheels (unverified)' }));
+ expect(await screen.findByText(/No setup was recommended. Open Advanced setup/)).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Check selected combination' })).toBeDisabled();
+ expect(getPreview).not.toHaveBeenCalled();
});
- it('reports a failed wheel report validation distinctly without offering alternatives', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockResolvedValue({ status: 'rejected', reason: 'validation_failed', message: 'Unsupported combination: hash missing for torch' });
- render();
-
+ it('keeps rejected previews from installing and classifies validation by enum', async () => {
+ getPreview.mockResolvedValue({ status: 'rejected', reason: 'validation_failed', message: 'Unsupported combination: missing hash' });
+ render();
fireEvent.click(await screen.findByRole('button', { name: 'Check selected combination' }));
- expect(await screen.findByRole('alert')).toHaveTextContent('Resolved wheel report failed validation: Unsupported combination: hash missing for torch');
- expect(screen.getByText(/cpu · python3.12 · none: failed validation/)).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Install reviewed artifacts' })).toBeDisabled();
+ expect(await screen.findByRole('alert')).toHaveTextContent('Resolved wheel report failed validation: Unsupported combination: missing hash');
expect(screen.queryByRole('button', { name: 'Find compatible alternatives' })).not.toBeInTheDocument();
- expect(screen.queryByText(/Probe inconclusive/)).not.toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Install reviewed artifacts' })).toBeDisabled();
});
- it('treats transport exceptions as inconclusive even when their text resembles an unsupported outcome', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockRejectedValue(new Error('Unsupported combination: transport failed'));
- render();
+ it('offers official wheel alternatives only after an unsupported preview and rechecks the chosen match', async () => {
+ getPreview.mockResolvedValueOnce({ status: 'rejected', reason: 'unsupported', message: 'selected dependencies have no matching wheel' });
+ getPreview.mockImplementationOnce(async (request) => ({
+ status: 'resolved',
+ preview: { ...request, previewId: 'review-cpu', expiresInSeconds: 300, qualification: 'unverified', artifacts: [] },
+ }));
+ getAlternatives.mockResolvedValue({
+ selectedTag: 'v2.14.0', selectedBuild: 'cu130', selectedPython: 'python3.12',
+ status: 'matches', incomplete: true, dependenciesNotChecked: true,
+ checkedBuilds: ['cu130', 'cpu'], issues: [],
+ matches: [{ tag: 'v2.14.0', build: 'cpu', python: 'python3.11', wheelUrl: 'https://download.pytorch.org/whl/cpu/torch.whl', sha256: 'a'.repeat(64) }],
+ });
+ const onInstall = vi.fn();
+ render();
fireEvent.click(await screen.findByRole('button', { name: 'Check selected combination' }));
- expect(await screen.findByRole('alert')).toHaveTextContent('Probe inconclusive: Unsupported combination: transport failed');
- expect(screen.queryByRole('button', { name: 'Find compatible alternatives' })).not.toBeInTheDocument();
+ expect(await screen.findByRole('alert')).toHaveTextContent('Unsupported combination');
expect(screen.getByRole('button', { name: 'Install reviewed artifacts' })).toBeDisabled();
+ fireEvent.click(screen.getByRole('button', { name: 'Find compatible alternatives' }));
+ expect(await screen.findByText('Official Torch wheel matches only')).toBeInTheDocument();
+ expect(screen.getByText(/Other dependencies have not been checked/)).toBeInTheDocument();
+ expect(getAlternatives).toHaveBeenCalledWith('v2.14.0', 'cu130', 'python3.12');
+ fireEvent.click(screen.getByRole('button', { name: 'Preview v2.14.0 · cpu · python3.11' }));
+ await waitFor(() => expect(getPreview).toHaveBeenLastCalledWith({ tag: 'v2.14.0', build: 'cpu', python: 'python3.11', adapter: 'flux2' }));
+ expect(await screen.findByText('Exact artifacts resolved')).toBeInTheDocument();
+ fireEvent.click(screen.getByRole('button', { name: 'Install reviewed artifacts' }));
+ expect(onInstall).toHaveBeenCalledWith('review-cpu');
});
- it('offers official wheel matches only after unsupported preview and rechecks a chosen candidate', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockResolvedValueOnce({ status: 'rejected', reason: 'unsupported', message: 'no matching wheel' });
- getPreview.mockResolvedValueOnce(resolved({
- previewId: 'review-cu130', expiresInSeconds: 300, tag: 'v2.10.0', build: 'cu130', python: 'python3.12',
- adapter: 'none', qualification: 'unverified', artifacts: [],
+ it('shows and previews only host-eligible alternatives from the release combinations', async () => {
+ getReleaseOptions.mockResolvedValue({
+ ...release,
+ checkedChannels: ['cpu'],
+ combinations: [{ build: 'cpu', python: 'python3.11', wheelUrl: 'https://download.pytorch.org/whl/cpu/torch.whl' }],
+ recommended: { build: 'cpu', python: 'python3.11' },
+ });
+ getPreview.mockResolvedValueOnce({ status: 'rejected', reason: 'unsupported', message: 'dependency unavailable' });
+ getPreview.mockImplementationOnce(async (request) => ({
+ status: 'resolved',
+ preview: { ...request, previewId: 'eligible-cpu', expiresInSeconds: 300, qualification: 'unverified', artifacts: [] },
}));
getAlternatives.mockResolvedValue({
- selectedTag: 'v2.10.0', selectedBuild: 'cpu', selectedPython: 'python3.12',
+ selectedTag: 'v2.14.0', selectedBuild: 'cpu', selectedPython: 'python3.11',
status: 'matches', incomplete: true, dependenciesNotChecked: true,
- checkedBuilds: ['cpu', 'cu130'], issues: [],
- matches: [{ tag: 'v2.10.0', build: 'cu130', python: 'python3.12', wheelUrl: 'https://download.pytorch.org/torch.whl', sha256: 'a'.repeat(64) }],
+ checkedBuilds: ['cpu', 'cu130', 'rocm6.4'], issues: [],
+ matches: [
+ { tag: 'v2.14.0', build: 'cpu', python: 'python3.11' },
+ { tag: 'v2.14.0', build: 'cu130', python: 'python3.11' },
+ { tag: 'v2.14.0', build: 'rocm6.4', python: 'python3.11' },
+ { tag: 'v2.14.0', build: 'cpu', python: 'python3.12' },
+ { tag: 'v2.13.0', build: 'cpu', python: 'python3.11' },
+ ],
});
- render();
+ render();
fireEvent.click(await screen.findByRole('button', { name: 'Check selected combination' }));
fireEvent.click(await screen.findByRole('button', { name: 'Find compatible alternatives' }));
- expect(await screen.findByText('Official Torch wheel matches only')).toBeInTheDocument();
- expect(screen.getByText(/Other dependencies have not been checked/)).toBeInTheDocument();
- expect(getAlternatives).toHaveBeenCalledWith('v2.10.0', 'cpu', 'python3.12');
- fireEvent.click(screen.getByRole('button', { name: 'Preview v2.10.0 · cu130 · python3.12' }));
- await waitFor(() => expect(getPreview).toHaveBeenLastCalledWith({ tag: 'v2.10.0', build: 'cu130', python: 'python3.12', adapter: 'none' }));
- expect(await screen.findByText('Exact artifacts resolved')).toBeInTheDocument();
+ expect(await screen.findByText('Checked builds: cpu')).toBeInTheDocument();
+ expect(screen.getAllByRole('button', { name: /^Preview v/ })).toHaveLength(1);
+ expect(screen.queryByRole('button', { name: /Preview .*cu130|Preview .*rocm6\.4|Preview v2\.13\.0/ })).not.toBeInTheDocument();
+ fireEvent.click(screen.getByRole('button', { name: 'Preview v2.14.0 · cpu · python3.11' }));
+ await waitFor(() => expect(getPreview).toHaveBeenCalledTimes(2));
+ expect(getPreview).toHaveBeenLastCalledWith({ tag: 'v2.14.0', build: 'cpu', python: 'python3.11', adapter: 'flux2' });
});
it('keeps a long artifact list and its install action inside the scrollable preview region', async () => {
- getOptions.mockResolvedValue(options);
- getPreview.mockResolvedValue(resolved({
- previewId: 'review-many', expiresInSeconds: 300, tag: 'v2.10.0', build: 'cpu', python: 'python3.12',
- adapter: 'none', qualification: 'unverified',
- artifacts: Array.from({ length: 30 }, (_, index) => ({
- name: `wheel-${index}`, version: '1.0',
- url: `https://download.pytorch.org/whl/cpu/wheel-${index}.whl`,
- sha256: 'a'.repeat(64),
- })),
+ getPreview.mockImplementation(async (request) => ({
+ status: 'resolved',
+ preview: {
+ ...request, previewId: 'review-many', expiresInSeconds: 300, qualification: 'unverified',
+ artifacts: Array.from({ length: 30 }, (_, index) => ({
+ name: `wheel-${index}`, version: '1.0',
+ url: `https://download.pytorch.org/whl/cu130/wheel-${index}.whl`,
+ sha256: 'a'.repeat(64),
+ })),
+ },
}));
- render();
+ render();
fireEvent.click(await screen.findByRole('button', { name: 'Check selected combination' }));
- const previewRegion = screen.getByRole('region', { name: 'Torch installation preview for v2.10.0' });
+ const previewRegion = screen.getByRole('region', { name: 'Torch installation preview for v2.14.0' });
await waitFor(() => expect(screen.getByText('wheel-29 1.0')).toBeInTheDocument());
expect(previewRegion).toHaveClass('flex-1', 'min-h-0', 'overflow-y-auto');
expect(previewRegion).toContainElement(screen.getByRole('button', { name: 'Install reviewed artifacts' }));
diff --git a/frontend/src/components/TorchInstallPreview.tsx b/frontend/src/components/TorchInstallPreview.tsx
index caa2317db..a07a37201 100644
--- a/frontend/src/components/TorchInstallPreview.tsx
+++ b/frontend/src/components/TorchInstallPreview.tsx
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from 'react';
import { ArrowLeft, Loader2 } from 'lucide-react';
import { api } from '../api/adapter';
-import type { TorchAlternativesOutcome, TorchRuntimeOptions, TorchRuntimePreview, TorchRuntimePreviewOutcome, TorchRuntimePreviewRejectReason } from '../types/torch-install';
+import type { TorchAlternativeMatch, TorchAlternativesOutcome, TorchReleaseOptionsOutcome, TorchRuntimeOptions, TorchRuntimePreview, TorchRuntimePreviewOutcome, TorchRuntimePreviewRejectReason } from '../types/torch-install';
interface TorchInstallPreviewProps {
tag: string;
@@ -35,10 +35,11 @@ function errorText(error: unknown): string {
}
export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPreviewProps) {
- const [options, setOptions] = useState(null);
+ const [presetOptions, setPresetOptions] = useState(null);
+ const [releaseOptions, setReleaseOptions] = useState(null);
const [build, setBuild] = useState('');
const [python, setPython] = useState('');
- const [adapter, setAdapter] = useState('none');
+ const [adapter, setAdapter] = useState('flux2');
const [selectionMode, setSelectionMode] = useState<'preset' | 'upstream'>('upstream');
const [preview, setPreview] = useState(null);
const [loadingOptions, setLoadingOptions] = useState(true);
@@ -50,11 +51,13 @@ export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPrev
const [alternativesBusy, setAlternativesBusy] = useState(false);
const [alternativesError, setAlternativesError] = useState(null);
const requestNumber = useRef(0);
+ const selectionModeRef = useRef<'preset' | 'upstream'>('upstream');
useEffect(() => {
let active = true;
setLoadingOptions(true);
- setOptions(null);
+ setPresetOptions(null);
+ setReleaseOptions(null);
setPreview(null);
setError(null);
setRejection(null);
@@ -62,19 +65,37 @@ export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPrev
setAlternatives(null);
setAlternativesError(null);
setAlternativesBusy(false);
- void api.get_torch_runtime_options().then((result) => {
+ selectionModeRef.current = tag === 'v2.9.1' ? 'preset' : 'upstream';
+ setSelectionMode(selectionModeRef.current);
+ setBuild('');
+ setPython('');
+ setAdapter(tag === 'v2.9.1' ? 'bundled' : 'flux2');
+ const releaseRequest = api.get_torch_release_options(tag).then((result) => {
if (!active) return;
- const preset = result.preset.tag === tag ? result.preset : null;
- setOptions(result);
- setSelectionMode(preset ? 'preset' : 'upstream');
- setBuild(preset?.build ?? result.builds[0] ?? '');
- setPython(preset?.python ?? result.pythons[0]?.id ?? '');
- setAdapter(preset?.adapter ?? result.adapters[0] ?? 'none');
+ setReleaseOptions(result);
+ if (tag === 'v2.9.1' && selectionModeRef.current === 'preset') return;
+ const choice = result.combinations.find((item) => item.build === result.recommended?.build && item.python === result.recommended.python);
+ setBuild(choice?.build ?? '');
+ setPython(choice?.python ?? '');
}).catch((cause: unknown) => {
- if (active) setError(errorText(cause));
+ if (active) setError(`Release discovery inconclusive: ${errorText(cause)}`);
}).finally(() => {
- if (active) setLoadingOptions(false);
+ if (active && tag !== 'v2.9.1') setLoadingOptions(false);
});
+ const presetRequest = tag === 'v2.9.1' ? api.get_torch_runtime_options().then((result) => {
+ if (!active) return;
+ setPresetOptions(result);
+ if (selectionModeRef.current === 'preset') {
+ setBuild(result.preset.build);
+ setPython(result.preset.python);
+ }
+ }).catch((cause: unknown) => {
+ if (active) setError(`Fixed preset choices unavailable: ${errorText(cause)}`);
+ }).finally(() => {
+ if (active) setLoadingOptions(false);
+ }) : Promise.resolve();
+ void releaseRequest;
+ void presetRequest;
return () => {
active = false;
requestNumber.current += 1;
@@ -142,28 +163,33 @@ export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPrev
}
};
- const isPresetRelease = options?.preset.tag === tag;
+ const isPresetRelease = tag === 'v2.9.1';
const fixedPreset = isPresetRelease && selectionMode === 'preset';
const chooseMode = (mode: 'preset' | 'upstream') => {
- if (!options) return;
invalidatePreview();
+ selectionModeRef.current = mode;
setSelectionMode(mode);
if (mode === 'preset') {
- setBuild(options.preset.build);
- setPython(options.preset.python);
- setAdapter(options.preset.adapter);
+ setBuild(presetOptions?.preset.build ?? '');
+ setPython(presetOptions?.preset.python ?? '');
+ setAdapter('bundled');
} else {
- setBuild(options.builds[0] ?? '');
- setPython(options.pythons[0]?.id ?? '');
- setAdapter(options.adapters[0] ?? 'none');
+ const choice = releaseOptions?.combinations.find((item) => item.build === releaseOptions.recommended?.build && item.python === releaseOptions.recommended.python);
+ setBuild(choice?.build ?? '');
+ setPython(choice?.python ?? '');
+ setAdapter('flux2');
}
};
- const availableBuilds = fixedPreset ? [options.preset.build] : options?.builds ?? [];
- const availablePythons = fixedPreset
- ? [{ id: options.preset.python, label: `Python ${options.preset.python.replace('python', '')} (fixed preset)` }]
- : options?.pythons ?? [];
- const availableAdapters = fixedPreset ? [options.preset.adapter] : options?.adapters ?? [];
- const hasSelectedPython = options?.pythons.some((choice) => choice.id === python) ?? false;
+ const availableBuilds = [...new Set(releaseOptions?.combinations.map((choice) => choice.build) ?? [])];
+ const availablePythons = [...new Set(releaseOptions?.combinations.filter((choice) => choice.build === build).map((choice) => choice.python) ?? [])];
+ const isEligibleAlternative = (match: TorchAlternativeMatch) => match.tag === tag
+ && releaseOptions?.tag === tag
+ && releaseOptions.combinations.some((choice) => choice.build === match.build && choice.python === match.python);
+ const eligibleAlternatives = alternatives?.matches.filter(isEligibleAlternative) ?? [];
+ const eligibleCheckedBuilds = alternatives?.checkedBuilds.filter((choice) => availableBuilds.includes(choice)) ?? [];
+ const hasSelectedPython = fixedPreset
+ ? Boolean(presetOptions?.pythons.some((choice) => choice.id === python))
+ : Boolean(releaseOptions?.combinations.some((choice) => choice.build === build && choice.python === python));
const canInstall = preview !== null && Boolean(preview.previewId)
&& preview.tag === tag && preview.build === build
&& preview.python === python && preview.adapter === adapter;
@@ -191,32 +217,53 @@ export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPrev
This flow installs official binary wheels only. Source compilation is a separate unsupported path and is never used as a fallback.
- {loadingOptions ? : options && (
+ {loadingOptions ? : (releaseOptions || presetOptions) && (
<>
{isPresetRelease &&
}
{fixedPreset && This release has one qualified Python 3.12 / CUDA 13.0 build.
}
-
-
-
-
-
- {options.pythons.length === 0 && No supported installed Python interpreter was found. Install CPython 3.10–3.13 for Linux x86_64, then reopen this preview.
}
- {fixedPreset && options.pythons.length > 0 && !hasSelectedPython && This fixed preset requires installed CPython 3.12. Install it, then reopen this preview.
}
+ {fixedPreset ? Recommended setup: {build} · {python} · bundled image dependencies (fixed).
: <>
+ {build && python && {releaseOptions?.recommended?.build === build && releaseOptions.recommended.python === python ? 'Recommended setup' : 'Selected setup'}: {build} · {python} · {adapter === 'flux2' ? 'Pumas image dependencies' : 'Core runtime only'}.
}
+ {!build && releaseOptions?.combinations.length ? No setup was recommended. Open Advanced setup and choose a build to continue.
: null}
+ {releaseOptions?.recommendationNote && {releaseOptions.recommendationNote}
}
+ {adapter === 'flux2' && Pumas image dependencies are selected by Pumas for its FLUX.2 path; they are not part of upstream Torch.
}
+
+ Advanced setup
+
+
+
+
+
+
+ >}
+ {fixedPreset && presetOptions?.pythons.length === 0 && No supported installed Python interpreter was found. Install CPython 3.10–3.13 for Linux x86_64, then reopen this preview.
}
+ {fixedPreset && Boolean(presetOptions?.pythons.length) && !hasSelectedPython && This fixed preset requires installed CPython 3.12. Install it, then reopen this preview.
}
+ {!fixedPreset && releaseOptions?.status === 'inconclusive' && Release discovery was inconclusive. Some official wheels may exist; retry later or review the available combinations.
}
+ {!fixedPreset && releaseOptions?.status === 'none' && No official wheel matches were found in this scan for an installed compatible Python.
}
+ {!fixedPreset && releaseOptions && !releaseOptions.completeScan && releaseOptions.status !== 'inconclusive' && This wheel scan was incomplete. Other combinations may still exist.
}
+ {!fixedPreset && releaseOptions?.issues.map((issue, index) => {issue}
)}
@@ -236,13 +283,14 @@ export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPrev
{alternatives &&
Official Torch wheel matches only
Other dependencies have not been checked. Choose a match to run the normal exact preview for the full environment.
-
Checked builds: {alternatives.checkedBuilds.join(', ') || 'none'}
+
Checked builds: {eligibleCheckedBuilds.join(', ') || 'none'}
{alternatives.status === 'none' &&
No official Torch wheel matches were found for this release and Python.
}
{alternatives.status === 'inconclusive' &&
Alternative search was inconclusive.
}
{alternatives.issues.map((issue, index) =>
{issue}
)}
- {alternatives.matches.length > 0 &&
{alternatives.matches.map((match) => (
+ {eligibleAlternatives.length > 0 && {eligibleAlternatives.map((match) => (
-
- {loadingOptions ? : (releaseOptions || presetOptions) && (
+ {loadingOptions ? : runtimeOptions && (releaseOptions || fixedPreset) && (
<>
{isPresetRelease &&
@@ -251,20 +260,19 @@ export function TorchInstallPreview({ tag, onBack, onInstall }: TorchInstallPrev
>}
- {fixedPreset && presetOptions?.pythons.length === 0 && No supported installed Python interpreter was found. Install CPython 3.10–3.13 for Linux x86_64, then reopen this preview.
}
- {fixedPreset && Boolean(presetOptions?.pythons.length) && !hasSelectedPython && This fixed preset requires installed CPython 3.12. Install it, then reopen this preview.
}
+ {fixedPreset && runtimeOptions.pythons.length === 0 && No compatible installed CPython interpreter was found. Install host-matched CPython 3.10–3.13, then reopen this preview.
}
+ {fixedPreset && runtimeOptions.pythons.length > 0 && !hasSelectedPython && This fixed preset requires installed CPython 3.12. Install it, then reopen this preview.
}
{!fixedPreset && releaseOptions?.status === 'inconclusive' && Release discovery was inconclusive. Some official wheels may exist; retry later or review the available combinations.
}
{!fixedPreset && releaseOptions?.status === 'none' && No official wheel matches were found in this scan for an installed compatible Python.
}
{!fixedPreset && releaseOptions && !releaseOptions.completeScan && releaseOptions.status !== 'inconclusive' && This wheel scan was incomplete. Other combinations may still exist.
}
{!fixedPreset && releaseOptions?.issues.map((issue, index) => {issue}
)}
-