diff --git a/.github/scripts/ci_changes.py b/.github/scripts/ci_changes.py index 870a0ef228..214266a2a0 100644 --- a/.github/scripts/ci_changes.py +++ b/.github/scripts/ci_changes.py @@ -1309,6 +1309,34 @@ def repo_docs_sources(root: Path = REPO_ROOT) -> frozenset[str]: ) +# A static or const typed as the platform's ExplicitProductionSetting, not a +# product's own type of the same name. +EXPLICIT_SETTING_DECLARATION = re.compile( + r"\b(?:static|const)\s+\w+\s*:\s*(?:\w+::)*ExplicitProductionSetting\s*=" +) + + +def has_development_setting(path: str) -> bool: + # Match the posture generator's Rust source scope and text prefilter, + # which reads development and explicit production settings. + source = Path(path) + parts = source.parts + if ( + len(parts) < 4 + or parts[0] != "crates" + or parts[2] != "src" + or source.suffix != ".rs" + or "tests" in parts[3:-1] + or source.name.endswith("_tests.rs") + ): + return False + source = REPO_ROOT / source + if source.is_symlink() or not source.is_file(): + return False + text = source.read_text(encoding="utf-8") + return "DevelopmentSetting" in text or bool(EXPLICIT_SETTING_DECLARATION.search(text)) + + CONFIG_FORMATS = "products/platform/config-formats.yaml" CONFIG_FORMAT_PATH = re.compile( r"^\s*(?:-\s+)?(?:path|file|example|driftCheck|differentialTest):\s*(\S+)\s*$", @@ -1565,6 +1593,11 @@ def classify( # The docs suite scans every current page generated from repo-docs.yaml, # so a change to one of their owning sources needs a docs run. repo_docs = repo_docs_sources() + # The posture drift check reads the Rust declarations named by this lookup. + posture_lookup = REPO_ROOT / "docs/site/src/data/posture-diagnostics.json" + posture_sources = frozenset( + json.loads(posture_lookup.read_text(encoding="utf-8"))["sources"] + ) docs = complete or "docs" in security_workflow_gates or any( matches( path, @@ -1645,6 +1678,8 @@ def classify( "release/notes/*", ) or path in repo_docs + or path in posture_sources + or has_development_setting(path) or path in { # An operator document outside the site that the docs release-pin diff --git a/.github/scripts/test_ci_changes.py b/.github/scripts/test_ci_changes.py index e6b2b3fba3..db11031bd6 100644 --- a/.github/scripts/test_ci_changes.py +++ b/.github/scripts/test_ci_changes.py @@ -7,13 +7,17 @@ import json import os import re +import runpy import shlex import subprocess import sys import tempfile import unittest -from pathlib import Path +from collections.abc import Callable +from copy import deepcopy +from pathlib import Path, PurePosixPath from typing import Any +from unittest.mock import patch import yaml @@ -395,6 +399,258 @@ def test_orphan_platform_crates_and_oid4vci_fuzz_surface_are_absent(self) -> Non ) +class RustGateInventoryTest(unittest.TestCase): + PACKAGE_RUNNER = ["python3", ".github/scripts/run_cargo_packages.py"] + + @classmethod + def setUpClass(cls) -> None: + root = Path(__file__).resolve().parents[2] + cls.live_workflow = yaml.safe_load( + (root / ".github/workflows/ci.yml").read_text(encoding="utf-8") + ) + reach_gate = runpy.run_path( + str(root / "products/platform/scripts/check_dev_runner_reach.py") + ) + # The tests also start the Evidence runtime alongside its development host. + cls.dev_host_packages = reach_gate["DEV_RUNNER_HOSTS"] | {"registry-evidence"} + + def setUp(self) -> None: + self.workflow = deepcopy(self.live_workflow) + self.gates = self.assert_inventory(self.workflow) + + def assert_inventory( + self, workflow: dict[str, Any] + ) -> dict[str, tuple[list[dict[str, Any]], int]]: + formatting = self.require_step( + workflow, "rust-quality", "Format", ["cargo", "fmt", "--check"] + ) + clippy = self.require_step( + workflow, + "rust-quality", + "Affected package clippy", + [*self.PACKAGE_RUNNER, "clippy"], + env={"CI_RUST_PACKAGES": "${{ needs.changes.outputs.rust_packages }}"}, + ) + package_tests = self.require_step( + workflow, + "rust-tests", + "Affected package tests", + [*self.PACKAGE_RUNNER, "test"], + env={ + "CI_RUST_PACKAGES": "${{ toJSON(matrix.packages) }}", + "CI_RUST_ALL_FEATURES": "${{ matrix.all_features }}", + }, + ) + build = self.require_step( + workflow, + "rust-tests", + "Build the rstack dev hosts", + self.builds_dev_hosts, + condition=( + "matrix.name == 'developer-tools' " + "&& contains(matrix.packages, 'registry-rstack')" + ), + ) + self.assertLess( + build[1], + package_tests[1], + "Build the rstack dev hosts before affected package tests", + ) + manifest = self.require_step( + workflow, + "rust-tests", + "Manifest profile validation", + [ + "cargo", "run", "--locked", "-p", "registry-manifest-cli", + "--", "validate-profiles", "profiles", + ], + condition="matrix.name == 'manifest'", + working_directory="products/manifest", + ) + return { + "format": formatting, + "clippy": clippy, + "test": package_tests, + "build": build, + "manifest": manifest, + } + + def builds_dev_hosts(self, arguments: list[str]) -> bool: + options, packages = arguments[4::2], arguments[5::2] + return ( + arguments[:4] == ["cargo", "build", "--locked", "--bins"] + and options == ["-p"] * len(self.dev_host_packages) + and len(packages) == len(self.dev_host_packages) + and set(packages) == self.dev_host_packages + ) + + def require_step( + self, + workflow: dict[str, Any], + job_id: str, + description: str, + command: list[str] | Callable[[list[str]], bool], + *, + condition: str = "success()", + working_directory: str = ".", + env: dict[str, str] | None = None, + ) -> tuple[list[dict[str, Any]], int]: + job = workflow["jobs"].get(job_id, {}) + self.assertIs( + job.get("continue-on-error", False), + False, + f"{job_id}: {description} must propagate failure", + ) + defaults = ( + workflow.get("defaults", {}).get("run", {}) + | job.get("defaults", {}).get("run", {}) + ) + job_env = workflow.get("env", {}) | job.get("env", {}) + steps = job.get("steps", []) + for index, step in enumerate(steps): + step_condition = step.get("if", "success()") + if ( + isinstance(step_condition, str) + and step_condition.startswith("${{") + and step_condition.endswith("}}") + ): + step_condition = step_condition[3:-2].strip() + if ( + not isinstance(step_condition, str) + or self.condition_tokens(step_condition) != self.condition_tokens(condition) + or step.get("continue-on-error", False) is not False + ): + continue + directory = step.get("working-directory", defaults.get("working-directory", ".")) + if PurePosixPath(directory) != PurePosixPath(working_directory): + continue + if step.get("shell", defaults.get("shell", "bash")) not in {"bash", "sh"}: + continue + effective_env = job_env | step.get("env", {}) + if env is not None and any( + effective_env.get(key) != value for key, value in env.items() + ): + continue + + # A folded YAML scalar is already one shell line here. Join + # shell continuations between words, leaving other line breaks intact. + run = re.sub(r"(?<=[ \t])\\\n", "", step.get("run", "")).strip() + if not run or "\n" in run: + continue + try: + arguments = shlex.split(run) + except ValueError: + continue + matches = command(arguments) if callable(command) else arguments == command + if matches: + return steps, index + self.fail(f"{job_id}: missing {description} with its required inputs") + + @staticmethod + def condition_tokens(condition: str) -> list[str]: + # Preserve whitespace inside GitHub's single-quoted string literals. + return re.findall(r"'(?:''|[^'])*'|[\w.-]+|==|!=|&&|\|\||\S", condition) + + def step(self, gate: str) -> dict[str, Any]: + steps, index = self.gates[gate] + return steps[index] + + def test_real_workflow_has_the_rust_gates(self) -> None: + self.assert_inventory(self.live_workflow) + + def test_equivalent_step_labels_and_command_formatting_pass(self) -> None: + runner = " ".join(self.PACKAGE_RUNNER) + for gate, folded in ( + ("format", "cargo fmt\n '--check'"), + ("clippy", f"{runner}\n 'clippy'"), + ("test", f"{runner}\n 'test'"), + ( + "manifest", + "cargo run --locked -p registry-manifest-cli\n -- validate-profiles 'profiles'", + ), + ): + step = self.step(gate) + step.update(yaml.safe_load(f"run: >-\n {folded}\nname: Renamed {gate}")) + self.step("manifest")["if"] = "${{ matrix.name == 'manifest' }}" + self.step("build")["if"] = ( + "${{ matrix.name=='developer-tools' && contains( matrix.packages , 'registry-rstack' ) }}" + ) + self.step("build").pop("name", None) + self.assert_inventory(self.workflow) + + def test_spacing_inside_a_shard_literal_or_a_different_host_changes_the_guard(self) -> None: + for gate, predicate in ( + ("manifest", "matrix.name == 'mani fest'"), + ("build", "matrix.name == 'developer-tools' && contains(matrix.packages, 'registry-evidence')"), + ): + with self.subTest(gate=gate): + workflow = deepcopy(self.live_workflow) + step, index = self.assert_inventory(workflow)[gate] + step[index]["if"] = predicate + with self.assertRaisesRegex(AssertionError, "missing "): + self.assert_inventory(workflow) + + def test_literals_in_another_job_do_not_supply_the_step(self) -> None: + steps, index = self.gates["format"] + self.workflow["jobs"]["unrelated-job"] = {"steps": [steps.pop(index)]} + with self.assertRaisesRegex(AssertionError, "Format"): + self.assert_inventory(self.workflow) + + def test_rstack_host_build_is_required_and_ordered(self) -> None: + steps, index = self.gates["build"] + build = steps.pop(index) + with self.assertRaisesRegex(AssertionError, "missing Build the rstack dev hosts"): + self.assert_inventory(self.workflow) + steps.insert(self.gates["test"][1], build) + with self.assertRaisesRegex(AssertionError, "rstack dev hosts before"): + self.assert_inventory(self.workflow) + + def test_nonblocking_rstack_host_build_cannot_supply_the_prerequisite(self) -> None: + self.step("build")["continue-on-error"] = True + with self.assertRaisesRegex(AssertionError, "rstack dev hosts"): + self.assert_inventory(self.workflow) + + def test_rstack_host_build_requires_every_host(self) -> None: + packages = self.dev_host_packages - {"registry-render"} + self.step("build")["run"] = "cargo build --locked --bins " + " ".join( + f"-p {package}" for package in sorted(packages) + ) + with self.assertRaisesRegex(AssertionError, "rstack dev hosts"): + self.assert_inventory(self.workflow) + + def test_affected_tests_require_the_runner_and_matrix_features(self) -> None: + step = self.step("test") + original_command = step["run"] + step["run"] = " ".join([*self.PACKAGE_RUNNER, "skip-tests"]) + with self.assertRaisesRegex(AssertionError, "Affected package tests"): + self.assert_inventory(self.workflow) + step["run"] = original_command + step.setdefault("env", {})["CI_RUST_ALL_FEATURES"] = "false" + with self.assertRaisesRegex(AssertionError, "Affected package tests"): + self.assert_inventory(self.workflow) + + def test_clippy_cannot_replace_the_selected_package_list(self) -> None: + self.step("clippy").setdefault("env", {})["CI_RUST_PACKAGES"] = "[]" + with self.assertRaisesRegex(AssertionError, "Affected package clippy"): + self.assert_inventory(self.workflow) + + def test_manifest_validation_requires_the_profile_command_and_directory(self) -> None: + step = self.step("manifest") + original_command = step["run"] + step["run"] = "cargo run --locked -p registry-manifest-cli -- skip-profile-validation" + with self.assertRaisesRegex(AssertionError, "Manifest profile validation"): + self.assert_inventory(self.workflow) + step["run"] = original_command + step["working-directory"] = "." + with self.assertRaisesRegex(AssertionError, "Manifest profile validation"): + self.assert_inventory(self.workflow) + + def test_two_shell_commands_do_not_count_as_one(self) -> None: + self.step("format")["run"] = "cargo fmt\n--check\n" + with self.assertRaisesRegex(AssertionError, "Format"): + self.assert_inventory(self.workflow) + + class CiChangesTest(unittest.TestCase): @classmethod def setUpClass(cls) -> None: @@ -556,7 +812,9 @@ def test_deferred_ci_work_keeps_its_selector_and_explicit_status_guard( for name, job in self.workflow_jobs.items() if self.normalized_needs(job) == ("changes", "rust-policy") } - self.assertEqual(set(selectors), deferred) + # The scheduled client job has an event selector and requires a + # successful Rust policy job. ScheduledVerificationTest checks it. + self.assertEqual(set(selectors) | {"typescript-live"}, deferred) # An explicit status-check function bypasses GitHub's implicit # success() dependency guard. Requiring a successful classifier keeps @@ -674,6 +932,7 @@ def test_ci_scheduling_graph_retains_every_job_and_aggregate_dependency( "docs-archives", "client-bindings", "typescript-clients", + "typescript-live", "release-linux-node-clients", "deployment", "ci-result", @@ -755,6 +1014,7 @@ def test_ci_scheduling_graph_retains_every_job_and_aggregate_dependency( "docs", "client-bindings", "typescript-clients", + "typescript-live", "release-linux-node-clients", "deployment", ), @@ -804,9 +1064,9 @@ def test_final_aggregate_flattens_rust_results_with_equivalent_outcomes( } self.assertEqual( final_needs, - previous_final_needs.difference({"rust-result"}).union(rust_needs), + previous_final_needs.difference({"rust-result"}).union(rust_needs, {"typescript-live"}), ) - self.assertEqual(46, len(final_needs)) + self.assertEqual(47, len(final_needs)) # Platform line coverage publishes from main and the nightly sweep; # it does not hold the merge queue. self.assertNotIn("platform-coverage", final_needs) @@ -3254,15 +3514,15 @@ def test_native_staff_mcp_inputs_select_real_product_postgres_proof(self) -> Non for name in ("BREG_BIN", "BREGCTL_BIN", "CASEWORK_BIN", "CASEWORKCTL_BIN", "REGISTRY_STACK_FIXTURES_ROOT"): self.assertIn(name, step["env"]) - def test_review_page_command_change_runs_the_catalog_test(self) -> None: + def test_review_page_source_runs_catalog_and_posture_docs(self) -> None: # `breg-review`'s Clap tree is built in its lib.rs, which the - # registry-cli-docs snapshot test holds to the committed catalog, so a - # change there runs that test rather than rebuilding the docs. + # registry-cli-docs snapshot test holds to the committed catalog. The + # same file owns a DevelopmentSetting used in the posture reference. outputs = classify( self.workspace, ("crates/registry-breg-review/src/lib.rs",), ) - self.assertFalse(outputs["docs"]) + self.assertTrue(outputs["docs"]) self.assertIn("registry-breg-review", outputs["rust_packages"]) self.assertIn("registry-cli-docs", outputs["rust_packages"]) self.assertFalse( @@ -3335,6 +3595,19 @@ def test_typescript_clients_ignore_unrelated_changes(self) -> None: classify(self.workspace, ("docs/site/README.md",))["typescript_clients"] ) + def test_typescript_task_fixture_contracts_select_the_client_gate(self) -> None: + test = Path("clients/typescript/tests/tasks-response-contracts.test.ts").read_text( + encoding="utf-8" + ) + inputs = set(re.findall(r"readJson\('\.\./\.\./\.\./(products/[^']+)\b'\)", test)) + self.assertEqual(inputs, { + "products/breg/generated/facility/generated/openapi.json", + "products/documents/generated/registry-documents.openapi.json", + }) + for path in sorted(inputs): + with self.subTest(path=path): + self.assertTrue(classify(self.workspace, (path,))["typescript_clients"]) + def test_typescript_clients_run_in_every_complete_sweep(self) -> None: self.assertTrue(classify(self.workspace, (), run_all=True)["typescript_clients"]) self.assertTrue( @@ -3810,13 +4083,8 @@ def test_rstack_dev_changes_run_the_harnesses_that_drive_it(self) -> None: with self.subTest(path=path, output=output): self.assertTrue(outputs[output]) - def test_development_host_changes_run_the_rstack_dev_tests_with_built_hosts( - self, - ) -> None: - """The registry-rstack dev_run tests drive the bregctl and caseworkctl - built beside rstack, which link registry-rstack-dev and host - `rstack dev`. A change to the library or to any host runs them, and - the shard builds both hosts before it tests.""" + def test_development_host_changes_select_the_rstack_shard(self) -> None: + """Changes to the development runner or its hosts select rstack.""" for path, packages in ( ( "crates/registry-rstack-dev/src/lib.rs", @@ -3844,37 +4112,6 @@ def test_development_host_changes_run_the_rstack_dev_tests_with_built_hosts( [], ) self.assertLessEqual(packages, set(selected)) - steps = self.workflow_jobs["rust-tests"]["steps"] - names = [step.get("name") for step in steps] - build = next( - step - for step in steps - if step.get("name") == "Build the rstack dev hosts" - ) - self.assertEqual( - build.get("if"), - "matrix.name == 'developer-tools' && contains(matrix.packages, 'registry-rstack')", - ) - arguments = shlex.split(folded_command(build)) - self.assertEqual(["cargo", "build", "--locked", "--bins"], arguments[:4]) - self.assertEqual( - { - "registry-adapterctl", - "registry-bregctl", - "registry-caseworkctl", - "registry-coordinator", - "registry-discoveryctl", - "registry-documentsctl", - "registry-evidence", - "registry-evidencectl", - "registry-messagingctl", - "registry-render", - "registry-schedulingctl", - }, - set(arguments[5::2]), - ) - self.assertTrue(all(option == "-p" for option in arguments[4::2])) - self.assertLess(steps.index(build), names.index("Test affected packages")) def test_service_preview_inputs_select_installed_browser_proof(self) -> None: for path in ( @@ -3998,6 +4235,78 @@ def test_config_format_registry_change_runs_docs(self) -> None: self.assertTrue(Path(path).is_file()) self.assertTrue(classify(self.workspace, (path,))["docs"]) + def test_posture_diagnostic_sources_run_docs(self) -> None: + data = Path("docs/site/src/data/posture-diagnostics.json") + sources = json.loads(data.read_text(encoding="utf-8"))["sources"] + self.assertIn("crates/registry-platform-config/src/blocks.rs", sources) + for path in sources: + with self.subTest(path=path): + self.assertTrue(Path(path).is_file()) + selected = classify(self.workspace, (path,), pull_request=True) + self.assertTrue(selected["docs"]) + self.assertTrue(selected["rust"]) + + def test_unrelated_rust_source_does_not_run_posture_diagnostic_drift(self) -> None: + path = "crates/registry-breg/src/compiler/timezone.rs" + self.assertTrue(Path(path).is_file()) + selected = classify(self.workspace, (path,), pull_request=True) + self.assertFalse(selected["docs"]) + self.assertTrue(selected["rust"]) + + def test_new_posture_declaration_routes_to_docs_before_lookup_changes(self) -> None: + lookup = Path("docs/site/src/data/posture-diagnostics.json") + source = "crates/registry-breg/src/compiler/posture_example.rs" + self.assertNotIn(source, json.loads(lookup.read_text(encoding="utf-8"))["sources"]) + with tempfile.TemporaryDirectory() as directory: + root = Path(directory) + (root / lookup).parent.mkdir(parents=True) + (root / lookup).write_bytes(lookup.read_bytes()) + for path, expected in ( + (source, True), + ("crates/registry-breg/src/compiler/tests/posture_example.rs", False), + ("crates/registry-breg/src/compiler/posture_example_tests.rs", False), + ): + with self.subTest(path=path): + file = root / path + file.parent.mkdir(parents=True, exist_ok=True) + file.write_text("const NEW_SETTING: DevelopmentSetting = example();\n", encoding="utf-8") + with patch("ci_changes.REPO_ROOT", root): + selected = classify(self.workspace, (path,), pull_request=True) + self.assertIs(selected["docs"], expected) + self.assertTrue(selected["rust"]) + + def test_new_explicit_production_declaration_routes_to_docs(self) -> None: + lookup = Path("docs/site/src/data/posture-diagnostics.json") + source = "crates/registry-breg/src/compiler/explicit_example.rs" + self.assertNotIn(source, json.loads(lookup.read_text(encoding="utf-8"))["sources"]) + with tempfile.TemporaryDirectory() as directory: + root = Path(directory) + (root / lookup).parent.mkdir(parents=True) + (root / lookup).write_bytes(lookup.read_bytes()) + file = root / source + file.parent.mkdir(parents=True) + file.write_text( + "static NEW_SETTING: ExplicitProductionSetting = example();\n", + encoding="utf-8", + ) + with patch("ci_changes.REPO_ROOT", root): + selected = classify(self.workspace, (source,), pull_request=True) + self.assertTrue(selected["docs"]) + self.assertTrue(selected["rust"]) + + # A product's own struct of the same name is not a declaration. + file.write_text( + "struct ExplicitProductionSetting { code: String }\n" + "fn found() -> ExplicitProductionSetting {\n" + " ExplicitProductionSetting { code: String::new() }\n" + "}\n", + encoding="utf-8", + ) + with patch("ci_changes.REPO_ROOT", root): + selected = classify(self.workspace, (source,), pull_request=True) + self.assertFalse(selected["docs"]) + self.assertTrue(selected["rust"]) + def test_every_published_openapi_description_runs_docs(self) -> None: """Whatever description the site fetches, a change to it rebuilds the docs.""" fetcher = Path("docs/site/scripts/fetch-openapi.mjs").read_text( @@ -5111,6 +5420,238 @@ def test_unchanged_lock_text_forces_full(self) -> None: def test_lock_without_an_analysis_stays_full(self) -> None: self.assert_full(classify(self.workspace, ("Cargo.lock",))) +class ScheduledVerificationTest(unittest.TestCase): + evidence_cases = ( + ("scaffold", "the_generated_openapi_starter_passes_check_and_test"), + ("source_recipes", "source_review_commands_accept_a_local_target_only_under_development"), + ("production_handoff", "production_package_accepts_the_real_package_check_digest"), + ("production_handoff", "offline_production_check_closes_without_target_host_mounts"), + ("production_handoff", "explain_refuses_unknown_source_members_without_disclosing_values"), + ("production_handoff", "offline_check_makes_private_staging_under_umask_022"), + ("production_handoff", "explicit_evidence_grade_target_applies_its_own_strict_source_rules"), + ) + + @classmethod + def setUpClass(cls) -> None: + cls.root = Path(__file__).resolve().parents[2] + cls.workflow = yaml.safe_load( + (cls.root / ".github/workflows/ci.yml").read_text(encoding="utf-8") + ) + metadata = subprocess.run( + ("cargo", "metadata", "--locked", "--no-deps", "--format-version", "1"), + cwd=cls.root, check=True, capture_output=True, text=True, + ) + cls.package_binaries = { + package["name"]: {target["name"] for target in package["targets"] if target["kind"] == ["bin"]} + for package in json.loads(metadata.stdout)["packages"] + } + + def required_step(self, workflow, job_name, name, directory="."): + job = workflow["jobs"][job_name] + self.assertIs(job.get("continue-on-error", False), False, job_name) + steps = [step for step in job["steps"] if step.get("name") == name] + self.assertEqual(len(steps), 1, name) + step = steps[0] + self.assertIn(step.get("if", "success()"), ("success()", "${{ success() }}"), name) + self.assertIs(step.get("continue-on-error", False), False, name) + working_directory = "." + shell = "bash" + for scope in (workflow, job): + defaults = scope.get("defaults", {}).get("run", {}) + working_directory = defaults.get("working-directory", working_directory) + shell = defaults.get("shell", shell) + if "run" in step: + self.assertEqual(step.get("shell", shell), "bash", name) + self.assertEqual( + PurePosixPath(step.get("working-directory", working_directory)), + PurePosixPath(directory), + name, + ) + return job, step + + def assert_live_workflow(self, workflow): + selection = ( + "github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' " + "&& needs.changes.outputs.full_sweep == 'true')" + ) + job_name = "typescript-live" + live, run = self.required_step( + workflow, job_name, "Run live Node, Deno and Chromium tests", "clients/typescript", + ) + self.assertEqual(set(live["needs"]), {"changes", "rust-policy"}) + self.assertEqual( + "${{ !cancelled() && needs.changes.result == 'success' " + "&& needs.rust-policy.result == 'success' && (" + selection + ") }}", + live["if"], + ) + self.assertEqual(shlex.split(run["run"]), ["npm", "run", "test:live", "--", "--require-deno"]) + _, checkout = self.required_step(workflow, job_name, "Checkout") + self.assertTrue(checkout["uses"].startswith("actions/checkout@")) + _, build = self.required_step(workflow, job_name, "Build the product binaries from source") + _, node = self.required_step(workflow, job_name, "Setup Node") + _, deno = self.required_step(workflow, job_name, "Setup Deno") + _, package = self.required_step( + workflow, job_name, "Build the TypeScript package and install Chromium", "clients/typescript", + ) + for dependent in (build, node, deno, package, run): + self.assertLess(live["steps"].index(checkout), live["steps"].index(dependent)) + for prerequisite in (build, node, deno, package): + self.assertLess(live["steps"].index(prerequisite), live["steps"].index(run)) + for prerequisite in (node, deno): + self.assertLess(live["steps"].index(prerequisite), live["steps"].index(package)) + self.assertTrue(node["uses"].startswith("actions/setup-node@")) + self.assertTrue(deno["uses"].startswith("denoland/setup-deno@")) + self.assertEqual(package["shell"], "bash") + commands = [shlex.split(line) for line in package["run"].splitlines() if line.strip()] + self.assertEqual(commands[0], ["set", "-euo", "pipefail"]) + for command in ( + ["npm", "ci"], + ["npm", "run", "build"], + ["node", "node_modules/playwright-core/cli.js", "install", "--with-deps", "chromium"], + ): + self.assertIn(command, commands) + args = shlex.split(build["run"]) + self.assertEqual(args[:2], ["cargo", "build"]) + self.assertIn("--locked", args) + self.assertIn("--bins", args) + self.assertIn("registry-breg/runtime", args[args.index("--features") + 1].split(",")) + packages = {args[index + 1] for index, value in enumerate(args) if value == "-p"} + built = set().union(*(self.package_binaries[package] for package in packages)) + harness = (self.root / "clients/typescript/tests/live/harness.ts").read_text(encoding="utf-8") + specs = harness.split("const binarySpecs: readonly BinarySpec[] = [", 1)[1].split("]", 1)[0] + required = set(re.findall(r"\bname: '([^']+)'", specs)) + self.assertTrue(required) + self.assertLessEqual(required, built, f"missing live binary builds: {required - built}") + + result, aggregate = self.required_step(workflow, "ci-result", "Require every selected CI job") + self.assertEqual(result["if"], "always()") + self.assertIn(job_name, result["needs"]) + self.assertEqual(result["env"]["TYPESCRIPT_LIVE_REQUIRED"], "${{ " + selection + " }}") + return aggregate["run"] + + def assert_journey_workflow(self, workflow): + job, run = self.required_step(workflow, "changes", "Test the acceptance journey harness") + self.assertNotIn("if", job) + self.assertEqual(shlex.split(run["run"]), ["bash", "products/platform/journeys/test_lib.sh"]) + + def assert_evidence_workflow(self, workflow): + name = "evidence-tutorials" + evidence, test = self.required_step(workflow, name, "Test opt-in Evidence authoring cases") + self.assertEqual(evidence["needs"], "changes") + self.assertEqual(evidence["if"], "needs.changes.outputs.evidence_tutorial == 'true'") + _, build = self.required_step(workflow, name, "Build the Evidence toolset under test") + self.assertLess(evidence["steps"].index(build), evidence["steps"].index(test)) + self.assertEqual(test["env"]["EVIDENCE_BIN"], "${{ github.workspace }}/target/debug/evidence") + self.assertEqual(test["shell"], "bash") + build_line = re.search(r"^cargo build [^\n]+$", build["run"].replace("\\\n", " "), re.MULTILINE) + self.assertIsNotNone(build_line) + args = shlex.split(build_line.group()) + self.assertIn("--locked", args) + self.assertIn("--bins", args) + packages = {args[index + 1] for index, value in enumerate(args) if value == "-p"} + self.assertIn("registry-evidence", packages) + rows = re.search(r"^done <<'CASES'\n(.*?)^CASES$", test["run"], re.MULTILINE | re.DOTALL) + self.assertIsNotNone(rows) + actual = tuple(tuple(shlex.split(row)) for row in rows[1].splitlines()) + self.assertEqual(actual, self.evidence_cases) + return test["run"] + + def test_typescript_live_requires_a_scheduled_or_explicit_full_run(self) -> None: + script = self.assert_live_workflow(self.workflow) + for required, result, expected in ( + ("true", "success", 0), ("true", "failure", 1), + ("true", "skipped", 1), ("false", "skipped", 0), + ): + with self.subTest(required=required, result=result): + environment = { + "CI_JOB_RESULTS": json.dumps({"changes": {"result": "success"}, + "typescript-live": {"result": result}}), + "TYPESCRIPT_LIVE_REQUIRED": required, + } + completed = subprocess.run( + ("bash", "-c", script), env=environment, capture_output=True, text=True, + ) + self.assertEqual(completed.returncode, expected, completed.stderr) + + def test_opt_in_evidence_and_journey_verification_are_wired(self) -> None: + self.assert_journey_workflow(self.workflow) + script = self.assert_evidence_workflow(self.workflow) + for suite, case in self.evidence_cases: + with self.subTest(suite=suite, case=case): + source = (self.root / f"crates/registry-evidencectl/tests/{suite}.rs").read_text() + self.assertRegex(source, rf"#\[ignore[^\n]*\]\nfn {case}\(") + + stub = """cargo() { + printf '%s\\n' "$*" >>"$RUNNER_TEMP/argv" + case "$STUB_CASE" in + failure) return 7 ;; + empty) printf '%s\\n' 'test result: ok. 0 passed; 0 failed;' ;; + pass) printf '%s\\n' 'test result: ok. 1 passed; 0 failed;' ;; + esac + } + """ + for answer, expected in (("pass", 0), ("empty", 1), ("failure", 7)): + with self.subTest(answer=answer), tempfile.TemporaryDirectory() as work: + completed = subprocess.run( + ("bash", "-c", stub + script), + env={**os.environ, "RUNNER_TEMP": work, "STUB_CASE": answer}, + capture_output=True, text=True, + ) + self.assertEqual(completed.returncode, expected, completed.stdout + completed.stderr) + tested = self.evidence_cases if answer == "pass" else self.evidence_cases[:1] + self.assertEqual( + (Path(work) / "argv").read_text().splitlines(), + [f"test --locked -p registry-evidencectl --test {suite} {case} -- --ignored --exact" + for suite, case in tested], + ) + + def test_disabled_advisory_or_incomplete_wiring_fails(self) -> None: + for job_name, step_name, check in ( + ("typescript-live", "Run live Node, Deno and Chromium tests", self.assert_live_workflow), + ("changes", "Test the acceptance journey harness", self.assert_journey_workflow), + ("evidence-tutorials", "Test opt-in Evidence authoring cases", self.assert_evidence_workflow), + ): + for key, value in (("if", False), ("continue-on-error", True), ("working-directory", "docs")): + with self.subTest(job=job_name, setting=key): + workflow = deepcopy(self.workflow) + steps = workflow["jobs"][job_name]["steps"] + step = next(step for step in steps if step.get("name") == step_name) + step[key] = value + with self.assertRaises(AssertionError): + check(workflow) + + workflow = deepcopy(self.workflow) + workflow["jobs"]["typescript-live"]["continue-on-error"] = True + with self.assertRaises(AssertionError): + self.assert_live_workflow(workflow) + + workflow = deepcopy(self.workflow) + _, build = self.required_step(workflow, "typescript-live", "Build the product binaries from source") + build["run"] = build["run"].replace("-p registry-session", "") + with self.assertRaisesRegex(AssertionError, "missing live binary builds"): + self.assert_live_workflow(workflow) + + workflow = deepcopy(self.workflow) + _, evidence = self.required_step(workflow, "evidence-tutorials", "Test opt-in Evidence authoring cases") + evidence["run"] = evidence["run"].replace("\nscaffold ", "\n# scaffold ") + with self.assertRaises(AssertionError): + self.assert_evidence_workflow(workflow) + + def test_live_checkout_and_shell_are_required(self) -> None: + for name, key, value in ( + ("Checkout", "if", False), + ("Checkout", "continue-on-error", True), + ("Run live Node, Deno and Chromium tests", "shell", 'bash -c "true" {0}'), + ): + with self.subTest(step=name, setting=key): + workflow = deepcopy(self.workflow) + steps = workflow["jobs"]["typescript-live"]["steps"] + step = next(step for step in steps if step.get("name") == name) + step[key] = value + with self.assertRaises(AssertionError): + self.assert_live_workflow(workflow) + + class EventScopedSelectionTest(unittest.TestCase): """Broad assurance and heavy integration wait for the merge queue.""" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb87dc32dc..470e07cbf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -191,6 +191,9 @@ jobs: - name: Test the acceptance journey tables run: uv run --no-project --with PyYAML==6.0.2 python -m unittest products/platform/journeys/test_journey_tables.py + - name: Test the acceptance journey harness + run: bash products/platform/journeys/test_lib.sh + - name: Install pinned actionlint shell: bash run: | @@ -2961,6 +2964,31 @@ jobs: | tee "${RUNNER_TEMP}/evidence-source-recipes.log" grep -q 'test result: ok\. 1 passed' "${RUNNER_TEMP}/evidence-source-recipes.log" || { echo "::error::expected exactly one passing test for curated_source_recipes_import_check_and_run_the_existing_evaluator"; exit 1; } + - name: Test opt-in Evidence authoring cases + shell: bash + env: + EVIDENCE_BIN: ${{ github.workspace }}/target/debug/evidence + run: | + set -euo pipefail + while read -r suite case_name; do + printf 'Running %s::%s\n' "${suite}" "${case_name}" + log="${RUNNER_TEMP}/evidence-${case_name}.log" + CARGO_TERM_COLOR=never cargo test --locked -p registry-evidencectl \ + --test "${suite}" "${case_name}" -- --ignored --exact | tee "${log}" + if ! grep -qx 'test result: ok\. 1 passed; 0 failed;.*' "${log}"; then + printf '::error::expected exactly one passing test for %s::%s\n' "${suite}" "${case_name}" + exit 1 + fi + done <<'CASES' + scaffold the_generated_openapi_starter_passes_check_and_test + source_recipes source_review_commands_accept_a_local_target_only_under_development + production_handoff production_package_accepts_the_real_package_check_digest + production_handoff offline_production_check_closes_without_target_host_mounts + production_handoff explain_refuses_unknown_source_members_without_disclosing_values + production_handoff offline_check_makes_private_staging_under_umask_022 + production_handoff explicit_evidence_grade_target_applies_its_own_strict_source_rules + CASES + - name: Test the public certificate check example shell: bash env: @@ -4182,6 +4210,64 @@ jobs: "${client_dir}/node_modules/playwright-core/index.mjs" \ "${RUNNER_TEMP}/${name}" + typescript-live: + name: TypeScript live against running products + needs: [changes, rust-policy] + if: >- + ${{ !cancelled() && needs.changes.result == 'success' && needs.rust-policy.result == 'success' + && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && needs.changes.outputs.full_sweep == 'true')) }} + runs-on: ubuntu-24.04 + timeout-minutes: 60 + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + submodules: false + + - name: Setup Node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 + with: + node-version: 24.11.0 + cache: npm + cache-dependency-path: clients/typescript/package-lock.json + + - name: Setup Deno + uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2.0.5 + with: + deno-version: 2.9.7 + + - name: Cache Cargo registry + uses: Swatinem/rust-cache@eedcf2fb1c22f010a0eb66b92f378c110977f266 # v2 + with: + shared-key: workspace-registry + cache-targets: false + save-if: ${{ github.ref == 'refs/heads/main' }} + + - name: Build the product binaries from source + run: >- + cargo build --locked --bins --features registry-breg/runtime + -p registry-adapter -p registry-adapterctl -p registry-breg -p registry-bregctl + -p registry-casework -p registry-caseworkctl -p registry-coordinator + -p registry-discovery -p registry-discoveryctl -p registry-documents + -p registry-documentsctl -p registry-evidence -p registry-evidence-oid4vci + -p registry-evidence-oid4vp -p registry-evidencectl -p registry-mcp + -p registry-messaging -p registry-messagingctl -p registry-render + -p registry-rstack -p registry-scheduling -p registry-schedulingctl -p registry-session + + - name: Build the TypeScript package and install Chromium + working-directory: clients/typescript + shell: bash + run: | + set -euo pipefail + npm ci + npm run build + node node_modules/playwright-core/cli.js install --with-deps chromium + + - name: Run live Node, Deno and Chromium tests + working-directory: clients/typescript + run: npm run test:live -- --require-deno + ci-result: name: CI result if: always() @@ -4230,12 +4316,14 @@ jobs: - docs - client-bindings - typescript-clients + - typescript-live - release-linux-node-clients - deployment runs-on: ubuntu-slim timeout-minutes: 5 env: CI_JOB_RESULTS: ${{ toJSON(needs) }} + TYPESCRIPT_LIVE_REQUIRED: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && needs.changes.outputs.full_sweep == 'true') }} steps: - name: Require every selected CI job run: | @@ -4270,6 +4358,8 @@ jobs: for name, output in selected_by.items(): if selection.get(output) == "true" and jobs[name]["result"] != "success": failed[name] = jobs[name]["result"] + if os.environ.get("TYPESCRIPT_LIVE_REQUIRED") == "true" and jobs["typescript-live"]["result"] != "success": + failed["typescript-live"] = jobs["typescript-live"]["result"] if failed: print(f"CI jobs did not pass: {failed}", file=sys.stderr) raise SystemExit(1) diff --git a/.github/workflows/nightly-security.yml b/.github/workflows/nightly-security.yml index 851e7a82c2..d3290b0017 100644 --- a/.github/workflows/nightly-security.yml +++ b/.github/workflows/nightly-security.yml @@ -18,12 +18,21 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout + id: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with: persist-credentials: false submodules: false + - name: Remind of image advisory exception expiries + shell: bash + run: | + set -euo pipefail + python3 release/scripts/nightly_release.py advisory-expiry \ + --today "$(date -u +%F)" >>"${GITHUB_STEP_SUMMARY}" + - name: Release and adopter image Dockerfile checks + if: ${{ !cancelled() && steps.checkout.outcome == 'success' }} run: | python3 - <<'PY' import re diff --git a/clients/typescript/README.md b/clients/typescript/README.md index 50d531777a..0814bcf4fb 100644 --- a/clients/typescript/README.md +++ b/clients/typescript/README.md @@ -29,7 +29,7 @@ import { createRegistryClient } from './service.ts' const registry = createRegistryClient({ baseUrl: '/registry' }) -const answer = await registry.facility.list('facility', { accessProfile: 'facility-reader', top: 25 }) +const answer = await registry.facility.list('facility', { accessProfile: 'facility-reader', limit: 25 }) console.log(answer.items) await registry.casework.call('describeCasework') ``` @@ -254,7 +254,7 @@ const adapter = new Client(new Transport({ const { data: contract } = await adapter.call('adapter-effective-contract') const { data: person } = await adapter.call('records-get.person', { - path: { record_id: 'person-1' }, + path: { recordId: 'person-1' }, headers: { 'x-registry-adapter-contract': contract.digest }, }) const people = await allPages(cursor => @@ -655,7 +655,7 @@ For unkeyed operations, use the route's recovery behavior. import { allPages } from './core.ts' const contacts = await allPages(cursor => client.records_contact_listPage({ - query: { accessProfile: 'directory-editor', $top: 25 }, + query: { accessProfile: 'directory-editor', limit: 25 }, }, cursor)) ``` @@ -664,7 +664,7 @@ responses to `Page { items, nextCursor }`. Use `pages(load, cap)` to iterate `allPages(load, cap)` to collect the items. Both default to 100 pages and throw `RangeError` if a cursor repeats or a continuation remains at the cap. A null or empty cursor ends iteration. Cursor values are opaque. BReg Record list follow-up requests carry only the -selected access profile and `$skiptoken` on the same route. The first +selected access profile and `cursor` on the same route. The first request carries filters and page size. Other cursor routes retain their query options. @@ -689,11 +689,11 @@ const page = await client.list('licence', { accessProfile: 'licence-officer', where: { status: ['active', 'suspended'], holderName: { startsWith: 'Dep' } }, orderBy: 'expiresOn', - top: 20, + limit: 20, count: true, }) if (page.nextCursor !== null) { - const next = await client.list('licence', { accessProfile: 'licence-officer', after: page.nextCursor }) + const next = await client.list('licence', { accessProfile: 'licence-officer', cursor: page.nextCursor }) } ``` @@ -703,7 +703,7 @@ if (page.nextCursor !== null) { matching operator in the profile. All filters hold together. - `orderBy` is one sortable property, or `'property desc'` where allowed. `select` lists selectable properties. `count` is allowed only with - `allowCount`. `top` runs from 1 to the profile's `maximumPageSize`. + `allowCount`. `limit` runs from 1 to the profile's `maximumPageSize`. - A list with several query profiles or a route that requires a profile needs either the service default or an explicit `accessProfile`. The explicit profile takes precedence. The client checks filters against the resolved profile. @@ -713,10 +713,10 @@ if (page.nextCursor !== null) { the resolved profile before it sends anything. A refusal is a `TypeError` naming the property and profile, never a filter value. - The answer is `{ items, nextCursor }`, plus `count` when the answer carries - it. A null cursor ends the list. With `after`, keep the same access profile. + it. A null cursor ends the list. With `cursor`, keep the same access profile. If the first page used the default, omit `accessProfile` again. If it named a profile, repeat that profile. - The client refuses `where`, `orderBy`, `select`, `count` and `top` alongside `after`, + The client refuses `where`, `orderBy`, `select`, `count` and `limit` alongside `cursor`, because the cursor carries them. The continuation sends only the access profile and the cursor. - Sub-collection lists use `call` by operation ID or their generated page method. diff --git a/clients/typescript/core.ts b/clients/typescript/core.ts index 656693ab38..46459f18cb 100644 --- a/clients/typescript/core.ts +++ b/clients/typescript/core.ts @@ -885,6 +885,7 @@ export interface ListProfileRules { export interface ListRules { accessProfileParameter: boolean requiresAccessProfile?: boolean + paginationParameters?: { size: 'limit'; cursor: 'cursor' } profiles: Record recordProperties?: readonly string[] } @@ -894,6 +895,7 @@ export interface ListRequest extends CallOptions { orderBy?: string select?: readonly string[] count?: boolean + limit?: number top?: number } @@ -958,7 +960,7 @@ export function listQuery(rules: ListRules, options: ListRequest, cursor?: strin const label = (property: unknown) => known(property) ? '`' + String(property) + '`' : 'A property' const query: Record = {} if (chosen !== undefined) query.accessProfile = chosen - if (cursor !== undefined) return { ...query, $skiptoken: cursor } + if (cursor !== undefined) return { ...query, [rules.paginationParameters?.cursor ?? '$skiptoken']: cursor } const where = options.where ?? {} if (typeof where !== 'object' || where === null || Array.isArray(where)) throw new TypeError('`where` must be an object') @@ -1000,11 +1002,17 @@ export function listQuery(rules: ListRules, options: ListRequest, cursor?: strin if (new Set(options.select).size !== options.select.length) throw new TypeError('`select` names a property twice') query.$select = options.select.join(',') } - if (options.top !== undefined) { - if (!Number.isSafeInteger(options.top) || options.top < 1 || options.top > profile.maximumPageSize) { - throw new TypeError('`top` must be a whole number from 1 to ' + profile.maximumPageSize + under) + const sizeOption = rules.paginationParameters?.size ?? 'top' + const retiredSizeOption = sizeOption === 'limit' ? 'top' : 'limit' + if (options[retiredSizeOption] !== undefined) { + throw new TypeError('This list takes `' + sizeOption + '` for page size') + } + const pageSize = options[sizeOption] + if (pageSize !== undefined) { + if (!Number.isSafeInteger(pageSize) || pageSize < 1 || pageSize > profile.maximumPageSize) { + throw new TypeError('`' + sizeOption + '` must be a whole number from 1 to ' + profile.maximumPageSize + under) } - query.$top = options.top + query[rules.paginationParameters?.size ?? '$top'] = pageSize } if (options.count !== undefined) { if (typeof options.count !== 'boolean') throw new TypeError('`count` must be true or false') diff --git a/clients/typescript/generate.ts b/clients/typescript/generate.ts index 0ad6eba692..f7f4dd9d78 100644 --- a/clients/typescript/generate.ts +++ b/clients/typescript/generate.ts @@ -29,6 +29,8 @@ const unconstrained: Record = { '/components/schemas/TemplatePreviewRequest/properties/data', '/paths/~1v1~1provider-callbacks~1{provider_id}/post/requestBody/content/application~1json/schema', '/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/requestBody/content/application~1json/schema', + '/paths/~1v1~1provider-callbacks~1{providerId}/post/requestBody/content/application~1json/schema', + '/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/requestBody/content/application~1json/schema', ], } @@ -742,7 +744,10 @@ export function generate(source: string, settings: Settings = {}): string { if (spec.schema !== undefined) { audit(spec.schema, schemaAt) if (media === 'application/problem+json' && !discoveryProblems) validationRoots.add(schemaAt) - if (media === 'application/json' && spec.schema.$ref === '#/components/schemas/OAuthError') { + if (media === 'application/json' && ( + spec.schema.$ref === '#/components/schemas/OAuthError' + || spec.schema.$ref === '#/components/schemas/OAuthRateLimit' + )) { validationRoots.add(schemaAt) definition.oauthErrors ??= {} definition.oauthErrors[status] = schemaAt @@ -808,6 +813,7 @@ export function generate(source: string, settings: Settings = {}): string { opTypes.push(' ' + quote(id) + ': { input: ' + inputs.join(' & ') + '; required: ' + String(requiredOptions) + '; output: ' + result + ' }') const cursorName = parameterMap.has('query:$skiptoken') ? '$skiptoken' : parameterMap.has('query:cursor') ? 'cursor' : undefined + const limitAndCursor = cursorName === 'cursor' && parameterMap.has('query:limit') if (page && cursorName && !definition.mutating) { const name = identifier(id) + 'Page' if (pageNames.has(name)) fail(child(pointer, 'operationId'), 'colliding page method') @@ -816,9 +822,11 @@ export function generate(source: string, settings: Settings = {}): string { : 'options: Operations[' + quote(id) + ']["input"] = {}, cursor?: string' // A BReg cursor carries the query, so a continuation sends only the access profile, // where the route takes one, and the cursor. - const query = cursorName !== '$skiptoken' ? '{ ...options.query, cursor }' - : parameterMap.has('query:accessProfile') ? '{ accessProfile: options.query?.accessProfile, "$skiptoken": cursor }' - : '{ "$skiptoken": cursor }' + const cursorOnly = cursorName === '$skiptoken' + || (breg && (path.startsWith('/v1/records/') || path.startsWith('/v1/external-views/'))) + const query = !cursorOnly ? '{ ...options.query, cursor }' + : '{ ' + (parameterMap.has('query:accessProfile') ? 'accessProfile: options.query?.accessProfile, ' : '') + + quote(cursorName) + ': cursor }' pageMethods.push(' async ' + name + '(' + rest + '): Promise> {\n' + ' const { data } = await this.call(' + quote(id) + ', { ...options, query: cursor === undefined ? options.query : ' + query + ' })\n' + ' return { items: data.' + page.items + ', nextCursor: data.' + page.cursor + ' ?? null }\n }') @@ -829,12 +837,14 @@ export function generate(source: string, settings: Settings = {}): string { && (operation['x-registry-queryKind'] ?? 'list') === 'list' ? queryProfiles(operation, pointer) : undefined if (listProfiles) { const listShape = page && page.items === 'items' && page.cursor === 'pageInfo.nextCursor' - && cursorName === '$skiptoken' && !definition.mutating + && (cursorName === '$skiptoken' || limitAndCursor) && !definition.mutating ? page : fail(pointer, 'query profiles on an operation without a BReg list page') const profileParameter = parameterMap.get('query:accessProfile')?.value if (!profileParameter && listProfiles.length > 1) fail(pointer, 'several query profiles need an accessProfile parameter') const requiresAccessProfile = profileParameter?.required === true const row = 'ListRows[' + quote(recordType) + ']' + const sizeOption = limitAndCursor ? 'limit' : 'top' + const cursorOption = limitAndCursor ? 'cursor' : 'after' const value = (property: string) => 'FieldValue<' + row + ', ' + quote(property) + '>' const alternatives = listProfiles.map(entry => { const filters = entry.filterable.map(filter => quote(filter.property) + '?: Filter<' + value(filter.property) + ', ' + @@ -852,10 +862,10 @@ export function generate(source: string, settings: Settings = {}): string { 'orderBy?: ' + (order.length ? order.join(' | ') : 'never'), 'select?: ' + (entry.selectable.length ? 'ReadonlyArray<' + entry.selectable.map(name => quote(name)).join(' | ') + '>' : 'never'), 'count?: ' + (entry.allowCount ? 'boolean' : 'never'), - 'top?: number', + sizeOption + '?: number', ] - const first = fields.join('; ') + '; after?: never' - const next = fields[0] + '; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never' + const first = fields.join('; ') + '; ' + cursorOption + '?: never' + const next = fields[0] + '; ' + cursorOption + ': string; where?: never; orderBy?: never; select?: never; count?: never; ' + sizeOption + '?: never' return '(CallOptions & { ' + first + ' }) | (CallOptions & { ' + next + ' })' }) listTypes.push(' ' + quote(recordType) + ': ' + alternatives.join(' | ')) @@ -863,6 +873,7 @@ export function generate(source: string, settings: Settings = {}): string { listRules[recordType] = { operation: id, requiresAccessProfile, accessProfileParameter: Boolean(profileParameter), + ...(limitAndCursor ? { paginationParameters: { size: 'limit', cursor: 'cursor' } } : {}), recordProperties: [...new Set(listProfiles.flatMap(entry => [ ...entry.selectable, ...entry.filterable.map(filter => filter.property), ...entry.sortable.map(sort => sort.property), ]))].sort(), @@ -1014,6 +1025,7 @@ export function generate(source: string, settings: Settings = {}): string { } const compiledRules = [...validationRoots].sort().map(pointer => [pointer, compileRule(pointer)] as const) const sourceHash = createHash('sha256').update(source).digest('hex') + const canonicalListOptions = Object.values(listRules).some(rule => rule.paginationParameters) return [ generatedVersionComment, '// Source SHA-256 ' + sourceHash, @@ -1099,7 +1111,7 @@ export function generate(source: string, settings: Settings = {}): string { (discoveryProblems ? 'problemValidators: { default: discoveryProblem }' : 'problemValidators: Object.fromEntries(Object.entries(definition.problems ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule])]))') + - (schemas.OAuthError ? ', oauthErrorValidators: Object.fromEntries(Object.entries(definition.oauthErrors ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule])]))' : '') + ' }', + (schemas.OAuthError ? ', oauthErrorValidators: Object.fromEntries(Object.entries(definition.oauthErrors ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule], true)]))' : '') + ' }', '}', '', 'export class Client {', @@ -1120,15 +1132,29 @@ export function generate(source: string, settings: Settings = {}): string { ...pageMethods, ...(listTypes.length ? [ ' list(recordType: K, ...args: {} extends ListOptions[K] ? [options?: ListOptions[K]] : [options: ListOptions[K]]): Promise>>', - ' async list(recordType: string, options: ListRequest & { after?: string } = {}): Promise>> {', + ' async list(recordType: string, options: ListRequest & { after?: string' + + (canonicalListOptions ? '; cursor?: string' : '') + + ' } = {}): Promise>> {', ' const rules = Object.hasOwn(listRules, recordType) ? listRules[recordType] : undefined', ' if (!rules) throw new TypeError("Unknown record type for list")', - ' const { accessProfile, where, orderBy, select, count, top, after, ...call } = options', - ' if (after !== undefined && [where, orderBy, select, count, top].some(value => value !== undefined)) {', - ' throw new TypeError("Use after without where, orderBy, select, count or top.")', - ' }', - ' if (after !== undefined && (typeof after !== "string" || !after)) throw new TypeError("Use a nonempty cursor for after.")', - ' const query = listQuery(rules, options, after, this.#transport.profile)', + ...(canonicalListOptions ? [ + ' const { accessProfile, where, orderBy, select, count, top, limit, after, cursor, ...call } = options', + ' const continuationName = rules.paginationParameters ? "cursor" : "after"', + ' const continuation = rules.paginationParameters ? cursor : after', + ' if ((rules.paginationParameters ? after : cursor) !== undefined) throw new TypeError("Use " + continuationName + " for continuation.")', + ' if (continuation !== undefined && [where, orderBy, select, count, top, limit].some(value => value !== undefined)) {', + ' throw new TypeError("Use " + continuationName + " without first-page query options.")', + ' }', + ' if (continuation !== undefined && (typeof continuation !== "string" || !continuation)) throw new TypeError("Use a nonempty " + continuationName + ".")', + ' const query = listQuery(rules, options, continuation, this.#transport.profile)', + ] : [ + ' const { accessProfile, where, orderBy, select, count, top, after, ...call } = options', + ' if (after !== undefined && [where, orderBy, select, count, top].some(value => value !== undefined)) {', + ' throw new TypeError("Use after without where, orderBy, select, count or top.")', + ' }', + ' if (after !== undefined && (typeof after !== "string" || !after)) throw new TypeError("Use a nonempty cursor for after.")', + ' const query = listQuery(rules, options, after, this.#transport.profile)', + ]), ' const { data } = await this.#call<{ items: RecordEnvelope[]; pageInfo: { nextCursor?: string | null }; count?: number }>(rules.operation, { ...call, query })', ' const page = listPage(data)', ' return { ...page, items: page.items.map(recordRow) }', diff --git a/clients/typescript/generated/adapter-dhis2-tracker.ts b/clients/typescript/generated/adapter-dhis2-tracker.ts index 76490271de..8abc93e04f 100644 --- a/clients/typescript/generated/adapter-dhis2-tracker.ts +++ b/clients/typescript/generated/adapter-dhis2-tracker.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 a429d537cbd7b5c0ebbd3a84abfef9a855fa71d952ea0f220c57b8d780918855 +// Source SHA-256 26140d808406cbf4fa0e31596a1c2ea44acb9c68465c415ad382dc4538f42b46 import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -12,8 +12,8 @@ export interface Operations { "adapter-effective-contract": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: Schema_EffectiveContract } "records-search.person": { input: CallOptions & { query?: { "cursor"?: (string); "limit"?: (number) } } & { headers?: { "x-registry-adapter-contract"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: ({ "items": (Array<({ "domainData": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "recordId": (string) })>); "meta": ({ "datasetId": (string); "recordTypeId": (string); "registryId": (string) }); "pageInfo": ({ "nextCursor"?: (string) }) }) } "records-create.person": { input: CallOptions & { headers?: { "x-registry-adapter-contract"?: (string) } } & ({ body: ({ "data": ({ "domainData": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "recordId": (string) }) }) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "data": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "meta": ({ "datasetId": (string); "recordTypeId": (string); "registryId": (string) }) }) } - "records-get.person": { input: CallOptions & { path: { "record_id": (string) } } & { headers?: { "x-registry-adapter-contract"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "recordId": (string) }); "meta": ({ "datasetId": (string); "recordTypeId": (string); "registryId": (string) }) }) } - "records-update.person": { input: CallOptions & { path: { "record_id": (string) } } & { headers?: { "x-registry-adapter-contract"?: (string) } } & ({ body: ({ "data": ({ "domainData": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "recordId": (string) }) }) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "data": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "meta": ({ "datasetId": (string); "recordTypeId": (string); "registryId": (string) }) }) } + "records-get.person": { input: CallOptions & { path: { "recordId": (string) } } & { headers?: { "x-registry-adapter-contract"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "recordId": (string) }); "meta": ({ "datasetId": (string); "recordTypeId": (string); "registryId": (string) }) }) } + "records-update.person": { input: CallOptions & { path: { "recordId": (string) } } & { headers?: { "x-registry-adapter-contract"?: (string) } } & ({ body: ({ "data": ({ "domainData": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "recordId": (string) }) }) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "data": ({ "created_at"?: (string); "org_unit": (string); "tracked_entity_type": (string); "updated_at"?: (string) }); "meta": ({ "datasetId": (string); "recordTypeId": (string); "registryId": (string) }) }) } } const rules: Record = Object.fromEntries([ @@ -63,28 +63,28 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1records~1person/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1records~1person/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"anyOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"$ref\":\"/components/schemas/ContractUnavailableProblem\"}]}")], ["/paths/~1v1~1records~1person/post/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"data\":{\"additionalProperties\":false,\"properties\":{\"domainData\":{\"additionalProperties\":false,\"properties\":{\"created_at\":{\"type\":\"string\"},\"org_unit\":{\"type\":\"string\"},\"tracked_entity_type\":{\"type\":\"string\"},\"updated_at\":{\"type\":\"string\"}},\"required\":[\"org_unit\",\"tracked_entity_type\"],\"type\":\"object\"},\"recordId\":{\"type\":\"string\"}},\"required\":[\"domainData\",\"recordId\"],\"type\":\"object\"},\"meta\":{\"additionalProperties\":false,\"properties\":{\"datasetId\":{\"type\":\"string\"},\"recordTypeId\":{\"type\":\"string\"},\"registryId\":{\"type\":\"string\"}},\"required\":[\"datasetId\",\"recordTypeId\",\"registryId\"],\"type\":\"object\"}},\"required\":[\"data\",\"meta\"],\"type\":\"object\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ContractPreconditionProblem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"anyOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"$ref\":\"/components/schemas/ContractUnavailableProblem\"}]}")], - ["/paths/~1v1~1records~1person~1{record_id}/get/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/200/content/application~1json/schema", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"data\":{\"additionalProperties\":false,\"properties\":{\"created_at\":{\"type\":\"string\"},\"org_unit\":{\"type\":\"string\"},\"tracked_entity_type\":{\"type\":\"string\"},\"updated_at\":{\"type\":\"string\"}},\"required\":[\"org_unit\",\"tracked_entity_type\"],\"type\":\"object\"},\"meta\":{\"additionalProperties\":false,\"properties\":{\"datasetId\":{\"type\":\"string\"},\"recordTypeId\":{\"type\":\"string\"},\"registryId\":{\"type\":\"string\"}},\"required\":[\"datasetId\",\"recordTypeId\",\"registryId\"],\"type\":\"object\"}},\"required\":[\"data\",\"meta\"],\"type\":\"object\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ContractPreconditionProblem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"anyOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"$ref\":\"/components/schemas/ContractUnavailableProblem\"}]}")], - ["/paths/~1v1~1records~1person~1{record_id}/put/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"data\":{\"additionalProperties\":false,\"properties\":{\"domainData\":{\"additionalProperties\":false,\"properties\":{\"created_at\":{\"type\":\"string\"},\"org_unit\":{\"type\":\"string\"},\"tracked_entity_type\":{\"type\":\"string\"},\"updated_at\":{\"type\":\"string\"}},\"required\":[\"org_unit\",\"tracked_entity_type\"],\"type\":\"object\"},\"recordId\":{\"type\":\"string\"}},\"required\":[\"domainData\",\"recordId\"],\"type\":\"object\"},\"meta\":{\"additionalProperties\":false,\"properties\":{\"datasetId\":{\"type\":\"string\"},\"recordTypeId\":{\"type\":\"string\"},\"registryId\":{\"type\":\"string\"}},\"required\":[\"datasetId\",\"recordTypeId\",\"registryId\"],\"type\":\"object\"}},\"required\":[\"data\",\"meta\"],\"type\":\"object\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ContractPreconditionProblem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"anyOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"$ref\":\"/components/schemas/ContractUnavailableProblem\"}]}")], + ["/paths/~1v1~1records~1person~1{recordId}/get/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/200/content/application~1json/schema", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"data\":{\"additionalProperties\":false,\"properties\":{\"created_at\":{\"type\":\"string\"},\"org_unit\":{\"type\":\"string\"},\"tracked_entity_type\":{\"type\":\"string\"},\"updated_at\":{\"type\":\"string\"}},\"required\":[\"org_unit\",\"tracked_entity_type\"],\"type\":\"object\"},\"meta\":{\"additionalProperties\":false,\"properties\":{\"datasetId\":{\"type\":\"string\"},\"recordTypeId\":{\"type\":\"string\"},\"registryId\":{\"type\":\"string\"}},\"required\":[\"datasetId\",\"recordTypeId\",\"registryId\"],\"type\":\"object\"}},\"required\":[\"data\",\"meta\"],\"type\":\"object\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ContractPreconditionProblem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"anyOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"$ref\":\"/components/schemas/ContractUnavailableProblem\"}]}")], + ["/paths/~1v1~1records~1person~1{recordId}/put/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ]) const routes: Record = Object.create(null) type Definition = Omit & { problems?: Record; responses: Record> } @@ -92,8 +92,8 @@ const definitions: Record = Object.fromEntries([ ["adapter-effective-contract", JSON.parse("{\"method\":\"GET\",\"path\":\"/.well-known/registry-adapter/effective-contract\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1.well-known~1registry-adapter~1effective-contract/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1.well-known~1registry-adapter~1effective-contract/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1.well-known~1registry-adapter~1effective-contract/get/responses/403/content/application~1problem+json/schema\",\"503\":\"/paths/~1.well-known~1registry-adapter~1effective-contract/get/responses/503/content/application~1problem+json/schema\"}}")], ["records-search.person", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/records/person\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1records~1person/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1records~1person/get/responses/400/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1records~1person/get/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1records~1person/get/responses/409/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1records~1person/get/responses/412/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1records~1person/get/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1records~1person/get/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1records~1person/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1records~1person/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1records~1person/get/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1records~1person/get/responses/504/content/application~1problem+json/schema\"}}")], ["records-create.person", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/records/person\",\"responses\":{\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1records~1person/post/responses/201/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1records~1person/post/responses/400/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1records~1person/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1records~1person/post/responses/409/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1records~1person/post/responses/412/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1records~1person/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1records~1person/post/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1records~1person/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1records~1person/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1records~1person/post/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1records~1person/post/responses/504/content/application~1problem+json/schema\"}}")], - ["records-get.person", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/records/person/{record_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/400/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/409/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/412/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1records~1person~1{record_id}/get/responses/504/content/application~1problem+json/schema\"}}")], - ["records-update.person", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/records/person/{record_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/400/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/409/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/412/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1records~1person~1{record_id}/put/responses/504/content/application~1problem+json/schema\"}}")], + ["records-get.person", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/records/person/{recordId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/400/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/409/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/412/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1records~1person~1{recordId}/get/responses/504/content/application~1problem+json/schema\"}}")], + ["records-update.person", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/records/person/{recordId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/400/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/409/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/412/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1records~1person~1{recordId}/put/responses/504/content/application~1problem+json/schema\"}}")], ]) for (const [id, definition] of Object.entries(definitions)) { const responses: Operation["responses"] = {} diff --git a/clients/typescript/generated/breg-facility.ts b/clients/typescript/generated/breg-facility.ts index 37c778d49b..0ec11fb015 100644 --- a/clients/typescript/generated/breg-facility.ts +++ b/clients/typescript/generated/breg-facility.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 94a82325cbe2563c5296e8619a338f596d553a6698d7cad7bcf3d4c68fc5c65d +// Source SHA-256 a29f66c2bbff96fab6003672e8e13f9a958c6ed04ebd6c55a6c5bb762b472187 // Unconstrained JSON /paths/~1v1~1records~1directory-entries~1{record_id}/patch/requestBody/content/application~1json-patch+json/schema/items/properties/value // Unconstrained JSON /paths/~1v1~1records~1operators~1{record_id}/patch/requestBody/content/application~1json-patch+json/schema/items/properties/value import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" @@ -10,7 +10,7 @@ import { listPage, listQuery, type FieldValue, type Filter, type ListPage, type export type Schema_ImmediateActionPrecondition = ({ "ifMatch": (string) }) export type Schema_ImmediateActionResultReference = ({ "recordId": (string); "recordType": (string); "revision": (number) }) -export type Schema_Problem = (({ "code"?: "access-profile.ambiguous"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous" }) | ({ "code"?: "action.evidence-failed"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/action/evidence-failed" }) | ({ "code"?: "action.guard-failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/action/guard-failed" }) | ({ "code"?: "action.handler-failed"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/action/handler-failed" }) | ({ "code"?: "action.refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/action/refused" }) | ({ "code"?: "attachment.content-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/content-type" }) | ({ "code"?: "attachment.digest-mismatch"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch" }) | ({ "code"?: "attachment.limit-reached"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/limit-reached" }) | ({ "code"?: "attachment.required"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/required" }) | ({ "code"?: "attachment.slot-write-once"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once" }) | ({ "code"?: "attachment.too-large"; "status"?: 413; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/too-large" }) | ({ "code"?: "attachment.verification-pending"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-pending" }) | ({ "code"?: "attachment.verification-rejected"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected" }) | ({ "code"?: "authentication.refused"; "status"?: 401; "type"?: "https://id.registrystack.org/problems/registry-breg/authentication/refused" }) | ({ "code"?: "idempotency.expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/expired" }) | ({ "code"?: "idempotency.key-reused"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/key-reused" }) | ({ "code"?: "ingestion.chunk-mismatch"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch" }) | ({ "code"?: "ingestion.profile-mismatch"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch" }) | ({ "code"?: "ingestion.receipt-erased"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased" }) | ({ "code"?: "ingestion.run-blocked"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked" }) | ({ "code"?: "ingestion.run-not-open"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open" }) | ({ "code"?: "lookup.unresolved"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/lookup/unresolved" }) | ({ "code"?: "mutation.conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/mutation/conflict" }) | ({ "code"?: "precondition.failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/failed" }) | ({ "code"?: "precondition.required"; "status"?: 428; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/required" }) | ({ "code"?: "profile.not-authorized"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/profile/not-authorized" }) | ({ "code"?: "proposal.rejected"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/rejected" }) | ({ "code"?: "proposal.review-result-mismatch"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch" }) | ({ "code"?: "proposal.submission-expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/submission-expired" }) | ({ "code"?: "query.cursor-invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/cursor-invalid" }) | ({ "code"?: "query.filter-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/filter-required" }) | ({ "code"?: "query.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/invalid" }) | ({ "code"?: "request.access-reason-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/access-reason-required" }) | ({ "code"?: "request.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/invalid" }) | ({ "code"?: "request.timeout"; "status"?: 504; "type"?: "https://id.registrystack.org/problems/registry-breg/request/timeout" }) | ({ "code"?: "resource.not-found"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/resource/not-found" }) | ({ "code"?: "runtime.field-encryption.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable" }) | ({ "code"?: "service.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/service/unavailable" }) | ({ "code"?: "source.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/source/unavailable" }) | ({ "code"?: "statistical-dataset.domain-violation"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation" }) | ({ "code"?: "statistical-dataset.release-refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused" }) | ({ "code"?: "statistical-dataset.version-conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict" }) | ({ "code"?: "statistical-dataset.version-withdrawn"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn" }) | ({ "code"?: "unsupported.media-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/unsupported/media-type" }) | ({ "code"?: "write.outside-boundary"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" })) & ({ "accessProfiles"?: (Array<(string)>); "atField"?: (string); "code": ("access-profile.ambiguous" | "action.evidence-failed" | "action.guard-failed" | "action.handler-failed" | "action.refused" | "attachment.content-type" | "attachment.digest-mismatch" | "attachment.limit-reached" | "attachment.required" | "attachment.slot-write-once" | "attachment.too-large" | "attachment.verification-pending" | "attachment.verification-rejected" | "authentication.refused" | "idempotency.expired" | "idempotency.key-reused" | "ingestion.chunk-mismatch" | "ingestion.profile-mismatch" | "ingestion.receipt-erased" | "ingestion.run-blocked" | "ingestion.run-not-open" | "lookup.unresolved" | "mutation.conflict" | "precondition.failed" | "precondition.required" | "profile.not-authorized" | "proposal.rejected" | "proposal.review-result-mismatch" | "proposal.submission-expired" | "query.cursor-invalid" | "query.filter-required" | "query.invalid" | "request.access-reason-required" | "request.invalid" | "request.timeout" | "resource.not-found" | "runtime.field-encryption.unavailable" | "service.unavailable" | "source.unavailable" | "statistical-dataset.domain-violation" | "statistical-dataset.release-refused" | "statistical-dataset.version-conflict" | "statistical-dataset.version-withdrawn" | "unsupported.media-type" | "write.outside-boundary") & (string); "constraintId"?: (string); "constraintKind"?: ("compare" | "int-range" | "vocabulary") & (string); "detail": (string); "field"?: (string); "fieldId"?: (string); "fieldPath"?: (string); "guardReason"?: (string); "left"?: (string); "notAfterField"?: (string); "reasonCode"?: ("computation-error" | "source-data-error" | "disclosure-risk") & (string); "recordType"?: (string); "refusalCode"?: (string); "requiredFilters"?: (Array<(Array<(string)>)>); "right"?: (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) & (({ "code": "access-profile.ambiguous" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & ({ "status"?: 400; "accessProfiles": {} | null })) | ({ "code": "action.evidence-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "detail"?: "The declared Evidence dependency could not be accepted."; "fieldPath"?: (string); "status"?: 503 })) | ({ "code": "action.guard-failed" } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "action.handler-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "status"?: 500 })) | ({ "code": "action.refused" } & { "guardReason"?: never } & ({ "status"?: 422; "refusalCode": {} | null }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.content-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.digest-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.limit-reached" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.required" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.slot-write-once" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.too-large" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-pending" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-rejected" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "authentication.refused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.key-reused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.chunk-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.profile-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.receipt-erased" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-blocked" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-not-open" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "lookup.unresolved" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "mutation.conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "profile.not-authorized" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.rejected" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.review-result-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.submission-expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.cursor-invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.filter-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.access-reason-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.timeout" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "resource.not-found" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "runtime.field-encryption.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "service.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "source.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.domain-violation" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.release-refused" } & { "guardReason"?: never } & ({ "refusalCode": ("period-not-ended" | "before-first-period" | "provisional-after-final" | "already-withdrawn" | "negative-value"); "status"?: 422 }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-withdrawn" } & { "guardReason"?: never } & { "refusalCode"?: never } & ({ "status"?: 410; "reasonCode": {} | null }) & { "accessProfiles"?: never }) | ({ "code": "unsupported.media-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "write.outside-boundary" } & ({ "code"?: "write.outside-boundary"; "detail"?: "The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."; "status"?: 403; "title"?: "Forbidden"; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never })) +export type Schema_Problem = (({ "code"?: "access-profile.ambiguous"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous" }) | ({ "code"?: "action.evidence-failed"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/action/evidence-failed" }) | ({ "code"?: "action.guard-failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/action/guard-failed" }) | ({ "code"?: "action.handler-failed"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/action/handler-failed" }) | ({ "code"?: "action.refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/action/refused" }) | ({ "code"?: "attachment.content-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/content-type" }) | ({ "code"?: "attachment.digest-mismatch"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch" }) | ({ "code"?: "attachment.limit-reached"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/limit-reached" }) | ({ "code"?: "attachment.required"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/required" }) | ({ "code"?: "attachment.slot-write-once"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once" }) | ({ "code"?: "attachment.too-large"; "status"?: 413; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/too-large" }) | ({ "code"?: "attachment.verification-pending"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-pending" }) | ({ "code"?: "attachment.verification-rejected"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected" }) | ({ "code"?: "authentication.refused"; "status"?: 401; "type"?: "https://id.registrystack.org/problems/registry-breg/authentication/refused" }) | ({ "code"?: "idempotency.expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/expired" }) | ({ "code"?: "idempotency.key-reused"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/key-reused" }) | ({ "code"?: "ingestion.chunk-mismatch"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch" }) | ({ "code"?: "ingestion.profile-mismatch"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch" }) | ({ "code"?: "ingestion.receipt-erased"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased" }) | ({ "code"?: "ingestion.run-blocked"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked" }) | ({ "code"?: "ingestion.run-not-open"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open" }) | ({ "code"?: "lookup.unresolved"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/lookup/unresolved" }) | ({ "code"?: "mutation.conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/mutation/conflict" }) | ({ "code"?: "precondition.failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/failed" }) | ({ "code"?: "precondition.required"; "status"?: 428; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/required" }) | ({ "code"?: "profile.not-authorized"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/profile/not-authorized" }) | ({ "code"?: "proposal.rejected"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/rejected" }) | ({ "code"?: "proposal.review-result-mismatch"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch" }) | ({ "code"?: "proposal.submission-expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/submission-expired" }) | ({ "code"?: "query.cursor-invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/cursor-invalid" }) | ({ "code"?: "query.filter-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/filter-required" }) | ({ "code"?: "query.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/invalid" }) | ({ "code"?: "request.access-reason-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/access-reason-required" }) | ({ "code"?: "request.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/invalid" }) | ({ "code"?: "request.timeout"; "status"?: 504; "type"?: "https://id.registrystack.org/problems/registry-breg/request/timeout" }) | ({ "code"?: "resource.not-found"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/resource/not-found" }) | ({ "code"?: "runtime.field-encryption.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable" }) | ({ "code"?: "service.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/service/unavailable" }) | ({ "code"?: "source.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/source/unavailable" }) | ({ "code"?: "statistical-dataset.domain-violation"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation" }) | ({ "code"?: "statistical-dataset.release-refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused" }) | ({ "code"?: "statistical-dataset.version-conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict" }) | ({ "code"?: "statistical-dataset.version-withdrawn"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn" }) | ({ "code"?: "unsupported.media-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/unsupported/media-type" }) | ({ "code"?: "write.outside-boundary"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" })) & ({ "accessProfiles"?: (Array<(string)>); "atField"?: (string); "code": ("access-profile.ambiguous" | "action.evidence-failed" | "action.guard-failed" | "action.handler-failed" | "action.refused" | "attachment.content-type" | "attachment.digest-mismatch" | "attachment.limit-reached" | "attachment.required" | "attachment.slot-write-once" | "attachment.too-large" | "attachment.verification-pending" | "attachment.verification-rejected" | "authentication.refused" | "idempotency.expired" | "idempotency.key-reused" | "ingestion.chunk-mismatch" | "ingestion.profile-mismatch" | "ingestion.receipt-erased" | "ingestion.run-blocked" | "ingestion.run-not-open" | "lookup.unresolved" | "mutation.conflict" | "precondition.failed" | "precondition.required" | "profile.not-authorized" | "proposal.rejected" | "proposal.review-result-mismatch" | "proposal.submission-expired" | "query.cursor-invalid" | "query.filter-required" | "query.invalid" | "request.access-reason-required" | "request.invalid" | "request.timeout" | "resource.not-found" | "runtime.field-encryption.unavailable" | "service.unavailable" | "source.unavailable" | "statistical-dataset.domain-violation" | "statistical-dataset.release-refused" | "statistical-dataset.version-conflict" | "statistical-dataset.version-withdrawn" | "unsupported.media-type" | "write.outside-boundary") & (string); "constraintId"?: (string); "constraintKind"?: ("compare" | "int-range" | "vocabulary") & (string); "detail": (string); "failedCheck"?: (string); "field"?: (string); "fieldId"?: (string); "fieldPath"?: (string); "guardReason"?: (string); "left"?: (string); "notAfterField"?: (string); "reasonCode"?: ("computation-error" | "source-data-error" | "disclosure-risk") & (string); "recordType"?: (string); "refusalCode"?: (string); "requiredFilters"?: (Array<(Array<(string)>)>); "right"?: (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) & (({ "code": "access-profile.ambiguous" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & ({ "status"?: 400; "accessProfiles": {} | null })) | ({ "code": "action.evidence-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "detail"?: "The declared Evidence dependency could not be accepted."; "fieldPath"?: (string); "status"?: 503 })) | ({ "code": "action.guard-failed" } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "action.handler-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "status"?: 500 })) | ({ "code": "action.refused" } & { "guardReason"?: never } & ({ "status"?: 422; "refusalCode": {} | null }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.content-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.digest-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.limit-reached" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.required" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.slot-write-once" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.too-large" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-pending" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-rejected" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "authentication.refused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.key-reused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.chunk-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.profile-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.receipt-erased" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-blocked" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-not-open" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "lookup.unresolved" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "mutation.conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "profile.not-authorized" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.rejected" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.review-result-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.submission-expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.cursor-invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.filter-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.access-reason-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.timeout" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "resource.not-found" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "runtime.field-encryption.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "service.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "source.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.domain-violation" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.release-refused" } & { "guardReason"?: never } & ({ "refusalCode": ("period-not-ended" | "before-first-period" | "provisional-after-final" | "already-withdrawn" | "negative-value"); "status"?: 422 }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-withdrawn" } & { "guardReason"?: never } & { "refusalCode"?: never } & ({ "status"?: 410; "reasonCode": {} | null }) & { "accessProfiles"?: never }) | ({ "code": "unsupported.media-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "write.outside-boundary" } & ({ "code"?: "write.outside-boundary"; "detail"?: "The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."; "status"?: 403; "title"?: "Forbidden"; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never })) export type Schema_ReviewCompletion = ({ "completedAt": (string); "eventId": (string); "requestId": (string); "resultId": (string); "type": "review.completed" }) export type Schema_action_correct_address_invoke_input = ({ "input": ({ "addressLine"?: (string); "city"?: (string); "facilityId"?: (string); "postalCode"?: (string) }) }) export type Schema_action_correct_address_invoke_response = ({ "actionId": (string); "actionRevision": (string); "application"?: ({ "applicationId": (string); "effectDigest": (string); "resultLinks": (Array<({ "recordId": (string); "recordType": (string); "revision": (number) })>); "submissionVersion": (number) }); "applicationStatus"?: ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "applied" | "cancelled" | "rejected") }); "asks"?: (Array<({ "answer"?: ({ "additions": (Array<(string)>); "answeredAt": (string); "text"?: (string) }); "askedAt": (string); "dueAt"?: (string); "id": (string); "links": ({ "answer"?: ({ "accessProfile": (string); "availability": ({ "available": (boolean); "observedRevision": (number); "reason"?: ("pending-review" | "review-rejected" | "review-changes-requested" | "review-ended" | "stale-revision" | "package-changed" | "dependency-outage" | "invalid-input" | "already-applied" | "limit-reached" | "application-pending" | "attachment-required" | "attachment-pending" | "ask-answered" | "ask-closed" | "ask-due-passed"); "recovery"?: ("refresh" | "revise" | "retry" | "rebase" | "correct-input" | "receipt-only") }); "ifMatch": (string); "method": "POST"; "operation": "answer"; "path": (string) }) }); "state": ("open" | "answered" | "expired" | "closed"); "text": (string); "wants": (Array<({ "kind": ("answer" | "document") })>) })>); "attachments"?: (Record); "id": (string); "links": (Record); "maximumBytes": (number); "required": (boolean); "value"?: ({ "byteSize": (number); "contentType": (string); "sha256": (string); "submissionVersion": (number); "uploadedAt"?: (string); "verificationStatus": ("notRequired" | "pending" | "approved" | "rejected") }) })>); "blockedReason"?: ("package-changed"); "createdAt"?: (string); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest"?: (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "input"?: (Record); "links": (Record); "revision": (number); "state": ("draft" | "submitted" | "applied" | "cancelled" | "rejected"); "status"?: ("draft" | "awaiting-party" | "in-review" | "approved" | "processing" | "applied" | "rejected" | "cancelled"); "submissionVersion": (number); "title"?: (string); "turn": ("party" | "official" | "nobody") }) @@ -48,16 +48,16 @@ export interface Operations { "proposals.revise": { input: CallOptions & { path: { "proposal_id": (string) } } & { query?: { "accessProfile"?: "facility-correction-author" } } & { headers: { "If-Match": (string) } } & ({ body: (({ "input": ({ "addressLine"?: (string); "city"?: (string); "facilityId"?: (string); "postalCode"?: (string) }) }) | ({ "input": ({ "facilityId"?: (string) }) }) | (Record)) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "actionId": (string); "actionRevision": (string); "application"?: ({ "applicationId": (string); "effectDigest": (string); "resultLinks": (Array<({ "recordId": (string); "recordType": (string); "revision": (number) })>); "submissionVersion": (number) }); "applicationStatus"?: ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "applied" | "cancelled" | "rejected") }); "asks"?: (Array<({ "answer"?: ({ "additions": (Array<(string)>); "answeredAt": (string); "text"?: (string) }); "askedAt": (string); "dueAt"?: (string); "id": (string); "links": ({ "answer"?: ({ "accessProfile": (string); "availability": ({ "available": (boolean); "observedRevision": (number); "reason"?: ("pending-review" | "review-rejected" | "review-changes-requested" | "review-ended" | "stale-revision" | "package-changed" | "dependency-outage" | "invalid-input" | "already-applied" | "limit-reached" | "application-pending" | "attachment-required" | "attachment-pending" | "ask-answered" | "ask-closed" | "ask-due-passed"); "recovery"?: ("refresh" | "revise" | "retry" | "rebase" | "correct-input" | "receipt-only") }); "ifMatch": (string); "method": "POST"; "operation": "answer"; "path": (string) }) }); "state": ("open" | "answered" | "expired" | "closed"); "text": (string); "wants": (Array<({ "kind": ("answer" | "document") })>) })>); "attachments"?: (Record); "id": (string); "links": (Record); "maximumBytes": (number); "required": (boolean); "value"?: ({ "byteSize": (number); "contentType": (string); "sha256": (string); "submissionVersion": (number); "uploadedAt"?: (string); "verificationStatus": ("notRequired" | "pending" | "approved" | "rejected") }) })>); "blockedReason"?: ("package-changed"); "createdAt"?: (string); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest"?: (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "input"?: (Record); "links": (Record); "revision": (number); "state": ("draft" | "submitted" | "applied" | "cancelled" | "rejected"); "status"?: ("draft" | "awaiting-party" | "in-review" | "approved" | "processing" | "applied" | "rejected" | "cancelled"); "submissionVersion": (number); "title"?: (string); "turn": ("party" | "official" | "nobody") }) } "proposals.get-submission": { input: CallOptions & { path: { "proposal_id": (string); "submission_version": (number) } } & { query?: { "accessProfile"?: "facility-correction-applier" | "facility-correction-author" } } & { accept?: "application/json" | "*/*" }; required: true; output: ({ "actionId": (string); "application": (({ "applicationId": (string); "appliedAt"?: (string); "appliedBy"?: (string); "state": "applied" }) | ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "cancelled" | "rejected") }) | (null)); "current": (boolean); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest": (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "review": (({ "availableUntil"?: (string); "completedAt"?: (string); "resultId"?: (string); "state": ("pending" | "approved" | "rejected" | "changes-requested" | "answered" | "cancelled" | "superseded" | "expired") }) | (null)); "submissionVersion": (number) }) } "proposals.submit": { input: CallOptions & { path: { "proposal_id": (string) } } & { query?: { "accessProfile"?: "facility-correction-author" } } & { headers: { "If-Match": (string) } } & ({ body: (Record) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "actionId": (string); "actionRevision": (string); "application"?: ({ "applicationId": (string); "effectDigest": (string); "resultLinks": (Array<({ "recordId": (string); "recordType": (string); "revision": (number) })>); "submissionVersion": (number) }); "applicationStatus"?: ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "applied" | "cancelled" | "rejected") }); "asks"?: (Array<({ "answer"?: ({ "additions": (Array<(string)>); "answeredAt": (string); "text"?: (string) }); "askedAt": (string); "dueAt"?: (string); "id": (string); "links": ({ "answer"?: ({ "accessProfile": (string); "availability": ({ "available": (boolean); "observedRevision": (number); "reason"?: ("pending-review" | "review-rejected" | "review-changes-requested" | "review-ended" | "stale-revision" | "package-changed" | "dependency-outage" | "invalid-input" | "already-applied" | "limit-reached" | "application-pending" | "attachment-required" | "attachment-pending" | "ask-answered" | "ask-closed" | "ask-due-passed"); "recovery"?: ("refresh" | "revise" | "retry" | "rebase" | "correct-input" | "receipt-only") }); "ifMatch": (string); "method": "POST"; "operation": "answer"; "path": (string) }) }); "state": ("open" | "answered" | "expired" | "closed"); "text": (string); "wants": (Array<({ "kind": ("answer" | "document") })>) })>); "attachments"?: (Record); "id": (string); "links": (Record); "maximumBytes": (number); "required": (boolean); "value"?: ({ "byteSize": (number); "contentType": (string); "sha256": (string); "submissionVersion": (number); "uploadedAt"?: (string); "verificationStatus": ("notRequired" | "pending" | "approved" | "rejected") }) })>); "blockedReason"?: ("package-changed"); "createdAt"?: (string); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest"?: (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "input"?: (Record); "links": (Record); "revision": (number); "state": ("draft" | "submitted" | "applied" | "cancelled" | "rejected"); "status"?: ("draft" | "awaiting-party" | "in-review" | "approved" | "processing" | "applied" | "rejected" | "cancelled"); "submissionVersion": (number); "title"?: (string); "turn": ("party" | "official" | "nobody") }) } - "records.directory-entry.list": { input: CallOptions & { query?: { "accessProfile"?: "directory-editor"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "$top"?: (number); "$count"?: (boolean); "$skiptoken"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } + "records.directory-entry.list": { input: CallOptions & { query?: { "accessProfile"?: "directory-editor"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "limit"?: (number); "$count"?: (boolean); "cursor"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } "records.directory-entry.create": { input: CallOptions & { query?: { "accessProfile"?: "directory-editor" } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & ({ body: ({ "data": Schema_directory_entry_create_input }) }) & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": Schema_directory_entry; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": Schema_directory_entry; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }) }) } "records.directory-entry.get": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "directory-editor"; "$select"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }) }) } "records.directory-entry.patch": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "directory-editor" } } & { headers: { "traceparent"?: (string); "If-Match": (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & ({ body: (Array<({ "op": ("add" | "replace" | "remove" | "test") & (string); "path": (string); "value"?: JsonValue })>) }) & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": Schema_directory_entry; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": Schema_directory_entry; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "directory-entry"; "registryId": "facility-registry" }) }) } - "records.facility.list": { input: CallOptions & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "$top"?: (number); "$count"?: (boolean); "$skiptoken"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "addressLine"?: (string); "city"?: (string); "facilityCode"?: (string); "jurisdiction"?: (string); "name"?: (string); "postalCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "addressLine"?: (string); "city"?: (string); "facilityCode"?: (string); "jurisdiction"?: (string); "name"?: (string); "postalCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } + "records.facility.list": { input: CallOptions & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "limit"?: (number); "$count"?: (boolean); "cursor"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "addressLine"?: (string); "city"?: (string); "facilityCode"?: (string); "jurisdiction"?: (string); "name"?: (string); "postalCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "addressLine"?: (string); "city"?: (string); "facilityCode"?: (string); "jurisdiction"?: (string); "name"?: (string); "postalCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } "records.facility.get": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "facility-reader" | "proposal-reviewer"; "$select"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "addressLine"?: (string); "city"?: (string); "facilityCode"?: (string); "jurisdiction"?: (string); "name"?: (string); "postalCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": ({ "addressLine"?: (string); "city"?: (string); "facilityCode"?: (string); "jurisdiction"?: (string); "name"?: (string); "postalCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility"; "registryId": "facility-registry" }) }) } - "records.facility.path.operators": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "$top"?: (number); "$count"?: (boolean); "$skiptoken"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } - "records.facility-assignment.list": { input: CallOptions & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "$top"?: (number); "$count"?: (boolean); "$skiptoken"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "facility"?: (string); "jurisdiction"?: (string); "operator"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility-assignment"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "facility"?: (string); "jurisdiction"?: (string); "operator"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility-assignment"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } + "records.facility.path.operators": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "limit"?: (number); "$count"?: (boolean); "cursor"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } + "records.facility-assignment.list": { input: CallOptions & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "limit"?: (number); "$count"?: (boolean); "cursor"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "facility"?: (string); "jurisdiction"?: (string); "operator"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility-assignment"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "facility"?: (string); "jurisdiction"?: (string); "operator"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility-assignment"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } "records.facility-assignment.get": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "facility-reader"; "$select"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "facility"?: (string); "jurisdiction"?: (string); "operator"?: (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility-assignment"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": ({ "facility"?: (string); "jurisdiction"?: (string); "operator"?: (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "facility-assignment"; "registryId": "facility-registry" }) }) } - "records.operator.list": { input: CallOptions & { query?: { "accessProfile"?: "facility-reader" | "operator-editor"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "$top"?: (number); "$count"?: (boolean); "$skiptoken"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } + "records.operator.list": { input: CallOptions & { query?: { "accessProfile"?: "facility-reader" | "operator-editor"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "limit"?: (number); "$count"?: (boolean); "cursor"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } "records.operator.create": { input: CallOptions & { query?: { "accessProfile"?: "operator-editor" } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & ({ body: ({ "data": Schema_operator_create_input }) }) & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": Schema_operator; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": Schema_operator; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }) }) } "records.operator.get": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "facility-reader" | "operator-editor"; "$select"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }) }) } "records.operator.patch": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "operator-editor" } } & { headers: { "traceparent"?: (string); "If-Match": (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & ({ body: (Array<({ "op": ("add" | "replace" | "remove" | "test") & (string); "path": (string); "value"?: JsonValue })>) }) & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": Schema_operator; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": Schema_operator; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "facility-registry"; "recordTypeId": "operator"; "registryId": "facility-registry" }) }) } @@ -77,12 +77,12 @@ export interface ListRows { "operator": ({ "domainData": ({ "jurisdiction"?: (string); "operatorCode"?: (string); "status"?: ("active" | "inactive") & (string) }); "recordId": (string); "revisionId": (string) }) } export interface ListOptions { - "directory-entry": (CallOptions & { accessProfile?: "directory-editor"; where?: never; orderBy?: never; select?: ReadonlyArray<"email" | "jurisdiction" | "name">; count?: never; top?: number; after?: never }) | (CallOptions & { accessProfile?: "directory-editor"; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never }) - "facility": (CallOptions & { accessProfile?: "facility-reader"; where?: never; orderBy?: never; select?: ReadonlyArray<"addressLine" | "city" | "facilityCode" | "jurisdiction" | "name" | "postalCode" | "status">; count?: never; top?: number; after?: never }) | (CallOptions & { accessProfile?: "facility-reader"; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never }) - "facility-assignment": (CallOptions & { accessProfile?: "facility-reader"; where?: { "facility"?: Filter, "equals" | "in" | "is-null" | "is-not-null">; "operator"?: Filter, "equals" | "in" | "is-null" | "is-not-null"> }; orderBy?: never; select?: ReadonlyArray<"facility" | "jurisdiction" | "operator">; count?: never; top?: number; after?: never }) | (CallOptions & { accessProfile?: "facility-reader"; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never }) - "operator": (CallOptions & { accessProfile?: "facility-reader"; where?: never; orderBy?: never; select?: ReadonlyArray<"jurisdiction" | "operatorCode" | "status">; count?: never; top?: number; after?: never }) | (CallOptions & { accessProfile?: "facility-reader"; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never }) | (CallOptions & { accessProfile?: "operator-editor"; where?: never; orderBy?: never; select?: ReadonlyArray<"jurisdiction" | "operatorCode" | "status">; count?: never; top?: number; after?: never }) | (CallOptions & { accessProfile?: "operator-editor"; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never }) + "directory-entry": (CallOptions & { accessProfile?: "directory-editor"; where?: never; orderBy?: never; select?: ReadonlyArray<"email" | "jurisdiction" | "name">; count?: never; limit?: number; cursor?: never }) | (CallOptions & { accessProfile?: "directory-editor"; cursor: string; where?: never; orderBy?: never; select?: never; count?: never; limit?: never }) + "facility": (CallOptions & { accessProfile?: "facility-reader"; where?: never; orderBy?: never; select?: ReadonlyArray<"addressLine" | "city" | "facilityCode" | "jurisdiction" | "name" | "postalCode" | "status">; count?: never; limit?: number; cursor?: never }) | (CallOptions & { accessProfile?: "facility-reader"; cursor: string; where?: never; orderBy?: never; select?: never; count?: never; limit?: never }) + "facility-assignment": (CallOptions & { accessProfile?: "facility-reader"; where?: { "facility"?: Filter, "equals" | "in" | "is-null" | "is-not-null">; "operator"?: Filter, "equals" | "in" | "is-null" | "is-not-null"> }; orderBy?: never; select?: ReadonlyArray<"facility" | "jurisdiction" | "operator">; count?: never; limit?: number; cursor?: never }) | (CallOptions & { accessProfile?: "facility-reader"; cursor: string; where?: never; orderBy?: never; select?: never; count?: never; limit?: never }) + "operator": (CallOptions & { accessProfile?: "facility-reader"; where?: never; orderBy?: never; select?: ReadonlyArray<"jurisdiction" | "operatorCode" | "status">; count?: never; limit?: number; cursor?: never }) | (CallOptions & { accessProfile?: "facility-reader"; cursor: string; where?: never; orderBy?: never; select?: never; count?: never; limit?: never }) | (CallOptions & { accessProfile?: "operator-editor"; where?: never; orderBy?: never; select?: ReadonlyArray<"jurisdiction" | "operatorCode" | "status">; count?: never; limit?: number; cursor?: never }) | (CallOptions & { accessProfile?: "operator-editor"; cursor: string; where?: never; orderBy?: never; select?: never; count?: never; limit?: never }) } -const listRules: Record = JSON.parse("{\"directory-entry\":{\"operation\":\"records.directory-entry.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"recordProperties\":[\"email\",\"jurisdiction\",\"name\"],\"profiles\":{\"directory-editor\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"email\",\"jurisdiction\",\"name\"],\"filterable\":{},\"sortable\":{}}}},\"facility\":{\"operation\":\"records.facility.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"recordProperties\":[\"addressLine\",\"city\",\"facilityCode\",\"jurisdiction\",\"name\",\"postalCode\",\"status\"],\"profiles\":{\"facility-reader\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"addressLine\",\"city\",\"facilityCode\",\"jurisdiction\",\"name\",\"postalCode\",\"status\"],\"filterable\":{},\"sortable\":{}}}},\"facility-assignment\":{\"operation\":\"records.facility-assignment.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"recordProperties\":[\"facility\",\"jurisdiction\",\"operator\"],\"profiles\":{\"facility-reader\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"facility\",\"jurisdiction\",\"operator\"],\"filterable\":{\"facility\":[\"equals\",\"in\",\"is-null\",\"is-not-null\"],\"operator\":[\"equals\",\"in\",\"is-null\",\"is-not-null\"]},\"sortable\":{}}}},\"operator\":{\"operation\":\"records.operator.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"recordProperties\":[\"jurisdiction\",\"operatorCode\",\"status\"],\"profiles\":{\"facility-reader\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"jurisdiction\",\"operatorCode\",\"status\"],\"filterable\":{},\"sortable\":{}},\"operator-editor\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"jurisdiction\",\"operatorCode\",\"status\"],\"filterable\":{},\"sortable\":{}}}}}") +const listRules: Record = JSON.parse("{\"directory-entry\":{\"operation\":\"records.directory-entry.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"paginationParameters\":{\"size\":\"limit\",\"cursor\":\"cursor\"},\"recordProperties\":[\"email\",\"jurisdiction\",\"name\"],\"profiles\":{\"directory-editor\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"email\",\"jurisdiction\",\"name\"],\"filterable\":{},\"sortable\":{}}}},\"facility\":{\"operation\":\"records.facility.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"paginationParameters\":{\"size\":\"limit\",\"cursor\":\"cursor\"},\"recordProperties\":[\"addressLine\",\"city\",\"facilityCode\",\"jurisdiction\",\"name\",\"postalCode\",\"status\"],\"profiles\":{\"facility-reader\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"addressLine\",\"city\",\"facilityCode\",\"jurisdiction\",\"name\",\"postalCode\",\"status\"],\"filterable\":{},\"sortable\":{}}}},\"facility-assignment\":{\"operation\":\"records.facility-assignment.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"paginationParameters\":{\"size\":\"limit\",\"cursor\":\"cursor\"},\"recordProperties\":[\"facility\",\"jurisdiction\",\"operator\"],\"profiles\":{\"facility-reader\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"facility\",\"jurisdiction\",\"operator\"],\"filterable\":{\"facility\":[\"equals\",\"in\",\"is-null\",\"is-not-null\"],\"operator\":[\"equals\",\"in\",\"is-null\",\"is-not-null\"]},\"sortable\":{}}}},\"operator\":{\"operation\":\"records.operator.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"paginationParameters\":{\"size\":\"limit\",\"cursor\":\"cursor\"},\"recordProperties\":[\"jurisdiction\",\"operatorCode\",\"status\"],\"profiles\":{\"facility-reader\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"jurisdiction\",\"operatorCode\",\"status\"],\"filterable\":{},\"sortable\":{}},\"operator-editor\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"jurisdiction\",\"operatorCode\",\"status\"],\"filterable\":{},\"sortable\":{}}}}}") interface ReadRows { "directory-entry": Operations["records.directory-entry.get"]["output"]["data"] @@ -105,7 +105,7 @@ function recordRow(record: RecordEnvelope & { domainData: Data }): RecordR } const rules: Record = Object.fromEntries([ - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"allOf\":[{\"if\":{\"properties\":{\"code\":{\"enum\":[\"attachment.required\",\"attachment.verification-pending\",\"attachment.verification-rejected\"]}}},\"then\":{\"allOf\":[{\"else\":{\"properties\":{\"status\":{\"const\":422}}},\"if\":{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"}}},\"then\":{\"properties\":{\"status\":{\"const\":409}}}}],\"properties\":{\"fieldPath\":{\"pattern\":\"^/attachments/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"fieldPath\"]},\"required\":[\"fieldPath\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"}}},\"then\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"detail\":{\"const\":\"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.\"},\"status\":{\"const\":403},\"title\":{\"const\":\"Forbidden\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"]}}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"action.guard-failed\"}}}},\"then\":{\"not\":{\"required\":[\"guardReason\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.refused\"}}},\"then\":{\"properties\":{\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"}}},\"then\":{\"properties\":{\"refusalCode\":{\"enum\":[\"period-not-ended\",\"before-first-period\",\"provisional-after-final\",\"already-withdrawn\",\"negative-value\"]},\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"enum\":[\"action.refused\",\"statistical-dataset.release-refused\"]}}}},\"then\":{\"not\":{\"required\":[\"refusalCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"}}},\"then\":{\"properties\":{\"status\":{\"const\":410}},\"required\":[\"reasonCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"statistical-dataset.version-withdrawn\"}}}},\"then\":{\"not\":{\"required\":[\"reasonCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"}}},\"then\":{\"additionalProperties\":true,\"properties\":{\"status\":{\"const\":400}},\"required\":[\"accessProfiles\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"access-profile.ambiguous\"}}}},\"then\":{\"not\":{\"required\":[\"accessProfiles\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"}}},\"then\":{\"properties\":{\"detail\":{\"const\":\"The declared Evidence dependency could not be accepted.\"},\"fieldPath\":{\"pattern\":\"^/evidence/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"status\":{\"const\":503}}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"}}},\"then\":{\"properties\":{\"status\":{\"const\":500}}}},{\"if\":{\"anyOf\":[{\"required\":[\"atField\"]},{\"required\":[\"notAfterField\"]}]},\"then\":{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400}},\"required\":[\"atField\",\"notAfterField\"]}},{\"if\":{\"anyOf\":[{\"required\":[\"recordType\"]},{\"required\":[\"fieldId\"]},{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"then\":{\"oneOf\":[{\"not\":{\"anyOf\":[{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"required\":[\"fieldId\"]},{\"not\":{\"required\":[\"fieldId\"]},\"oneOf\":[{\"not\":{\"required\":[\"field\"]},\"properties\":{\"constraintKind\":{\"const\":\"compare\"}},\"required\":[\"left\",\"right\"]},{\"not\":{\"anyOf\":[{\"required\":[\"left\"]},{\"required\":[\"right\"]}]},\"properties\":{\"constraintKind\":{\"enum\":[\"int-range\",\"vocabulary\"]}},\"required\":[\"field\"]}],\"required\":[\"constraintId\",\"constraintKind\"]}],\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409}},\"required\":[\"recordType\"]}}],\"anyOf\":[{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous\"}}},{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/evidence-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.guard-failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/guard-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/handler-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/refused\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.content-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/content-type\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.digest-mismatch\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.limit-reached\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.required\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/required\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.slot-write-once\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.too-large\"},\"status\":{\"const\":413},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/too-large\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-rejected\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected\"}}},{\"properties\":{\"code\":{\"const\":\"authentication.refused\"},\"status\":{\"const\":401},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/authentication/refused\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/expired\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.key-reused\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.chunk-mismatch\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.profile-mismatch\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.receipt-erased\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-blocked\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-not-open\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open\"}}},{\"properties\":{\"code\":{\"const\":\"lookup.unresolved\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/lookup/unresolved\"}}},{\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/mutation/conflict\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/failed\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.required\"},\"status\":{\"const\":428},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/required\"}}},{\"properties\":{\"code\":{\"const\":\"profile.not-authorized\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/profile/not-authorized\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.rejected\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/rejected\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.review-result-mismatch\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.submission-expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired\"}}},{\"properties\":{\"code\":{\"const\":\"query.cursor-invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid\"}}},{\"properties\":{\"code\":{\"const\":\"query.filter-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/filter-required\"}}},{\"properties\":{\"code\":{\"const\":\"query.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.access-reason-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/access-reason-required\"}}},{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.timeout\"},\"status\":{\"const\":504},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/timeout\"}}},{\"properties\":{\"code\":{\"const\":\"resource.not-found\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/resource/not-found\"}}},{\"properties\":{\"code\":{\"const\":\"runtime.field-encryption.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"service.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/service/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"source.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/source/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.domain-violation\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn\"}}},{\"properties\":{\"code\":{\"const\":\"unsupported.media-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/unsupported/media-type\"}}},{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}}}],\"properties\":{\"accessProfiles\":{\"items\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"minItems\":2,\"type\":\"array\",\"uniqueItems\":true},\"atField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"code\":{\"enum\":[\"access-profile.ambiguous\",\"action.evidence-failed\",\"action.guard-failed\",\"action.handler-failed\",\"action.refused\",\"attachment.content-type\",\"attachment.digest-mismatch\",\"attachment.limit-reached\",\"attachment.required\",\"attachment.slot-write-once\",\"attachment.too-large\",\"attachment.verification-pending\",\"attachment.verification-rejected\",\"authentication.refused\",\"idempotency.expired\",\"idempotency.key-reused\",\"ingestion.chunk-mismatch\",\"ingestion.profile-mismatch\",\"ingestion.receipt-erased\",\"ingestion.run-blocked\",\"ingestion.run-not-open\",\"lookup.unresolved\",\"mutation.conflict\",\"precondition.failed\",\"precondition.required\",\"profile.not-authorized\",\"proposal.rejected\",\"proposal.review-result-mismatch\",\"proposal.submission-expired\",\"query.cursor-invalid\",\"query.filter-required\",\"query.invalid\",\"request.access-reason-required\",\"request.invalid\",\"request.timeout\",\"resource.not-found\",\"runtime.field-encryption.unavailable\",\"service.unavailable\",\"source.unavailable\",\"statistical-dataset.domain-violation\",\"statistical-dataset.release-refused\",\"statistical-dataset.version-conflict\",\"statistical-dataset.version-withdrawn\",\"unsupported.media-type\",\"write.outside-boundary\"],\"type\":\"string\"},\"constraintId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"constraintKind\":{\"enum\":[\"compare\",\"int-range\",\"vocabulary\"],\"type\":\"string\"},\"detail\":{\"maxLength\":256,\"type\":\"string\"},\"field\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldPath\":{\"maxLength\":256,\"type\":\"string\"},\"guardReason\":{\"pattern\":\"^[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"left\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"notAfterField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"reasonCode\":{\"enum\":[\"computation-error\",\"source-data-error\",\"disclosure-risk\"],\"type\":\"string\"},\"recordType\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"refusalCode\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"requiredFilters\":{\"items\":{\"items\":{\"maxLength\":64,\"minLength\":1,\"type\":\"string\"},\"maxItems\":32,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"maxItems\":8,\"minItems\":1,\"type\":\"array\"},\"right\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"status\":{\"maximum\":599,\"minimum\":400,\"type\":\"integer\"},\"title\":{\"maxLength\":128,\"type\":\"string\"},\"traceId\":{\"maxLength\":32,\"minLength\":32,\"pattern\":\"^[0-9a-f]{32}$\",\"type\":\"string\"},\"type\":{\"maxLength\":256,\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"allOf\":[{\"if\":{\"properties\":{\"code\":{\"enum\":[\"attachment.required\",\"attachment.verification-pending\",\"attachment.verification-rejected\"]}}},\"then\":{\"allOf\":[{\"else\":{\"properties\":{\"status\":{\"const\":422}}},\"if\":{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"}}},\"then\":{\"properties\":{\"status\":{\"const\":409}}}}],\"properties\":{\"fieldPath\":{\"pattern\":\"^/attachments/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"fieldPath\"]},\"required\":[\"fieldPath\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"}}},\"then\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"detail\":{\"const\":\"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.\"},\"status\":{\"const\":403},\"title\":{\"const\":\"Forbidden\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"failedCheck\"]}}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"action.guard-failed\"}}}},\"then\":{\"not\":{\"required\":[\"guardReason\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.refused\"}}},\"then\":{\"properties\":{\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"}}},\"then\":{\"properties\":{\"refusalCode\":{\"enum\":[\"period-not-ended\",\"before-first-period\",\"provisional-after-final\",\"already-withdrawn\",\"negative-value\"]},\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"enum\":[\"action.refused\",\"statistical-dataset.release-refused\"]}}}},\"then\":{\"not\":{\"required\":[\"refusalCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"}}},\"then\":{\"properties\":{\"status\":{\"const\":410}},\"required\":[\"reasonCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"statistical-dataset.version-withdrawn\"}}}},\"then\":{\"not\":{\"required\":[\"reasonCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"}}},\"then\":{\"additionalProperties\":true,\"not\":{\"required\":[\"failedCheck\"]},\"properties\":{\"status\":{\"const\":400}},\"required\":[\"accessProfiles\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"access-profile.ambiguous\"}}}},\"then\":{\"not\":{\"required\":[\"accessProfiles\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"}}},\"then\":{\"properties\":{\"detail\":{\"const\":\"The declared Evidence dependency could not be accepted.\"},\"fieldPath\":{\"pattern\":\"^/evidence/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"status\":{\"const\":503}}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"}}},\"then\":{\"properties\":{\"status\":{\"const\":500}}}},{\"if\":{\"anyOf\":[{\"required\":[\"atField\"]},{\"required\":[\"notAfterField\"]}]},\"then\":{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400}},\"required\":[\"atField\",\"notAfterField\"]}},{\"if\":{\"anyOf\":[{\"required\":[\"recordType\"]},{\"required\":[\"fieldId\"]},{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"then\":{\"oneOf\":[{\"not\":{\"anyOf\":[{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"required\":[\"fieldId\"]},{\"not\":{\"required\":[\"fieldId\"]},\"oneOf\":[{\"not\":{\"required\":[\"field\"]},\"properties\":{\"constraintKind\":{\"const\":\"compare\"}},\"required\":[\"left\",\"right\"]},{\"not\":{\"anyOf\":[{\"required\":[\"left\"]},{\"required\":[\"right\"]}]},\"properties\":{\"constraintKind\":{\"enum\":[\"int-range\",\"vocabulary\"]}},\"required\":[\"field\"]}],\"required\":[\"constraintId\",\"constraintKind\"]}],\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409}},\"required\":[\"recordType\"]}}],\"anyOf\":[{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous\"}}},{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/evidence-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.guard-failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/guard-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/handler-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/refused\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.content-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/content-type\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.digest-mismatch\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.limit-reached\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.required\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/required\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.slot-write-once\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.too-large\"},\"status\":{\"const\":413},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/too-large\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-rejected\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected\"}}},{\"properties\":{\"code\":{\"const\":\"authentication.refused\"},\"status\":{\"const\":401},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/authentication/refused\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/expired\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.key-reused\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.chunk-mismatch\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.profile-mismatch\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.receipt-erased\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-blocked\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-not-open\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open\"}}},{\"properties\":{\"code\":{\"const\":\"lookup.unresolved\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/lookup/unresolved\"}}},{\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/mutation/conflict\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/failed\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.required\"},\"status\":{\"const\":428},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/required\"}}},{\"properties\":{\"code\":{\"const\":\"profile.not-authorized\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/profile/not-authorized\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.rejected\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/rejected\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.review-result-mismatch\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.submission-expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired\"}}},{\"properties\":{\"code\":{\"const\":\"query.cursor-invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid\"}}},{\"properties\":{\"code\":{\"const\":\"query.filter-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/filter-required\"}}},{\"properties\":{\"code\":{\"const\":\"query.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.access-reason-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/access-reason-required\"}}},{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.timeout\"},\"status\":{\"const\":504},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/timeout\"}}},{\"properties\":{\"code\":{\"const\":\"resource.not-found\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/resource/not-found\"}}},{\"properties\":{\"code\":{\"const\":\"runtime.field-encryption.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"service.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/service/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"source.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/source/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.domain-violation\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn\"}}},{\"properties\":{\"code\":{\"const\":\"unsupported.media-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/unsupported/media-type\"}}},{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}}}],\"properties\":{\"accessProfiles\":{\"items\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"minItems\":2,\"type\":\"array\",\"uniqueItems\":true},\"atField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"code\":{\"enum\":[\"access-profile.ambiguous\",\"action.evidence-failed\",\"action.guard-failed\",\"action.handler-failed\",\"action.refused\",\"attachment.content-type\",\"attachment.digest-mismatch\",\"attachment.limit-reached\",\"attachment.required\",\"attachment.slot-write-once\",\"attachment.too-large\",\"attachment.verification-pending\",\"attachment.verification-rejected\",\"authentication.refused\",\"idempotency.expired\",\"idempotency.key-reused\",\"ingestion.chunk-mismatch\",\"ingestion.profile-mismatch\",\"ingestion.receipt-erased\",\"ingestion.run-blocked\",\"ingestion.run-not-open\",\"lookup.unresolved\",\"mutation.conflict\",\"precondition.failed\",\"precondition.required\",\"profile.not-authorized\",\"proposal.rejected\",\"proposal.review-result-mismatch\",\"proposal.submission-expired\",\"query.cursor-invalid\",\"query.filter-required\",\"query.invalid\",\"request.access-reason-required\",\"request.invalid\",\"request.timeout\",\"resource.not-found\",\"runtime.field-encryption.unavailable\",\"service.unavailable\",\"source.unavailable\",\"statistical-dataset.domain-violation\",\"statistical-dataset.release-refused\",\"statistical-dataset.version-conflict\",\"statistical-dataset.version-withdrawn\",\"unsupported.media-type\",\"write.outside-boundary\"],\"type\":\"string\"},\"constraintId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"constraintKind\":{\"enum\":[\"compare\",\"int-range\",\"vocabulary\"],\"type\":\"string\"},\"detail\":{\"maxLength\":256,\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"field\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldPath\":{\"maxLength\":256,\"type\":\"string\"},\"guardReason\":{\"pattern\":\"^[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"left\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"notAfterField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"reasonCode\":{\"enum\":[\"computation-error\",\"source-data-error\",\"disclosure-risk\"],\"type\":\"string\"},\"recordType\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"refusalCode\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"requiredFilters\":{\"items\":{\"items\":{\"maxLength\":64,\"minLength\":1,\"type\":\"string\"},\"maxItems\":32,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"maxItems\":8,\"minItems\":1,\"type\":\"array\"},\"right\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"status\":{\"maximum\":599,\"minimum\":400,\"type\":\"integer\"},\"title\":{\"maxLength\":128,\"type\":\"string\"},\"traceId\":{\"maxLength\":32,\"minLength\":32,\"pattern\":\"^[0-9a-f]{32}$\",\"type\":\"string\"},\"type\":{\"maxLength\":256,\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ReviewCompletion", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"completedAt\":{\"type\":\"string\"},\"eventId\":{\"type\":\"string\"},\"requestId\":{\"type\":\"string\"},\"resultId\":{\"type\":\"string\"},\"type\":{\"const\":\"review.completed\"}},\"required\":[\"type\",\"eventId\",\"requestId\",\"resultId\",\"completedAt\"],\"type\":\"object\"}")], ["/components/schemas/action-correct-address-invoke-input", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"input\":{\"additionalProperties\":false,\"properties\":{\"addressLine\":{\"maxLength\":240,\"minLength\":1,\"type\":\"string\"},\"city\":{\"maxLength\":120,\"minLength\":1,\"type\":\"string\"},\"facilityId\":{\"type\":\"string\"},\"postalCode\":{\"maxLength\":24,\"minLength\":1,\"type\":\"string\"}},\"required\":[],\"type\":\"object\"}},\"required\":[\"input\"],\"type\":\"object\"}")], ["/components/schemas/action-correct-address-invoke-response", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"actionId\":{\"type\":\"string\"},\"actionRevision\":{\"type\":\"string\"},\"application\":{\"additionalProperties\":false,\"properties\":{\"applicationId\":{\"type\":\"string\"},\"effectDigest\":{\"pattern\":\"^sha256:[0-9a-f]{64}$\",\"type\":\"string\"},\"resultLinks\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"recordId\":{\"type\":\"string\"},\"recordType\":{\"type\":\"string\"},\"revision\":{\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"recordType\",\"recordId\",\"revision\"],\"type\":\"object\"},\"maxItems\":16,\"type\":\"array\"},\"submissionVersion\":{\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"applicationId\",\"submissionVersion\",\"effectDigest\",\"resultLinks\"],\"type\":\"object\"},\"applicationStatus\":{\"additionalProperties\":false,\"properties\":{\"automaticRetry\":{\"additionalProperties\":false,\"properties\":{\"attempts\":{\"maximum\":1000,\"minimum\":0,\"type\":\"integer\"},\"maximumAttempts\":{\"maximum\":1000,\"minimum\":1,\"type\":\"integer\"},\"scheduled\":{\"type\":\"boolean\"}},\"required\":[\"scheduled\",\"attempts\",\"maximumAttempts\"],\"type\":\"object\"},\"mode\":{\"enum\":[\"automatic\",\"manual\"]},\"reason\":{\"enum\":[\"package-changed\",\"dependency-outage\",\"lease-expired\",\"application-refused\",\"attempts-exhausted\"]},\"recovery\":{\"enum\":[\"retry\",\"rebase\",\"revise\",\"correct-input\"]},\"state\":{\"enum\":[\"awaiting-review\",\"pending\",\"applying\",\"blocked\",\"applied\",\"cancelled\",\"rejected\"]}},\"required\":[\"state\",\"mode\"],\"type\":\"object\"},\"asks\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"answer\":{\"additionalProperties\":false,\"properties\":{\"additions\":{\"items\":{\"type\":\"string\"},\"maxItems\":32,\"type\":\"array\",\"uniqueItems\":true},\"answeredAt\":{\"type\":\"string\"},\"text\":{\"maxLength\":2000,\"minLength\":1,\"type\":\"string\"}},\"required\":[\"additions\",\"answeredAt\"],\"type\":\"object\"},\"askedAt\":{\"type\":\"string\"},\"dueAt\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"links\":{\"additionalProperties\":false,\"properties\":{\"answer\":{\"additionalProperties\":false,\"properties\":{\"accessProfile\":{\"type\":\"string\"},\"availability\":{\"additionalProperties\":false,\"if\":{\"properties\":{\"available\":{\"const\":false}}},\"properties\":{\"available\":{\"type\":\"boolean\"},\"observedRevision\":{\"minimum\":1,\"type\":\"integer\"},\"reason\":{\"enum\":[\"pending-review\",\"review-rejected\",\"review-changes-requested\",\"review-ended\",\"stale-revision\",\"package-changed\",\"dependency-outage\",\"invalid-input\",\"already-applied\",\"limit-reached\",\"application-pending\",\"attachment-required\",\"attachment-pending\",\"ask-answered\",\"ask-closed\",\"ask-due-passed\"]},\"recovery\":{\"enum\":[\"refresh\",\"revise\",\"retry\",\"rebase\",\"correct-input\",\"receipt-only\"]}},\"required\":[\"available\",\"observedRevision\"],\"then\":{\"required\":[\"reason\",\"recovery\"]},\"type\":\"object\"},\"ifMatch\":{\"type\":\"string\"},\"method\":{\"const\":\"POST\"},\"operation\":{\"const\":\"answer\"},\"path\":{\"type\":\"string\"}},\"required\":[\"method\",\"path\",\"accessProfile\",\"operation\",\"ifMatch\",\"availability\"],\"type\":\"object\"}},\"type\":\"object\"},\"state\":{\"enum\":[\"open\",\"answered\",\"expired\",\"closed\"]},\"text\":{\"maxLength\":2000,\"minLength\":1,\"type\":\"string\"},\"wants\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"answer\",\"document\"]}},\"required\":[\"kind\"],\"type\":\"object\"},\"maxItems\":8,\"type\":\"array\",\"uniqueItems\":true}},\"required\":[\"id\",\"text\",\"wants\",\"askedAt\",\"state\",\"links\"],\"type\":\"object\"},\"maxItems\":50,\"type\":\"array\"},\"attachments\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"classification\":{\"enum\":[\"public\",\"internal\",\"restricted\"]},\"contentTypes\":{\"items\":{\"type\":\"string\"},\"maxItems\":16,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"id\":{\"type\":\"string\"},\"links\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"accessProfile\":{\"type\":\"string\"},\"availability\":{\"additionalProperties\":false,\"if\":{\"properties\":{\"available\":{\"const\":false}}},\"properties\":{\"available\":{\"type\":\"boolean\"},\"observedRevision\":{\"minimum\":1,\"type\":\"integer\"},\"reason\":{\"enum\":[\"pending-review\",\"review-rejected\",\"review-changes-requested\",\"review-ended\",\"stale-revision\",\"package-changed\",\"dependency-outage\",\"invalid-input\",\"already-applied\",\"limit-reached\",\"application-pending\",\"attachment-required\",\"attachment-pending\",\"ask-answered\",\"ask-closed\",\"ask-due-passed\"]},\"recovery\":{\"enum\":[\"refresh\",\"revise\",\"retry\",\"rebase\",\"correct-input\",\"receipt-only\"]}},\"required\":[\"available\",\"observedRevision\"],\"then\":{\"required\":[\"reason\",\"recovery\"]},\"type\":\"object\"},\"ifMatch\":{\"type\":\"string\"},\"method\":{\"enum\":[\"GET\",\"PATCH\",\"DELETE\"]},\"operation\":{\"enum\":[\"download\",\"upload\",\"remove\"]},\"path\":{\"type\":\"string\"}},\"required\":[\"method\",\"path\",\"accessProfile\",\"operation\"],\"type\":\"object\"},\"type\":\"object\"},\"maximumBytes\":{\"maximum\":16777216,\"minimum\":1,\"type\":\"integer\"},\"required\":{\"type\":\"boolean\"},\"value\":{\"additionalProperties\":false,\"properties\":{\"byteSize\":{\"minimum\":1,\"type\":\"integer\"},\"contentType\":{\"type\":\"string\"},\"sha256\":{\"pattern\":\"^[a-f0-9]{64}$\",\"type\":\"string\"},\"submissionVersion\":{\"minimum\":0,\"type\":\"integer\"},\"uploadedAt\":{\"type\":\"string\"},\"verificationStatus\":{\"enum\":[\"notRequired\",\"pending\",\"approved\",\"rejected\"]}},\"required\":[\"submissionVersion\",\"sha256\",\"contentType\",\"byteSize\",\"verificationStatus\"],\"type\":\"object\"}},\"required\":[\"id\",\"required\",\"maximumBytes\",\"contentTypes\",\"classification\",\"links\"],\"type\":\"object\"},\"maxProperties\":8,\"type\":\"object\"},\"blockedReason\":{\"enum\":[\"package-changed\"]},\"createdAt\":{\"type\":\"string\"},\"decision\":{\"additionalProperties\":false,\"properties\":{\"decidedAt\":{\"type\":\"string\"},\"publicReason\":{\"minLength\":1,\"pattern\":\"^[^\\\\u0000-\\\\u001F\\\\u007F-\\\\u009F]*[^\\\\u0000-\\\\u0020\\\\u007F-\\\\u00A0\\\\u1680\\\\u2000-\\\\u200A\\\\u2028\\\\u2029\\\\u202F\\\\u205F\\\\u3000][^\\\\u0000-\\\\u001F\\\\u007F-\\\\u009F]*$\",\"type\":\"string\"},\"status\":{\"enum\":[\"approved\",\"rejected\",\"changes-requested\",\"answered\"]}},\"required\":[\"status\",\"decidedAt\"],\"type\":\"object\"},\"effectDigest\":{\"type\":\"string\"},\"handoffRefusal\":{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"review.initiator-required\",\"review.initiator-excluded\",\"review.policy-mismatch\",\"review.refused\"]}},\"required\":[\"code\"],\"type\":\"object\"},\"id\":{\"type\":\"string\"},\"input\":{\"type\":\"object\"},\"links\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"accessProfile\":{\"type\":\"string\"},\"availability\":{\"additionalProperties\":false,\"if\":{\"properties\":{\"available\":{\"const\":false}}},\"properties\":{\"available\":{\"type\":\"boolean\"},\"observedRevision\":{\"minimum\":1,\"type\":\"integer\"},\"reason\":{\"enum\":[\"pending-review\",\"review-rejected\",\"review-changes-requested\",\"review-ended\",\"stale-revision\",\"package-changed\",\"dependency-outage\",\"invalid-input\",\"already-applied\",\"limit-reached\",\"application-pending\",\"attachment-required\",\"attachment-pending\",\"ask-answered\",\"ask-closed\",\"ask-due-passed\"]},\"recovery\":{\"enum\":[\"refresh\",\"revise\",\"retry\",\"rebase\",\"correct-input\",\"receipt-only\"]}},\"required\":[\"available\",\"observedRevision\"],\"then\":{\"required\":[\"reason\",\"recovery\"]},\"type\":\"object\"},\"ifMatch\":{\"type\":\"string\"},\"method\":{\"enum\":[\"GET\",\"POST\"]},\"operation\":{\"type\":\"string\"},\"path\":{\"type\":\"string\"}},\"required\":[\"method\",\"path\",\"accessProfile\",\"operation\"],\"type\":\"object\"},\"type\":\"object\"},\"revision\":{\"minimum\":1,\"type\":\"integer\"},\"state\":{\"enum\":[\"draft\",\"submitted\",\"applied\",\"cancelled\",\"rejected\"]},\"status\":{\"enum\":[\"draft\",\"awaiting-party\",\"in-review\",\"approved\",\"processing\",\"applied\",\"rejected\",\"cancelled\"]},\"submissionVersion\":{\"minimum\":0,\"type\":\"integer\"},\"title\":{\"maxLength\":1024,\"type\":\"string\"},\"turn\":{\"enum\":[\"party\",\"official\",\"nobody\"]}},\"required\":[\"id\",\"actionId\",\"actionRevision\",\"submissionVersion\",\"revision\",\"state\",\"turn\",\"links\"],\"type\":\"object\"}")], @@ -505,35 +505,38 @@ export class Client { return { items: data.items, nextCursor: data.nextCursor ?? null } } async records_directory_entry_listPage(options: Operations["records.directory-entry.list"]["input"] = {}, cursor?: string): Promise> { - const { data } = await this.call("records.directory-entry.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "$skiptoken": cursor } }) + const { data } = await this.call("records.directory-entry.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "cursor": cursor } }) return { items: data.items, nextCursor: data.pageInfo.nextCursor ?? null } } async records_facility_listPage(options: Operations["records.facility.list"]["input"] = {}, cursor?: string): Promise> { - const { data } = await this.call("records.facility.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "$skiptoken": cursor } }) + const { data } = await this.call("records.facility.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "cursor": cursor } }) return { items: data.items, nextCursor: data.pageInfo.nextCursor ?? null } } async records_facility_path_operatorsPage(options: Operations["records.facility.path.operators"]["input"], cursor?: string): Promise> { - const { data } = await this.call("records.facility.path.operators", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "$skiptoken": cursor } }) + const { data } = await this.call("records.facility.path.operators", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "cursor": cursor } }) return { items: data.items, nextCursor: data.pageInfo.nextCursor ?? null } } async records_facility_assignment_listPage(options: Operations["records.facility-assignment.list"]["input"] = {}, cursor?: string): Promise> { - const { data } = await this.call("records.facility-assignment.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "$skiptoken": cursor } }) + const { data } = await this.call("records.facility-assignment.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "cursor": cursor } }) return { items: data.items, nextCursor: data.pageInfo.nextCursor ?? null } } async records_operator_listPage(options: Operations["records.operator.list"]["input"] = {}, cursor?: string): Promise> { - const { data } = await this.call("records.operator.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "$skiptoken": cursor } }) + const { data } = await this.call("records.operator.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "cursor": cursor } }) return { items: data.items, nextCursor: data.pageInfo.nextCursor ?? null } } list(recordType: K, ...args: {} extends ListOptions[K] ? [options?: ListOptions[K]] : [options: ListOptions[K]]): Promise>> - async list(recordType: string, options: ListRequest & { after?: string } = {}): Promise>> { + async list(recordType: string, options: ListRequest & { after?: string; cursor?: string } = {}): Promise>> { const rules = Object.hasOwn(listRules, recordType) ? listRules[recordType] : undefined if (!rules) throw new TypeError("Unknown record type for list") - const { accessProfile, where, orderBy, select, count, top, after, ...call } = options - if (after !== undefined && [where, orderBy, select, count, top].some(value => value !== undefined)) { - throw new TypeError("Use after without where, orderBy, select, count or top.") + const { accessProfile, where, orderBy, select, count, top, limit, after, cursor, ...call } = options + const continuationName = rules.paginationParameters ? "cursor" : "after" + const continuation = rules.paginationParameters ? cursor : after + if ((rules.paginationParameters ? after : cursor) !== undefined) throw new TypeError("Use " + continuationName + " for continuation.") + if (continuation !== undefined && [where, orderBy, select, count, top, limit].some(value => value !== undefined)) { + throw new TypeError("Use " + continuationName + " without first-page query options.") } - if (after !== undefined && (typeof after !== "string" || !after)) throw new TypeError("Use a nonempty cursor for after.") - const query = listQuery(rules, options, after, this.#transport.profile) + if (continuation !== undefined && (typeof continuation !== "string" || !continuation)) throw new TypeError("Use a nonempty " + continuationName + ".") + const query = listQuery(rules, options, continuation, this.#transport.profile) const { data } = await this.#call<{ items: RecordEnvelope[]; pageInfo: { nextCursor?: string | null }; count?: number }>(rules.operation, { ...call, query }) const page = listPage(data) return { ...page, items: page.items.map(recordRow) } diff --git a/clients/typescript/generated/breg-minimal.ts b/clients/typescript/generated/breg-minimal.ts index d001f80bee..f68b4fd3b8 100644 --- a/clients/typescript/generated/breg-minimal.ts +++ b/clients/typescript/generated/breg-minimal.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 9e9b53a29229bf778859e131c0dc5cf4fc76e9e580d567793411402ece1833c3 +// Source SHA-256 bce07d69a8eed5bb72b32568719f0ad0dc4ed711148c6f57735cc64e379193f1 // Unconstrained JSON /paths/~1v1~1records~1contacts~1{record_id}/patch/requestBody/content/application~1json-patch+json/schema/items/properties/value import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { actionAvailability, type ActionAvailability, type DescribeOptions } from "../core.ts" @@ -9,7 +9,7 @@ import { listPage, listQuery, type FieldValue, type Filter, type ListPage, type export type Schema_ImmediateActionPrecondition = ({ "ifMatch": (string) }) export type Schema_ImmediateActionResultReference = ({ "recordId": (string); "recordType": (string); "revision": (number) }) -export type Schema_Problem = (({ "code"?: "access-profile.ambiguous"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous" }) | ({ "code"?: "action.evidence-failed"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/action/evidence-failed" }) | ({ "code"?: "action.guard-failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/action/guard-failed" }) | ({ "code"?: "action.handler-failed"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/action/handler-failed" }) | ({ "code"?: "action.refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/action/refused" }) | ({ "code"?: "attachment.content-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/content-type" }) | ({ "code"?: "attachment.digest-mismatch"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch" }) | ({ "code"?: "attachment.limit-reached"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/limit-reached" }) | ({ "code"?: "attachment.required"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/required" }) | ({ "code"?: "attachment.slot-write-once"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once" }) | ({ "code"?: "attachment.too-large"; "status"?: 413; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/too-large" }) | ({ "code"?: "attachment.verification-pending"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-pending" }) | ({ "code"?: "attachment.verification-rejected"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected" }) | ({ "code"?: "authentication.refused"; "status"?: 401; "type"?: "https://id.registrystack.org/problems/registry-breg/authentication/refused" }) | ({ "code"?: "idempotency.expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/expired" }) | ({ "code"?: "idempotency.key-reused"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/key-reused" }) | ({ "code"?: "ingestion.chunk-mismatch"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch" }) | ({ "code"?: "ingestion.profile-mismatch"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch" }) | ({ "code"?: "ingestion.receipt-erased"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased" }) | ({ "code"?: "ingestion.run-blocked"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked" }) | ({ "code"?: "ingestion.run-not-open"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open" }) | ({ "code"?: "lookup.unresolved"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/lookup/unresolved" }) | ({ "code"?: "mutation.conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/mutation/conflict" }) | ({ "code"?: "precondition.failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/failed" }) | ({ "code"?: "precondition.required"; "status"?: 428; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/required" }) | ({ "code"?: "profile.not-authorized"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/profile/not-authorized" }) | ({ "code"?: "proposal.rejected"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/rejected" }) | ({ "code"?: "proposal.review-result-mismatch"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch" }) | ({ "code"?: "proposal.submission-expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/submission-expired" }) | ({ "code"?: "query.cursor-invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/cursor-invalid" }) | ({ "code"?: "query.filter-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/filter-required" }) | ({ "code"?: "query.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/invalid" }) | ({ "code"?: "request.access-reason-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/access-reason-required" }) | ({ "code"?: "request.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/invalid" }) | ({ "code"?: "request.timeout"; "status"?: 504; "type"?: "https://id.registrystack.org/problems/registry-breg/request/timeout" }) | ({ "code"?: "resource.not-found"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/resource/not-found" }) | ({ "code"?: "runtime.field-encryption.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable" }) | ({ "code"?: "service.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/service/unavailable" }) | ({ "code"?: "source.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/source/unavailable" }) | ({ "code"?: "statistical-dataset.domain-violation"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation" }) | ({ "code"?: "statistical-dataset.release-refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused" }) | ({ "code"?: "statistical-dataset.version-conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict" }) | ({ "code"?: "statistical-dataset.version-withdrawn"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn" }) | ({ "code"?: "unsupported.media-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/unsupported/media-type" }) | ({ "code"?: "write.outside-boundary"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" })) & ({ "accessProfiles"?: (Array<(string)>); "atField"?: (string); "code": ("access-profile.ambiguous" | "action.evidence-failed" | "action.guard-failed" | "action.handler-failed" | "action.refused" | "attachment.content-type" | "attachment.digest-mismatch" | "attachment.limit-reached" | "attachment.required" | "attachment.slot-write-once" | "attachment.too-large" | "attachment.verification-pending" | "attachment.verification-rejected" | "authentication.refused" | "idempotency.expired" | "idempotency.key-reused" | "ingestion.chunk-mismatch" | "ingestion.profile-mismatch" | "ingestion.receipt-erased" | "ingestion.run-blocked" | "ingestion.run-not-open" | "lookup.unresolved" | "mutation.conflict" | "precondition.failed" | "precondition.required" | "profile.not-authorized" | "proposal.rejected" | "proposal.review-result-mismatch" | "proposal.submission-expired" | "query.cursor-invalid" | "query.filter-required" | "query.invalid" | "request.access-reason-required" | "request.invalid" | "request.timeout" | "resource.not-found" | "runtime.field-encryption.unavailable" | "service.unavailable" | "source.unavailable" | "statistical-dataset.domain-violation" | "statistical-dataset.release-refused" | "statistical-dataset.version-conflict" | "statistical-dataset.version-withdrawn" | "unsupported.media-type" | "write.outside-boundary") & (string); "constraintId"?: (string); "constraintKind"?: ("compare" | "int-range" | "vocabulary") & (string); "detail": (string); "field"?: (string); "fieldId"?: (string); "fieldPath"?: (string); "guardReason"?: (string); "left"?: (string); "notAfterField"?: (string); "reasonCode"?: ("computation-error" | "source-data-error" | "disclosure-risk") & (string); "recordType"?: (string); "refusalCode"?: (string); "requiredFilters"?: (Array<(Array<(string)>)>); "right"?: (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) & (({ "code": "access-profile.ambiguous" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & ({ "status"?: 400; "accessProfiles": {} | null })) | ({ "code": "action.evidence-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "detail"?: "The declared Evidence dependency could not be accepted."; "fieldPath"?: (string); "status"?: 503 })) | ({ "code": "action.guard-failed" } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "action.handler-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "status"?: 500 })) | ({ "code": "action.refused" } & { "guardReason"?: never } & ({ "status"?: 422; "refusalCode": {} | null }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.content-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.digest-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.limit-reached" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.required" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.slot-write-once" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.too-large" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-pending" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-rejected" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "authentication.refused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.key-reused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.chunk-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.profile-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.receipt-erased" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-blocked" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-not-open" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "lookup.unresolved" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "mutation.conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "profile.not-authorized" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.rejected" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.review-result-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.submission-expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.cursor-invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.filter-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.access-reason-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.timeout" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "resource.not-found" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "runtime.field-encryption.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "service.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "source.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.domain-violation" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.release-refused" } & { "guardReason"?: never } & ({ "refusalCode": ("period-not-ended" | "before-first-period" | "provisional-after-final" | "already-withdrawn" | "negative-value"); "status"?: 422 }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-withdrawn" } & { "guardReason"?: never } & { "refusalCode"?: never } & ({ "status"?: 410; "reasonCode": {} | null }) & { "accessProfiles"?: never }) | ({ "code": "unsupported.media-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "write.outside-boundary" } & ({ "code"?: "write.outside-boundary"; "detail"?: "The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."; "status"?: 403; "title"?: "Forbidden"; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never })) +export type Schema_Problem = (({ "code"?: "access-profile.ambiguous"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous" }) | ({ "code"?: "action.evidence-failed"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/action/evidence-failed" }) | ({ "code"?: "action.guard-failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/action/guard-failed" }) | ({ "code"?: "action.handler-failed"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/action/handler-failed" }) | ({ "code"?: "action.refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/action/refused" }) | ({ "code"?: "attachment.content-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/content-type" }) | ({ "code"?: "attachment.digest-mismatch"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch" }) | ({ "code"?: "attachment.limit-reached"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/limit-reached" }) | ({ "code"?: "attachment.required"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/required" }) | ({ "code"?: "attachment.slot-write-once"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once" }) | ({ "code"?: "attachment.too-large"; "status"?: 413; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/too-large" }) | ({ "code"?: "attachment.verification-pending"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-pending" }) | ({ "code"?: "attachment.verification-rejected"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected" }) | ({ "code"?: "authentication.refused"; "status"?: 401; "type"?: "https://id.registrystack.org/problems/registry-breg/authentication/refused" }) | ({ "code"?: "idempotency.expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/expired" }) | ({ "code"?: "idempotency.key-reused"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/idempotency/key-reused" }) | ({ "code"?: "ingestion.chunk-mismatch"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch" }) | ({ "code"?: "ingestion.profile-mismatch"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch" }) | ({ "code"?: "ingestion.receipt-erased"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased" }) | ({ "code"?: "ingestion.run-blocked"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked" }) | ({ "code"?: "ingestion.run-not-open"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open" }) | ({ "code"?: "lookup.unresolved"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/lookup/unresolved" }) | ({ "code"?: "mutation.conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/mutation/conflict" }) | ({ "code"?: "precondition.failed"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/failed" }) | ({ "code"?: "precondition.required"; "status"?: 428; "type"?: "https://id.registrystack.org/problems/registry-breg/precondition/required" }) | ({ "code"?: "profile.not-authorized"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/profile/not-authorized" }) | ({ "code"?: "proposal.rejected"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/rejected" }) | ({ "code"?: "proposal.review-result-mismatch"; "status"?: 412; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch" }) | ({ "code"?: "proposal.submission-expired"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/proposal/submission-expired" }) | ({ "code"?: "query.cursor-invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/cursor-invalid" }) | ({ "code"?: "query.filter-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/filter-required" }) | ({ "code"?: "query.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/query/invalid" }) | ({ "code"?: "request.access-reason-required"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/access-reason-required" }) | ({ "code"?: "request.invalid"; "status"?: 400; "type"?: "https://id.registrystack.org/problems/registry-breg/request/invalid" }) | ({ "code"?: "request.timeout"; "status"?: 504; "type"?: "https://id.registrystack.org/problems/registry-breg/request/timeout" }) | ({ "code"?: "resource.not-found"; "status"?: 404; "type"?: "https://id.registrystack.org/problems/registry-breg/resource/not-found" }) | ({ "code"?: "runtime.field-encryption.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable" }) | ({ "code"?: "service.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/service/unavailable" }) | ({ "code"?: "source.unavailable"; "status"?: 503; "type"?: "https://id.registrystack.org/problems/registry-breg/source/unavailable" }) | ({ "code"?: "statistical-dataset.domain-violation"; "status"?: 500; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation" }) | ({ "code"?: "statistical-dataset.release-refused"; "status"?: 422; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused" }) | ({ "code"?: "statistical-dataset.version-conflict"; "status"?: 409; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict" }) | ({ "code"?: "statistical-dataset.version-withdrawn"; "status"?: 410; "type"?: "https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn" }) | ({ "code"?: "unsupported.media-type"; "status"?: 415; "type"?: "https://id.registrystack.org/problems/registry-breg/unsupported/media-type" }) | ({ "code"?: "write.outside-boundary"; "status"?: 403; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" })) & ({ "accessProfiles"?: (Array<(string)>); "atField"?: (string); "code": ("access-profile.ambiguous" | "action.evidence-failed" | "action.guard-failed" | "action.handler-failed" | "action.refused" | "attachment.content-type" | "attachment.digest-mismatch" | "attachment.limit-reached" | "attachment.required" | "attachment.slot-write-once" | "attachment.too-large" | "attachment.verification-pending" | "attachment.verification-rejected" | "authentication.refused" | "idempotency.expired" | "idempotency.key-reused" | "ingestion.chunk-mismatch" | "ingestion.profile-mismatch" | "ingestion.receipt-erased" | "ingestion.run-blocked" | "ingestion.run-not-open" | "lookup.unresolved" | "mutation.conflict" | "precondition.failed" | "precondition.required" | "profile.not-authorized" | "proposal.rejected" | "proposal.review-result-mismatch" | "proposal.submission-expired" | "query.cursor-invalid" | "query.filter-required" | "query.invalid" | "request.access-reason-required" | "request.invalid" | "request.timeout" | "resource.not-found" | "runtime.field-encryption.unavailable" | "service.unavailable" | "source.unavailable" | "statistical-dataset.domain-violation" | "statistical-dataset.release-refused" | "statistical-dataset.version-conflict" | "statistical-dataset.version-withdrawn" | "unsupported.media-type" | "write.outside-boundary") & (string); "constraintId"?: (string); "constraintKind"?: ("compare" | "int-range" | "vocabulary") & (string); "detail": (string); "failedCheck"?: (string); "field"?: (string); "fieldId"?: (string); "fieldPath"?: (string); "guardReason"?: (string); "left"?: (string); "notAfterField"?: (string); "reasonCode"?: ("computation-error" | "source-data-error" | "disclosure-risk") & (string); "recordType"?: (string); "refusalCode"?: (string); "requiredFilters"?: (Array<(Array<(string)>)>); "right"?: (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) & (({ "code": "access-profile.ambiguous" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & ({ "status"?: 400; "accessProfiles": {} | null })) | ({ "code": "action.evidence-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "detail"?: "The declared Evidence dependency could not be accepted."; "fieldPath"?: (string); "status"?: 503 })) | ({ "code": "action.guard-failed" } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "action.handler-failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never } & ({ "status"?: 500 })) | ({ "code": "action.refused" } & { "guardReason"?: never } & ({ "status"?: 422; "refusalCode": {} | null }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.content-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.digest-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.limit-reached" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.required" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.slot-write-once" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.too-large" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-pending" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "attachment.verification-rejected" } & ({ "fieldPath": (string) }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "authentication.refused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "idempotency.key-reused" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.chunk-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.profile-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.receipt-erased" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-blocked" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "ingestion.run-not-open" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "lookup.unresolved" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "mutation.conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.failed" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "precondition.required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "profile.not-authorized" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.rejected" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.review-result-mismatch" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "proposal.submission-expired" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.cursor-invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.filter-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "query.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.access-reason-required" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.invalid" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "request.timeout" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "resource.not-found" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "runtime.field-encryption.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "service.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "source.unavailable" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.domain-violation" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.release-refused" } & { "guardReason"?: never } & ({ "refusalCode": ("period-not-ended" | "before-first-period" | "provisional-after-final" | "already-withdrawn" | "negative-value"); "status"?: 422 }) & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-conflict" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "statistical-dataset.version-withdrawn" } & { "guardReason"?: never } & { "refusalCode"?: never } & ({ "status"?: 410; "reasonCode": {} | null }) & { "accessProfiles"?: never }) | ({ "code": "unsupported.media-type" } & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never }) | ({ "code": "write.outside-boundary" } & ({ "code"?: "write.outside-boundary"; "detail"?: "The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."; "status"?: 403; "title"?: "Forbidden"; "type"?: "https://id.registrystack.org/problems/registry-breg/write/outside-boundary" }) & { "guardReason"?: never } & { "refusalCode"?: never } & { "reasonCode"?: never } & { "accessProfiles"?: never })) export type Schema_ReviewCompletion = ({ "completedAt": (string); "eventId": (string); "requestId": (string); "resultId": (string); "type": "review.completed" }) export type Schema_action_register_contact_invoke_input = ({ "input": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }) }) export type Schema_action_register_contact_invoke_response = ({ "actionId": (string); "actionRevision": (string); "application"?: ({ "applicationId": (string); "effectDigest": (string); "resultLinks": (Array<({ "recordId": (string); "recordType": (string); "revision": (number) })>); "submissionVersion": (number) }); "applicationStatus"?: ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "applied" | "cancelled" | "rejected") }); "asks"?: (Array<({ "answer"?: ({ "additions": (Array<(string)>); "answeredAt": (string); "text"?: (string) }); "askedAt": (string); "dueAt"?: (string); "id": (string); "links": ({ "answer"?: ({ "accessProfile": (string); "availability": ({ "available": (boolean); "observedRevision": (number); "reason"?: ("pending-review" | "review-rejected" | "review-changes-requested" | "review-ended" | "stale-revision" | "package-changed" | "dependency-outage" | "invalid-input" | "already-applied" | "limit-reached" | "application-pending" | "attachment-required" | "attachment-pending" | "ask-answered" | "ask-closed" | "ask-due-passed"); "recovery"?: ("refresh" | "revise" | "retry" | "rebase" | "correct-input" | "receipt-only") }); "ifMatch": (string); "method": "POST"; "operation": "answer"; "path": (string) }) }); "state": ("open" | "answered" | "expired" | "closed"); "text": (string); "wants": (Array<({ "kind": ("answer" | "document") })>) })>); "attachments"?: (Record); "id": (string); "links": (Record); "maximumBytes": (number); "required": (boolean); "value"?: ({ "byteSize": (number); "contentType": (string); "sha256": (string); "submissionVersion": (number); "uploadedAt"?: (string); "verificationStatus": ("notRequired" | "pending" | "approved" | "rejected") }) })>); "blockedReason"?: ("package-changed"); "createdAt"?: (string); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest"?: (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "input"?: (Record); "links": (Record); "revision": (number); "state": ("draft" | "submitted" | "applied" | "cancelled" | "rejected"); "status"?: ("draft" | "awaiting-party" | "in-review" | "approved" | "processing" | "applied" | "rejected" | "cancelled"); "submissionVersion": (number); "title"?: (string); "turn": ("party" | "official" | "nobody") }) @@ -33,7 +33,7 @@ export interface Operations { "proposals.edit": { input: CallOptions & { path: { "proposal_id": (string) } } & { query?: { "accessProfile"?: "directory-editor" } } & { headers: { "If-Match": (string) } } & ({ body: (({ "input": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }) })) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "actionId": (string); "actionRevision": (string); "application"?: ({ "applicationId": (string); "effectDigest": (string); "resultLinks": (Array<({ "recordId": (string); "recordType": (string); "revision": (number) })>); "submissionVersion": (number) }); "applicationStatus"?: ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "applied" | "cancelled" | "rejected") }); "asks"?: (Array<({ "answer"?: ({ "additions": (Array<(string)>); "answeredAt": (string); "text"?: (string) }); "askedAt": (string); "dueAt"?: (string); "id": (string); "links": ({ "answer"?: ({ "accessProfile": (string); "availability": ({ "available": (boolean); "observedRevision": (number); "reason"?: ("pending-review" | "review-rejected" | "review-changes-requested" | "review-ended" | "stale-revision" | "package-changed" | "dependency-outage" | "invalid-input" | "already-applied" | "limit-reached" | "application-pending" | "attachment-required" | "attachment-pending" | "ask-answered" | "ask-closed" | "ask-due-passed"); "recovery"?: ("refresh" | "revise" | "retry" | "rebase" | "correct-input" | "receipt-only") }); "ifMatch": (string); "method": "POST"; "operation": "answer"; "path": (string) }) }); "state": ("open" | "answered" | "expired" | "closed"); "text": (string); "wants": (Array<({ "kind": ("answer" | "document") })>) })>); "attachments"?: (Record); "id": (string); "links": (Record); "maximumBytes": (number); "required": (boolean); "value"?: ({ "byteSize": (number); "contentType": (string); "sha256": (string); "submissionVersion": (number); "uploadedAt"?: (string); "verificationStatus": ("notRequired" | "pending" | "approved" | "rejected") }) })>); "blockedReason"?: ("package-changed"); "createdAt"?: (string); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest"?: (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "input"?: (Record); "links": (Record); "revision": (number); "state": ("draft" | "submitted" | "applied" | "cancelled" | "rejected"); "status"?: ("draft" | "awaiting-party" | "in-review" | "approved" | "processing" | "applied" | "rejected" | "cancelled"); "submissionVersion": (number); "title"?: (string); "turn": ("party" | "official" | "nobody") }) } "proposals.get-submission": { input: CallOptions & { path: { "proposal_id": (string); "submission_version": (number) } } & { query?: { "accessProfile"?: "directory-editor" } } & { accept?: "application/json" | "*/*" }; required: true; output: ({ "actionId": (string); "application": (({ "applicationId": (string); "appliedAt"?: (string); "appliedBy"?: (string); "state": "applied" }) | ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "cancelled" | "rejected") }) | (null)); "current": (boolean); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest": (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "review": (({ "availableUntil"?: (string); "completedAt"?: (string); "resultId"?: (string); "state": ("pending" | "approved" | "rejected" | "changes-requested" | "answered" | "cancelled" | "superseded" | "expired") }) | (null)); "submissionVersion": (number) }) } "proposals.submit": { input: CallOptions & { path: { "proposal_id": (string) } } & { query?: { "accessProfile"?: "directory-editor" } } & { headers: { "If-Match": (string) } } & ({ body: (Record) }) & { accept?: "application/json" | "*/*" }; required: true; output: ({ "actionId": (string); "actionRevision": (string); "application"?: ({ "applicationId": (string); "effectDigest": (string); "resultLinks": (Array<({ "recordId": (string); "recordType": (string); "revision": (number) })>); "submissionVersion": (number) }); "applicationStatus"?: ({ "automaticRetry"?: ({ "attempts": (number); "maximumAttempts": (number); "scheduled": (boolean) }); "mode": ("automatic" | "manual"); "reason"?: ("package-changed" | "dependency-outage" | "lease-expired" | "application-refused" | "attempts-exhausted"); "recovery"?: ("retry" | "rebase" | "revise" | "correct-input"); "state": ("awaiting-review" | "pending" | "applying" | "blocked" | "applied" | "cancelled" | "rejected") }); "asks"?: (Array<({ "answer"?: ({ "additions": (Array<(string)>); "answeredAt": (string); "text"?: (string) }); "askedAt": (string); "dueAt"?: (string); "id": (string); "links": ({ "answer"?: ({ "accessProfile": (string); "availability": ({ "available": (boolean); "observedRevision": (number); "reason"?: ("pending-review" | "review-rejected" | "review-changes-requested" | "review-ended" | "stale-revision" | "package-changed" | "dependency-outage" | "invalid-input" | "already-applied" | "limit-reached" | "application-pending" | "attachment-required" | "attachment-pending" | "ask-answered" | "ask-closed" | "ask-due-passed"); "recovery"?: ("refresh" | "revise" | "retry" | "rebase" | "correct-input" | "receipt-only") }); "ifMatch": (string); "method": "POST"; "operation": "answer"; "path": (string) }) }); "state": ("open" | "answered" | "expired" | "closed"); "text": (string); "wants": (Array<({ "kind": ("answer" | "document") })>) })>); "attachments"?: (Record); "id": (string); "links": (Record); "maximumBytes": (number); "required": (boolean); "value"?: ({ "byteSize": (number); "contentType": (string); "sha256": (string); "submissionVersion": (number); "uploadedAt"?: (string); "verificationStatus": ("notRequired" | "pending" | "approved" | "rejected") }) })>); "blockedReason"?: ("package-changed"); "createdAt"?: (string); "decision"?: ({ "decidedAt": (string); "publicReason"?: (string); "status": ("approved" | "rejected" | "changes-requested" | "answered") }); "effectDigest"?: (string); "handoffRefusal"?: ({ "code": ("review.initiator-required" | "review.initiator-excluded" | "review.policy-mismatch" | "review.refused") }); "id": (string); "input"?: (Record); "links": (Record); "revision": (number); "state": ("draft" | "submitted" | "applied" | "cancelled" | "rejected"); "status"?: ("draft" | "awaiting-party" | "in-review" | "approved" | "processing" | "applied" | "rejected" | "cancelled"); "submissionVersion": (number); "title"?: (string); "turn": ("party" | "official" | "nobody") }) } - "records.contact.list": { input: CallOptions & { query?: { "accessProfile"?: "directory-editor"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "$top"?: (number); "$count"?: (boolean); "$skiptoken"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } + "records.contact.list": { input: CallOptions & { query?: { "accessProfile"?: "directory-editor"; "$select"?: (string); "$filter"?: (string); "$orderby"?: (string); "limit"?: (number); "$count"?: (boolean); "cursor"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: false; output: ({ "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }); "pageInfo": ({ "nextCursor": (string | null) }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "count"?: (number); "items": (Array<({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) })>); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }); "pageInfo": ({ "nextCursor": (string | null) }) }) } "records.contact.create": { input: CallOptions & { query?: { "accessProfile"?: "directory-editor" } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & ({ body: ({ "data": Schema_contact_create_input }) }) & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": Schema_contact; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": Schema_contact; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }) }) } "records.contact.get": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "directory-editor"; "$select"?: (string) } } & { headers?: { "traceparent"?: (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }) }) } "records.contact.patch": { input: CallOptions & { path: { "record_id": (string) } } & { query?: { "accessProfile"?: "directory-editor" } } & { headers: { "traceparent"?: (string); "If-Match": (string); "Accept"?: ("application/json" | "application/ld+json") & (string) } } & ({ body: (Array<({ "op": ("add" | "replace" | "remove" | "test") & (string); "path": (string); "value"?: JsonValue })>) }) & { accept?: "application/json" | "application/ld+json" | "*/*" }; required: true; output: ({ "data": ({ "domainData": Schema_contact; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }) }) | ({ "@context": "https://id.registrystack.org/contexts/registry-record/v1"; "data": ({ "domainData": Schema_contact; "recordId": (string); "revisionId": (string) }); "meta": ({ "datasetId": "directory"; "recordTypeId": "contact"; "registryId": "local-directory" }) }) } @@ -49,9 +49,9 @@ export interface ListRows { "contact": ({ "domainData": ({ "email"?: (string); "jurisdiction"?: (string); "name"?: (string) }); "recordId": (string); "revisionId": (string) }) } export interface ListOptions { - "contact": (CallOptions & { accessProfile?: "directory-editor"; where?: never; orderBy?: never; select?: ReadonlyArray<"email" | "jurisdiction" | "name">; count?: never; top?: number; after?: never }) | (CallOptions & { accessProfile?: "directory-editor"; after: string; where?: never; orderBy?: never; select?: never; count?: never; top?: never }) + "contact": (CallOptions & { accessProfile?: "directory-editor"; where?: never; orderBy?: never; select?: ReadonlyArray<"email" | "jurisdiction" | "name">; count?: never; limit?: number; cursor?: never }) | (CallOptions & { accessProfile?: "directory-editor"; cursor: string; where?: never; orderBy?: never; select?: never; count?: never; limit?: never }) } -const listRules: Record = JSON.parse("{\"contact\":{\"operation\":\"records.contact.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"recordProperties\":[\"email\",\"jurisdiction\",\"name\"],\"profiles\":{\"directory-editor\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"email\",\"jurisdiction\",\"name\"],\"filterable\":{},\"sortable\":{}}}}}") +const listRules: Record = JSON.parse("{\"contact\":{\"operation\":\"records.contact.list\",\"requiresAccessProfile\":false,\"accessProfileParameter\":true,\"paginationParameters\":{\"size\":\"limit\",\"cursor\":\"cursor\"},\"recordProperties\":[\"email\",\"jurisdiction\",\"name\"],\"profiles\":{\"directory-editor\":{\"maximumPageSize\":100,\"allowCount\":false,\"selectable\":[\"email\",\"jurisdiction\",\"name\"],\"filterable\":{},\"sortable\":{}}}}}") interface ReadRows { "contact": Operations["records.contact.get"]["output"]["data"] @@ -68,7 +68,7 @@ function recordRow(record: RecordEnvelope & { domainData: Data }): RecordR } const rules: Record = Object.fromEntries([ - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"allOf\":[{\"if\":{\"properties\":{\"code\":{\"enum\":[\"attachment.required\",\"attachment.verification-pending\",\"attachment.verification-rejected\"]}}},\"then\":{\"allOf\":[{\"else\":{\"properties\":{\"status\":{\"const\":422}}},\"if\":{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"}}},\"then\":{\"properties\":{\"status\":{\"const\":409}}}}],\"properties\":{\"fieldPath\":{\"pattern\":\"^/attachments/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"fieldPath\"]},\"required\":[\"fieldPath\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"}}},\"then\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"detail\":{\"const\":\"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.\"},\"status\":{\"const\":403},\"title\":{\"const\":\"Forbidden\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"]}}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"action.guard-failed\"}}}},\"then\":{\"not\":{\"required\":[\"guardReason\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.refused\"}}},\"then\":{\"properties\":{\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"}}},\"then\":{\"properties\":{\"refusalCode\":{\"enum\":[\"period-not-ended\",\"before-first-period\",\"provisional-after-final\",\"already-withdrawn\",\"negative-value\"]},\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"enum\":[\"action.refused\",\"statistical-dataset.release-refused\"]}}}},\"then\":{\"not\":{\"required\":[\"refusalCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"}}},\"then\":{\"properties\":{\"status\":{\"const\":410}},\"required\":[\"reasonCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"statistical-dataset.version-withdrawn\"}}}},\"then\":{\"not\":{\"required\":[\"reasonCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"}}},\"then\":{\"additionalProperties\":true,\"properties\":{\"status\":{\"const\":400}},\"required\":[\"accessProfiles\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"access-profile.ambiguous\"}}}},\"then\":{\"not\":{\"required\":[\"accessProfiles\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"}}},\"then\":{\"properties\":{\"detail\":{\"const\":\"The declared Evidence dependency could not be accepted.\"},\"fieldPath\":{\"pattern\":\"^/evidence/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"status\":{\"const\":503}}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"}}},\"then\":{\"properties\":{\"status\":{\"const\":500}}}},{\"if\":{\"anyOf\":[{\"required\":[\"atField\"]},{\"required\":[\"notAfterField\"]}]},\"then\":{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400}},\"required\":[\"atField\",\"notAfterField\"]}},{\"if\":{\"anyOf\":[{\"required\":[\"recordType\"]},{\"required\":[\"fieldId\"]},{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"then\":{\"oneOf\":[{\"not\":{\"anyOf\":[{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"required\":[\"fieldId\"]},{\"not\":{\"required\":[\"fieldId\"]},\"oneOf\":[{\"not\":{\"required\":[\"field\"]},\"properties\":{\"constraintKind\":{\"const\":\"compare\"}},\"required\":[\"left\",\"right\"]},{\"not\":{\"anyOf\":[{\"required\":[\"left\"]},{\"required\":[\"right\"]}]},\"properties\":{\"constraintKind\":{\"enum\":[\"int-range\",\"vocabulary\"]}},\"required\":[\"field\"]}],\"required\":[\"constraintId\",\"constraintKind\"]}],\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409}},\"required\":[\"recordType\"]}}],\"anyOf\":[{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous\"}}},{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/evidence-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.guard-failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/guard-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/handler-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/refused\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.content-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/content-type\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.digest-mismatch\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.limit-reached\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.required\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/required\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.slot-write-once\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.too-large\"},\"status\":{\"const\":413},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/too-large\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-rejected\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected\"}}},{\"properties\":{\"code\":{\"const\":\"authentication.refused\"},\"status\":{\"const\":401},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/authentication/refused\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/expired\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.key-reused\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.chunk-mismatch\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.profile-mismatch\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.receipt-erased\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-blocked\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-not-open\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open\"}}},{\"properties\":{\"code\":{\"const\":\"lookup.unresolved\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/lookup/unresolved\"}}},{\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/mutation/conflict\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/failed\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.required\"},\"status\":{\"const\":428},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/required\"}}},{\"properties\":{\"code\":{\"const\":\"profile.not-authorized\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/profile/not-authorized\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.rejected\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/rejected\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.review-result-mismatch\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.submission-expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired\"}}},{\"properties\":{\"code\":{\"const\":\"query.cursor-invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid\"}}},{\"properties\":{\"code\":{\"const\":\"query.filter-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/filter-required\"}}},{\"properties\":{\"code\":{\"const\":\"query.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.access-reason-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/access-reason-required\"}}},{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.timeout\"},\"status\":{\"const\":504},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/timeout\"}}},{\"properties\":{\"code\":{\"const\":\"resource.not-found\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/resource/not-found\"}}},{\"properties\":{\"code\":{\"const\":\"runtime.field-encryption.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"service.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/service/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"source.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/source/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.domain-violation\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn\"}}},{\"properties\":{\"code\":{\"const\":\"unsupported.media-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/unsupported/media-type\"}}},{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}}}],\"properties\":{\"accessProfiles\":{\"items\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"minItems\":2,\"type\":\"array\",\"uniqueItems\":true},\"atField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"code\":{\"enum\":[\"access-profile.ambiguous\",\"action.evidence-failed\",\"action.guard-failed\",\"action.handler-failed\",\"action.refused\",\"attachment.content-type\",\"attachment.digest-mismatch\",\"attachment.limit-reached\",\"attachment.required\",\"attachment.slot-write-once\",\"attachment.too-large\",\"attachment.verification-pending\",\"attachment.verification-rejected\",\"authentication.refused\",\"idempotency.expired\",\"idempotency.key-reused\",\"ingestion.chunk-mismatch\",\"ingestion.profile-mismatch\",\"ingestion.receipt-erased\",\"ingestion.run-blocked\",\"ingestion.run-not-open\",\"lookup.unresolved\",\"mutation.conflict\",\"precondition.failed\",\"precondition.required\",\"profile.not-authorized\",\"proposal.rejected\",\"proposal.review-result-mismatch\",\"proposal.submission-expired\",\"query.cursor-invalid\",\"query.filter-required\",\"query.invalid\",\"request.access-reason-required\",\"request.invalid\",\"request.timeout\",\"resource.not-found\",\"runtime.field-encryption.unavailable\",\"service.unavailable\",\"source.unavailable\",\"statistical-dataset.domain-violation\",\"statistical-dataset.release-refused\",\"statistical-dataset.version-conflict\",\"statistical-dataset.version-withdrawn\",\"unsupported.media-type\",\"write.outside-boundary\"],\"type\":\"string\"},\"constraintId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"constraintKind\":{\"enum\":[\"compare\",\"int-range\",\"vocabulary\"],\"type\":\"string\"},\"detail\":{\"maxLength\":256,\"type\":\"string\"},\"field\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldPath\":{\"maxLength\":256,\"type\":\"string\"},\"guardReason\":{\"pattern\":\"^[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"left\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"notAfterField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"reasonCode\":{\"enum\":[\"computation-error\",\"source-data-error\",\"disclosure-risk\"],\"type\":\"string\"},\"recordType\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"refusalCode\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"requiredFilters\":{\"items\":{\"items\":{\"maxLength\":64,\"minLength\":1,\"type\":\"string\"},\"maxItems\":32,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"maxItems\":8,\"minItems\":1,\"type\":\"array\"},\"right\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"status\":{\"maximum\":599,\"minimum\":400,\"type\":\"integer\"},\"title\":{\"maxLength\":128,\"type\":\"string\"},\"traceId\":{\"maxLength\":32,\"minLength\":32,\"pattern\":\"^[0-9a-f]{32}$\",\"type\":\"string\"},\"type\":{\"maxLength\":256,\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"allOf\":[{\"if\":{\"properties\":{\"code\":{\"enum\":[\"attachment.required\",\"attachment.verification-pending\",\"attachment.verification-rejected\"]}}},\"then\":{\"allOf\":[{\"else\":{\"properties\":{\"status\":{\"const\":422}}},\"if\":{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"}}},\"then\":{\"properties\":{\"status\":{\"const\":409}}}}],\"properties\":{\"fieldPath\":{\"pattern\":\"^/attachments/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"fieldPath\"]},\"required\":[\"fieldPath\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"}}},\"then\":{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"detail\":{\"const\":\"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.\"},\"status\":{\"const\":403},\"title\":{\"const\":\"Forbidden\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}},\"propertyNames\":{\"enum\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"failedCheck\"]}}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"action.guard-failed\"}}}},\"then\":{\"not\":{\"required\":[\"guardReason\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.refused\"}}},\"then\":{\"properties\":{\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"}}},\"then\":{\"properties\":{\"refusalCode\":{\"enum\":[\"period-not-ended\",\"before-first-period\",\"provisional-after-final\",\"already-withdrawn\",\"negative-value\"]},\"status\":{\"const\":422}},\"required\":[\"refusalCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"enum\":[\"action.refused\",\"statistical-dataset.release-refused\"]}}}},\"then\":{\"not\":{\"required\":[\"refusalCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"}}},\"then\":{\"properties\":{\"status\":{\"const\":410}},\"required\":[\"reasonCode\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"statistical-dataset.version-withdrawn\"}}}},\"then\":{\"not\":{\"required\":[\"reasonCode\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"}}},\"then\":{\"additionalProperties\":true,\"not\":{\"required\":[\"failedCheck\"]},\"properties\":{\"status\":{\"const\":400}},\"required\":[\"accessProfiles\"]}},{\"if\":{\"properties\":{\"code\":{\"not\":{\"const\":\"access-profile.ambiguous\"}}}},\"then\":{\"not\":{\"required\":[\"accessProfiles\"]}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"}}},\"then\":{\"properties\":{\"detail\":{\"const\":\"The declared Evidence dependency could not be accepted.\"},\"fieldPath\":{\"pattern\":\"^/evidence/[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"status\":{\"const\":503}}}},{\"if\":{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"}}},\"then\":{\"properties\":{\"status\":{\"const\":500}}}},{\"if\":{\"anyOf\":[{\"required\":[\"atField\"]},{\"required\":[\"notAfterField\"]}]},\"then\":{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400}},\"required\":[\"atField\",\"notAfterField\"]}},{\"if\":{\"anyOf\":[{\"required\":[\"recordType\"]},{\"required\":[\"fieldId\"]},{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"then\":{\"oneOf\":[{\"not\":{\"anyOf\":[{\"required\":[\"constraintId\"]},{\"required\":[\"constraintKind\"]},{\"required\":[\"left\"]},{\"required\":[\"right\"]},{\"required\":[\"field\"]}]},\"required\":[\"fieldId\"]},{\"not\":{\"required\":[\"fieldId\"]},\"oneOf\":[{\"not\":{\"required\":[\"field\"]},\"properties\":{\"constraintKind\":{\"const\":\"compare\"}},\"required\":[\"left\",\"right\"]},{\"not\":{\"anyOf\":[{\"required\":[\"left\"]},{\"required\":[\"right\"]}]},\"properties\":{\"constraintKind\":{\"enum\":[\"int-range\",\"vocabulary\"]}},\"required\":[\"field\"]}],\"required\":[\"constraintId\",\"constraintKind\"]}],\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409}},\"required\":[\"recordType\"]}}],\"anyOf\":[{\"properties\":{\"code\":{\"const\":\"access-profile.ambiguous\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous\"}}},{\"properties\":{\"code\":{\"const\":\"action.evidence-failed\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/evidence-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.guard-failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/guard-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.handler-failed\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/handler-failed\"}}},{\"properties\":{\"code\":{\"const\":\"action.refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/action/refused\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.content-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/content-type\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.digest-mismatch\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.limit-reached\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.required\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/required\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.slot-write-once\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.too-large\"},\"status\":{\"const\":413},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/too-large\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-pending\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending\"}}},{\"properties\":{\"code\":{\"const\":\"attachment.verification-rejected\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected\"}}},{\"properties\":{\"code\":{\"const\":\"authentication.refused\"},\"status\":{\"const\":401},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/authentication/refused\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/expired\"}}},{\"properties\":{\"code\":{\"const\":\"idempotency.key-reused\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.chunk-mismatch\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.profile-mismatch\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.receipt-erased\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-blocked\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked\"}}},{\"properties\":{\"code\":{\"const\":\"ingestion.run-not-open\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open\"}}},{\"properties\":{\"code\":{\"const\":\"lookup.unresolved\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/lookup/unresolved\"}}},{\"properties\":{\"code\":{\"const\":\"mutation.conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/mutation/conflict\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.failed\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/failed\"}}},{\"properties\":{\"code\":{\"const\":\"precondition.required\"},\"status\":{\"const\":428},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/precondition/required\"}}},{\"properties\":{\"code\":{\"const\":\"profile.not-authorized\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/profile/not-authorized\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.rejected\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/rejected\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.review-result-mismatch\"},\"status\":{\"const\":412},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch\"}}},{\"properties\":{\"code\":{\"const\":\"proposal.submission-expired\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired\"}}},{\"properties\":{\"code\":{\"const\":\"query.cursor-invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid\"}}},{\"properties\":{\"code\":{\"const\":\"query.filter-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/filter-required\"}}},{\"properties\":{\"code\":{\"const\":\"query.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/query/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.access-reason-required\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/access-reason-required\"}}},{\"properties\":{\"code\":{\"const\":\"request.invalid\"},\"status\":{\"const\":400},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/invalid\"}}},{\"properties\":{\"code\":{\"const\":\"request.timeout\"},\"status\":{\"const\":504},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/request/timeout\"}}},{\"properties\":{\"code\":{\"const\":\"resource.not-found\"},\"status\":{\"const\":404},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/resource/not-found\"}}},{\"properties\":{\"code\":{\"const\":\"runtime.field-encryption.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"service.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/service/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"source.unavailable\"},\"status\":{\"const\":503},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/source/unavailable\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.domain-violation\"},\"status\":{\"const\":500},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.release-refused\"},\"status\":{\"const\":422},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-conflict\"},\"status\":{\"const\":409},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict\"}}},{\"properties\":{\"code\":{\"const\":\"statistical-dataset.version-withdrawn\"},\"status\":{\"const\":410},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn\"}}},{\"properties\":{\"code\":{\"const\":\"unsupported.media-type\"},\"status\":{\"const\":415},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/unsupported/media-type\"}}},{\"properties\":{\"code\":{\"const\":\"write.outside-boundary\"},\"status\":{\"const\":403},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-breg/write/outside-boundary\"}}}],\"properties\":{\"accessProfiles\":{\"items\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"minItems\":2,\"type\":\"array\",\"uniqueItems\":true},\"atField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"code\":{\"enum\":[\"access-profile.ambiguous\",\"action.evidence-failed\",\"action.guard-failed\",\"action.handler-failed\",\"action.refused\",\"attachment.content-type\",\"attachment.digest-mismatch\",\"attachment.limit-reached\",\"attachment.required\",\"attachment.slot-write-once\",\"attachment.too-large\",\"attachment.verification-pending\",\"attachment.verification-rejected\",\"authentication.refused\",\"idempotency.expired\",\"idempotency.key-reused\",\"ingestion.chunk-mismatch\",\"ingestion.profile-mismatch\",\"ingestion.receipt-erased\",\"ingestion.run-blocked\",\"ingestion.run-not-open\",\"lookup.unresolved\",\"mutation.conflict\",\"precondition.failed\",\"precondition.required\",\"profile.not-authorized\",\"proposal.rejected\",\"proposal.review-result-mismatch\",\"proposal.submission-expired\",\"query.cursor-invalid\",\"query.filter-required\",\"query.invalid\",\"request.access-reason-required\",\"request.invalid\",\"request.timeout\",\"resource.not-found\",\"runtime.field-encryption.unavailable\",\"service.unavailable\",\"source.unavailable\",\"statistical-dataset.domain-violation\",\"statistical-dataset.release-refused\",\"statistical-dataset.version-conflict\",\"statistical-dataset.version-withdrawn\",\"unsupported.media-type\",\"write.outside-boundary\"],\"type\":\"string\"},\"constraintId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"constraintKind\":{\"enum\":[\"compare\",\"int-range\",\"vocabulary\"],\"type\":\"string\"},\"detail\":{\"maxLength\":256,\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"field\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldId\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"fieldPath\":{\"maxLength\":256,\"type\":\"string\"},\"guardReason\":{\"pattern\":\"^[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"left\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"notAfterField\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"reasonCode\":{\"enum\":[\"computation-error\",\"source-data-error\",\"disclosure-risk\"],\"type\":\"string\"},\"recordType\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"refusalCode\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"requiredFilters\":{\"items\":{\"items\":{\"maxLength\":64,\"minLength\":1,\"type\":\"string\"},\"maxItems\":32,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"maxItems\":8,\"minItems\":1,\"type\":\"array\"},\"right\":{\"maxLength\":128,\"minLength\":1,\"type\":\"string\"},\"status\":{\"maximum\":599,\"minimum\":400,\"type\":\"integer\"},\"title\":{\"maxLength\":128,\"type\":\"string\"},\"traceId\":{\"maxLength\":32,\"minLength\":32,\"pattern\":\"^[0-9a-f]{32}$\",\"type\":\"string\"},\"type\":{\"maxLength\":256,\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ReviewCompletion", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"completedAt\":{\"type\":\"string\"},\"eventId\":{\"type\":\"string\"},\"requestId\":{\"type\":\"string\"},\"resultId\":{\"type\":\"string\"},\"type\":{\"const\":\"review.completed\"}},\"required\":[\"type\",\"eventId\",\"requestId\",\"resultId\",\"completedAt\"],\"type\":\"object\"}")], ["/components/schemas/action-register-contact-invoke-input", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"input\":{\"additionalProperties\":false,\"properties\":{\"email\":{\"maxLength\":254,\"minLength\":1,\"type\":\"string\"},\"jurisdiction\":{\"maxLength\":40,\"minLength\":1,\"type\":\"string\"},\"name\":{\"maxLength\":160,\"minLength\":1,\"type\":\"string\"}},\"required\":[],\"type\":\"object\"}},\"required\":[\"input\"],\"type\":\"object\"}")], ["/components/schemas/action-register-contact-invoke-response", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"actionId\":{\"type\":\"string\"},\"actionRevision\":{\"type\":\"string\"},\"application\":{\"additionalProperties\":false,\"properties\":{\"applicationId\":{\"type\":\"string\"},\"effectDigest\":{\"pattern\":\"^sha256:[0-9a-f]{64}$\",\"type\":\"string\"},\"resultLinks\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"recordId\":{\"type\":\"string\"},\"recordType\":{\"type\":\"string\"},\"revision\":{\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"recordType\",\"recordId\",\"revision\"],\"type\":\"object\"},\"maxItems\":16,\"type\":\"array\"},\"submissionVersion\":{\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"applicationId\",\"submissionVersion\",\"effectDigest\",\"resultLinks\"],\"type\":\"object\"},\"applicationStatus\":{\"additionalProperties\":false,\"properties\":{\"automaticRetry\":{\"additionalProperties\":false,\"properties\":{\"attempts\":{\"maximum\":1000,\"minimum\":0,\"type\":\"integer\"},\"maximumAttempts\":{\"maximum\":1000,\"minimum\":1,\"type\":\"integer\"},\"scheduled\":{\"type\":\"boolean\"}},\"required\":[\"scheduled\",\"attempts\",\"maximumAttempts\"],\"type\":\"object\"},\"mode\":{\"enum\":[\"automatic\",\"manual\"]},\"reason\":{\"enum\":[\"package-changed\",\"dependency-outage\",\"lease-expired\",\"application-refused\",\"attempts-exhausted\"]},\"recovery\":{\"enum\":[\"retry\",\"rebase\",\"revise\",\"correct-input\"]},\"state\":{\"enum\":[\"awaiting-review\",\"pending\",\"applying\",\"blocked\",\"applied\",\"cancelled\",\"rejected\"]}},\"required\":[\"state\",\"mode\"],\"type\":\"object\"},\"asks\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"answer\":{\"additionalProperties\":false,\"properties\":{\"additions\":{\"items\":{\"type\":\"string\"},\"maxItems\":32,\"type\":\"array\",\"uniqueItems\":true},\"answeredAt\":{\"type\":\"string\"},\"text\":{\"maxLength\":2000,\"minLength\":1,\"type\":\"string\"}},\"required\":[\"additions\",\"answeredAt\"],\"type\":\"object\"},\"askedAt\":{\"type\":\"string\"},\"dueAt\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"links\":{\"additionalProperties\":false,\"properties\":{\"answer\":{\"additionalProperties\":false,\"properties\":{\"accessProfile\":{\"type\":\"string\"},\"availability\":{\"additionalProperties\":false,\"if\":{\"properties\":{\"available\":{\"const\":false}}},\"properties\":{\"available\":{\"type\":\"boolean\"},\"observedRevision\":{\"minimum\":1,\"type\":\"integer\"},\"reason\":{\"enum\":[\"pending-review\",\"review-rejected\",\"review-changes-requested\",\"review-ended\",\"stale-revision\",\"package-changed\",\"dependency-outage\",\"invalid-input\",\"already-applied\",\"limit-reached\",\"application-pending\",\"attachment-required\",\"attachment-pending\",\"ask-answered\",\"ask-closed\",\"ask-due-passed\"]},\"recovery\":{\"enum\":[\"refresh\",\"revise\",\"retry\",\"rebase\",\"correct-input\",\"receipt-only\"]}},\"required\":[\"available\",\"observedRevision\"],\"then\":{\"required\":[\"reason\",\"recovery\"]},\"type\":\"object\"},\"ifMatch\":{\"type\":\"string\"},\"method\":{\"const\":\"POST\"},\"operation\":{\"const\":\"answer\"},\"path\":{\"type\":\"string\"}},\"required\":[\"method\",\"path\",\"accessProfile\",\"operation\",\"ifMatch\",\"availability\"],\"type\":\"object\"}},\"type\":\"object\"},\"state\":{\"enum\":[\"open\",\"answered\",\"expired\",\"closed\"]},\"text\":{\"maxLength\":2000,\"minLength\":1,\"type\":\"string\"},\"wants\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"kind\":{\"enum\":[\"answer\",\"document\"]}},\"required\":[\"kind\"],\"type\":\"object\"},\"maxItems\":8,\"type\":\"array\",\"uniqueItems\":true}},\"required\":[\"id\",\"text\",\"wants\",\"askedAt\",\"state\",\"links\"],\"type\":\"object\"},\"maxItems\":50,\"type\":\"array\"},\"attachments\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"classification\":{\"enum\":[\"public\",\"internal\",\"restricted\"]},\"contentTypes\":{\"items\":{\"type\":\"string\"},\"maxItems\":16,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"id\":{\"type\":\"string\"},\"links\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"accessProfile\":{\"type\":\"string\"},\"availability\":{\"additionalProperties\":false,\"if\":{\"properties\":{\"available\":{\"const\":false}}},\"properties\":{\"available\":{\"type\":\"boolean\"},\"observedRevision\":{\"minimum\":1,\"type\":\"integer\"},\"reason\":{\"enum\":[\"pending-review\",\"review-rejected\",\"review-changes-requested\",\"review-ended\",\"stale-revision\",\"package-changed\",\"dependency-outage\",\"invalid-input\",\"already-applied\",\"limit-reached\",\"application-pending\",\"attachment-required\",\"attachment-pending\",\"ask-answered\",\"ask-closed\",\"ask-due-passed\"]},\"recovery\":{\"enum\":[\"refresh\",\"revise\",\"retry\",\"rebase\",\"correct-input\",\"receipt-only\"]}},\"required\":[\"available\",\"observedRevision\"],\"then\":{\"required\":[\"reason\",\"recovery\"]},\"type\":\"object\"},\"ifMatch\":{\"type\":\"string\"},\"method\":{\"enum\":[\"GET\",\"PATCH\",\"DELETE\"]},\"operation\":{\"enum\":[\"download\",\"upload\",\"remove\"]},\"path\":{\"type\":\"string\"}},\"required\":[\"method\",\"path\",\"accessProfile\",\"operation\"],\"type\":\"object\"},\"type\":\"object\"},\"maximumBytes\":{\"maximum\":16777216,\"minimum\":1,\"type\":\"integer\"},\"required\":{\"type\":\"boolean\"},\"value\":{\"additionalProperties\":false,\"properties\":{\"byteSize\":{\"minimum\":1,\"type\":\"integer\"},\"contentType\":{\"type\":\"string\"},\"sha256\":{\"pattern\":\"^[a-f0-9]{64}$\",\"type\":\"string\"},\"submissionVersion\":{\"minimum\":0,\"type\":\"integer\"},\"uploadedAt\":{\"type\":\"string\"},\"verificationStatus\":{\"enum\":[\"notRequired\",\"pending\",\"approved\",\"rejected\"]}},\"required\":[\"submissionVersion\",\"sha256\",\"contentType\",\"byteSize\",\"verificationStatus\"],\"type\":\"object\"}},\"required\":[\"id\",\"required\",\"maximumBytes\",\"contentTypes\",\"classification\",\"links\"],\"type\":\"object\"},\"maxProperties\":8,\"type\":\"object\"},\"blockedReason\":{\"enum\":[\"package-changed\"]},\"createdAt\":{\"type\":\"string\"},\"decision\":{\"additionalProperties\":false,\"properties\":{\"decidedAt\":{\"type\":\"string\"},\"publicReason\":{\"minLength\":1,\"pattern\":\"^[^\\\\u0000-\\\\u001F\\\\u007F-\\\\u009F]*[^\\\\u0000-\\\\u0020\\\\u007F-\\\\u00A0\\\\u1680\\\\u2000-\\\\u200A\\\\u2028\\\\u2029\\\\u202F\\\\u205F\\\\u3000][^\\\\u0000-\\\\u001F\\\\u007F-\\\\u009F]*$\",\"type\":\"string\"},\"status\":{\"enum\":[\"approved\",\"rejected\",\"changes-requested\",\"answered\"]}},\"required\":[\"status\",\"decidedAt\"],\"type\":\"object\"},\"effectDigest\":{\"type\":\"string\"},\"handoffRefusal\":{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"review.initiator-required\",\"review.initiator-excluded\",\"review.policy-mismatch\",\"review.refused\"]}},\"required\":[\"code\"],\"type\":\"object\"},\"id\":{\"type\":\"string\"},\"input\":{\"type\":\"object\"},\"links\":{\"additionalProperties\":{\"additionalProperties\":false,\"properties\":{\"accessProfile\":{\"type\":\"string\"},\"availability\":{\"additionalProperties\":false,\"if\":{\"properties\":{\"available\":{\"const\":false}}},\"properties\":{\"available\":{\"type\":\"boolean\"},\"observedRevision\":{\"minimum\":1,\"type\":\"integer\"},\"reason\":{\"enum\":[\"pending-review\",\"review-rejected\",\"review-changes-requested\",\"review-ended\",\"stale-revision\",\"package-changed\",\"dependency-outage\",\"invalid-input\",\"already-applied\",\"limit-reached\",\"application-pending\",\"attachment-required\",\"attachment-pending\",\"ask-answered\",\"ask-closed\",\"ask-due-passed\"]},\"recovery\":{\"enum\":[\"refresh\",\"revise\",\"retry\",\"rebase\",\"correct-input\",\"receipt-only\"]}},\"required\":[\"available\",\"observedRevision\"],\"then\":{\"required\":[\"reason\",\"recovery\"]},\"type\":\"object\"},\"ifMatch\":{\"type\":\"string\"},\"method\":{\"enum\":[\"GET\",\"POST\"]},\"operation\":{\"type\":\"string\"},\"path\":{\"type\":\"string\"}},\"required\":[\"method\",\"path\",\"accessProfile\",\"operation\"],\"type\":\"object\"},\"type\":\"object\"},\"revision\":{\"minimum\":1,\"type\":\"integer\"},\"state\":{\"enum\":[\"draft\",\"submitted\",\"applied\",\"cancelled\",\"rejected\"]},\"status\":{\"enum\":[\"draft\",\"awaiting-party\",\"in-review\",\"approved\",\"processing\",\"applied\",\"rejected\",\"cancelled\"]},\"submissionVersion\":{\"minimum\":0,\"type\":\"integer\"},\"title\":{\"maxLength\":1024,\"type\":\"string\"},\"turn\":{\"enum\":[\"party\",\"official\",\"nobody\"]}},\"required\":[\"id\",\"actionId\",\"actionRevision\",\"submissionVersion\",\"revision\",\"state\",\"turn\",\"links\"],\"type\":\"object\"}")], @@ -263,19 +263,22 @@ export class Client { return { items: data.items, nextCursor: data.nextCursor ?? null } } async records_contact_listPage(options: Operations["records.contact.list"]["input"] = {}, cursor?: string): Promise> { - const { data } = await this.call("records.contact.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "$skiptoken": cursor } }) + const { data } = await this.call("records.contact.list", { ...options, query: cursor === undefined ? options.query : { accessProfile: options.query?.accessProfile, "cursor": cursor } }) return { items: data.items, nextCursor: data.pageInfo.nextCursor ?? null } } list(recordType: K, ...args: {} extends ListOptions[K] ? [options?: ListOptions[K]] : [options: ListOptions[K]]): Promise>> - async list(recordType: string, options: ListRequest & { after?: string } = {}): Promise>> { + async list(recordType: string, options: ListRequest & { after?: string; cursor?: string } = {}): Promise>> { const rules = Object.hasOwn(listRules, recordType) ? listRules[recordType] : undefined if (!rules) throw new TypeError("Unknown record type for list") - const { accessProfile, where, orderBy, select, count, top, after, ...call } = options - if (after !== undefined && [where, orderBy, select, count, top].some(value => value !== undefined)) { - throw new TypeError("Use after without where, orderBy, select, count or top.") + const { accessProfile, where, orderBy, select, count, top, limit, after, cursor, ...call } = options + const continuationName = rules.paginationParameters ? "cursor" : "after" + const continuation = rules.paginationParameters ? cursor : after + if ((rules.paginationParameters ? after : cursor) !== undefined) throw new TypeError("Use " + continuationName + " for continuation.") + if (continuation !== undefined && [where, orderBy, select, count, top, limit].some(value => value !== undefined)) { + throw new TypeError("Use " + continuationName + " without first-page query options.") } - if (after !== undefined && (typeof after !== "string" || !after)) throw new TypeError("Use a nonempty cursor for after.") - const query = listQuery(rules, options, after, this.#transport.profile) + if (continuation !== undefined && (typeof continuation !== "string" || !continuation)) throw new TypeError("Use a nonempty " + continuationName + ".") + const query = listQuery(rules, options, continuation, this.#transport.profile) const { data } = await this.#call<{ items: RecordEnvelope[]; pageInfo: { nextCursor?: string | null }; count?: number }>(rules.operation, { ...call, query }) const page = listPage(data) return { ...page, items: page.items.map(recordRow) } diff --git a/clients/typescript/generated/casework.ts b/clients/typescript/generated/casework.ts index f2db5f5e7d..0c6fa8dad9 100644 --- a/clients/typescript/generated/casework.ts +++ b/clients/typescript/generated/casework.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 691504b8b68dceae66076c762c43ecc7f87b292e3db32efe58e7a234e3b079a9 +// Source SHA-256 095bdd1b45a0e8031bb3d6cff6b2223514c250f14c985ca177abe6f8d18d9277 // Unconstrained JSON /components/schemas/ReviewHistoryEntry/properties/detail // Unconstrained JSON /components/schemas/ReviewPolicy/properties/displaySchema // Unconstrained JSON /components/schemas/ReviewPolicy/properties/resultSchema @@ -72,7 +72,7 @@ export type Schema_OwnReviewDecision = ({ "decisionReceipt": Schema_ReviewDecisi export type Schema_OwnReviewDecisionPage = ({ "items": (Array); "nextCursor"?: (string | null); "status": Schema_PageStatus }) export type Schema_PageStatus = ("complete" | "budget-exhausted" | "source-unavailable") & (string) export type Schema_PolicyBinding = ({ "digest": Schema_ContentDigest; "id": (string); "version": (string) }) -export type Schema_Problem = ({ "code": (string); "detail": (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) +export type Schema_Problem = ({ "code": (string); "detail": (string); "failedCheck"?: (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) export type Schema_ProblemAbsenceCoverCycle = (Schema_Problem & ({ "code"?: "absence.cover-cycle"; "detail"?: "Choose cover assignments that do not return to an earlier person during a shared period."; "status"?: 422; "title"?: "Absence cover cycle"; "type"?: "https://id.registrystack.org/problems/registry-casework/absence/cover-cycle" })) export type Schema_ProblemAbsenceInvalidPeriod = (Schema_Problem & ({ "code"?: "absence.invalid-period"; "detail"?: "Set until later than from."; "status"?: 422; "title"?: "Invalid absence period"; "type"?: "https://id.registrystack.org/problems/registry-casework/absence/invalid-period" })) export type Schema_ProblemAbsenceOverlap = (Schema_Problem & ({ "code"?: "absence.overlap"; "detail"?: "Adjust the period so this person has no overlapping absence."; "status"?: 422; "title"?: "Absence period overlaps"; "type"?: "https://id.registrystack.org/problems/registry-casework/absence/overlap" })) @@ -244,57 +244,57 @@ export interface Operations { "readiness": { input: CallOptions & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReadyStatus } "describeCasework": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_Description } "listDelegatedStaffReviewTasks": { input: CallOptions & { query?: { "cursor"?: (string); "limit"?: (number) } } & { headers: { "traceparent"?: (string); "registry-casework-delegated-reader": (string); "registry-source-profile"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskPage } - "getDelegatedStaffReviewTaskContext": { input: CallOptions & { path: { "task_id": (string) } } & { headers: { "traceparent"?: (string); "registry-casework-delegated-reader": (string); "registry-source-profile"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskContext } + "getDelegatedStaffReviewTaskContext": { input: CallOptions & { path: { "taskId": (string) } } & { headers: { "traceparent"?: (string); "registry-casework-delegated-reader": (string); "registry-source-profile"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskContext } "getDirectory": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_DirectoryResponse } "listAbsences": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string | null); "limit"?: (number | null) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_AbsenceList } "createAbsence": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & ({ body: Schema_AbsenceInput }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AbsenceRecord } - "deleteAbsence": { input: CallOptions & { path: { "absence_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } }; required: true; output: undefined } - "updateAbsence": { input: CallOptions & { path: { "absence_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & ({ body: Schema_AbsenceInput }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AbsenceRecord } + "deleteAbsence": { input: CallOptions & { path: { "absenceId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } }; required: true; output: undefined } + "updateAbsence": { input: CallOptions & { path: { "absenceId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & ({ body: Schema_AbsenceInput }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AbsenceRecord } "bootstrapDirectory": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & ({ body: Schema_BootstrapDirectoryRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_DirectoryResponse } "applyReviewCaseload": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & ({ body: Schema_ReviewCaseloadApplyRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewCaseloadResult } "previewReviewCaseload": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & ({ body: Schema_ReviewCaseloadMoveRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewCaseloadPreview } "applyReviewClockRecompute": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & ({ body: Schema_ReviewClockRecomputeApplyRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewClockRecomputeResult } "previewReviewClockRecompute": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & ({ body: Schema_ReviewClockRecomputeRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewClockRecomputePreview } "createHolidayRevision": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_HolidaySetRevisionInput }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_HolidaySetDocument } - "getHolidayRevision": { input: CallOptions & { path: { "id": (string); "revision": (number) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_HolidaySetDocument } + "getHolidayRevision": { input: CallOptions & { path: { "holidayId": (string); "holidayRevision": (number) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_HolidaySetDocument } "listDirectoryTargets": { input: CallOptions & { query: { "accessProfile"?: (string); "cursor"?: (string | null); "limit"?: (number | null); "personIssuer"?: (string | null); "personSubject"?: (string | null); "purpose": Schema_InputDirectoryTargetPurpose; "queue"?: (string | null) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_DirectoryTargetPage } - "updateDirectoryTeam": { input: CallOptions & { path: { "team_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & ({ body: Schema_DirectoryTeamUpdateRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_DirectoryResponse } - "getReviewAccountability": { input: CallOptions & { path: { "event_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewAccountabilityRecord } + "updateDirectoryTeam": { input: CallOptions & { path: { "teamId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & ({ body: Schema_DirectoryTeamUpdateRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_DirectoryResponse } + "getReviewAccountability": { input: CallOptions & { path: { "eventId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewAccountabilityRecord } "listReviewAsks": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReviewAskFeedPage } "listReviewPolicies": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReviewPolicyClosureList } - "getReviewPolicy": { input: CallOptions & { path: { "policy_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewPolicyClosure } + "getReviewPolicy": { input: CallOptions & { path: { "policyId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewPolicyClosure } "createOrRecoverReviewRequest": { input: CallOptions & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_ReviewCreateRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewRequestAccepted } - "getReviewRequest": { input: CallOptions & { path: { "request_id": (string) } } & { query?: { "accessProfile"?: (string); "include"?: (Schema_InputReviewRequestInclude | (null)) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewRequestView } - "getReviewAsk": { input: CallOptions & { path: { "request_id": (string); "ask_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewAsk } - "answerReviewAsk": { input: CallOptions & { path: { "request_id": (string); "ask_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_ReviewAskAnswer }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewAsk } - "cancelReviewRequest": { input: CallOptions & { path: { "request_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_ReviewCancelRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewCancelResponse } - "getReviewClocks": { input: CallOptions & { path: { "request_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewClockOccurrenceList } - "getReviewHistory": { input: CallOptions & { path: { "request_id": (string) } } & { query?: { "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewHistoryPage } - "addReviewNote": { input: CallOptions & { path: { "request_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & ({ body: Schema_ReviewNoteRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewHistoryEntry } - "getReviewResult": { input: CallOptions & { path: { "request_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewResult | undefined } + "getReviewRequest": { input: CallOptions & { path: { "requestId": (string) } } & { query?: { "accessProfile"?: (string); "include"?: (Schema_InputReviewRequestInclude | (null)) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewRequestView } + "getReviewAsk": { input: CallOptions & { path: { "requestId": (string); "askId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewAsk } + "answerReviewAsk": { input: CallOptions & { path: { "requestId": (string); "askId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_ReviewAskAnswer }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewAsk } + "cancelReviewRequest": { input: CallOptions & { path: { "requestId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_ReviewCancelRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewCancelResponse } + "getReviewClocks": { input: CallOptions & { path: { "requestId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewClockOccurrenceList } + "getReviewHistory": { input: CallOptions & { path: { "requestId": (string) } } & { query?: { "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewHistoryPage } + "addReviewNote": { input: CallOptions & { path: { "requestId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & ({ body: Schema_ReviewNoteRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewHistoryEntry } + "getReviewResult": { input: CallOptions & { path: { "requestId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewResult | undefined } "listReviewResults": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReviewResultFeedPage } "listReviewTasks": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string | null); "limit"?: (number | null); "marker"?: (Schema_InputReviewTaskMarker | (null)); "ownership"?: (Schema_InputReviewTaskOwnership | (null)); "queue"?: (string | null); "reference"?: (string | null); "sort"?: Schema_InputReviewTaskSort; "subjectDigest"?: (Schema_InputContentDigest | (null)); "subjectId"?: (string | null); "subjectSource"?: (string | null); "subjectType"?: (string | null); "subjectVersion"?: (string | null) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReviewTaskPage } "getReviewTaskHoldings": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string | null); "limit"?: (number | null); "marker"?: (Schema_InputReviewTaskMarker | (null)); "ownership"?: (Schema_InputReviewTaskOwnership | (null)); "queue"?: (string | null); "reference"?: (string | null); "sort"?: Schema_InputReviewTaskSort; "subjectDigest"?: (Schema_InputContentDigest | (null)); "subjectId"?: (string | null); "subjectSource"?: (string | null); "subjectType"?: (string | null); "subjectVersion"?: (string | null) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReviewTaskPage } "getNextReviewTask": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string | null); "limit"?: (number | null); "marker"?: (Schema_InputReviewTaskMarker | (null)); "ownership"?: (Schema_InputReviewTaskOwnership | (null)); "queue"?: (string | null); "reference"?: (string | null); "sort"?: Schema_InputReviewTaskSort; "subjectDigest"?: (Schema_InputContentDigest | (null)); "subjectId"?: (string | null); "subjectSource"?: (string | null); "subjectType"?: (string | null); "subjectVersion"?: (string | null) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_OptionalReviewTask } "listOwnReviewDecisions": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number); "queue"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_OwnReviewDecisionPage } "listSupervisoryReviewTasks": { input: CallOptions & { query?: { "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number); "queue"?: (string); "requestId"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_SupervisoryReviewTaskPage } - "getReviewTask": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } - "askApplicant": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_ReviewTaskAskRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskAsked } - "assignReviewTask": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_AssignmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } - "claimReviewTask": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } - "getReviewTaskContext": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskContext } - "decideReviewTask": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_ReviewTaskDecisionRequest }); required: true; output: undefined } - "delegateReviewTask": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_DelegateRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } - "deleteReviewDecisionDraft": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } }; required: true; output: undefined } - "getReviewDecisionDraft": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskDraft } - "saveReviewDecisionDraft": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_ReviewTaskDraftInput }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskDraft } - "releaseReviewTask": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } - "listReviewTaskGrants": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantList } - "approveReviewTaskGrant": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_TaskApprovalRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantView } - "revokeReviewTaskGrant": { input: CallOptions & { path: { "task_id": (string); "grant_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantRevocation } - "previewReviewTaskTemplates": { input: CallOptions & { path: { "task_id": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskTemplatePreviews } - "getTaskAssertion": { input: CallOptions & { path: { "grant_id": (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskAssertionResponse } - "getTaskGrantStatus": { input: CallOptions & { path: { "grant_id": (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantStatus } + "getReviewTask": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } + "askApplicant": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_ReviewTaskAskRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskAsked } + "assignReviewTask": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_AssignmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } + "claimReviewTask": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } + "getReviewTaskContext": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskContext } + "decideReviewTask": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_ReviewTaskDecisionRequest }); required: true; output: undefined } + "delegateReviewTask": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_DelegateRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } + "deleteReviewDecisionDraft": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } }; required: true; output: undefined } + "getReviewDecisionDraft": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskDraft } + "saveReviewDecisionDraft": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_ReviewTaskDraftInput }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTaskDraft } + "releaseReviewTask": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "If-Match": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReviewTask } + "listReviewTaskGrants": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantList } + "approveReviewTaskGrant": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string); "If-Match": (string) } } & ({ body: Schema_TaskApprovalRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantView } + "revokeReviewTaskGrant": { input: CallOptions & { path: { "taskId": (string); "grantId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantRevocation } + "previewReviewTaskTemplates": { input: CallOptions & { path: { "taskId": (string) } } & { query?: { "accessProfile"?: (string) } } & { headers?: { "traceparent"?: (string); "registry-source-profile"?: (string); "registry-source-authorization"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskTemplatePreviews } + "getTaskAssertion": { input: CallOptions & { path: { "grantId": (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskAssertionResponse } + "getTaskGrantStatus": { input: CallOptions & { path: { "grantId": (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TaskGrantStatus } } const rules: Record = Object.fromEntries([ @@ -353,7 +353,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/OwnReviewDecisionPage", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"items\":{\"items\":{\"$ref\":\"/components/schemas/OwnReviewDecision\"},\"type\":\"array\"},\"nextCursor\":{\"type\":[\"string\",\"null\"]},\"status\":{\"$ref\":\"/components/schemas/PageStatus\"}},\"required\":[\"items\",\"status\"],\"type\":\"object\"}")], ["/components/schemas/PageStatus", JSON.parse("{\"enum\":[\"complete\",\"budget-exhausted\",\"source-unavailable\"],\"type\":\"string\"}")], ["/components/schemas/PolicyBinding", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"digest\":{\"$ref\":\"/components/schemas/ContentDigest\"},\"id\":{\"type\":\"string\"},\"version\":{\"type\":\"string\"}},\"required\":[\"id\",\"version\",\"digest\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ProblemAbsenceCoverCycle", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"const\":\"absence.cover-cycle\"},\"detail\":{\"const\":\"Choose cover assignments that do not return to an earlier person during a shared period.\"},\"status\":{\"const\":422},\"title\":{\"const\":\"Absence cover cycle\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-casework/absence/cover-cycle\"}}}]}")], ["/components/schemas/ProblemAbsenceInvalidPeriod", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"const\":\"absence.invalid-period\"},\"detail\":{\"const\":\"Set until later than from.\"},\"status\":{\"const\":422},\"title\":{\"const\":\"Invalid absence period\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-casework/absence/invalid-period\"}}}]}")], ["/components/schemas/ProblemAbsenceOverlap", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"const\":\"absence.overlap\"},\"detail\":{\"const\":\"Adjust the period so this person has no overlapping absence.\"},\"status\":{\"const\":422},\"title\":{\"const\":\"Absence period overlaps\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-casework/absence/overlap\"}}}]}")], @@ -553,18 +553,18 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1delegated-staff~1review-tasks/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1delegated-staff~1review-tasks/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1delegated-staff~1review-tasks/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskContext\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskContext\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1directory/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/DirectoryResponse\"}")], ["/paths/~1v1~1directory/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], ["/paths/~1v1~1directory/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], @@ -604,35 +604,35 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1directory~1absences/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1directory~1absences/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1directory~1absences/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AbsenceRecord\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AbsenceRecord\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1directory~1bootstrap/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/DirectoryResponse\"}")], ["/paths/~1v1~1directory~1bootstrap/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], ["/paths/~1v1~1directory~1bootstrap/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], @@ -723,18 +723,18 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1directory~1holidays/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1directory~1holidays/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1directory~1holidays/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/HolidaySetDocument\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/HolidaySetDocument\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1directory~1targets/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/DirectoryTargetPage\"}")], ["/paths/~1v1~1directory~1targets/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], ["/paths/~1v1~1directory~1targets/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], @@ -747,33 +747,33 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1directory~1targets/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1directory~1targets/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1directory~1targets/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/DirectoryResponse\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1directory~1teams~1{team_id}/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAccountabilityRecord\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-accountability~1{event_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/DirectoryResponse\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1directory~1teams~1{teamId}/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAccountabilityRecord\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-accountability~1{eventId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1review-asks/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAskFeedPage\"}")], ["/paths/~1v1~1review-asks/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], ["/paths/~1v1~1review-asks/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], @@ -798,18 +798,18 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1review-policies/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1review-policies/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1review-policies/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewPolicyClosure\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-policies~1{policy_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewPolicyClosure\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-policies~1{policyId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1review-requests/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewRequestAccepted\"}")], ["/paths/~1v1~1review-requests/post/responses/201/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewRequestAccepted\"}")], ["/paths/~1v1~1review-requests/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], @@ -826,107 +826,107 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1review-requests/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1review-requests/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1review-requests/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewRequestView\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAsk\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAsk\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewAskNotOpen\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewAskAnswerTimeInvalid\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewCancelResponse\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewClockOccurrenceList\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewHistoryPage\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewHistoryEntry\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewResult\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewRequestView\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAsk\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewAsk\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewAskNotOpen\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewAskAnswerTimeInvalid\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewCancelResponse\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewClockOccurrenceList\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewHistoryPage\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewHistoryEntry\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewResult\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1review-results/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewResultFeedPage\"}")], ["/paths/~1v1~1review-results/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], ["/paths/~1v1~1review-results/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], @@ -999,240 +999,240 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1review-tasks~1supervision/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], ["/paths/~1v1~1review-tasks~1supervision/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], ["/paths/~1v1~1review-tasks~1supervision/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskAsked\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewAskAlreadyOpen\"},{\"$ref\":\"/components/schemas/ProblemReviewAskLimitReached\"},{\"$ref\":\"/components/schemas/ProblemReviewAskNotOffered\"},{\"$ref\":\"/components/schemas/ProblemReviewAskProducerUnsupported\"},{\"$ref\":\"/components/schemas/ProblemReviewAskTaskInactive\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskContext\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskDraft\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskDraft\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantList\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantView\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantRevocation\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskTemplatePreviews\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskAssertionResponse\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantStatus\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], - ["/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskAsked\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewAskAlreadyOpen\"},{\"$ref\":\"/components/schemas/ProblemReviewAskLimitReached\"},{\"$ref\":\"/components/schemas/ProblemReviewAskNotOffered\"},{\"$ref\":\"/components/schemas/ProblemReviewAskProducerUnsupported\"},{\"$ref\":\"/components/schemas/ProblemReviewAskTaskInactive\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskContext\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskDraft\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTaskDraft\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ReviewTask\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantList\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantView\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantRevocation\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskTemplatePreviews\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAccessProfileAmbiguous\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskAssertionResponse\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"},{\"$ref\":\"/components/schemas/ProblemReviewDistinctApproverRequired\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorExcluded\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemReviewPolicyMismatch\"},{\"$ref\":\"/components/schemas/ProblemReviewSubmissionConflict\"},{\"$ref\":\"/components/schemas/ProblemReviewTaskNotHeld\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionFailed\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAbsenceCoverCycle\"},{\"$ref\":\"/components/schemas/ProblemAbsenceInvalidPeriod\"},{\"$ref\":\"/components/schemas/ProblemAbsenceOverlap\"},{\"$ref\":\"/components/schemas/ProblemAbsenceSelfCover\"},{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemReviewInitiatorRequired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TaskGrantStatus\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemRequestLimitOutOfRange\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileNotApplicable\"},{\"$ref\":\"/components/schemas/ProblemSourceProfileRequired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemSourceAuthorizationRequired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemProfileNotHuman\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestNotFound\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemCursorExpired\"},{\"$ref\":\"/components/schemas/ProblemReviewResultExpired\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRuntimeFailure\"}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/502/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemSourceBadGateway\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionMismatch\"},{\"$ref\":\"/components/schemas/ProblemSourceVersionUnavailable\"}]}")], + ["/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ]) const routes: Record = Object.create(null) type Definition = Omit & { problems?: Record; responses: Record> } @@ -1242,57 +1242,57 @@ const definitions: Record = Object.fromEntries([ ["readiness", JSON.parse("{\"method\":\"GET\",\"path\":\"/ready\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1ready/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1ready/get/responses/400/content/application~1problem+json/schema\",\"413\":\"/paths/~1ready/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1ready/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1ready/get/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1ready/get/responses/503/content/application~1problem+json/schema\"}}")], ["describeCasework", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/casework\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1casework/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1casework/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1casework/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1casework/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1casework/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1casework/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1casework/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1casework/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1casework/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1casework/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1casework/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1casework/get/responses/503/content/application~1problem+json/schema\"}}")], ["listDelegatedStaffReviewTasks", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/delegated-staff/review-tasks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1delegated-staff~1review-tasks/get/responses/503/content/application~1problem+json/schema\"}}")], - ["getDelegatedStaffReviewTaskContext", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/delegated-staff/review-tasks/{task_id}/context\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{task_id}~1context/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getDelegatedStaffReviewTaskContext", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/delegated-staff/review-tasks/{taskId}/context\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1delegated-staff~1review-tasks~1{taskId}~1context/get/responses/503/content/application~1problem+json/schema\"}}")], ["getDirectory", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/directory\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1directory/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory/get/responses/503/content/application~1problem+json/schema\"}}")], ["listAbsences", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/directory/absences\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1absences/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1directory~1absences/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1absences/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1absences/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1absences/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1absences/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1absences/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1absences/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1absences/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1absences/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1absences/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1absences/get/responses/503/content/application~1problem+json/schema\"}}")], ["createAbsence", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/absences\",\"responses\":{\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1absences/post/responses/201/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1absences/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1absences/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1absences/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1absences/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1absences/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1absences/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1absences/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1absences/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1absences/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1absences/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1absences/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1absences/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1absences/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1absences/post/responses/503/content/application~1problem+json/schema\"}}")], - ["deleteAbsence", JSON.parse("{\"method\":\"DELETE\",\"path\":\"/v1/directory/absences/{absence_id}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1absences~1{absence_id}/delete/responses/503/content/application~1problem+json/schema\"}}")], - ["updateAbsence", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/directory/absences/{absence_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1absences~1{absence_id}/put/responses/503/content/application~1problem+json/schema\"}}")], + ["deleteAbsence", JSON.parse("{\"method\":\"DELETE\",\"path\":\"/v1/directory/absences/{absenceId}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1absences~1{absenceId}/delete/responses/503/content/application~1problem+json/schema\"}}")], + ["updateAbsence", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/directory/absences/{absenceId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1absences~1{absenceId}/put/responses/503/content/application~1problem+json/schema\"}}")], ["bootstrapDirectory", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/bootstrap\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1bootstrap/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1bootstrap/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1bootstrap/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1bootstrap/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1bootstrap/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1bootstrap/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1bootstrap/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1bootstrap/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1bootstrap/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1bootstrap/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1bootstrap/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1bootstrap/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1bootstrap/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1bootstrap/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1bootstrap/post/responses/503/content/application~1problem+json/schema\"}}")], ["applyReviewCaseload", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/caseload/apply\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1caseload~1apply/post/responses/503/content/application~1problem+json/schema\"}}")], ["previewReviewCaseload", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/caseload/preview\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1caseload~1preview/post/responses/503/content/application~1problem+json/schema\"}}")], ["applyReviewClockRecompute", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/clocks/recompute/apply\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1clocks~1recompute~1apply/post/responses/503/content/application~1problem+json/schema\"}}")], ["previewReviewClockRecompute", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/clocks/recompute/preview\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1clocks~1recompute~1preview/post/responses/503/content/application~1problem+json/schema\"}}")], ["createHolidayRevision", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/directory/holidays\",\"responses\":{\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1holidays/post/responses/201/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1holidays/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1holidays/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1holidays/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1holidays/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1holidays/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1holidays/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1holidays/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1holidays/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1holidays/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1holidays/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1holidays/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1holidays/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1holidays/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1holidays/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getHolidayRevision", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/directory/holidays/{id}/revisions/{revision}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1holidays~1{id}~1revisions~1{revision}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getHolidayRevision", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/directory/holidays/{holidayId}/revisions/{holidayRevision}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1holidays~1{holidayId}~1revisions~1{holidayRevision}/get/responses/503/content/application~1problem+json/schema\"}}")], ["listDirectoryTargets", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/directory/targets\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1targets/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1directory~1targets/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1targets/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1targets/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1targets/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1targets/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1targets/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1targets/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1targets/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1targets/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1targets/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1targets/get/responses/503/content/application~1problem+json/schema\"}}")], - ["updateDirectoryTeam", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/directory/teams/{team_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1teams~1{team_id}/put/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewAccountability", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-accountability/{event_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-accountability~1{event_id}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["updateDirectoryTeam", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/directory/teams/{teamId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1directory~1teams~1{teamId}/put/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewAccountability", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-accountability/{eventId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-accountability~1{eventId}/get/responses/503/content/application~1problem+json/schema\"}}")], ["listReviewAsks", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-asks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-asks/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-asks/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-asks/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-asks/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-asks/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-asks/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-asks/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-asks/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-asks/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-asks/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-asks/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-asks/get/responses/503/content/application~1problem+json/schema\"}}")], ["listReviewPolicies", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-policies\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-policies/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-policies/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-policies/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-policies/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-policies/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-policies/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-policies/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-policies/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-policies/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-policies/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-policies/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-policies/get/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewPolicy", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-policies/{policy_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-policies~1{policy_id}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewPolicy", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-policies/{policyId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-policies~1{policyId}/get/responses/503/content/application~1problem+json/schema\"}}")], ["createOrRecoverReviewRequest", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests/post/responses/200/content/application~1json/schema\"}],\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests/post/responses/201/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-requests/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-requests/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewRequest", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{request_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}/get/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewAsk", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{request_id}/asks/{ask_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}/get/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404]}")], - ["answerReviewAsk", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests/{request_id}/asks/{ask_id}/answer\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/403/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1asks~1{ask_id}~1answer/post/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404]}")], - ["cancelReviewRequest", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests/{request_id}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewClocks", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{request_id}/clocks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1clocks/get/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewHistory", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{request_id}/history\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1history/get/responses/503/content/application~1problem+json/schema\"}}")], - ["addReviewNote", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests/{request_id}/notes\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1notes/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewResult", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{request_id}/result\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/200/content/application~1json/schema\"}],\"202\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{request_id}~1result/get/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404,410]}")], + ["getReviewRequest", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{requestId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewAsk", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{requestId}/asks/{askId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}/get/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404]}")], + ["answerReviewAsk", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests/{requestId}/asks/{askId}/answer\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/403/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1asks~1{askId}~1answer/post/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404]}")], + ["cancelReviewRequest", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests/{requestId}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewClocks", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{requestId}/clocks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1clocks/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewHistory", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{requestId}/history\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1history/get/responses/503/content/application~1problem+json/schema\"}}")], + ["addReviewNote", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-requests/{requestId}/notes\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1notes/post/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewResult", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-requests/{requestId}/result\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/200/content/application~1json/schema\"}],\"202\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-requests~1{requestId}~1result/get/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404,410]}")], ["listReviewResults", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-results\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-results/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-results/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-results/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-results/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-results/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-results/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-results/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-results/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-results/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-results/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-results/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-results/get/responses/503/content/application~1problem+json/schema\"}}")], ["listReviewTasks", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks/get/responses/503/content/application~1problem+json/schema\"}}")], ["getReviewTaskHoldings", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/holdings\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1holdings/get/responses/503/content/application~1problem+json/schema\"}}")], ["getNextReviewTask", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/next\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1next/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1next/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1next/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1next/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1next/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1next/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1next/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1next/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1next/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1next/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1next/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1next/get/responses/503/content/application~1problem+json/schema\"}}")], ["listOwnReviewDecisions", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/own-decisions\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1own-decisions/get/responses/503/content/application~1problem+json/schema\"}}")], ["listSupervisoryReviewTasks", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/supervision\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1supervision/get/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewTask", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{task_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}/get/responses/503/content/application~1problem+json/schema\"}}")], - ["askApplicant", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/asks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1asks/post/responses/503/content/application~1problem+json/schema\"}}")], - ["assignReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/assign\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1assign/post/responses/503/content/application~1problem+json/schema\"}}")], - ["claimReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/claim\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1claim/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewTaskContext", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{task_id}/context\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1context/get/responses/503/content/application~1problem+json/schema\"}}")], - ["decideReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/decisions\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1decisions/post/responses/503/content/application~1problem+json/schema\"}}")], - ["delegateReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/delegate\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1delegate/post/responses/503/content/application~1problem+json/schema\"}}")], - ["deleteReviewDecisionDraft", JSON.parse("{\"method\":\"DELETE\",\"path\":\"/v1/review-tasks/{task_id}/draft\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/delete/responses/503/content/application~1problem+json/schema\"}}")], - ["getReviewDecisionDraft", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{task_id}/draft\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/get/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404]}")], - ["saveReviewDecisionDraft", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/review-tasks/{task_id}/draft\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1draft/put/responses/503/content/application~1problem+json/schema\"}}")], - ["releaseReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/release\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1release/post/responses/503/content/application~1problem+json/schema\"}}")], - ["listReviewTaskGrants", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{task_id}/task-grants\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/get/responses/503/content/application~1problem+json/schema\"}}")], - ["approveReviewTaskGrant", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/task-grants\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants/post/responses/503/content/application~1problem+json/schema\"}}")], - ["revokeReviewTaskGrant", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{task_id}/task-grants/{grant_id}/revoke\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-grants~1{grant_id}~1revoke/post/responses/503/content/application~1problem+json/schema\"}}")], - ["previewReviewTaskTemplates", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{task_id}/task-templates\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{task_id}~1task-templates/get/responses/503/content/application~1problem+json/schema\"}}")], - ["getTaskAssertion", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/task-grants/{grant_id}/assertion\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1task-grants~1{grant_id}~1assertion/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getTaskGrantStatus", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/task-grants/{grant_id}/status\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1task-grants~1{grant_id}~1status/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewTask", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{taskId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["askApplicant", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/asks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1asks/post/responses/503/content/application~1problem+json/schema\"}}")], + ["assignReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/assign\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1assign/post/responses/503/content/application~1problem+json/schema\"}}")], + ["claimReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/claim\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1claim/post/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewTaskContext", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{taskId}/context\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1context/get/responses/503/content/application~1problem+json/schema\"}}")], + ["decideReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/decisions\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1decisions/post/responses/503/content/application~1problem+json/schema\"}}")], + ["delegateReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/delegate\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1delegate/post/responses/503/content/application~1problem+json/schema\"}}")], + ["deleteReviewDecisionDraft", JSON.parse("{\"method\":\"DELETE\",\"path\":\"/v1/review-tasks/{taskId}/draft\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/delete/responses/503/content/application~1problem+json/schema\"}}")], + ["getReviewDecisionDraft", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{taskId}/draft\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/get/responses/503/content/application~1problem+json/schema\"},\"emptyRefusals\":[404]}")], + ["saveReviewDecisionDraft", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/review-tasks/{taskId}/draft\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1draft/put/responses/503/content/application~1problem+json/schema\"}}")], + ["releaseReviewTask", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/release\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1release/post/responses/503/content/application~1problem+json/schema\"}}")], + ["listReviewTaskGrants", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{taskId}/task-grants\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/get/responses/503/content/application~1problem+json/schema\"}}")], + ["approveReviewTaskGrant", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/task-grants\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants/post/responses/503/content/application~1problem+json/schema\"}}")], + ["revokeReviewTaskGrant", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-tasks/{taskId}/task-grants/{grantId}/revoke\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-grants~1{grantId}~1revoke/post/responses/503/content/application~1problem+json/schema\"}}")], + ["previewReviewTaskTemplates", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/review-tasks/{taskId}/task-templates\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-tasks~1{taskId}~1task-templates/get/responses/503/content/application~1problem+json/schema\"}}")], + ["getTaskAssertion", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/task-grants/{grantId}/assertion\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/404/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/428/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1task-grants~1{grantId}~1assertion/post/responses/503/content/application~1problem+json/schema\"}}")], + ["getTaskGrantStatus", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/task-grants/{grantId}/status\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/404/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1task-grants~1{grantId}~1status/get/responses/503/content/application~1problem+json/schema\"}}")], ]) for (const [id, definition] of Object.entries(definitions)) { const responses: Operation["responses"] = {} diff --git a/clients/typescript/generated/coordinator.ts b/clients/typescript/generated/coordinator.ts index ad11e93780..1507fb028d 100644 --- a/clients/typescript/generated/coordinator.ts +++ b/clients/typescript/generated/coordinator.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 f329e651d18e54a7409383f43a7eff83463c9fbfacf5c072eeb15cc035311e68 +// Source SHA-256 5c88555807ac50303be709686e2a0c63dedd814ed83491dbacdd446f566ecf24 // Unconstrained JSON /components/schemas/HookEnvelope/properties/data // Unconstrained JSON /components/schemas/RunStatus/properties/output // Unconstrained JSON /components/schemas/Start/properties/input @@ -21,7 +21,7 @@ export type Schema_HeldRuns = (Array) export type Schema_Hold = ({ "restoreHold": (boolean) }) export type Schema_HookEnvelope = ({ "causation": ({ "hop": (number); "parent"?: (string); "root": (string) }); "data": JsonValue; "dataschema": (string); "id": (string); "source": (string); "subject": (({ "recordReference": (string); "recordRevision": (number) }) | ({ "proposalReference": (string); "proposalRevision": (number) })); "time": (string); "type": (string) }) export type Schema_OperationIdentity = ({ "effect": ("read" | "mutation" | "evaluation") & (string); "id": ("breg.read-record/v1" | "messaging.submit-message/v1" | "scheduling.read-service/v1" | "scheduling.read-availability/v1" | "scheduling.create-appointment/v1" | "scheduling.read-appointment/v1" | "scheduling.create-hold/v1" | "scheduling.release-hold/v1" | "scheduling.confirm-hold/v1" | "scheduling.reschedule-appointment/v1" | "scheduling.cancel-appointment/v1" | "breg.invoke-action/v1" | "external.get/v1" | "evaluation.evaluate/v1" | "casework.submit-review-request/v1" | "casework.cancel-review-request/v1" | "scheduling.preview-availability/v1" | "external.command/v1" | "breg.read-in-force/v1" | "breg.read-proposal/v1" | "breg.start-proposal/v1" | "breg.submit-proposal/v1" | "breg.cancel-proposal/v1" | "breg.lookup-record/v1" | "breg.read-record/v2" | "payments.request-collection/v1" | "payments.read-collection/v1" | "payments.record-receipt/v1" | "payments.request-disbursement/v1" | "payments.read-disbursement/v1" | "payments.record-provider-confirmation/v1") & (string); "keyRequirement": ("none" | "required") & (string); "product": (string); "readReceipt": (boolean); "recovery": ("read-again" | "same-command-and-receipt" | "same-command" | "hold-after-dispatch") & (string); "requiresPreparation": (boolean); "version": (number) }) -export type Schema_Problem = ({ "code": ("admission.held" | "admission.recovery-only" | "audit.response-unavailable" | "authentication.refused" | "binding.conflict" | "binding.live-conflict" | "check.not-waiting" | "definition.refused" | "deployment.activation-changed" | "deployment.refused" | "evaluation.uncertain" | "event.invalid" | "event.too-large" | "event.unauthenticated" | "execution.held" | "idempotency.key-invalid" | "idempotency.key-reused" | "input.invalid" | "mutation.uncertain" | "operation.not-authorized" | "receipt.expired" | "reconcile.raced" | "reconcile.refused" | "reconcile.unsupported" | "request.body-too-large" | "request.invalid" | "request.limit-out-of-range" | "request.method-not-allowed" | "request.not-found" | "request.reason-invalid" | "request.retention-invalid" | "request.unprocessable" | "request.unsupported-media-type" | "restore.hold-required" | "restore.lease-incompatible" | "restore.review-required" | "restore.unresolved" | "retry.refused" | "run.definition-incompatible" | "run.not-visible" | "run.payload-erased" | "runtime.failure" | "service.unavailable" | "workflow.not-served" | "workflow.revision-mismatch") & (string); "detail": (string); "pointer"?: (string); "status": (number); "title": (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-coordinator/admission/held" | "https://id.registrystack.org/problems/registry-coordinator/admission/recovery-only" | "https://id.registrystack.org/problems/registry-coordinator/audit/response-unavailable" | "https://id.registrystack.org/problems/registry-coordinator/authentication/refused" | "https://id.registrystack.org/problems/registry-coordinator/binding/conflict" | "https://id.registrystack.org/problems/registry-coordinator/binding/live-conflict" | "https://id.registrystack.org/problems/registry-coordinator/check/not-waiting" | "https://id.registrystack.org/problems/registry-coordinator/definition/refused" | "https://id.registrystack.org/problems/registry-coordinator/deployment/activation-changed" | "https://id.registrystack.org/problems/registry-coordinator/deployment/refused" | "https://id.registrystack.org/problems/registry-coordinator/evaluation/uncertain" | "https://id.registrystack.org/problems/registry-coordinator/event/invalid" | "https://id.registrystack.org/problems/registry-coordinator/event/too-large" | "https://id.registrystack.org/problems/registry-coordinator/event/unauthenticated" | "https://id.registrystack.org/problems/registry-coordinator/execution/held" | "https://id.registrystack.org/problems/registry-coordinator/idempotency/key-invalid" | "https://id.registrystack.org/problems/registry-coordinator/idempotency/key-reused" | "https://id.registrystack.org/problems/registry-coordinator/input/invalid" | "https://id.registrystack.org/problems/registry-coordinator/mutation/uncertain" | "https://id.registrystack.org/problems/registry-coordinator/operation/not-authorized" | "https://id.registrystack.org/problems/registry-coordinator/receipt/expired" | "https://id.registrystack.org/problems/registry-coordinator/reconcile/raced" | "https://id.registrystack.org/problems/registry-coordinator/reconcile/refused" | "https://id.registrystack.org/problems/registry-coordinator/reconcile/unsupported" | "https://id.registrystack.org/problems/registry-coordinator/request/body-too-large" | "https://id.registrystack.org/problems/registry-coordinator/request/invalid" | "https://id.registrystack.org/problems/registry-coordinator/request/limit-out-of-range" | "https://id.registrystack.org/problems/registry-coordinator/request/method-not-allowed" | "https://id.registrystack.org/problems/registry-coordinator/request/not-found" | "https://id.registrystack.org/problems/registry-coordinator/request/reason-invalid" | "https://id.registrystack.org/problems/registry-coordinator/request/retention-invalid" | "https://id.registrystack.org/problems/registry-coordinator/request/unprocessable" | "https://id.registrystack.org/problems/registry-coordinator/request/unsupported-media-type" | "https://id.registrystack.org/problems/registry-coordinator/restore/hold-required" | "https://id.registrystack.org/problems/registry-coordinator/restore/lease-incompatible" | "https://id.registrystack.org/problems/registry-coordinator/restore/review-required" | "https://id.registrystack.org/problems/registry-coordinator/restore/unresolved" | "https://id.registrystack.org/problems/registry-coordinator/retry/refused" | "https://id.registrystack.org/problems/registry-coordinator/run/definition-incompatible" | "https://id.registrystack.org/problems/registry-coordinator/run/not-visible" | "https://id.registrystack.org/problems/registry-coordinator/run/payload-erased" | "https://id.registrystack.org/problems/registry-coordinator/runtime/failure" | "https://id.registrystack.org/problems/registry-coordinator/service/unavailable" | "https://id.registrystack.org/problems/registry-coordinator/workflow/not-served" | "https://id.registrystack.org/problems/registry-coordinator/workflow/revision-mismatch") & (string) }) +export type Schema_Problem = ({ "code": ("admission.held" | "admission.recovery-only" | "audit.response-unavailable" | "authentication.refused" | "binding.conflict" | "binding.live-conflict" | "check.not-waiting" | "definition.refused" | "deployment.activation-changed" | "deployment.refused" | "evaluation.uncertain" | "event.invalid" | "event.too-large" | "event.unauthenticated" | "execution.held" | "idempotency.key-invalid" | "idempotency.key-reused" | "input.invalid" | "mutation.uncertain" | "operation.not-authorized" | "receipt.expired" | "reconcile.raced" | "reconcile.refused" | "reconcile.unsupported" | "request.body-too-large" | "request.invalid" | "request.limit-out-of-range" | "request.method-not-allowed" | "request.not-found" | "request.reason-invalid" | "request.retention-invalid" | "request.unprocessable" | "request.unsupported-media-type" | "restore.hold-required" | "restore.lease-incompatible" | "restore.review-required" | "restore.unresolved" | "retry.refused" | "run.definition-incompatible" | "run.not-visible" | "run.payload-erased" | "runtime.failure" | "service.unavailable" | "workflow.not-served" | "workflow.revision-mismatch") & (string); "detail": (string); "failedCheck"?: (string); "pointer"?: (string); "status": (number); "title": (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-coordinator/admission/held" | "https://id.registrystack.org/problems/registry-coordinator/admission/recovery-only" | "https://id.registrystack.org/problems/registry-coordinator/audit/response-unavailable" | "https://id.registrystack.org/problems/registry-coordinator/authentication/refused" | "https://id.registrystack.org/problems/registry-coordinator/binding/conflict" | "https://id.registrystack.org/problems/registry-coordinator/binding/live-conflict" | "https://id.registrystack.org/problems/registry-coordinator/check/not-waiting" | "https://id.registrystack.org/problems/registry-coordinator/definition/refused" | "https://id.registrystack.org/problems/registry-coordinator/deployment/activation-changed" | "https://id.registrystack.org/problems/registry-coordinator/deployment/refused" | "https://id.registrystack.org/problems/registry-coordinator/evaluation/uncertain" | "https://id.registrystack.org/problems/registry-coordinator/event/invalid" | "https://id.registrystack.org/problems/registry-coordinator/event/too-large" | "https://id.registrystack.org/problems/registry-coordinator/event/unauthenticated" | "https://id.registrystack.org/problems/registry-coordinator/execution/held" | "https://id.registrystack.org/problems/registry-coordinator/idempotency/key-invalid" | "https://id.registrystack.org/problems/registry-coordinator/idempotency/key-reused" | "https://id.registrystack.org/problems/registry-coordinator/input/invalid" | "https://id.registrystack.org/problems/registry-coordinator/mutation/uncertain" | "https://id.registrystack.org/problems/registry-coordinator/operation/not-authorized" | "https://id.registrystack.org/problems/registry-coordinator/receipt/expired" | "https://id.registrystack.org/problems/registry-coordinator/reconcile/raced" | "https://id.registrystack.org/problems/registry-coordinator/reconcile/refused" | "https://id.registrystack.org/problems/registry-coordinator/reconcile/unsupported" | "https://id.registrystack.org/problems/registry-coordinator/request/body-too-large" | "https://id.registrystack.org/problems/registry-coordinator/request/invalid" | "https://id.registrystack.org/problems/registry-coordinator/request/limit-out-of-range" | "https://id.registrystack.org/problems/registry-coordinator/request/method-not-allowed" | "https://id.registrystack.org/problems/registry-coordinator/request/not-found" | "https://id.registrystack.org/problems/registry-coordinator/request/reason-invalid" | "https://id.registrystack.org/problems/registry-coordinator/request/retention-invalid" | "https://id.registrystack.org/problems/registry-coordinator/request/unprocessable" | "https://id.registrystack.org/problems/registry-coordinator/request/unsupported-media-type" | "https://id.registrystack.org/problems/registry-coordinator/restore/hold-required" | "https://id.registrystack.org/problems/registry-coordinator/restore/lease-incompatible" | "https://id.registrystack.org/problems/registry-coordinator/restore/review-required" | "https://id.registrystack.org/problems/registry-coordinator/restore/unresolved" | "https://id.registrystack.org/problems/registry-coordinator/retry/refused" | "https://id.registrystack.org/problems/registry-coordinator/run/definition-incompatible" | "https://id.registrystack.org/problems/registry-coordinator/run/not-visible" | "https://id.registrystack.org/problems/registry-coordinator/run/payload-erased" | "https://id.registrystack.org/problems/registry-coordinator/runtime/failure" | "https://id.registrystack.org/problems/registry-coordinator/service/unavailable" | "https://id.registrystack.org/problems/registry-coordinator/workflow/not-served" | "https://id.registrystack.org/problems/registry-coordinator/workflow/revision-mismatch") & (string) }) export type Schema_ProposalWaitsByTurn = ({ "nobody": (number); "official": (number); "party": (number); "unobserved": (number) }) export type Schema_Reason = ({ "reason": (string) }) export type Schema_Retention = ({ "before": (string); "limit": (number) }) @@ -40,7 +40,7 @@ export interface Operations { "ready": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: ({ "developmentSettings": (Array<({ "code": (string); "pointer": (string) })>); "posture": ("production" | "development"); "ready": (boolean); "status": "ready" }) } "completeExecutionRecovery": { input: CallOptions & ({ body: Schema_ExecutionRecovery }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ExecutionReviewed } "doctor": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: Schema_Doctor } - "admitEvent": { input: CallOptions & { path: { "workflow": (string); "trigger": (string) } } & { headers: { "webhook-id": (string); "webhook-timestamp": (string); "webhook-signature": (string) } } & ({ body: Uint8Array }); required: true; output: undefined } + "admitEvent": { input: CallOptions & { path: { "workflowId": (string); "triggerId": (string) } } & { headers: { "webhook-id": (string); "webhook-timestamp": (string); "webhook-signature": (string) } } & ({ body: Uint8Array }); required: true; output: undefined } "releaseAdmissionHold": { input: CallOptions & ({ body: Schema_AdmissionRelease }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AdmissionHold } "releaseRestoreHold": { input: CallOptions & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_Hold } "restoreHold": { input: CallOptions & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_Hold } @@ -48,13 +48,13 @@ export interface Operations { "receiveReviewCompletion": { input: CallOptions & { headers: { "Registry-Recipient-Binding": (string); "webhook-id": (string); "webhook-timestamp": (string); "webhook-signature": (string) } } & ({ body: Uint8Array }); required: true; output: undefined } "listRuns": { input: CallOptions & { query?: { "limit"?: (number); "cursor"?: (string); "state"?: ("running" | "finished" | "failed" | "cancelled" | "cancelled-after-effect" | "expired" | "attention" | "cancel-requested") & (string); "attention"?: (boolean); "proposal"?: (string); "turn"?: ("party" | "official" | "nobody") & (string); "outcome"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_RunList } "startRun": { input: CallOptions & ({ body: Schema_Start }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunStatus } - "runStatus": { input: CallOptions & { path: { "run": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunStatus } - "cancelRun": { input: CallOptions & { path: { "run": (string) } } & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunStatus } - "checkNow": { input: CallOptions & { path: { "run": (string) } } & ({ body: Schema_CheckNow }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_CheckNowResult } - "inspectRun": { input: CallOptions & { path: { "run": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunInspection } - "reconcileRun": { input: CallOptions & { path: { "run": (string) } } & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunInspection } - "retrySame": { input: CallOptions & { path: { "run": (string) } } & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RetryScheduled } - "workflowContract": { input: CallOptions & { path: { "workflow": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_WorkflowContract } + "runStatus": { input: CallOptions & { path: { "runId": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunStatus } + "cancelRun": { input: CallOptions & { path: { "runId": (string) } } & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunStatus } + "checkNow": { input: CallOptions & { path: { "runId": (string) } } & ({ body: Schema_CheckNow }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_CheckNowResult } + "inspectRun": { input: CallOptions & { path: { "runId": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunInspection } + "reconcileRun": { input: CallOptions & { path: { "runId": (string) } } & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RunInspection } + "retrySame": { input: CallOptions & { path: { "runId": (string) } } & ({ body: Schema_Reason }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_RetryScheduled } + "workflowContract": { input: CallOptions & { path: { "workflowId": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_WorkflowContract } } const rules: Record = Object.fromEntries([ @@ -74,7 +74,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/HookEnvelope/$defs/Causation", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"hop\":{\"maximum\":8,\"minimum\":0,\"type\":\"integer\"},\"parent\":{\"type\":\"string\"},\"root\":{\"type\":\"string\"}},\"required\":[\"root\",\"hop\"],\"type\":\"object\"}")], ["/components/schemas/HookEnvelope/$defs/EventSubject", JSON.parse("{\"anyOf\":[{\"additionalProperties\":false,\"properties\":{\"recordReference\":{\"type\":\"string\"},\"recordRevision\":{\"maximum\":9007199254740991,\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"recordReference\",\"recordRevision\"],\"type\":\"object\"},{\"additionalProperties\":false,\"properties\":{\"proposalReference\":{\"type\":\"string\"},\"proposalRevision\":{\"maximum\":9007199254740991,\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"proposalReference\",\"proposalRevision\"],\"type\":\"object\"}]}")], ["/components/schemas/OperationIdentity", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"effect\":{\"enum\":[\"read\",\"mutation\",\"evaluation\"],\"type\":\"string\"},\"id\":{\"enum\":[\"breg.read-record/v1\",\"messaging.submit-message/v1\",\"scheduling.read-service/v1\",\"scheduling.read-availability/v1\",\"scheduling.create-appointment/v1\",\"scheduling.read-appointment/v1\",\"scheduling.create-hold/v1\",\"scheduling.release-hold/v1\",\"scheduling.confirm-hold/v1\",\"scheduling.reschedule-appointment/v1\",\"scheduling.cancel-appointment/v1\",\"breg.invoke-action/v1\",\"external.get/v1\",\"evaluation.evaluate/v1\",\"casework.submit-review-request/v1\",\"casework.cancel-review-request/v1\",\"scheduling.preview-availability/v1\",\"external.command/v1\",\"breg.read-in-force/v1\",\"breg.read-proposal/v1\",\"breg.start-proposal/v1\",\"breg.submit-proposal/v1\",\"breg.cancel-proposal/v1\",\"breg.lookup-record/v1\",\"breg.read-record/v2\",\"payments.request-collection/v1\",\"payments.read-collection/v1\",\"payments.record-receipt/v1\",\"payments.request-disbursement/v1\",\"payments.read-disbursement/v1\",\"payments.record-provider-confirmation/v1\"],\"type\":\"string\"},\"keyRequirement\":{\"enum\":[\"none\",\"required\"],\"type\":\"string\"},\"product\":{\"type\":\"string\"},\"readReceipt\":{\"type\":\"boolean\"},\"recovery\":{\"enum\":[\"read-again\",\"same-command-and-receipt\",\"same-command\",\"hold-after-dispatch\"],\"type\":\"string\"},\"requiresPreparation\":{\"type\":\"boolean\"},\"version\":{\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"id\",\"version\",\"product\",\"effect\",\"keyRequirement\",\"requiresPreparation\",\"recovery\",\"readReceipt\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"admission.held\",\"admission.recovery-only\",\"audit.response-unavailable\",\"authentication.refused\",\"binding.conflict\",\"binding.live-conflict\",\"check.not-waiting\",\"definition.refused\",\"deployment.activation-changed\",\"deployment.refused\",\"evaluation.uncertain\",\"event.invalid\",\"event.too-large\",\"event.unauthenticated\",\"execution.held\",\"idempotency.key-invalid\",\"idempotency.key-reused\",\"input.invalid\",\"mutation.uncertain\",\"operation.not-authorized\",\"receipt.expired\",\"reconcile.raced\",\"reconcile.refused\",\"reconcile.unsupported\",\"request.body-too-large\",\"request.invalid\",\"request.limit-out-of-range\",\"request.method-not-allowed\",\"request.not-found\",\"request.reason-invalid\",\"request.retention-invalid\",\"request.unprocessable\",\"request.unsupported-media-type\",\"restore.hold-required\",\"restore.lease-incompatible\",\"restore.review-required\",\"restore.unresolved\",\"retry.refused\",\"run.definition-incompatible\",\"run.not-visible\",\"run.payload-erased\",\"runtime.failure\",\"service.unavailable\",\"workflow.not-served\",\"workflow.revision-mismatch\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"pointer\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-coordinator/admission/held\",\"https://id.registrystack.org/problems/registry-coordinator/admission/recovery-only\",\"https://id.registrystack.org/problems/registry-coordinator/audit/response-unavailable\",\"https://id.registrystack.org/problems/registry-coordinator/authentication/refused\",\"https://id.registrystack.org/problems/registry-coordinator/binding/conflict\",\"https://id.registrystack.org/problems/registry-coordinator/binding/live-conflict\",\"https://id.registrystack.org/problems/registry-coordinator/check/not-waiting\",\"https://id.registrystack.org/problems/registry-coordinator/definition/refused\",\"https://id.registrystack.org/problems/registry-coordinator/deployment/activation-changed\",\"https://id.registrystack.org/problems/registry-coordinator/deployment/refused\",\"https://id.registrystack.org/problems/registry-coordinator/evaluation/uncertain\",\"https://id.registrystack.org/problems/registry-coordinator/event/invalid\",\"https://id.registrystack.org/problems/registry-coordinator/event/too-large\",\"https://id.registrystack.org/problems/registry-coordinator/event/unauthenticated\",\"https://id.registrystack.org/problems/registry-coordinator/execution/held\",\"https://id.registrystack.org/problems/registry-coordinator/idempotency/key-invalid\",\"https://id.registrystack.org/problems/registry-coordinator/idempotency/key-reused\",\"https://id.registrystack.org/problems/registry-coordinator/input/invalid\",\"https://id.registrystack.org/problems/registry-coordinator/mutation/uncertain\",\"https://id.registrystack.org/problems/registry-coordinator/operation/not-authorized\",\"https://id.registrystack.org/problems/registry-coordinator/receipt/expired\",\"https://id.registrystack.org/problems/registry-coordinator/reconcile/raced\",\"https://id.registrystack.org/problems/registry-coordinator/reconcile/refused\",\"https://id.registrystack.org/problems/registry-coordinator/reconcile/unsupported\",\"https://id.registrystack.org/problems/registry-coordinator/request/body-too-large\",\"https://id.registrystack.org/problems/registry-coordinator/request/invalid\",\"https://id.registrystack.org/problems/registry-coordinator/request/limit-out-of-range\",\"https://id.registrystack.org/problems/registry-coordinator/request/method-not-allowed\",\"https://id.registrystack.org/problems/registry-coordinator/request/not-found\",\"https://id.registrystack.org/problems/registry-coordinator/request/reason-invalid\",\"https://id.registrystack.org/problems/registry-coordinator/request/retention-invalid\",\"https://id.registrystack.org/problems/registry-coordinator/request/unprocessable\",\"https://id.registrystack.org/problems/registry-coordinator/request/unsupported-media-type\",\"https://id.registrystack.org/problems/registry-coordinator/restore/hold-required\",\"https://id.registrystack.org/problems/registry-coordinator/restore/lease-incompatible\",\"https://id.registrystack.org/problems/registry-coordinator/restore/review-required\",\"https://id.registrystack.org/problems/registry-coordinator/restore/unresolved\",\"https://id.registrystack.org/problems/registry-coordinator/retry/refused\",\"https://id.registrystack.org/problems/registry-coordinator/run/definition-incompatible\",\"https://id.registrystack.org/problems/registry-coordinator/run/not-visible\",\"https://id.registrystack.org/problems/registry-coordinator/run/payload-erased\",\"https://id.registrystack.org/problems/registry-coordinator/runtime/failure\",\"https://id.registrystack.org/problems/registry-coordinator/service/unavailable\",\"https://id.registrystack.org/problems/registry-coordinator/workflow/not-served\",\"https://id.registrystack.org/problems/registry-coordinator/workflow/revision-mismatch\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"admission.held\",\"admission.recovery-only\",\"audit.response-unavailable\",\"authentication.refused\",\"binding.conflict\",\"binding.live-conflict\",\"check.not-waiting\",\"definition.refused\",\"deployment.activation-changed\",\"deployment.refused\",\"evaluation.uncertain\",\"event.invalid\",\"event.too-large\",\"event.unauthenticated\",\"execution.held\",\"idempotency.key-invalid\",\"idempotency.key-reused\",\"input.invalid\",\"mutation.uncertain\",\"operation.not-authorized\",\"receipt.expired\",\"reconcile.raced\",\"reconcile.refused\",\"reconcile.unsupported\",\"request.body-too-large\",\"request.invalid\",\"request.limit-out-of-range\",\"request.method-not-allowed\",\"request.not-found\",\"request.reason-invalid\",\"request.retention-invalid\",\"request.unprocessable\",\"request.unsupported-media-type\",\"restore.hold-required\",\"restore.lease-incompatible\",\"restore.review-required\",\"restore.unresolved\",\"retry.refused\",\"run.definition-incompatible\",\"run.not-visible\",\"run.payload-erased\",\"runtime.failure\",\"service.unavailable\",\"workflow.not-served\",\"workflow.revision-mismatch\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"pointer\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-coordinator/admission/held\",\"https://id.registrystack.org/problems/registry-coordinator/admission/recovery-only\",\"https://id.registrystack.org/problems/registry-coordinator/audit/response-unavailable\",\"https://id.registrystack.org/problems/registry-coordinator/authentication/refused\",\"https://id.registrystack.org/problems/registry-coordinator/binding/conflict\",\"https://id.registrystack.org/problems/registry-coordinator/binding/live-conflict\",\"https://id.registrystack.org/problems/registry-coordinator/check/not-waiting\",\"https://id.registrystack.org/problems/registry-coordinator/definition/refused\",\"https://id.registrystack.org/problems/registry-coordinator/deployment/activation-changed\",\"https://id.registrystack.org/problems/registry-coordinator/deployment/refused\",\"https://id.registrystack.org/problems/registry-coordinator/evaluation/uncertain\",\"https://id.registrystack.org/problems/registry-coordinator/event/invalid\",\"https://id.registrystack.org/problems/registry-coordinator/event/too-large\",\"https://id.registrystack.org/problems/registry-coordinator/event/unauthenticated\",\"https://id.registrystack.org/problems/registry-coordinator/execution/held\",\"https://id.registrystack.org/problems/registry-coordinator/idempotency/key-invalid\",\"https://id.registrystack.org/problems/registry-coordinator/idempotency/key-reused\",\"https://id.registrystack.org/problems/registry-coordinator/input/invalid\",\"https://id.registrystack.org/problems/registry-coordinator/mutation/uncertain\",\"https://id.registrystack.org/problems/registry-coordinator/operation/not-authorized\",\"https://id.registrystack.org/problems/registry-coordinator/receipt/expired\",\"https://id.registrystack.org/problems/registry-coordinator/reconcile/raced\",\"https://id.registrystack.org/problems/registry-coordinator/reconcile/refused\",\"https://id.registrystack.org/problems/registry-coordinator/reconcile/unsupported\",\"https://id.registrystack.org/problems/registry-coordinator/request/body-too-large\",\"https://id.registrystack.org/problems/registry-coordinator/request/invalid\",\"https://id.registrystack.org/problems/registry-coordinator/request/limit-out-of-range\",\"https://id.registrystack.org/problems/registry-coordinator/request/method-not-allowed\",\"https://id.registrystack.org/problems/registry-coordinator/request/not-found\",\"https://id.registrystack.org/problems/registry-coordinator/request/reason-invalid\",\"https://id.registrystack.org/problems/registry-coordinator/request/retention-invalid\",\"https://id.registrystack.org/problems/registry-coordinator/request/unprocessable\",\"https://id.registrystack.org/problems/registry-coordinator/request/unsupported-media-type\",\"https://id.registrystack.org/problems/registry-coordinator/restore/hold-required\",\"https://id.registrystack.org/problems/registry-coordinator/restore/lease-incompatible\",\"https://id.registrystack.org/problems/registry-coordinator/restore/review-required\",\"https://id.registrystack.org/problems/registry-coordinator/restore/unresolved\",\"https://id.registrystack.org/problems/registry-coordinator/retry/refused\",\"https://id.registrystack.org/problems/registry-coordinator/run/definition-incompatible\",\"https://id.registrystack.org/problems/registry-coordinator/run/not-visible\",\"https://id.registrystack.org/problems/registry-coordinator/run/payload-erased\",\"https://id.registrystack.org/problems/registry-coordinator/runtime/failure\",\"https://id.registrystack.org/problems/registry-coordinator/service/unavailable\",\"https://id.registrystack.org/problems/registry-coordinator/workflow/not-served\",\"https://id.registrystack.org/problems/registry-coordinator/workflow/revision-mismatch\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ProposalWaitsByTurn", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"nobody\":{\"minimum\":0,\"type\":\"integer\"},\"official\":{\"minimum\":0,\"type\":\"integer\"},\"party\":{\"minimum\":0,\"type\":\"integer\"},\"unobserved\":{\"minimum\":0,\"type\":\"integer\"}},\"required\":[\"party\",\"official\",\"nobody\",\"unobserved\"],\"type\":\"object\"}")], ["/components/schemas/Reason", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"reason\":{\"maxLength\":256,\"minLength\":1,\"type\":\"string\"}},\"required\":[\"reason\"],\"type\":\"object\"}")], ["/components/schemas/Retention", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"before\":{\"type\":\"string\"},\"limit\":{\"maximum\":100,\"minimum\":1,\"type\":\"integer\"}},\"required\":[\"before\",\"limit\"],\"type\":\"object\"}")], @@ -108,13 +108,13 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1doctor/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], ["/paths/~1v1~1doctor/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], ["/paths/~1v1~1doctor/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"event.invalid\",\"input.invalid\",\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"event.unauthenticated\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"admission.held\",\"admission.recovery-only\",\"binding.conflict\",\"binding.live-conflict\",\"definition.refused\",\"deployment.activation-changed\",\"deployment.refused\",\"execution.held\",\"idempotency.key-reused\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"event.too-large\",\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"event.invalid\",\"input.invalid\",\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"event.unauthenticated\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"admission.held\",\"admission.recovery-only\",\"binding.conflict\",\"binding.live-conflict\",\"definition.refused\",\"deployment.activation-changed\",\"deployment.refused\",\"execution.held\",\"idempotency.key-reused\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"event.too-large\",\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], ["/paths/~1v1~1release-admission-hold/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AdmissionHold\"}")], ["/paths/~1v1~1release-admission-hold/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], ["/paths/~1v1~1release-admission-hold/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], @@ -177,75 +177,75 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1runs/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], ["/paths/~1v1~1runs/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], ["/paths/~1v1~1runs/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunStatus\"}")], - ["/paths/~1v1~1runs~1{run}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunStatus\"}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.definition-incompatible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/CheckNowResult\"}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"check.not-waiting\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1check/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunInspection\"}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"binding.conflict\",\"definition.refused\",\"run.payload-erased\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1inspect/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunInspection\"}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"binding.conflict\",\"definition.refused\",\"reconcile.raced\",\"reconcile.refused\",\"reconcile.unsupported\",\"run.definition-incompatible\",\"run.payload-erased\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1reconcile/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RetryScheduled\"}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"binding.conflict\",\"definition.refused\",\"evaluation.uncertain\",\"mutation.uncertain\",\"receipt.expired\",\"retry.refused\",\"run.definition-incompatible\",\"run.payload-erased\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1runs~1{run}~1retry-same/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/WorkflowContract\"}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"workflow.not-served\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"deployment.activation-changed\",\"deployment.refused\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], - ["/paths/~1v1~1workflows~1{workflow}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunStatus\"}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunStatus\"}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.definition-incompatible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/CheckNowResult\"}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"check.not-waiting\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1check/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunInspection\"}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"binding.conflict\",\"definition.refused\",\"run.payload-erased\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1inspect/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RunInspection\"}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"binding.conflict\",\"definition.refused\",\"reconcile.raced\",\"reconcile.refused\",\"reconcile.unsupported\",\"run.definition-incompatible\",\"run.payload-erased\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/RetryScheduled\"}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\",\"request.reason-invalid\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"run.not-visible\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"binding.conflict\",\"definition.refused\",\"evaluation.uncertain\",\"mutation.uncertain\",\"receipt.expired\",\"retry.refused\",\"run.definition-incompatible\",\"run.payload-erased\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/WorkflowContract\"}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"workflow.not-served\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"deployment.activation-changed\",\"deployment.refused\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"runtime.failure\"]}}}]}")], + ["/paths/~1v1~1workflows~1{workflowId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"audit.response-unavailable\",\"service.unavailable\"]}}}]}")], ]) const routes: Record = Object.create(null) type Definition = Omit & { problems?: Record; responses: Record> } @@ -254,7 +254,7 @@ const definitions: Record = Object.fromEntries([ ["ready", JSON.parse("{\"method\":\"GET\",\"path\":\"/ready\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1ready/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"405\":\"/paths/~1ready/get/responses/405/content/application~1problem+json/schema\"}}")], ["completeExecutionRecovery", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/complete-execution-recovery\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1complete-execution-recovery/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1complete-execution-recovery/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1complete-execution-recovery/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1complete-execution-recovery/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1complete-execution-recovery/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1complete-execution-recovery/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1complete-execution-recovery/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1complete-execution-recovery/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1complete-execution-recovery/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1complete-execution-recovery/post/responses/503/content/application~1problem+json/schema\"}}")], ["doctor", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/doctor\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1doctor/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1v1~1doctor/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1doctor/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1doctor/get/responses/405/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1doctor/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1doctor/get/responses/503/content/application~1problem+json/schema\"}}")], - ["admitEvent", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/events/{workflow}/{trigger}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"signed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/401/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/413/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1events~1{workflow}~1{trigger}/post/responses/503/content/application~1problem+json/schema\"}}")], + ["admitEvent", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/events/{workflowId}/{triggerId}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"signed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/401/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/413/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1events~1{workflowId}~1{triggerId}/post/responses/503/content/application~1problem+json/schema\"}}")], ["releaseAdmissionHold", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/release-admission-hold\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1release-admission-hold/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1release-admission-hold/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1release-admission-hold/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1release-admission-hold/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1release-admission-hold/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1release-admission-hold/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1release-admission-hold/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1release-admission-hold/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1release-admission-hold/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1release-admission-hold/post/responses/503/content/application~1problem+json/schema\"}}")], ["releaseRestoreHold", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/release-restore-hold\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1release-restore-hold/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1release-restore-hold/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1release-restore-hold/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1release-restore-hold/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1release-restore-hold/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1release-restore-hold/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1release-restore-hold/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1release-restore-hold/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1release-restore-hold/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1release-restore-hold/post/responses/503/content/application~1problem+json/schema\"}}")], ["restoreHold", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/restore-hold\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1restore-hold/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1restore-hold/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1restore-hold/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1restore-hold/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1restore-hold/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1restore-hold/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1restore-hold/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1restore-hold/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1restore-hold/post/responses/503/content/application~1problem+json/schema\"}}")], @@ -262,13 +262,13 @@ const definitions: Record = Object.fromEntries([ ["receiveReviewCompletion", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/review-completions\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"signed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1review-completions/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1review-completions/post/responses/401/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1review-completions/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1review-completions/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1review-completions/post/responses/415/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1review-completions/post/responses/503/content/application~1problem+json/schema\"}}")], ["listRuns", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/runs\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1runs/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs/get/responses/405/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs/get/responses/503/content/application~1problem+json/schema\"}}")], ["startRun", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs/post/responses/503/content/application~1problem+json/schema\"}}")], - ["runStatus", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/runs/{run}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{run}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1runs~1{run}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{run}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{run}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{run}/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{run}/get/responses/405/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{run}/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{run}/get/responses/503/content/application~1problem+json/schema\"}}")], - ["cancelRun", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{run}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{run}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], - ["checkNow", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{run}/check\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{run}~1check/post/responses/503/content/application~1problem+json/schema\"}}")], - ["inspectRun", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/runs/{run}/inspect\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/409/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{run}~1inspect/get/responses/503/content/application~1problem+json/schema\"}}")], - ["reconcileRun", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{run}/reconcile\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{run}~1reconcile/post/responses/503/content/application~1problem+json/schema\"}}")], - ["retrySame", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{run}/retry-same\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{run}~1retry-same/post/responses/503/content/application~1problem+json/schema\"}}")], - ["workflowContract", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/workflows/{workflow}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/409/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1workflows~1{workflow}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["runStatus", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/runs/{runId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{runId}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1runs~1{runId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{runId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{runId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{runId}/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{runId}/get/responses/405/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{runId}/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{runId}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["cancelRun", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{runId}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{runId}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], + ["checkNow", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{runId}/check\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{runId}~1check/post/responses/503/content/application~1problem+json/schema\"}}")], + ["inspectRun", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/runs/{runId}/inspect\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/409/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{runId}~1inspect/get/responses/503/content/application~1problem+json/schema\"}}")], + ["reconcileRun", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{runId}/reconcile\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{runId}~1reconcile/post/responses/503/content/application~1problem+json/schema\"}}")], + ["retrySame", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/runs/{runId}/retry-same\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/415/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1runs~1{runId}~1retry-same/post/responses/503/content/application~1problem+json/schema\"}}")], + ["workflowContract", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/workflows/{workflowId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/409/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1workflows~1{workflowId}/get/responses/503/content/application~1problem+json/schema\"}}")], ]) for (const [id, definition] of Object.entries(definitions)) { const responses: Operation["responses"] = {} diff --git a/clients/typescript/generated/documents.ts b/clients/typescript/generated/documents.ts index 3e3de81c2f..f23fe04f7f 100644 --- a/clients/typescript/generated/documents.ts +++ b/clients/typescript/generated/documents.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 0859c890595bbe1d6229c78bc4ab324b60222f5689a8d47c9272e03490ff5631 +// Source SHA-256 3ae4d3cb2bdd8a07d034758175ecea78c67d4ae87b2b34ad6886187a26647ae6 import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -23,7 +23,7 @@ export type Schema_GranteeRef = ({ "kind": Schema_ActorKind; "subject": Schema_E export type Schema_IssueGrantRequest = ({ "expiryHours"?: (number); "grantee": Schema_GranteeRef; "versionId": (string) }) export type Schema_LocalId = (string) export type Schema_PolicyBinding = ({ "digest": Schema_Digest; "id": Schema_LocalId; "version": (string) }) -export type Schema_Problem = ({ "code": ("authentication.refused" | "custody.not-permitted" | "custody.quota-exceeded" | "document-grant.expiry-out-of-range" | "document-policy.unknown" | "document-version.not-releasable" | "document.content-type-not-allowed" | "document.too-large" | "idempotency.expired" | "idempotency.key-reused" | "profile.not-authorized" | "request.body-too-large" | "request.invalid" | "request.method-not-allowed" | "request.not-found" | "request.unprocessable" | "request.unsupported-media-type" | "resource.not-found" | "service.unavailable" | "upload.content-type-mismatch" | "upload.digest-mismatch" | "upload.expired" | "upload.finalized" | "upload.length-mismatch") & (string); "detail": (string); "status": (number); "title": (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-documents/authentication/refused" | "https://id.registrystack.org/problems/registry-documents/custody/not-permitted" | "https://id.registrystack.org/problems/registry-documents/custody/quota-exceeded" | "https://id.registrystack.org/problems/registry-documents/document-grant/expiry-out-of-range" | "https://id.registrystack.org/problems/registry-documents/document-policy/unknown" | "https://id.registrystack.org/problems/registry-documents/document-version/not-releasable" | "https://id.registrystack.org/problems/registry-documents/document/content-type-not-allowed" | "https://id.registrystack.org/problems/registry-documents/document/too-large" | "https://id.registrystack.org/problems/registry-documents/idempotency/expired" | "https://id.registrystack.org/problems/registry-documents/idempotency/key-reused" | "https://id.registrystack.org/problems/registry-documents/profile/not-authorized" | "https://id.registrystack.org/problems/registry-documents/request/body-too-large" | "https://id.registrystack.org/problems/registry-documents/request/invalid" | "https://id.registrystack.org/problems/registry-documents/request/method-not-allowed" | "https://id.registrystack.org/problems/registry-documents/request/not-found" | "https://id.registrystack.org/problems/registry-documents/request/unprocessable" | "https://id.registrystack.org/problems/registry-documents/request/unsupported-media-type" | "https://id.registrystack.org/problems/registry-documents/resource/not-found" | "https://id.registrystack.org/problems/registry-documents/service/unavailable" | "https://id.registrystack.org/problems/registry-documents/upload/content-type-mismatch" | "https://id.registrystack.org/problems/registry-documents/upload/digest-mismatch" | "https://id.registrystack.org/problems/registry-documents/upload/expired" | "https://id.registrystack.org/problems/registry-documents/upload/finalized" | "https://id.registrystack.org/problems/registry-documents/upload/length-mismatch") & (string) }) +export type Schema_Problem = ({ "code": ("authentication.refused" | "custody.not-permitted" | "custody.quota-exceeded" | "document-grant.expiry-out-of-range" | "document-policy.unknown" | "document-version.not-releasable" | "document.content-type-not-allowed" | "document.too-large" | "idempotency.expired" | "idempotency.key-reused" | "profile.not-authorized" | "request.body-too-large" | "request.invalid" | "request.method-not-allowed" | "request.not-found" | "request.unprocessable" | "request.unsupported-media-type" | "resource.not-found" | "service.unavailable" | "upload.content-type-mismatch" | "upload.digest-mismatch" | "upload.expired" | "upload.finalized" | "upload.length-mismatch") & (string); "detail": (string); "failedCheck"?: (string); "status": (number); "title": (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-documents/authentication/refused" | "https://id.registrystack.org/problems/registry-documents/custody/not-permitted" | "https://id.registrystack.org/problems/registry-documents/custody/quota-exceeded" | "https://id.registrystack.org/problems/registry-documents/document-grant/expiry-out-of-range" | "https://id.registrystack.org/problems/registry-documents/document-policy/unknown" | "https://id.registrystack.org/problems/registry-documents/document-version/not-releasable" | "https://id.registrystack.org/problems/registry-documents/document/content-type-not-allowed" | "https://id.registrystack.org/problems/registry-documents/document/too-large" | "https://id.registrystack.org/problems/registry-documents/idempotency/expired" | "https://id.registrystack.org/problems/registry-documents/idempotency/key-reused" | "https://id.registrystack.org/problems/registry-documents/profile/not-authorized" | "https://id.registrystack.org/problems/registry-documents/request/body-too-large" | "https://id.registrystack.org/problems/registry-documents/request/invalid" | "https://id.registrystack.org/problems/registry-documents/request/method-not-allowed" | "https://id.registrystack.org/problems/registry-documents/request/not-found" | "https://id.registrystack.org/problems/registry-documents/request/unprocessable" | "https://id.registrystack.org/problems/registry-documents/request/unsupported-media-type" | "https://id.registrystack.org/problems/registry-documents/resource/not-found" | "https://id.registrystack.org/problems/registry-documents/service/unavailable" | "https://id.registrystack.org/problems/registry-documents/upload/content-type-mismatch" | "https://id.registrystack.org/problems/registry-documents/upload/digest-mismatch" | "https://id.registrystack.org/problems/registry-documents/upload/expired" | "https://id.registrystack.org/problems/registry-documents/upload/finalized" | "https://id.registrystack.org/problems/registry-documents/upload/length-mismatch") & (string) }) export type Schema_Readiness = ({ "developmentSettings": (Array<({ "code": (string); "pointer": (string) })>); "posture": ("production" | "development"); "status": "ready" }) export type Schema_ReservationView = ({ "document": Schema_DocumentView; "uploadExpiresAt": (string); "uploadPath": (string) }) export type Schema_ReserveDocumentRequest = ({ "custodian"?: Schema_CustodianRef; "expectedDigest": Schema_Digest; "issuingInstitution"?: Schema_ExternalId; "label"?: Schema_DocumentLabel; "length": (number); "mediaType": (string); "policyId": (string) }) @@ -65,7 +65,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/IssueGrantRequest", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"expiryHours\":{\"minimum\":0,\"type\":\"integer\"},\"grantee\":{\"$ref\":\"/components/schemas/GranteeRef\"},\"versionId\":{\"type\":\"string\"}},\"required\":[\"versionId\",\"grantee\"],\"type\":\"object\"}")], ["/components/schemas/LocalId", JSON.parse("{\"pattern\":\"^[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"}")], ["/components/schemas/PolicyBinding", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"digest\":{\"$ref\":\"/components/schemas/Digest\"},\"id\":{\"$ref\":\"/components/schemas/LocalId\"},\"version\":{\"type\":\"string\"}},\"required\":[\"id\",\"version\",\"digest\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"authentication.refused\",\"custody.not-permitted\",\"custody.quota-exceeded\",\"document-grant.expiry-out-of-range\",\"document-policy.unknown\",\"document-version.not-releasable\",\"document.content-type-not-allowed\",\"document.too-large\",\"idempotency.expired\",\"idempotency.key-reused\",\"profile.not-authorized\",\"request.body-too-large\",\"request.invalid\",\"request.method-not-allowed\",\"request.not-found\",\"request.unprocessable\",\"request.unsupported-media-type\",\"resource.not-found\",\"service.unavailable\",\"upload.content-type-mismatch\",\"upload.digest-mismatch\",\"upload.expired\",\"upload.finalized\",\"upload.length-mismatch\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-documents/authentication/refused\",\"https://id.registrystack.org/problems/registry-documents/custody/not-permitted\",\"https://id.registrystack.org/problems/registry-documents/custody/quota-exceeded\",\"https://id.registrystack.org/problems/registry-documents/document-grant/expiry-out-of-range\",\"https://id.registrystack.org/problems/registry-documents/document-policy/unknown\",\"https://id.registrystack.org/problems/registry-documents/document-version/not-releasable\",\"https://id.registrystack.org/problems/registry-documents/document/content-type-not-allowed\",\"https://id.registrystack.org/problems/registry-documents/document/too-large\",\"https://id.registrystack.org/problems/registry-documents/idempotency/expired\",\"https://id.registrystack.org/problems/registry-documents/idempotency/key-reused\",\"https://id.registrystack.org/problems/registry-documents/profile/not-authorized\",\"https://id.registrystack.org/problems/registry-documents/request/body-too-large\",\"https://id.registrystack.org/problems/registry-documents/request/invalid\",\"https://id.registrystack.org/problems/registry-documents/request/method-not-allowed\",\"https://id.registrystack.org/problems/registry-documents/request/not-found\",\"https://id.registrystack.org/problems/registry-documents/request/unprocessable\",\"https://id.registrystack.org/problems/registry-documents/request/unsupported-media-type\",\"https://id.registrystack.org/problems/registry-documents/resource/not-found\",\"https://id.registrystack.org/problems/registry-documents/service/unavailable\",\"https://id.registrystack.org/problems/registry-documents/upload/content-type-mismatch\",\"https://id.registrystack.org/problems/registry-documents/upload/digest-mismatch\",\"https://id.registrystack.org/problems/registry-documents/upload/expired\",\"https://id.registrystack.org/problems/registry-documents/upload/finalized\",\"https://id.registrystack.org/problems/registry-documents/upload/length-mismatch\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"authentication.refused\",\"custody.not-permitted\",\"custody.quota-exceeded\",\"document-grant.expiry-out-of-range\",\"document-policy.unknown\",\"document-version.not-releasable\",\"document.content-type-not-allowed\",\"document.too-large\",\"idempotency.expired\",\"idempotency.key-reused\",\"profile.not-authorized\",\"request.body-too-large\",\"request.invalid\",\"request.method-not-allowed\",\"request.not-found\",\"request.unprocessable\",\"request.unsupported-media-type\",\"resource.not-found\",\"service.unavailable\",\"upload.content-type-mismatch\",\"upload.digest-mismatch\",\"upload.expired\",\"upload.finalized\",\"upload.length-mismatch\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-documents/authentication/refused\",\"https://id.registrystack.org/problems/registry-documents/custody/not-permitted\",\"https://id.registrystack.org/problems/registry-documents/custody/quota-exceeded\",\"https://id.registrystack.org/problems/registry-documents/document-grant/expiry-out-of-range\",\"https://id.registrystack.org/problems/registry-documents/document-policy/unknown\",\"https://id.registrystack.org/problems/registry-documents/document-version/not-releasable\",\"https://id.registrystack.org/problems/registry-documents/document/content-type-not-allowed\",\"https://id.registrystack.org/problems/registry-documents/document/too-large\",\"https://id.registrystack.org/problems/registry-documents/idempotency/expired\",\"https://id.registrystack.org/problems/registry-documents/idempotency/key-reused\",\"https://id.registrystack.org/problems/registry-documents/profile/not-authorized\",\"https://id.registrystack.org/problems/registry-documents/request/body-too-large\",\"https://id.registrystack.org/problems/registry-documents/request/invalid\",\"https://id.registrystack.org/problems/registry-documents/request/method-not-allowed\",\"https://id.registrystack.org/problems/registry-documents/request/not-found\",\"https://id.registrystack.org/problems/registry-documents/request/unprocessable\",\"https://id.registrystack.org/problems/registry-documents/request/unsupported-media-type\",\"https://id.registrystack.org/problems/registry-documents/resource/not-found\",\"https://id.registrystack.org/problems/registry-documents/service/unavailable\",\"https://id.registrystack.org/problems/registry-documents/upload/content-type-mismatch\",\"https://id.registrystack.org/problems/registry-documents/upload/digest-mismatch\",\"https://id.registrystack.org/problems/registry-documents/upload/expired\",\"https://id.registrystack.org/problems/registry-documents/upload/finalized\",\"https://id.registrystack.org/problems/registry-documents/upload/length-mismatch\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/Readiness", JSON.parse("{\"properties\":{\"developmentSettings\":{\"items\":{\"properties\":{\"code\":{\"type\":\"string\"},\"pointer\":{\"type\":\"string\"}},\"required\":[\"code\",\"pointer\"],\"type\":\"object\"},\"type\":\"array\"},\"posture\":{\"enum\":[\"production\",\"development\"]},\"status\":{\"const\":\"ready\"}},\"required\":[\"status\",\"posture\",\"developmentSettings\"],\"type\":\"object\"}")], ["/components/schemas/ReservationView", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"document\":{\"$ref\":\"/components/schemas/DocumentView\"},\"uploadExpiresAt\":{\"type\":\"string\"},\"uploadPath\":{\"type\":\"string\"}},\"required\":[\"document\",\"uploadPath\",\"uploadExpiresAt\"],\"type\":\"object\"}")], ["/components/schemas/ReserveDocumentRequest", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"custodian\":{\"$ref\":\"/components/schemas/CustodianRef\"},\"expectedDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"issuingInstitution\":{\"$ref\":\"/components/schemas/ExternalId\"},\"label\":{\"$ref\":\"/components/schemas/DocumentLabel\"},\"length\":{\"minimum\":0,\"type\":\"integer\"},\"mediaType\":{\"type\":\"string\"},\"policyId\":{\"type\":\"string\"}},\"required\":[\"policyId\",\"expectedDigest\",\"length\",\"mediaType\"],\"type\":\"object\"}")], diff --git a/clients/typescript/generated/evidence-oid4vci.ts b/clients/typescript/generated/evidence-oid4vci.ts index c679b2346f..6dc1cedcc7 100644 --- a/clients/typescript/generated/evidence-oid4vci.ts +++ b/clients/typescript/generated/evidence-oid4vci.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 6a79e7501e3aa796c17617d3293ad46ebb62b2ea27bc856af10b60336e3897c8 +// Source SHA-256 218dc077f5442dd03c2f4f2b802413b3a9fd908ac01d3d838aafcacd73963c46 import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -10,7 +10,7 @@ export type Schema_Draft13PreAuthorizedCodeGrant = ({ "pre-authorized_code": (st export type Schema_OfferRequest = ({ "credentialConfigurationId": (string); "subjects": (Array); "transactionCode"?: (boolean) }) export type Schema_OfferResponse = ({ "credentialOffer": Schema_CredentialOffer; "credentialOfferUri": (string); "expiresIn": (number); "transactionCode"?: (string) }) export type Schema_PreAuthorizedCodeGrant = ({ "pre-authorized_code": (string); "tx_code"?: Schema_TransactionCodeDescription }) -export type Schema_Problem = ({ "error": ("access_denied" | "invalid_request" | "invalid_token" | "unsupported_grant_type" | "invalid_grant" | "invalid_credential_request" | "invalid_proof" | "invalid_nonce" | "credential_request_denied" | "temporarily_unavailable" | "server_error"); "error_description": (string) }) +export type Schema_Problem = ({ "error": ("access_denied" | "invalid_request" | "invalid_token" | "unsupported_grant_type" | "invalid_grant" | "invalid_credential_request" | "invalid_proof" | "invalid_nonce" | "credential_request_denied" | "temporarily_unavailable" | "server_error"); "error_description": (string); "failedCheck"?: (string) }) export type Schema_RequestedSubject = ({ "role": (string); "selectorValues"?: (Record) }) export type Schema_TransactionCodeDescription = ({ "input_mode": "numeric"; "length": 6 }) @@ -27,7 +27,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/OfferRequest", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"credentialConfigurationId\":{\"type\":\"string\"},\"subjects\":{\"items\":{\"$ref\":\"/components/schemas/RequestedSubject\"},\"maxItems\":8,\"minItems\":1,\"type\":\"array\"},\"transactionCode\":{\"type\":\"boolean\"}},\"required\":[\"credentialConfigurationId\",\"subjects\"],\"type\":\"object\"}")], ["/components/schemas/OfferResponse", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"credentialOffer\":{\"$ref\":\"/components/schemas/CredentialOffer\"},\"credentialOfferUri\":{\"type\":\"string\"},\"expiresIn\":{\"maximum\":900,\"minimum\":60,\"type\":\"integer\"},\"transactionCode\":{\"pattern\":\"^[0-9]{6}$\",\"type\":\"string\"}},\"required\":[\"credentialOffer\",\"credentialOfferUri\",\"expiresIn\"],\"type\":\"object\"}")], ["/components/schemas/PreAuthorizedCodeGrant", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"pre-authorized_code\":{\"type\":\"string\"},\"tx_code\":{\"$ref\":\"/components/schemas/TransactionCodeDescription\"}},\"required\":[\"pre-authorized_code\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"error\":{\"enum\":[\"access_denied\",\"invalid_request\",\"invalid_token\",\"unsupported_grant_type\",\"invalid_grant\",\"invalid_credential_request\",\"invalid_proof\",\"invalid_nonce\",\"credential_request_denied\",\"temporarily_unavailable\",\"server_error\"]},\"error_description\":{\"type\":\"string\"}},\"required\":[\"error\",\"error_description\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"error\":{\"enum\":[\"access_denied\",\"invalid_request\",\"invalid_token\",\"unsupported_grant_type\",\"invalid_grant\",\"invalid_credential_request\",\"invalid_proof\",\"invalid_nonce\",\"credential_request_denied\",\"temporarily_unavailable\",\"server_error\"]},\"error_description\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"}},\"required\":[\"error\",\"error_description\"],\"type\":\"object\"}")], ["/components/schemas/RequestedSubject", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"role\":{\"pattern\":\"^[a-z][a-z0-9._-]{0,63}$\",\"type\":\"string\"},\"selectorValues\":{\"additionalProperties\":{\"type\":[\"string\",\"integer\",\"boolean\"]},\"maxProperties\":16,\"type\":\"object\"}},\"required\":[\"role\"],\"type\":\"object\"}")], ["/components/schemas/TransactionCodeDescription", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"input_mode\":{\"const\":\"numeric\"},\"length\":{\"const\":6}},\"required\":[\"input_mode\",\"length\"],\"type\":\"object\"}")], ["/paths/~1offers/post/responses/201/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OfferResponse\"}")], diff --git a/clients/typescript/generated/evidence-oid4vp.ts b/clients/typescript/generated/evidence-oid4vp.ts index 65726a7836..ac4caed5a7 100644 --- a/clients/typescript/generated/evidence-oid4vp.ts +++ b/clients/typescript/generated/evidence-oid4vp.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 96efd52e3c7176c603e3f9d47a23a9fbb1f7d4bb673bdc1682fb5eb74d115fc9 +// Source SHA-256 6da3ab9720fa5323564d9b5536aa5b75f1475b915dd8b111e16dabc26c6c0efa import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -10,8 +10,9 @@ export type Schema_Empty = (Record) export type Schema_HealthResponse = ({ "status": "ok" }) export type Schema_Jwks = ({ "keys": (Array<({ "alg": "EdDSA"; "crv": "Ed25519"; "kid": (string); "kty": "OKP"; "use": "sig"; "x": (string) })>) }) export type Schema_OAuthError = ({ "error": ("invalid_request" | "temporarily_unavailable") }) +export type Schema_OAuthRateLimit = ({ "error": "temporarily_unavailable"; "failedCheck"?: "rate-limit" }) export type Schema_Principal = ({ "issuer": (string); "subject": (string) }) -export type Schema_Problem = ({ "detail"?: (string); "status": (number); "title": (string); "type": (string) }) +export type Schema_Problem = ({ "detail"?: (string); "failedCheck"?: (string); "status": (number); "title": (string); "type": (string) }) export type Schema_ReadRequest = ({ "principal": Schema_Principal; "reference": (string) }) export type Schema_ReadResponse = ({ "context": ({ "clientId": (string); "createdBy": Schema_Principal; "nonce": (string); "policyId": (string); "receivedAt": (string); "responseKeyThumbprint": (string); "responseUri": (string) }); "presentation": (Record)>) }) export type Schema_ReadinessResponse = ({ "developmentSettings"?: (Array<({ "code": (string); "pointer"?: (string) })>); "posture"?: ("development" | "production"); "status": ("ready" | "not_ready") }) @@ -24,10 +25,10 @@ export interface Operations { "readiness": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReadinessResponse } "getVerifierKeys": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: Schema_Jwks } "readPresentation": { input: CallOptions & ({ body: Schema_ReadRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ReadResponse } - "fetchRequestObject": { input: CallOptions & { path: { "request_id": (string) } } & { accept?: "application/oauth-authz-req+jwt" | "*/*" }; required: true; output: WireText<"application/oauth-authz-req+jwt"> } - "receiveWalletResponse": { input: CallOptions & { path: { "request_id": (string) } } & ({ body: string }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_Empty } + "fetchRequestObject": { input: CallOptions & { path: { "requestId": (string) } } & { accept?: "application/oauth-authz-req+jwt" | "*/*" }; required: true; output: WireText<"application/oauth-authz-req+jwt"> } + "receiveWalletResponse": { input: CallOptions & { path: { "requestId": (string) } } & ({ body: string }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_Empty } "createPresentationSession": { input: CallOptions & ({ body: Schema_CreateSessionRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_CreateSessionResponse } - "readSessionStatus": { input: CallOptions & { path: { "reference": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_SessionStatus } + "readSessionStatus": { input: CallOptions & { path: { "sessionReference": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_SessionStatus } } const rules: Record = Object.fromEntries([ @@ -38,8 +39,9 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/HealthResponse", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"status\":{\"const\":\"ok\"}},\"required\":[\"status\"],\"type\":\"object\"}")], ["/components/schemas/Jwks", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"keys\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"alg\":{\"const\":\"EdDSA\"},\"crv\":{\"const\":\"Ed25519\"},\"kid\":{\"type\":\"string\"},\"kty\":{\"const\":\"OKP\"},\"use\":{\"const\":\"sig\"},\"x\":{\"type\":\"string\"}},\"required\":[\"kty\",\"crv\",\"x\",\"kid\",\"use\",\"alg\"],\"type\":\"object\"},\"minItems\":1,\"type\":\"array\"}},\"required\":[\"keys\"],\"type\":\"object\"}")], ["/components/schemas/OAuthError", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"error\":{\"enum\":[\"invalid_request\",\"temporarily_unavailable\"]}},\"required\":[\"error\"],\"type\":\"object\"}")], + ["/components/schemas/OAuthRateLimit", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"error\":{\"const\":\"temporarily_unavailable\"},\"failedCheck\":{\"const\":\"rate-limit\"}},\"required\":[\"error\"],\"type\":\"object\"}")], ["/components/schemas/Principal", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"issuer\":{\"type\":\"string\"},\"subject\":{\"type\":\"string\"}},\"required\":[\"issuer\",\"subject\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"properties\":{\"detail\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"properties\":{\"detail\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\"],\"type\":\"object\"}")], ["/components/schemas/ReadRequest", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"principal\":{\"$ref\":\"/components/schemas/Principal\"},\"reference\":{\"type\":\"string\"}},\"required\":[\"reference\",\"principal\"],\"type\":\"object\"}")], ["/components/schemas/ReadResponse", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"context\":{\"additionalProperties\":false,\"properties\":{\"clientId\":{\"type\":\"string\"},\"createdBy\":{\"$ref\":\"/components/schemas/Principal\"},\"nonce\":{\"type\":\"string\"},\"policyId\":{\"type\":\"string\"},\"receivedAt\":{\"type\":\"string\"},\"responseKeyThumbprint\":{\"type\":\"string\"},\"responseUri\":{\"type\":\"string\"}},\"required\":[\"nonce\",\"clientId\",\"responseUri\",\"responseKeyThumbprint\",\"policyId\",\"createdBy\",\"receivedAt\"],\"type\":\"object\"},\"presentation\":{\"additionalProperties\":{\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"type\":\"object\"}},\"required\":[\"presentation\",\"context\"],\"type\":\"object\"}")], ["/components/schemas/ReadinessResponse", JSON.parse("{\"additionalProperties\":false,\"else\":{\"maxProperties\":1},\"if\":{\"properties\":{\"status\":{\"const\":\"ready\"}}},\"properties\":{\"developmentSettings\":{\"items\":{\"additionalProperties\":false,\"properties\":{\"code\":{\"type\":\"string\"},\"pointer\":{\"type\":\"string\"}},\"required\":[\"code\"],\"type\":\"object\"},\"type\":\"array\"},\"posture\":{\"enum\":[\"development\",\"production\"]},\"status\":{\"enum\":[\"ready\",\"not_ready\"]}},\"required\":[\"status\"],\"then\":{\"required\":[\"posture\",\"developmentSettings\"]},\"type\":\"object\"}")], @@ -67,17 +69,17 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1presentations~1read/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"category\":{\"enum\":[\"access_denied\",\"invalid_request\",\"invalid_client\",\"vp_formats_not_supported\",\"wallet_unavailable\",\"other\"]}},\"required\":[\"category\"],\"type\":\"object\"}]}")], ["/paths/~1v1~1presentations~1read/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1presentations~1read/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1requests~1{request_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1requests~1{request_id}/get/responses/408/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1requests~1{request_id}/get/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1requests~1{request_id}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1requests~1{request_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1responses~1{request_id}/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Empty\"}")], - ["/paths/~1v1~1responses~1{request_id}/post/responses/400/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OAuthError\"}")], - ["/paths/~1v1~1responses~1{request_id}/post/responses/408/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1responses~1{request_id}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1responses~1{request_id}/post/responses/429/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OAuthError\"}")], - ["/paths/~1v1~1responses~1{request_id}/post/responses/503/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OAuthError\"}")], + ["/paths/~1v1~1requests~1{requestId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1requests~1{requestId}/get/responses/408/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1requests~1{requestId}/get/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1requests~1{requestId}/get/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1requests~1{requestId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1responses~1{requestId}/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Empty\"}")], + ["/paths/~1v1~1responses~1{requestId}/post/responses/400/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OAuthError\"}")], + ["/paths/~1v1~1responses~1{requestId}/post/responses/408/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1responses~1{requestId}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1responses~1{requestId}/post/responses/429/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OAuthRateLimit\"}")], + ["/paths/~1v1~1responses~1{requestId}/post/responses/503/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/OAuthError\"}")], ["/paths/~1v1~1sessions/post/responses/201/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/CreateSessionResponse\"}")], ["/paths/~1v1~1sessions/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1sessions/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], @@ -89,12 +91,12 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1sessions/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1sessions/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1sessions/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1sessions~1{reference}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/SessionStatus\"}")], - ["/paths/~1v1~1sessions~1{reference}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1sessions~1{reference}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1sessions~1{reference}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1sessions~1{reference}/get/responses/408/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1sessions~1{reference}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1sessions~1{sessionReference}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/SessionStatus\"}")], + ["/paths/~1v1~1sessions~1{sessionReference}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1sessions~1{sessionReference}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1sessions~1{sessionReference}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1sessions~1{sessionReference}/get/responses/408/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1sessions~1{sessionReference}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ]) const routes: Record = Object.create(null) type Definition = Omit & { problems?: Record; oauthErrors?: Record; responses: Record> } @@ -104,17 +106,17 @@ const definitions: Record = Object.fromEntries([ ["readiness", JSON.parse("{\"method\":\"GET\",\"path\":\"/ready\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1ready/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":false,\"problems\":{\"408\":\"/paths/~1ready/get/responses/408/content/application~1problem+json/schema\"}}")], ["getVerifierKeys", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/jwks\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1jwks/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":false,\"problems\":{\"404\":\"/paths/~1v1~1jwks/get/responses/404/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1jwks/get/responses/408/content/application~1problem+json/schema\"}}")], ["readPresentation", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/presentations/read\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1presentations~1read/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1presentations~1read/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1presentations~1read/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1presentations~1read/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1presentations~1read/post/responses/404/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1presentations~1read/post/responses/408/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1presentations~1read/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1presentations~1read/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1presentations~1read/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1presentations~1read/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1presentations~1read/post/responses/429/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1presentations~1read/post/responses/503/content/application~1problem+json/schema\"}}")], - ["fetchRequestObject", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/requests/{request_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/oauth-authz-req+jwt\",\"mode\":\"text\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":false,\"problems\":{\"404\":\"/paths/~1v1~1requests~1{request_id}/get/responses/404/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1requests~1{request_id}/get/responses/408/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1requests~1{request_id}/get/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1requests~1{request_id}/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1requests~1{request_id}/get/responses/503/content/application~1problem+json/schema\"}}")], - ["receiveWalletResponse", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/responses/{request_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1responses~1{request_id}/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/x-www-form-urlencoded\"],\"requestMediaType\":\"application/x-www-form-urlencoded\",\"oauthErrors\":{\"400\":\"/paths/~1v1~1responses~1{request_id}/post/responses/400/content/application~1json/schema\",\"429\":\"/paths/~1v1~1responses~1{request_id}/post/responses/429/content/application~1json/schema\",\"503\":\"/paths/~1v1~1responses~1{request_id}/post/responses/503/content/application~1json/schema\"},\"problems\":{\"408\":\"/paths/~1v1~1responses~1{request_id}/post/responses/408/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1responses~1{request_id}/post/responses/413/content/application~1problem+json/schema\"}}")], + ["fetchRequestObject", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/requests/{requestId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/oauth-authz-req+jwt\",\"mode\":\"text\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":false,\"problems\":{\"404\":\"/paths/~1v1~1requests~1{requestId}/get/responses/404/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1requests~1{requestId}/get/responses/408/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1requests~1{requestId}/get/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1requests~1{requestId}/get/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1requests~1{requestId}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["receiveWalletResponse", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/responses/{requestId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1responses~1{requestId}/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/x-www-form-urlencoded\"],\"requestMediaType\":\"application/x-www-form-urlencoded\",\"oauthErrors\":{\"400\":\"/paths/~1v1~1responses~1{requestId}/post/responses/400/content/application~1json/schema\",\"429\":\"/paths/~1v1~1responses~1{requestId}/post/responses/429/content/application~1json/schema\",\"503\":\"/paths/~1v1~1responses~1{requestId}/post/responses/503/content/application~1json/schema\"},\"problems\":{\"408\":\"/paths/~1v1~1responses~1{requestId}/post/responses/408/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1responses~1{requestId}/post/responses/413/content/application~1problem+json/schema\"}}")], ["createPresentationSession", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/sessions\",\"responses\":{\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1sessions/post/responses/201/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1sessions/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1sessions/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1sessions/post/responses/403/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1sessions/post/responses/408/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1sessions/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1sessions/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1sessions/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1sessions/post/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1sessions/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1sessions/post/responses/503/content/application~1problem+json/schema\"}}")], - ["readSessionStatus", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/sessions/{reference}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1sessions~1{reference}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1v1~1sessions~1{reference}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1sessions~1{reference}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1sessions~1{reference}/get/responses/404/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1sessions~1{reference}/get/responses/408/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1sessions~1{reference}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["readSessionStatus", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/sessions/{sessionReference}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1sessions~1{sessionReference}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1v1~1sessions~1{sessionReference}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1sessions~1{sessionReference}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1sessions~1{sessionReference}/get/responses/404/content/application~1problem+json/schema\",\"408\":\"/paths/~1v1~1sessions~1{sessionReference}/get/responses/408/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1sessions~1{sessionReference}/get/responses/503/content/application~1problem+json/schema\"}}")], ]) for (const [id, definition] of Object.entries(definitions)) { const responses: Operation["responses"] = {} for (const [status, variants] of Object.entries(definition.responses)) { responses[Number(status)] = variants.map(variant => ({ ...variant, validate: variant.rule === undefined ? undefined : validator(rules, rules[variant.rule]) })) } - routes[id] = { ...definition, product: "evidence-oid4vp", responses, problemValidators: Object.fromEntries(Object.entries(definition.problems ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule])])), oauthErrorValidators: Object.fromEntries(Object.entries(definition.oauthErrors ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule])])) } + routes[id] = { ...definition, product: "evidence-oid4vp", responses, problemValidators: Object.fromEntries(Object.entries(definition.problems ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule])])), oauthErrorValidators: Object.fromEntries(Object.entries(definition.oauthErrors ?? {}).map(([status, rule]) => [status, validator(rules, rules[rule], true)])) } } export class Client { diff --git a/clients/typescript/generated/evidence.ts b/clients/typescript/generated/evidence.ts index 1d874ba82c..59d8c792c0 100644 --- a/clients/typescript/generated/evidence.ts +++ b/clients/typescript/generated/evidence.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 a047f6a3dd8e23dd1938af1bc9c8dea6881753c565f18738b8944b52f214217b +// Source SHA-256 e3c836a65b95052a3f6e25ef207018f6870eaeaaaa626a3253ba7eb7c730f5f3 import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -32,7 +32,7 @@ export type Schema_JwksDocument = ({ "keys": (Array) }) export type Schema_JwtVcIssuerMetadata = ({ "issuer": (string); "jwks_uri": (string) }) export type Schema_P256PublicJwk = ({ "alg": ("ES256") & (string); "crv": ("P-256") & (string); "kid": (string); "kty": ("EC") & (string); "x": (string); "x5c"?: (Array<(string)>); "y": (string) }) export type Schema_PresentedCredential = ({ "issuedAt": (string); "issuer": (string); "subjectLink": ("possession" | "attribute-match") & (string); "trustEntry": (string); "type": (string) }) -export type Schema_Problem = (({ "code"?: ("evidence.invalid-request") & (string); "detail"?: ("the Evidence request is invalid") & (string); "status"?: (400) & (number); "title"?: ("Evidence request is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request") & (string) }) | ({ "code"?: ("request.nonce-invalid") & (string); "detail"?: ("requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request") & (string); "status"?: (400) & (number); "title"?: ("Request nonce is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid") & (string) }) | ({ "code"?: ("request.selector-invalid") & (string); "detail"?: ("selector does not match an available request profile") & (string); "status"?: (400) & (number); "title"?: ("Selector is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/request/selector-invalid") & (string) }) | ({ "code"?: ("auth.invalid-credential") & (string); "detail"?: ("bearer access token validation failed") & (string); "status"?: (401) & (number); "title"?: ("Bearer access token is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential") & (string) }) | ({ "code"?: ("platform.task-grant.development-assertion") & (string); "detail"?: ("task grant was issued in the development posture") & (string); "status"?: (401) & (number); "title"?: ("Development task assertion refused") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion") & (string) }) | ({ "code"?: ("evidence.denied") & (string); "detail"?: ("the Evidence request is not permitted") & (string); "status"?: (403) & (number); "title"?: ("Evidence request is not permitted") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/denied") & (string) }) | ({ "code"?: ("format.unsupported") & (string); "detail"?: ("the requested format is not supported") & (string); "status"?: (406) & (number); "title"?: ("Requested format is not supported") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/format/unsupported") & (string) }) | ({ "code"?: ("evidence.unavailable") & (string); "detail"?: ("evidence could not be produced for this request") & (string); "status"?: (422) & (number); "title"?: ("Evidence could not be produced") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/unavailable") & (string) }) | ({ "code"?: ("evidence.rate-limited") & (string); "detail"?: ("the Evidence request rate is exhausted") & (string); "status"?: (429) & (number); "title"?: ("Evidence request rate is exhausted") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited") & (string) }) | ({ "code"?: ("source.unavailable") & (string); "detail"?: ("the authoritative source is unavailable") & (string); "status"?: (503) & (number); "title"?: ("Authoritative source is unavailable") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/source/unavailable") & (string) }) | ({ "code"?: ("service.unavailable") & (string); "detail"?: ("the request could not be served") & (string); "status"?: (503) & (number); "title"?: ("Service is unavailable") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/service/unavailable") & (string) }) | ({ "code"?: ("resource.not-found") & (string); "detail"?: ("the requested resource was not found") & (string); "status"?: (404) & (number); "title"?: ("Requested resource was not found") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/resource/not-found") & (string) })) & ({ "code": ("evidence.invalid-request" | "request.nonce-invalid" | "request.selector-invalid" | "auth.invalid-credential" | "platform.task-grant.development-assertion" | "evidence.denied" | "format.unsupported" | "evidence.unavailable" | "evidence.rate-limited" | "source.unavailable" | "service.unavailable" | "resource.not-found") & (string); "detail": ("the Evidence request is invalid" | "requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request" | "selector does not match an available request profile" | "bearer access token validation failed" | "task grant was issued in the development posture" | "the Evidence request is not permitted" | "the requested format is not supported" | "evidence could not be produced for this request" | "the Evidence request rate is exhausted" | "the authoritative source is unavailable" | "the request could not be served" | "the requested resource was not found") & (string); "status": (400 | 401 | 403 | 404 | 406 | 422 | 429 | 503) & (number); "title": ("Evidence request is invalid" | "Request nonce is invalid" | "Selector is invalid" | "Bearer access token is invalid" | "Development task assertion refused" | "Evidence request is not permitted" | "Requested format is not supported" | "Evidence could not be produced" | "Evidence request rate is exhausted" | "Authoritative source is unavailable" | "Service is unavailable" | "Requested resource was not found") & (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request" | "https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid" | "https://id.registrystack.org/problems/registry-evidence/request/selector-invalid" | "https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential" | "https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion" | "https://id.registrystack.org/problems/registry-evidence/evidence/denied" | "https://id.registrystack.org/problems/registry-evidence/format/unsupported" | "https://id.registrystack.org/problems/registry-evidence/evidence/unavailable" | "https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited" | "https://id.registrystack.org/problems/registry-evidence/source/unavailable" | "https://id.registrystack.org/problems/registry-evidence/service/unavailable" | "https://id.registrystack.org/problems/registry-evidence/resource/not-found") & (string) }) +export type Schema_Problem = (({ "code"?: ("evidence.invalid-request") & (string); "detail"?: ("the Evidence request is invalid") & (string); "failedCheck"?: never; "status"?: (400) & (number); "title"?: ("Evidence request is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request") & (string) }) | ({ "code"?: ("request.nonce-invalid") & (string); "detail"?: ("requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request") & (string); "failedCheck"?: never; "status"?: (400) & (number); "title"?: ("Request nonce is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid") & (string) }) | ({ "code"?: ("request.selector-invalid") & (string); "detail"?: ("selector does not match an available request profile") & (string); "failedCheck"?: never; "status"?: (400) & (number); "title"?: ("Selector is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/request/selector-invalid") & (string) }) | ({ "code"?: ("auth.invalid-credential") & (string); "detail"?: ("bearer access token validation failed") & (string); "failedCheck"?: (string); "status"?: (401) & (number); "title"?: ("Bearer access token is invalid") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential") & (string) }) | ({ "code"?: ("platform.task-grant.development-assertion") & (string); "detail"?: ("task grant was issued in the development posture") & (string); "failedCheck"?: (string); "status"?: (401) & (number); "title"?: ("Development task assertion refused") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion") & (string) }) | ({ "code"?: ("evidence.denied") & (string); "detail"?: ("the Evidence request is not permitted") & (string); "failedCheck"?: (string); "status"?: (403) & (number); "title"?: ("Evidence request is not permitted") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/denied") & (string) }) | ({ "code"?: ("format.unsupported") & (string); "detail"?: ("the requested format is not supported") & (string); "failedCheck"?: never; "status"?: (406) & (number); "title"?: ("Requested format is not supported") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/format/unsupported") & (string) }) | ({ "code"?: ("evidence.unavailable") & (string); "detail"?: ("evidence could not be produced for this request") & (string); "failedCheck"?: never; "status"?: (422) & (number); "title"?: ("Evidence could not be produced") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/unavailable") & (string) }) | ({ "code"?: ("evidence.rate-limited") & (string); "detail"?: ("the Evidence request rate is exhausted") & (string); "failedCheck"?: (string); "status"?: (429) & (number); "title"?: ("Evidence request rate is exhausted") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited") & (string) }) | ({ "code"?: ("source.unavailable") & (string); "detail"?: ("the authoritative source is unavailable") & (string); "failedCheck"?: never; "status"?: (503) & (number); "title"?: ("Authoritative source is unavailable") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/source/unavailable") & (string) }) | ({ "code"?: ("service.unavailable") & (string); "detail"?: ("the request could not be served") & (string); "failedCheck"?: ("key-source-unavailable") & (string); "status"?: (503) & (number); "title"?: ("Service is unavailable") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/service/unavailable") & (string) }) | ({ "code"?: ("resource.not-found") & (string); "detail"?: ("the requested resource was not found") & (string); "failedCheck"?: never; "status"?: (404) & (number); "title"?: ("Requested resource was not found") & (string); "type"?: ("https://id.registrystack.org/problems/registry-evidence/resource/not-found") & (string) })) & ({ "code": ("evidence.invalid-request" | "request.nonce-invalid" | "request.selector-invalid" | "auth.invalid-credential" | "platform.task-grant.development-assertion" | "evidence.denied" | "format.unsupported" | "evidence.unavailable" | "evidence.rate-limited" | "source.unavailable" | "service.unavailable" | "resource.not-found") & (string); "detail": ("the Evidence request is invalid" | "requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request" | "selector does not match an available request profile" | "bearer access token validation failed" | "task grant was issued in the development posture" | "the Evidence request is not permitted" | "the requested format is not supported" | "evidence could not be produced for this request" | "the Evidence request rate is exhausted" | "the authoritative source is unavailable" | "the request could not be served" | "the requested resource was not found") & (string); "failedCheck"?: (string); "status": (400 | 401 | 403 | 404 | 406 | 422 | 429 | 503) & (number); "title": ("Evidence request is invalid" | "Request nonce is invalid" | "Selector is invalid" | "Bearer access token is invalid" | "Development task assertion refused" | "Evidence request is not permitted" | "Requested format is not supported" | "Evidence could not be produced" | "Evidence request rate is exhausted" | "Authoritative source is unavailable" | "Service is unavailable" | "Requested resource was not found") & (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request" | "https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid" | "https://id.registrystack.org/problems/registry-evidence/request/selector-invalid" | "https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential" | "https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion" | "https://id.registrystack.org/problems/registry-evidence/evidence/denied" | "https://id.registrystack.org/problems/registry-evidence/format/unsupported" | "https://id.registrystack.org/problems/registry-evidence/evidence/unavailable" | "https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited" | "https://id.registrystack.org/problems/registry-evidence/source/unavailable" | "https://id.registrystack.org/problems/registry-evidence/service/unavailable" | "https://id.registrystack.org/problems/registry-evidence/resource/not-found") & (string) }) export type Schema_ProtectedResourceMetadata = ({ "authorization_servers": (Array<(string)>); "bearer_methods_supported": (Array<"header">); "jwks_uri": (string); "resource": (string) }) export type Schema_PublicCheckAnswer = ({ "fields": (Record); "observedAt": (string); "schema": ("registry.evidence.public-check/v1alpha1") & (string); "status": ("valid" | "suspended" | "revoked" | "expired") & (string) }) export type Schema_PublicCheckRequest = ({ "checkCode": (string); "documentNumber": (string) }) @@ -96,7 +96,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/JwtVcIssuerMetadata", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"issuer\":{\"maxLength\":512,\"type\":\"string\"},\"jwks_uri\":{\"maxLength\":1024,\"type\":\"string\"}},\"required\":[\"issuer\",\"jwks_uri\"],\"type\":\"object\"}")], ["/components/schemas/P256PublicJwk", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"alg\":{\"enum\":[\"ES256\"],\"type\":\"string\"},\"crv\":{\"enum\":[\"P-256\"],\"type\":\"string\"},\"kid\":{\"pattern\":\"^[A-Za-z0-9_-]{43}$\",\"type\":\"string\"},\"kty\":{\"enum\":[\"EC\"],\"type\":\"string\"},\"x\":{\"pattern\":\"^[A-Za-z0-9_-]{43}$\",\"type\":\"string\"},\"x5c\":{\"items\":{\"maxLength\":21848,\"minLength\":1,\"type\":\"string\"},\"maxItems\":3,\"minItems\":1,\"type\":\"array\"},\"y\":{\"pattern\":\"^[A-Za-z0-9_-]{43}$\",\"type\":\"string\"}},\"required\":[\"kty\",\"kid\",\"alg\",\"crv\",\"x\",\"y\"],\"type\":\"object\"}")], ["/components/schemas/PresentedCredential", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"issuedAt\":{\"type\":\"string\"},\"issuer\":{\"maxLength\":512,\"type\":\"string\"},\"subjectLink\":{\"enum\":[\"possession\",\"attribute-match\"],\"type\":\"string\"},\"trustEntry\":{\"pattern\":\"^[a-z][a-z0-9_-]{0,63}$\",\"type\":\"string\"},\"type\":{\"maxLength\":512,\"minLength\":1,\"type\":\"string\"}},\"required\":[\"trustEntry\",\"issuer\",\"type\",\"issuedAt\",\"subjectLink\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"oneOf\":[{\"properties\":{\"code\":{\"enum\":[\"evidence.invalid-request\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request is invalid\"],\"type\":\"string\"},\"status\":{\"enum\":[400],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"request.nonce-invalid\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request\"],\"type\":\"string\"},\"status\":{\"enum\":[400],\"type\":\"integer\"},\"title\":{\"enum\":[\"Request nonce is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"request.selector-invalid\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"selector does not match an available request profile\"],\"type\":\"string\"},\"status\":{\"enum\":[400],\"type\":\"integer\"},\"title\":{\"enum\":[\"Selector is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/request/selector-invalid\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"auth.invalid-credential\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"bearer access token validation failed\"],\"type\":\"string\"},\"status\":{\"enum\":[401],\"type\":\"integer\"},\"title\":{\"enum\":[\"Bearer access token is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"platform.task-grant.development-assertion\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"task grant was issued in the development posture\"],\"type\":\"string\"},\"status\":{\"enum\":[401],\"type\":\"integer\"},\"title\":{\"enum\":[\"Development task assertion refused\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"evidence.denied\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request is not permitted\"],\"type\":\"string\"},\"status\":{\"enum\":[403],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request is not permitted\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/denied\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"format.unsupported\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the requested format is not supported\"],\"type\":\"string\"},\"status\":{\"enum\":[406],\"type\":\"integer\"},\"title\":{\"enum\":[\"Requested format is not supported\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/format/unsupported\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"evidence.unavailable\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"evidence could not be produced for this request\"],\"type\":\"string\"},\"status\":{\"enum\":[422],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence could not be produced\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/unavailable\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"evidence.rate-limited\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request rate is exhausted\"],\"type\":\"string\"},\"status\":{\"enum\":[429],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request rate is exhausted\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"source.unavailable\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the authoritative source is unavailable\"],\"type\":\"string\"},\"status\":{\"enum\":[503],\"type\":\"integer\"},\"title\":{\"enum\":[\"Authoritative source is unavailable\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/source/unavailable\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the request could not be served\"],\"type\":\"string\"},\"status\":{\"enum\":[503],\"type\":\"integer\"},\"title\":{\"enum\":[\"Service is unavailable\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/service/unavailable\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"resource.not-found\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the requested resource was not found\"],\"type\":\"string\"},\"status\":{\"enum\":[404],\"type\":\"integer\"},\"title\":{\"enum\":[\"Requested resource was not found\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/resource/not-found\"],\"type\":\"string\"}}}],\"properties\":{\"code\":{\"enum\":[\"evidence.invalid-request\",\"request.nonce-invalid\",\"request.selector-invalid\",\"auth.invalid-credential\",\"platform.task-grant.development-assertion\",\"evidence.denied\",\"format.unsupported\",\"evidence.unavailable\",\"evidence.rate-limited\",\"source.unavailable\",\"service.unavailable\",\"resource.not-found\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request is invalid\",\"requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request\",\"selector does not match an available request profile\",\"bearer access token validation failed\",\"task grant was issued in the development posture\",\"the Evidence request is not permitted\",\"the requested format is not supported\",\"evidence could not be produced for this request\",\"the Evidence request rate is exhausted\",\"the authoritative source is unavailable\",\"the request could not be served\",\"the requested resource was not found\"],\"type\":\"string\"},\"status\":{\"enum\":[400,401,403,404,406,422,429,503],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request is invalid\",\"Request nonce is invalid\",\"Selector is invalid\",\"Bearer access token is invalid\",\"Development task assertion refused\",\"Evidence request is not permitted\",\"Requested format is not supported\",\"Evidence could not be produced\",\"Evidence request rate is exhausted\",\"Authoritative source is unavailable\",\"Service is unavailable\",\"Requested resource was not found\"],\"type\":\"string\"},\"traceId\":{\"pattern\":\"^(?!0{32}$)[0-9a-f]{32}$\",\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request\",\"https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid\",\"https://id.registrystack.org/problems/registry-evidence/request/selector-invalid\",\"https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential\",\"https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion\",\"https://id.registrystack.org/problems/registry-evidence/evidence/denied\",\"https://id.registrystack.org/problems/registry-evidence/format/unsupported\",\"https://id.registrystack.org/problems/registry-evidence/evidence/unavailable\",\"https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited\",\"https://id.registrystack.org/problems/registry-evidence/source/unavailable\",\"https://id.registrystack.org/problems/registry-evidence/service/unavailable\",\"https://id.registrystack.org/problems/registry-evidence/resource/not-found\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"oneOf\":[{\"properties\":{\"code\":{\"enum\":[\"evidence.invalid-request\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request is invalid\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[400],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"request.nonce-invalid\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[400],\"type\":\"integer\"},\"title\":{\"enum\":[\"Request nonce is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"request.selector-invalid\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"selector does not match an available request profile\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[400],\"type\":\"integer\"},\"title\":{\"enum\":[\"Selector is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/request/selector-invalid\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"auth.invalid-credential\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"bearer access token validation failed\"],\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"enum\":[401],\"type\":\"integer\"},\"title\":{\"enum\":[\"Bearer access token is invalid\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"platform.task-grant.development-assertion\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"task grant was issued in the development posture\"],\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"enum\":[401],\"type\":\"integer\"},\"title\":{\"enum\":[\"Development task assertion refused\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"evidence.denied\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request is not permitted\"],\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"enum\":[403],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request is not permitted\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/denied\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"format.unsupported\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the requested format is not supported\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[406],\"type\":\"integer\"},\"title\":{\"enum\":[\"Requested format is not supported\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/format/unsupported\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"evidence.unavailable\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"evidence could not be produced for this request\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[422],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence could not be produced\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/unavailable\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"evidence.rate-limited\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request rate is exhausted\"],\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"enum\":[429],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request rate is exhausted\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"source.unavailable\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the authoritative source is unavailable\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[503],\"type\":\"integer\"},\"title\":{\"enum\":[\"Authoritative source is unavailable\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/source/unavailable\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the request could not be served\"],\"type\":\"string\"},\"failedCheck\":{\"enum\":[\"key-source-unavailable\"],\"type\":\"string\"},\"status\":{\"enum\":[503],\"type\":\"integer\"},\"title\":{\"enum\":[\"Service is unavailable\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/service/unavailable\"],\"type\":\"string\"}}},{\"properties\":{\"code\":{\"enum\":[\"resource.not-found\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the requested resource was not found\"],\"type\":\"string\"},\"failedCheck\":false,\"status\":{\"enum\":[404],\"type\":\"integer\"},\"title\":{\"enum\":[\"Requested resource was not found\"],\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/resource/not-found\"],\"type\":\"string\"}}}],\"properties\":{\"code\":{\"enum\":[\"evidence.invalid-request\",\"request.nonce-invalid\",\"request.selector-invalid\",\"auth.invalid-credential\",\"platform.task-grant.development-assertion\",\"evidence.denied\",\"format.unsupported\",\"evidence.unavailable\",\"evidence.rate-limited\",\"source.unavailable\",\"service.unavailable\",\"resource.not-found\"],\"type\":\"string\"},\"detail\":{\"enum\":[\"the Evidence request is invalid\",\"requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request\",\"selector does not match an available request profile\",\"bearer access token validation failed\",\"task grant was issued in the development posture\",\"the Evidence request is not permitted\",\"the requested format is not supported\",\"evidence could not be produced for this request\",\"the Evidence request rate is exhausted\",\"the authoritative source is unavailable\",\"the request could not be served\",\"the requested resource was not found\"],\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"enum\":[400,401,403,404,406,422,429,503],\"type\":\"integer\"},\"title\":{\"enum\":[\"Evidence request is invalid\",\"Request nonce is invalid\",\"Selector is invalid\",\"Bearer access token is invalid\",\"Development task assertion refused\",\"Evidence request is not permitted\",\"Requested format is not supported\",\"Evidence could not be produced\",\"Evidence request rate is exhausted\",\"Authoritative source is unavailable\",\"Service is unavailable\",\"Requested resource was not found\"],\"type\":\"string\"},\"traceId\":{\"pattern\":\"^(?!0{32}$)[0-9a-f]{32}$\",\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request\",\"https://id.registrystack.org/problems/registry-evidence/request/nonce-invalid\",\"https://id.registrystack.org/problems/registry-evidence/request/selector-invalid\",\"https://id.registrystack.org/problems/registry-evidence/auth/invalid-credential\",\"https://id.registrystack.org/problems/registry-evidence/platform/task-grant/development-assertion\",\"https://id.registrystack.org/problems/registry-evidence/evidence/denied\",\"https://id.registrystack.org/problems/registry-evidence/format/unsupported\",\"https://id.registrystack.org/problems/registry-evidence/evidence/unavailable\",\"https://id.registrystack.org/problems/registry-evidence/evidence/rate-limited\",\"https://id.registrystack.org/problems/registry-evidence/source/unavailable\",\"https://id.registrystack.org/problems/registry-evidence/service/unavailable\",\"https://id.registrystack.org/problems/registry-evidence/resource/not-found\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ProtectedResourceMetadata", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"authorization_servers\":{\"items\":{\"maxLength\":512,\"type\":\"string\"},\"maxItems\":1,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"bearer_methods_supported\":{\"items\":{\"const\":\"header\"},\"maxItems\":1,\"minItems\":1,\"type\":\"array\",\"uniqueItems\":true},\"jwks_uri\":{\"maxLength\":1024,\"type\":\"string\"},\"resource\":{\"maxLength\":512,\"type\":\"string\"}},\"required\":[\"resource\",\"authorization_servers\",\"jwks_uri\",\"bearer_methods_supported\"],\"type\":\"object\"}")], ["/components/schemas/PublicCheckAnswer", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"fields\":{\"type\":\"object\"},\"observedAt\":{\"pattern\":\"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$\",\"type\":\"string\"},\"schema\":{\"enum\":[\"registry.evidence.public-check/v1alpha1\"],\"type\":\"string\"},\"status\":{\"enum\":[\"valid\",\"suspended\",\"revoked\",\"expired\"],\"type\":\"string\"}},\"required\":[\"schema\",\"status\",\"fields\",\"observedAt\"],\"type\":\"object\"}")], ["/components/schemas/PublicCheckRequest", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"checkCode\":{\"pattern\":\"^[A-Za-z2-7]{24}$\",\"type\":\"string\"},\"documentNumber\":{\"minLength\":1,\"type\":\"string\"}},\"required\":[\"documentNumber\",\"checkCode\"],\"type\":\"object\"}")], diff --git a/clients/typescript/generated/messaging.ts b/clients/typescript/generated/messaging.ts index 4f8c8dc735..9321523282 100644 --- a/clients/typescript/generated/messaging.ts +++ b/clients/typescript/generated/messaging.ts @@ -1,9 +1,9 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 25ae1bbe330a1d77df32ec07a9fd12eb272bca5fbb19379e7cce19cb8c773810 +// Source SHA-256 d10408f03ccad14c266036ab45c0cf1c5b45d21269c04a2e459e7d6b4f1b92e0 // Unconstrained JSON /components/schemas/SubmitMessageRequest/properties/data // Unconstrained JSON /components/schemas/TemplatePreviewRequest/properties/data -// Unconstrained JSON /paths/~1v1~1provider-callbacks~1{provider_id}/post/requestBody/content/application~1json/schema -// Unconstrained JSON /paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/requestBody/content/application~1json/schema +// Unconstrained JSON /paths/~1v1~1provider-callbacks~1{providerId}/post/requestBody/content/application~1json/schema +// Unconstrained JSON /paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/requestBody/content/application~1json/schema import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -15,7 +15,7 @@ export type Schema_MessageReceipt = ({ "id": (string); "links": Schema_MessageLi export type Schema_MessageReport = ("none" | "sent" | "delivered" | "undelivered" | "unavailable") & (string) export type Schema_MessageStatus = ("queued" | "sending" | "submitted" | "delivered" | "failed" | "expired" | "cancelled" | "unknown") & (string) export type Schema_MessageView = ({ "acceptedAt": (string); "attempts": (Array); "channel": ("email" | "sms") & (string); "correlationId"?: (string); "dispatch": Schema_MessageDispatch; "expiresAt": (string); "id": (string); "links": Schema_MessageLinks; "notBefore"?: (string); "report": Schema_MessageReport; "reportedAt"?: (string); "senderProfile": (string); "status": Schema_MessageStatus; "template"?: Schema_TemplateReference; "to": Schema_MaskedRecipient; "updatedAt": (string) }) -export type Schema_Problem = ({ "code": ("authentication.refused" | "callback.unreadable" | "callback.unverified" | "content.invalid" | "content.too-large" | "content.too-many-segments" | "idempotency.expired" | "idempotency.key-reused" | "message.dispatch-started" | "message.not-visible" | "message.terminal" | "operation.not-authorized" | "profile.not-authorized" | "quota.exceeded" | "rate-limit.exceeded" | "receipt.unresolved" | "request.body-too-large" | "request.invalid" | "request.method-not-allowed" | "request.not-found" | "request.unprocessable" | "request.unsupported-media-type" | "service.unavailable" | "template.data-invalid" | "template.locale-unavailable" | "template.not-found" | "template.render-refused") & (string); "detail": (string); "status": (number); "title": (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-messaging/authentication/refused" | "https://id.registrystack.org/problems/registry-messaging/callback/unreadable" | "https://id.registrystack.org/problems/registry-messaging/callback/unverified" | "https://id.registrystack.org/problems/registry-messaging/content/invalid" | "https://id.registrystack.org/problems/registry-messaging/content/too-large" | "https://id.registrystack.org/problems/registry-messaging/content/too-many-segments" | "https://id.registrystack.org/problems/registry-messaging/idempotency/expired" | "https://id.registrystack.org/problems/registry-messaging/idempotency/key-reused" | "https://id.registrystack.org/problems/registry-messaging/message/dispatch-started" | "https://id.registrystack.org/problems/registry-messaging/message/not-visible" | "https://id.registrystack.org/problems/registry-messaging/message/terminal" | "https://id.registrystack.org/problems/registry-messaging/operation/not-authorized" | "https://id.registrystack.org/problems/registry-messaging/profile/not-authorized" | "https://id.registrystack.org/problems/registry-messaging/quota/exceeded" | "https://id.registrystack.org/problems/registry-messaging/rate-limit/exceeded" | "https://id.registrystack.org/problems/registry-messaging/receipt/unresolved" | "https://id.registrystack.org/problems/registry-messaging/request/body-too-large" | "https://id.registrystack.org/problems/registry-messaging/request/invalid" | "https://id.registrystack.org/problems/registry-messaging/request/method-not-allowed" | "https://id.registrystack.org/problems/registry-messaging/request/not-found" | "https://id.registrystack.org/problems/registry-messaging/request/unprocessable" | "https://id.registrystack.org/problems/registry-messaging/request/unsupported-media-type" | "https://id.registrystack.org/problems/registry-messaging/service/unavailable" | "https://id.registrystack.org/problems/registry-messaging/template/data-invalid" | "https://id.registrystack.org/problems/registry-messaging/template/locale-unavailable" | "https://id.registrystack.org/problems/registry-messaging/template/not-found" | "https://id.registrystack.org/problems/registry-messaging/template/render-refused") & (string) }) +export type Schema_Problem = ({ "code": ("authentication.refused" | "callback.unreadable" | "callback.unverified" | "content.invalid" | "content.too-large" | "content.too-many-segments" | "idempotency.expired" | "idempotency.key-reused" | "message.dispatch-started" | "message.not-visible" | "message.terminal" | "operation.not-authorized" | "profile.not-authorized" | "quota.exceeded" | "rate-limit.exceeded" | "receipt.unresolved" | "request.body-too-large" | "request.invalid" | "request.method-not-allowed" | "request.not-found" | "request.unprocessable" | "request.unsupported-media-type" | "service.unavailable" | "template.data-invalid" | "template.locale-unavailable" | "template.not-found" | "template.render-refused") & (string); "detail": (string); "failedCheck"?: (string); "status": (number); "title": (string); "traceId": (string); "type": ("https://id.registrystack.org/problems/registry-messaging/authentication/refused" | "https://id.registrystack.org/problems/registry-messaging/callback/unreadable" | "https://id.registrystack.org/problems/registry-messaging/callback/unverified" | "https://id.registrystack.org/problems/registry-messaging/content/invalid" | "https://id.registrystack.org/problems/registry-messaging/content/too-large" | "https://id.registrystack.org/problems/registry-messaging/content/too-many-segments" | "https://id.registrystack.org/problems/registry-messaging/idempotency/expired" | "https://id.registrystack.org/problems/registry-messaging/idempotency/key-reused" | "https://id.registrystack.org/problems/registry-messaging/message/dispatch-started" | "https://id.registrystack.org/problems/registry-messaging/message/not-visible" | "https://id.registrystack.org/problems/registry-messaging/message/terminal" | "https://id.registrystack.org/problems/registry-messaging/operation/not-authorized" | "https://id.registrystack.org/problems/registry-messaging/profile/not-authorized" | "https://id.registrystack.org/problems/registry-messaging/quota/exceeded" | "https://id.registrystack.org/problems/registry-messaging/rate-limit/exceeded" | "https://id.registrystack.org/problems/registry-messaging/receipt/unresolved" | "https://id.registrystack.org/problems/registry-messaging/request/body-too-large" | "https://id.registrystack.org/problems/registry-messaging/request/invalid" | "https://id.registrystack.org/problems/registry-messaging/request/method-not-allowed" | "https://id.registrystack.org/problems/registry-messaging/request/not-found" | "https://id.registrystack.org/problems/registry-messaging/request/unprocessable" | "https://id.registrystack.org/problems/registry-messaging/request/unsupported-media-type" | "https://id.registrystack.org/problems/registry-messaging/service/unavailable" | "https://id.registrystack.org/problems/registry-messaging/template/data-invalid" | "https://id.registrystack.org/problems/registry-messaging/template/locale-unavailable" | "https://id.registrystack.org/problems/registry-messaging/template/not-found" | "https://id.registrystack.org/problems/registry-messaging/template/render-refused") & (string) }) export type Schema_ReadyStatus = ({ "developmentSettings": (Array<({ "code": (string); "pointer": (string) })>); "posture": ("development" | "production"); "status": "ready" }) export type Schema_Recipient = (({ "email": (string) }) | ({ "phone": (string) })) export type Schema_SubmitMessageRequest = ({ "content"?: ({ "subject"?: (string); "text": (string) }); "correlationId"?: (string); "data"?: JsonValue; "expiresAt"?: (string); "locale"?: (string); "notBefore"?: (string); "senderProfile": (string); "template"?: Schema_TemplateReference; "to": Schema_Recipient }) @@ -28,11 +28,11 @@ export interface Operations { "getReady": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: Schema_ReadyStatus } "submitMessage": { input: CallOptions & ({ body: Schema_SubmitMessageRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_MessageReceipt } "readMessageReceipt": { input: CallOptions & { idempotencyKey: string } & ({ body: Schema_SubmitMessageRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_MessageReceipt } - "getMessage": { input: CallOptions & { path: { "message_id": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_MessageView } - "cancelMessage": { input: CallOptions & { path: { "message_id": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_MessageView } - "receiveProviderCallback": { input: CallOptions & { path: { "provider_id": (string) } } & ({ body: JsonValue; contentType: "application/json" } | { body: string; contentType: "application/x-www-form-urlencoded" }); required: true; output: undefined } - "receiveProviderCallbackWithToken": { input: CallOptions & { path: { "provider_id": (string); "token": (string) } } & ({ body: JsonValue; contentType: "application/json" } | { body: string; contentType: "application/x-www-form-urlencoded" }); required: true; output: undefined } - "previewTemplate": { input: CallOptions & { path: { "template_id": (string); "version": (string) } } & ({ body: Schema_TemplatePreviewRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TemplatePreview } + "getMessage": { input: CallOptions & { path: { "messageId": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_MessageView } + "cancelMessage": { input: CallOptions & { path: { "messageId": (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_MessageView } + "receiveProviderCallback": { input: CallOptions & { path: { "providerId": (string) } } & ({ body: JsonValue; contentType: "application/json" } | { body: string; contentType: "application/x-www-form-urlencoded" }); required: true; output: undefined } + "receiveProviderCallbackWithToken": { input: CallOptions & { path: { "providerId": (string); "token": (string) } } & ({ body: JsonValue; contentType: "application/json" } | { body: string; contentType: "application/x-www-form-urlencoded" }); required: true; output: undefined } + "previewTemplate": { input: CallOptions & { path: { "templateId": (string); "templateVersion": (string) } } & ({ body: Schema_TemplatePreviewRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_TemplatePreview } } const rules: Record = Object.fromEntries([ @@ -44,7 +44,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/MessageReport", JSON.parse("{\"enum\":[\"none\",\"sent\",\"delivered\",\"undelivered\",\"unavailable\"],\"type\":\"string\"}")], ["/components/schemas/MessageStatus", JSON.parse("{\"enum\":[\"queued\",\"sending\",\"submitted\",\"delivered\",\"failed\",\"expired\",\"cancelled\",\"unknown\"],\"type\":\"string\"}")], ["/components/schemas/MessageView", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"acceptedAt\":{\"type\":\"string\"},\"attempts\":{\"items\":{\"$ref\":\"/components/schemas/AttemptSummary\"},\"type\":\"array\"},\"channel\":{\"enum\":[\"email\",\"sms\"],\"type\":\"string\"},\"correlationId\":{\"type\":\"string\"},\"dispatch\":{\"$ref\":\"/components/schemas/MessageDispatch\"},\"expiresAt\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"links\":{\"$ref\":\"/components/schemas/MessageLinks\"},\"notBefore\":{\"type\":\"string\"},\"report\":{\"$ref\":\"/components/schemas/MessageReport\"},\"reportedAt\":{\"type\":\"string\"},\"senderProfile\":{\"type\":\"string\"},\"status\":{\"$ref\":\"/components/schemas/MessageStatus\"},\"template\":{\"$ref\":\"/components/schemas/TemplateReference\"},\"to\":{\"$ref\":\"/components/schemas/MaskedRecipient\"},\"updatedAt\":{\"type\":\"string\"}},\"required\":[\"id\",\"status\",\"dispatch\",\"report\",\"channel\",\"senderProfile\",\"to\",\"acceptedAt\",\"expiresAt\",\"updatedAt\",\"attempts\",\"links\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"authentication.refused\",\"callback.unreadable\",\"callback.unverified\",\"content.invalid\",\"content.too-large\",\"content.too-many-segments\",\"idempotency.expired\",\"idempotency.key-reused\",\"message.dispatch-started\",\"message.not-visible\",\"message.terminal\",\"operation.not-authorized\",\"profile.not-authorized\",\"quota.exceeded\",\"rate-limit.exceeded\",\"receipt.unresolved\",\"request.body-too-large\",\"request.invalid\",\"request.method-not-allowed\",\"request.not-found\",\"request.unprocessable\",\"request.unsupported-media-type\",\"service.unavailable\",\"template.data-invalid\",\"template.locale-unavailable\",\"template.not-found\",\"template.render-refused\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-messaging/authentication/refused\",\"https://id.registrystack.org/problems/registry-messaging/callback/unreadable\",\"https://id.registrystack.org/problems/registry-messaging/callback/unverified\",\"https://id.registrystack.org/problems/registry-messaging/content/invalid\",\"https://id.registrystack.org/problems/registry-messaging/content/too-large\",\"https://id.registrystack.org/problems/registry-messaging/content/too-many-segments\",\"https://id.registrystack.org/problems/registry-messaging/idempotency/expired\",\"https://id.registrystack.org/problems/registry-messaging/idempotency/key-reused\",\"https://id.registrystack.org/problems/registry-messaging/message/dispatch-started\",\"https://id.registrystack.org/problems/registry-messaging/message/not-visible\",\"https://id.registrystack.org/problems/registry-messaging/message/terminal\",\"https://id.registrystack.org/problems/registry-messaging/operation/not-authorized\",\"https://id.registrystack.org/problems/registry-messaging/profile/not-authorized\",\"https://id.registrystack.org/problems/registry-messaging/quota/exceeded\",\"https://id.registrystack.org/problems/registry-messaging/rate-limit/exceeded\",\"https://id.registrystack.org/problems/registry-messaging/receipt/unresolved\",\"https://id.registrystack.org/problems/registry-messaging/request/body-too-large\",\"https://id.registrystack.org/problems/registry-messaging/request/invalid\",\"https://id.registrystack.org/problems/registry-messaging/request/method-not-allowed\",\"https://id.registrystack.org/problems/registry-messaging/request/not-found\",\"https://id.registrystack.org/problems/registry-messaging/request/unprocessable\",\"https://id.registrystack.org/problems/registry-messaging/request/unsupported-media-type\",\"https://id.registrystack.org/problems/registry-messaging/service/unavailable\",\"https://id.registrystack.org/problems/registry-messaging/template/data-invalid\",\"https://id.registrystack.org/problems/registry-messaging/template/locale-unavailable\",\"https://id.registrystack.org/problems/registry-messaging/template/not-found\",\"https://id.registrystack.org/problems/registry-messaging/template/render-refused\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"authentication.refused\",\"callback.unreadable\",\"callback.unverified\",\"content.invalid\",\"content.too-large\",\"content.too-many-segments\",\"idempotency.expired\",\"idempotency.key-reused\",\"message.dispatch-started\",\"message.not-visible\",\"message.terminal\",\"operation.not-authorized\",\"profile.not-authorized\",\"quota.exceeded\",\"rate-limit.exceeded\",\"receipt.unresolved\",\"request.body-too-large\",\"request.invalid\",\"request.method-not-allowed\",\"request.not-found\",\"request.unprocessable\",\"request.unsupported-media-type\",\"service.unavailable\",\"template.data-invalid\",\"template.locale-unavailable\",\"template.not-found\",\"template.render-refused\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"enum\":[\"https://id.registrystack.org/problems/registry-messaging/authentication/refused\",\"https://id.registrystack.org/problems/registry-messaging/callback/unreadable\",\"https://id.registrystack.org/problems/registry-messaging/callback/unverified\",\"https://id.registrystack.org/problems/registry-messaging/content/invalid\",\"https://id.registrystack.org/problems/registry-messaging/content/too-large\",\"https://id.registrystack.org/problems/registry-messaging/content/too-many-segments\",\"https://id.registrystack.org/problems/registry-messaging/idempotency/expired\",\"https://id.registrystack.org/problems/registry-messaging/idempotency/key-reused\",\"https://id.registrystack.org/problems/registry-messaging/message/dispatch-started\",\"https://id.registrystack.org/problems/registry-messaging/message/not-visible\",\"https://id.registrystack.org/problems/registry-messaging/message/terminal\",\"https://id.registrystack.org/problems/registry-messaging/operation/not-authorized\",\"https://id.registrystack.org/problems/registry-messaging/profile/not-authorized\",\"https://id.registrystack.org/problems/registry-messaging/quota/exceeded\",\"https://id.registrystack.org/problems/registry-messaging/rate-limit/exceeded\",\"https://id.registrystack.org/problems/registry-messaging/receipt/unresolved\",\"https://id.registrystack.org/problems/registry-messaging/request/body-too-large\",\"https://id.registrystack.org/problems/registry-messaging/request/invalid\",\"https://id.registrystack.org/problems/registry-messaging/request/method-not-allowed\",\"https://id.registrystack.org/problems/registry-messaging/request/not-found\",\"https://id.registrystack.org/problems/registry-messaging/request/unprocessable\",\"https://id.registrystack.org/problems/registry-messaging/request/unsupported-media-type\",\"https://id.registrystack.org/problems/registry-messaging/service/unavailable\",\"https://id.registrystack.org/problems/registry-messaging/template/data-invalid\",\"https://id.registrystack.org/problems/registry-messaging/template/locale-unavailable\",\"https://id.registrystack.org/problems/registry-messaging/template/not-found\",\"https://id.registrystack.org/problems/registry-messaging/template/render-refused\"],\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ReadyStatus", JSON.parse("{\"properties\":{\"developmentSettings\":{\"items\":{\"properties\":{\"code\":{\"type\":\"string\"},\"pointer\":{\"type\":\"string\"}},\"required\":[\"code\",\"pointer\"],\"type\":\"object\"},\"type\":\"array\"},\"posture\":{\"enum\":[\"development\",\"production\"]},\"status\":{\"const\":\"ready\"}},\"required\":[\"status\",\"posture\",\"developmentSettings\"],\"type\":\"object\"}")], ["/components/schemas/Recipient", JSON.parse("{\"oneOf\":[{\"additionalProperties\":false,\"properties\":{\"email\":{\"maxLength\":254,\"minLength\":3,\"pattern\":\"^[\\\\x21-\\\\x7e]+$\",\"type\":\"string\"}},\"required\":[\"email\"],\"type\":\"object\"},{\"additionalProperties\":false,\"properties\":{\"phone\":{\"pattern\":\"^\\\\+[1-9][0-9]{1,14}$\",\"type\":\"string\"}},\"required\":[\"phone\"],\"type\":\"object\"}]}")], ["/components/schemas/SubmitMessageRequest", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"content\":{\"additionalProperties\":false,\"properties\":{\"subject\":{\"type\":\"string\"},\"text\":{\"type\":\"string\"}},\"required\":[\"text\"],\"type\":\"object\"},\"correlationId\":{\"maxLength\":128,\"minLength\":1,\"pattern\":\"^[^\\\\x00-\\\\x1f\\\\x7f-\\\\x9f]+$\",\"type\":\"string\"},\"data\":true,\"expiresAt\":{\"type\":\"string\"},\"locale\":{\"type\":\"string\"},\"notBefore\":{\"type\":\"string\"},\"senderProfile\":{\"type\":\"string\"},\"template\":{\"$ref\":\"/components/schemas/TemplateReference\"},\"to\":{\"$ref\":\"/components/schemas/Recipient\"}},\"required\":[\"senderProfile\",\"to\"],\"type\":\"object\"}")], @@ -78,43 +78,43 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1messages~1receipt/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], ["/paths/~1v1~1messages~1receipt/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unprocessable\"]}}}]}")], ["/paths/~1v1~1messages~1receipt/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/MessageView\"}")], - ["/paths/~1v1~1messages~1{message_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"profile.not-authorized\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"message.not-visible\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/MessageView\"}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"profile.not-authorized\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"message.not-visible\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"message.dispatch-started\",\"message.terminal\"]}}}]}")], - ["/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unverified\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unreadable\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"rate-limit.exceeded\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unverified\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unreadable\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"rate-limit.exceeded\"]}}}]}")], - ["/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TemplatePreview\"}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\",\"profile.not-authorized\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"template.not-found\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unprocessable\",\"template.data-invalid\",\"template.locale-unavailable\",\"template.render-refused\",\"content.too-large\"]}}}]}")], - ["/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/MessageView\"}")], + ["/paths/~1v1~1messages~1{messageId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"profile.not-authorized\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}/get/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"message.not-visible\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/MessageView\"}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"profile.not-authorized\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"message.not-visible\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"message.dispatch-started\",\"message.terminal\"]}}}]}")], + ["/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unverified\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unreadable\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"rate-limit.exceeded\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unverified\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"callback.unreadable\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"rate-limit.exceeded\"]}}}]}")], + ["/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/TemplatePreview\"}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.invalid\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"authentication.refused\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"operation.not-authorized\",\"profile.not-authorized\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"template.not-found\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.method-not-allowed\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.body-too-large\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unsupported-media-type\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"request.unprocessable\",\"template.data-invalid\",\"template.locale-unavailable\",\"template.render-refused\",\"content.too-large\"]}}}]}")], + ["/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"enum\":[\"service.unavailable\"]}}}]}")], ]) const routes: Record = Object.create(null) type Definition = Omit & { problems?: Record; responses: Record> } @@ -123,11 +123,11 @@ const definitions: Record = Object.fromEntries([ ["getReady", JSON.parse("{\"method\":\"GET\",\"path\":\"/ready\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1ready/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"messaging\":true,\"problems\":{\"405\":\"/paths/~1ready/get/responses/405/content/application~1problem+json/schema\",\"503\":\"/paths/~1ready/get/responses/503/content/application~1problem+json/schema\"}}")], ["submitMessage", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/messages\",\"responses\":{\"202\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1messages/post/responses/202/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"messaging\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1messages/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1messages/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1messages/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1messages/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1messages/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1messages/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1messages/post/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1messages/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1messages/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1messages/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1messages/post/responses/429/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1messages/post/responses/503/content/application~1problem+json/schema\"}}")], ["readMessageReceipt", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/messages/receipt\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1messages~1receipt/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"requiresExistingKey\":true,\"mutating\":false,\"messaging\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1messages~1receipt/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1messages~1receipt/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1messages~1receipt/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1messages~1receipt/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1messages~1receipt/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1messages~1receipt/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1messages~1receipt/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1messages~1receipt/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1messages~1receipt/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getMessage", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/messages/{message_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1messages~1{message_id}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"messaging\":true,\"problems\":{\"401\":\"/paths/~1v1~1messages~1{message_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1messages~1{message_id}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1messages~1{message_id}/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1messages~1{message_id}/get/responses/405/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1messages~1{message_id}/get/responses/503/content/application~1problem+json/schema\"}}")], - ["cancelMessage", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/messages/{message_id}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"messaging\":true,\"problems\":{\"401\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1messages~1{message_id}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], - ["receiveProviderCallback", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/provider-callbacks/{provider_id}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"mutating\":true,\"messaging\":true,\"requestMediaTypes\":[\"application/json\",\"application/x-www-form-urlencoded\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/400/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/429/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1provider-callbacks~1{provider_id}/post/responses/503/content/application~1problem+json/schema\"}}")], - ["receiveProviderCallbackWithToken", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/provider-callbacks/{provider_id}/{token}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"mutating\":true,\"messaging\":true,\"requestMediaTypes\":[\"application/json\",\"application/x-www-form-urlencoded\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/400/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/429/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1provider-callbacks~1{provider_id}~1{token}/post/responses/503/content/application~1problem+json/schema\"}}")], - ["previewTemplate", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/templates/{template_id}/versions/{version}/preview\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"messaging\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1templates~1{template_id}~1versions~1{version}~1preview/post/responses/503/content/application~1problem+json/schema\"}}")], + ["getMessage", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/messages/{messageId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1messages~1{messageId}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"messaging\":true,\"problems\":{\"401\":\"/paths/~1v1~1messages~1{messageId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1messages~1{messageId}/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1messages~1{messageId}/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1messages~1{messageId}/get/responses/405/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1messages~1{messageId}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["cancelMessage", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/messages/{messageId}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":true,\"messaging\":true,\"problems\":{\"401\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1messages~1{messageId}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], + ["receiveProviderCallback", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/provider-callbacks/{providerId}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"mutating\":true,\"messaging\":true,\"requestMediaTypes\":[\"application/json\",\"application/x-www-form-urlencoded\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/400/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/429/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1provider-callbacks~1{providerId}/post/responses/503/content/application~1problem+json/schema\"}}")], + ["receiveProviderCallbackWithToken", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/provider-callbacks/{providerId}/{token}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"mutating\":true,\"messaging\":true,\"requestMediaTypes\":[\"application/json\",\"application/x-www-form-urlencoded\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/400/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/429/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1provider-callbacks~1{providerId}~1{token}/post/responses/503/content/application~1problem+json/schema\"}}")], + ["previewTemplate", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/templates/{templateId}/versions/{templateVersion}/preview\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"messaging\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1templates~1{templateId}~1versions~1{templateVersion}~1preview/post/responses/503/content/application~1problem+json/schema\"}}")], ]) for (const [id, definition] of Object.entries(definitions)) { const responses: Operation["responses"] = {} diff --git a/clients/typescript/generated/render.ts b/clients/typescript/generated/render.ts index 6d8fe7210a..32be4d5db5 100644 --- a/clients/typescript/generated/render.ts +++ b/clients/typescript/generated/render.ts @@ -1,9 +1,9 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 aedf1cb0402eee9fb30e3a0606bfa6ba209102a612174716cf006c8fab5e7b96 +// Source SHA-256 f55f36da7de7a0417c2085878f09ee28cc47f6b0649b81901780a629722fa0b7 import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" -export type Schema_Problem = ({ "type": (string); "title": (string); "status": (number); "detail": (string); "code": (string); "traceId": (string); "pointers"?: (Array<(string)>) }) +export type Schema_Problem = ({ "type": (string); "title": (string); "status": (number); "detail": (string); "code": (string); "traceId": (string); "failedCheck"?: (string); "pointers"?: (Array<(string)>) }) export type Schema_Digest = (string) export interface Operations { @@ -11,13 +11,13 @@ export interface Operations { "getReady": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: ({ "status": "ready"; "posture": ("development" | "production"); "developmentSettings": (Array<({ "code": (string); "pointer"?: (string) })>); "signing"?: (Record) }) } "getOpenapiJson": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: ({ "openapi": "3.1.0"; "info": ({ "title": (string); "version": (string) }); "paths": (Record) }) } "getV1DocumentTypes": { input: CallOptions & { accept?: "application/json" | "*/*" }; required: false; output: ({ "documentTypes": (Array<({ "id": (string); "version": (number); "entry": (string); "labels": (Array<(string)>); "pdfStandard": (string | null); "schema": (string | null); "seal"?: (string) })>); "projectVersion": (string); "bundleHash": (string); "rendererVersion": (string); "typstPin": (string) }) } - "postV1RenderByType": { input: CallOptions & { path: { "type": (string) } } & ({ body: ({ "locale"?: (string); "issuedAt": (string); "data": (Record); "assets"?: (Record) }) }) & { accept?: "application/pdf" | "application/json" | "*/*" }; required: true; output: WireBytes<"application/pdf"> | ({ "pdfBase64": (string); "pdfDigest": Schema_Digest; "dataDigest": Schema_Digest; "documentVersion": (string); "warnings": (Array<(string)>) }) } - "postV1SealByType": { input: CallOptions & { path: { "type": (string) } } & ({ body: ({ "locale"?: (string); "issuedAt": (string); "data": (Record); "assets"?: (Record) }) }) & { accept?: "application/pdf" | "application/json" | "*/*" }; required: true; output: WireBytes<"application/pdf"> | ({ "pdfBase64": (string); "documentDigest": Schema_Digest; "signedFileDigest": Schema_Digest; "dataDigest": Schema_Digest; "documentVersion": (string); "packageDigest": Schema_Digest; "warnings": (Array<(string)>); "seal": ({ "id": (string); "level": ("B-T" | "B-B") & (string); "certificateDigest": Schema_Digest; "timestampedAt"?: (string); "testOnly"?: true & (boolean) }) }) } + "postV1RenderByType": { input: CallOptions & { path: { "documentType": (string) } } & ({ body: ({ "locale"?: (string); "issuedAt": (string); "data": (Record); "assets"?: (Record) }) }) & { accept?: "application/pdf" | "application/json" | "*/*" }; required: true; output: WireBytes<"application/pdf"> | ({ "pdfBase64": (string); "pdfDigest": Schema_Digest; "dataDigest": Schema_Digest; "documentVersion": (string); "warnings": (Array<(string)>) }) } + "postV1SealByType": { input: CallOptions & { path: { "documentType": (string) } } & ({ body: ({ "locale"?: (string); "issuedAt": (string); "data": (Record); "assets"?: (Record) }) }) & { accept?: "application/pdf" | "application/json" | "*/*" }; required: true; output: WireBytes<"application/pdf"> | ({ "pdfBase64": (string); "documentDigest": Schema_Digest; "signedFileDigest": Schema_Digest; "dataDigest": Schema_Digest; "documentVersion": (string); "packageDigest": Schema_Digest; "warnings": (Array<(string)>); "seal": ({ "id": (string); "level": ("B-T" | "B-B") & (string); "certificateDigest": Schema_Digest; "timestampedAt"?: (string); "testOnly"?: true & (boolean) }) }) } } const rules: Record = Object.fromEntries([ ["/components/schemas/Digest", JSON.parse("{\"type\":\"string\",\"pattern\":\"^sha256:[0-9a-f]{64}$\"}")], - ["/components/schemas/Problem", JSON.parse("{\"type\":\"object\",\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"properties\":{\"type\":{\"type\":\"string\"},\"title\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"detail\":{\"type\":\"string\"},\"code\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\",\"pattern\":\"^[0-9a-f]{32}$\"},\"pointers\":{\"type\":\"array\",\"maxItems\":32,\"items\":{\"type\":\"string\",\"maxLength\":256}}}}")], + ["/components/schemas/Problem", JSON.parse("{\"type\":\"object\",\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"properties\":{\"type\":{\"type\":\"string\"},\"title\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"detail\":{\"type\":\"string\"},\"code\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\",\"pattern\":\"^[0-9a-f]{32}$\"},\"failedCheck\":{\"type\":\"string\"},\"pointers\":{\"type\":\"array\",\"maxItems\":32,\"items\":{\"type\":\"string\",\"maxLength\":256}}}}")], ["/paths/~1health/get/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"status\",\"projectVersion\",\"bundleHash\",\"rendererVersion\",\"typstPin\"],\"properties\":{\"status\":{\"const\":\"ok\"},\"projectVersion\":{\"type\":\"string\"},\"bundleHash\":{\"type\":\"string\"},\"rendererVersion\":{\"type\":\"string\"},\"typstPin\":{\"type\":\"string\"}}}")], ["/paths/~1openapi.json/get/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"openapi\",\"info\",\"paths\"],\"properties\":{\"openapi\":{\"const\":\"3.1.0\"},\"info\":{\"type\":\"object\",\"required\":[\"title\",\"version\"],\"properties\":{\"title\":{\"type\":\"string\"},\"version\":{\"type\":\"string\"}}},\"paths\":{\"type\":\"object\"}}}")], ["/paths/~1ready/get/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"status\",\"posture\",\"developmentSettings\"],\"properties\":{\"status\":{\"const\":\"ready\"},\"posture\":{\"enum\":[\"development\",\"production\"]},\"developmentSettings\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"required\":[\"code\"],\"properties\":{\"code\":{\"type\":\"string\"},\"pointer\":{\"type\":\"string\"}}}},\"signing\":{\"type\":\"object\"}}}")], @@ -25,27 +25,27 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1document-types/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1document-types/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ["/paths/~1v1~1document-types/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"pdfBase64\",\"pdfDigest\",\"dataDigest\",\"documentVersion\",\"warnings\"],\"properties\":{\"pdfBase64\":{\"type\":\"string\"},\"pdfDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"dataDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"documentVersion\":{\"type\":\"string\"},\"warnings\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}")], - ["/paths/~1v1~1render~1{type}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1render~1{type}/post/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"pdfBase64\",\"documentDigest\",\"signedFileDigest\",\"dataDigest\",\"documentVersion\",\"packageDigest\",\"warnings\",\"seal\"],\"properties\":{\"pdfBase64\":{\"type\":\"string\"},\"documentDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"signedFileDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"dataDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"documentVersion\":{\"type\":\"string\"},\"packageDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"warnings\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"seal\":{\"type\":\"object\",\"required\":[\"id\",\"level\",\"certificateDigest\"],\"properties\":{\"id\":{\"type\":\"string\"},\"level\":{\"type\":\"string\",\"enum\":[\"B-T\",\"B-B\"]},\"certificateDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"timestampedAt\":{\"type\":\"string\"},\"testOnly\":{\"type\":\"boolean\",\"const\":true}}}}}")], - ["/paths/~1v1~1seal~1{type}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], - ["/paths/~1v1~1seal~1{type}/post/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"pdfBase64\",\"pdfDigest\",\"dataDigest\",\"documentVersion\",\"warnings\"],\"properties\":{\"pdfBase64\":{\"type\":\"string\"},\"pdfDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"dataDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"documentVersion\":{\"type\":\"string\"},\"warnings\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1render~1{documentType}/post/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/200/content/application~1json/schema", JSON.parse("{\"type\":\"object\",\"required\":[\"pdfBase64\",\"documentDigest\",\"signedFileDigest\",\"dataDigest\",\"documentVersion\",\"packageDigest\",\"warnings\",\"seal\"],\"properties\":{\"pdfBase64\":{\"type\":\"string\"},\"documentDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"signedFileDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"dataDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"documentVersion\":{\"type\":\"string\"},\"packageDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"warnings\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"seal\":{\"type\":\"object\",\"required\":[\"id\",\"level\",\"certificateDigest\"],\"properties\":{\"id\":{\"type\":\"string\"},\"level\":{\"type\":\"string\",\"enum\":[\"B-T\",\"B-B\"]},\"certificateDigest\":{\"$ref\":\"/components/schemas/Digest\"},\"timestampedAt\":{\"type\":\"string\"},\"testOnly\":{\"type\":\"boolean\",\"const\":true}}}}}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/404/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/429/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/500/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/502/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], + ["/paths/~1v1~1seal~1{documentType}/post/responses/504/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/Problem\"}")], ]) const routes: Record = Object.create(null) type Definition = Omit & { problems?: Record; responses: Record> } @@ -54,8 +54,8 @@ const definitions: Record = Object.fromEntries([ ["getReady", JSON.parse("{\"method\":\"GET\",\"path\":\"/ready\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1ready/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":false}")], ["getOpenapiJson", JSON.parse("{\"method\":\"GET\",\"path\":\"/openapi.json\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1openapi.json/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"anonymous\":true,\"mutating\":false}")], ["getV1DocumentTypes", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/document-types\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1document-types/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"401\":\"/paths/~1v1~1document-types/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1document-types/get/responses/403/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1document-types/get/responses/503/content/application~1problem+json/schema\"}}")], - ["postV1RenderByType", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/render/{type}\",\"responses\":{\"200\":[{\"mediaType\":\"application/pdf\",\"mode\":\"binary\"},{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1render~1{type}/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1render~1{type}/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1render~1{type}/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1render~1{type}/post/responses/403/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1render~1{type}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1render~1{type}/post/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1render~1{type}/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1render~1{type}/post/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1render~1{type}/post/responses/504/content/application~1problem+json/schema\"}}")], - ["postV1SealByType", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/seal/{type}\",\"responses\":{\"200\":[{\"mediaType\":\"application/pdf\",\"mode\":\"binary\"},{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1seal~1{type}/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1seal~1{type}/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1seal~1{type}/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1seal~1{type}/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1seal~1{type}/post/responses/404/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1seal~1{type}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1seal~1{type}/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1seal~1{type}/post/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1seal~1{type}/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1seal~1{type}/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1seal~1{type}/post/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1seal~1{type}/post/responses/504/content/application~1problem+json/schema\"}}")], + ["postV1RenderByType", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/render/{documentType}\",\"responses\":{\"200\":[{\"mediaType\":\"application/pdf\",\"mode\":\"binary\"},{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1render~1{documentType}/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1render~1{documentType}/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1render~1{documentType}/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1render~1{documentType}/post/responses/403/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1render~1{documentType}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1render~1{documentType}/post/responses/422/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1render~1{documentType}/post/responses/500/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1render~1{documentType}/post/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1render~1{documentType}/post/responses/504/content/application~1problem+json/schema\"}}")], + ["postV1SealByType", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/seal/{documentType}\",\"responses\":{\"200\":[{\"mediaType\":\"application/pdf\",\"mode\":\"binary\"},{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1seal~1{documentType}/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1seal~1{documentType}/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1seal~1{documentType}/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1seal~1{documentType}/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1seal~1{documentType}/post/responses/404/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1seal~1{documentType}/post/responses/413/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1seal~1{documentType}/post/responses/422/content/application~1problem+json/schema\",\"429\":\"/paths/~1v1~1seal~1{documentType}/post/responses/429/content/application~1problem+json/schema\",\"500\":\"/paths/~1v1~1seal~1{documentType}/post/responses/500/content/application~1problem+json/schema\",\"502\":\"/paths/~1v1~1seal~1{documentType}/post/responses/502/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1seal~1{documentType}/post/responses/503/content/application~1problem+json/schema\",\"504\":\"/paths/~1v1~1seal~1{documentType}/post/responses/504/content/application~1problem+json/schema\"}}")], ]) for (const [id, definition] of Object.entries(definitions)) { const responses: Operation["responses"] = {} diff --git a/clients/typescript/generated/scheduling.ts b/clients/typescript/generated/scheduling.ts index 481441e209..d50a134da0 100644 --- a/clients/typescript/generated/scheduling.ts +++ b/clients/typescript/generated/scheduling.ts @@ -1,5 +1,5 @@ // Generated for Stack version 0.50.0, client version 0.50.0. -// Source SHA-256 b27d0697472e608de91b276148b26b3c1737348a7b86f69724f205bd8cd099a3 +// Source SHA-256 5ac404c37885cc668f9a21f9e591ee8cfd20ea1aa0b97056a004a95fa2e69571 // Unconstrained JSON /components/schemas/AppointmentHistoryEntryDocument/properties/detail import { assertClientVersion, type Transport, type Answer, type CallOptions, type JsonValue, type Operation, type Page, type RequestValues, type ResponseVariant, type WireBytes, type WireText } from "../core.ts" import { validator } from "../schema.ts" @@ -44,7 +44,7 @@ export type Schema_OperationalAppointmentDocument = ({ "allocations"?: (Array); "nextCursor": ((string) | (null)) }) export type Schema_PartyCounts = ({ "attendees": (number); "recipients": (number) }) export type Schema_PartyReference = ({ "reference": Schema_ExternalReference; "role": ("beneficiary" | "organization") & (string) }) -export type Schema_Problem = ({ "code": ("access-profile.ambiguous" | "authentication.refused" | "booking.duplicate-active" | "cancellation.cutoff-passed" | "capability.unmatched" | "capacity.exhausted" | "cursor.expired" | "cursor.invalid" | "eligibility.unavailable" | "grant.lifetime-too-long" | "hold.expired" | "hold.released" | "hook.unavailable" | "horizon.outside" | "idempotency.expired" | "idempotency.key-reused" | "location.closed" | "operation.not-authorized" | "party.capacity-inadequate" | "platform.task-grant.development-assertion" | "policy.changed" | "precondition.failed" | "precondition.required" | "prerequisite.missing" | "profile.not-authorized" | "receipt.unresolved" | "request.body-too-large" | "request.invalid" | "request.method-not-allowed" | "request.not-found" | "request.unprocessable" | "request.unsupported-media-type" | "resource.unavailable" | "revision.mismatch" | "schedule.unpublished" | "service.unavailable") & (string); "detail": (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) +export type Schema_Problem = ({ "code": ("access-profile.ambiguous" | "authentication.refused" | "booking.duplicate-active" | "cancellation.cutoff-passed" | "capability.unmatched" | "capacity.exhausted" | "cursor.expired" | "cursor.invalid" | "eligibility.unavailable" | "grant.lifetime-too-long" | "hold.expired" | "hold.released" | "hook.unavailable" | "horizon.outside" | "idempotency.expired" | "idempotency.key-reused" | "location.closed" | "operation.not-authorized" | "party.capacity-inadequate" | "platform.task-grant.development-assertion" | "policy.changed" | "precondition.failed" | "precondition.required" | "prerequisite.missing" | "profile.not-authorized" | "receipt.unresolved" | "request.body-too-large" | "request.invalid" | "request.method-not-allowed" | "request.not-found" | "request.unprocessable" | "request.unsupported-media-type" | "resource.unavailable" | "revision.mismatch" | "schedule.unpublished" | "service.unavailable") & (string); "detail": (string); "failedCheck"?: (string); "status": (number); "title": (string); "traceId": (string); "type": (string) }) export type Schema_ProblemAccessProfileAmbiguous = ({ "accessProfiles": (Array<(string)>); "code": "access-profile.ambiguous" & (string); "detail": "Multiple access profiles admit this request on this route; select one with accessProfile." & (string); "status": 400 & (number); "title": "Ambiguous access profile" & (string); "traceId": (string); "type": "https://id.registrystack.org/problems/registry-scheduling/access-profile/ambiguous" & (string) }) export type Schema_ProblemAuthenticationRefused = (Schema_Problem & ({ "code"?: "authentication.refused"; "detail"?: "The bearer credential is missing, invalid, or expired. Sign in again."; "status"?: 401; "title"?: "Authentication refused"; "type"?: "https://id.registrystack.org/problems/registry-scheduling/authentication/refused" })) export type Schema_ProblemBookingDuplicateActive = (Schema_Problem & ({ "code"?: "booking.duplicate-active"; "detail"?: "An active booking already holds this party's duplicate key. Cancel it, or wait until it has passed, before booking again."; "status"?: 409; "title"?: "Duplicate active booking"; "type"?: "https://id.registrystack.org/problems/registry-scheduling/booking/duplicate-active" })) @@ -98,16 +98,16 @@ export interface Operations { "listAppointmentsByExternalReference": { input: CallOptions & { query: { "externalReferenceProduct": (string); "externalReferenceRecordType": (string); "externalReferenceIdentifier": (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentPage } "createAppointment": { input: CallOptions & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_CreateAppointmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } "readAppointmentReceipt": { input: CallOptions & { headers?: { "traceparent"?: (string) } } & { idempotencyKey: string } & ({ body: Schema_CreateAppointmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } - "getAppointment": { input: CallOptions & { path: { "appointment_id": (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } - "recordAttendance": { input: CallOptions & { path: { "appointment_id": (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_RecordAttendanceRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AttendanceDocument } - "cancelAppointment": { input: CallOptions & { path: { "appointment_id": (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_CancelAppointmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } - "listAppointmentHistory": { input: CallOptions & { path: { "appointment_id": (string) } } & { query?: { "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentHistoryPage } - "rescheduleAppointment": { input: CallOptions & { path: { "appointment_id": (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_RescheduleAppointmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } + "getAppointment": { input: CallOptions & { path: { "appointmentId": (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } + "recordAttendance": { input: CallOptions & { path: { "appointmentId": (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_RecordAttendanceRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AttendanceDocument } + "cancelAppointment": { input: CallOptions & { path: { "appointmentId": (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_CancelAppointmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } + "listAppointmentHistory": { input: CallOptions & { path: { "appointmentId": (string) } } & { query?: { "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentHistoryPage } + "rescheduleAppointment": { input: CallOptions & { path: { "appointmentId": (string) } } & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_RescheduleAppointmentRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AppointmentDocument } "searchAvailability": { input: CallOptions & { query: { "offering": (string); "start"?: (string); "durationMinutes"?: (number); "resource"?: (string); "end"?: (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AvailabilityPage } "explainAvailability": { input: CallOptions & { query: { "offering": (string); "start": (string); "durationMinutes"?: (number); "resource"?: (string) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_ExplainDocument } "previewAvailability": { input: CallOptions & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_AvailabilityPreviewRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_AvailabilityPreviewDocument } "createHold": { input: CallOptions & { headers?: { "traceparent"?: (string) } } & ({ body: Schema_AdmissionRequest }) & { accept?: "application/json" | "*/*" }; required: true; output: Schema_HoldDocument } - "releaseHold": { input: CallOptions & { path: { "hold_id": (string) } } & { headers?: { "traceparent"?: (string) } }; required: true; output: undefined } + "releaseHold": { input: CallOptions & { path: { "holdId": (string) } } & { headers?: { "traceparent"?: (string) } }; required: true; output: undefined } "listLocations": { input: CallOptions & { query?: { "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_LocationPage } "listOfferings": { input: CallOptions & { query?: { "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: false; output: Schema_OfferingPage } "listOperationalAppointments": { input: CallOptions & { query: { "service": (string); "location": (string); "start": (string); "end": (string); "timeBasis": ("displayed" | "occupied") & (string); "offering"?: (string); "state"?: ("confirmed" | "cancelled") & (string); "resource"?: (string); "externalReferenceProduct"?: (string); "externalReferenceRecordType"?: (string); "externalReferenceIdentifier"?: (string); "accessProfile"?: (string); "cursor"?: (string); "limit"?: (number) } } & { headers?: { "traceparent"?: (string) } } & { accept?: "application/json" | "*/*" }; required: true; output: Schema_OperationalAppointmentPage } @@ -159,7 +159,7 @@ const rules: Record = Object.fromEntries([ ["/components/schemas/OperationalAppointmentPage", JSON.parse("{\"additionalProperties\":true,\"properties\":{\"items\":{\"items\":{\"$ref\":\"/components/schemas/OperationalAppointmentDocument\"},\"type\":\"array\"},\"nextCursor\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}]}},\"required\":[\"items\",\"nextCursor\"],\"type\":\"object\"}")], ["/components/schemas/PartyCounts", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"attendees\":{\"minimum\":0,\"type\":\"integer\"},\"recipients\":{\"minimum\":0,\"type\":\"integer\"}},\"required\":[\"recipients\",\"attendees\"],\"type\":\"object\"}")], ["/components/schemas/PartyReference", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"reference\":{\"$ref\":\"/components/schemas/ExternalReference\"},\"role\":{\"enum\":[\"beneficiary\",\"organization\"],\"type\":\"string\"}},\"required\":[\"role\",\"reference\"],\"type\":\"object\"}")], - ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"access-profile.ambiguous\",\"authentication.refused\",\"booking.duplicate-active\",\"cancellation.cutoff-passed\",\"capability.unmatched\",\"capacity.exhausted\",\"cursor.expired\",\"cursor.invalid\",\"eligibility.unavailable\",\"grant.lifetime-too-long\",\"hold.expired\",\"hold.released\",\"hook.unavailable\",\"horizon.outside\",\"idempotency.expired\",\"idempotency.key-reused\",\"location.closed\",\"operation.not-authorized\",\"party.capacity-inadequate\",\"platform.task-grant.development-assertion\",\"policy.changed\",\"precondition.failed\",\"precondition.required\",\"prerequisite.missing\",\"profile.not-authorized\",\"receipt.unresolved\",\"request.body-too-large\",\"request.invalid\",\"request.method-not-allowed\",\"request.not-found\",\"request.unprocessable\",\"request.unsupported-media-type\",\"resource.unavailable\",\"revision.mismatch\",\"schedule.unpublished\",\"service.unavailable\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], + ["/components/schemas/Problem", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"code\":{\"enum\":[\"access-profile.ambiguous\",\"authentication.refused\",\"booking.duplicate-active\",\"cancellation.cutoff-passed\",\"capability.unmatched\",\"capacity.exhausted\",\"cursor.expired\",\"cursor.invalid\",\"eligibility.unavailable\",\"grant.lifetime-too-long\",\"hold.expired\",\"hold.released\",\"hook.unavailable\",\"horizon.outside\",\"idempotency.expired\",\"idempotency.key-reused\",\"location.closed\",\"operation.not-authorized\",\"party.capacity-inadequate\",\"platform.task-grant.development-assertion\",\"policy.changed\",\"precondition.failed\",\"precondition.required\",\"prerequisite.missing\",\"profile.not-authorized\",\"receipt.unresolved\",\"request.body-too-large\",\"request.invalid\",\"request.method-not-allowed\",\"request.not-found\",\"request.unprocessable\",\"request.unsupported-media-type\",\"resource.unavailable\",\"revision.mismatch\",\"schedule.unpublished\",\"service.unavailable\"],\"type\":\"string\"},\"detail\":{\"type\":\"string\"},\"failedCheck\":{\"type\":\"string\"},\"status\":{\"type\":\"integer\"},\"title\":{\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\"],\"type\":\"object\"}")], ["/components/schemas/ProblemAccessProfileAmbiguous", JSON.parse("{\"additionalProperties\":false,\"properties\":{\"accessProfiles\":{\"items\":{\"type\":\"string\"},\"minItems\":2,\"type\":\"array\",\"uniqueItems\":true},\"code\":{\"const\":\"access-profile.ambiguous\",\"type\":\"string\"},\"detail\":{\"const\":\"Multiple access profiles admit this request on this route; select one with accessProfile.\",\"type\":\"string\"},\"status\":{\"const\":400,\"type\":\"integer\"},\"title\":{\"const\":\"Ambiguous access profile\",\"type\":\"string\"},\"traceId\":{\"type\":\"string\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-scheduling/access-profile/ambiguous\",\"type\":\"string\"}},\"required\":[\"type\",\"title\",\"status\",\"detail\",\"code\",\"traceId\",\"accessProfiles\"],\"type\":\"object\"}")], ["/components/schemas/ProblemAuthenticationRefused", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"const\":\"authentication.refused\"},\"detail\":{\"const\":\"The bearer credential is missing, invalid, or expired. Sign in again.\"},\"status\":{\"const\":401},\"title\":{\"const\":\"Authentication refused\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-scheduling/authentication/refused\"}},\"type\":\"object\"}]}")], ["/components/schemas/ProblemBookingDuplicateActive", JSON.parse("{\"allOf\":[{\"$ref\":\"/components/schemas/Problem\"},{\"properties\":{\"code\":{\"const\":\"booking.duplicate-active\"},\"detail\":{\"const\":\"An active booking already holds this party's duplicate key. Cancel it, or wait until it has passed, before booking again.\"},\"status\":{\"const\":409},\"title\":{\"const\":\"Duplicate active booking\"},\"type\":{\"const\":\"https://id.registrystack.org/problems/registry-scheduling/booking/duplicate-active\"}},\"type\":\"object\"}]}")], @@ -243,58 +243,58 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1appointments~1receipt/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], ["/paths/~1v1~1appointments~1receipt/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], ["/paths/~1v1~1appointments~1receipt/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentDocument\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AttendanceDocument\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRevisionMismatch\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentDocument\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemCancellationCutoffPassed\"},{\"$ref\":\"/components/schemas/ProblemHoldReleased\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRevisionMismatch\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentHistoryPage\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemCursorExpired\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentDocument\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemBookingDuplicateActive\"},{\"$ref\":\"/components/schemas/ProblemCapacityExhausted\"},{\"$ref\":\"/components/schemas/ProblemLocationClosed\"},{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemHoldReleased\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemPolicyChanged\"},{\"$ref\":\"/components/schemas/ProblemRevisionMismatch\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemCapabilityUnmatched\"},{\"$ref\":\"/components/schemas/ProblemHorizonOutside\"},{\"$ref\":\"/components/schemas/ProblemPartyCapacityInadequate\"},{\"$ref\":\"/components/schemas/ProblemPrerequisiteMissing\"},{\"$ref\":\"/components/schemas/ProblemScheduleUnpublished\"}]}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], - ["/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentDocument\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AttendanceDocument\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRevisionMismatch\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentDocument\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemCancellationCutoffPassed\"},{\"$ref\":\"/components/schemas/ProblemHoldReleased\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRevisionMismatch\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentHistoryPage\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemCursorExpired\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AppointmentDocument\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/409/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemBookingDuplicateActive\"},{\"$ref\":\"/components/schemas/ProblemCapacityExhausted\"},{\"$ref\":\"/components/schemas/ProblemLocationClosed\"},{\"$ref\":\"/components/schemas/ProblemIdempotencyKeyReused\"},{\"$ref\":\"/components/schemas/ProblemHoldReleased\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/412/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemPolicyChanged\"},{\"$ref\":\"/components/schemas/ProblemRevisionMismatch\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/415/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestUnsupportedMediaType\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemCapabilityUnmatched\"},{\"$ref\":\"/components/schemas/ProblemHorizonOutside\"},{\"$ref\":\"/components/schemas/ProblemPartyCapacityInadequate\"},{\"$ref\":\"/components/schemas/ProblemPrerequisiteMissing\"},{\"$ref\":\"/components/schemas/ProblemScheduleUnpublished\"}]}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], + ["/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1availability/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/AvailabilityPage\"}")], ["/paths/~1v1~1availability/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"}]}")], ["/paths/~1v1~1availability/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], @@ -336,14 +336,14 @@ const rules: Record = Object.fromEntries([ ["/paths/~1v1~1holds/post/responses/422/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestUnprocessable\"},{\"$ref\":\"/components/schemas/ProblemCapabilityUnmatched\"},{\"$ref\":\"/components/schemas/ProblemHorizonOutside\"},{\"$ref\":\"/components/schemas/ProblemPartyCapacityInadequate\"},{\"$ref\":\"/components/schemas/ProblemPrerequisiteMissing\"},{\"$ref\":\"/components/schemas/ProblemScheduleUnpublished\"}]}")], ["/paths/~1v1~1holds/post/responses/428/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemPreconditionRequired\"}")], ["/paths/~1v1~1holds/post/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemHoldReleased\"}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], - ["/paths/~1v1~1holds~1{hold_id}/delete/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/400/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/403/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemProfileNotAuthorized\"},{\"$ref\":\"/components/schemas/ProblemOperationNotAuthorized\"}]}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/405/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestMethodNotAllowed\"}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/409/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemHoldReleased\"}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/410/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemIdempotencyExpired\"}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/413/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemRequestBodyTooLarge\"}")], + ["/paths/~1v1~1holds~1{holdId}/delete/responses/503/content/application~1problem+json/schema", JSON.parse("{\"$ref\":\"/components/schemas/ProblemServiceUnavailable\"}")], ["/paths/~1v1~1locations/get/responses/200/content/application~1json/schema", JSON.parse("{\"$ref\":\"/components/schemas/LocationPage\"}")], ["/paths/~1v1~1locations/get/responses/400/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemRequestInvalid\"},{\"$ref\":\"/components/schemas/ProblemCursorInvalid\"}]}")], ["/paths/~1v1~1locations/get/responses/401/content/application~1problem+json/schema", JSON.parse("{\"oneOf\":[{\"$ref\":\"/components/schemas/ProblemAuthenticationRefused\"},{\"$ref\":\"/components/schemas/ProblemPlatformTaskGrantDevelopmentAssertion\"}]}")], @@ -421,16 +421,16 @@ const definitions: Record = Object.fromEntries([ ["listAppointmentsByExternalReference", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/appointments\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1appointments/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments/get/responses/503/content/application~1problem+json/schema\"}}")], ["createAppointment", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/appointments\",\"responses\":{\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments/post/responses/201/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1appointments/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1appointments/post/responses/428/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments/post/responses/503/content/application~1problem+json/schema\"}}")], ["readAppointmentReceipt", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/appointments/receipt\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1receipt/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"requiresExistingKey\":true,\"mutating\":false,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1receipt/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1receipt/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1receipt/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1receipt/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1receipt/post/responses/409/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1receipt/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1receipt/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1receipt/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1receipt/post/responses/503/content/application~1problem+json/schema\"}}")], - ["getAppointment", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/appointments/{appointment_id}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointment_id}/get/responses/503/content/application~1problem+json/schema\"}}")], - ["recordAttendance", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/appointments/{appointment_id}/attendance\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointment_id}~1attendance/put/responses/503/content/application~1problem+json/schema\"}}")], - ["cancelAppointment", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/appointments/{appointment_id}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointment_id}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], - ["listAppointmentHistory", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/appointments/{appointment_id}/history\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointment_id}~1history/get/responses/503/content/application~1problem+json/schema\"}}")], - ["rescheduleAppointment", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/appointments/{appointment_id}/reschedule\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/428/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointment_id}~1reschedule/post/responses/503/content/application~1problem+json/schema\"}}")], + ["getAppointment", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/appointments/{appointmentId}\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointmentId}/get/responses/503/content/application~1problem+json/schema\"}}")], + ["recordAttendance", JSON.parse("{\"method\":\"PUT\",\"path\":\"/v1/appointments/{appointmentId}/attendance\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointmentId}~1attendance/put/responses/503/content/application~1problem+json/schema\"}}")], + ["cancelAppointment", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/appointments/{appointmentId}/cancel\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointmentId}~1cancel/post/responses/503/content/application~1problem+json/schema\"}}")], + ["listAppointmentHistory", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/appointments/{appointmentId}/history\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointmentId}~1history/get/responses/503/content/application~1problem+json/schema\"}}")], + ["rescheduleAppointment", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/appointments/{appointmentId}/reschedule\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/200/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/428/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1appointments~1{appointmentId}~1reschedule/post/responses/503/content/application~1problem+json/schema\"}}")], ["searchAvailability", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/availability\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1availability/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1availability/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1availability/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1availability/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1availability/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1availability/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1availability/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1availability/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1availability/get/responses/503/content/application~1problem+json/schema\"}}")], ["explainAvailability", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/availability/explain\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1availability~1explain/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1availability~1explain/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1availability~1explain/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1availability~1explain/get/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1availability~1explain/get/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1availability~1explain/get/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1availability~1explain/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1availability~1explain/get/responses/503/content/application~1problem+json/schema\"}}")], ["previewAvailability", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/availability/preview\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1availability~1preview/post/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1availability~1preview/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1availability~1preview/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1availability~1preview/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1availability~1preview/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1availability~1preview/post/responses/405/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1availability~1preview/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1availability~1preview/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1availability~1preview/post/responses/422/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1availability~1preview/post/responses/503/content/application~1problem+json/schema\"}}")], ["createHold", JSON.parse("{\"method\":\"POST\",\"path\":\"/v1/holds\",\"responses\":{\"201\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1holds/post/responses/201/content/application~1json/schema\"}]},\"keyed\":true,\"mutating\":true,\"requestMediaTypes\":[\"application/json\"],\"requestMediaType\":\"application/json\",\"problems\":{\"400\":\"/paths/~1v1~1holds/post/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1holds/post/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1holds/post/responses/403/content/application~1problem+json/schema\",\"404\":\"/paths/~1v1~1holds/post/responses/404/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1holds/post/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1holds/post/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1holds/post/responses/410/content/application~1problem+json/schema\",\"412\":\"/paths/~1v1~1holds/post/responses/412/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1holds/post/responses/413/content/application~1problem+json/schema\",\"415\":\"/paths/~1v1~1holds/post/responses/415/content/application~1problem+json/schema\",\"422\":\"/paths/~1v1~1holds/post/responses/422/content/application~1problem+json/schema\",\"428\":\"/paths/~1v1~1holds/post/responses/428/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1holds/post/responses/503/content/application~1problem+json/schema\"}}")], - ["releaseHold", JSON.parse("{\"method\":\"DELETE\",\"path\":\"/v1/holds/{hold_id}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1holds~1{hold_id}/delete/responses/503/content/application~1problem+json/schema\"}}")], + ["releaseHold", JSON.parse("{\"method\":\"DELETE\",\"path\":\"/v1/holds/{holdId}\",\"responses\":{\"204\":[{\"mode\":\"empty\"}]},\"keyed\":false,\"mutating\":true,\"problems\":{\"400\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/405/content/application~1problem+json/schema\",\"409\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/409/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1holds~1{holdId}/delete/responses/503/content/application~1problem+json/schema\"}}")], ["listLocations", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/locations\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1locations/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1locations/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1locations/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1locations/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1locations/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1locations/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1locations/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1locations/get/responses/503/content/application~1problem+json/schema\"}}")], ["listOfferings", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/offerings\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1offerings/get/responses/200/content/application~1json/schema\"}]},\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1offerings/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1offerings/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1offerings/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1offerings/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1offerings/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1offerings/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1offerings/get/responses/503/content/application~1problem+json/schema\"}}")], ["listOperationalAppointments", JSON.parse("{\"method\":\"GET\",\"path\":\"/v1/operational/appointments\",\"responses\":{\"200\":[{\"mediaType\":\"application/json\",\"mode\":\"json\",\"rule\":\"/paths/~1v1~1operational~1appointments/get/responses/200/content/application~1json/schema\"}]},\"accessProfileParameter\":true,\"keyed\":false,\"mutating\":false,\"problems\":{\"400\":\"/paths/~1v1~1operational~1appointments/get/responses/400/content/application~1problem+json/schema\",\"401\":\"/paths/~1v1~1operational~1appointments/get/responses/401/content/application~1problem+json/schema\",\"403\":\"/paths/~1v1~1operational~1appointments/get/responses/403/content/application~1problem+json/schema\",\"405\":\"/paths/~1v1~1operational~1appointments/get/responses/405/content/application~1problem+json/schema\",\"410\":\"/paths/~1v1~1operational~1appointments/get/responses/410/content/application~1problem+json/schema\",\"413\":\"/paths/~1v1~1operational~1appointments/get/responses/413/content/application~1problem+json/schema\",\"503\":\"/paths/~1v1~1operational~1appointments/get/responses/503/content/application~1problem+json/schema\"}}")], diff --git a/clients/typescript/package-lock.json b/clients/typescript/package-lock.json index 3d4cf9d708..48348c034a 100644 --- a/clients/typescript/package-lock.json +++ b/clients/typescript/package-lock.json @@ -20,6 +20,8 @@ }, "devDependencies": { "@types/node": "24.10.1", + "ajv": "8.20.0", + "ajv-formats": "3.0.1", "playwright-core": "1.63.0" }, "engines": { @@ -452,6 +454,41 @@ "undici-types": "~7.16.0" } }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, "node_modules/esbuild": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", @@ -493,6 +530,37 @@ "@esbuild/win32-x64": "0.25.12" } }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, "node_modules/playwright-core": { "version": "1.63.0", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz", @@ -506,6 +574,16 @@ "node": ">=20" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/srvx": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/srvx/-/srvx-1.0.8.tgz", diff --git a/clients/typescript/package.json b/clients/typescript/package.json index 377f2ef535..497cac9b01 100644 --- a/clients/typescript/package.json +++ b/clients/typescript/package.json @@ -62,6 +62,8 @@ }, "devDependencies": { "@types/node": "24.10.1", + "ajv": "8.20.0", + "ajv-formats": "3.0.1", "playwright-core": "1.63.0" }, "engines": { diff --git a/clients/typescript/schema.ts b/clients/typescript/schema.ts index 7346ee0fb2..2e5593519e 100644 --- a/clients/typescript/schema.ts +++ b/clients/typescript/schema.ts @@ -56,7 +56,7 @@ function bounded(value: number, min = -Infinity, max = Infinity): boolean { return value >= min && value <= max } -export function validator(schemas: unknown, schema: unknown): (value: unknown) => boolean { +export function validator(schemas: unknown, schema: unknown, closedObjects = false): (value: unknown) => boolean { const root = schemas as Record const compiled = new WeakMap() function patternsFor(rule: Exclude) { @@ -120,8 +120,10 @@ export function validator(schemas: unknown, schema: unknown): (value: unknown) = const matched = patterns.filter(([pattern]) => pattern.test(key)) if (property !== undefined && !check(property, record[key])) return false if (matched.some(([, child]) => !check(child, record[key]))) return false - if (property === undefined && matched.length === 0 && typeof rule.additionalProperties === 'object' - && !check(rule.additionalProperties, record[key])) return false + if (property === undefined && matched.length === 0) { + if (closedObjects && rule.additionalProperties === false) return false + if (typeof rule.additionalProperties === 'object' && !check(rule.additionalProperties, record[key])) return false + } } } return true diff --git a/clients/typescript/tasks/proposals.ts b/clients/typescript/tasks/proposals.ts index 7264c39cef..1d93e2d33c 100644 --- a/clients/typescript/tasks/proposals.ts +++ b/clients/typescript/tasks/proposals.ts @@ -70,7 +70,7 @@ export interface ServedApplicationStatus { automaticRetry?: { attempts: number; maximumAttempts: number; scheduled: boolean } mode: 'automatic' | 'manual' reason?: 'package-changed' | 'dependency-outage' | 'lease-expired' | 'application-refused' | 'attempts-exhausted' - recovery?: 'retry' | 'rebase' | 'correct-input' + recovery?: 'retry' | 'rebase' | 'revise' | 'correct-input' state: 'awaiting-review' | 'pending' | 'applying' | 'blocked' | 'applied' | 'cancelled' | 'rejected' } @@ -274,8 +274,11 @@ function rebaseAvailability(words: Words, served: ServedProposal): Availability if (!link.available) return link const links = [...Object.values(served.links), ...Object.values(served.attachments ?? {}).flatMap(slot => Object.values(slot.links))] const changed = served.blockedReason === 'package-changed' || links.some(other => other.availability?.recovery === 'rebase') - // A manual Apply the register refused leaves Revise pointing at corrections, which only a rebase can make. - const refused = served.state === 'submitted' && served.links['revise']?.availability?.recovery === 'correct-input' + const application = served.applicationStatus + const refused = served.state === 'submitted' && (application + ? application.mode === 'manual' && application.state === 'blocked' + && application.reason === 'application-refused' && application.recovery === 'rebase' + : served.links['revise']?.availability?.recovery === 'correct-input') if (!changed && !refused) return unavailable(words, 'not-needed') return { available: true, message: sentence(changed ? 'rebase' : 'rebase-refused', words) } } diff --git a/clients/typescript/tests/acceptance.test.ts b/clients/typescript/tests/acceptance.test.ts index 15ff24fecf..06d99ecc35 100644 --- a/clients/typescript/tests/acceptance.test.ts +++ b/clients/typescript/tests/acceptance.test.ts @@ -66,6 +66,7 @@ for (const { answer, reason, requestInput, options, extra } of [ test('service Proposal start and attach keep the existing HTTP exchange', async () => { const draft = JSON.parse(readFileSync(new URL('./fixtures/tasks/proposal-draft-optional.json', import.meta.url), 'utf8')) const attached = JSON.parse(readFileSync(new URL('./fixtures/tasks/proposal-draft-attached.json', import.meta.url), 'utf8')) + const proposalPath = `/v1/proposals/${draft.id}` const requests: Array<{ method: string; path: string; query: string; headers: Headers; body: RequestInit['body'] }> = [] let view = draft const client = facility({ baseUrl, fetch: async (url, init) => { @@ -80,9 +81,9 @@ test('service Proposal start and attach keep the existing HTTP exchange', async await client.facility.proposals.attach(proposal, 'supporting-document', file) assert.deepEqual(requests.map(({ method, path }) => [method, path]), [ ['POST', '/v1/actions/correct-address/proposals'], - ['GET', '/v1/proposals/prop-1'], - ['PATCH', '/v1/proposals/prop-1/attachments/supporting-document'], - ['GET', '/v1/proposals/prop-1'], + ['GET', proposalPath], + ['PATCH', `${proposalPath}/attachments/supporting-document`], + ['GET', proposalPath], ]) assert.ok(requests.every(({ query }) => query === '?accessProfile=facility-correction-author')) assert.deepEqual(JSON.parse(String(requests[0]?.body)), { input: { city: 'Springfield' } }) diff --git a/clients/typescript/tests/adapter.test.ts b/clients/typescript/tests/adapter.test.ts index 9b9666c609..f50c3b075c 100644 --- a/clients/typescript/tests/adapter.test.ts +++ b/clients/typescript/tests/adapter.test.ts @@ -99,7 +99,7 @@ test('Adapter acquires a fresh bearer per call, reads the effective contract and assert.equal(contract.data.contract.protocolProblems.problems[1].code, 'adapter.contract.unavailable') const person = await client.call('records-get.person', { - path: { record_id: 'person-1' }, + path: { recordId: 'person-1' }, headers: { 'x-registry-adapter-contract': digest }, }) assert.equal(person.data.data.recordId, 'person-1') @@ -157,7 +157,7 @@ test('Adapter writes send generated or caller-supplied Idempotency-Key and optio assert.equal(replayed.idempotencyKey, created.idempotencyKey) const updated = await client.call('records-update.person', { - path: { record_id: 'person-1' }, + path: { recordId: 'person-1' }, body, idempotencyKey: 'caller-update-key', }) @@ -215,7 +215,7 @@ test('Adapter decodes profile and protocol problem+json failures into RegistryEr })) await assert.rejects( - client.call('records-get.person', { path: { record_id: 'missing' } }), + client.call('records-get.person', { path: { recordId: 'missing' } }), (error: unknown) => error instanceof RegistryError && error.kind === 'refused' && error.status === 404 @@ -241,7 +241,7 @@ test('Adapter decodes profile and protocol problem+json failures into RegistryEr await assert.rejects( client.call('records-get.person', { - path: { record_id: 'person-1' }, + path: { recordId: 'person-1' }, headers: { 'x-registry-adapter-contract': digest }, }), (error: unknown) => error instanceof RegistryError @@ -261,7 +261,7 @@ test('Adapter decodes profile and protocol problem+json failures into RegistryEr ) await assert.rejects( - client.call('records-get.person', { path: { record_id: 'person-1' } }), + client.call('records-get.person', { path: { recordId: 'person-1' } }), (error: unknown) => error instanceof RegistryError && error.kind === 'unreachable' && error.status === 503 @@ -357,7 +357,7 @@ test('Adapter readOnly POST classifies dispatch failures and 5xx answers as know function typeChecks(client: Client) { // @ts-expect-error operation IDs come from the Adapter project contract. client.call('records-delete.person') - // @ts-expect-error record_id is required on records-get.person. + // @ts-expect-error recordId is required on records-get.person. client.call('records-get.person') // @ts-expect-error org_unit is required by the person record schema. client.call('records-create.person', { body: { data: { recordId: 'p-1', domainData: { tracked_entity_type: 'person' } } } }) diff --git a/clients/typescript/tests/breg.test.ts b/clients/typescript/tests/breg.test.ts index 18c3c5d7b7..743b2e0eda 100644 --- a/clients/typescript/tests/breg.test.ts +++ b/clients/typescript/tests/breg.test.ts @@ -10,7 +10,7 @@ const input = { contactId: id, email: 'alice@example.org' } const meta = { datasetId: 'directory', recordTypeId: 'contact', registryId: 'local-directory' } const json = (body: unknown) => Response.json(body) -test('BReg continuation keeps the same route and just the profile and skiptoken', async () => { +test('BReg continuation keeps the same route and just the profile and cursor', async () => { let count = 0 const client = make(Client, { baseUrl: 'http://localhost', token: () => 'fixture', @@ -18,16 +18,16 @@ test('BReg continuation keeps the same route and just the profile and skiptoken' const parsed = new URL(String(url)) assert.equal(parsed.pathname, '/v1/records/contacts') if (++count === 1) { - assert.equal(parsed.searchParams.get('$top'), '1') + assert.equal(parsed.searchParams.get('limit'), '1') assert.equal(parsed.searchParams.get('$filter'), "name eq 'Alice'") } else { - assert.deepEqual([...parsed.searchParams], [['accessProfile', 'directory-editor'], ['$skiptoken', 'opaque+/=']]) + assert.deepEqual([...parsed.searchParams], [['accessProfile', 'directory-editor'], ['cursor', 'opaque+/=']]) } return json({ items: [], meta, pageInfo: { nextCursor: count === 1 ? 'opaque+/=' : null } }) }, }) await allPages(cursor => client.records_contact_listPage({ - query: { accessProfile: 'directory-editor', $top: 1, $filter: "name eq 'Alice'" }, + query: { accessProfile: 'directory-editor', limit: 1, $filter: "name eq 'Alice'" }, }, cursor)) assert.equal(count, 2) }) diff --git a/clients/typescript/tests/casework.test.ts b/clients/typescript/tests/casework.test.ts index 0c1ddaa829..cdf5d1d2cf 100644 --- a/clients/typescript/tests/casework.test.ts +++ b/clients/typescript/tests/casework.test.ts @@ -4,8 +4,8 @@ import { Transport } from '../core.ts' import { Client } from '../generated/casework.ts' const id = '00000000-0000-4000-8000-000000000001' -const request = { request_id: id } -const ask = { ...request, ask_id: id } +const request = { requestId: id } +const ask = { ...request, askId: id } const traceId = '0123456789abcdef0123456789abcdef' const traceparent = '00-' + traceId + '-0123456789abcdef-01' @@ -26,7 +26,7 @@ const calls = [ subject: { digest: 'sha256:' + '0'.repeat(64), id, source: 'fixture', type: 'fixture', version: '1' }, }, })], - ['getReviewDecisionDraft', 404, (c: Client) => c.call('getReviewDecisionDraft', { path: { task_id: id } })], + ['getReviewDecisionDraft', 404, (c: Client) => c.call('getReviewDecisionDraft', { path: { taskId: id } })], ['getReviewResult', 404, (c: Client) => c.call('getReviewResult', { path: request })], ['getReviewResult', 410, (c: Client) => c.call('getReviewResult', { path: request })], ] as const diff --git a/clients/typescript/tests/deno/transport.deno.test.ts b/clients/typescript/tests/deno/transport.deno.test.ts index 46e09443bb..e697e11344 100644 --- a/clients/typescript/tests/deno/transport.deno.test.ts +++ b/clients/typescript/tests/deno/transport.deno.test.ts @@ -12,11 +12,18 @@ Deno.test('a generated client calls through Fetch and walks a page', async () => fetch: async (url, init) => { seen.push(String(url)) assert.equal(new Headers(init?.headers).get('authorization'), 'Bearer fixture') - return Response.json({ items: [], meta, pageInfo: { nextCursor: null } }) + return Response.json({ items: [], meta, pageInfo: { nextCursor: seen.length === 1 ? 'next+/=' : null } }) } }) - const page = await client.records_contact_listPage({ query: { accessProfile: 'directory-editor', $top: 5 } }) - assert.deepEqual(page, { items: [], nextCursor: null }) - assert.equal(seen[0], 'https://registry.example.org/v1/records/contacts?accessProfile=directory-editor&%24top=5') + const page = await client.records_contact_listPage({ query: { accessProfile: 'directory-editor', limit: 5 } }) + assert.deepEqual(page, { items: [], nextCursor: 'next+/=' }) + const second = await client.records_contact_listPage({ + query: { accessProfile: 'directory-editor', limit: 5 }, + }, page.nextCursor!) + assert.deepEqual(second, { items: [], nextCursor: null }) + assert.deepEqual(seen, [ + 'https://registry.example.org/v1/records/contacts?accessProfile=directory-editor&limit=5', + 'https://registry.example.org/v1/records/contacts?accessProfile=directory-editor&cursor=next%2B%2F%3D', + ]) }) Deno.test('a path base resolves against the page origin and dot segments are refused', () => { diff --git a/clients/typescript/tests/fixtures/tasks/proposal-application-refused.json b/clients/typescript/tests/fixtures/tasks/proposal-application-refused.json index 17144f6082..4363f12963 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-application-refused.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-application-refused.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", + "status": "awaiting-party", "turn": "party", "submissionVersion": 1, "revision": 5, @@ -26,9 +27,9 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=1", "availability": { - "observedRevision": 3, + "observedRevision": 5, "available": true } } @@ -47,7 +48,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 5, "available": true @@ -57,7 +58,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -70,7 +71,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -83,20 +84,18 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, - "available": false, - "reason": "invalid-input", - "recovery": "correct-input" + "available": true } }, "cancel": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -107,7 +106,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -119,6 +118,7 @@ "mode": "manual", "state": "blocked", "reason": "application-refused", - "recovery": "correct-input" - } + "recovery": "rebase" + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-applied.json b/clients/typescript/tests/fixtures/tasks/proposal-applied.json index 1ff8480d5b..aa1f9a8d5d 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-applied.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-applied.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "applied", + "status": "applied", "turn": "nobody", "submissionVersion": 1, "revision": 8, @@ -18,7 +19,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 8, "available": true @@ -28,7 +29,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -41,7 +42,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -54,7 +55,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -67,7 +68,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -80,7 +81,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -89,5 +90,22 @@ "recovery": "receipt-only" } } + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "applied" + }, + "application": { + "applicationId": "c84775c2-2939-40ad-a11d-20e4b59b029f", + "submissionVersion": 1, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "resultLinks": [ + { + "recordType": "facility", + "recordId": "eddce713-9dfd-4769-b72f-067acb8ccf8b", + "revision": 2 + } + ] } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-approved.json b/clients/typescript/tests/fixtures/tasks/proposal-approved.json index 170129207c..1e9907a107 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-approved.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-approved.json @@ -1,9 +1,10 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", - "turn": "nobody", + "status": "approved", + "turn": "official", "submissionVersion": 1, "revision": 7, "title": "Correct address", @@ -18,7 +19,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 7, "available": true @@ -28,7 +29,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-7\"", "availability": { "observedRevision": 7, @@ -41,7 +42,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-7\"", "availability": { "observedRevision": 7, @@ -54,18 +55,20 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-7\"", "availability": { "observedRevision": 7, - "available": true + "available": false, + "reason": "application-pending", + "recovery": "refresh" } }, "cancel": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-7\"", "availability": { "observedRevision": 7, @@ -76,16 +79,23 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-7\"", "availability": { "observedRevision": 7, - "available": true + "available": false, + "reason": "application-pending", + "recovery": "refresh" } } }, "decision": { "status": "approved", "decidedAt": "2026-11-27T12:00:00Z" + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "pending" } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-cancelled.json b/clients/typescript/tests/fixtures/tasks/proposal-cancelled.json index 0accfce7a1..02f586174c 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-cancelled.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-cancelled.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "cancelled", + "status": "cancelled", "turn": "nobody", "submissionVersion": 1, "revision": 8, @@ -18,7 +19,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 8, "available": true @@ -28,7 +29,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -41,7 +42,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -54,7 +55,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -67,7 +68,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -80,7 +81,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, diff --git a/clients/typescript/tests/fixtures/tasks/proposal-draft-attached.json b/clients/typescript/tests/fixtures/tasks/proposal-draft-attached.json index 3065015f7a..47fc8e2fc9 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-draft-attached.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-draft-attached.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "draft", + "status": "draft", "turn": "party", "submissionVersion": 1, "revision": 4, @@ -26,7 +27,7 @@ "accessProfile": "facility-correction-author", "method": "PATCH", "operation": "upload", - "path": "/v1/proposals/prop-1/attachments/supporting-document", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document", "ifMatch": "\"etag-4\"", "availability": { "observedRevision": 4, @@ -37,9 +38,9 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=1", "availability": { - "observedRevision": 3, + "observedRevision": 4, "available": true } } @@ -58,7 +59,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 4, "available": true @@ -68,7 +69,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-4\"", "availability": { "observedRevision": 4, @@ -79,7 +80,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-4\"", "availability": { "observedRevision": 4, @@ -90,7 +91,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-4\"", "availability": { "observedRevision": 4, @@ -103,7 +104,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-4\"", "availability": { "observedRevision": 4, @@ -114,7 +115,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-4\"", "availability": { "observedRevision": 4, diff --git a/clients/typescript/tests/fixtures/tasks/proposal-draft-no-input.json b/clients/typescript/tests/fixtures/tasks/proposal-draft-no-input.json index 62bd3792c4..3370e4e287 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-draft-no-input.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-draft-no-input.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "draft", + "status": "draft", "turn": "party", "submissionVersion": 1, "revision": 3, @@ -14,7 +15,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 3, "available": true @@ -24,7 +25,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -35,7 +36,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -46,7 +47,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -59,7 +60,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -70,7 +71,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, diff --git a/clients/typescript/tests/fixtures/tasks/proposal-draft-optional.json b/clients/typescript/tests/fixtures/tasks/proposal-draft-optional.json index 206eaef223..97c2ec3842 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-draft-optional.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-draft-optional.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "draft", + "status": "draft", "turn": "party", "submissionVersion": 1, "revision": 3, @@ -26,7 +27,7 @@ "accessProfile": "facility-correction-author", "method": "PATCH", "operation": "upload", - "path": "/v1/proposals/prop-1/attachments/supporting-document", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -41,7 +42,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 3, "available": true @@ -51,7 +52,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -62,7 +63,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -73,7 +74,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -86,7 +87,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -97,7 +98,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, diff --git a/clients/typescript/tests/fixtures/tasks/proposal-draft-revised.json b/clients/typescript/tests/fixtures/tasks/proposal-draft-revised.json new file mode 100644 index 0000000000..4e236305de --- /dev/null +++ b/clients/typescript/tests/fixtures/tasks/proposal-draft-revised.json @@ -0,0 +1,126 @@ +{ + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", + "actionId": "correct-address", + "actionRevision": "rev-a", + "state": "draft", + "status": "draft", + "turn": "party", + "submissionVersion": 2, + "revision": 7, + "title": "Correct address", + "createdAt": "2026-11-27T10:00:00.000000Z", + "input": { + "facilityId": "f-1", + "city": "Springfield" + }, + "attachments": { + "supporting-document": { + "id": "supporting-document", + "required": true, + "maximumBytes": 1048576, + "contentTypes": [ + "application/pdf" + ], + "classification": "internal", + "links": { + "upload": { + "accessProfile": "facility-correction-author", + "method": "PATCH", + "operation": "upload", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document", + "ifMatch": "\"etag-7\"", + "availability": { + "observedRevision": 7, + "available": true + } + }, + "download": { + "accessProfile": "facility-correction-author", + "method": "GET", + "operation": "download", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=2", + "availability": { + "observedRevision": 7, + "available": true + } + } + }, + "value": { + "submissionVersion": 2, + "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "byteSize": 4096, + "contentType": "application/pdf", + "verificationStatus": "notRequired" + } + } + }, + "links": { + "self": { + "accessProfile": "facility-correction-author", + "method": "GET", + "operation": "get", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", + "availability": { + "observedRevision": 7, + "available": true + } + }, + "edit": { + "accessProfile": "facility-correction-author", + "method": "POST", + "operation": "edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", + "ifMatch": "\"etag-7\"", + "availability": { + "observedRevision": 7, + "available": true + } + }, + "submit": { + "accessProfile": "facility-correction-author", + "method": "POST", + "operation": "submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", + "ifMatch": "\"etag-7\"", + "availability": { + "observedRevision": 7, + "available": true + } + }, + "revise": { + "accessProfile": "facility-correction-author", + "method": "POST", + "operation": "revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", + "ifMatch": "\"etag-7\"", + "availability": { + "observedRevision": 7, + "available": false, + "reason": "stale-revision", + "recovery": "receipt-only" + } + }, + "cancel": { + "accessProfile": "facility-correction-author", + "method": "POST", + "operation": "cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", + "ifMatch": "\"etag-7\"", + "availability": { + "observedRevision": 7, + "available": true + } + }, + "rebase": { + "accessProfile": "facility-correction-author", + "method": "POST", + "operation": "rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", + "ifMatch": "\"etag-7\"", + "availability": { + "observedRevision": 7, + "available": true + } + } + } +} diff --git a/clients/typescript/tests/fixtures/tasks/proposal-draft.json b/clients/typescript/tests/fixtures/tasks/proposal-draft.json index d466cf445e..65a3ce8afa 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-draft.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-draft.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "draft", + "status": "draft", "turn": "party", "submissionVersion": 1, "revision": 3, @@ -26,7 +27,7 @@ "accessProfile": "facility-correction-author", "method": "PATCH", "operation": "upload", - "path": "/v1/proposals/prop-1/attachments/supporting-document", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -41,7 +42,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 3, "available": true @@ -51,7 +52,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -62,18 +63,20 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, - "available": true + "available": false, + "reason": "attachment-required", + "recovery": "correct-input" } }, "revise": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -86,7 +89,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -97,7 +100,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, diff --git a/clients/typescript/tests/fixtures/tasks/proposal-list-last.json b/clients/typescript/tests/fixtures/tasks/proposal-list-last.json index 94f2fbc5ee..fd4a4518f2 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-list-last.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-list-last.json @@ -1,28 +1,52 @@ { "items": [ { - "id": "prop-1", + "id": "b28e42eb-71d2-48bc-8055-00fc4b960193", "actionId": "correct-address", "actionRevision": "rev-a", - "state": "applied", - "turn": "nobody", + "state": "draft", + "status": "draft", + "turn": "party", "submissionVersion": 1, - "revision": 8, + "revision": 3, "title": "Correct address", "createdAt": "2026-11-27T10:00:00.000000Z", "input": { "facilityId": "f-1", "city": "Springfield" }, - "attachments": {}, + "attachments": { + "supporting-document": { + "id": "supporting-document", + "required": true, + "maximumBytes": 1048576, + "contentTypes": [ + "application/pdf" + ], + "classification": "internal", + "links": { + "upload": { + "accessProfile": "facility-correction-author", + "method": "PATCH", + "operation": "upload", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193/attachments/supporting-document", + "ifMatch": "\"etag-3\"", + "availability": { + "observedRevision": 3, + "available": true + } + } + } + } + }, "links": { "self": { "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193", "availability": { - "observedRevision": 8, + "observedRevision": 3, "available": true } }, @@ -30,38 +54,36 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", - "ifMatch": "\"etag-8\"", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193/edit", + "ifMatch": "\"etag-3\"", "availability": { - "observedRevision": 8, - "available": false, - "reason": "already-applied", - "recovery": "receipt-only" + "observedRevision": 3, + "available": true } }, "submit": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", - "ifMatch": "\"etag-8\"", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193/submit", + "ifMatch": "\"etag-3\"", "availability": { - "observedRevision": 8, + "observedRevision": 3, "available": false, - "reason": "already-applied", - "recovery": "receipt-only" + "reason": "attachment-required", + "recovery": "correct-input" } }, "revise": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", - "ifMatch": "\"etag-8\"", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193/revise", + "ifMatch": "\"etag-3\"", "availability": { - "observedRevision": 8, + "observedRevision": 3, "available": false, - "reason": "already-applied", + "reason": "stale-revision", "recovery": "receipt-only" } }, @@ -69,26 +91,22 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", - "ifMatch": "\"etag-8\"", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193/cancel", + "ifMatch": "\"etag-3\"", "availability": { - "observedRevision": 8, - "available": false, - "reason": "already-applied", - "recovery": "receipt-only" + "observedRevision": 3, + "available": true } }, "rebase": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", - "ifMatch": "\"etag-8\"", + "path": "/v1/proposals/b28e42eb-71d2-48bc-8055-00fc4b960193/rebase", + "ifMatch": "\"etag-3\"", "availability": { - "observedRevision": 8, - "available": false, - "reason": "already-applied", - "recovery": "receipt-only" + "observedRevision": 3, + "available": true } } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-list.json b/clients/typescript/tests/fixtures/tasks/proposal-list.json index 1bc6037836..5cb2b13d40 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-list.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-list.json @@ -1,10 +1,11 @@ { "items": [ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "draft", + "status": "draft", "turn": "party", "submissionVersion": 1, "revision": 3, @@ -28,7 +29,7 @@ "accessProfile": "facility-correction-author", "method": "PATCH", "operation": "upload", - "path": "/v1/proposals/prop-1/attachments/supporting-document", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -43,7 +44,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 3, "available": true @@ -53,7 +54,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -64,18 +65,20 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, - "available": true + "available": false, + "reason": "attachment-required", + "recovery": "correct-input" } }, "revise": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -88,7 +91,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -99,7 +102,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-3\"", "availability": { "observedRevision": 3, @@ -109,10 +112,11 @@ } }, { - "id": "prop-1", + "id": "a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", + "status": "awaiting-party", "turn": "party", "submissionVersion": 1, "revision": 6, @@ -136,9 +140,9 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7/attachments/supporting-document?submissionVersion=1", "availability": { - "observedRevision": 3, + "observedRevision": 6, "available": true } } @@ -157,7 +161,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7", "availability": { "observedRevision": 6, "available": true @@ -167,7 +171,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7/edit", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -180,7 +184,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7/submit", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -193,7 +197,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7/revise", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -204,7 +208,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7/cancel", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -215,7 +219,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7/rebase", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -225,10 +229,15 @@ }, "decision": { "status": "changes-requested", - "decidedAt": "2026-11-27T11:00:00Z", + "decidedAt": "2026-11-27T11:00:00.000000Z", "publicReason": "Please add the licence number." + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "awaiting-review" } } ], - "nextCursor": "cursor-2" + "nextCursor": "a20a1b52-e04e-4ab2-a2e4-e0fba0fedfb7" } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-package-changed.json b/clients/typescript/tests/fixtures/tasks/proposal-package-changed.json index cf8017cc14..076c8ccfd4 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-package-changed.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-package-changed.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", + "status": "awaiting-party", "turn": "party", "submissionVersion": 1, "revision": 5, @@ -26,9 +27,9 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=1", "availability": { - "observedRevision": 3, + "observedRevision": 5, "available": true } } @@ -47,7 +48,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 5, "available": true @@ -57,7 +58,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -70,7 +71,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -83,7 +84,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -96,7 +97,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -107,7 +108,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -115,5 +116,12 @@ } } }, - "blockedReason": "package-changed" + "blockedReason": "package-changed", + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "blocked", + "reason": "package-changed", + "recovery": "rebase" + } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-rejected.json b/clients/typescript/tests/fixtures/tasks/proposal-rejected.json index 58ecdf52a8..3917beeec5 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-rejected.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-rejected.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "rejected", + "status": "rejected", "turn": "nobody", "submissionVersion": 1, "revision": 8, @@ -18,7 +19,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 8, "available": true @@ -28,7 +29,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -41,7 +42,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -54,7 +55,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -67,7 +68,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -80,7 +81,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-8\"", "availability": { "observedRevision": 8, @@ -93,5 +94,10 @@ "decision": { "status": "rejected", "decidedAt": "2026-11-27T12:00:00Z" + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "rejected" } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-sent-back.json b/clients/typescript/tests/fixtures/tasks/proposal-sent-back.json index bb10c44546..ef090a61c9 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-sent-back.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-sent-back.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", + "status": "awaiting-party", "turn": "party", "submissionVersion": 1, "revision": 6, @@ -26,9 +27,9 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=1", "availability": { - "observedRevision": 3, + "observedRevision": 6, "available": true } } @@ -47,7 +48,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 6, "available": true @@ -57,7 +58,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -70,7 +71,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -83,7 +84,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -94,7 +95,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -105,7 +106,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-6\"", "availability": { "observedRevision": 6, @@ -115,7 +116,12 @@ }, "decision": { "status": "changes-requested", - "decidedAt": "2026-11-27T11:00:00Z", + "decidedAt": "2026-11-27T11:00:00.000000Z", "publicReason": "Please add the licence number." + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "awaiting-review" } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-submitted-stale.json b/clients/typescript/tests/fixtures/tasks/proposal-submitted-stale.json index 40506cf847..e501382f80 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-submitted-stale.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-submitted-stale.json @@ -1,10 +1,11 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", + "status": "in-review", "turn": "official", - "submissionVersion": 1, + "submissionVersion": 2, "revision": 5, "title": "Correct address", "createdAt": "2026-11-27T10:00:00.000000Z", @@ -26,15 +27,15 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=2", "availability": { - "observedRevision": 3, + "observedRevision": 5, "available": true } } }, "value": { - "submissionVersion": 1, + "submissionVersion": 2, "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "byteSize": 4096, "contentType": "application/pdf", @@ -47,7 +48,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 5, "available": true @@ -57,7 +58,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -70,7 +71,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -83,20 +84,18 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, - "available": false, - "reason": "pending-review", - "recovery": "refresh" + "available": true } }, "cancel": { "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -107,12 +106,17 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, "available": true } } + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "awaiting-review" } } diff --git a/clients/typescript/tests/fixtures/tasks/proposal-submitted.json b/clients/typescript/tests/fixtures/tasks/proposal-submitted.json index af87ffc63e..cb29c2e255 100644 --- a/clients/typescript/tests/fixtures/tasks/proposal-submitted.json +++ b/clients/typescript/tests/fixtures/tasks/proposal-submitted.json @@ -1,8 +1,9 @@ { - "id": "prop-1", + "id": "9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "actionId": "correct-address", "actionRevision": "rev-a", "state": "submitted", + "status": "in-review", "turn": "official", "submissionVersion": 1, "revision": 5, @@ -26,9 +27,9 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "download", - "path": "/v1/proposals/prop-1/attachments/supporting-document?submissionVersion=1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/attachments/supporting-document?submissionVersion=1", "availability": { - "observedRevision": 3, + "observedRevision": 5, "available": true } } @@ -47,7 +48,7 @@ "accessProfile": "facility-correction-author", "method": "GET", "operation": "get", - "path": "/v1/proposals/prop-1", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44", "availability": { "observedRevision": 5, "available": true @@ -57,7 +58,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "edit", - "path": "/v1/proposals/prop-1/edit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/edit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -70,7 +71,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "submit", - "path": "/v1/proposals/prop-1/submit", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/submit", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -83,7 +84,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "revise", - "path": "/v1/proposals/prop-1/revise", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/revise", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -94,7 +95,7 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "cancel", - "path": "/v1/proposals/prop-1/cancel", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/cancel", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, @@ -105,12 +106,17 @@ "accessProfile": "facility-correction-author", "method": "POST", "operation": "rebase", - "path": "/v1/proposals/prop-1/rebase", + "path": "/v1/proposals/9a7ce3fb-c931-4d60-8991-7f6d395f0c44/rebase", "ifMatch": "\"etag-5\"", "availability": { "observedRevision": 5, "available": true } } + }, + "effectDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "applicationStatus": { + "mode": "manual", + "state": "awaiting-review" } } diff --git a/clients/typescript/tests/generate-project.test.ts b/clients/typescript/tests/generate-project.test.ts index a56312724b..6491d2a3dc 100644 --- a/clients/typescript/tests/generate-project.test.ts +++ b/clients/typescript/tests/generate-project.test.ts @@ -266,7 +266,7 @@ const page = createRegistryClient({ baseUrl: 'https://registry.example' }) // @ts-expect-error Adapter members are server-only void page.tracker const server = createRegistryServerClient({ baseUrl: 'https://registry.example', token: () => 'fixture' }) -void server.tracker.call('records-get.person', { path: { record_id: 'p1' } }) +void server.tracker.call('records-get.person', { path: { recordId: 'p1' } }) `) checkServiceTypes(dir, 'app/check.ts') // Verify runtime server-only isolation and route prefix dispatch. @@ -290,7 +290,7 @@ void server.tracker.call('records-get.person', { path: { record_id: 'p1' } }) }, }) assert.equal('tracker' in server, true) - const answer = await server.tracker.call('records-get.person', { path: { record_id: 'p1' } }) + const answer = await server.tracker.call('records-get.person', { path: { recordId: 'p1' } }) assert.equal(seenUrl, 'https://registry.example/legacy/v1/records/person/p1') assert.equal(answer.data.data.recordId, 'p1') }) diff --git a/clients/typescript/tests/list.test.ts b/clients/typescript/tests/list.test.ts index 17cad0b1b0..96e8952686 100644 --- a/clients/typescript/tests/list.test.ts +++ b/clients/typescript/tests/list.test.ts @@ -1,7 +1,10 @@ import test from 'node:test' import { make } from './helpers.ts' import assert from 'node:assert/strict' -import { readFileSync } from 'node:fs' +import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { fileURLToPath } from 'node:url' import { generate } from '../generate.ts' import { Client } from './fixtures/breg-list.ts' import { Client as FacilityClient } from '../generated/breg-facility.ts' @@ -114,6 +117,42 @@ test('a continuation sends only the access profile and the cursor', async () => assert.deepEqual(query(urls[0]!), { accessProfile: 'licence-officer', $skiptoken: 'next-1' }) }) +test('a generated BReg client uses declared limit and cursor keys', async t => { + const doc = fixture() + doc.components.parameters.top.name = 'limit' + doc.components.parameters.skiptoken.name = 'cursor' + const directory = mkdtempSync(join(tmpdir(), 'registry-list-pagination-')) + t.after(() => rmSync(directory, { recursive: true, force: true })) + const file = join(directory, 'client.ts') + writeFileSync(file, generate(JSON.stringify(doc), { + breg: true, + coreImport: fileURLToPath(new URL('../core.ts', import.meta.url)), + schemaImport: fileURLToPath(new URL('../schema.ts', import.meta.url)), + })) + const { Client } = await import(file) as typeof import('./fixtures/breg-list.ts') + const urls: URL[] = [] + const fetch: typeof globalThis.fetch = async url => { + urls.push(new URL(String(url))) + return Response.json({ items: [], pageInfo: { nextCursor: null } }) + } + const client = make(Client, { baseUrl, token: () => 'fixture', fetch }) + await Reflect.apply(client.list, client, ['licence', { accessProfile: 'licence-officer', where: { status: 'active' }, limit: 3 }]) + await Reflect.apply(client.list, client, ['licence', { accessProfile: 'licence-officer', cursor: 'opaque+/=' }]) + await assert.rejects(Reflect.apply(client.list, client, ['licence', { + accessProfile: 'licence-officer', cursor: 'opaque+/=', limit: 3, + }]), /Use cursor without first-page query options/u) + // The generated call signature follows the synthetic OpenAPI's query names. + const options = { query: { accessProfile: 'licence-officer', limit: 3, $filter: "status eq 'active'" } } as const + await client.records_licence_listPage(options) + await client.records_licence_listPage(options, 'opaque+/=') + assert.deepEqual(urls.map(query), [ + { accessProfile: 'licence-officer', $filter: "status eq 'active'", limit: '3' }, + { accessProfile: 'licence-officer', cursor: 'opaque+/=' }, + { accessProfile: 'licence-officer', limit: '3', $filter: "status eq 'active'" }, + { accessProfile: 'licence-officer', cursor: 'opaque+/=' }, + ]) +}) + test('a single-profile route sends no access profile', async () => { const { urls, client } = recording(() => Response.json({ items: [], pageInfo: { nextCursor: null } })) await client.list('site', { where: { siteCode: 'S-1' }, orderBy: 'label' }) diff --git a/clients/typescript/tests/live-teardown.test.ts b/clients/typescript/tests/live-teardown.test.ts index 14cf30c97a..dba103003e 100644 --- a/clients/typescript/tests/live-teardown.test.ts +++ b/clients/typescript/tests/live-teardown.test.ts @@ -301,6 +301,52 @@ test('stopChildProcess escalates to SIGKILL when a child ignores SIGTERM and han } }) +test('runLiveSuite requires Deno when requested while preserving the optional local run', async () => { + const { root, stateDir } = makeScratch() + try { + for (const [requireDeno, deno, expectedExit] of [ + [false, undefined, 0], + [true, undefined, 1], + [true, 'deno', 0], + ] as const) { + const testFiles: string[] = [] + const errors: string[] = [] + const logs: string[] = [] + let stops = 0 + const exitCode = await runLiveSuite({ + checkBundle: false, + requireDeno, + signalTarget: new EventEmitter(), + log: message => logs.push(message), + errorLog: message => errors.push(message), + resolveDeno: async () => deno, + runCommand: async (_label, _command, args) => { + testFiles.push(args.at(-1)!) + return true + }, + startEnvironment: async () => ({ + manifest: {} as LiveManifest, + manifestPath: join(root, 'live-manifest.json'), + root, + stateDir, + stop: async () => { stops += 1 }, + }), + }) + + assert.equal(exitCode, expectedExit) + const expectedFiles = ['tests/live/products.live.test.ts'] + if (deno) expectedFiles.push('tests/live/deno/products.live.deno.test.ts') + expectedFiles.push('tests/live/browser.live.test.ts') + assert.deepEqual(testFiles, expectedFiles) + assert.equal(stops, 1) + assert.equal(errors.some(message => message.includes('Deno is required')), expectedExit === 1) + assert.equal(logs.some(message => message.includes('Skipped: deno')), !deno && !requireDeno) + } + } finally { + rmSync(root, { recursive: true, force: true }) + } +}) + test('runLiveSuite reports teardown failure visibly and exits non-zero even when all test matrices pass', async () => { const { root, stateDir } = makeScratch() const errors: string[] = [] diff --git a/clients/typescript/tests/live/harness.ts b/clients/typescript/tests/live/harness.ts index 39ff568a45..0386db3d99 100644 --- a/clients/typescript/tests/live/harness.ts +++ b/clients/typescript/tests/live/harness.ts @@ -883,6 +883,30 @@ function stageMainPlan(root: string, dhis2Origin: string): string { '', ].join('\n')) + // People name roles, and the sibling service.yaml declares each role once. + // The run derives scopes and purposes from the selected profiles. + const serviceRoles = { + apiVersion: 'id.registrystack.org/formats/rstack/service/v1alpha1', + kind: 'RStackService', + roles: { + 'directory-editor': { actorKind: 'human', claims: ['jurisdiction'], accessProfiles: { breg: ['directory-editor'] } }, + 'casework-administrator': { actorKind: 'human', accessProfiles: { casework: ['administrator'] } }, + 'casework-staff': { actorKind: 'human', accessProfiles: { casework: ['staff'] } }, + 'casework-requester': { actorKind: 'service', accessProfiles: { casework: ['requester'] } }, + 'coordinator-starter': { actorKind: 'service', accessProfiles: { coordinator: ['starter-reader'] } }, + 'documents-custodian': { actorKind: 'service', accessProfiles: { documents: ['custodian-app'] } }, + 'documents-citizen': { actorKind: 'human', accessProfiles: { documents: ['citizen'] } }, + 'documents-staff': { actorKind: 'human', accessProfiles: { documents: ['staff'] } }, + 'documents-reader': { actorKind: 'human', accessProfiles: { documents: ['reader'] } }, + 'messaging-case-notices': { actorKind: 'service', accessProfiles: { messaging: ['case-notices'] } }, + 'messaging-operations': { actorKind: 'human', accessProfiles: { messaging: ['operations'] } }, + 'scheduling-reader': { actorKind: 'service', accessProfiles: { scheduling: ['reads'] } }, + 'render-caller': { actorKind: 'service', accessProfiles: { render: ['render'] } }, + 'adapter-records-reader': { actorKind: 'service', accessProfiles: { adapter: ['records-reader'] } }, + 'adapter-records-writer': { actorKind: 'service', accessProfiles: { adapter: ['records-writer'] } }, + }, + } + const devPlan = { apiVersion: 'id.registrystack.org/formats/rstack/dev/v1alpha1', kind: 'RStackDev', @@ -902,180 +926,86 @@ function stageMainPlan(root: string, dhis2Origin: string): string { editor: { subject: 'synthetic-directory-editor', client: 'directory-editor', - grants: { - breg: { - profile: 'directory-editor', - scopes: ['registry:directory:write'], - claims: { - registry_actor_kind: 'human', - registry_purpose: 'directory-administration', - jurisdiction: 'zone-a', - }, - }, - }, + roles: ['directory-editor'], + claims: { breg: { jurisdiction: 'zone-a' } }, + purposes: { breg: 'directory-administration' }, }, 'foreign-editor': { subject: 'synthetic-foreign-editor', client: 'directory-editor', - grants: { - breg: { - profile: 'directory-editor', - scopes: ['registry:directory:write'], - claims: { - registry_actor_kind: 'human', - registry_purpose: 'directory-administration', - jurisdiction: 'zone-b', - }, - }, - }, + roles: ['directory-editor'], + claims: { breg: { jurisdiction: 'zone-b' } }, + purposes: { breg: 'directory-administration' }, }, administrator: { subject: 'administrator', client: 'standalone-workbench', - grants: { - casework: { - profile: 'administrator', - scopes: ['casework:admin'], - claims: { registry_actor_kind: 'human' }, - }, - }, + roles: ['casework-administrator'], }, staff: { subject: 'staff', client: 'standalone-workbench', - grants: { - casework: { - profile: 'staff', - scopes: ['casework:staff'], - claims: { registry_actor_kind: 'human' }, - }, - }, + roles: ['casework-staff'], }, requester: { subject: 'requester', client: 'standalone-requester', - grants: { - casework: { - profile: 'requester', - scopes: ['casework:request'], - }, - }, + roles: ['casework-requester'], }, 'coordinator-caller': { subject: 'starter-reader', client: 'starter-reader', - grants: { - coordinator: { - profile: 'starter-reader', - scopes: ['coordinator:start'], - }, - }, + roles: ['coordinator-starter'], }, custodian: { subject: 'starter-reader', client: 'civil-registry-app', - grants: { - documents: { - profile: 'custodian-app', - scopes: ['documents:custody'], - claims: { registry_actor_kind: 'service' }, - }, - }, + roles: ['documents-custodian'], }, 'doc-citizen': { subject: 'starter-citizen', client: 'citizen-portal', - grants: { - documents: { - profile: 'citizen', - scopes: ['documents:own'], - claims: { registry_actor_kind: 'human' }, - }, - }, + roles: ['documents-citizen'], }, 'doc-staff': { subject: 'starter-staff', client: 'case-portal', - grants: { - documents: { - profile: 'staff', - scopes: ['documents:staff'], - claims: { registry_actor_kind: 'human' }, - }, - }, + roles: ['documents-staff'], }, 'doc-partner': { subject: 'starter-partner', client: 'partner-portal', - grants: { - documents: { - profile: 'reader', - scopes: ['documents:read'], - claims: { registry_actor_kind: 'human' }, - }, - }, + roles: ['documents-reader'], }, 'case-system': { subject: 'case-system', client: 'case-system', - grants: { - messaging: { - profile: 'case-notices', - scopes: ['messaging:send'], - claims: { registry_actor_kind: 'service' }, - }, - }, + roles: ['messaging-case-notices'], }, 'messaging-operator': { subject: 'operator', client: 'operations-console', - grants: { - messaging: { - profile: 'operations', - scopes: ['messaging:operate'], - }, - }, + roles: ['messaging-operations'], }, 'scheduling-reader': { subject: 'starter-reader', client: 'starter-client', - grants: { - scheduling: { - profile: 'reader', - scopes: ['scheduling:read'], - claims: { registry_actor_kind: 'service' }, - }, - }, + roles: ['scheduling-reader'], }, 'render-caller': { subject: 'starter-reader', client: 'render-client', - grants: { - render: { - profile: 'reader', - scopes: ['render:render'], - }, - }, + roles: ['render-caller'], }, 'adapter-reader': { subject: 'adapter-reader', client: 'adapter-reader-client', - grants: { - adapter: { - profile: 'records-reader', - scopes: ['records.read'], - }, - }, + roles: ['adapter-records-reader'], }, 'adapter-writer': { subject: 'adapter-writer', client: 'adapter-writer-client', - grants: { - adapter: { - profile: 'records-writer', - scopes: ['records.write'], - }, - }, + roles: ['adapter-records-writer'], }, }, schemaTestPeople: { @@ -1094,6 +1024,7 @@ function stageMainPlan(root: string, dhis2Origin: string): string { } writeFileSync(join(planDir, 'dev.yaml'), JSON.stringify(devPlan, null, 2) + '\n') + writeFileSync(join(planDir, 'service.yaml'), JSON.stringify(serviceRoles, null, 2) + '\n') writeFileSync(join(planDir, 'dev-journeys.yaml'), JSON.stringify({ apiVersion: 'id.registrystack.org/formats/rstack/journeys/v1alpha1', kind: 'RStackJourneys', diff --git a/clients/typescript/tests/live/products.live.ts b/clients/typescript/tests/live/products.live.ts index 2a8f564d44..d741c6f427 100644 --- a/clients/typescript/tests/live/products.live.ts +++ b/clients/typescript/tests/live/products.live.ts @@ -157,7 +157,7 @@ export function registerServerLiveMatrix( token: () => manifest.tokens.coordinatorCaller, })) const workflow = await client.call('workflowContract', { - path: { workflow: manifest.metadata.coordinatorWorkflow }, + path: { workflowId: manifest.metadata.coordinatorWorkflow }, }) assert.equal(workflow.status, 200) assert.equal(workflow.developmentPeer, true) @@ -180,12 +180,12 @@ export function registerServerLiveMatrix( }) assert.equal(replayed.data.runId, started.data.runId) - const status = await client.call('runStatus', { path: { run: started.data.runId } }) + const status = await client.call('runStatus', { path: { runId: started.data.runId } }) assert.equal(status.data.runId, started.data.runId) const anon = new CoordinatorClient(new Transport({ baseUrl: manifest.products.coordinator, token: () => undefined })) await expectUnauthorized(anon.call('workflowContract', { - path: { workflow: manifest.metadata.coordinatorWorkflow }, + path: { workflowId: manifest.metadata.coordinatorWorkflow }, })) }) @@ -296,7 +296,7 @@ export function registerServerLiveMatrix( assert.ok(created.data.reference.length > 0) const status = await client.call('readSessionStatus', { - path: { reference: created.data.reference }, + path: { sessionReference: created.data.reference }, }) assert.equal(status.status, 200) assert.equal(status.data.status, 'pending') @@ -337,11 +337,11 @@ export function registerServerLiveMatrix( }) assert.equal(receipt.data.id, submitted.data.id) - const fetched = await client.call('getMessage', { path: { message_id: submitted.data.id } }) + const fetched = await client.call('getMessage', { path: { messageId: submitted.data.id } }) assert.equal(fetched.data.id, submitted.data.id) const anon = new MessagingClient(new Transport({ baseUrl: manifest.products.messaging, token: () => undefined })) - await expectUnauthorized(anon.call('getMessage', { path: { message_id: submitted.data.id } })) + await expectUnauthorized(anon.call('getMessage', { path: { messageId: submitted.data.id } })) }) register(`${tag} Scheduling: read offerings and availability, task-grant refusal on keyed hold, and 401 refusal`, async () => { @@ -421,7 +421,7 @@ export function registerServerLiveMatrix( }, } const rendered = await client.call('postV1RenderByType', { - path: { type: manifest.metadata.renderDocumentType }, + path: { documentType: manifest.metadata.renderDocumentType }, body: renderBody, accept: 'application/json', }) @@ -430,7 +430,7 @@ export function registerServerLiveMatrix( assert.ok('pdfDigest' in rendered.data) const replayed = await client.call('postV1RenderByType', { - path: { type: manifest.metadata.renderDocumentType }, + path: { documentType: manifest.metadata.renderDocumentType }, body: renderBody, accept: 'application/json', idempotencyKey: rendered.idempotencyKey, @@ -485,7 +485,7 @@ export function registerServerLiveMatrix( assert.equal(contract.data.digest, manifest.adapter.contractDigest) const person = await reader.call('records-get.person', { - path: { record_id: manifest.adapter.personRecordId }, + path: { recordId: manifest.adapter.personRecordId }, headers: { 'x-registry-adapter-contract': contract.data.digest }, }) assert.equal(person.status, 200) @@ -552,7 +552,7 @@ export function registerServerLiveMatrix( assert.ok(tools.some(tool => tool.name === manifest.metadata.mcpToolName)) const result = await mcp.callTool(manifest.metadata.mcpToolName, { - path: { record_id: manifest.adapter.personRecordId }, + path: { recordId: manifest.adapter.personRecordId }, }) assert.ok(result.structuredContent && typeof result.structuredContent === 'object') const structured = result.structuredContent as { diff --git a/clients/typescript/tests/live/run.ts b/clients/typescript/tests/live/run.ts index a9b7f716b8..1cb80be518 100644 --- a/clients/typescript/tests/live/run.ts +++ b/clients/typescript/tests/live/run.ts @@ -2,6 +2,7 @@ import { spawn, type ChildProcess } from 'node:child_process' import { existsSync, realpathSync } from 'node:fs' import { resolve } from 'node:path' import { fileURLToPath } from 'node:url' +import { parseArgs } from 'node:util' import { ChildStopError, LiveTeardownError, @@ -31,6 +32,7 @@ export type RunCommandFn = ( export interface RunLiveSuiteOptions { readonly checkBundle?: boolean + readonly requireDeno?: boolean readonly startEnvironment?: (options?: StartLiveEnvironmentOptions) => Promise readonly runCommand?: RunCommandFn readonly resolveDeno?: (signal: AbortSignal) => Promise @@ -328,7 +330,12 @@ export async function runLiveSuite(options: RunLiveSuiteOptions = {}): Promise { const signed = new TextEncoder().encode('{ "id" : "evt-1",\n "type": "fixture" }\n') let asked = 0 - let seen: { body: unknown; authorization: string | null; credentials: unknown } | undefined + let seen: { path: string; body: unknown; authorization: string | null; credentials: unknown } | undefined const coordinator = make(Coordinator, { baseUrl: 'https://registry.example', token: () => { asked++; return 'bearer' }, - fetch: async (_url, init) => { - seen = { body: init?.body, authorization: new Headers(init?.headers).get('authorization'), credentials: init?.credentials } + fetch: async (url, init) => { + seen = { path: new URL(String(url)).pathname, body: init?.body, + authorization: new Headers(init?.headers).get('authorization'), credentials: init?.credentials } return new Response(null, { status: 204 }) } }) const headers = { 'webhook-id': '00000000-0000-4000-8000-000000000001', 'webhook-timestamp': '1614265330', 'webhook-signature': 'v1,fixture' } - const answer = await coordinator.call('admitEvent', { path: { workflow: 'w', trigger: 't' }, headers, body: signed }) + const answer = await coordinator.call('admitEvent', { path: { workflowId: 'w', triggerId: 't' }, headers, body: signed }) assert.equal(answer.status, 204) assert.ok(seen?.body instanceof Uint8Array) + assert.equal(seen.path, '/v1/events/w/t') assert.deepEqual(seen.body, signed) assert.equal(seen.authorization, null) assert.equal(seen.credentials, 'omit') assert.equal(asked, 0) - await assert.rejects(coordinator.call('admitEvent', { path: { workflow: 'w', trigger: 't' }, headers, + await assert.rejects(coordinator.call('admitEvent', { path: { workflowId: 'w', triggerId: 't' }, headers, body: { id: 'evt-1' } as never }), { name: 'TypeError', message: 'Signed request body must be the signed bytes' }) }) diff --git a/clients/typescript/tests/oid4vp.test.ts b/clients/typescript/tests/oid4vp.test.ts index 60376e8ddc..d5f9a69d69 100644 --- a/clients/typescript/tests/oid4vp.test.ts +++ b/clients/typescript/tests/oid4vp.test.ts @@ -54,13 +54,13 @@ test('OID4VP acquires a fresh bearer only for protected operations', async () => })) assert.deepEqual((await client.call('createPresentationSession', { body: { policy: 'licence' } })).data, session) - assert.equal((await client.call('readSessionStatus', { path: { reference } })).data.status, 'pending') + assert.equal((await client.call('readSessionStatus', { path: { sessionReference: reference } })).data.status, 'pending') assert.deepEqual((await client.call('readPresentation', { body: { reference, principal } })).data.presentation, {}) assert.equal((await client.call('getDidDocument')).data.id, 'did:web:verifier.example') assert.equal((await client.call('getVerifierKeys')).data.keys[0]?.kid, 'fixture') - assert.equal((await client.call('fetchRequestObject', { path: { request_id: 'req' } })).data.text, 'fixture.jwt') + assert.equal((await client.call('fetchRequestObject', { path: { requestId: 'req' } })).data.text, 'fixture.jwt') assert.deepEqual((await client.call('receiveWalletResponse', { - path: { request_id: 'req' }, body: 'state=fixture&error=access_denied', + path: { requestId: 'req' }, body: 'state=fixture&error=access_denied', })).data, {}) assert.equal((await client.call('health')).data.status, 'ok') assert.equal((await client.call('readiness')).data.status, 'ready') @@ -73,7 +73,7 @@ test('OID4VP returns request-object problem details on RegistryError', async () baseUrl: 'https://verifier.example', fetch: async () => Response.json(problem, { status: 404, headers: { 'content-type': 'application/problem+json' } }), })) - await assert.rejects(client.call('fetchRequestObject', { path: { request_id: 'missing' } }), + await assert.rejects(client.call('fetchRequestObject', { path: { requestId: 'missing' } }), (error: unknown) => error instanceof RegistryError && error.status === 404 && error.problem?.title === problem.title) }) @@ -88,14 +88,21 @@ test('OID4VP exposes wallet OAuth errors and the consumed wallet error category' for (status of [400, 429, 503]) { payload = { error: status === 400 ? 'invalid_request' : 'temporarily_unavailable' } await assert.rejects(client.call('receiveWalletResponse', { - path: { request_id: 'req' }, body: 'state=fixture', + path: { requestId: 'req' }, body: 'state=fixture', }), (error: unknown) => error instanceof RegistryError && error.status === status && error.kind === (status === 503 ? 'unreachable' : 'refused') && error.oauthError === payload.error) } + for (status of [400, 429, 503]) { + payload = { error: status === 400 ? 'invalid_request' : 'temporarily_unavailable', failedCheck: 'rate-limit' } + await assert.rejects(client.call('receiveWalletResponse', { + path: { requestId: 'req' }, body: 'state=fixture', + }), (error: unknown) => error instanceof RegistryError + && error.oauthError === (status === 429 ? payload.error : undefined)) + } status = 429 payload = { error: 'unknown_error' } await assert.rejects(client.call('receiveWalletResponse', { - path: { request_id: 'req' }, body: 'state=fixture', + path: { requestId: 'req' }, body: 'state=fixture', }), (error: unknown) => error instanceof RegistryError && error.kind === 'unexpected' && error.oauthError === undefined) status = 422 diff --git a/clients/typescript/tests/page.test.ts b/clients/typescript/tests/page.test.ts index 5ba0bc7139..7c2f649dce 100644 --- a/clients/typescript/tests/page.test.ts +++ b/clients/typescript/tests/page.test.ts @@ -310,7 +310,7 @@ test('a signed operation omits cookies and keeps a 401 as a signature refusal in const { seen, fetch } = recording(() => new Response(null, { status: 401 })) const coordinator = make(Coordinator, { baseUrl, fetch }) const headers = { 'webhook-id': '00000000-0000-4000-8000-000000000001', 'webhook-timestamp': '1', 'webhook-signature': 'v1,x' } - await assert.rejects(coordinator.call('admitEvent', { path: { workflow: 'w', trigger: 't' }, headers, body: Uint8Array.of(123, 125) }), + await assert.rejects(coordinator.call('admitEvent', { path: { workflowId: 'w', triggerId: 't' }, headers, body: Uint8Array.of(123, 125) }), { reason: 'status', status: 401 }) assert.deepEqual(seen, [{ authorization: null, credentials: 'omit', page: 'page' }]) }) diff --git a/clients/typescript/tests/render.test.ts b/clients/typescript/tests/render.test.ts index 4867ce6250..3ef983e7fe 100644 --- a/clients/typescript/tests/render.test.ts +++ b/clients/typescript/tests/render.test.ts @@ -39,8 +39,8 @@ test('Render renders and seals bytes, correlates calls, and refreshes bearer cre assert.equal((await client.call('getHealth')).data.status, 'ok') assert.equal((await client.call('getReady')).data.status, 'ready') assert.equal((await client.call('getV1DocumentTypes')).data.documentTypes[0]?.id, 'notice') - const rendered = await client.call('postV1RenderByType', { path: { type: 'notice' }, body }) - const sealed = await client.call('postV1SealByType', { path: { type: 'notice' }, body, idempotencyKey: 'caller-key' }) + const rendered = await client.call('postV1RenderByType', { path: { documentType: 'notice' }, body }) + const sealed = await client.call('postV1SealByType', { path: { documentType: 'notice' }, body, idempotencyKey: 'caller-key' }) assert.deepEqual(rendered.data, { bytes: pdf, mediaType: 'application/pdf' }) assert.deepEqual(sealed.data, rendered.data) assert.equal(rendered.idempotencyKey, keys[0]) @@ -59,7 +59,7 @@ test('Render decodes an invalid render request to RegistryError', async () => { } }), })) await assert.rejects(client.call('postV1RenderByType', { - path: { type: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, + path: { documentType: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, }), (error: unknown) => error instanceof RegistryError && error.status === 400 && error.code === problem.code) }) @@ -77,7 +77,7 @@ test('Render bounds negotiated JSON responses and decodes both envelopes', async return Response.json({ ...(String(url).includes('/seal/') ? sealed : envelope), extra }) }, })) - const values = { path: { type: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, + const values = { path: { documentType: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, accept: 'application/json' as const } for (const operation of ['postV1RenderByType', 'postV1SealByType'] as const) { extra = '' @@ -113,7 +113,7 @@ test('Render exposes anonymous OpenAPI and preserves inventory and seal refusals } status = 404 await assert.rejects(client.call('postV1SealByType', { - path: { type: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, + path: { documentType: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, }), (error: unknown) => error instanceof RegistryError && error.kind === 'refused' && error.code === problem.code) }) @@ -132,7 +132,7 @@ test('A moving Render JSON response keeps the whole-call deadline', async () => const stop = setTimeout(() => caller.abort(), 500) try { await assert.rejects(client.call('postV1RenderByType', { - path: { type: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, + path: { documentType: 'notice' }, body: { issuedAt: '2026-01-01T00:00:00Z', data: {} }, accept: 'application/json', signal: caller.signal, }), (error: unknown) => error instanceof RegistryError && error.reason === 'timeout' && error.status === 200) } finally { diff --git a/clients/typescript/tests/service.test.ts b/clients/typescript/tests/service.test.ts index 382d3a85bc..99c287ebcc 100644 --- a/clients/typescript/tests/service.test.ts +++ b/clients/typescript/tests/service.test.ts @@ -443,7 +443,7 @@ for (const withAdapter of [false, true]) { facility: { routePrefix: '/facilities', profile: 'facility-correction-applier' }, } }) const noDefault = create({ baseUrl, fetch }) - const release = { path: { task_id: 'task-1' }, headers: { 'If-Match': '"revision-1"' } } + const release = { path: { taskId: 'task-1' }, headers: { 'If-Match': '"revision-1"' } } const query = { service: 'service-1', location: 'location-1', start: '2026-01-01T00:00:00Z', end: '2026-01-02T00:00:00Z', timeBasis: 'displayed', diff --git a/clients/typescript/tests/tasks-proposals.test.ts b/clients/typescript/tests/tasks-proposals.test.ts index 7c6452907f..de803c2baf 100644 --- a/clients/typescript/tests/tasks-proposals.test.ts +++ b/clients/typescript/tests/tasks-proposals.test.ts @@ -41,7 +41,8 @@ function register(routes: Record, extra: { token?: boolean } = } const ok = (doc: unknown, status = 200) => Response.json(doc, { status }) -const P = '/v1/proposals/prop-1' +const proposalId = '9a7ce3fb-c931-4d60-8991-7f6d395f0c44' +const P = `/v1/proposals/${proposalId}` const calls = (seen: Seen[]) => seen.map(s => `${s.method} ${s.path.replace(P, '')}`) const keyOf = (s: Seen) => s.headers.get('idempotency-key') ?? '' @@ -71,8 +72,8 @@ async function refusal(promise: Promise, code: string, reason?: string) // 1 and 14: commands follow served links, only start/get/list use the options profile. test('get reads the proposal with the options profile and no mutation headers', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }) - const proposal = await commands.get('prop-1') - assert.equal(proposal.id, 'prop-1') + const proposal = await commands.get(proposalId) + assert.equal(proposal.id, proposalId) assert.equal(seen[0]?.query.get('accessProfile'), accessProfile) assert.equal(seen[0]?.headers.has('if-match'), false) assert.equal(seen[0]?.headers.get('authorization'), 'Bearer fixture') @@ -110,17 +111,33 @@ test('list sends the filter and returns plain Proposals with a null cursor on th const { seen, commands } = register({ 'GET /v1/proposals': (_s, n) => ok(fixture(n === 1 ? 'proposal-list' : 'proposal-list-last')), }) - const first = await commands.list({ turn: 'party', state: 'draft', action: 'correct-address', limit: 5 }) - assert.deepEqual(Object.fromEntries(seen[0]!.query), { accessProfile, turn: 'party', state: 'draft', action: 'correct-address', limit: '5' }) + const filters = { turn: 'party', action: 'correct-address', limit: 2 } as const + const query = { accessProfile, turn: 'party', action: 'correct-address', limit: '2' } + const first = await commands.list(filters) + assert.deepEqual(Object.fromEntries(seen[0]!.query), query) assert.equal(first.items.length, 2) - assert.equal(first.nextCursor, 'cursor-2') + assert.equal(first.nextCursor, first.items[1]?.id) + assert.match(first.nextCursor ?? '', /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/u) + assert.equal(first.items[1]?.state, 'submitted') assert.equal(first.items[1]?.sentBack, true) - const last = await commands.list({ cursor: first.nextCursor ?? undefined }) - assert.equal(seen[1]?.query.get('cursor'), 'cursor-2') + const last = await commands.list({ ...filters, cursor: first.nextCursor ?? undefined }) + assert.deepEqual(Object.fromEntries(seen[1]!.query), { ...query, cursor: first.nextCursor }) + assert.equal(last.items.length, 1) assert.equal(last.nextCursor, null) + const items = [...first.items, ...last.items] + const ids = items.map(item => item.id) + assert.deepEqual(ids, [...new Set(ids)].sort()) + for (const item of items) { + assert.equal(item.turn, filters.turn) + assert.equal(item.actionId, filters.action) + assert.equal(item.attachments['supporting-document']?.required, true) + for (const link of Object.values(item.served.links)) { + assert.equal(link.path.split('/')[3], item.id) + } + } }) -// 4: status, row by row (rule: records/2026/2026-11-27-proposal-review-loop/status-rule.md). +// These helper-only inputs exercise the fallback for older responses without a served status. test('proposalStatus follows the derivation row by row', () => { const submitted = fixture('proposal-submitted') const rows: [string, ServedProposal, string][] = [ @@ -130,17 +147,21 @@ test('proposalStatus follows the derivation row by row', () => { ['draft', fixture('proposal-draft-optional'), 'draft'], ['party turn', fixture('proposal-sent-back'), 'awaiting-party'], ['approved decision', fixture('proposal-approved'), 'approved'], - ['official, no application status', submitted, 'in-review'], + ['official, no application status', { ...submitted, applicationStatus: undefined }, 'in-review'], ['official, awaiting review', { ...submitted, applicationStatus: { mode: 'manual', state: 'awaiting-review' } }, 'in-review'], ['official, application pending', { ...submitted, applicationStatus: { mode: 'manual', state: 'pending' } }, 'processing'], - ['nobody, no decision', { ...submitted, turn: 'nobody' }, 'processing'], + ['nobody, no decision', { ...submitted, turn: 'nobody', applicationStatus: undefined }, 'processing'], ['nobody, application applying', { ...submitted, turn: 'nobody', applicationStatus: { mode: 'automatic', state: 'applying' } }, 'processing'], ] - for (const [name, served, status] of rows) assert.equal(proposalStatus(served), status, name) + for (const [name, served, status] of rows) { + const { status: _servedStatus, ...legacy } = served + assert.equal(proposalStatus(legacy), status, name) + } }) test('proposalStatus: the party turn wins over an approved decision', () => { - assert.equal(proposalStatus({ ...fixture('proposal-approved'), turn: 'party' }), 'awaiting-party') + const { status: _servedStatus, ...legacy } = fixture('proposal-approved') + assert.equal(proposalStatus({ ...legacy, turn: 'party' }), 'awaiting-party') }) test('proposalStatus uses a served status of the eight, and derives when the value is unknown', () => { @@ -154,7 +175,7 @@ test('proposalStatus uses a served status of the eight, and derives when the val // 3, 5, 6: the derived view. test('can is total, maps links, and gives a reason and a sentence when a command is not offered', async () => { const { commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }) - const draft = await commands.get('prop-1') + const draft = await commands.get(proposalId) assert.deepEqual(Object.keys(draft.can).sort(), ['attach', 'cancel', 'edit', 'rebase', 'resubmit', 'submit']) for (const name of ['attach', 'cancel', 'edit', 'submit'] as const) { assert.equal(draft.can[name].available, true, name) @@ -170,14 +191,14 @@ test('can is total, maps links, and gives a reason and a sentence when a command test('can.resubmit follows the revise link and carries the served reason and recovery', async () => { const docs = { open: fixture('proposal-sent-back'), stale: fixture('proposal-submitted-stale') } const { commands } = register({ [`GET ${P}`]: (_s, n) => ok(n === 1 ? docs.open : docs.stale) }) - const open = await commands.get('prop-1') + const open = await commands.get(proposalId) assert.equal(open.can.resubmit.available, true) assert.equal(open.can.attach.available, false) assert.equal(open.can.attach.reason, 'not-offered') - const waiting = await commands.get('prop-1') + const waiting = await commands.get(proposalId) assert.deepEqual( { available: waiting.can.resubmit.available, reason: waiting.can.resubmit.reason, recovery: waiting.can.resubmit.recovery }, - { available: false, reason: 'pending-review', recovery: 'refresh' }, + { available: false, reason: 'not-awaiting-party', recovery: undefined }, ) assert.ok(waiting.can.resubmit.message.length > 5) }) @@ -185,12 +206,19 @@ test('can.resubmit follows the revise link and carries the served reason and rec test('sentBack is true only for a submitted proposal whose decision asks for changes', async () => { const docs = ['proposal-sent-back', 'proposal-submitted', 'proposal-approved'] const { commands } = register({ [`GET ${P}`]: (_s, n) => ok(fixture(docs[n - 1]!)) }) - assert.equal((await commands.get('prop-1')).sentBack, true) - assert.equal((await commands.get('prop-1')).sentBack, false) - assert.equal((await commands.get('prop-1')).sentBack, false) + const sentBack = await commands.get(proposalId) + assert.equal(sentBack.sentBack, true) + assert.equal(sentBack.status, 'awaiting-party') + assert.deepEqual(sentBack.decision, { + status: 'changes-requested', + decidedAt: '2026-11-27T11:00:00.000000Z', + publicReason: 'Please add the licence number.', + }) + assert.equal((await commands.get(proposalId)).sentBack, false) + assert.equal((await commands.get(proposalId)).sentBack, false) const draftWithDecision = { ...fixture('proposal-draft-optional'), decision: { status: 'changes-requested', decidedAt: '2026-11-27T11:00:00Z' } } const { commands: other } = register({ [`GET ${P}`]: () => ok(draftWithDecision) }) - assert.equal((await other.get('prop-1')).sentBack, false) + assert.equal((await other.get(proposalId)).sentBack, false) }) test('the attachments view maps value and verification status and carries what the slot accepts', async () => { @@ -206,7 +234,7 @@ test('the attachments view maps value and verification status and carries what t }, }) for (const [index, status] of expected.entries()) { - const view = (await commands.get('prop-1')).attachments['supporting-document']! + const view = (await commands.get(proposalId)).attachments['supporting-document']! assert.equal(view.status, status, `row ${index}`) assert.equal(view.required, true) assert.deepEqual(view.accepts, { contentTypes: ['application/pdf'], maximumBytes: 1048576 }) @@ -217,10 +245,10 @@ test('the attachments view maps value and verification status and carries what t test('a Proposal is plain data: it survives structuredClone and a JSON round trip', async () => { const { commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-attached')) }) - const proposal = await commands.get('prop-1') + const proposal = await commands.get(proposalId) assert.deepEqual(structuredClone(proposal), proposal) assert.deepEqual(JSON.parse(JSON.stringify(proposal)), proposal) - const minimal = await register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-no-input')) }).commands.get('prop-1') + const minimal = await register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-no-input')) }).commands.get(proposalId) assert.deepEqual(JSON.parse(JSON.stringify(minimal)), minimal) assert.equal('input' in minimal, false) }) @@ -232,7 +260,7 @@ test('edit merges into the readable input, sends the link condition and a derive [`GET ${P}`]: () => ok(fixture('proposal-draft-attached')), [`POST ${P}/edit`]: () => ok(fixture('proposal-draft-attached')), }) - const p = (await register({ [`GET ${P}`]: () => ok(draft) }).commands.get('prop-1')) + const p = (await register({ [`GET ${P}`]: () => ok(draft) }).commands.get(proposalId)) const view = await scripted.commands.edit(p, { city: 'Shelbyville' }) assert.deepEqual(calls(scripted.seen), ['POST /edit', 'GET ']) const [edit] = scripted.seen @@ -245,7 +273,7 @@ test('edit merges into the readable input, sends the link condition and a derive }) test('the derived key repeats for the same command and differs for another body', async () => { - const p = await register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }).commands.get('prop-1') + const p = await register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }).commands.get(proposalId) const keys: string[] = [] for (const city of ['A', 'A', 'B']) { const { seen, commands } = register({ @@ -261,7 +289,7 @@ test('the derived key repeats for the same command and differs for another body' test('edit refuses before sending when the grant cannot read the input', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-no-input')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await refusal(commands.edit(p, { city: 'X' }), 'client.inputs-not-readable') assert.equal(seen.length, 1, 'only the get was sent') }) @@ -271,7 +299,7 @@ test('a missing link refuses with client.command-unavailable and not-offered, wi const doc = fixture('proposal-draft-optional') delete doc.links['submit'] const { seen, commands } = register({ [`GET ${P}`]: () => ok(doc) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 const error = await refusal(commands.submit(p), 'client.command-unavailable', 'not-offered') assert.match(error.detail ?? '', /not offered/i) @@ -280,7 +308,7 @@ test('a missing link refuses with client.command-unavailable and not-offered, wi test('a command the state does not allow refuses with the served reason, without a request', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-submitted')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 await refusal(commands.submit(p), 'client.command-unavailable', 'stale-revision') await refusal(commands.edit(p, {}), 'client.command-unavailable', 'stale-revision') @@ -289,8 +317,13 @@ test('a command the state does not allow refuses with the served reason, without }) test('a link the register marks unavailable refuses with its reason and recovery', async () => { - const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-submitted-stale')) }) - const p = await commands.get('prop-1') + // Deliberate unavailable-link variant for the helper's reason propagation. + const doc = fixture('proposal-submitted-stale') + doc.links['revise']!.availability = { + available: false, observedRevision: doc.revision, reason: 'pending-review', recovery: 'refresh', + } + const { seen, commands } = register({ [`GET ${P}`]: () => ok(doc) }) + const p = await commands.get(proposalId) seen.length = 0 const error = await refusal(commands.resubmit(p), 'client.command-unavailable', 'pending-review') assert.equal(error.problem?.['recovery'], 'refresh') @@ -301,7 +334,7 @@ test('a command link that carries a different operation than its name is refused const doc = fixture('proposal-draft-optional') doc.links['submit']!.operation = 'apply' const { seen, commands } = register({ [`GET ${P}`]: () => ok(doc) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 await refusal(commands.submit(p), 'client.link-operation') assert.equal(seen.length, 0) @@ -310,7 +343,7 @@ test('a command link that carries a different operation than its name is refused // 9: attach. test('attach checks the slot, the type and the size before sending', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 await refusal(commands.attach(p, 'nope', pdf()), 'client.unknown-slot') const type = await refusal(commands.attach(p, 'supporting-document', new Blob(['x'], { type: 'image/png' })), 'client.file-type') @@ -330,7 +363,7 @@ test('attach sends the bytes with the slot link condition, the file type and a d [`GET ${P}`]: () => ok(doc), [`PATCH ${P}/attachments/supporting-document`]: () => { doc = fixture('proposal-draft-attached'); return ok(doc) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) const file = pdf(6) const view = await commands.attach(p, 'supporting-document', file) const patch = seen.find(s => s.method === 'PATCH')! @@ -348,7 +381,7 @@ test('attach infers PDF from an untyped filename and sends the resolved content [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')), [`PATCH ${P}/attachments/supporting-document`]: () => ok(fixture('proposal-draft-attached')), }) - const draft = await commands.get('prop-1') + const draft = await commands.get(proposalId) const file = new File(['bytes'], 'support.PDF') assert.equal(file.type, '') await commands.attach(draft, 'supporting-document', file) @@ -369,13 +402,13 @@ test('attach normalises JPEG aliases and refuses a PDF filename on a PNG-only sl }, }, { accessProfile }) slot.contentTypes = ['image/jpeg'] - const jpeg = await commands.get('prop-1') + const jpeg = await commands.get(proposalId) for (const alias of ['image/jpg', 'image/pjpeg']) { await commands.attach(jpeg, 'supporting-document', new File(['x'], 'photo.unknown', { type: alias })) } assert.deepEqual(contentTypes, ['image/jpeg', 'image/jpeg']) slot.contentTypes = ['image/png'] - const png = await commands.get('prop-1') + const png = await commands.get(proposalId) const error = await refusal(commands.attach(png, 'supporting-document', new File(['x'], 'support.pdf')), 'client.file-type') assert.match(error.detail!, /accepts image\/png/u) assert.equal(contentTypes.length, 2) @@ -388,7 +421,7 @@ test('the attach key follows the file bytes', async () => { [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')), [`PATCH ${P}/attachments/supporting-document`]: () => ok(fixture('proposal-draft-attached')), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await commands.attach(p, 'supporting-document', new Blob([new Uint8Array(4).fill(fill)], { type: 'application/pdf' })) keys.push(keyOf(seen.find(s => s.method === 'PATCH')!)) } @@ -403,7 +436,7 @@ test('submit and cancel send an empty body with their own link condition', async [`POST ${P}/submit`]: () => ok(fixture('proposal-submitted')), [`POST ${P}/cancel`]: () => ok(fixture('proposal-cancelled')), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await commands.submit(p) const submit = seen.find(s => s.path.endsWith('/submit'))! assert.equal(submit.headers.get('if-match'), '"etag-3"') @@ -412,7 +445,7 @@ test('submit and cancel send an empty body with their own link condition', async [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')), [`POST ${P}/cancel`]: () => ok(fixture('proposal-cancelled')), }) - const view = await other.cancel(await other.get('prop-1')) + const view = await other.cancel(await other.get(proposalId)) assert.equal(seenCancel.find(s => s.path.endsWith('/cancel'))?.headers.get('if-match'), '"etag-3"') assert.equal(view.status, 'draft', 'the view is the document read again, not the command answer') }) @@ -420,6 +453,25 @@ test('submit and cancel send an empty body with their own link condition', async // 10: resubmit. const nextVersion = (d: ServedProposal): ServedProposal => ({ ...d, submissionVersion: d.submissionVersion + 1 }) +function mockNextRevision(previous: ServedProposal, updated: ServedProposal): ServedProposal { + const view = { ...updated, revision: previous.revision + 1, submissionVersion: previous.submissionVersion } + const links = [...Object.values(view.links)] + for (const slot of Object.values(view.attachments ?? {})) { + if (slot.value) slot.value.submissionVersion = view.submissionVersion + if (slot.links['download']) { + slot.links['download'].path = slot.links['download'].path.replace( + /submissionVersion=\d+/u, `submissionVersion=${view.submissionVersion}`, + ) + } + links.push(...Object.values(slot.links)) + } + for (const link of links) { + if (link.ifMatch) link.ifMatch = `"etag-${view.revision}"` + if (link.availability) link.availability.observedRevision = view.revision + } + return view +} + interface ResubmitOptions { failAttachOnce?: boolean; failSubmitOnce?: boolean; loseSubmitAnswerOnce?: boolean; ignoreRevisedInput?: boolean; sha256?: string } // A register that moves a sent-back proposal through revise, attach, edit and submit, one @@ -435,26 +487,34 @@ function resubmitServer(options: ResubmitOptions = {}) { [`POST ${P}/revise`]: s => { count.revise++ // Revise carries the previous round's attachments forward. - const revised = { ...nextVersion(fixture('proposal-draft-optional')), input: options.ignoreRevisedInput ? doc.input : sentInput(s) ?? doc.input } + const revised = { ...fixture('proposal-draft-revised'), input: options.ignoreRevisedInput ? doc.input : sentInput(s) ?? doc.input } const carried = doc.attachments?.['supporting-document']?.value - if (carried) revised.attachments!['supporting-document']!.value = carried + const slot = revised.attachments!['supporting-document']! + if (carried) slot.value = { ...carried, submissionVersion: revised.submissionVersion } + else { + delete slot.value + delete slot.links['download'] + revised.links['submit']!.availability = { + available: false, observedRevision: revised.revision, reason: 'attachment-required', recovery: 'correct-input', + } + } doc = revised return ok(doc) }, [`PATCH ${P}/attachments/supporting-document`]: () => { count.patch++ if (options.failAttachOnce && !failed.attach) { failed.attach = true; return new Response(null, { status: 503 }) } - const attached = { ...nextVersion(fixture('proposal-draft-attached')), input: doc.input } + const attached = mockNextRevision(doc, { ...fixture('proposal-draft-attached'), input: doc.input }) if (options.sha256) attached.attachments!['supporting-document']!.value!.sha256 = options.sha256 doc = attached return ok(doc) }, - [`POST ${P}/edit`]: s => { count.edit++; doc = { ...doc, input: sentInput(s) }; return ok(doc) }, + [`POST ${P}/edit`]: s => { count.edit++; doc = mockNextRevision(doc, { ...doc, input: sentInput(s) }); return ok(doc) }, [`POST ${P}/cancel`]: () => ok(fixture('proposal-cancelled')), [`POST ${P}/submit`]: () => { count.submit++ if (options.failSubmitOnce && !failed.submit) { failed.submit = true; return new Response(null, { status: 503 }) } - doc = { ...nextVersion(fixture('proposal-submitted')), input: doc.input } + doc = mockNextRevision(doc, { ...fixture('proposal-submitted'), input: doc.input }) if (options.loseSubmitAnswerOnce && !failed.lost) { failed.lost = true; return new Response(null, { status: 503 }) } return ok(doc) }, @@ -474,14 +534,14 @@ const changed = { city: 'Shelbyville' } test('resubmit reads the register, revises, attaches, edits only when needed, then submits', async () => { const server = resubmitServer({ ignoreRevisedInput: true }) - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) server.seen.length = 0 const view = await server.commands.resubmit(p, { changes: changed, files: { 'supporting-document': pdf() } }) assert.deepEqual(calls(server.seen), [ 'GET ', 'POST /revise', 'GET ', 'PATCH /attachments/supporting-document', 'GET ', 'POST /edit', 'GET ', 'POST /submit', 'GET ', ]) const writes = writesOf(server.seen) - assert.deepEqual(writes.map(s => s.headers.get('if-match')), ['"etag-6"', '"etag-3"', '"etag-4"', '"etag-4"']) + assert.deepEqual(writes.map(s => s.headers.get('if-match')), ['"etag-6"', '"etag-7"', '"etag-8"', '"etag-9"']) assert.deepEqual(JSON.parse(String(writes[0]?.body)), { input: { facilityId: 'f-1', city: 'Shelbyville' } }) assert.equal(new Set(writes.map(keyOf)).size, 4, 'each step has its own key') for (const write of writes) assert.match(keyOf(write), /^rc1-/) @@ -490,12 +550,12 @@ test('resubmit reads the register, revises, attaches, edits only when needed, th test('resubmit skips the edit when the revised document already holds the changes, and sends {} without changes', async () => { const withChanges = resubmitServer() - const p = await withChanges.commands.get('prop-1') + const p = await withChanges.commands.get(proposalId) withChanges.seen.length = 0 await withChanges.commands.resubmit(p, { changes: changed }) assert.deepEqual(calls(withChanges.seen).filter(c => !c.startsWith('GET')), ['POST /revise', 'POST /submit']) const plain = resubmitServer() - const q = await plain.commands.get('prop-1') + const q = await plain.commands.get(proposalId) plain.seen.length = 0 await plain.commands.resubmit(q) assert.deepEqual(JSON.parse(String(writesOf(plain.seen)[0]?.body)), {}) @@ -503,7 +563,7 @@ test('resubmit skips the edit when the revised document already holds the change test('resubmit removes an input that a change sets to undefined', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) server.seen.length = 0 await server.commands.resubmit(p, { changes: { city: undefined } }) assert.deepEqual(JSON.parse(String(writesOf(server.seen)[0]?.body)), { input: { facilityId: 'f-1' } }) @@ -514,7 +574,7 @@ test('resubmit removes an input that a change sets to undefined', async () => { test('resubmit refuses a bad file before the first write', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) server.seen.length = 0 await refusal(server.commands.resubmit(p, { files: { 'supporting-document': new Blob(['x'], { type: 'image/png' }) } }), 'client.file-type') await refusal(server.commands.resubmit(p, { files: { nope: pdf() } }), 'client.unknown-slot') @@ -523,22 +583,25 @@ test('resubmit refuses a bad file before the first write', async () => { test('resubmit is available only while the party is to act, and says so', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-submitted')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) assert.equal(p.served.links['revise']?.availability?.available, true, 'the register offers revise in review') assert.deepEqual([p.can.resubmit.available, p.can.resubmit.reason], [false, 'not-awaiting-party']) assert.ok(p.can.resubmit.message.length > 5) seen.length = 0 await refusal(commands.resubmit(p), 'client.command-unavailable', 'not-awaiting-party') assert.equal(writesOf(seen).length, 0) - const approved = await register({ [`GET ${P}`]: () => ok(fixture('proposal-approved')) }).commands.get('prop-1') - assert.equal(approved.can.resubmit.reason, 'not-awaiting-party') - const sentBack = await register({ [`GET ${P}`]: () => ok(fixture('proposal-sent-back')) }).commands.get('prop-1') + const approved = await register({ [`GET ${P}`]: () => ok(fixture('proposal-approved')) }).commands.get(proposalId) + assert.deepEqual( + [approved.can.resubmit.reason, approved.can.resubmit.recovery], + ['application-pending', 'refresh'], + ) + const sentBack = await register({ [`GET ${P}`]: () => ok(fixture('proposal-sent-back')) }).commands.get(proposalId) assert.equal(sentBack.can.resubmit.available, true) }) test('two concurrent resubmit calls with the same correction make one revise and one submit', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const [a, b] = await Promise.all([server.commands.resubmit(p, { changes: changed }), server.commands.resubmit(p, { changes: changed })]) assert.deepEqual([server.count.revise, server.count.submit], [1, 1]) assert.equal(a.status, 'in-review') @@ -547,7 +610,7 @@ test('two concurrent resubmit calls with the same correction make one revise and test('two different concurrent corrections: the second is refused, not reported as done', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const [a, b] = await Promise.allSettled([server.commands.resubmit(p, { changes: { city: 'A' } }), server.commands.resubmit(p, { changes: { city: 'B' } })]) assert.equal(a.status, 'fulfilled') assert.equal(b.status, 'rejected') @@ -557,7 +620,7 @@ test('two different concurrent corrections: the second is refused, not reported test('a copy older than a later round is refused', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) server.setDoc({ ...fixture('proposal-submitted'), submissionVersion: 3 }) server.seen.length = 0 await staleCopy(server.commands.resubmit(p, { changes: changed })) @@ -566,7 +629,7 @@ test('a copy older than a later round is refused', async () => { test("another tab's different correction is refused, not overwritten", async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) server.setDoc({ ...nextVersion(fixture('proposal-draft-optional')), input: { facilityId: 'f-1', city: 'Other' } }) server.seen.length = 0 await staleCopy(server.commands.resubmit(p, { changes: changed })) @@ -575,7 +638,7 @@ test("another tab's different correction is refused, not overwritten", async () test('a refused stale resubmit does not make the register copy this instance\'s own', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const later = { ...nextVersion(fixture('proposal-submitted')), revision: 9, input: { facilityId: 'f-1', city: 'Other' } } for (const link of Object.values(later.links)) if (link.ifMatch) link.ifMatch = '"etag-9"' server.setDoc(later) @@ -587,7 +650,7 @@ test('a refused stale resubmit does not make the register copy this instance\'s test('without changes, a draft is resumed only when nothing else was edited and given files are held', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) server.setDoc({ ...nextVersion(fixture('proposal-draft-optional')), input: { facilityId: 'f-1', city: 'Half-edited' } }) server.seen.length = 0 await staleCopy(server.commands.resubmit(p)) @@ -601,7 +664,7 @@ test('without changes, a draft is resumed only when nothing else was edited and test('a plain retry with the same file resumes after a revise landed and the attach failed', async () => { const server = resubmitServer({ failAttachOnce: true }) - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const options = { files: { 'supporting-document': pdf() } } await assert.rejects(server.commands.resubmit(p, options), { status: 503 }) const view = await server.commands.resubmit(p, options) @@ -611,7 +674,7 @@ test('a plain retry with the same file resumes after a revise landed and the att test('a draft whose slot holds a third file is refused as another tab\'s upload', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const draft = { ...nextVersion(fixture('proposal-draft-attached')), input: { ...p.input } } draft.attachments!['supporting-document']!.value!.sha256 = 'c'.repeat(64) server.setDoc(draft) @@ -623,7 +686,7 @@ test('a draft whose slot holds a third file is refused as another tab\'s upload' test('resuming from a draft whose input cannot be read is refused', async () => { const server = resubmitServer() - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const hidden = nextVersion(fixture('proposal-draft-optional')) delete hidden.input server.setDoc(hidden) @@ -634,7 +697,7 @@ test('resuming from a draft whose input cannot be read is refused', async () => test('a retry after a submit that landed but lost its answer returns the submitted document', async () => { const server = resubmitServer({ loseSubmitAnswerOnce: true }) - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) await assert.rejects(server.commands.resubmit(p, { changes: changed }), { status: 503 }) const view = await server.commands.resubmit(p, { changes: changed }) assert.equal(view.state, 'submitted') @@ -645,7 +708,7 @@ test('a retry after a submit that landed but lost its answer returns the submitt test('a retry after a failure between revise and submit matches the resolved type on the draft', async () => { const file = new File([pdf()], 'support.pdf') const server = resubmitServer({ failSubmitOnce: true, sha256: await hex(file) }) - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const options = { changes: changed, files: { 'supporting-document': file } } await assert.rejects(server.commands.resubmit(p, options), { status: 503 }) const view = await server.commands.resubmit(p, options) @@ -656,7 +719,7 @@ test('a retry after a failure between revise and submit matches the resolved typ test('a fresh instance after a failure in the middle continues from the draft', async () => { const server = resubmitServer({ failAttachOnce: true }) - const p = await server.commands.get('prop-1') + const p = await server.commands.get(proposalId) const options = { changes: changed, files: { 'supporting-document': pdf() } } await assert.rejects(server.commands.resubmit(p, options), { status: 503 }) const reloaded = proposalCommands(server.client, { accessProfile }) @@ -679,7 +742,7 @@ test('two quick submits make one submit and one clean refusal, never a stale err return ok(doc) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) events.length = 0 const [a, b] = await Promise.allSettled([commands.submit(p), commands.submit(p)]) assert.equal(a.status, 'fulfilled') @@ -696,7 +759,7 @@ test('a queued write uses the newest document this instance has seen, not the st [`GET ${P}`]: () => ok(served), [`POST ${P}/edit`]: () => { served = fixture('proposal-draft-attached'); return ok(served) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 await Promise.all([commands.edit(p, { city: 'A' }), commands.edit(p, { city: 'B' })]) const edits = seen.filter(s => s.path.endsWith('/edit')) @@ -709,14 +772,14 @@ test('writes on different proposals do not wait for each other', async () => { const gate = new Promise(resolve => { release = resolve }) const second = fixture('proposal-draft-optional') second.id = 'prop-2' - for (const link of Object.values(second.links)) link.path = link.path.replace('prop-1', 'prop-2') + for (const link of Object.values(second.links)) link.path = link.path.replace(proposalId, 'prop-2') const { commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')), 'GET /v1/proposals/prop-2': () => ok(second), [`POST ${P}/submit`]: async () => { await gate; return ok(fixture('proposal-submitted')) }, 'POST /v1/proposals/prop-2/submit': () => ok(fixture('proposal-submitted')), }) - const one = await commands.get('prop-1') + const one = await commands.get(proposalId) const two = await commands.get('prop-2') const slow = commands.submit(one) const fast = await commands.submit(two) @@ -741,7 +804,7 @@ test('download returns a Blob with the stored type when the register answers wit [`GET ${P}`]: () => ok(doc), [`GET ${P}/attachments/supporting-document`]: () => new Response(bytes, { headers: { 'Content-Type': 'application/pdf' } }), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) const blob = await commands.download(p, 'supporting-document') assert.equal(blob.type, 'application/pdf') assert.deepEqual(new Uint8Array(await blob.arrayBuffer()), bytes) @@ -756,7 +819,7 @@ test('download returns a Blob when the register answers with octet-stream', asyn [`GET ${P}`]: () => ok(doc), [`GET ${P}/attachments/supporting-document`]: () => new Response(new Uint8Array([1, 2, 3]), { headers: { 'Content-Type': 'application/octet-stream' } }), }) - const blob = await commands.download(await commands.get('prop-1'), 'supporting-document') + const blob = await commands.download(await commands.get(proposalId), 'supporting-document') assert.equal(blob.type, 'application/octet-stream') assert.deepEqual(new Uint8Array(await blob.arrayBuffer()), new Uint8Array([1, 2, 3])) }) @@ -771,7 +834,7 @@ test('download keeps only a short list of safe served types', async () => { }, } const commands = proposalCommands(stub, { accessProfile }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) const seen: string[] = [] for (const served of ['application/pdf', 'image/png', 'image/jpeg', 'text/html', 'image/svg+xml']) { types.push(served) @@ -791,7 +854,7 @@ test('download caps the answer at the slot size and checks size and digest befor }, } const commands = proposalCommands(stub, { accessProfile }) - await commands.download(await commands.get('prop-1'), 'supporting-document') + await commands.download(await commands.get(proposalId), 'supporting-document') assert.equal(calls.at(-1)?.maxResponseBytes, 1048576) }) @@ -801,7 +864,7 @@ test('download throws too-large for a body over the slot size', async () => { [`GET ${P}`]: () => ok(doc), [`GET ${P}/attachments/supporting-document`]: () => new Response(new Uint8Array(1048577), { headers: { 'Content-Type': 'application/octet-stream' } }), }) - await assert.rejects(commands.download(await commands.get('prop-1'), 'supporting-document'), { reason: 'too-large' }) + await assert.rejects(commands.download(await commands.get(proposalId), 'supporting-document'), { reason: 'too-large' }) }) test('download throws client.content-digest when the bytes do not match the served digest or size', async () => { @@ -811,7 +874,7 @@ test('download throws client.content-digest when the bytes do not match the serv [`GET ${P}`]: () => ok(doc), [`GET ${P}/attachments/supporting-document`]: () => new Response(body, { headers: { 'Content-Type': 'application/octet-stream' } }), }) - await assert.rejects(commands.download(await commands.get('prop-1'), 'supporting-document'), + await assert.rejects(commands.download(await commands.get(proposalId), 'supporting-document'), (error: unknown) => error instanceof RegistryError && error.code === 'client.content-digest' && error.kind === 'unexpected' && error.reason === 'schema' && (onScreen(error), true)) } @@ -821,9 +884,9 @@ test('download refuses a link that names no submission version as an unexpected const doc = fixture('proposal-draft-attached') const slot = doc.attachments!['supporting-document']! delete slot.value - slot.links['download']!.path = '/v1/proposals/prop-1/attachments/supporting-document' + slot.links['download']!.path = `/v1/proposals/${proposalId}/attachments/supporting-document` const { seen, commands } = register({ [`GET ${P}`]: () => ok(doc) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 const error = await refusal(commands.download(p, 'supporting-document'), 'client.link-operation') assert.equal(describeError(error), clientSentences['client.link-operation']) @@ -832,7 +895,7 @@ test('download refuses a link that names no submission version as an unexpected test('download refuses an unknown slot and a slot without a download link', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 await refusal(commands.download(p, 'nope'), 'client.unknown-slot') await refusal(commands.download(p, 'supporting-document'), 'client.command-unavailable', 'not-offered') @@ -842,11 +905,11 @@ test('download refuses an unknown slot and a slot without a download link', asyn // signal and page mode. test('an aborted signal reaches the call', async () => { const { commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) const controller = new AbortController() controller.abort() await assert.rejects(commands.submit(p, { signal: controller.signal }), { reason: 'aborted' }) - await assert.rejects(commands.get('prop-1', { signal: controller.signal }), { reason: 'aborted' }) + await assert.rejects(commands.get(proposalId, { signal: controller.signal }), { reason: 'aborted' }) }) test('page mode sends no bearer credential and cookies to the same origin only', async () => { @@ -854,7 +917,7 @@ test('page mode sends no bearer credential and cookies to the same origin only', [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')), [`POST ${P}/submit`]: () => ok(fixture('proposal-submitted')), }, { token: false }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await commands.submit(p) for (const s of seen) { assert.equal(s.headers.has('authorization'), false) @@ -873,7 +936,7 @@ test('the helper accepts the facility and the minimal generated clients', async const minimal = new Minimal(new Transport({ baseUrl, token: () => 'fixture', fetch: async () => ok(fixture('proposal-draft-optional')) })) const commands = proposalCommands(minimal, { accessProfile: 'directory-editor' }) assert.equal(typeof acceptsGeneratedClients, 'function') - await assert.doesNotReject(commands.get('prop-1')) + await assert.doesNotReject(commands.get(proposalId)) }) test('onProgress goes unchanged to the byte transfer calls only', async () => { @@ -891,7 +954,7 @@ test('onProgress goes unchanged to the byte transfer calls only', async () => { } const commands = proposalCommands(stub, { accessProfile }) const onProgress = () => {} - await commands.resubmit(await commands.get('prop-1'), { files: { 'supporting-document': pdf() }, onProgress }) + await commands.resubmit(await commands.get(proposalId), { files: { 'supporting-document': pdf() }, onProgress }) const byOperation = Object.fromEntries(recorded.map(r => [r.operation, r.onProgress])) assert.equal(byOperation['proposals.attachments.supporting-document.patch'], onProgress) assert.equal(byOperation['proposals.revise'], undefined) @@ -899,11 +962,11 @@ test('onProgress goes unchanged to the byte transfer calls only', async () => { recorded.length = 0 const later = proposalCommands(stub, { accessProfile }) doc = await holding(new Uint8Array([1])) - await later.download(await later.get('prop-1'), 'supporting-document', { onProgress }) + await later.download(await later.get(proposalId), 'supporting-document', { onProgress }) assert.equal(recorded.find(r => r.operation.startsWith('proposals.attachments.') && r.operation.endsWith('.get'))?.onProgress, onProgress) doc = fixture('proposal-draft-optional') recorded.length = 0 - await later.attach(await later.get('prop-1'), 'supporting-document', pdf(), { onProgress }) + await later.attach(await later.get(proposalId), 'supporting-document', pdf(), { onProgress }) assert.equal(recorded.find(r => r.operation.endsWith('.patch'))?.onProgress, onProgress) }) @@ -916,7 +979,7 @@ test('start keeps its own key and reports a saved change when the read after it const error = await commands.start('correct-address', {}).then(() => assert.fail('expected an error'), (e: unknown) => e) assert.ok(error instanceof RegistryError) assert.equal(error.problem?.['code'], 'client.read-after-write') - assert.equal(error.problem?.['proposalId'], 'prop-1') + assert.equal(error.problem?.['proposalId'], proposalId) assert.equal(error.kind, 'unreachable') assert.equal(error.status, 503) assert.equal(error.outcomeUnknown, false) @@ -933,12 +996,12 @@ test('a command whose write landed but whose read fails reports it with the writ [`GET ${P}`]: () => ++reads === 1 ? ok(fixture('proposal-draft-optional')) : new Response(null, { status: 503 }), [`POST ${P}/submit`]: () => ok(fixture('proposal-submitted')), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) const error = await commands.submit(p).then(() => assert.fail('expected an error'), (e: unknown) => e) assert.ok(error instanceof RegistryError) assert.equal(error.code, 'client.read-after-write') onScreen(error) - assert.equal(error.problem?.['proposalId'], 'prop-1') + assert.equal(error.problem?.['proposalId'], proposalId) assert.equal(error.idempotencyKey, keyOf(seen.find(s => s.method === 'POST')!)) assert.equal(error.outcomeUnknown, false) assert.match(error.detail ?? '', /saved/i) @@ -971,19 +1034,19 @@ test('can.rebase is available only when the register offers it and the proposal recovery.links['submit']!.availability = { available: false, observedRevision: 3, reason: 'invalid-input', recovery: 'rebase' } const docs = ['proposal-package-changed', 'proposal-draft', 'proposal-sent-back', 'proposal-applied'] const { commands } = register({ [`GET ${P}`]: (_s, n) => ok(n <= 4 ? fixture(docs[n - 1]!) : recovery) }) - const changed = await commands.get('prop-1') + const changed = await commands.get(proposalId) assert.equal(changed.can.rebase.available, true) assert.match(changed.can.rebase.message, /form for this application has changed/i) assert.deepEqual(changed.can.resubmit, { available: false, reason: 'package-changed', recovery: 'rebase', message: changed.can.resubmit.message }) for (const name of ['proposal-draft', 'proposal-sent-back']) { - const view = await commands.get('prop-1') + const view = await commands.get(proposalId) assert.deepEqual([view.can.rebase.available, view.can.rebase.reason], [false, 'not-needed'], name) } - assert.equal((await commands.get('prop-1')).can.rebase.reason, 'already-applied') - assert.equal((await commands.get('prop-1')).can.rebase.available, true, 'a link that recovers by rebase is enough') + assert.equal((await commands.get(proposalId)).can.rebase.reason, 'already-applied') + assert.equal((await commands.get(proposalId)).can.rebase.available, true, 'a link that recovers by rebase is enough') const missing = fixture('proposal-package-changed') delete missing.links['rebase'] - const view = await register({ [`GET ${P}`]: () => ok(missing) }).commands.get('prop-1') + const view = await register({ [`GET ${P}`]: () => ok(missing) }).commands.get(proposalId) assert.equal(view.can.rebase.reason, 'not-offered') }) @@ -994,7 +1057,7 @@ test('a package-changed proposal can be rebased and then submitted', async () => [`POST ${P}/rebase`]: () => { doc = { ...fixture('proposal-draft-optional'), submissionVersion: 2, revision: 6 }; return ok(doc) }, [`POST ${P}/submit`]: () => { doc = fixture('proposal-submitted'); return ok(doc) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 const draft = await commands.rebase(p, { city: 'Shelbyville' }) assert.deepEqual(calls(seen), ['POST /rebase', 'GET ']) @@ -1013,20 +1076,20 @@ test('rebase without changes sends the readable input unchanged', async () => { [`GET ${P}`]: () => ok(doc), [`POST ${P}/rebase`]: () => { doc = fixture('proposal-draft-optional'); return ok(doc) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await commands.rebase(p) assert.deepEqual(JSON.parse(String(seen.find(s => s.method === 'POST')?.body)), { input: { facilityId: 'f-1', city: 'Springfield' } }) }) test('rebase refuses with not-needed, and when the input cannot be read, without a write', async () => { const { seen, commands } = register({ [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) seen.length = 0 await refusal(commands.rebase(p), 'client.command-unavailable', 'not-needed') const hidden = fixture('proposal-package-changed') delete hidden.input const other = register({ [`GET ${P}`]: () => ok(hidden) }) - await refusal(other.commands.rebase(await other.commands.get('prop-1')), 'client.inputs-not-readable') + await refusal(other.commands.rebase(await other.commands.get(proposalId)), 'client.inputs-not-readable') assert.equal(writesOf(seen).length + writesOf(other.seen).length, 0) }) @@ -1039,7 +1102,7 @@ test('after a write whose read failed, the next write reads the proposal first a [`GET ${P}`]: () => ++reads === 2 ? new Response(null, { status: 503 }) : ok(doc), [`POST ${P}/edit`]: s => { doc = { ...fixture('proposal-draft-attached'), input: sent(s) }; return ok(doc) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await assert.rejects(commands.edit(p, { city: 'A' }), { code: 'client.read-after-write' }) seen.length = 0 await commands.edit(p, { facilityId: 'f-9' }) @@ -1059,9 +1122,9 @@ test('a list that learns a newer revision does not change the condition a comman 'GET /v1/proposals': () => ok({ items: [newer] }), [`POST ${P}/submit`]: () => ok(fixture('proposal-submitted')), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await commands.list() - await commands.get('prop-1') + await commands.get(proposalId) await commands.submit(p) assert.equal(seen.find(s => s.method === 'POST')?.headers.get('if-match'), '"etag-3"') }) @@ -1069,9 +1132,8 @@ test('a list that learns a newer revision does not change the condition a comman // The register marks Submit unavailable while a required slot is empty. The helper follows the link. test('submit follows the register: unavailable with attachment-required refuses before sending', async () => { const doc = fixture('proposal-draft') - doc.links['submit']!.availability = { available: false, observedRevision: 3, reason: 'attachment-required', recovery: 'correct-input' } const { seen, commands } = register({ [`GET ${P}`]: () => ok(doc) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) assert.deepEqual([p.can.submit.available, p.can.submit.reason, p.can.submit.recovery], [false, 'attachment-required', 'correct-input']) assert.equal(p.can.submit.message, 'A required document is missing. Add it before sending.') seen.length = 0 @@ -1080,11 +1142,14 @@ test('submit follows the register: unavailable with attachment-required refuses }) test('the helper does not compute a missing required slot: an available submit link is sent', async () => { + // Deliberately contradict the server's attachment rule to test link-following only. + const doc = fixture('proposal-draft') + doc.links['submit']!.availability = { available: true, observedRevision: doc.revision } const { seen, commands } = register({ - [`GET ${P}`]: () => ok(fixture('proposal-draft')), + [`GET ${P}`]: () => ok(doc), [`POST ${P}/submit`]: () => ok(fixture('proposal-submitted')), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) assert.equal(p.attachments['supporting-document']?.status, 'empty') assert.equal(p.attachments['supporting-document']?.required, true) assert.equal(p.can.submit.available, true) @@ -1099,13 +1164,30 @@ test('a manual Apply the register refused counts as needing a rebase, with its o [`GET ${P}`]: () => ok(doc), [`POST ${P}/rebase`]: () => { doc = { ...fixture('proposal-draft-optional'), submissionVersion: 2, revision: 6 }; return ok(doc) }, }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) assert.equal(p.can.rebase.available, true) assert.match(p.can.rebase.message, /could not be applied/i) assert.notEqual(p.can.rebase.message, availabilityMessages['rebase']) - assert.equal(p.can.resubmit.available, false) + assert.equal(p.can.resubmit.available, true) assert.equal((await commands.rebase(p)).state, 'draft') assert.equal(seen.filter(s => s.method === 'POST').length, 1) + assert.equal(seen.find(s => s.method === 'POST')?.headers.get('if-match'), '"etag-5"') +}) + +test('a blocked application recovery cannot grant an unavailable Rebase command', async () => { + for (const available of [undefined, false]) { + const doc = fixture('proposal-application-refused') + if (available === undefined) delete doc.links['rebase'] + else doc.links['rebase']!.availability = { + available, observedRevision: doc.revision, reason: 'application-pending', recovery: 'refresh', + } + const { seen, commands } = register({ [`GET ${P}`]: () => ok(doc) }) + const view = await commands.get(proposalId) + assert.equal(view.can.rebase.available, false) + await refusal(commands.rebase(view), 'client.command-unavailable', + available === undefined ? 'not-offered' : 'application-pending') + assert.equal(writesOf(seen).length, 0) + } }) test('the package-changed sentence tells the reader to update the form first', () => { @@ -1183,7 +1265,7 @@ test('edit removes an input whose change is undefined', async () => { [`GET ${P}`]: () => ok(fixture('proposal-draft-optional')), [`POST ${P}/edit`]: () => ok(fixture('proposal-draft-attached')), }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) await commands.edit(p, { city: undefined, postalCode: '12345' }) assert.deepEqual(JSON.parse(String(seen.find(s => s.method === 'POST')?.body)), { input: { facilityId: 'f-1', postalCode: '12345' } }) }) @@ -1197,7 +1279,7 @@ test('a Proposal carries the served action revision, digest, handoff refusal, ap doc.application = { applicationId: 'app-1', effectDigest: digest, resultLinks: [{ recordId: 'r', recordType: 'facility', revision: 2 }], submissionVersion: 1 } doc.applicationStatus = { mode: 'manual', state: 'blocked', reason: 'package-changed', recovery: 'rebase' } const { commands } = register({ [`GET ${P}`]: () => ok(doc) }) - const p = await commands.get('prop-1') + const p = await commands.get(proposalId) assert.equal(p.actionRevision, 'rev-a') assert.equal(p.effectDigest, digest) assert.deepEqual(p.handoffRefusal, { code: 'review.refused' }) @@ -1205,7 +1287,7 @@ test('a Proposal carries the served action revision, digest, handoff refusal, ap assert.deepEqual(p.applicationStatus, doc.applicationStatus) assert.equal(p.blockedReason, 'package-changed') assert.deepEqual(JSON.parse(JSON.stringify(p)), p) - const plain = await register({ [`GET ${P}`]: () => ok(fixture('proposal-draft')) }).commands.get('prop-1') + const plain = await register({ [`GET ${P}`]: () => ok(fixture('proposal-draft')) }).commands.get(proposalId) for (const member of ['effectDigest', 'handoffRefusal', 'application', 'applicationStatus', 'blockedReason']) assert.equal(member in plain, false, member) }) @@ -1214,7 +1296,7 @@ test('the attachments view says whether a slot can be uploaded to and downloaded const { commands } = register({ [`GET ${P}`]: (_s, n) => ok(fixture(docs[n - 1]!)) }) const flags = [] for (const _ of docs) { - const view = (await commands.get('prop-1')).attachments['supporting-document']! + const view = (await commands.get(proposalId)).attachments['supporting-document']! flags.push([view.canUpload, view.canDownload]) } assert.deepEqual(flags, [[true, false], [true, true], [false, true]]) @@ -1223,5 +1305,5 @@ test('the attachments view says whether a slot can be uploaded to and downloaded test('proposalFromServed gives the same Proposal the commands do', async () => { const doc = fixture('proposal-sent-back') const { commands } = register({ [`GET ${P}`]: () => ok(doc) }) - assert.deepEqual(proposalFromServed(doc), await commands.get('prop-1')) + assert.deepEqual(proposalFromServed(doc), await commands.get(proposalId)) }) diff --git a/clients/typescript/tests/tasks-response-contracts.test.ts b/clients/typescript/tests/tasks-response-contracts.test.ts new file mode 100644 index 0000000000..873ee79569 --- /dev/null +++ b/clients/typescript/tests/tasks-response-contracts.test.ts @@ -0,0 +1,120 @@ +import test from 'node:test' +import assert from 'node:assert/strict' +import { readdirSync, readFileSync } from 'node:fs' +import { Ajv2020 } from 'ajv/dist/2020.js' +import { default as formats } from 'ajv-formats' + +type Schema = Record +interface OpenApi { + components: { schemas: Record } + paths: Record + }>> +} + +const readJson = (relativePath: string): unknown => + JSON.parse(readFileSync(new URL(relativePath, import.meta.url), 'utf8')) +const breg = readJson('../../../products/breg/generated/facility/generated/openapi.json') as OpenApi +const documents = readJson('../../../products/documents/generated/registry-documents.openapi.json') as OpenApi + +function responseValidator(api: OpenApi, path: string, method = 'get', status = '200') { + // OpenAPI carries its local references in components and may annotate schemas with x- fields. + const ajv = new Ajv2020({ strictSchema: false }) + formats.default(ajv) + ajv.addFormat('uint32', { type: 'number', validate: value => value >= 0 && value <= 0xffff_ffff }) + ajv.addFormat('uint64', { type: 'number', validate: value => value >= 0 && value < 2 ** 64 }) + return ajv.compile({ + ...api.paths[path]![method]!.responses[status]!.content['application/json'].schema, + components: api.components, + }) +} + +const proposalPath = '/v1/proposals/{proposal_id}' +const proposal = responseValidator(breg, proposalPath) +const proposalPage = responseValidator(breg, '/v1/proposals') +const proposalEdit = responseValidator(breg, `${proposalPath}/edit`, 'post') +const proposalSubmit = responseValidator(breg, `${proposalPath}/submit`, 'post') +const proposalApply = responseValidator(breg, `${proposalPath}/apply`, 'post') +// Mutation fixtures also exercise the subsequent read in task-helper tests. +const proposalCommands: Record[]> = { + 'proposal-draft-optional.json': [ + responseValidator(breg, '/v1/actions/correct-address/proposals', 'post', '201'), + proposalEdit, responseValidator(breg, `${proposalPath}/rebase`, 'post'), + ], + 'proposal-draft-attached.json': [ + proposalEdit, responseValidator(breg, `${proposalPath}/attachments/supporting-document`, 'patch'), + ], + 'proposal-draft-revised.json': [responseValidator(breg, `${proposalPath}/revise`, 'post')], + 'proposal-submitted.json': [proposalSubmit], + 'proposal-cancelled.json': [responseValidator(breg, `${proposalPath}/cancel`, 'post')], + 'proposal-applied.json': [proposalApply], +} +const document = responseValidator(documents, '/v1/documents/{documentId}') +const documentResponses: Record> = { + 'document-ready.json': document, + 'document-pending.json': responseValidator(documents, '/v1/uploads/{uploadId}/content', 'put'), + 'document-policies.json': responseValidator(documents, '/v1/document-policies'), + 'document-reservation.json': responseValidator(documents, '/v1/documents', 'post', '201'), + 'document-grant.json': responseValidator(documents, '/v1/documents/{documentId}/grants', 'post', '201'), +} + +for (const name of readdirSync(new URL('./fixtures/tasks/', import.meta.url)).filter(name => name.endsWith('.json')).sort()) { + test(`task response fixture ${name} matches its generated OpenAPI schema`, () => { + const validators = name.startsWith('proposal-list') ? [proposalPage] : + name.startsWith('proposal-') ? [proposal, ...(proposalCommands[name] ?? [])] : [documentResponses[name]] + const fixture = readJson(`./fixtures/tasks/${name}`) + for (const validate of validators) { + assert.ok(validate, `missing response schema for ${name}`) + assert.ok(validate(fixture), JSON.stringify(validate.errors)) + } + if (name.startsWith('proposal-')) { + const response = fixture as { status?: string; items?: { status?: string }[] } + for (const item of response.items ?? [response]) { + assert.equal(typeof item.status, 'string', 'current Proposal fixtures carry the served status') + } + } + }) +} + +test('only an authorised Proposal read can return the paired application actor fields', () => { + const applied = readJson('./fixtures/tasks/proposal-applied.json') as { application: Record } + const disclosed = { + ...applied, + application: { + ...applied.application, + appliedAt: '2026-11-27T13:00:00Z', + appliedBy: `hmac-sha256:${'1'.repeat(64)}`, + }, + } + assert.ok(proposal(disclosed), JSON.stringify(proposal.errors)) + assert.equal(proposalApply(disclosed), false) + assert.ok(proposalApply.errors?.some(error => error.instancePath === '/application' + && error.keyword === 'additionalProperties')) +}) + +test('current Proposal fixtures match the served lifecycle and link revisions', () => { + for (const [file, status, turn, applicationState, recovery] of [ + ['draft', 'draft', 'party', undefined, undefined], + ['submitted', 'in-review', 'official', 'awaiting-review', undefined], + ['sent-back', 'awaiting-party', 'party', 'awaiting-review', undefined], + ['approved', 'approved', 'official', 'pending', undefined], + ['application-refused', 'awaiting-party', 'party', 'blocked', 'rebase'], + ['applied', 'applied', 'nobody', 'applied', undefined], + ]) { + const doc = readJson(`./fixtures/tasks/proposal-${file}.json`) as { + status: string + turn: string + revision: number + effectDigest?: string + applicationStatus?: { state: string; recovery?: string } + links: Record + attachments?: Record }> + } + assert.deepEqual([doc.status, doc.turn, doc.applicationStatus?.state, doc.applicationStatus?.recovery], + [status, turn, applicationState, recovery], file) + if (applicationState) assert.match(doc.effectDigest ?? '', /^sha256:[0-9a-f]{64}$/u) + const links = [...Object.values(doc.links), + ...Object.values(doc.attachments ?? {}).flatMap(slot => Object.values(slot.links))] + for (const link of links) assert.equal(link.availability.observedRevision, doc.revision, file) + } +}) diff --git a/clients/typescript/tests/tasks-screens.test.ts b/clients/typescript/tests/tasks-screens.test.ts index 021a67959e..0905cd91ac 100644 --- a/clients/typescript/tests/tasks-screens.test.ts +++ b/clients/typescript/tests/tasks-screens.test.ts @@ -107,7 +107,7 @@ test('a replaced table reaches every can.* message, as the same table reaches de assert.equal(p.can.edit.available, false) for (const [name, view] of Object.entries(p.can)) assert.match(view.message, /^Replaced /u, `${name}: ${view.message}`) const served = fixture('proposal-draft') - assert.equal(proposalFromServed(served, { clientSentences }).can.submit.message, 'Replaced available.') + assert.equal(proposalFromServed(served, { clientSentences }).can.submit.message, 'Replaced attachment-required.') const changed = { ...served, blockedReason: 'package-changed' as const } assert.equal(proposalFromServed(changed, { clientSentences }).can.rebase.message, 'Replaced rebase.') assert.notEqual(proposalFromServed(changed).can.rebase.message, 'Replaced rebase.') @@ -119,10 +119,16 @@ test('a replaced table reaches every can.* message, as the same table reaches de test('proposalCommands takes the table, so what it reads and what describeError shows agree', async () => { const doc = fixture('proposal-draft') - const commands = proposalCommands({ call: async () => ({ data: doc }) }, { accessProfile: 'facility-correction-author', clientSentences: { available: 'Oui.' } }) - const p = await commands.get('prop-1') + const commands = proposalCommands({ call: async () => ({ data: doc }) }, { + accessProfile: 'facility-correction-author', + clientSentences: { 'attachment-required': 'Oui.' }, + }) + const p = await commands.get(doc.id) assert.equal(p.can.submit.message, 'Oui.') - const { items } = await proposalCommands({ call: async () => ({ data: { items: [doc] } }) }, { accessProfile: 'x', clientSentences: { available: 'Oui.' } }).list() + const { items } = await proposalCommands({ call: async () => ({ data: { items: [doc] } }) }, { + accessProfile: 'x', + clientSentences: { 'attachment-required': 'Oui.' }, + }).list() assert.equal(items[0]!.can.submit.message, 'Oui.') }) diff --git a/crates/registry-adapter-connectors/src/breg/batch.rs b/crates/registry-adapter-connectors/src/breg/batch.rs index 73726d3a05..f0b8738b47 100644 --- a/crates/registry-adapter-connectors/src/breg/batch.rs +++ b/crates/registry-adapter-connectors/src/breg/batch.rs @@ -252,7 +252,7 @@ impl Observable for BatchRecords { let request = BRegSnapshotListRequest::default() .snapshot(correlation) .map_err(|_| ConnectorFault::InvalidInput)? - .top(1) + .limit(1) .map_err(|_| ConnectorFault::InvalidInput)?; let answer = self.connector.block( self.connector diff --git a/crates/registry-adapter-connectors/tests/breg_native.rs b/crates/registry-adapter-connectors/tests/breg_native.rs index 4389300cb0..88ed088db3 100644 --- a/crates/registry-adapter-connectors/tests/breg_native.rs +++ b/crates/registry-adapter-connectors/tests/breg_native.rs @@ -187,7 +187,7 @@ async fn direct_create_and_patch_honor_preconditions() { .reads() .list_page( ®istry_breg_client::BRegListRequest::default() - .top(10) + .limit(10) .expect("page"), 10, ) diff --git a/crates/registry-adapter-connectors/tests/breg_read_mutation.rs b/crates/registry-adapter-connectors/tests/breg_read_mutation.rs index c3de067d63..2d3b4fcfb9 100644 --- a/crates/registry-adapter-connectors/tests/breg_read_mutation.rs +++ b/crates/registry-adapter-connectors/tests/breg_read_mutation.rs @@ -531,7 +531,7 @@ async fn list_page_advances_only_until_the_caller_bound() { }; mock.push(page(json!("token-1"))); mock.push(page(Value::Null)); - let request = BRegListRequest::default().top(2).expect("page size"); + let request = BRegListRequest::default().limit(2).expect("page size"); let outcome = mock .connector .reads() diff --git a/crates/registry-adapter-connectors/tests/support/breg_native_service.rs b/crates/registry-adapter-connectors/tests/support/breg_native_service.rs index 6c31c45347..34d3bf8cf0 100644 --- a/crates/registry-adapter-connectors/tests/support/breg_native_service.rs +++ b/crates/registry-adapter-connectors/tests/support/breg_native_service.rs @@ -356,7 +356,7 @@ impl Breg { ] }}, "datasets": {"synthetic-items": {}}, - "functions": { + "actionPlans": { "update-item-plan": { "runtime": "rhai", "source": "scripts/update-item.rhai", @@ -378,8 +378,8 @@ impl Breg { {"id": "label", "type": "string", "required": true, "minimumLength": 1, "maximumLength": 80, "classification": "internal"} ], "plan": { - "type": "function", - "function": "update-item-plan", + "type": "scripted", + "actionPlan": "update-item-plan", "inputs": ["target", "label"], "writes": [{"id": "item", "target": {"fromInput": "target"}, "operation": "patch", "fields": ["label"]}] } @@ -410,8 +410,8 @@ impl Breg { {"id": "household-size", "apiName": "householdSize", "type": "int64", "required": true, "classification": "internal"} ], "plan": { - "type": "function", - "function": "register-household-plan", + "type": "scripted", + "actionPlan": "register-household-plan", "inputs": ["source-submission-id", "respondent-name", "household-size"], "writes": [{"id": "household", "target": {"recordType": "household"}, "operation": "create", "fields": ["owner", "source-submission-id", "respondent-name", "household-size"]}] } diff --git a/crates/registry-adapter-core/src/checks.rs b/crates/registry-adapter-core/src/checks.rs index 4412adaa50..dc8596dbf2 100644 --- a/crates/registry-adapter-core/src/checks.rs +++ b/crates/registry-adapter-core/src/checks.rs @@ -7083,30 +7083,21 @@ fn literal_origin_address(url: ®istry_platform_yaml::Url) -> Option().ok() } -/// Whether the origin's host text explicitly denotes loopback: the name -/// `localhost` or a loopback address literal, the same admission rule -/// egress applies when it freezes the destination profile, so check and -/// load cannot disagree about the exception. -#[must_use] -pub fn loopback_exception_origin(url: ®istry_platform_yaml::Url) -> bool { - url.to_url() - .host_str() - .is_some_and(|host| registry_platform_httputil::loopback::loopback_host(host).is_some()) -} - /// The one fix for a source origin the Adapter refuses. const SOURCE_ORIGIN_FIX: &str = "Serve the source over https, or reach it on loopback through a sidecar that carries the connection over TLS."; /// The one plain-HTTP rule: Adapter sources are https or loopback only. -/// Plain HTTP is admitted inside the loopback exception and refused -/// everywhere else, for every authentication kind; a declared private -/// range admits an https answer, never plain HTTP. A source a deployment -/// reaches only over a private network is reached through a loopback -/// sidecar that holds the TLS or the tunnel. +/// The shared outbound selector decides it without a declared transport: +/// https is admitted, and plain HTTP only to an origin that explicitly +/// denotes loopback (the name `localhost` or a loopback literal), for +/// every authentication kind; a declared private range admits an https +/// answer, never plain HTTP. A source a deployment reaches only over a +/// private network is reached through a loopback sidecar that holds the +/// TLS or the tunnel. #[must_use] pub fn plain_http_origin_admitted(url: ®istry_platform_yaml::Url) -> bool { - url.is_https() || loopback_exception_origin(url) + select_destination(&url.to_url(), None, &[]).is_ok() } /// Whether a bound origin is plain HTTP on a non-loopback host. @@ -7356,6 +7347,35 @@ mod tests { }; use std::collections::BTreeMap; + /// The plain-HTTP rule: HTTPS anywhere, and plain HTTP only to an + /// origin that explicitly denotes loopback, the name `localhost` or a + /// loopback literal. A private range never admits plain HTTP. + #[test] + fn plain_http_is_admitted_only_for_explicit_loopback() { + for (spelled, admitted) in [ + ("https://records.example.invalid/", true), + ("https://10.0.0.7:8443/", true), + ("https://127.0.0.1:8443/", true), + ("http://127.0.0.1:8080/", true), + ("http://127.0.0.2/", true), + ("http://[::1]:8080/", true), + ("http://[::ffff:127.0.0.1]/", true), + ("http://localhost:8080/", true), + ("http://LOCALHOST/", true), + ("http://10.0.0.7:8080/", false), + ("http://[::ffff:10.0.0.7]/", false), + ("http://169.254.169.254/", false), + ("http://[fe80::1]/", false), + ("http://[fd00:ec2::254]/", false), + ("http://records.example.invalid/", false), + ("http://a.localhost/", false), + ("http://localhost./", false), + ] { + let url = Url::new(spelled).expect("url"); + assert_eq!(plain_http_origin_admitted(&url), admitted, "{spelled}"); + } + } + fn digest() -> Digest { Digest::new("sha256:678260a56715cba21db1f0687e5a2c5e5efb2ea0b8eea687b5f3ee8723c5f6c9") .expect("digest") diff --git a/crates/registry-adapter-core/src/profile.rs b/crates/registry-adapter-core/src/profile.rs index 52d5460c5b..bfc82d5676 100644 --- a/crates/registry-adapter-core/src/profile.rs +++ b/crates/registry-adapter-core/src/profile.rs @@ -593,6 +593,41 @@ impl AdapterProfile { pub fn is_govstack_consultation(&self) -> bool { self.origin == ProfileOrigin::BuiltInGovStack } + + /// Name a parameter in a generated contract. The native Registry Record + /// profile uses a lower-camel public name for its authored capture alias. + #[must_use] + pub fn published_path_parameter<'a>( + &self, + operation: &ProfileOperation, + name: &'a str, + ) -> &'a str { + if self.id.as_str() == "breg-records" + && self.version == "1" + && operation.path == "/v1/records/{type}/{record_id}" + && operation.record_id_parameter.as_ref().map(LocalId::as_str) == Some("record_id") + && name == "record_id" + { + "recordId" + } else { + name + } + } + + /// Project the native parameter spelling after the record type is bound. + #[must_use] + pub fn published_operation_path( + &self, + operation: &ProfileOperation, + concrete: String, + ) -> String { + let name = self.published_path_parameter(operation, "record_id"); + if name == "record_id" { + concrete + } else { + concrete.replace("{record_id}", &format!("{{{name}}}")) + } + } } /// A path-parameter list is omitted from the wire when empty, the shape diff --git a/crates/registry-adapter-engine/src/auth/plan.rs b/crates/registry-adapter-engine/src/auth/plan.rs index c715ea36dc..df5c0c3209 100644 --- a/crates/registry-adapter-engine/src/auth/plan.rs +++ b/crates/registry-adapter-engine/src/auth/plan.rs @@ -110,7 +110,8 @@ pub enum AuthPlanFault { HeaderNameOutOfBounds, /// The fixed token endpoint is not an absolute `http`/`https` URI in /// ASCII bytes with complete percent escapes and without userinfo, - /// query, or fragment, with plain HTTP confined to numeric loopback. + /// query, or fragment, with plain HTTP confined to loopback (numeric + /// loopback at authoring). TokenEndpointNotUsable, /// `resource` is not a valid RFC 8707 resource indicator. ResourceInvalid, @@ -667,9 +668,7 @@ fn validate_token_endpoint(endpoint: ®istry_platform_yaml::Url) -> Result<(), && parsed.fragment().is_none() && parsed.username().is_empty() && parsed.password().is_none() - && crate::egress::profile_admits_token_endpoints(crate::egress::destination_profile( - &parsed, - )); + && crate::egress::token_destination_profile(&parsed).is_some(); if usable { Ok(()) } else { diff --git a/crates/registry-adapter-engine/src/effective_contract.rs b/crates/registry-adapter-engine/src/effective_contract.rs index 94cd51fd0e..0b41083b74 100644 --- a/crates/registry-adapter-engine/src/effective_contract.rs +++ b/crates/registry-adapter-engine/src/effective_contract.rs @@ -394,7 +394,14 @@ fn effective_operation( binding_id: served.binding.clone(), profile_operation_id: served.operation.clone(), method: method_name(served.method), - path: target.map_or(concrete_path, |target| target.path.clone()), + path: target.map_or_else( + || { + loaded + .profile + .published_operation_path(profile, concrete_path) + }, + |target| target.path.clone(), + ), support: "served", effect: operation_effect(profile.method, profile.read_only), success_status: profile.success_status.get(), @@ -404,7 +411,7 @@ fn effective_operation( .map(|_| served.request_maximum_bytes), input: OperationInput { path: target.map_or_else( - || path_schema(profile, served), + || path_schema(&loaded.profile, profile, served), |target| target.path_parameters.clone(), ), query: query_schema(served), @@ -514,17 +521,19 @@ fn closed_object(properties: Map, mut required: Vec) -> V } fn path_schema( - profile: ®istry_adapter_core::ProfileOperation, + profile: ®istry_adapter_core::AdapterProfile, + operation: ®istry_adapter_core::ProfileOperation, served: &ServedOperation, ) -> Value { let mut properties = Map::new(); let mut required = Vec::new(); - for parameter in &profile.path_parameters { + for parameter in &operation.path_parameters { if parameter.as_str() == served.record_type_parameter { continue; } - properties.insert(parameter.as_str().to_owned(), path_segment_schema()); - required.push(parameter.as_str().to_owned()); + let name = profile.published_path_parameter(operation, parameter.as_str()); + properties.insert(name.to_owned(), path_segment_schema()); + required.push(name.to_owned()); } closed_object(properties, required) } diff --git a/crates/registry-adapter-engine/src/egress.rs b/crates/registry-adapter-engine/src/egress.rs index ee6899d35c..8435d094cc 100644 --- a/crates/registry-adapter-engine/src/egress.rs +++ b/crates/registry-adapter-engine/src/egress.rs @@ -47,6 +47,7 @@ use registry_platform_httputil::destination::{ MAX_DESTINATION_REQUEST_BODY_BYTES, MAX_DESTINATION_REQUEST_HEADERS, MAX_DESTINATION_REQUEST_HEADER_BYTES, MAX_DESTINATION_TARGET_BYTES, }; +use registry_platform_httputil::select::{select_credential_destination, select_destination}; use registry_platform_httputil::{TransportKind, MAXIMUM_TOKEN_RESPONSE_BYTES}; use registry_platform_yaml::{BoundedU64, ExternalId, SecretReference, Url}; use serde_json::Value; @@ -1202,7 +1203,9 @@ impl EndpointEgress { cidrs: &[Cidr], material: Option, ) -> Result { - let profile = destination_profile(parsed_base); + let profile = destination_profile(parsed_base).ok_or(EgressFault::Auth( + AuthError::Plan(AuthPlanFault::CredentialRequiresProtectedTransport), + ))?; let origin_id = binding.endpoint.as_str().to_ascii_lowercase(); let networks: Vec<_> = cidrs.iter().map(Cidr::network).collect(); let policy = @@ -2137,49 +2140,50 @@ fn script_template( ) } -/// The destination profile one pinned origin freezes: HTTPS carries the -/// production address controls; plain HTTP is development on loopback -/// and one private service hop everywhere else. Under the postgres-test -/// feature an https loopback origin takes the platform's pinned -/// loopback test profile, so the TLS suites can drive the same -/// frozen-policy send against a locally terminated certificate; a -/// build without the feature serves the same origin as production. -pub(crate) fn destination_profile(parsed_base: &url::Url) -> DestinationProfile { +/// The destination profile one pinned origin freezes, chosen by the +/// shared outbound selector with no declared transport: HTTPS carries the +/// production address controls, and plain HTTP is admitted only to an +/// origin that explicitly denotes loopback. `None` refuses every other +/// origin; the binding's authentication policy has already refused it +/// before the freeze, so this is the fail-closed runtime side. Under the +/// postgres-test feature an https loopback origin takes the platform's +/// pinned loopback test profile, so the TLS suites can drive the same +/// frozen-policy send against a locally terminated certificate; a build +/// without the feature serves the same origin as production. +pub(crate) fn destination_profile(parsed_base: &url::Url) -> Option { #[cfg(feature = "postgres-test")] - if parsed_base.scheme() == "https" && denotes_loopback(parsed_base) { - return DestinationProfile::PinnedLoopbackHttpsTest; - } - match parsed_base.scheme() { - "https" => DestinationProfile::ProductionHttps, - _ if denotes_loopback(parsed_base) => DestinationProfile::LoopbackHttp, - _ => DestinationProfile::PrivateServiceHttp, + if let Some(profile) = pinned_loopback_test_profile(parsed_base) { + return Some(profile); } + select_destination(parsed_base, None, &[]) + .ok() + .map(|selected| selected.profile()) } -/// Whether the origin's host explicitly denotes loopback: the name -/// `localhost` or a loopback address literal, the platform's own -/// admission rule for the development profile. The destination policy pins -/// the name to loopback addresses when it connects. -pub(crate) fn denotes_loopback(origin: &url::Url) -> bool { - origin - .host_str() - .is_some_and(|host| registry_platform_httputil::loopback::loopback_host(host).is_some()) +/// The profile a fixed token endpoint freezes. It carries the client's +/// credential, so it takes the credential selection: HTTPS or explicit +/// loopback plain HTTP, the same profiles the data path serves, decided +/// for the plan-level compile and the frozen credential policy alike so +/// they can never disagree about one endpoint. +pub(crate) fn token_destination_profile(token_endpoint: &url::Url) -> Option { + #[cfg(feature = "postgres-test")] + if let Some(profile) = pinned_loopback_test_profile(token_endpoint) { + return Some(profile); + } + select_credential_destination(token_endpoint, None, &[]) + .ok() + .map(|selected| selected.profile()) } -/// Whether a destination profile admits a token endpoint: the same -/// profiles the data path serves, decided by the same predicate the -/// plan-level compile applies, so a load refusal and the frozen -/// credential policy can never disagree about one endpoint. Plain HTTP -/// stays development-only loopback, the private service hop never -/// carries a credential request, and the pinned loopback test profile -/// is admitted only under the feature that enables it. -pub(crate) fn profile_admits_token_endpoints(profile: DestinationProfile) -> bool { - match profile { - DestinationProfile::ProductionHttps | DestinationProfile::LoopbackHttp => true, - #[cfg(feature = "postgres-test")] - DestinationProfile::PinnedLoopbackHttpsTest => true, - _ => false, - } +/// The pinned loopback test profile for an https origin whose host +/// explicitly denotes loopback, the name `localhost` or a loopback +/// literal; the destination policy pins the name to loopback addresses. +#[cfg(feature = "postgres-test")] +fn pinned_loopback_test_profile(origin: &url::Url) -> Option { + let loopback = origin + .host_str() + .is_some_and(|host| registry_platform_httputil::loopback::loopback_host(host).is_some()); + (origin.scheme() == "https" && loopback).then_some(DestinationProfile::PinnedLoopbackHttpsTest) } /// One endpoint's wired token transport, compiled once at startup: the @@ -2300,10 +2304,9 @@ fn freeze_token_send( // the authoring checks, failing closed. let refused_plan = || EgressFault::Auth(AuthError::Plan(AuthPlanFault::TokenEndpointNotUsable)); let parsed = url::Url::parse(token_plan.url()).map_err(|_| refused_plan())?; - let profile = destination_profile(&parsed); - if !profile_admits_token_endpoints(profile) { + let Some(profile) = token_destination_profile(&parsed) else { return Err(refused_plan()); - } + }; // The token endpoint is a fixed credential destination: its origin // is the endpoint the policy pins, its fixed path is the path the // declared endpoint carries. Clearing the parts the pin refuses @@ -3735,100 +3738,89 @@ mod tests { } } - /// The destination profile follows the pinned origin: HTTPS is - /// production, plain HTTP is development on loopback and a private - /// service hop everywhere else, matching the platform's own - /// loopback admission rule. + /// The shared outbound selector chooses the profile a pinned origin + /// freezes: HTTPS is production and plain HTTP is admitted only to an + /// origin that explicitly denotes loopback. Every other plain-HTTP + /// origin is refused here, as the binding's authentication policy + /// already refused it before the freeze. #[test] - fn the_destination_profile_follows_the_pinned_origin() { - let https = url::Url::parse("https://records.example.internal:8443/").expect("parsed"); - let loopback = url::Url::parse("http://127.0.0.1:8080/").expect("parsed"); - let localhost = url::Url::parse("http://localhost:8080/").expect("parsed"); - let private = url::Url::parse("http://10.0.0.7:8080/").expect("parsed"); - let public_name = url::Url::parse("http://upstream.example.invalid:80/").expect("parsed"); + fn the_destination_profile_follows_the_selector() { + let profile = + |spelled: &str| destination_profile(&url::Url::parse(spelled).expect("parsed")); assert_eq!( - destination_profile(&https), - DestinationProfile::ProductionHttps - ); - assert_eq!( - destination_profile(&loopback), - DestinationProfile::LoopbackHttp - ); - assert_eq!( - destination_profile(&localhost), - DestinationProfile::LoopbackHttp - ); - assert_eq!( - destination_profile(&private), - DestinationProfile::PrivateServiceHttp - ); - assert_eq!( - destination_profile(&public_name), - DestinationProfile::PrivateServiceHttp + profile("https://records.example.internal:8443/"), + Some(DestinationProfile::ProductionHttps) ); for spelled in [ + "http://127.0.0.1:8080/", + "http://localhost:8080/", "http://127.0.0.2:8080/", "http://[::1]:8080/", "http://[::ffff:127.0.0.1]:8080/", ] { - let origin = url::Url::parse(spelled).expect("parsed"); assert_eq!( - destination_profile(&origin), - DestinationProfile::LoopbackHttp, + profile(spelled), + Some(DestinationProfile::LoopbackHttp), "{spelled}" ); } - for spelled in ["http://a.localhost:8080/", "http://localhost.:8080/"] { - let origin = url::Url::parse(spelled).expect("parsed"); - assert_eq!( - destination_profile(&origin), - DestinationProfile::PrivateServiceHttp, - "{spelled}" - ); + for spelled in [ + "http://10.0.0.7:8080/", + "http://upstream.example.invalid:80/", + "http://a.localhost:8080/", + "http://localhost.:8080/", + ] { + assert_eq!(profile(spelled), None, "{spelled}"); + } + } + + /// A token endpoint carries a credential, so it takes the credential + /// selection: HTTPS and explicit loopback plain HTTP, the profiles + /// the token transport freezes, and nothing else. + #[test] + fn the_token_endpoint_takes_the_credential_selection() { + let profile = + |spelled: &str| token_destination_profile(&url::Url::parse(spelled).expect("parsed")); + assert_eq!( + profile("https://token.example.invalid/token"), + Some(DestinationProfile::ProductionHttps) + ); + assert_eq!( + profile("http://127.0.0.1:9/token"), + Some(DestinationProfile::LoopbackHttp) + ); + for spelled in [ + "http://10.0.0.7/token", + "http://token.example.invalid/token", + "http://a.localhost/token", + ] { + assert_eq!(profile(spelled), None, "{spelled}"); } } /// Under the postgres-test feature an https loopback origin takes - /// the platform's pinned loopback test profile, so the TLS suites - /// drive the same frozen-policy send against locally terminated - /// certificates; a named https origin stays production even under - /// the feature, and without the feature the loopback origin would - /// be production too. + /// the platform's pinned loopback test profile, for data and token + /// sends alike, so the TLS suites drive the same frozen-policy send + /// against locally terminated certificates; a named https origin + /// stays production even under the feature, and without the feature + /// the loopback origin would be production too. #[cfg(feature = "postgres-test")] #[test] fn the_pinned_loopback_https_profile_serves_only_under_its_feature() { let loopback = url::Url::parse("https://127.0.0.1:8443/").expect("parsed"); assert_eq!( destination_profile(&loopback), - DestinationProfile::PinnedLoopbackHttpsTest + Some(DestinationProfile::PinnedLoopbackHttpsTest) + ); + assert_eq!( + token_destination_profile(&loopback), + Some(DestinationProfile::PinnedLoopbackHttpsTest) ); let named = url::Url::parse("https://records.example.internal:8443/").expect("parsed"); assert_eq!( destination_profile(&named), - DestinationProfile::ProductionHttps + Some(DestinationProfile::ProductionHttps) ); - assert!(profile_admits_token_endpoints( - DestinationProfile::PinnedLoopbackHttpsTest - )); - } - - /// The token endpoint admission is the profile predicate the - /// egress layer serves: the profiles the token transport freezes - /// admit, every other profile refuses, fail-closed. - #[test] - fn the_profile_predicate_admits_exactly_the_served_profiles() { - assert!(profile_admits_token_endpoints( - DestinationProfile::ProductionHttps - )); - assert!(profile_admits_token_endpoints( - DestinationProfile::LoopbackHttp - )); - assert!(!profile_admits_token_endpoints( - DestinationProfile::PrivateServiceHttp - )); - assert!(!profile_admits_token_endpoints( - DestinationProfile::LocalPrivateDevelopmentHttp - )); } /// The declared-scheme slots a static authorization freezes: the diff --git a/crates/registry-adapter/src/govstack/consultation/openapi.rs b/crates/registry-adapter/src/govstack/consultation/openapi.rs index 462c026bd8..a19342aa88 100644 --- a/crates/registry-adapter/src/govstack/consultation/openapi.rs +++ b/crates/registry-adapter/src/govstack/consultation/openapi.rs @@ -657,6 +657,11 @@ fn problem_schema(validation: bool) -> Value { }}); if validation { schema["required"] = json!(["type", "title", "status", "traceId", "errors"]); + } else { + schema["properties"]["failedCheck"] = json!({ + "type": "string", + "description": "The check that refused the request, included only in development." + }); } schema } @@ -1054,6 +1059,26 @@ mod tests { } } + #[test] + fn problem_schema_accepts_development_refusal_diagnostics() { + let schema = problem_schema(false); + let compiled = jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile(&schema) + .expect("problem schema compiles"); + let mut problem = json!({ + "type": "https://govstack.global/problems/digital-registries/unauthorized", + "title": "the request carries no valid credential", + "status": 401, + "traceId": "0123456789abcdef0123456789abcdef" + }); + assert!(compiled.is_valid(&problem)); + problem["failedCheck"] = json!("credential-missing"); + assert!(compiled.is_valid(&problem)); + problem["failedCheck"] = json!(false); + assert!(!compiled.is_valid(&problem)); + } + fn admits(schema: &Value, value: &str) -> bool { jsonschema::JSONSchema::options() .with_draft(jsonschema::Draft::Draft202012) diff --git a/crates/registry-adapter/src/payments/http.rs b/crates/registry-adapter/src/payments/http.rs index 43bdf9417b..36d143a5d3 100644 --- a/crates/registry-adapter/src/payments/http.rs +++ b/crates/registry-adapter/src/payments/http.rs @@ -102,7 +102,7 @@ pub fn contract(config: &PaymentsConfig) -> serde_json::Value { "DisbursementStatus":schemars::schema_for!(DisbursementStatus), "RecordProviderConfirmation":schemars::schema_for!(RecordProviderConfirmation), "ProviderConfirmation":schemars::schema_for!(ProviderConfirmation), - "PaymentProblem":schemars::schema_for!(PaymentProblem) + "PaymentProblem":registry_payment_protocol::payment_problem_schema() } }) } @@ -1670,7 +1670,10 @@ mod tests { assert_eq!(body["title"], expected_code, "{body}"); assert_eq!( body["type"], - format!("urn:registry:problem:{expected_code}"), + format!( + "{}{expected_code}", + registry_adapter_core::ADAPTER_PROBLEM_TYPE_BASE + ), "{body}" ); let after = recorder.counter().get(&[check.as_str()]).unwrap_or(0); diff --git a/crates/registry-adapter/tests/effective_contract.rs b/crates/registry-adapter/tests/effective_contract.rs index 9d62331e4e..be9dcd57dc 100644 --- a/crates/registry-adapter/tests/effective_contract.rs +++ b/crates/registry-adapter/tests/effective_contract.rs @@ -291,7 +291,19 @@ fn export_contains_only_effectively_served_reads_and_names_unserved_writes() { .iter() .find(|operation| operation["id"] == "records-get.person") .expect("get operation"); - let record_id = &get["input"]["path"]["properties"]["record_id"]; + assert_eq!(get["path"], "/v1/records/person/{recordId}"); + assert_eq!( + get["input"]["path"]["required"], + serde_json::json!(["recordId"]) + ); + assert_eq!( + get["input"]["path"]["properties"] + .as_object() + .unwrap() + .len(), + 1 + ); + let record_id = &get["input"]["path"]["properties"]["recordId"]; assert_eq!(record_id["minLength"], 1); assert_eq!( record_id["not"]["anyOf"][0]["enum"], diff --git a/crates/registry-adapter/tests/golden/payment_refusals.json b/crates/registry-adapter/tests/golden/payment_refusals.json index 506f54fefa..aad5c926f4 100644 --- a/crates/registry-adapter/tests/golden/payment_refusals.json +++ b/crates/registry-adapter/tests/golden/payment_refusals.json @@ -4,7 +4,7 @@ "code": "adapter.payment.forbidden", "status": 403, "title": "adapter.payment.forbidden", - "type": "urn:registry:problem:adapter.payment.forbidden" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -19,7 +19,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -34,7 +34,7 @@ "code": "adapter.payment.forbidden", "status": 403, "title": "adapter.payment.forbidden", - "type": "urn:registry:problem:adapter.payment.forbidden" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -49,7 +49,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -64,7 +64,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -79,7 +79,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -94,7 +94,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -109,7 +109,7 @@ "code": "adapter.payment.forbidden", "status": 403, "title": "adapter.payment.forbidden", - "type": "urn:registry:problem:adapter.payment.forbidden" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -124,7 +124,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -139,7 +139,7 @@ "code": "adapter.payment.not-found", "status": 404, "title": "adapter.payment.not-found", - "type": "urn:registry:problem:adapter.payment.not-found" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.not-found" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -154,7 +154,7 @@ "code": "adapter.payment.not-found", "status": 404, "title": "adapter.payment.not-found", - "type": "urn:registry:problem:adapter.payment.not-found" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.not-found" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -169,7 +169,7 @@ "code": "adapter.payment.not-found", "status": 404, "title": "adapter.payment.not-found", - "type": "urn:registry:problem:adapter.payment.not-found" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.not-found" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -184,7 +184,7 @@ "code": "adapter.payment.authentication-required", "status": 401, "title": "adapter.payment.authentication-required", - "type": "urn:registry:problem:adapter.payment.authentication-required" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required" }, "cache-control": "no-store", "content-type": "application/problem+json", @@ -199,7 +199,7 @@ "code": "adapter.payment.forbidden", "status": 403, "title": "adapter.payment.forbidden", - "type": "urn:registry:problem:adapter.payment.forbidden" + "type": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden" }, "cache-control": "no-store", "content-type": "application/problem+json", diff --git a/crates/registry-adapterctl/src/compile/document.rs b/crates/registry-adapterctl/src/compile/document.rs index 71e0be047c..f682804faa 100644 --- a/crates/registry-adapterctl/src/compile/document.rs +++ b/crates/registry-adapterctl/src/compile/document.rs @@ -93,7 +93,10 @@ pub(crate) fn assemble( }; let record_type = binding.record_type.as_str(); let substituted = record_type_parameter(operation); - let concrete = concrete_path(&operation.path, substituted, record_type); + let concrete = profile.published_operation_path( + operation, + concrete_path(&operation.path, substituted, record_type), + ); let method = openapi_method(operation.method); let path_item = paths .entry(concrete.clone()) @@ -126,7 +129,7 @@ pub(crate) fn assemble( if operation.method == HttpMethod::Post && operation.read_only { members.insert(READ_ONLY_OPERATION_EXTENSION.to_owned(), json!(true)); } - let mut parameters = operation_parameters(operation, binding, fields, substituted); + let mut parameters = operation_parameters(profile, operation, binding, fields, substituted); if !operation.is_read() { parameters.push(idempotency_key_parameter()); } @@ -565,6 +568,7 @@ fn concrete_path(path: &str, parameter: Option<&str>, record_type: &str) -> Stri /// filters in the request body, and the runtime refuses a query string on /// it, so such an operation declares no query parameter. fn operation_parameters( + profile: &AdapterProfile, operation: &ProfileOperation, binding: &Binding, fields: &[RecordField], @@ -576,7 +580,7 @@ fn operation_parameters( continue; } parameters.push(json!({ - "name": name.as_str(), + "name": profile.published_path_parameter(operation, name.as_str()), "in": "path", "required": true, "schema": {"type": "string"}, diff --git a/crates/registry-adapterctl/src/verify/mod.rs b/crates/registry-adapterctl/src/verify/mod.rs index 860f055879..f32518eb23 100644 --- a/crates/registry-adapterctl/src/verify/mod.rs +++ b/crates/registry-adapterctl/src/verify/mod.rs @@ -48,6 +48,7 @@ use registry_platform_httputil::destination::{ DataDestinationPolicy, DestinationPolicyError, DestinationProfile, DestinationTlsMaterial, MAX_DESTINATION_CA_BUNDLE_BYTES, }; +use registry_platform_httputil::select::select_destination; use registry_platform_yaml::{Diagnostic, Report, SecretReference, Url}; use serde_json::{json, Value}; use std::collections::BTreeMap; @@ -830,7 +831,9 @@ fn destination_policy( "the destination is not admitted by the frozen policy".to_owned(), )); } - let profile = destination_profile(base); + let profile = destination_profile(base).ok_or_else(|| { + EgressFault::Refused("the destination is not admitted by the frozen policy".to_owned()) + })?; let mut origin = parsed.clone(); origin.set_path("/"); origin.set_query(None); @@ -867,27 +870,26 @@ fn destination_policy( Ok(policy) } -/// The report text for a refused destination. An empty private range list -/// keeps the platform's own text, which says how to fix it. Any other refusal -/// is a fixed sentence, so the report never repeats an origin. -fn destination_refusal(error: &DestinationPolicyError) -> String { - match error { - DestinationPolicyError::PrivateServiceRequiresPrivateCidr => error.to_string(), - _ => "the destination is not admitted by the frozen policy".to_owned(), - } +/// The report text for a refused destination: a fixed sentence, so the +/// report never repeats an origin. Verification never selects the private +/// service profile, so no refusal asks for a private range for plain HTTP. +fn destination_refusal(_error: &DestinationPolicyError) -> String { + "the destination is not admitted by the frozen policy".to_owned() } -fn destination_profile(base: &Url) -> DestinationProfile { +/// The profile the shared outbound selector chooses with no declared +/// transport, as the runtime engine freezes it: HTTPS, or plain HTTP to an +/// origin that explicitly denotes loopback. `None` refuses any other +/// origin, which the offline checks have already refused. +fn destination_profile(base: &Url) -> Option { let parsed = base.to_url(); #[cfg(feature = "tls-test")] if parsed.scheme() == "https" && denotes_loopback(base) { - return DestinationProfile::PinnedLoopbackHttpsTest; - } - match parsed.scheme() { - "https" => DestinationProfile::ProductionHttps, - _ if denotes_loopback(base) => DestinationProfile::LoopbackHttp, - _ => DestinationProfile::PrivateServiceHttp, + return Some(DestinationProfile::PinnedLoopbackHttpsTest); } + select_destination(&parsed, None, &[]) + .ok() + .map(|selected| selected.profile()) } fn denotes_loopback(origin: &Url) -> bool { @@ -1038,7 +1040,7 @@ fn drive( "path": format!("/bindings/{index}"), "message": message, "suggestedAction": - "Bind the endpoint to an https origin, a loopback address, or a range allowedPrivateCidrs admits.", + "Serve the source over https, or reach it on loopback through a sidecar that carries the connection over TLS.", })], }); } @@ -1191,15 +1193,41 @@ mod tests { ); } + /// Verification freezes the profile the runtime engine freezes: the + /// shared selector's HTTPS or explicit loopback plain HTTP, and no + /// profile for any other plain-HTTP origin. + #[cfg(not(feature = "tls-test"))] #[test] - fn an_empty_private_range_list_keeps_the_platform_remedy() { - let message = - destination_refusal(&DestinationPolicyError::PrivateServiceRequiresPrivateCidr); - assert!(message.contains("name the range"), "{message}"); + fn the_verified_profile_follows_the_selector() { + let profile = |spelled: &str| destination_profile(&Url::new(spelled).expect("url")); + assert_eq!( + profile("https://records.example.invalid/"), + Some(DestinationProfile::ProductionHttps) + ); + assert_eq!( + profile("http://127.0.0.1:8080/"), + Some(DestinationProfile::LoopbackHttp) + ); assert_eq!( - destination_refusal(&DestinationPolicyError::OriginMissingPort), - "the destination is not admitted by the frozen policy" + profile("http://localhost:8080/"), + Some(DestinationProfile::LoopbackHttp) ); + for spelled in ["http://10.0.0.7:8080/", "http://records.example.invalid/"] { + assert_eq!(profile(spelled), None, "{spelled}"); + } + } + + #[test] + fn every_destination_refusal_is_the_fixed_sentence() { + for error in [ + DestinationPolicyError::PrivateServiceRequiresPrivateCidr, + DestinationPolicyError::OriginMissingPort, + ] { + assert_eq!( + destination_refusal(&error), + "the destination is not admitted by the frozen policy" + ); + } } #[test] diff --git a/crates/registry-adapterctl/tests/compile.rs b/crates/registry-adapterctl/tests/compile.rs index b6448fcc4c..489f8ff555 100644 --- a/crates/registry-adapterctl/tests/compile.rs +++ b/crates/registry-adapterctl/tests/compile.rs @@ -437,7 +437,7 @@ fn the_maintained_example_compiles_under_breg_records() { let paths = document["paths"].as_object().expect("paths"); // `/v1/records/person` carries search (get) and create (post); - // `/v1/records/person/{record_id}` carries get. + // `/v1/records/person/{recordId}` carries get. assert_eq!(paths.len(), 3, "{paths:?}"); assert!(paths.contains_key(registry_adapter::engine::effective_contract::WELL_KNOWN_PATH)); let search = &document["paths"]["/v1/records/person"]["get"]; @@ -454,7 +454,7 @@ fn the_maintained_example_compiles_under_breg_records() { ); assert_contract_pin(&search["parameters"]); - let get = &document["paths"]["/v1/records/person/{record_id}"]["get"]; + let get = &document["paths"]["/v1/records/person/{recordId}"]["get"]; assert_eq!(get["operationId"], "records-get.person"); let path_parameters = get["parameters"] .as_array() @@ -465,7 +465,7 @@ fn the_maintained_example_compiles_under_breg_records() { assert_eq!( path_parameters, [&json!({ - "name": "record_id", + "name": "recordId", "in": "path", "required": true, "schema": {"type": "string"}, @@ -515,7 +515,7 @@ fn the_maintained_example_compiles_under_breg_records() { ); assert!(create["responses"].get("200").is_none()); - let update = &document["paths"]["/v1/records/person/{record_id}"]["put"]; + let update = &document["paths"]["/v1/records/person/{recordId}"]["put"]; assert_eq!(update["operationId"], "records-update.person"); assert_write_headers(&update["parameters"]); assert_eq!( @@ -537,7 +537,7 @@ fn the_maintained_example_compiles_under_breg_records() { // A parameterized part is a deployment value the contract cannot // know: the schema types it as a string, never the stand-in const. - let meta = &document["paths"]["/v1/records/person/{record_id}"]["get"]["responses"]["200"] + let meta = &document["paths"]["/v1/records/person/{recordId}"]["get"]["responses"]["200"] ["content"]["application/json"]["schema"]["properties"]["meta"]["properties"]; assert_eq!(meta["registryId"], json!({"type": "string"})); assert_eq!(meta["datasetId"], json!({"type": "string"})); @@ -706,6 +706,10 @@ fn the_second_target_experiment_compiles() { let search = &document["paths"]["/fhir/household"]["get"]; assert_eq!(search["operationId"], "fhir-search-type.household"); + let get = &document["paths"]["/fhir/household/{record_id}"]["get"]; + assert!(get["parameters"].as_array().unwrap().iter().any(|item| { + item["in"] == "path" && item["name"] == "record_id" && item["required"] == true + })); assert_eq!( query_parameter_names(&search["parameters"]), ["_count", "_page_token"] diff --git a/crates/registry-breg-client-node/__test__/binding.test.js b/crates/registry-breg-client-node/__test__/binding.test.js index 8fa4b058fe..e92a6ae571 100644 --- a/crates/registry-breg-client-node/__test__/binding.test.js +++ b/crates/registry-breg-client-node/__test__/binding.test.js @@ -149,7 +149,7 @@ test('invalid request graphs fail before I/O with a stable kind', async () => { assert.throws(() => client.continueList(cyclic), (error) => ( error instanceof BaseRegistryClientError && error.kind === 'invalid-request' )); - await assert.rejects(client.listRecords('people', { top: 0 }), (error) => ( + await assert.rejects(client.listRecords('people', { limit: 0 }), (error) => ( error instanceof BaseRegistryClientError && error.kind === 'invalid-request' )); }); @@ -159,7 +159,7 @@ test('nullable record options use request defaults', async () => { select: null, accessProfile: null, format: null, - top: null, + limit: null, filter: null, orderby: null, count: null, diff --git a/crates/registry-breg-client-node/__test__/exact-json.test.js b/crates/registry-breg-client-node/__test__/exact-json.test.js index 5863a673cc..3f260482b3 100644 --- a/crates/registry-breg-client-node/__test__/exact-json.test.js +++ b/crates/registry-breg-client-node/__test__/exact-json.test.js @@ -22,7 +22,7 @@ const query = { filterableFields: [{id: 'wide', apiName: 'wide', operators: ['equals', 'in']}], sortableFields: [], allowCount: true, defaultPageSize: 20, maximumPageSize: 100, maximumFilterClauses: 10, maximumInValues: 20, - pagination: {parameter:'$skiptoken', responsePath:'pageInfo.nextCursor', exclusive:true}, temporal:{mode:'current'}, + pagination: {parameter:'cursor', responsePath:'pageInfo.nextCursor', exclusive:true}, temporal:{mode:'current'}, }; function operation(kind) { return {id:`records.item.${kind}`, method:kind === 'create' ? 'POST' : kind === 'patch' ? 'PATCH' : 'GET', @@ -33,7 +33,7 @@ function operation(kind) { readableFields:fields.map(f=>f.id), createWritableFields:kind === 'create' ? fields.map(f=>f.id) : [], patchWritableFields:kind === 'patch' ? fields.map(f=>f.id) : [], selectors:[], query:kind === 'list' ? query : null, - request:kind === 'list' ? {fieldNames:'api',queryParameters:['$filter','$skiptoken']} : { + request:kind === 'list' ? {fieldNames:'api',queryParameters:['$filter','cursor']} : { fieldNames:'api',queryParameters:[],body:kind === 'create' ? 'data_envelope' : 'json_patch', contentType:kind === 'create' ? 'application/json' : 'application/json-patch+json', idempotencyKeyRequired:true,mutationSemantics:'direct',schema:{type:kind === 'create' ? 'object' : 'array'}, @@ -114,7 +114,7 @@ test('native JSON methods preserve values, metadata, cursors and mutation precon const exactRecord = record.replace('9007199254740992', responseNumber); if (request.method === 'GET' && !request.url.split('?')[0].endsWith(id)) { response.removeHeader('etag'); - return response.end(`{"items":[${exactRecord}],"meta":${JSON.stringify(meta)},"pageInfo":{"nextCursor":${request.url.includes('$skiptoken=') ? 'null' : '"cursor-1"'}}}`); + return response.end(`{"items":[${exactRecord}],"meta":${JSON.stringify(meta)},"pageInfo":{"nextCursor":${request.url.includes('cursor=') ? 'null' : '"cursor-1"'}}}`); } if (request.method === 'POST') { response.statusCode = 201; @@ -240,9 +240,9 @@ test('native JSON methods preserve values, metadata, cursors and mutation precon assert.equal(requests.length,mutationRequestCount); const page = await client.listRecordsJson('items',{accessProfile:profile,filter:"wide eq 1"}); assert.match(page.valueJson,/9007199254740992/); - assert.equal(page.continuation.skiptoken,'cursor-1'); + assert.equal(page.continuation.cursor,'cursor-1'); await client.continueListJson(page.continuation); - assert.match(requests.at(-1).url,/\$skiptoken=cursor-1/); + assert.match(requests.at(-1).url,/cursor=cursor-1/); responseNumber = '9007199254740993'; const read = await client.getRecordJson('items',id,{accessProfile:profile}); assert.match(read.valueJson,/9007199254740993/); diff --git a/crates/registry-breg-client-node/__test__/facade.test-d.ts b/crates/registry-breg-client-node/__test__/facade.test-d.ts index 51f917c1d7..863ba4de1c 100644 --- a/crates/registry-breg-client-node/__test__/facade.test-d.ts +++ b/crates/registry-breg-client-node/__test__/facade.test-d.ts @@ -158,7 +158,7 @@ verifyHookDelivery({ headers: {}, body: '{}', key: Buffer.alloc(32) }) // @ts-expect-error Header values must be exact strings. verifyHookDelivery({ headers: { 'webhook-id': 1 }, body: Buffer.from('{}'), key: Buffer.alloc(32) }) -const options: ListOptions = { top: 25, filter: 'status eq active', count: true, bbox: ['100.1', '13.1', '100.2', '13.2'] } +const options: ListOptions = { limit: 25, filter: 'status eq active', count: true, bbox: ['100.1', '13.1', '100.2', '13.2'] } client.listRecords('people', options) client.recordSchema('person') // @ts-expect-error The entity-named schema method is retired. @@ -278,7 +278,7 @@ client.continueList({ ...continuation, select: ['name'] }) // @ts-expect-error Continuations must preserve the complete collection binding. client.continueList({ route: 'records', - skiptoken: 'opaque', + cursor: 'opaque', format: 'json', datasetIdentifier: 'people', recordTypeIdentifier: 'person', @@ -289,7 +289,7 @@ record.data.lifecycleState.toUpperCase() client.createRecordJson(create, '{"wide":9007199254740992}', 'exact-create') client.patchRecordJson(patch, '9f6973f9-10b3-4c58-b41b-494cba26796f', '"breg-1"', '[{"op":"remove","field":"name"}]', 'exact-patch') client.getRecordJson('people', '9f6973f9-10b3-4c58-b41b-494cba26796f').then(result => result.valueJson.toUpperCase()) -client.listRecordsJson('people').then(result => result.continuation?.skiptoken.toUpperCase()) +client.listRecordsJson('people').then(result => result.continuation?.cursor.toUpperCase()) client.lookupRecordJson('people', 'identifier', '{"name":"Ada"}') metadata.operations.map(operation => operation.query?.filterableFields.map(field => field.apiName)) metadata.operations.map(operation => operation.request.allowCreate === false) diff --git a/crates/registry-breg-client-node/__test__/read-cancellation.test.js b/crates/registry-breg-client-node/__test__/read-cancellation.test.js index 6320af37aa..41e641b9d3 100644 --- a/crates/registry-breg-client-node/__test__/read-cancellation.test.js +++ b/crates/registry-breg-client-node/__test__/read-cancellation.test.js @@ -30,7 +30,7 @@ async function serve(t) { const server = http.createServer((request, response) => { const collection = !request.url.split('?')[0].endsWith(id); const body = JSON.stringify(collection - ? { items: [record], pageInfo: { nextCursor: request.url.includes('$skiptoken=') ? null : 'next' }, meta } + ? { items: [record], pageInfo: { nextCursor: request.url.includes('cursor=') ? null : 'next' }, meta } : { data: record, meta }); const entry = { url: request.url, headers: request.headers, closed: false, finish: () => response.end(body) }; requests.push(entry); @@ -99,7 +99,7 @@ for (const suffix of ['', 'Json']) { await until(() => fixture.requests[1].closed, 'continuation request closed'); cancelled(await observe(fixture.client[`continueList${suffix}`](first.continuation, { signal: controller.signal }))); await delay(30); assert.equal(fixture.requests.length, 2); - assert(fixture.requests[1].url.includes('$skiptoken=next')); + assert(fixture.requests[1].url.includes('cursor=next')); assert(fixture.requests[1].url.includes('accessProfile=reader')); fixture.mode('finish'); await fixture.client[`continueList${suffix}`](first.continuation); assert.equal(fixture.requests.length, 3); diff --git a/crates/registry-breg-client-node/__test__/read-parity.test.js b/crates/registry-breg-client-node/__test__/read-parity.test.js index fe1673d363..cf3b8719d8 100644 --- a/crates/registry-breg-client-node/__test__/read-parity.test.js +++ b/crates/registry-breg-client-node/__test__/read-parity.test.js @@ -28,7 +28,7 @@ test('specialized read methods keep routes, cursors, snapshots, exact JSON and o const server = http.createServer((request, response) => { requests.push({ accept: request.headers.accept, url: request.url }); const path = request.url.split('?')[0]; - const continuation = request.url.includes('$skiptoken='); + const continuation = request.url.includes('cursor='); if (request.headers.accept === 'application/geo+json') { if (path.endsWith(id)) return respond(response, 'application/geo+json', feature); return respond(response, 'application/geo+json', `{"type":"FeatureCollection","features":[{"type":"Feature","id":"${id}","geometry":${JSON.stringify(multiPolygon)},"properties":{"wide":9007199254740992},"registry":{"revision":1}}],"numberReturned":1,"registry":{"pageInfo":{"nextCursor":${continuation ? 'null' : '"geo-next"'}}}}`); @@ -100,9 +100,9 @@ test('specialized read methods keep routes, cursors, snapshots, exact JSON and o const beforeRetiredOption = requests.length; await assert.rejects(client.getRecord('companies', id, {requestHistoryAfterProposalVersion: 3}), error => error.kind === 'invalid-request'); assert.equal(requests.length, beforeRetiredOption); - assert(requests.some(item => item.accept === 'application/geo+json' && item.url.includes('$skiptoken=geo-next'))); + assert(requests.some(item => item.accept === 'application/geo+json' && item.url.includes('cursor=geo-next'))); assert(requests.some(item => item.url.includes('/companies:as-of?asOf=2026-09-10T00%3A00%3A00Z'))); - assert(requests.some(item => item.url.includes(`/companies/${id}/related?$skiptoken=next`))); + assert(requests.some(item => item.url.includes(`/companies/${id}/related?cursor=next`))); const requestCount = requests.length; await assert.rejects(client.listCurrentRecords('companies', { bbox: ['1', '2', '3', '4'] }), error => error.kind === 'invalid-request'); @@ -119,7 +119,7 @@ test('exact JSON reads preserve and follow the largest server cursor envelope', const requests = []; const server = http.createServer((request, response) => { requests.push(request.url); - const continuation = request.url.includes('$skiptoken='); + const continuation = request.url.includes('cursor='); respond(response, 'application/json', { items: [record], pageInfo: { nextCursor: continuation ? null : cursor }, @@ -132,12 +132,12 @@ test('exact JSON reads preserve and follow the largest server cursor envelope', baseUrl: `http://127.0.0.1:${server.address().port}`, maximumResponseBytes: 32 * 1024, }); - const first = await client.listRecordsJson('companies', { top: 1, count: true }); - assert.equal(first.continuation.skiptoken.length, cursor.length); + const first = await client.listRecordsJson('companies', { limit: 1, count: true }); + assert.equal(first.continuation.cursor.length, cursor.length); const last = await client.continueListJson(first.continuation); assert.equal(last.continuation, undefined); assert.equal(requests.length, 2); - assert.match(requests[1], /\$skiptoken=/); + assert.match(requests[1], /cursor=/); } finally { await new Promise(resolve => server.close(resolve)); } diff --git a/crates/registry-breg-client-node/client.d.ts b/crates/registry-breg-client-node/client.d.ts index 3ab5385e9c..649d277ddc 100644 --- a/crates/registry-breg-client-node/client.d.ts +++ b/crates/registry-breg-client-node/client.d.ts @@ -224,7 +224,7 @@ export interface RecordOptions extends RecordProjectionOptions { } export interface ListOptions extends RecordProjectionOptions { - top?: SafeInteger | null + limit?: SafeInteger | null filter?: string | null orderby?: string | null count?: boolean | null @@ -232,7 +232,7 @@ export interface ListOptions extends RecordProjectionOptions { } export interface CollectionOptions extends RecordProjectionOptions { - top?: SafeInteger | null + limit?: SafeInteger | null filter?: string | null orderby?: string | null count?: boolean | null @@ -248,7 +248,7 @@ export interface GeoJsonOptions { accessProfile?: string | null } export interface GeoJsonListOptions extends GeoJsonOptions { - top?: SafeInteger | null + limit?: SafeInteger | null filter?: string | null orderby?: string | null count?: boolean | null @@ -257,7 +257,7 @@ export interface GeoJsonListOptions extends GeoJsonOptions { export interface ListContinuation { route: string - skiptoken: string + cursor: string format: RecordFormat accessProfile?: string | null registryIdentifier: string @@ -276,7 +276,7 @@ export interface RelationshipListContinuation extends ListContinuation { } export interface GeoJsonListContinuation { route: string - skiptoken: string + cursor: string accessProfile?: string } diff --git a/crates/registry-breg-client-node/src/lib.rs b/crates/registry-breg-client-node/src/lib.rs index e3ae9e6984..0ea6c03e26 100644 --- a/crates/registry-breg-client-node/src/lib.rs +++ b/crates/registry-breg-client-node/src/lib.rs @@ -1326,7 +1326,7 @@ fn list_request(value: Option) -> Result { "select", "accessProfile", "format", - "top", + "limit", "filter", "orderby", "count", @@ -1341,7 +1341,7 @@ fn list_request(value: Option) -> Result { .map(|(field, value)| (field.clone(), value.clone())) .collect(); let mut request = BRegListRequest::default().options(record_options(Some(&base))?); - match object.get("top") { + match object.get("limit") { None | Some(Value::Null) => {} Some(value) => { let value = safe_integer( @@ -1349,10 +1349,10 @@ fn list_request(value: Option) -> Result { 1, 100, "invalid-request", - "top must be 1 through 100", + "limit must be 1 through 100", )?; request = request - .top(value as u32) + .limit(value as u32) .map_err(|error| binding_error("invalid-request", error.to_string()))?; } } @@ -1393,7 +1393,7 @@ fn list_request(value: Option) -> Result { struct CollectionInputs { options: BRegRecordOptions, - top: Option, + limit: Option, filter: Option, orderby: Option, count: Option, @@ -1408,7 +1408,7 @@ fn collection_inputs( "select", "accessProfile", "format", - "top", + "limit", "filter", "orderby", "count", @@ -1425,8 +1425,8 @@ fn collection_inputs( .filter(|(field, _)| matches!(field.as_str(), "select" | "accessProfile" | "format")) .map(|(field, value)| (field.clone(), value.clone())) .collect(); - let top = object - .get("top") + let limit = object + .get("limit") .filter(|value| !value.is_null()) .map(|value| { safe_integer( @@ -1434,7 +1434,7 @@ fn collection_inputs( 1, 100, "invalid-request", - "top must be 1 through 100", + "limit must be 1 through 100", ) .map(|value| value as u32) }) @@ -1463,7 +1463,7 @@ fn collection_inputs( object, CollectionInputs { options: record_options(Some(&base))?, - top, + limit, filter, orderby, count, @@ -1474,9 +1474,9 @@ fn collection_inputs( macro_rules! apply_collection_inputs { ($request:ident, $inputs:ident) => { $request = $request.options($inputs.options); - if let Some(value) = $inputs.top { + if let Some(value) = $inputs.limit { $request = $request - .top(value) + .limit(value) .map_err(|error| binding_error("invalid-request", error.to_string()))?; } if let Some(value) = $inputs.filter { @@ -1621,9 +1621,9 @@ fn geojson_list_request(value: Option) -> Result .map(|(field, value)| (field.clone(), value.clone())) .collect(); let mut request = BRegGeoJsonListRequest::default().options(geojson_options(&base)?); - if let Some(value) = inputs.top { + if let Some(value) = inputs.limit { request = request - .top(value) + .limit(value) .map_err(|error| binding_error("invalid-request", error.to_string()))?; } if let Some(value) = inputs.filter { diff --git a/crates/registry-breg-client-py/python/registry_breg_client/__init__.pyi b/crates/registry-breg-client-py/python/registry_breg_client/__init__.pyi index 652ea24831..4a50bb57c6 100644 --- a/crates/registry-breg-client-py/python/registry_breg_client/__init__.pyi +++ b/crates/registry-breg-client-py/python/registry_breg_client/__init__.pyi @@ -495,7 +495,7 @@ class BaseRegistryClient: self, record_route: str, *, - top: int | None = None, + limit: int | None = None, select: Sequence[str] | None = None, access_profile: str | None = None, filter: str | None = None, @@ -533,7 +533,7 @@ class BaseRegistryClient: self, record_route: str, *, - top: int | None = None, + limit: int | None = None, select: Sequence[str] | None = None, access_profile: str | None = None, format: RecordFormat = "json", @@ -546,7 +546,7 @@ class BaseRegistryClient: self, record_route: str, *, - top: int | None = None, + limit: int | None = None, select: Sequence[str] | None = None, access_profile: str | None = None, format: RecordFormat = "json", @@ -562,7 +562,7 @@ class BaseRegistryClient: record_route: str, as_of: str, *, - top: int | None = None, + limit: int | None = None, select: Sequence[str] | None = None, access_profile: str | None = None, format: RecordFormat = "json", @@ -579,7 +579,7 @@ class BaseRegistryClient: *, snapshot: str | None = None, valid_at: str | None = None, - top: int | None = None, + limit: int | None = None, select: Sequence[str] | None = None, access_profile: str | None = None, format: RecordFormat = "json", @@ -596,7 +596,7 @@ class BaseRegistryClient: record_id: str, path_route: str, *, - top: int | None = None, + limit: int | None = None, select: Sequence[str] | None = None, access_profile: str | None = None, format: RecordFormat = "json", diff --git a/crates/registry-breg-client-py/src/lib.rs b/crates/registry-breg-client-py/src/lib.rs index 0835cb7654..a01525d68f 100644 --- a/crates/registry-breg-client-py/src/lib.rs +++ b/crates/registry-breg-client-py/src/lib.rs @@ -326,7 +326,7 @@ fn record_options( #[allow(clippy::too_many_arguments)] fn list_request( py: Python<'_>, - top: Option, + limit: Option, select: Option>, access_profile: Option, format: &str, @@ -337,9 +337,9 @@ fn list_request( ) -> PyResult { let mut request = BRegListRequest::default().options(record_options(py, select, access_profile, format)?); - if let Some(value) = top { + if let Some(value) = limit { request = request - .top(value) + .limit(value) .map_err(|error| invalid(py, error.to_string()))?; } if let Some(value) = filter { @@ -365,7 +365,7 @@ fn list_request( } struct ScalarListArguments { - top: Option, + limit: Option, select: Option>, access_profile: Option, format: String, @@ -383,9 +383,9 @@ macro_rules! configure_scalar_list { arguments.access_profile, &arguments.format, )?); - if let Some(value) = arguments.top { + if let Some(value) = arguments.limit { request = request - .top(value) + .limit(value) .map_err(|error| invalid($py, error.to_string()))?; } if let Some(value) = arguments.filter { @@ -422,9 +422,9 @@ fn geojson_list_request( .map_err(|error| invalid(py, error.to_string()))?; } let mut request = BRegGeoJsonListRequest::default().options(options); - if let Some(value) = arguments.top { + if let Some(value) = arguments.limit { request = request - .top(value) + .limit(value) .map_err(|error| invalid(py, error.to_string()))?; } if let Some(value) = arguments.filter { @@ -2203,13 +2203,13 @@ impl BaseRegistryClient { complete_value(py, &value.value, &value.metadata) } - #[pyo3(signature = (record_route, *, top=None, select=None, access_profile=None, filter=None, orderby=None, count=None, bbox=None))] + #[pyo3(signature = (record_route, *, limit=None, select=None, access_profile=None, filter=None, orderby=None, count=None, bbox=None))] #[allow(clippy::too_many_arguments)] fn list_geojson_records<'py>( &self, py: Python<'py>, record_route: &str, - top: Option, + limit: Option, select: Option>, access_profile: Option, filter: Option, @@ -2220,7 +2220,7 @@ impl BaseRegistryClient { let request = geojson_list_request( py, ScalarListArguments { - top, + limit, select, access_profile, format: "json".to_owned(), @@ -2337,13 +2337,13 @@ impl BaseRegistryClient { raw_value(py, &value.value, &value.metadata) } - #[pyo3(signature = (record_route, *, top=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None, bbox=None))] + #[pyo3(signature = (record_route, *, limit=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None, bbox=None))] #[allow(clippy::too_many_arguments)] fn list_records<'py>( &self, py: Python<'py>, record_route: &str, - top: Option, + limit: Option, select: Option>, access_profile: Option, format: &str, @@ -2354,7 +2354,7 @@ impl BaseRegistryClient { ) -> PyResult> { let request = list_request( py, - top, + limit, select, access_profile, format, @@ -2372,13 +2372,13 @@ impl BaseRegistryClient { page_value(py, value) } - #[pyo3(signature = (record_route, *, top=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] + #[pyo3(signature = (record_route, *, limit=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] #[allow(clippy::too_many_arguments)] fn list_current_records<'py>( &self, py: Python<'py>, record_route: &str, - top: Option, + limit: Option, select: Option>, access_profile: Option, format: &str, @@ -2390,7 +2390,7 @@ impl BaseRegistryClient { py, BRegCurrentListRequest::default(), ScalarListArguments { - top, + limit, select, access_profile, format: format.to_owned(), @@ -2436,14 +2436,14 @@ impl BaseRegistryClient { ) } - #[pyo3(signature = (record_route, as_of, *, top=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] + #[pyo3(signature = (record_route, as_of, *, limit=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] #[allow(clippy::too_many_arguments)] fn list_records_as_of<'py>( &self, py: Python<'py>, record_route: &str, as_of: &str, - top: Option, + limit: Option, select: Option>, access_profile: Option, format: &str, @@ -2457,7 +2457,7 @@ impl BaseRegistryClient { py, request, ScalarListArguments { - top, + limit, select, access_profile, format: format.to_owned(), @@ -2503,7 +2503,7 @@ impl BaseRegistryClient { ) } - #[pyo3(signature = (record_route, *, snapshot=None, valid_at=None, top=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] + #[pyo3(signature = (record_route, *, snapshot=None, valid_at=None, limit=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] #[allow(clippy::too_many_arguments)] fn list_snapshot_records<'py>( &self, @@ -2511,7 +2511,7 @@ impl BaseRegistryClient { record_route: &str, snapshot: Option, valid_at: Option, - top: Option, + limit: Option, select: Option>, access_profile: Option, format: &str, @@ -2523,7 +2523,7 @@ impl BaseRegistryClient { py, BRegSnapshotListRequest::default(), ScalarListArguments { - top, + limit, select, access_profile, format: format.to_owned(), @@ -2593,7 +2593,7 @@ impl BaseRegistryClient { Ok(result) } - #[pyo3(signature = (record_route, record_id, path_route, *, top=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] + #[pyo3(signature = (record_route, record_id, path_route, *, limit=None, select=None, access_profile=None, format="json", filter=None, orderby=None, count=None))] #[allow(clippy::too_many_arguments)] fn list_relationship_records<'py>( &self, @@ -2601,7 +2601,7 @@ impl BaseRegistryClient { record_route: &str, record_id: &str, path_route: &str, - top: Option, + limit: Option, select: Option>, access_profile: Option, format: &str, @@ -2613,7 +2613,7 @@ impl BaseRegistryClient { py, BRegRelationshipListRequest::default(), ScalarListArguments { - top, + limit, select, access_profile, format: format.to_owned(), diff --git a/crates/registry-breg-client-py/tests/python/test_read_parity.py b/crates/registry-breg-client-py/tests/python/test_read_parity.py index b32ec90baa..45e0546ede 100644 --- a/crates/registry-breg-client-py/tests/python/test_read_parity.py +++ b/crates/registry-breg-client-py/tests/python/test_read_parity.py @@ -78,7 +78,7 @@ def do_GET(self) -> None: # noqa: N802 if RECORD_ID in self.path: self.respond(feature(), "application/geo+json", False, False) else: - cursor = None if "%24skiptoken=" in self.path or "$skiptoken=" in self.path else "geo-next" + cursor = None if "cursor=" in self.path else "geo-next" self.respond( { "type": "FeatureCollection", @@ -116,7 +116,7 @@ def do_GET(self) -> None: # noqa: N802 for marker in (":current", ":as-of", ":snapshot", "/related") ) if is_collection: - cursor = None if "%24skiptoken=" in self.path or "$skiptoken=" in self.path else "next" + cursor = None if "cursor=" in self.path else "next" value = { "items": [record_data()], "pageInfo": {"nextCursor": cursor}, @@ -183,7 +183,7 @@ def test_geojson_bbox_and_typed_continuation(self) -> None: first = self.client.list_geojson_records( "companies", access_profile="map", - top=1, + limit=1, count=True, bbox=("100.1", "13.1", "100.2", "13.2"), ) @@ -191,7 +191,7 @@ def test_geojson_bbox_and_typed_continuation(self) -> None: self.assertEqual( first["value"]["features"][0]["geometry"]["type"], "MultiPolygon" ) - self.assertEqual(first["continuation"]["skiptoken"], "geo-next") + self.assertEqual(first["continuation"]["cursor"], "geo-next") second = self.client.continue_geojson_list(first["continuation"]) self.assertIsNone(second["continuation"]) self.assertTrue(any("bbox=100.1%2C13.1%2C100.2%2C13.2" in path for path, _ in self.requests)) @@ -204,27 +204,27 @@ def test_geojson_bbox_and_typed_continuation(self) -> None: self.assertEqual(len(self.requests), request_count) def test_temporal_snapshot_relationship_revision_reads(self) -> None: - current = self.client.list_current_records("companies", top=1) + current = self.client.list_current_records("companies", limit=1) self.assertIsNone( self.client.continue_current_list(current["continuation"])["continuation"] ) as_of = self.client.list_records_as_of( - "companies", "2026-09-10T00:00:00Z", top=1 + "companies", "2026-09-10T00:00:00Z", limit=1 ) self.assertEqual(as_of["continuation"]["asOf"], "2026-09-10T00:00:00Z") self.assertIsNone( self.client.continue_as_of_list(as_of["continuation"])["continuation"] ) - snapshot = self.client.list_snapshot_records("companies", top=1) + snapshot = self.client.list_snapshot_records("companies", limit=1) self.assertEqual(snapshot["snapshot"], SNAPSHOT) resumed = self.client.continue_snapshot_list(snapshot["continuation"]) self.assertEqual(resumed["snapshot"], SNAPSHOT) self.assertIsNone(resumed["continuation"]) related = self.client.list_relationship_records( - "companies", RECORD_ID, "related", top=1 + "companies", RECORD_ID, "related", limit=1 ) self.assertEqual(related["continuation"]["pathRoute"], "related") self.assertIsNone( diff --git a/crates/registry-breg-client/README.md b/crates/registry-breg-client/README.md index 4d7f022fbf..d87a8803ab 100644 --- a/crates/registry-breg-client/README.md +++ b/crates/registry-breg-client/README.md @@ -72,7 +72,7 @@ let options = BRegRecordOptions::default() .access_profile("caseworker.v1")? .select(["legalName", "status"])? .format(BRegRecordFormat::JsonLd); -let request = BRegListRequest::default().options(options).top(25)?; +let request = BRegListRequest::default().options(options).limit(25)?; let first = client.list_records("companies", &request).await?; if let Some(next) = first.value.continuation { let _next_page = client.continue_list(&next).await?; diff --git a/crates/registry-breg-client/examples/native_geojson.rs b/crates/registry-breg-client/examples/native_geojson.rs index a31d58dc2a..d4fa3d4c11 100644 --- a/crates/registry-breg-client/examples/native_geojson.rs +++ b/crates/registry-breg-client/examples/native_geojson.rs @@ -33,7 +33,7 @@ async fn main() -> Result<(), Box> { let request = BRegGeoJsonListRequest::default() .options(options) .bbox(bbox) - .top(20)?; + .limit(20)?; let mut page = client.list_geojson_records(&route, &request).await?; loop { println!("{}", serde_json::to_string(&page.value.value)?); diff --git a/crates/registry-breg-client/src/geojson.rs b/crates/registry-breg-client/src/geojson.rs index 383105168b..cbce43fb39 100644 --- a/crates/registry-breg-client/src/geojson.rs +++ b/crates/registry-breg-client/src/geojson.rs @@ -69,8 +69,8 @@ impl BRegGeoJsonListRequest { self } - pub fn top(mut self, value: u32) -> Result { - self.list = self.list.top(value)?; + pub fn limit(mut self, value: u32) -> Result { + self.list = self.list.limit(value)?; Ok(self) } @@ -227,7 +227,8 @@ pub struct BRegGeoJsonPage { #[serde(deny_unknown_fields, rename_all = "camelCase")] pub struct BRegGeoJsonContinuationProjection { pub route: String, - pub skiptoken: String, + #[serde(alias = "skiptoken")] + pub cursor: String, #[serde(skip_serializing_if = "Option::is_none")] pub access_profile: Option, } @@ -241,12 +242,12 @@ pub struct BRegGeoJsonContinuation { impl BRegGeoJsonContinuation { pub(crate) fn try_from_parts( route: &str, - skiptoken: &str, + cursor: &str, access_profile: Option, ) -> Result { Self::try_from_projection(BRegGeoJsonContinuationProjection { route: route.to_owned(), - skiptoken: skiptoken.to_owned(), + cursor: cursor.to_owned(), access_profile, }) } @@ -256,7 +257,7 @@ impl BRegGeoJsonContinuation { ) -> Result { let placeholder = BRegContinuationProjection { route: value.route, - skiptoken: value.skiptoken, + cursor: value.cursor, format: BRegRecordFormat::Json, access_profile: value.access_profile, registry_identifier: "geojson".to_owned(), @@ -273,7 +274,7 @@ impl BRegGeoJsonContinuation { let projection = self.collection.projection(); BRegGeoJsonContinuationProjection { route: projection.route, - skiptoken: projection.skiptoken, + cursor: projection.cursor, access_profile: projection.access_profile, } } diff --git a/crates/registry-breg-client/src/ingestion.rs b/crates/registry-breg-client/src/ingestion.rs index e6c7c39ffd..03cc2838ee 100644 --- a/crates/registry-breg-client/src/ingestion.rs +++ b/crates/registry-breg-client/src/ingestion.rs @@ -82,6 +82,8 @@ pub enum BRegIngestionError { EmptyChunk, #[error("a Base Registry Engine ingestion chunk item is not a valid batch item")] InvalidItem, + #[error("replace recordIdentifier with recordId in the patch item")] + RetiredRecordIdentifier, #[error("the Base Registry Engine ingestion chunk exceeds its item ceiling")] TooManyItems, #[error("the Base Registry Engine ingestion request body exceeds its encoded-byte ceiling")] @@ -1017,9 +1019,7 @@ impl BRegIngestionChunk { if items.len() > MAXIMUM_BREG_INGESTION_CHUNK_ITEMS { return Err(BRegIngestionError::TooManyItems); } - if items.iter().any(|item| !valid_batch_item(item)) { - return Err(BRegIngestionError::InvalidItem); - } + items.iter().try_for_each(validate_batch_item)?; validate_json_values(&items, 2).map_err(|_| BRegIngestionError::InvalidItem)?; let digest = ingestion_chunk_digest(&items)?; let prefix_digest = prefix_digest.into(); @@ -1276,19 +1276,22 @@ fn bound_member(value: impl Into) -> Result Ok(value) } -/// Whether one chunk item carries the closed create-or-patch shape the Base +/// Check that a chunk item carries the closed create-or-patch shape the Base /// Registry Engine's batch route parses. A create carries exactly the /// operation and its domain data object; a patch carries exactly the /// operation, the record reference, the expected etag, and the JSON Patch /// document. Anything else is refused here rather than answered /// request.invalid by a run that could never accept it. -fn valid_batch_item(item: &Value) -> bool { +fn validate_batch_item(item: &Value) -> Result<(), BRegIngestionError> { let Some(object) = item.as_object() else { - return false; + return Err(BRegIngestionError::InvalidItem); }; - match object.get("operation").and_then(Value::as_str) { + let valid = match object.get("operation").and_then(Value::as_str) { Some("create") => object.len() == 2 && object.get("data").is_some_and(Value::is_object), Some("patch") => { + if object.contains_key("recordIdentifier") { + return Err(BRegIngestionError::RetiredRecordIdentifier); + } object.len() == 4 && object .get("recordId") @@ -1301,6 +1304,11 @@ fn valid_batch_item(item: &Value) -> bool { && object.get("patch").is_some_and(valid_json_patch_document) } _ => false, + }; + if valid { + Ok(()) + } else { + Err(BRegIngestionError::InvalidItem) } } @@ -2158,6 +2166,28 @@ mod tests { ); } + #[test] + fn a_chunk_refusal_names_the_replacement_for_a_retired_patch_key() { + let retired = json!({ + "operation": "patch", "recordIdentifier": "retired-value-canary", + "ifMatch": "\"breg-record-v1-abcdef012345\"", + "patch": [{"op": "remove", "path": "/data/legalName"}] + }); + let mut mixed = retired.clone(); + mixed["recordId"] = json!(RUN_ID); + for item in [retired, mixed] { + let error = BRegIngestionChunk::new(0, vec![item], PREFIX_DIGEST).unwrap_err(); + assert_eq!(error, BRegIngestionError::RetiredRecordIdentifier); + assert_eq!( + error.to_string(), + "replace recordIdentifier with recordId in the patch item" + ); + } + + let create = json!({"operation": "create", "data": {"recordIdentifier": "a domain value"}}); + BRegIngestionChunk::new(0, vec![create], PREFIX_DIGEST).expect("keep domain field names"); + } + #[test] fn a_chunk_refuses_items_outside_the_closed_batch_item_shapes() { let create = json!({"operation": "create", "data": {"legalName": "Example Ltd"}}); @@ -2177,9 +2207,6 @@ mod tests { json!({"operation": "create", "data": {"legalName": "Example Ltd"}, "extra": 1}), json!({"operation": "create", "data": "not-an-object"}), json!({"operation": "delete", "data": {}}), - json!({"operation": "patch", "recordIdentifier": RUN_ID, "ifMatch": etag, "patch": [ - {"op": "remove", "path": "/data/legalName"} - ]}), // A patch carries exactly the record reference, the expected etag, // and the JSON Patch document. json!({"operation": "patch", "recordId": RUN_ID, "ifMatch": etag}), diff --git a/crates/registry-breg-client/src/query.rs b/crates/registry-breg-client/src/query.rs index 4079f7217b..ca392aaede 100644 --- a/crates/registry-breg-client/src/query.rs +++ b/crates/registry-breg-client/src/query.rs @@ -234,7 +234,7 @@ impl fmt::Debug for BRegBoundingBox { #[derive(Clone, Default, PartialEq, Eq)] pub struct BRegListRequest { options: BRegRecordOptions, - top: Option, + limit: Option, filter: Option, orderby: Option, count: Option, @@ -250,13 +250,13 @@ impl BRegListRequest { } /// Set the requested page size, from one through the BReg maximum of 100. - pub fn top(mut self, value: u32) -> Result { + pub fn limit(mut self, value: u32) -> Result { if !(1..=MAX_TOP).contains(&value) { return Err(BRegRequestError::new( - "Base Registry Engine $top must be between 1 and 100", + "Base Registry Engine limit must be between 1 and 100", )); } - self.top = Some(value); + self.limit = Some(value); Ok(self) } @@ -299,8 +299,8 @@ impl BRegListRequest { if let Some(value) = &self.orderby { pairs.push(("$orderby".into(), value.clone())); } - if let Some(value) = self.top { - pairs.push(("$top".into(), value.to_string())); + if let Some(value) = self.limit { + pairs.push(("limit".into(), value.to_string())); } if let Some(value) = self.count { pairs.push(("$count".into(), value.to_string())); @@ -323,7 +323,7 @@ impl fmt::Debug for BRegListRequest { formatter .debug_struct("BRegListRequest") .field("options", &self.options) - .field("top", &self.top) + .field("limit", &self.limit) .field("filter_present", &self.filter.is_some()) .field("orderby_present", &self.orderby.is_some()) .field("count", &self.count) @@ -453,8 +453,9 @@ impl fmt::Debug for BRegLookupRequest { pub struct BRegContinuationProjection { /// Logical Base Registry Engine record route segment. pub route: String, - /// Opaque Base Registry Engine `$skiptoken`. - pub skiptoken: String, + /// Opaque Base Registry Engine `cursor`. + #[serde(alias = "skiptoken")] + pub cursor: String, /// Representation selected for the original page. pub format: BRegRecordFormat, /// Access profile selected for the original page, when explicit. @@ -473,7 +474,7 @@ impl fmt::Debug for BRegContinuationProjection { formatter .debug_struct("BRegContinuationProjection") .field("route", &"") - .field("skiptoken", &"") + .field("cursor", &"") .field("format", &self.format) .field("access_profile_present", &self.access_profile.is_some()) .field("collection_binding", &"") @@ -485,12 +486,12 @@ impl fmt::Debug for BRegContinuationProjection { /// and first-page collection identity. /// /// Only continuation operations consume this type. It intentionally exposes no -/// `$select`, `$filter`, `$orderby`, `$top`, or `$count` setters, preventing a +/// `$select`, `$filter`, `$orderby`, `limit`, or `$count` setters, preventing a /// cursor from being mixed with first-page facts. #[derive(Clone, Eq, PartialEq)] pub struct BRegContinuation { route: String, - skiptoken: String, + cursor: String, format: BRegRecordFormat, access_profile: Option, registry_identifier: String, @@ -501,14 +502,14 @@ pub struct BRegContinuation { impl BRegContinuation { pub(crate) fn try_from_parts( route: impl Into, - skiptoken: impl Into, + cursor: impl Into, format: BRegRecordFormat, access_profile: Option, meta: &RegistryRecordMeta, ) -> Result { Self::try_from_projection(BRegContinuationProjection { route: route.into(), - skiptoken: skiptoken.into(), + cursor: cursor.into(), format, access_profile, registry_identifier: meta.registry_id.clone(), @@ -524,7 +525,7 @@ impl BRegContinuation { if !valid_compiled_identifier(&value.route) { return Err(BRegRequestError::new(INVALID_ROUTE)); } - validate_skiptoken(&value.skiptoken)?; + validate_skiptoken(&value.cursor)?; if let Some(profile) = &value.access_profile { validate_access_profile(profile)?; } @@ -540,7 +541,7 @@ impl BRegContinuation { } Ok(Self { route: value.route, - skiptoken: value.skiptoken, + cursor: value.cursor, format: value.format, access_profile: value.access_profile, registry_identifier: value.registry_identifier, @@ -554,7 +555,7 @@ impl BRegContinuation { pub fn projection(&self) -> BRegContinuationProjection { BRegContinuationProjection { route: self.route.clone(), - skiptoken: self.skiptoken.clone(), + cursor: self.cursor.clone(), format: self.format, access_profile: self.access_profile.clone(), registry_identifier: self.registry_identifier.clone(), @@ -592,7 +593,7 @@ impl BRegContinuation { if let Some(value) = &self.access_profile { pairs.push(("accessProfile".into(), value.clone())); } - pairs.push(("$skiptoken".into(), self.skiptoken.clone())); + pairs.push(("cursor".into(), self.cursor.clone())); ensure_query_bound(&pairs)?; Ok(pairs) } @@ -603,7 +604,7 @@ impl fmt::Debug for BRegContinuation { formatter .debug_struct("BRegContinuation") .field("route", &"") - .field("skiptoken", &"") + .field("cursor", &"") .field("format", &self.format) .field("access_profile_present", &self.access_profile.is_some()) .field("collection_binding", &"") @@ -1067,13 +1068,13 @@ mod tests { .unwrap() .orderby("openedOn desc") .unwrap() - .top(50) + .limit(50) .unwrap() .count(false); let query = breg_encoded_query(&request.query_pairs().unwrap()); assert_eq!( query, - "accessProfile=caseworker&$select=caseCode%2Cstatus&$filter=status%20eq%20%27open%27&$orderby=openedOn%20desc&$top=50&$count=false" + "accessProfile=caseworker&$select=caseCode%2Cstatus&$filter=status%20eq%20%27open%27&$orderby=openedOn%20desc&limit=50&$count=false" ); assert_eq!( request.record_options().format_value().media_type(), @@ -1083,10 +1084,10 @@ mod tests { #[test] fn list_bounds_top_and_opaque_query_members_without_parsing_their_grammar() { - assert!(BRegListRequest::default().top(1).is_ok()); - assert!(BRegListRequest::default().top(MAX_TOP).is_ok()); - assert!(BRegListRequest::default().top(0).is_err()); - assert!(BRegListRequest::default().top(MAX_TOP + 1).is_err()); + assert!(BRegListRequest::default().limit(1).is_ok()); + assert!(BRegListRequest::default().limit(MAX_TOP).is_ok()); + assert!(BRegListRequest::default().limit(0).is_err()); + assert!(BRegListRequest::default().limit(MAX_TOP + 1).is_err()); assert!(BRegListRequest::default().filter("not parsed here").is_ok()); assert!(BRegListRequest::default().filter("").is_err()); assert!(BRegListRequest::default().filter("field\nvalue").is_err()); @@ -1203,13 +1204,13 @@ mod tests { assert_eq!(continuation.access_profile(), Some("caseworker.v1")); assert_eq!( breg_encoded_query(&continuation.query_pairs().unwrap()), - "accessProfile=caseworker.v1&$skiptoken=opaque%2B%2F%3Dtoken" + "accessProfile=caseworker.v1&cursor=opaque%2B%2F%3Dtoken" ); assert_eq!( serde_json::to_value(&continuation).unwrap(), json!({ "route": "case-files", - "skiptoken": "opaque+/=token", + "cursor": "opaque+/=token", "format": "json-ld", "accessProfile": "caseworker.v1", "registryIdentifier": "business-registry", @@ -1217,6 +1218,16 @@ mod tests { "recordTypeIdentifier": "company" }) ); + let mut legacy = serde_json::to_value(&continuation).unwrap(); + let fields = legacy.as_object_mut().unwrap(); + let cursor = fields.remove("cursor").unwrap(); + fields.insert("skiptoken".to_owned(), cursor.clone()); + assert_eq!( + serde_json::from_value::(legacy.clone()).unwrap(), + continuation + ); + legacy["cursor"] = cursor; + assert!(serde_json::from_value::(legacy).is_err()); } #[test] @@ -1241,7 +1252,7 @@ mod tests { .is_err()); assert!(serde_json::from_value::(json!({ "route": "cases", - "skiptoken": "token", + "cursor": "token", "format": "json", "registryIdentifier": "business-registry", "datasetIdentifier": "legal-entities", diff --git a/crates/registry-breg-client/src/read.rs b/crates/registry-breg-client/src/read.rs index 169df0c279..bf488286e0 100644 --- a/crates/registry-breg-client/src/read.rs +++ b/crates/registry-breg-client/src/read.rs @@ -31,8 +31,8 @@ macro_rules! collection_request { } /// Set the requested page size from one through 100. - pub fn top(mut self, value: u32) -> Result { - self.list = self.list.top(value)?; + pub fn limit(mut self, value: u32) -> Result { + self.list = self.list.limit(value)?; Ok(self) } @@ -271,7 +271,7 @@ macro_rules! simple_continuation { impl $name { pub(crate) fn try_from_parts( route: &str, - skiptoken: &str, + cursor: &str, format: BRegRecordFormat, access_profile: Option, meta: &RegistryRecordMeta, @@ -279,7 +279,7 @@ macro_rules! simple_continuation { Ok(Self { collection: BRegContinuation::try_from_parts( route, - skiptoken, + cursor, format, access_profile, meta, @@ -370,7 +370,7 @@ pub struct BRegAsOfContinuation { impl BRegAsOfContinuation { pub(crate) fn try_from_parts( route: &str, - skiptoken: &str, + cursor: &str, format: BRegRecordFormat, access_profile: Option, meta: &RegistryRecordMeta, @@ -380,7 +380,7 @@ impl BRegAsOfContinuation { Ok(Self { collection: BRegContinuation::try_from_parts( route, - skiptoken, + cursor, format, access_profile, meta, @@ -475,7 +475,7 @@ pub struct BRegSnapshotContinuation { impl BRegSnapshotContinuation { pub(crate) fn try_from_parts( route: &str, - skiptoken: &str, + cursor: &str, format: BRegRecordFormat, access_profile: Option, meta: &RegistryRecordMeta, @@ -487,7 +487,7 @@ impl BRegSnapshotContinuation { Ok(Self { collection: BRegContinuation::try_from_parts( route, - skiptoken, + cursor, format, access_profile, meta, @@ -596,7 +596,7 @@ impl BRegRelationshipContinuation { route: &str, root_record_identifier: &str, path_route: &str, - skiptoken: &str, + cursor: &str, format: BRegRecordFormat, access_profile: Option, meta: &RegistryRecordMeta, @@ -606,7 +606,7 @@ impl BRegRelationshipContinuation { Ok(Self { collection: BRegContinuation::try_from_parts( route, - skiptoken, + cursor, format, access_profile, meta, @@ -745,7 +745,7 @@ fn validate_snapshot_reference(value: &str) -> Result<(), BRegRequestError> { fn validate_route(value: &str) -> Result<(), BRegRequestError> { let projection = BRegContinuationProjection { route: value.to_owned(), - skiptoken: "valid".to_owned(), + cursor: "valid".to_owned(), format: BRegRecordFormat::Json, access_profile: None, registry_identifier: "registry".to_owned(), @@ -808,11 +808,11 @@ mod tests { let current = BRegCurrentListRequest::default() .filter("status eq 'active'") .unwrap() - .top(10) + .limit(10) .unwrap(); assert_eq!( crate::query::breg_encoded_query(¤t.query_pairs().unwrap()), - "$filter=status%20eq%20%27active%27&$top=10" + "$filter=status%20eq%20%27active%27&limit=10" ); let as_of = BRegAsOfListRequest::new("2026-09-10T00:00:00Z") .unwrap() @@ -857,7 +857,7 @@ mod tests { assert_eq!(restored.valid_at(), continuation.valid_at()); assert_eq!( crate::query::breg_encoded_query(&restored.query_pairs().unwrap()), - "accessProfile=reader&$skiptoken=opaque-token" + "accessProfile=reader&cursor=opaque-token" ); } diff --git a/crates/registry-breg-client/tests/http_boundary.rs b/crates/registry-breg-client/tests/http_boundary.rs index 697b18a656..e7ebbd994a 100644 --- a/crates/registry-breg-client/tests/http_boundary.rs +++ b/crates/registry-breg-client/tests/http_boundary.rs @@ -202,16 +202,14 @@ fn happy_response(request: &CapturedRequest, mode: Mode) -> Response { }; if collection { if let Mode::CursorBytes(bytes) = mode { - document["pageInfo"]["nextCursor"] = if request.uri.contains("$skiptoken=") { + document["pageInfo"]["nextCursor"] = if request.uri.contains("cursor=") { Value::Null } else { Value::String("A".repeat(bytes)) }; } } - if collection - && matches!(mode, Mode::MismatchedContinuation) - && request.uri.contains("$skiptoken=") + if collection && matches!(mode, Mode::MismatchedContinuation) && request.uri.contains("cursor=") { document["meta"]["registryId"] = Value::String("other-registry".into()); } @@ -569,7 +567,7 @@ async fn breg_paths_queries_credentials_and_record_representations_are_product_e .expect("filter") .orderby("legalName asc") .expect("ordering") - .top(10) + .limit(10) .expect("top") .count(false); let first_page = client @@ -627,12 +625,12 @@ async fn breg_paths_queries_credentials_and_record_representations_are_product_e assert_eq!(captured[5].accept.as_deref(), Some("application/json")); assert_eq!( captured[6].uri, - "/tenant/prefix/v1/records/companies?accessProfile=public&$select=legalName&$filter=status%20eq%20%27active%27&$orderby=legalName%20asc&$top=10&$count=false" + "/tenant/prefix/v1/records/companies?accessProfile=public&$select=legalName&$filter=status%20eq%20%27active%27&$orderby=legalName%20asc&limit=10&$count=false" ); assert_eq!(captured[6].accept.as_deref(), Some("application/ld+json")); assert_eq!( captured[7].uri, - "/tenant/prefix/v1/records/companies?accessProfile=public&$skiptoken=next-token" + "/tenant/prefix/v1/records/companies?accessProfile=public&cursor=next-token" ); assert!(!captured[7].uri.contains("$select")); assert_eq!(captured[8].method, "POST"); @@ -682,7 +680,7 @@ async fn issued_cursor_envelope_bound_survives_typed_http_continuation() { .options(json_ld_options()) .filter("status eq 'active'") .expect("filter") - .top(1) + .limit(1) .expect("small page") .count(true); let first = client @@ -690,7 +688,7 @@ async fn issued_cursor_envelope_bound_survives_typed_http_continuation() { .await .expect("first page"); let continuation = first.value.continuation.expect("issued continuation"); - assert_eq!(continuation.projection().skiptoken.len(), bytes); + assert_eq!(continuation.projection().cursor.len(), bytes); let last = client .continue_list(&continuation) .await @@ -704,7 +702,7 @@ async fn issued_cursor_envelope_bound_survives_typed_http_continuation() { assert_eq!(pairs.len(), 2); assert_eq!(pairs[0].0, "accessProfile"); assert_eq!(pairs[0].1, "public"); - assert_eq!(pairs[1].0, "$skiptoken"); + assert_eq!(pairs[1].0, "cursor"); assert_eq!(pairs[1].1.len(), bytes); assert_eq!(captured[1].accept.as_deref(), Some("application/ld+json")); } diff --git a/crates/registry-breg-client/tests/read_parity.rs b/crates/registry-breg-client/tests/read_parity.rs index 7770c47ca2..d57200dea9 100644 --- a/crates/registry-breg-client/tests/read_parity.rs +++ b/crates/registry-breg-client/tests/read_parity.rs @@ -51,7 +51,7 @@ async fn handler(State(state): State, request: Request) -> Resp "type":"FeatureCollection", "features":[feature(Value::Null)], "numberReturned":1, - "registry":{"pageInfo":{"nextCursor": if uri.contains("$skiptoken") { Value::Null } else { json!("geo-next") }}} + "registry":{"pageInfo":{"nextCursor": if uri.contains("cursor") { Value::Null } else { json!("geo-next") }}} }) } else { feature(Value::Null) @@ -74,7 +74,7 @@ async fn handler(State(state): State, request: Request) -> Resp let mut document = if collection { json!({ "items":[record()], - "pageInfo":{"nextCursor": if uri.contains("$skiptoken") { Value::Null } else { json!("next") }}, + "pageInfo":{"nextCursor": if uri.contains("cursor") { Value::Null } else { json!("next") }}, "meta":meta() }) } else { @@ -220,7 +220,7 @@ async fn geojson_uses_the_configured_response_body_bound() { let first = client .list_geojson_records( "large-geojson", - &BRegGeoJsonListRequest::default().top(1).unwrap(), + &BRegGeoJsonListRequest::default().limit(1).unwrap(), ) .await .expect("configured bound applies to a GeoJSON collection"); @@ -295,7 +295,7 @@ async fn read_routes_retain_operation_representation_and_snapshot_identity() { let geo = BRegGeoJsonListRequest::default() .options(BRegGeoJsonOptions::default().access_profile("map").unwrap()) .bbox(bbox) - .top(1) + .limit(1) .unwrap(); let first = client .list_geojson_records("companies", &geo) @@ -313,7 +313,7 @@ async fn read_routes_retain_operation_representation_and_snapshot_identity() { .list_records_as_of("companies", &as_of) .await .unwrap(); - let relationship = BRegRelationshipListRequest::default().top(1).unwrap(); + let relationship = BRegRelationshipListRequest::default().limit(1).unwrap(); client .list_relationship_records("companies", RECORD_ID, "related", &relationship) .await @@ -321,7 +321,7 @@ async fn read_routes_retain_operation_representation_and_snapshot_identity() { let snapshot = client .list_snapshot_records( "companies", - &BRegSnapshotListRequest::default().top(1).unwrap(), + &BRegSnapshotListRequest::default().limit(1).unwrap(), ) .await .unwrap(); @@ -340,17 +340,18 @@ async fn read_routes_retain_operation_representation_and_snapshot_identity() { .unwrap(); let captured = captured.lock().unwrap(); - assert!(captured.iter().any(|value| value == "application/geo+json /prefix/v1/records/companies?accessProfile=map&$top=1&bbox=100.1%2C13.1%2C100.2%2C13.2")); - assert!(captured.iter().any(|value| value == "application/geo+json /prefix/v1/records/companies?accessProfile=map&$skiptoken=geo-next")); + assert!(captured.iter().any(|value| value == "application/geo+json /prefix/v1/records/companies?accessProfile=map&limit=1&bbox=100.1%2C13.1%2C100.2%2C13.2")); + assert!(captured.iter().any(|value| value + == "application/geo+json /prefix/v1/records/companies?accessProfile=map&cursor=geo-next")); assert!(captured .iter() .any(|value| value.contains("/companies:as-of?asOf=2026-09-10T00%3A00%3A00Z"))); assert!(captured .iter() - .any(|value| value.contains(&format!("/companies/{RECORD_ID}/related?$top=1")))); + .any(|value| value.contains(&format!("/companies/{RECORD_ID}/related?limit=1")))); assert!(captured .iter() - .any(|value| value.contains("/companies:snapshot?$skiptoken=next"))); + .any(|value| value.contains("/companies:snapshot?cursor=next"))); assert!(captured .iter() .any(|value| value.ends_with(&format!("/companies/{RECORD_ID}")))); diff --git a/crates/registry-breg-mcp/src/gateway.rs b/crates/registry-breg-mcp/src/gateway.rs index 5731e2f79b..b02a7af997 100644 --- a/crates/registry-breg-mcp/src/gateway.rs +++ b/crates/registry-breg-mcp/src/gateway.rs @@ -214,7 +214,9 @@ impl Gateway { /// The citizen's own record, through the registry's linked lookup under /// the delegated token. Anything but exactly one record is a refusal. async fn resolve_own(&self, session: &Session) -> Result { - let request = BRegListRequest::default().options(self.options()?).top(2)?; + let request = BRegListRequest::default() + .options(self.options()?) + .limit(2)?; let page = session .client .list_records(&session.contract.details_route, &request) diff --git a/crates/registry-breg/src/api/external_views.rs b/crates/registry-breg/src/api/external_views.rs index 76b36d0b89..05b4610a7d 100644 --- a/crates/registry-breg/src/api/external_views.rs +++ b/crates/registry-breg/src/api/external_views.rs @@ -692,7 +692,7 @@ fn plan_query( strict_query::ParsedReadQueryMode::SkipToken { token } if allows_query => { return Ok(ExternalQueryMode::Continue(token)); } - strict_query::ParsedReadQueryMode::SkipToken { .. } => return Err("$skiptoken"), + strict_query::ParsedReadQueryMode::SkipToken { .. } => return Err("cursor"), strict_query::ParsedReadQueryMode::Query(options) => options, }; if options.select.is_some() { @@ -702,12 +702,12 @@ fn plan_query( return Err("bbox"); } if options.top.is_some() && !allows_query { - return Err("$top"); + return Err("limit"); } let page_size = u16::try_from(options.top.unwrap_or(50)) .ok() .filter(|size| (1..=100).contains(size)) - .ok_or("$top")?; + .ok_or("limit")?; let equality = options .filter .map(|filter| { diff --git a/crates/registry-breg/src/api/gis.rs b/crates/registry-breg/src/api/gis.rs index bb86836388..e8566a4117 100644 --- a/crates/registry-breg/src/api/gis.rs +++ b/crates/registry-breg/src/api/gis.rs @@ -828,13 +828,13 @@ fn query_options( authorized.collection.profile_id.clone(), )); if let Some(cursor) = query.cursor { - pairs.push(("$skiptoken".to_owned(), cursor)); + pairs.push(("cursor".to_owned(), cursor)); } else { let page_size = query .limit .map(|limit| limit.min(u32::from(authorized.collection.max_page_size))) .unwrap_or(u32::from(authorized.collection.max_page_size)); - pairs.push(("$top".to_owned(), page_size.to_string())); + pairs.push(("limit".to_owned(), page_size.to_string())); if let Some(bbox) = query.bbox { pairs.push(("bbox".to_owned(), bbox)); } @@ -947,6 +947,9 @@ mod tests { assert_eq!(query.limit, Some(1000)); assert_eq!(query.cursor, None); + for raw in ["%24top=2", "%24skiptoken=opaque", "limit=2&limit=2"] { + assert_eq!(parse_items_query(Some(raw)), Err(QueryParseError::Invalid)); + } assert_eq!( parse_items_query(Some("cursor=opaque&bbox=100,13,101,14")), Err(QueryParseError::Invalid) @@ -1070,6 +1073,11 @@ mod tests { ["parameters"] .as_array() .expect("GIS item query parameters"); + let names: Vec<_> = parameters + .iter() + .map(|parameter| parameter["name"].as_str().expect("query parameter name")) + .collect(); + assert_eq!(names, ["bbox", "limit", "cursor", "f"]); let cursor = parameters .iter() .find(|parameter| parameter["name"] == "cursor") diff --git a/crates/registry-breg/src/api/metadata.rs b/crates/registry-breg/src/api/metadata.rs index a84062fb2d..59275501e0 100644 --- a/crates/registry-breg/src/api/metadata.rs +++ b/crates/registry-breg/src/api/metadata.rs @@ -268,7 +268,7 @@ fn query_metadata(surface: &AuthorizedSurface<'_>, query: &CompiledQueryOperatio "maximumPageSize": query.max_page_size, "maximumFilterClauses": MAX_FILTER_CLAUSES, "maximumInValues": MAX_IN_VALUES, - "pagination": {"parameter": "$skiptoken", "responsePath": "pageInfo.nextCursor", "exclusive": true}, + "pagination": {"parameter": "cursor", "responsePath": "pageInfo.nextCursor", "exclusive": true}, "temporal": temporal_metadata(query), }); if !query.required_filters.is_empty() { @@ -355,7 +355,7 @@ fn request(surface: &AuthorizedSurface<'_>, query: Option<&CompiledQueryOperatio parameters.push("$select"); } if let Some(query) = query { - parameters.extend(["$top", "$skiptoken"]); + parameters.extend(["limit", "cursor"]); if !query.filter_fields.is_empty() { parameters.push("$filter"); } diff --git a/crates/registry-breg/src/api/mod.rs b/crates/registry-breg/src/api/mod.rs index 48c4428dc7..3fa675c1d9 100644 --- a/crates/registry-breg/src/api/mod.rs +++ b/crates/registry-breg/src/api/mod.rs @@ -945,7 +945,7 @@ async fn read_dispatch( &route, &claims, path.get("record_id"), - error.record_problem(), + error.problem(), &correlation, ) .await; @@ -1234,7 +1234,7 @@ async fn lookup_dispatch( &route, &claims, None, - error.record_problem(), + error.problem(), &correlation, ) .await; @@ -1503,7 +1503,7 @@ async fn revision_dispatch( &route, &claims, path.get("record_id"), - error.record_problem(), + error.problem(), &correlation, ) .await; @@ -2409,13 +2409,13 @@ async fn batch_dispatch( }; let parsed = match parse_batch_body(&body, usize::from(batch.maximum_items)) { Ok(parsed) => parsed, - Err(location) => { + Err(refusal) => { return audited_mutation_refusal( mutations, &route, &surface.context, None, - body_refusal(location), + refusal.into_response(), &correlation, ) .await; @@ -3752,7 +3752,7 @@ async fn read_query( .top .map(u16::try_from) .transpose() - .map_err(|_| ReadQueryError::InvalidAt("$top"))? + .map_err(|_| ReadQueryError::InvalidAt("limit"))? .unwrap_or(operation.max_page_size); let include_count = query_options.count.unwrap_or(false); if include_count && !operation.allow_count { @@ -4347,7 +4347,7 @@ fn validate_query_shape( page_size: u16, ) -> Result<(), ReadQueryError> { if page_size == 0 || page_size > operation.max_page_size { - return Err(ReadQueryError::InvalidAt("$top")); + return Err(ReadQueryError::InvalidAt("limit")); } let mut stats = QueryShapeStats::default(); if let Some(filter) = filter { @@ -5191,7 +5191,7 @@ impl QueryOptions { let options = self.query_options(); [ ("asOf", self.parsed.as_of.is_some()), - ("$skiptoken", self.skiptoken().is_some()), + ("cursor", self.skiptoken().is_some()), ( "$filter", options.is_some_and(|options| options.filter.is_some()), @@ -5200,7 +5200,10 @@ impl QueryOptions { "$orderby", options.is_some_and(|options| options.orderby.is_some()), ), - ("$top", options.is_some_and(|options| options.top.is_some())), + ( + "limit", + options.is_some_and(|options| options.top.is_some()), + ), ( "$count", options.is_some_and(|options| options.count.is_some()), @@ -5276,16 +5279,6 @@ impl QueryParseError { Self::InvalidAt(parameter) => invalid_query_at(parameter), } } - - fn record_problem(self) -> Response { - match self { - Self::InvalidAt("limit") => invalid_query_at_with_detail( - "limit", - "A record listing takes `$top` for its page size; `limit` is not accepted.", - ), - other => other.problem(), - } - } } /// A refused read query. `InvalidAt` names the one fixed parameter at fault. @@ -5823,37 +5816,65 @@ struct ParsedBatchBody { change_context: Option, } +#[derive(Debug)] +enum BatchBodyRefusal { + Invalid(Option), + RetiredRecordIdentifier(RequestLocation), +} + +impl IntoResponse for BatchBodyRefusal { + fn into_response(self) -> Response { + match self { + Self::Invalid(location) => body_refusal(location), + Self::RetiredRecordIdentifier(location) => { + let code = ProblemCode::RequestInvalid; + crate::correlation::problem_response_with_field_path( + StatusCode::BAD_REQUEST, + code.title(), + "replace recordIdentifier with recordId in the patch item", + code.code(), + location.as_str(), + ) + } + } + } +} + /// Parse a batch body, naming the fixed member at fault. A member name the /// caller invented is never named: the location stops at its container. fn parse_batch_body( body: &[u8], maximum_items: usize, -) -> Result> { - let value = parse_json_strict(body).map_err(|_| None)?; - let object = value.as_object().ok_or(None)?; +) -> Result { + let value = parse_json_strict(body).map_err(|_| BatchBodyRefusal::Invalid(None))?; + let object = value.as_object().ok_or(BatchBodyRefusal::Invalid(None))?; if object .keys() .any(|key| !matches!(key.as_str(), "items" | "changeContext")) { - return Err(None); + return Err(BatchBodyRefusal::Invalid(None)); } let change_context = object .get("changeContext") .map(crate::history_context::ChangeContext::parse_json) .transpose() - .map_err(|_| Some(RequestLocation::batch_change_context()))?; + .map_err(|_| BatchBodyRefusal::Invalid(Some(RequestLocation::batch_change_context())))?; let items = object .get("items") .and_then(Value::as_array) - .ok_or_else(|| Some(RequestLocation::batch_items()))?; + .ok_or_else(|| BatchBodyRefusal::Invalid(Some(RequestLocation::batch_items())))?; if items.is_empty() || items.len() > maximum_items { - return Err(Some(RequestLocation::batch_items())); + return Err(BatchBodyRefusal::Invalid(Some( + RequestLocation::batch_items(), + ))); } let items = items .iter() .enumerate() .map(|(index, item)| { - let at = |member| Some(RequestLocation::batch_item(index, member)); + let at = |member| { + BatchBodyRefusal::Invalid(Some(RequestLocation::batch_item(index, member))) + }; let object = item.as_object().ok_or_else(|| at(None))?; match object.get("operation").and_then(Value::as_str) { Some("create") => { @@ -5867,6 +5888,11 @@ fn parse_batch_body( Ok(BatchMutationItem::Create(data.clone())) } Some("patch") => { + if object.contains_key("recordIdentifier") { + return Err(BatchBodyRefusal::RetiredRecordIdentifier( + RequestLocation::batch_item(index, Some(BatchItemMember::RecordId)), + )); + } let record_id = object .get("recordId") .and_then(Value::as_str) @@ -5888,7 +5914,9 @@ fn parse_batch_body( } let patch = parse_json_patch_document(patch.clone()).map_err(|error| { match error.in_batch_item(index) { - MutationError::InvalidRequestAt(location) => Some(location), + MutationError::InvalidRequestAt(location) => { + BatchBodyRefusal::Invalid(Some(location)) + } _ => at(Some(BatchItemMember::Patch)), } })?; @@ -6204,8 +6232,41 @@ fn field_encryption_refusal(service: &HttpService, entity: &CompiledEntity) -> O #[cfg(test)] mod batch_admission_tests { use super::parse_batch_body; + use axum::response::IntoResponse as _; use serde_json::json; + #[tokio::test] + async fn a_patch_item_names_the_replacement_for_the_retired_record_key() { + let record_id = "00000000-0000-4000-8000-000000000001"; + let item = json!({ + "operation": "patch", + "recordIdentifier": record_id, + "ifMatch": "\"etag\"", + "patch": [{"op": "replace", "path": "/label", "value": "discard this canary"}] + }); + let refused = json!({"items": [item]}); + let Err(refusal) = parse_batch_body(&serde_json::to_vec(&refused).unwrap(), 1) else { + panic!("a retired envelope key must be refused"); + }; + let response = refusal.into_response(); + assert_eq!(response.status(), super::StatusCode::BAD_REQUEST); + let bytes = axum::body::to_bytes(response.into_body(), 16_384) + .await + .unwrap(); + let problem: serde_json::Value = serde_json::from_slice(&bytes).unwrap(); + assert_eq!(problem["code"], "request.invalid"); + assert_eq!(problem["fieldPath"], "/items/0/recordId"); + assert_eq!( + problem["detail"], + "replace recordIdentifier with recordId in the patch item" + ); + assert!(!problem.to_string().contains(record_id)); + assert!(!problem.to_string().contains("discard this canary")); + + let create = json!({"items": [{"operation": "create", "data": {"recordIdentifier": "domain value"}}]}); + assert!(parse_batch_body(&serde_json::to_vec(&create).unwrap(), 1).is_ok()); + } + #[test] fn correction_context_is_shared_and_validated_before_items_execute() { let item = json!({"operation": "create", "data": {"label": "fixture"}}); diff --git a/crates/registry-breg/src/api/tests/immediate_action_tests.rs b/crates/registry-breg/src/api/tests/immediate_action_tests.rs index 2a89b37d73..15d4d7ed35 100644 --- a/crates/registry-breg/src/api/tests/immediate_action_tests.rs +++ b/crates/registry-breg/src/api/tests/immediate_action_tests.rs @@ -893,7 +893,7 @@ fn handler_timestamp_admission_enforces_the_kernel_string_bound_without_changing .unwrap(), ); project.actions[0].plan = serde_json::from_value(json!({ - "type":"function", "function":"create-entry-plan", "inputs":["label"], + "type":"scripted", "actionPlan":"create-entry-plan", "inputs":["label"], "writes": [{"id": "created", "target": {"recordType": "entry"}, "operation": "create", "fields": ["label"]}] })).unwrap(); let handler = crate::compiler::compile_project_with_assets( diff --git a/crates/registry-breg/src/artifacts.rs b/crates/registry-breg/src/artifacts.rs index 9c82f23948..eb54b8263b 100644 --- a/crates/registry-breg/src/artifacts.rs +++ b/crates/registry-breg/src/artifacts.rs @@ -629,7 +629,7 @@ pub(crate) fn render_mutation_policy(entity: &CompiledEntity) -> Value { /// included; caller metadata separately selects only its permitted fields. pub fn inspect_action(action: &CompiledAction) -> Value { let plan = match &action.handler { - Some(function) => json!({"type": "function", "function": inspect_plan_function(function)}), + Some(plan) => json!({"type": "scripted", "actionPlan": inspect_scripted_plan(plan)}), None => json!({"type": "fixed", "effects": action.effects, "order": action.effects.iter().map(|effect| &effect.id).collect::>()}), }; @@ -664,11 +664,11 @@ pub fn inspect_action(action: &CompiledAction) -> Value { }) } -fn inspect_plan_function(function: &crate::model::CompiledPlanFunction) -> Value { - let mut value = serde_json::to_value(function).expect("compiled function serializes"); - value["source"] = json!(match function.kind { - crate::model::CompiledPlanFunctionKind::Rhai => &function.script_path, - crate::model::CompiledPlanFunctionKind::Wasm => &function.module_path, +fn inspect_scripted_plan(plan: &crate::model::CompiledPlanFunction) -> Value { + let mut value = serde_json::to_value(plan).expect("compiled scripted plan serializes"); + value["source"] = json!(match plan.kind { + crate::model::CompiledPlanFunctionKind::Rhai => &plan.script_path, + crate::model::CompiledPlanFunctionKind::Wasm => &plan.module_path, }); value } @@ -3238,7 +3238,7 @@ fn read_query_parameters( "One compiled sortable property, ascending only.", ), query_parameter( - "$top", + "limit", false, false, json!({"type": "integer", "minimum": 1, "maximum": max_page_size(route, query, access_profiles)}), @@ -3252,7 +3252,7 @@ fn read_query_parameters( "Request count when the selected compiled query profile allows it.", ), query_parameter( - "$skiptoken", + "cursor", false, false, json!({"type": "string", "maxLength": crate::query::MAX_CURSOR_TOKEN_BYTES}), @@ -3284,7 +3284,7 @@ fn read_query_parameters( false, false, json!({"type": "string", "maxLength": 256, "example": "100.4,13.6,100.6,13.8"}), - "Inclusive west,south,east,north CRS84 bounds within the selected profile's maximum spans. Finite decimal or exponent coordinates only; zero spans are valid. No crossing, 3D, alternate CRS or temporal queries. ANDed with $filter. Continuations carry only $skiptoken and routing/profile context.", + "Inclusive west,south,east,north CRS84 bounds within the selected profile's maximum spans. Finite decimal or exponent coordinates only; zero spans are valid. No crossing, 3D, alternate CRS or temporal queries. ANDed with $filter. Continuations carry only cursor and routing/profile context.", )); } parameters @@ -4628,6 +4628,7 @@ fn problem_schema() -> Value { "status": {"type": "integer", "minimum": 400, "maximum": 599}, "detail": {"type": "string", "maxLength": 256}, "traceId": {"type": "string", "minLength": 32, "maxLength": 32, "pattern": "^[0-9a-f]{32}$"}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."}, "fieldPath": {"type": "string", "maxLength": 256}, "refusalCode": {"type": "string", "minLength": 1, "maxLength": 128}, "guardReason": {"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}, @@ -4690,7 +4691,7 @@ fn problem_schema() -> Value { "if": {"properties": {"code": {"const": write_outside_boundary.code()}}}, "then": { "propertyNames": {"enum": [ - "type", "title", "status", "detail", "code", "traceId" + "type", "title", "status", "detail", "code", "traceId", "failedCheck" ]}, "properties": { "type": {"const": write_outside_boundary.type_uri()}, @@ -4744,6 +4745,7 @@ fn problem_schema() -> Value { "if": {"properties": {"code": {"const": "access-profile.ambiguous"}}}, "then": { "required": ["accessProfiles"], + "not": {"required": ["failedCheck"]}, "properties": {"status": {"const": 400}}, // The enclosing Problem schema owns all other members. "additionalProperties": true diff --git a/crates/registry-breg/src/authoring_integrity.rs b/crates/registry-breg/src/authoring_integrity.rs index 2912e38277..0ca260d7c9 100644 --- a/crates/registry-breg/src/authoring_integrity.rs +++ b/crates/registry-breg/src/authoring_integrity.rs @@ -638,8 +638,8 @@ pub(crate) fn project_diagnostics( }), ), ( - "breg.function.id-collision", - keyed_ids("/functions", &project.functions, |item| &item.id), + "breg.action-plan.id-collision", + keyed_ids("/actionPlans", &project.functions, |item| &item.id), ), ( "breg.action.id-collision", @@ -1285,8 +1285,8 @@ pub(crate) fn module_diagnostics( keyed_ids("/recordTypes", &module.entities, |item| &item.id), ), ( - "breg.function.id-collision", - keyed_ids("/functions", &module.functions, |item| &item.id), + "breg.action-plan.id-collision", + keyed_ids("/actionPlans", &module.functions, |item| &item.id), ), ( "breg.action.id-collision", diff --git a/crates/registry-breg/src/compiler.rs b/crates/registry-breg/src/compiler.rs index 142294ec20..5598cf0b9e 100644 --- a/crates/registry-breg/src/compiler.rs +++ b/crates/registry-breg/src/compiler.rs @@ -298,7 +298,7 @@ pub fn compile_project_with_assets( }), ) { - validate_id(&function.id, "functions[].id", &mut diagnostics); + validate_id(&function.id, "actionPlans[].id", &mut diagnostics); if !(1..=100000).contains(&function.limits.maximum_operations) || !(1..=1048576).contains(&function.limits.maximum_output_bytes) || functions @@ -311,7 +311,7 @@ pub fn compile_project_with_assets( ) .is_some() { - diagnostics.push(Diagnostic::error("breg.function.contract-invalid", "functions[]", "functions require unique IDs across the module closure and bounded positive execution/output limits")); + diagnostics.push(Diagnostic::error("breg.action-plan.contract-invalid", "actionPlans[]", "Action Plans require unique IDs across the module closure and bounded positive execution/output limits")); } } let (mut sources, mut origins, mut action_sources) = @@ -1633,7 +1633,7 @@ fn validate_cross_file_local_id_collisions( .iter() .map(|function| SourcedLocalId { id: function.id.clone(), - path: format!("functions[id={}].id", function.id), + path: format!("actionPlans[id={}].id", function.id), source: None, }) .collect::>(); @@ -1683,7 +1683,10 @@ fn validate_cross_file_local_id_collisions( })); functions.extend(module.functions.iter().map(|function| SourcedLocalId { id: function.id.clone(), - path: format!("modules[id={}].functions[id={}].id", module.id, function.id), + path: format!( + "modules[id={}].actionPlans[id={}].id", + module.id, function.id + ), source: Some(source), })); for entity in &module.entities { @@ -1713,7 +1716,7 @@ fn validate_cross_file_local_id_collisions( ("breg.module.id-collision", &module_ids), ("breg.record-type.id-collision", &records), ("breg.action.id-collision", &actions), - ("breg.function.id-collision", &functions), + ("breg.action-plan.id-collision", &functions), ("breg.hook.id-collision", &hooks), ] { add_cross_file_collisions(code, values, errors); @@ -3421,7 +3424,25 @@ pub fn module_digest(module: &RegistryModule) -> String { } pub fn module_digest_with_assets(module: &RegistryModule, assets: &[ModuleAssetSource]) -> String { - let value = serde_json::to_value(module).expect("module serializes"); + let mut value = serde_json::to_value(module).expect("module serializes"); + // Both module digest domains use the sealed Action Plan vocabulary. + // Project and module authoring use the current names independently. + let members = value + .as_object_mut() + .expect("module serializes as a mapping"); + let action_plans = members + .remove("actionPlans") + .expect("module has an Action Plan map"); + members.insert("functions".to_owned(), action_plans); + if let Some(actions) = members.get_mut("actions").and_then(Value::as_object_mut) { + for action in actions.values_mut() { + let plan = action["plan"].as_object_mut().expect("Action has a plan"); + if let Some(action_plan) = plan.remove("actionPlan") { + plan.insert("type".to_owned(), Value::String("function".to_owned())); + plan.insert("function".to_owned(), action_plan); + } + } + } let bytes = canonicalize_json(&value).expect("module canonicalizes"); let mut module_assets = assets .iter() @@ -6359,7 +6380,7 @@ fn stored_field_fillability_findings( "recordTypes[id={}].fields[id={}]", entity.id, field.logical.id ), - "this optional stored field has no writable access grant, fixed Action set, function-plan write, or import that can supply a value; add the field to one of those writers, or remove the field", + "this optional stored field has no writable access grant, fixed Action set, scripted Action Plan write, or import that can supply a value; add the field to one of those writers, or remove the field", )); } } @@ -10102,15 +10123,15 @@ fn validate_native_definitions(project: &RegistryProject, errors: &mut Vec, - /// Written as a mapping from each function id to the rest of the function + /// Written as a mapping from each Action Plan id to the rest of the plan /// (CFG-ID-5) and held sorted by id. #[serde( default, + rename = "actionPlans", deserialize_with = "registry_platform_yaml::id_keyed_by_local_id", serialize_with = "registry_platform_yaml::serialize_id_keyed" )] @@ -475,7 +476,9 @@ pub enum ActionPlanSource { Fixed { effects: Vec, }, + #[serde(rename = "scripted")] Function { + #[serde(rename = "actionPlan")] function: String, inputs: Vec, writes: Vec, @@ -519,6 +522,7 @@ pub struct FunctionSource { } #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +#[cfg_attr(feature = "schema", schemars(rename = "ActionPlanCapabilitySource"))] #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, Deserialize)] #[serde(rename_all = "kebab-case")] pub enum FunctionCapabilitySource { @@ -577,6 +581,7 @@ fn review_context_fields_schema(generator: &mut schemars::SchemaGenerator) -> sc }) } #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +#[cfg_attr(feature = "schema", schemars(rename = "ActionPlanLimitsSource"))] #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] #[serde(deny_unknown_fields, rename_all = "camelCase")] pub struct FunctionLimitsSource { @@ -1954,10 +1959,11 @@ pub struct RegistryModule { schemars(schema_with = "local_id_map_schema::") )] pub row_boundary_sets: BTreeMap, - /// Written as a mapping from each function id to the rest of the function + /// Written as a mapping from each Action Plan id to the rest of the plan /// (CFG-ID-5) and held sorted by id. #[serde( default, + rename = "actionPlans", deserialize_with = "registry_platform_yaml::id_keyed_by_local_id", serialize_with = "registry_platform_yaml::serialize_id_keyed" )] @@ -6216,11 +6222,24 @@ const EQUALS_INPUT_REPLACEMENT: &str = "Rename `equalsInput` to `equalsFromInput`, keeping the same input reference."; const FROM_FIELD_REPLACEMENT: &str = "Rename `fromField` to `fromInput`, keeping the same input reference."; -const PLAN_CAPABILITIES_REPLACEMENT: &str = "Remove `plan.capabilities`. Declare the Action's Evidence dependencies in `evidence`; a named Function's `capabilities` list is only its ceiling."; +const PLAN_CAPABILITIES_REPLACEMENT: &str = "Remove `plan.capabilities`. Declare the Action's Evidence dependencies in `evidence`; a named Action Plan's `capabilities` list is only its ceiling."; +const RETIRED_ACTION_PLAN_KEYS: [RemovedKey<'static>; 2] = [ + RemovedKey { + pointer: "/functions", + replacement: + "Rename `functions` to `actionPlans`, keeping the Action Plan IDs and declarations.", + }, + RemovedKey { + pointer: "/actions/*/plan/function", + replacement: "Rename `plan.function` to `plan.actionPlan` and use `plan.type: scripted`.", + }, +]; /// Members `registry.yaml` no longer accepts, each with the member that /// replaced it. const PROJECT_REMOVED_KEYS: &[RemovedKey<'static>] = &[ + RETIRED_ACTION_PLAN_KEYS[0], + RETIRED_ACTION_PLAN_KEYS[1], RemovedKey { pointer: "/datasets/*/id", replacement: "Write datasets as a mapping from each id to the rest of its entry, datasets: {DATASET_ID: {display: ...}}, with no id member.", @@ -6258,8 +6277,8 @@ const PROJECT_REMOVED_KEYS: &[RemovedKey<'static>] = &[ replacement: "Write actions as a mapping from each id to the rest of its entry, actions: {ACTION_ID: {execution: ...}}, with no id member.", }, RemovedKey { - pointer: "/functions/*/id", - replacement: "Write functions as a mapping from each id to the rest of its entry, functions: {FUNCTION_ID: {runtime: ...}}, with no id member.", + pointer: "/actionPlans/*/id", + replacement: "Write actionPlans as a mapping from each id to the rest of its entry, actionPlans: {PLAN_ID: {runtime: ...}}, with no id member.", }, RemovedKey { pointer: "/recordTypes/*/id", @@ -6433,13 +6452,15 @@ const PROJECT_REMOVED_KEYS: &[RemovedKey<'static>] = &[ /// Members a module no longer accepts, each with the member that replaced it. const MODULE_REMOVED_KEYS: &[RemovedKey<'static>] = &[ + RETIRED_ACTION_PLAN_KEYS[0], + RETIRED_ACTION_PLAN_KEYS[1], RemovedKey { pointer: "/actions/*/id", replacement: "Write actions as a mapping from each id to the rest of its entry, actions: {ACTION_ID: {execution: ...}}, with no id member.", }, RemovedKey { - pointer: "/functions/*/id", - replacement: "Write functions as a mapping from each id to the rest of its entry, functions: {FUNCTION_ID: {runtime: ...}}, with no id member.", + pointer: "/actionPlans/*/id", + replacement: "Write actionPlans as a mapping from each id to the rest of its entry, actionPlans: {PLAN_ID: {runtime: ...}}, with no id member.", }, RemovedKey { pointer: "/recordTypes/*/id", @@ -6652,29 +6673,155 @@ pub const MODULE_FORMAT: FormatSpec<'static> = FormatSpec { removed_keys: MODULE_REMOVED_KEYS, }; +// Replaying a verified package can see the Action Plan keys its sealed source +// predates. Other retired keys are still checked by the shared reader. +const SEALED_PROJECT_FORMAT: FormatSpec<'static> = FormatSpec { + removed_keys: PROJECT_REMOVED_KEYS + .split_at(RETIRED_ACTION_PLAN_KEYS.len()) + .1, + ..PROJECT_FORMAT +}; +const SEALED_MODULE_FORMAT: FormatSpec<'static> = FormatSpec { + removed_keys: MODULE_REMOVED_KEYS + .split_at(RETIRED_ACTION_PLAN_KEYS.len()) + .1, + ..MODULE_FORMAT +}; + /// Read an authored project through the shared reader. `file` is the name /// diagnostics carry. Every diagnostic carries its code, path, line and /// column, and the action that fixes it (CFG-DIAG-1), and none repeats a /// value from the file. pub fn read_project_yaml(file: &str, bytes: &[u8]) -> Result, Report> { - let mut decoded = read_with_value_types(file, bytes, &PROJECT_FORMAT)?; + read_project(file, bytes, false).map(|(decoded, _)| decoded) +} + +fn read_project( + file: &str, + bytes: &[u8], + sealed: bool, +) -> Result<(Decoded, bool), Report> { + let format = if sealed { + &SEALED_PROJECT_FORMAT + } else { + &PROJECT_FORMAT + }; + let (mut decoded, translated) = read_with_value_types(file, bytes, format, sealed)?; let errors = crate::authoring_integrity::project_diagnostics(&mut decoded); if errors.is_empty() { - Ok(decoded) + Ok((decoded, translated)) } else { Err(decoded.document.report_with(errors)) } } +// Package replay starts from source bytes that have already passed integrity +// checks. Translate their historical Action Plan keys before typed decode. +fn normalize_sealed_action_plans(value: &mut Value, document: &Document) -> Result { + let Some(root) = value.as_object_mut() else { + return Ok(false); + }; + let mut current = root.contains_key("actionPlans"); + let mut translated = rename_sealed_plan_key(root, "functions", "actionPlans", "", document)?; + if let Some(actions) = root.get_mut("actions").and_then(Value::as_object_mut) { + for (id, action) in actions { + let Some(plan) = action.get_mut("plan").and_then(Value::as_object_mut) else { + continue; + }; + let plan_type = plan.get("type").and_then(Value::as_str); + let legacy_reference = plan.contains_key("function"); + let current_reference = plan.contains_key("actionPlan"); + let legacy_plan = plan_type == Some("function") && legacy_reference; + let current_plan = plan_type == Some("scripted") && current_reference; + let duplicate_reference = legacy_reference && current_reference; + if !legacy_plan && !current_plan && !duplicate_reference { + continue; + } + let id = id.replace('~', "~0").replace('/', "~1"); + let pointer = format!("/actions/{id}/plan"); + if !duplicate_reference && ((legacy_plan && current) || (current_plan && translated)) { + return Err(document.report_with([document.diagnostic_at_value( + Severity::Error, + "breg.action-plan.mixed-spelling", + &format!("{pointer}/type"), + "The sealed source mixes historical and current Action Plan spellings.", + "Use a package whose source uses one Action Plan spelling per file.", + )])); + } + current |= current_plan; + if (legacy_plan || duplicate_reference) + && rename_sealed_plan_key(plan, "function", "actionPlan", &pointer, document)? + { + plan.insert("type".to_owned(), Value::String("scripted".to_owned())); + translated = true; + } + } + } + Ok(translated) +} + +fn rename_sealed_plan_key( + members: &mut serde_json::Map, + old: &str, + current: &str, + pointer: &str, + document: &Document, +) -> Result { + let Some(value) = members.remove(old) else { + return Ok(false); + }; + if members.contains_key(current) { + return Err(document.report_with([document.diagnostic_at_key( + Severity::Error, + "yaml.duplicate-key", + &format!("{pointer}/{old}"), + &format!("The sealed source declares both `{old}` and `{current}`."), + "Use a package whose source declares exactly one spelling of the key.", + )])); + } + members.insert(current.to_owned(), value); + Ok(true) +} + fn read_with_value_types( file: &str, bytes: &[u8], format: &FormatSpec<'_>, -) -> Result, Report> { + sealed: bool, +) -> Result<(Decoded, bool), Report> { let Decoded { mut value, document, } = read_authored::(file, bytes, format)?; + let translated = if sealed { + normalize_sealed_action_plans(&mut value, &document)? + } else { + // The key `type` is still valid. The removed-key table can only + // refuse members, so report the retired tag at its value here. + let diagnostics: Vec<_> = value + .get("actions") + .and_then(Value::as_object) + .into_iter() + .flatten() + .filter(|(_, action)| { + action.pointer("/plan/type").and_then(Value::as_str) == Some("function") + }) + .map(|(id, _)| { + let id = id.replace('~', "~0").replace('/', "~1"); + document.diagnostic_at_value( + Severity::Error, + "config.removed-key", + &format!("/actions/{id}/plan/type"), + "The Action plan type `function` was renamed to `scripted`.", + "Write `plan.type: scripted` and name the Action Plan under `plan.actionPlan`.", + ) + }) + .collect(); + if !diagnostics.is_empty() { + return Err(document.report_with(diagnostics)); + } + false + }; let option_errors = field_option_diagnostics(&document, &value); if !option_errors.is_empty() { return Err(document.report_with(option_errors)); @@ -6695,8 +6842,10 @@ fn read_with_value_types( "Declare the set under rowBoundarySets in this file and reference it by its identifier, with no other member.", )]) })?; - if !has_value_types && !resolved_sets && !has_row_boundary_sets { - return document.decode().map(|value| Decoded { value, document }); + if !translated && !has_value_types && !resolved_sets && !has_row_boundary_sets { + return document + .decode() + .map(|value| (Decoded { value, document }, false)); } // Every reference is expanded, so the read file holds the boundaries // inline and no set: it serializes to source that reads back the same. @@ -6717,10 +6866,13 @@ fn read_with_value_types( } let normalized = serde_json::to_vec(&value).expect("normalized authoring value serializes"); match read_authored::(file, &normalized, format) { - Ok(decoded) => Ok(Decoded { - value: decoded.value, - document, - }), + Ok(decoded) => Ok(( + Decoded { + value: decoded.value, + document, + }, + translated, + )), Err(report) => { let diagnostics = report .into_diagnostics() @@ -6862,10 +7014,23 @@ fn field_option_diagnostics( /// Read an authored module through the shared reader, as /// [`read_project_yaml`] reads a project. pub fn read_module_yaml(file: &str, bytes: &[u8]) -> Result, Report> { - let mut decoded = read_with_value_types(file, bytes, &MODULE_FORMAT)?; + read_module(file, bytes, false).map(|(decoded, _)| decoded) +} + +fn read_module( + file: &str, + bytes: &[u8], + sealed: bool, +) -> Result<(Decoded, bool), Report> { + let format = if sealed { + &SEALED_MODULE_FORMAT + } else { + &MODULE_FORMAT + }; + let (mut decoded, translated) = read_with_value_types(file, bytes, format, sealed)?; let errors = crate::authoring_integrity::module_diagnostics(&mut decoded); if errors.is_empty() { - Ok(decoded) + Ok((decoded, translated)) } else { Err(decoded.document.report_with(errors)) } @@ -6894,6 +7059,24 @@ pub fn parse_module_yaml(bytes: &[u8]) -> Result .map_err(|report| compile_failure_from_report("module", &report)) } +#[cfg(feature = "runtime")] +pub(crate) fn parse_sealed_project_yaml( + bytes: &[u8], +) -> Result<(RegistryProject, bool), CompileFailure> { + read_project(PROJECT_FILE, bytes, true) + .map(|(decoded, translated)| (decoded.value, translated)) + .map_err(|report| compile_failure_from_report("project", &report)) +} + +#[cfg(feature = "runtime")] +pub(crate) fn parse_sealed_module_yaml( + bytes: &[u8], +) -> Result<(RegistryModule, bool), CompileFailure> { + read_module(MODULE_FILE, bytes, true) + .map(|(decoded, translated)| (decoded.value, translated)) + .map_err(|report| compile_failure_from_report("module", &report)) +} + fn parse_json_value(bytes: &[u8], root: &str) -> Result { parse_json_strict(bytes).map_err(|error| { CompileFailure::from_one(Diagnostic::error( @@ -7283,6 +7466,32 @@ mod tests { use super::*; use serde_json::json; + #[test] + fn sealed_formats_skip_only_the_two_retired_action_plan_keys() { + for (authored, sealed) in [ + (&PROJECT_FORMAT, &SEALED_PROJECT_FORMAT), + (&MODULE_FORMAT, &SEALED_MODULE_FORMAT), + ] { + let expected = authored + .removed_keys + .iter() + .map(|entry| entry.pointer) + .filter(|pointer| { + !RETIRED_ACTION_PLAN_KEYS + .iter() + .any(|entry| entry.pointer == *pointer) + }) + .collect::>(); + let observed = sealed + .removed_keys + .iter() + .map(|entry| entry.pointer) + .collect::>(); + assert_eq!(observed, expected); + assert_eq!(authored.removed_keys.len() - observed.len(), 2); + } + } + #[test] fn a_field_type_writes_each_bound_under_its_one_name() { let string = FieldTypeSource::String { diff --git a/crates/registry-breg/src/cursor.rs b/crates/registry-breg/src/cursor.rs index 2857b6e67b..6c836f67d4 100644 --- a/crates/registry-breg/src/cursor.rs +++ b/crates/registry-breg/src/cursor.rs @@ -711,7 +711,7 @@ mod tests { assert!(registry_breg_client::BRegContinuation::try_from_projection( registry_breg_client::BRegContinuationProjection { route: "assets".to_owned(), - skiptoken: token, + cursor: token, format: registry_breg_client::BRegRecordFormat::Json, access_profile: Some("operator".to_owned()), registry_identifier: "registry".to_owned(), diff --git a/crates/registry-breg/src/data.rs b/crates/registry-breg/src/data.rs index e8003c87da..4ecc9a472a 100644 --- a/crates/registry-breg/src/data.rs +++ b/crates/registry-breg/src/data.rs @@ -365,6 +365,8 @@ pub enum DataError { InvalidInput, #[error("data item is invalid")] InvalidItem, + #[error("replace recordIdentifier with recordId in the patch item")] + RetiredRecordIdentifier, #[error("one data item exceeds the compiled batch byte bound")] ItemTooLarge, #[error("data checkpoint does not match the active binding")] @@ -665,6 +667,9 @@ fn validate_item( validate_create_data(entity, profile_id, data)?; } DataImportOperation::Patch => { + if object.contains_key("recordIdentifier") { + return Err(DataError::RetiredRecordIdentifier); + } require_exact_keys(object, &["operation", "recordId", "ifMatch", "patch"])?; if object.get("operation").and_then(Value::as_str) != Some("patch") || !object @@ -2048,7 +2053,7 @@ where &plan.route_path, &[ ("accessProfile", plan.profile_id.as_str()), - ("$skiptoken", cursor), + ("cursor", cursor), ], ) } else { @@ -2057,7 +2062,7 @@ where &[ ("accessProfile", plan.profile_id.as_str()), ("$select", fields.as_str()), - ("$top", page_size.as_str()), + ("limit", page_size.as_str()), ], ) }; diff --git a/crates/registry-breg/src/external_view_artifacts.rs b/crates/registry-breg/src/external_view_artifacts.rs index fc9040f9cb..ae9fb48906 100644 --- a/crates/registry-breg/src/external_view_artifacts.rs +++ b/crates/registry-breg/src/external_view_artifacts.rs @@ -279,11 +279,11 @@ fn profile_parameter() -> Value { } fn size_parameter() -> Value { - json!({"name":"$top","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}) + json!({"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}) } fn cursor_parameter() -> Value { - json!({"name":"$skiptoken","in":"query","description":"Use alone with the same access profile","schema":{"type":"string"}}) + json!({"name":"cursor","in":"query","description":"Use alone with the same access profile","schema":{"type":"string"}}) } fn count_schema() -> Value { diff --git a/crates/registry-breg/src/fixtures.rs b/crates/registry-breg/src/fixtures.rs index 4e1a5e5900..5bf8f3e22b 100644 --- a/crates/registry-breg/src/fixtures.rs +++ b/crates/registry-breg/src/fixtures.rs @@ -4535,7 +4535,7 @@ fn fixture_query_options( parameters.push(("$select", fields.join(","))); } if let Some(top) = top { - parameters.push(("$top", top.to_string())); + parameters.push(("limit", top.to_string())); } if count { parameters.push(("$count", "true".to_owned())); @@ -7381,11 +7381,11 @@ journeys: "datasets":{"people": {}}, "recordTypes":{"person": {"primaryDataset":"people","route":"people","mutationMode":"mutable", "fields":[{"id":"name","type":"string","maximumLength":80,"required":true,"classification":"internal"}]}}, - "functions":{"person-plan": {"runtime":"rhai","source":"scripts/person-name-change.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}, + "actionPlans":{"person-plan": {"runtime":"rhai","source":"scripts/person-name-change.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}, "actions":{"rename-person": {"execution":{"mode":"immediate"}, "inputs":[{"id":"person","type":"reference","target":"person","required":true,"classification":"internal"}, {"id":"name","type":"string","maximumLength":80,"required":true,"classification":"internal"}], - "plan":{"type":"function","function":"person-plan","inputs":["person","name"], + "plan":{"type":"scripted","actionPlan":"person-plan","inputs":["person","name"], "writes":[{"id":"person","target":{"fromInput":"person"},"operation":"patch","fields":["name"]}]}}}, "accessProfiles":{"person-operator": {"principalClaim":"principal","requiredScopes":"unrestricted","requiredPurposes":["person-maintenance"], "permissions":{"records":[{"recordType":"person","operations":["get","list"],"readableFields":["name"],"rowBoundaries":"unrestricted"}], @@ -7628,7 +7628,7 @@ journeys: "id": "person-module", "version": "0.1.0", "recordTypes": entities, - "functions": project_value.as_object_mut().unwrap().remove("functions").unwrap(), + "actionPlans": project_value.as_object_mut().unwrap().remove("actionPlans").unwrap(), }); let module_bytes = serde_json::to_vec(&module_value).expect("module serializes"); let module = parse_module_yaml(&module_bytes).expect("planner module parses"); diff --git a/crates/registry-breg/src/immediate_actions.rs b/crates/registry-breg/src/immediate_actions.rs index f2f746cba9..8d08e8a267 100644 --- a/crates/registry-breg/src/immediate_actions.rs +++ b/crates/registry-breg/src/immediate_actions.rs @@ -173,9 +173,9 @@ fn compile_action( { let Some(function_source) = functions.get(function) else { errors.push(Diagnostic::error( - "breg.action.function-unknown", - "actions[].plan.function", - "the plan must reference a declared function", + "breg.action.plan-unknown", + "actions[].plan.actionPlan", + "the plan must reference a declared Action Plan", )); return None; }; @@ -193,7 +193,7 @@ fn compile_action( if !bound_capabilities.is_subset(&function_capabilities) || function.abi != crate::contract::ACTION_PLAN_ABI_V1 { - errors.push(Diagnostic::error("breg.action.function-contract-invalid", "actions[].plan.function", "the function requires the action-plan ABI and a capability ceiling containing every bound capability")); + errors.push(Diagnostic::error("breg.action.plan-contract-invalid", "actions[].plan.actionPlan", "the Action Plan requires the action-plan ABI and a capability ceiling containing every bound capability")); } if action.is_proposal() && (function.runtime != crate::contract::ActionHandlerKindSource::Rhai @@ -207,9 +207,9 @@ fn compile_action( .any(|input| !input_map.contains_key(input.as_str())) { errors.push(Diagnostic::error( - "breg.action.function-input-unknown", + "breg.action.plan-input-unknown", "actions[].plan.inputs", - "function inputs must uniquely name declared Action inputs", + "Action Plan inputs must uniquely name declared Action inputs", )); } let source = crate::contract::ActionHandlerSource { @@ -442,7 +442,7 @@ fn compile_handler( }; let path = format!("actions[id={}].plan", collected.source.id); - let function_path = format!("functions[id={}]", function.id); + let function_path = format!("actionPlans[id={}]", function.id); let Some(kind) = source.kind() else { // The shared handler declaration also offers a remote destination. An // action handler runs inside the triggering transaction and has no @@ -451,7 +451,7 @@ fn compile_handler( errors.push(Diagnostic::error( "breg.action.handler-kind-unsupported", format!("{function_path}.runtime"), - "a plan function runs in the registry; declare runtime rhai or wasm", + "an Action Plan runs in the registry; declare runtime rhai or wasm", )); return None; }; @@ -932,7 +932,7 @@ fn compile_handler( .into_iter() .map(|call| { ( - "breg.action.plan-function-unavailable", + "breg.action.plan-unavailable", format!( "`{}` is not available to Action plans, which run without the clock, sleep, or Rhai's language-core functions; remove the call", call.function @@ -1369,7 +1369,7 @@ fn validate_current_revision( "breg.action.concurrency-caller-value", "actions[].plan", &format!( - "Action `{}` uses concurrency: current-revision, and a function plan writes values computed from the caller's inputs into an existing record", + "Action `{}` uses concurrency: current-revision, and a scripted Action Plan writes values computed from the caller's inputs into an existing record", action.id ), )); diff --git a/crates/registry-breg/src/lifecycle.rs b/crates/registry-breg/src/lifecycle.rs index 98524cfa5b..d2c8b21ad2 100644 --- a/crates/registry-breg/src/lifecycle.rs +++ b/crates/registry-breg/src/lifecycle.rs @@ -597,7 +597,7 @@ fn proposal_enforcement() -> Vec { EnforcementLayer { id: "plan-preparation", events: &["submit"], - description: "Submission validates the typed Action input and runs the shared bounded plan evaluator. Function execution and external Evidence acquisition hold no database transaction or row lock. The controller rechecks the observed revision before freezing the submission.", + description: "Submission validates the typed Action input and runs the shared bounded plan evaluator. Action Plan execution and external Evidence acquisition hold no database transaction or row lock. The controller rechecks the observed revision before freezing the submission.", }, EnforcementLayer { id: "explicit-contract-rebase", diff --git a/crates/registry-breg/src/package.rs b/crates/registry-breg/src/package.rs index 5a5d9b4649..3de0ad7e37 100644 --- a/crates/registry-breg/src/package.rs +++ b/crates/registry-breg/src/package.rs @@ -31,8 +31,8 @@ use thiserror::Error; use crate::artifacts::REGISTRY_METADATA_ARTIFACT_PATH; use crate::compiler::{compile_project_with_assets, CompileProfile}; use crate::contract::{ - parse_module_yaml, parse_project_yaml, FieldTypeSource, ModuleAssetSource, RegistryModule, - RegistryProject, + parse_module_yaml, parse_project_yaml, parse_sealed_module_yaml, parse_sealed_project_yaml, + FieldTypeSource, ModuleAssetSource, RegistryModule, RegistryProject, }; use crate::derived_sql::MAX_DERIVED_SQL_BYTES; use crate::generated_ddl::{ @@ -795,6 +795,8 @@ pub enum PackageError { Binding, #[error("the package compiler derivation failed")] Derivation, + #[error("the sealed sources use historical Action Plan spelling or the generated artifacts differ from this release's compiler output")] + GeneratedArtifactsMismatch, /// A package whose generated files name a Record type `entityId`, as /// releases up to v0.41.0 wrote them. #[error( @@ -4347,7 +4349,8 @@ pub fn load_predecessor_rehearsal_baseline_with_verified_envelope( shared: &SharedVerifiedPackage, ) -> Result<(VerifiedPredecessorPackage, CompiledRegistry)> { let (package, loaded) = load_predecessor_closure(root, context, shared)?; - let (registry, _) = compile_package_sources(&package.manifest, &loaded)?; + let (registry, _) = + compile_package_sources(&package.manifest, &loaded, PackageSourceMode::Predecessor)?; Ok((package, registry)) } @@ -4360,7 +4363,7 @@ fn load_predecessor_closure( let (manifest, loaded) = load_verified_closure(root, shared, production)?; validate_engine_features(&manifest)?; validate_source_inventory(&manifest)?; - parse_package_sources(&manifest, &loaded)?; + parse_package_sources(&manifest, &loaded, PackageSourceMode::Predecessor)?; let governed = package_predecessor_governed_model(&manifest, &loaded)?; validate_predecessor_registry_bindings(&manifest, &governed)?; let package_digest = shared.digest().to_owned(); @@ -4843,10 +4846,20 @@ fn load_closure( /// The refusal for stored sources that do not parse. A package closure holds /// sources an earlier release may have written, so the refusal carries the -/// reader's diagnostics for the operator to act on. +/// reader's diagnostics for the operator to act on. No release seals a file +/// that mixes or doubles the Action Plan spellings, so such a file is a +/// modified package rather than an earlier release's sources. fn source_refusal(failure: &CompileFailure) -> PackageError { const SHOWN: usize = 3; let diagnostics = failure.diagnostics(); + if diagnostics.iter().any(|diagnostic| { + diagnostic.code == "breg.action-plan.mixed-spelling" + || (diagnostic.code == "yaml.duplicate-key" + && (diagnostic.path.ends_with(".functions") + || diagnostic.path.ends_with(".function"))) + }) { + return PackageError::Integrity; + } let mut detail = diagnostics .iter() .take(SHOWN) @@ -4859,17 +4872,33 @@ fn source_refusal(failure: &CompileFailure) -> PackageError { PackageError::PreviousReleaseSources(detail) } -/// Parse the stored sources of one verified package closure. A package built -/// before this release holds sources this reader refuses, and every reader of -/// the closure, a predecessor reader included, says so. +#[derive(Clone, Copy)] +enum PackageSourceMode { + Strict, + Predecessor, +} + +impl PackageSourceMode { + fn accept(self, parsed: std::result::Result<(T, bool), CompileFailure>) -> Result { + let (source, translated) = parsed.map_err(|failure| source_refusal(&failure))?; + if translated && matches!(self, Self::Strict) { + return Err(PackageError::GeneratedArtifactsMismatch); + } + Ok(source) + } +} + +/// Parse verified source bytes. Only predecessor planning and rehearsal can +/// use translated historical Action Plan keys. fn parse_package_sources( manifest: &PackageManifest, loaded: &BTreeMap>, + mode: PackageSourceMode, ) -> Result<(RegistryProject, Vec)> { let project_bytes = loaded .get(&manifest.sources.project) .ok_or(PackageError::Derivation)?; - let project = parse_project_yaml(project_bytes).map_err(|failure| source_refusal(&failure))?; + let project = mode.accept(parse_sealed_project_yaml(project_bytes))?; let modules = manifest .sources .modules @@ -4878,9 +4907,7 @@ fn parse_package_sources( loaded .get(&source.path) .ok_or(PackageError::Derivation) - .and_then(|bytes| { - parse_module_yaml(bytes).map_err(|failure| source_refusal(&failure)) - }) + .and_then(|bytes| mode.accept(parse_sealed_module_yaml(bytes))) }) .collect::>>()?; Ok((project, modules)) @@ -4891,6 +4918,7 @@ fn parse_package_sources( fn compile_package_sources( manifest: &PackageManifest, loaded: &BTreeMap>, + mode: PackageSourceMode, ) -> Result<(CompiledRegistry, bool)> { validate_source_inventory(manifest)?; let fixture_journeys = loaded @@ -4900,7 +4928,7 @@ fn compile_package_sources( { return Err(PackageError::Derivation); } - let (project, modules) = parse_package_sources(manifest, loaded)?; + let (project, modules) = parse_package_sources(manifest, loaded, mode)?; let module_assets = captured_compiler_assets(manifest, loaded)?; let project_assets = module_assets .iter() @@ -4955,7 +4983,8 @@ fn rederive( bool, )> { validate_engine_features(manifest)?; - let (compiled, placeholder_identity) = compile_package_sources(manifest, loaded)?; + let (compiled, placeholder_identity) = + compile_package_sources(manifest, loaded, PackageSourceMode::Strict)?; let expected_artifacts = expected_artifact_bytes(manifest, &compiled)?; let packaged_artifacts = manifest .files @@ -4980,11 +5009,11 @@ fn rederive( .collect::>() != packaged_artifacts { - return Err(PackageError::Derivation); + return Err(PackageError::GeneratedArtifactsMismatch); } for (path, bytes) in expected_artifacts { if loaded.get(&path).map(Vec::as_slice) != Some(bytes.as_slice()) { - return Err(PackageError::Derivation); + return Err(PackageError::GeneratedArtifactsMismatch); } } validate_migration_plan(manifest, &compiled)?; diff --git a/crates/registry-breg/src/package/tests/immediate_actions.rs b/crates/registry-breg/src/package/tests/immediate_actions.rs index 06b50dd014..789155762b 100644 --- a/crates/registry-breg/src/package/tests/immediate_actions.rs +++ b/crates/registry-breg/src/package/tests/immediate_actions.rs @@ -984,7 +984,7 @@ fn proposal_handler_evidence_source() -> Value { &["get", "edit", "submit", "cancel", "apply"], &["item", "label"], ); - value["functions"] = json!({"rename-plan": {"runtime": "rhai", + value["actionPlans"] = json!({"rename-plan": {"runtime": "rhai", "source": "handlers/rename.rhai", "entrypoint": "plan", "abi": "registry.action-plan/v1", @@ -1006,8 +1006,8 @@ fn proposal_handler_evidence_source() -> Value { "maximumObservationAgeSeconds": 60, }]}); value["actions"]["rename-item"]["plan"] = json!({ - "type": "function", - "function": "rename-plan", + "type": "scripted", + "actionPlan": "rename-plan", "inputs": ["item", "label"], "refusals": [{"code": "rename-refused", "label": "The rename was refused."}], "writes": [{ @@ -1020,6 +1020,194 @@ fn proposal_handler_evidence_source() -> Value { value } +#[test] +fn sealed_package_sources_decode_historical_action_plan_spelling() { + let project = proposal_handler_evidence_source(); + let module = json!({ + "apiVersion": "id.registrystack.org/formats/breg/module/v1alpha1", + "kind": "BRegModule", + "id": "test-module", + "version": "1", + "actionPlans": project["actionPlans"], + "actions": project["actions"], + }); + let previous_spelling = |source: &Value| { + let current = serde_json::to_string(source).expect("source serializes"); + current + .replace("\"actionPlans\":", "\"functions\":") + .replace("\"type\":\"scripted\"", "\"type\":\"function\"") + .replace("\"actionPlan\":", "\"function\":") + }; + + let old_project = previous_spelling(&project); + let old_module = previous_spelling(&module); + let project = serde_json::to_vec(&project).unwrap(); + let module = serde_json::to_vec(&module).unwrap(); + assert_eq!( + parse_sealed_project_yaml(old_project.as_bytes()).unwrap(), + (parse_project_yaml(&project).unwrap(), true) + ); + assert_eq!( + parse_sealed_module_yaml(old_module.as_bytes()).unwrap(), + (parse_module_yaml(&module).unwrap(), true) + ); +} + +#[test] +fn sealed_package_sources_refuse_conflicting_action_plan_spellings() { + let mut project = proposal_handler_evidence_source(); + project["functions"] = json!({}); + let error = parse_sealed_project_yaml(&serde_json::to_vec(&project).unwrap()) + .expect_err("a sealed source cannot specify both Action Plan maps"); + assert_eq!(error.diagnostics()[0].code, "yaml.duplicate-key"); + assert_eq!(error.diagnostics()[0].path, "project.functions"); + + project.as_object_mut().unwrap().remove("functions"); + project["actions"]["rename-item"]["plan"]["function"] = json!("other-plan"); + let error = parse_sealed_project_yaml(&serde_json::to_vec(&project).unwrap()) + .expect_err("a sealed source cannot specify both Action Plan references"); + assert_eq!(error.diagnostics()[0].code, "yaml.duplicate-key"); + assert_eq!( + error.diagnostics()[0].path, + "project.actions.rename-item.plan.function" + ); + + let plan = project["actions"]["rename-item"]["plan"] + .as_object_mut() + .unwrap(); + let action_plan = plan.remove("actionPlan").unwrap(); + assert!(parse_sealed_project_yaml(&serde_json::to_vec(&project).unwrap()).is_err()); + + let plan = project["actions"]["rename-item"]["plan"] + .as_object_mut() + .unwrap(); + plan.remove("function"); + plan.insert("actionPlan".to_owned(), action_plan); + plan.insert("type".to_owned(), json!("function")); + assert!(parse_sealed_project_yaml(&serde_json::to_vec(&project).unwrap()).is_err()); +} + +#[test] +fn sealed_package_sources_require_one_action_plan_spelling_per_file() { + let mut project = proposal_handler_evidence_source(); + let root = project.as_object_mut().unwrap(); + let plans = root.remove("actionPlans").unwrap(); + root.insert("functions".into(), plans); + let error = parse_sealed_project_yaml(&serde_json::to_vec(&project).unwrap()) + .expect_err("historical root keys and current Action plans cannot share a file"); + assert_eq!( + error.diagnostics()[0].code, + "breg.action-plan.mixed-spelling" + ); + assert_eq!( + error.diagnostics()[0].path, + "project.actions.rename-item.plan.type" + ); + + let current_action = project["actions"]["rename-item"].clone(); + let mut legacy_action = current_action.clone(); + let plan = legacy_action["plan"].as_object_mut().unwrap(); + let reference = plan.remove("actionPlan").unwrap(); + plan.insert("function".into(), reference); + plan.insert("type".into(), json!("function")); + let module = json!({ + "apiVersion": "id.registrystack.org/formats/breg/module/v1alpha1", + "kind": "BRegModule", + "id": "test-module", + "version": "1", + "actions": {"first": legacy_action, "second": current_action}, + }); + let error = parse_sealed_module_yaml(&serde_json::to_vec(&module).unwrap()) + .expect_err("historical and current Action plans cannot share a file"); + assert_eq!( + error.diagnostics()[0].code, + "breg.action-plan.mixed-spelling" + ); + assert_eq!( + error.diagnostics()[0].path, + "module.actions.second.plan.type" + ); +} + +/// The closure of a prepared package with one scripted Action Plan, and the +/// same project bytes in the historical Action Plan spelling. +fn scripted_action_package() -> (PackageManifest, BTreeMap>, Vec) { + let mut request = package_capacity_request("scripted-source"); + let mut value: Value = serde_json::from_slice(&request.project.bytes).unwrap(); + value["actionPlans"] = json!({"rename-plan": {"runtime": "rhai", + "source": "handlers/rename.rhai", + "entrypoint": "plan", + "abi": "registry.action-plan/v1", + }}); + value["actions"]["rename-item"]["plan"] = json!({ + "type": "scripted", + "actionPlan": "rename-plan", + "inputs": ["item", "label"], + "writes": [{ + "id": "renamed", + "target": {"fromInput": "item"}, + "operation": "patch", + "fields": ["label"], + }], + }); + request.project.bytes = serde_json::to_vec(&value).unwrap(); + let historical = String::from_utf8(request.project.bytes.clone()) + .unwrap() + .replace("\"actionPlans\":", "\"functions\":") + .replace("\"type\":\"scripted\"", "\"type\":\"function\"") + .replace("\"actionPlan\":", "\"function\":") + .into_bytes(); + let prepared = prepare_package_with_project_assets( + request, + vec![PackageSourceFile { + path: "handlers/rename.rhai".to_owned(), + bytes: b"fn plan(ctx) { #{effects: []} }".to_vec(), + }], + ) + .expect("the scripted package prepares"); + (prepared.manifest, prepared.files, historical) +} + +#[test] +fn strict_package_sources_refuse_translated_action_plan_spelling() { + let (manifest, mut loaded, historical) = scripted_action_package(); + let (current, _) = compile_package_sources(&manifest, &loaded, PackageSourceMode::Strict) + .expect("the current spelling compiles strictly"); + + loaded.insert(manifest.sources.project.clone(), historical); + assert_eq!( + compile_package_sources(&manifest, &loaded, PackageSourceMode::Strict).err(), + Some(PackageError::GeneratedArtifactsMismatch) + ); + let (predecessor, _) = + compile_package_sources(&manifest, &loaded, PackageSourceMode::Predecessor) + .expect("a predecessor reads the historical spelling"); + assert_eq!(predecessor.registry_id(), current.registry_id()); + assert_eq!(predecessor.artifacts(), current.artifacts()); +} + +#[test] +fn package_sources_mixing_action_plan_spellings_are_integrity_refusals() { + let (manifest, mut loaded, historical) = scripted_action_package(); + let project = manifest.sources.project.clone(); + let mixed = String::from_utf8(historical.clone()) + .unwrap() + .replace("\"functions\":", "\"actionPlans\":"); + let doubled = String::from_utf8(historical).unwrap().replace( + "\"function\":", + "\"actionPlan\":\"rename-plan\",\"function\":", + ); + for source in [mixed, doubled] { + loaded.insert(project.clone(), source.into_bytes()); + for mode in [PackageSourceMode::Strict, PackageSourceMode::Predecessor] { + assert_eq!( + compile_package_sources(&manifest, &loaded, mode).err(), + Some(PackageError::Integrity) + ); + } + } +} + fn commit_evidence_source() -> Value { let mut value = source(); value["evidenceProviders"] = json!({"provider": {"contracts": "evidence/contracts.json", diff --git a/crates/registry-breg/src/package/tests/predecessor_sources.rs b/crates/registry-breg/src/package/tests/predecessor_sources.rs index a9c81f0516..910b6c94b6 100644 --- a/crates/registry-breg/src/package/tests/predecessor_sources.rs +++ b/crates/registry-breg/src/package/tests/predecessor_sources.rs @@ -143,7 +143,8 @@ fn list_form_sources_read_as_a_current_package_name_the_fresh_database_path() { let (manifest, loaded) = load_verified_closure(&root, &shared, false).expect("the historical closure verifies"); - let Err(refusal) = compile_package_sources(&manifest, &loaded) else { + let Err(refusal) = compile_package_sources(&manifest, &loaded, PackageSourceMode::Strict) + else { panic!("list-form access profiles are not read from a current package"); }; diff --git a/crates/registry-breg/src/project_sdk.rs b/crates/registry-breg/src/project_sdk.rs index 1811b3236d..7c20352d5a 100644 --- a/crates/registry-breg/src/project_sdk.rs +++ b/crates/registry-breg/src/project_sdk.rs @@ -231,11 +231,11 @@ pub(super) fn generate( crate::model::RelationshipCardinality::OptionalOne => format!("{value} | None"), crate::model::RelationshipCardinality::Many => format!("Page[{value}]"), }; - related_signatures.push(format!("def related(self, record_type: Literal[{}], identifier: str, relationship: Literal[{}], top: int = 50) -> {shape}:", quote(&entity.id), quote(&relationship.name))); + related_signatures.push(format!("def related(self, record_type: Literal[{}], identifier: str, relationship: Literal[{}], limit: int = 50) -> {shape}:", quote(&entity.id), quote(&relationship.name))); } for path in entity.read_paths.values() { let target = &entities[&path.to]; - related_signatures.push(format!("def related(self, record_type: Literal[{}], identifier: str, relationship: Literal[{}], top: int = 50) -> Page[RecordView[{}Projection]]:", quote(&entity.id), quote(&path.id), target.api_name)); + related_signatures.push(format!("def related(self, record_type: Literal[{}], identifier: str, relationship: Literal[{}], limit: int = 50) -> Page[RecordView[{}Projection]]:", quote(&entity.id), quote(&path.id), target.api_name)); } } let mut client = PYTHON_CLIENT.to_owned(); @@ -254,7 +254,7 @@ pub(super) fn generate( let mut related_overloads = String::new(); if let [signature] = related_signatures.as_slice() { client = client.replace( - "def related(self, record_type: str, identifier: str, relationship: str, top: int = 50) -> Any:", + "def related(self, record_type: str, identifier: str, relationship: str, limit: int = 50) -> Any:", signature, ); } else { @@ -530,7 +530,7 @@ export class ProjectClient { const result = await this.native.getRecord(definitions.records[recordType].route, id, {accessProfile: this.profile}); return this.view(recordType, result.value.data); } - async related(recordType: K, id: string, relationship: R, top = 50): Promise { + async related(recordType: K, id: string, relationship: R, limit = 50): Promise { const relation = definitions.relationships[recordType]?.[String(relationship)]; if (!relation) throw new TypeError('Relationship is not in the compiled project contract'); const source = await this.read(recordType as keyof ProjectRecords, id); @@ -550,8 +550,8 @@ export class ProjectClient { next: result.continuation ? async () => page(await resume(result.continuation!), resume) : undefined, }); const result = relation.kind === 'join' - ? page(await this.native.listRelationshipRecords(definitions.records[recordType].route, id, relation.path!, {accessProfile: this.profile, top}), continuation => this.native.continueRelationshipList(continuation)) - : page(await this.native.listRecords(definitions.records[relation.target].route, {accessProfile: this.profile, top, filter: `${relation.field} eq '${id}'`}), continuation => this.native.continueList(continuation)); + ? page(await this.native.listRelationshipRecords(definitions.records[recordType].route, id, relation.path!, {accessProfile: this.profile, limit}), continuation => this.native.continueRelationshipList(continuation)) + : page(await this.native.listRecords(definitions.records[relation.target].route, {accessProfile: this.profile, limit, filter: `${relation.field} eq '${id}'`}), continuation => this.native.continueList(continuation)); if (relation.cardinality === 'one') { if (result.items.length !== 1 || result.next) throw new TypeError('Required relationship did not resolve exactly one readable record'); return result.items[0] as ProjectRelationships[K][R]; @@ -665,7 +665,7 @@ class ProjectClient: result = self._native.get_record(_definitions['records'][record_type]['route'], identifier, access_profile=self._profile) return self._view(record_type, result['value']['data']) # RELATED_OVERLOADS - def related(self, record_type: str, identifier: str, relationship: str, top: int = 50) -> Any: + def related(self, record_type: str, identifier: str, relationship: str, limit: int = 50) -> Any: relation = _definitions['relationships'][record_type][relationship] source = self._read(record_type, identifier) if relation['kind'] == 'forward': @@ -677,9 +677,9 @@ class ProjectClient: if str(UUID(identifier)) != identifier: raise ValueError('Record identifier is invalid') if relation['kind'] == 'join': - result = self._native.list_relationship_records(_definitions['records'][record_type]['route'], identifier, relation['path'], access_profile=self._profile, top=top) + result = self._native.list_relationship_records(_definitions['records'][record_type]['route'], identifier, relation['path'], access_profile=self._profile, limit=limit) else: - result = self._native.list_records(_definitions['records'][relation['target']]['route'], access_profile=self._profile, top=top, filter=f"{relation['field']} eq '{identifier}'") + result = self._native.list_records(_definitions['records'][relation['target']]['route'], access_profile=self._profile, limit=limit, filter=f"{relation['field']} eq '{identifier}'") def page(result: Any) -> Page[RecordView[Any]]: value: Page[RecordView[Any]] = {'items': [cast(RecordView[Any], self._view(relation['target'], item)) for item in result['value']['items']]} continuation = result.get('continuation') @@ -814,11 +814,11 @@ mod tests { #[test] fn python_related_overloads_are_only_emitted_for_multiple_relationship_variants() { let python = python_sdk(&minimal_entities(false)); - assert!(python.contains("def related(self, record_type: str, identifier: str, relationship: str, top: int = 50) -> Any:\n")); + assert!(python.contains("def related(self, record_type: str, identifier: str, relationship: str, limit: int = 50) -> Any:\n")); assert!(!python.contains(" @overload\n def related(")); let mut entities = minimal_entities(true); - let parent = "def related(self, record_type: Literal[\"contact\"], identifier: str, relationship: Literal[\"parent\"], top: int = 50) -> RecordView[ContactProjection] | None:"; + let parent = "def related(self, record_type: Literal[\"contact\"], identifier: str, relationship: Literal[\"parent\"], limit: int = 50) -> RecordView[ContactProjection] | None:"; let python = python_sdk(&entities); assert!(python.contains(&format!("{parent}\n relation = _definitions"))); assert!(!python.contains("overload")); @@ -838,7 +838,7 @@ mod tests { assert!(python.contains(", overload, cast\n")); assert_eq!(python.matches(" @overload\n def related(").count(), 2); assert!(python.contains(&format!(" @overload\n {parent} pass\n"))); - let contacts = "def related(self, record_type: Literal[\"contact\"], identifier: str, relationship: Literal[\"contacts\"], top: int = 50) -> Page[RecordView[ContactProjection]]:"; + let contacts = "def related(self, record_type: Literal[\"contact\"], identifier: str, relationship: Literal[\"contacts\"], limit: int = 50) -> Page[RecordView[ContactProjection]]:"; assert!(python.contains(&format!(" @overload\n {contacts} pass\n"))); entities.get_mut("contact").unwrap().relationships.clear(); @@ -865,6 +865,28 @@ mod tests { } } + #[test] + fn related_list_calls_send_limit_to_the_native_client() { + let python = python_sdk(&minimal_entities(false)); + for call in [ + "access_profile=self._profile, limit=limit)", + "access_profile=self._profile, limit=limit, filter=", + ] { + assert!(python.contains(call), "missing {call}"); + } + assert!(!python.contains("top="), "Python still sends top"); + for call in [ + "{accessProfile: this.profile, limit})", + "{accessProfile: this.profile, limit, filter: ", + ] { + assert!(TYPESCRIPT_CLIENT.contains(call), "missing {call}"); + } + assert!( + !TYPESCRIPT_CLIENT.contains("top"), + "TypeScript still sends top" + ); + } + #[test] fn recovery_vocabulary_names_rebase_and_omits_terminal() { for contract in [ diff --git a/crates/registry-breg/src/proposal_prepare/tests.rs b/crates/registry-breg/src/proposal_prepare/tests.rs index 554f1d1888..caf57b2641 100644 --- a/crates/registry-breg/src/proposal_prepare/tests.rs +++ b/crates/registry-breg/src/proposal_prepare/tests.rs @@ -63,8 +63,8 @@ fn fixture_with(effects: Value, customize: impl FnOnce(&mut Value)) -> CompiledR fn function_source() -> Value { let mut value = source(json!([patch_effect()])); value["actions"]["change-target"]["inputs"][0]["required"] = json!(true); - value["functions"] = json!({"change-plan": {"runtime":"rhai","source":"plans/change.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}); - value["actions"]["change-target"]["plan"] = json!({"type":"function","function":"change-plan","inputs":["one","value"],"writes":[{"id":"patch-first","target":{"fromInput":"one"},"operation":"patch","fields":["first"]}]}); + value["actionPlans"] = json!({"change-plan": {"runtime":"rhai","source":"plans/change.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}); + value["actions"]["change-target"]["plan"] = json!({"type":"scripted","actionPlan":"change-plan","inputs":["one","value"],"writes":[{"id":"patch-first","target":{"fromInput":"one"},"operation":"patch","fields":["first"]}]}); value } const SCRIPT: &str = diff --git a/crates/registry-breg/src/query.rs b/crates/registry-breg/src/query.rs index 281ddc6cfc..e962e604e1 100644 --- a/crates/registry-breg/src/query.rs +++ b/crates/registry-breg/src/query.rs @@ -623,7 +623,7 @@ where } /// The fixed query parameter names a refusal may name as its location. -pub const QUERY_PARAMETERS: [&str; 12] = [ +pub const QUERY_PARAMETERS: [&str; 13] = [ "$select", "$filter", "$orderby", @@ -636,6 +636,7 @@ pub const QUERY_PARAMETERS: [&str; 12] = [ "snapshot", "validAt", "limit", + "cursor", ]; /// The fixed name of `key`, when a refusal while reading it is its own. @@ -713,13 +714,14 @@ where _ => builder.apply(key, value).map_err(located)?, } } + let cursor_parameter = builder.cursor_parameter(); let parsed = builder.finish_located()?; // Continuations carry the already selected snapshot and validity value. // Accepting a second value would make one request describe two queries. if matches!(parsed.mode, ParsedReadQueryMode::SkipToken { .. }) && (snapshot.is_some() || valid_at.is_some()) { - return Err((QueryParseError::ConflictingOptions, Some("$skiptoken"))); + return Err((QueryParseError::ConflictingOptions, cursor_parameter)); } Ok(ParsedSnapshotQuery { access_profile: parsed.access_profile, @@ -739,7 +741,7 @@ struct QueryBuilder { top: Option, count: Option, bbox: Option, - skiptoken: Option, + skiptoken: Option<(String, &'static str)>, } impl QueryBuilder { @@ -768,7 +770,7 @@ impl QueryBuilder { ensure_absent(self.orderby.is_none())?; self.orderby = Some(parse_orderby(value)?); } - "$top" => { + "limit" | "$top" => { ensure_absent(self.top.is_none())?; self.top = Some(parse_top(value)?); } @@ -780,12 +782,19 @@ impl QueryBuilder { ensure_absent(self.bbox.is_none())?; self.bbox = Some(parse_bbox(value)?); } - "$skiptoken" => { + "cursor" | "$skiptoken" => { ensure_absent(self.skiptoken.is_none())?; - self.skiptoken = Some(parse_opaque_value(value, MAX_CURSOR_TOKEN_BYTES)?); + let name = if key == "cursor" { + "cursor" + } else { + "$skiptoken" + }; + self.skiptoken = Some((parse_opaque_value(value, MAX_CURSOR_TOKEN_BYTES)?, name)); + } + "fields" | "filter" | "sort" | "pageSize" | "$skip" | "$apply" | "$expand" + | "$batch" => { + return Err(QueryParseError::DisallowedOption); } - "fields" | "filter" | "sort" | "pageSize" | "cursor" | "limit" | "$skip" | "$apply" - | "$expand" | "$batch" => return Err(QueryParseError::DisallowedOption), "$query" | "query" | "sql" | "statement" => { return Err(QueryParseError::DisallowedOption); } @@ -794,10 +803,15 @@ impl QueryBuilder { Ok(()) } - /// A continuation carries its whole query, so a conflict is always the - /// `$skiptoken` parameter's. + fn cursor_parameter(&self) -> Option<&'static str> { + self.skiptoken.as_ref().map(|(_, parameter)| *parameter) + } + + /// A continuation carries its whole query, so a conflict names the + /// supplied cursor parameter. fn finish_located(self) -> Result)> { - self.finish().map_err(|error| (error, Some("$skiptoken"))) + let cursor_parameter = self.cursor_parameter(); + self.finish().map_err(|error| (error, cursor_parameter)) } fn finish(self) -> Result { @@ -810,7 +824,7 @@ impl QueryBuilder { bbox: self.bbox, }; let mode = match self.skiptoken { - Some(token) => { + Some((token, _)) => { if self.as_of.is_some() || options.has_any_option() { return Err(QueryParseError::ConflictingOptions); } @@ -1878,13 +1892,8 @@ mod tests { #[test] fn rejects_unknown_disallowed_and_duplicate_options() { - assert_eq!( - parse([("limit", "10")]), - Err(QueryParseError::DisallowedOption) - ); for key in [ - "fields", "filter", "sort", "pageSize", "cursor", "$skip", "$apply", "$expand", - "$batch", "sql", + "fields", "filter", "sort", "pageSize", "$skip", "$apply", "$expand", "$batch", "sql", ] { assert_eq!( parse([(key, "value")]), @@ -1897,6 +1906,40 @@ mod tests { ); } + #[test] + fn pagination_names_share_query_and_cursor_rules() { + assert_eq!(parse([("limit", "10")]), parse([("$top", "10")])); + assert_eq!( + parse([("accessProfile", "reader"), ("cursor", "opaque-token")]), + parse([("accessProfile", "reader"), ("$skiptoken", "opaque-token"),]) + ); + for (parameters, duplicate) in [ + ([("$top", "10"), ("limit", "10")], "limit"), + ([("limit", "10"), ("$top", "10")], "$top"), + ([("$skiptoken", "same"), ("cursor", "same")], "cursor"), + ([("cursor", "same"), ("$skiptoken", "same")], "$skiptoken"), + ] { + assert_eq!( + parse_read_query_located(parameters), + Err((QueryParseError::DuplicateOption, Some(duplicate))) + ); + } + assert_eq!( + parse_read_query_located([("limit", "101")]), + Err((QueryParseError::InvalidValue, Some("limit"))) + ); + assert_eq!( + parse_read_query_located([("cursor", "opaque-token"), ("limit", "10")]), + Err((QueryParseError::ConflictingOptions, Some("cursor"))) + ); + for key in ["cursor", "$skiptoken"] { + assert_eq!( + parse_snapshot_query_located([(key, "opaque-token"), ("validAt", "later")]), + Err((QueryParseError::ConflictingOptions, Some(key))) + ); + } + } + #[test] fn skiptoken_only_allows_access_profile() { let query = parse([("accessProfile", "reader"), ("$skiptoken", "opaque-token")]) diff --git a/crates/registry-breg/src/tests/action_handler_benchmark_tests.rs b/crates/registry-breg/src/tests/action_handler_benchmark_tests.rs index 69254954a5..79b85cbfb0 100644 --- a/crates/registry-breg/src/tests/action_handler_benchmark_tests.rs +++ b/crates/registry-breg/src/tests/action_handler_benchmark_tests.rs @@ -43,12 +43,12 @@ fn acceptance_action() -> CompiledAction { "recordTypes":{"person": {"route":"people","primaryDataset":"records","mutationMode":"mutable","fields":[ {"id":"identifier","type":"string","required":true,"maximumLength":13,"classification":"internal"}, {"id":"display-name","type":"string","required":true,"minimumLength":1,"maximumLength":200,"classification":"internal"}]}}, - "functions":{"register-plan": {"runtime":"rhai","source":"scripts/register-person.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}, + "actionPlans":{"register-plan": {"runtime":"rhai","source":"scripts/register-person.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}, "actions":{"register-person": {"execution":{"mode":"immediate"},"inputs":[ {"id":"identifier","type":"string","required":true,"maximumLength":13,"classification":"internal"}, {"id":"given-name","type":"string","maximumLength":80,"classification":"internal"}, {"id":"family-name","type":"string","maximumLength":80,"classification":"internal"}], - "plan":{"type":"function","function":"register-plan","inputs":["identifier","given-name","family-name"], + "plan":{"type":"scripted","actionPlan":"register-plan","inputs":["identifier","given-name","family-name"], "refusals":[{"code":"blank-name","label":"At least one name part is required."}], "writes":[{"id":"person","target":{"recordType":"person"},"operation":"create","fields":["identifier","display-name"]}]}}}, "accessProfiles":{"writer": {"principalClaim":"principal","requiredScopes":"unrestricted","permissions":{"actions":[ @@ -95,13 +95,13 @@ fn characterization_action(script: &str) -> CompiledAction { {"id":"count","type":"int64","classification":"restricted"}, {"id":"amount","type":"decimal","precision":20,"scale":2,"classification":"restricted"} ]}}, - "functions":{"baseline-plan": {"runtime":"rhai","source":"handlers/baseline.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}, + "actionPlans":{"baseline-plan": {"runtime":"rhai","source":"handlers/baseline.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}, "actions":{"register-record": {"execution":{"mode":"immediate"},"inputs":[ {"id":"label","apiName":"displayLabel","type":"string","maximumLength":80,"required":true,"classification":"restricted"}, {"id":"count","type":"int64","required":true,"classification":"restricted"}, {"id":"amount","type":"decimal","precision":20,"scale":2,"required":true,"classification":"restricted"}, {"id":"note","type":"string","maximumLength":80,"classification":"restricted"} - ],"plan":{"type":"function","function":"baseline-plan","inputs":["label","count","amount","note"], + ],"plan":{"type":"scripted","actionPlan":"baseline-plan","inputs":["label","count","amount","note"], "refusals":[{"code":"blank-label","label":"A label is required."}], "writes":[{"id":"record","target":{"recordType":"record"},"operation":"create","fields":["label","count","amount"]}] }}}, diff --git a/crates/registry-breg/src/tests/action_outcome_wasm_parity_tests.rs b/crates/registry-breg/src/tests/action_outcome_wasm_parity_tests.rs index 0060e78f8f..e9fa4ba207 100644 --- a/crates/registry-breg/src/tests/action_outcome_wasm_parity_tests.rs +++ b/crates/registry-breg/src/tests/action_outcome_wasm_parity_tests.rs @@ -47,12 +47,12 @@ fn person_action(script: &str) -> CompiledAction { {"id":"name","type":"string","maximumLength":160,"required":true,"classification":"restricted"}, {"id":"friend","type":"reference","target":"person","classification":"restricted"} ]}}, - "functions":{"person-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}, + "actionPlans":{"person-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}, "actions":{"register-person": {"execution":{"mode":"immediate"},"inputs":[ {"id":"given-name","apiName":"givenName","type":"string","maximumLength":80,"required":true,"classification":"restricted"}, {"id":"family-name","type":"string","maximumLength":80,"classification":"restricted"}, {"id":"person","type":"reference","target":"person","required":true,"classification":"restricted"} - ],"plan":{"type":"function","function":"person-plan","inputs":["given-name","family-name","person"],"refusals":[{"code":"blank-name","label":"A name is required."}],"writes":[ + ],"plan":{"type":"scripted","actionPlan":"person-plan","inputs":["given-name","family-name","person"],"refusals":[{"code":"blank-name","label":"A name is required."}],"writes":[ {"id":"person","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]}, {"id":"friend","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]}, {"id":"existing","target":{"fromInput":"person"},"operation":"patch","fields":["name","friend"]} @@ -93,12 +93,12 @@ fn record_action(script: &str) -> CompiledAction { {"id":"count","type":"int64","classification":"restricted"}, {"id":"amount","type":"decimal","precision":20,"scale":2,"classification":"restricted"} ]}}, - "functions":{"record-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}, + "actionPlans":{"record-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}, "actions":{"register-record": {"execution":{"mode":"immediate"},"inputs":[ {"id":"label","apiName":"displayLabel","type":"string","maximumLength":80,"required":true,"classification":"restricted"}, {"id":"count","type":"int64","required":true,"classification":"restricted"}, {"id":"amount","type":"decimal","precision":20,"scale":2,"required":true,"classification":"restricted"} - ],"plan":{"type":"function","function":"record-plan","inputs":["label","count","amount"],"refusals":[{"code":"blank-label","label":"A label is required."}], + ],"plan":{"type":"scripted","actionPlan":"record-plan","inputs":["label","count","amount"],"refusals":[{"code":"blank-label","label":"A label is required."}], "writes":[{"id":"record","target":{"recordType":"record"},"operation":"create","fields":["label","count","amount"]}] }}}, "accessProfiles":{"writer": {"default":true,"principalClaim":"principal","requiredScopes":"unrestricted","permissions":{ diff --git a/crates/registry-breg/src/tests/artifacts_response_schema_tests.rs b/crates/registry-breg/src/tests/artifacts_response_schema_tests.rs index 53958e6fe6..f5af5b2ce9 100644 --- a/crates/registry-breg/src/tests/artifacts_response_schema_tests.rs +++ b/crates/registry-breg/src/tests/artifacts_response_schema_tests.rs @@ -132,6 +132,11 @@ fn write_outside_boundary_problem_is_exact_and_does_not_narrow_located_problems( "traceId": "11111111111111111111111111111111" }); assert_valid(&schema, &exact); + let mut development = exact.clone(); + development["failedCheck"] = json!("row-boundary"); + assert_valid(&schema, &development); + development["failedCheck"] = json!(false); + assert_invalid(&schema, &development); for (member, value) in [ ("fieldPath", json!("/data/jurisdiction")), diff --git a/crates/registry-breg/src/tests/wasm_runtime_tests.rs b/crates/registry-breg/src/tests/wasm_runtime_tests.rs index 792fdb73c2..4187d57dd6 100644 --- a/crates/registry-breg/src/tests/wasm_runtime_tests.rs +++ b/crates/registry-breg/src/tests/wasm_runtime_tests.rs @@ -145,12 +145,12 @@ fn wasm_person_action(module_bytes: &[u8]) -> CompiledAction { {"id":"name","type":"string","maximumLength":160,"required":true,"classification":"restricted"}, {"id":"friend","type":"reference","target":"person","classification":"restricted"} ]}}, - "functions":{"person-plan": {"runtime":"wasm","source":"handlers/guest.wasm","entrypoint":"handle","abi":"registry.action-plan/v1","capabilities":[]}}, + "actionPlans":{"person-plan": {"runtime":"wasm","source":"handlers/guest.wasm","entrypoint":"handle","abi":"registry.action-plan/v1","capabilities":[]}}, "actions":{"register-person": {"execution":{"mode":"immediate"},"inputs":[ {"id":"given-name","apiName":"givenName","type":"string","maximumLength":80,"required":true,"classification":"restricted"}, {"id":"family-name","type":"string","maximumLength":80,"classification":"restricted"}, {"id":"person","type":"reference","target":"person","required":true,"classification":"restricted"} - ],"plan":{"type":"function","function":"person-plan","inputs":["given-name","family-name","person"],"refusals":[{"code":"blank-name","label":"A name is required."}],"writes":[ + ],"plan":{"type":"scripted","actionPlan":"person-plan","inputs":["given-name","family-name","person"],"refusals":[{"code":"blank-name","label":"A name is required."}],"writes":[ {"id":"person","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]} ]}}}, "accessProfiles":{"registrar": {"default":true,"principalClaim":"principal","requiredScopes":"unrestricted","permissions":{"actions":[{"action":"register-person","operations":["invoke"],"targets":[{"recordType":"person","rowBoundaries":"unrestricted"}],"results":["person"]}]}}} diff --git a/crates/registry-breg/tests/access_explanation.rs b/crates/registry-breg/tests/access_explanation.rs index 297fe26786..0ceb6bb9f8 100644 --- a/crates/registry-breg/tests/access_explanation.rs +++ b/crates/registry-breg/tests/access_explanation.rs @@ -91,12 +91,12 @@ fn mixed_action_target_source() -> Value { fn function_action_target_source() -> Value { let mut candidate = source(); - candidate["functions"] = json!({"create-entry-plan": {"runtime":"rhai", "source":"plans/create-entry.rhai", + candidate["actionPlans"] = json!({"create-entry-plan": {"runtime":"rhai", "source":"plans/create-entry.rhai", "entrypoint":"plan", "abi":"registry.action-plan/v1" }}); candidate["actions"] = json!({"create-entry": {"execution":{"mode":"immediate"}, "inputs":[{"id":"district", "type":"string", "maximumLength":32, "required":true, "classification":"internal"}], - "plan":{"type":"function", "function":"create-entry-plan", "inputs":["district"], "writes":[{ + "plan":{"type":"scripted", "actionPlan":"create-entry-plan", "inputs":["district"], "writes":[{ "id":"entry", "target":{"recordType":"entry"}, "operation":"create", "fields":["district"] }]} }}); diff --git a/crates/registry-breg/tests/action_evidence_compiler.rs b/crates/registry-breg/tests/action_evidence_compiler.rs index 97e7ffed1a..5de966b153 100644 --- a/crates/registry-breg/tests/action_evidence_compiler.rs +++ b/crates/registry-breg/tests/action_evidence_compiler.rs @@ -18,12 +18,12 @@ fn project() -> Value { {"id":"name","type":"string","maximumLength":160,"required":true,"classification":"restricted"}, {"id":"friend","type":"reference","target":"person","classification":"restricted"} ]}}, - "functions":{"register-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":["evidence"]}}, + "actionPlans":{"register-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":["evidence"]}}, "actions":{"register-person": {"execution":{"mode":"immediate"},"inputs":[ {"id":"given-name","apiName":"givenName","type":"string","maximumLength":80,"required":true,"classification":"restricted"}, {"id":"family-name","type":"string","maximumLength":80,"classification":"restricted"}, {"id":"person","type":"reference","target":"person","required":true,"classification":"restricted"} - ],"plan":{"type":"function","function":"register-plan","inputs":["given-name","family-name","person"],"refusals":[{"code":"blank-name","label":"A name is required."}],"writes":[ + ],"plan":{"type":"scripted","actionPlan":"register-plan","inputs":["given-name","family-name","person"],"refusals":[{"code":"blank-name","label":"A name is required."}],"writes":[ {"id":"person","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]}, {"id":"friend","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]}, {"id":"existing","target":{"fromInput":"person"},"operation":"patch","fields":["name","friend"]} @@ -151,7 +151,7 @@ fn proposal_apply_declares_commit_evidence_failure_but_submit_does_not() { "requires":[{"output":"status-holds","equals":true}],"maximumObservationAgeSeconds":60 }] }); - source["functions"]["register-plan"]["capabilities"] = json!([]); + source["actionPlans"]["register-plan"]["capabilities"] = json!([]); let permissions = &mut source["accessProfiles"]["registrar"]["permissions"]; permissions["actions"][0]["operations"] = json!(["start"]); permissions["actions"][0] @@ -219,7 +219,9 @@ fn refuses_origin_profile_output_ambiguity_and_budget_widening() { let cap = source["actions"]["register-person"]["evidence"][0].clone(); source["actions"]["register-person"]["evidence"] = json!([cap, cap, cap]); } - "abi" => source["functions"]["register-plan"]["abi"] = json!("registry.action-plan/v2"), + "abi" => { + source["actionPlans"]["register-plan"]["abi"] = json!("registry.action-plan/v2") + } "schema" => contract["schema"] = json!("unknown"), "bounds" => { contract["definitions"][0]["subjects"][0]["selector"]["fields"][0]["minimumBytes"] = @@ -252,20 +254,20 @@ fn the_evidence_declaration_selects_the_capability_under_the_one_handler_abi() { .is_empty()); let mut refused = configured(); - refused["functions"]["register-plan"]["capabilities"] = json!([]); + refused["actionPlans"]["register-plan"]["capabilities"] = json!([]); let failure = compile(refused, Some(contracts())) .expect_err("the Function capability list is a ceiling on its Evidence Action"); let diagnostic = failure .diagnostics() .iter() - .find(|diagnostic| diagnostic.code == "breg.action.function-contract-invalid") + .find(|diagnostic| diagnostic.code == "breg.action.plan-contract-invalid") .unwrap_or_else(|| { panic!( "expected the Function ceiling refusal: {:?}", failure.diagnostics() ) }); - assert_eq!(diagnostic.path, "actions[register-person].plan.function"); + assert_eq!(diagnostic.path, "actions[register-person].plan.actionPlan"); } #[test] @@ -294,20 +296,20 @@ fn plan_capabilities_are_not_an_authored_grant() { assert!(diagnostic.suggested_action.contains("Action's Evidence")); assert!(diagnostic .suggested_action - .contains("Function's `capabilities`")); + .contains("Action Plan's `capabilities`")); } } #[test] fn function_capabilities_are_a_closed_value_free_vocabulary() { let mut source = project(); - source["functions"]["register-plan"]["capabilities"] = json!(["private-capability-canary"]); + source["actionPlans"]["register-plan"]["capabilities"] = json!(["private-capability-canary"]); let report = read_project_yaml("registry.json", &serde_json::to_vec(&source).unwrap()) .expect_err("a Function capability outside the closed vocabulary is refused"); let diagnostic = report .diagnostics() .iter() - .find(|diagnostic| diagnostic.path == "/functions/register-plan/capabilities/0") + .find(|diagnostic| diagnostic.path == "/actionPlans/register-plan/capabilities/0") .unwrap_or_else(|| panic!("expected the Function capability refusal: {report:?}")); assert_eq!(diagnostic.code, "config.unknown-variant"); assert!(diagnostic.message.contains("evidence")); @@ -320,14 +322,14 @@ fn function_capabilities_are_a_closed_value_free_vocabulary() { fn the_retired_evidence_abi_is_refused_where_it_is_declared() { for (source, contract) in [(configured(), Some(contracts())), (project(), None)] { let mut source = source; - source["functions"]["register-plan"]["abi"] = json!("registry.action-plan/v2"); + source["actionPlans"]["register-plan"]["abi"] = json!("registry.action-plan/v2"); let failure = compile(source, contract).expect_err("one handler ABI is accepted"); let diagnostic = failure .diagnostics() .iter() .find(|diagnostic| diagnostic.code == "breg.action.handler-abi-invalid") .unwrap_or_else(|| panic!("expected the ABI refusal: {:?}", failure.diagnostics())); - assert_eq!(diagnostic.path, "functions[id=register-plan].abi"); + assert_eq!(diagnostic.path, "actionPlans[id=register-plan].abi"); assert!(diagnostic.message.contains("registry.action-plan/v1")); assert!(!diagnostic.message.contains("v2")); } @@ -478,7 +480,7 @@ fn evidence_calls_require_a_declared_capability_in_statements_expressions_and_ne .remove("evidence"); } assert_eq!( - source["functions"]["register-plan"]["abi"], + source["actionPlans"]["register-plan"]["abi"], "registry.action-plan/v1" ); let source = parse_project_json(&serde_json::to_vec(&source).unwrap()).unwrap(); @@ -509,7 +511,7 @@ fn evidence_calls_require_a_declared_capability_in_statements_expressions_and_ne .iter() .find(|diagnostic| diagnostic.code == "breg.action.handler-helper-contract") .unwrap_or_else(|| panic!("{body}: {:?}", failure.diagnostics())); - assert_eq!(diagnostic.path, "functions[id=register-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=register-plan].source"); assert!(!diagnostic.message.contains("v2"), "{body}"); } } @@ -540,14 +542,14 @@ fn published_authoring_schema_accepts_evidence_action_and_rejects_every_other_ab "the schema removes the redundant Action plan capability" ); let mut with_unknown_capability = source.clone(); - with_unknown_capability["functions"]["register-plan"]["capabilities"] = + with_unknown_capability["actionPlans"]["register-plan"]["capabilities"] = json!(["private-capability"]); assert!( !validator.is_valid(&with_unknown_capability), "the schema closes Function capabilities to evidence" ); for other in ["registry.action-plan/v2", "registry.action-plan/v3"] { - source["functions"]["register-plan"]["abi"] = json!(other); + source["actionPlans"]["register-plan"]["abi"] = json!(other); assert!(!validator.is_valid(&source), "{other}"); } } diff --git a/crates/registry-breg/tests/action_handler_declaration.rs b/crates/registry-breg/tests/action_handler_declaration.rs index 8aba14a877..df2fbe4dd0 100644 --- a/crates/registry-breg/tests/action_handler_declaration.rs +++ b/crates/registry-breg/tests/action_handler_declaration.rs @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 -//! Named input-bound plan functions have one closed authored contract. +//! Named input-bound Action Plans have one closed authored contract. use registry_breg::compiler::{compile_project_with_assets, CompileProfile}; use registry_breg::contract::{parse_project_json, ModuleAssetSource, ACTION_PLAN_ABI_V1}; @@ -12,11 +12,11 @@ fn project() -> Value { "datasets":{"test": {}}, "recordTypes":{"person": {"primaryDataset":"test","route":"people","mutationMode":"mutable", "fields":[{"id":"code","type":"string","maximumLength":64,"required":true,"classification":"internal"}]}}, - "functions":{"person-plan": {"runtime":"rhai","source":"plans/person.rhai","entrypoint":"calculate","abi":ACTION_PLAN_ABI_V1}}, + "actionPlans":{"person-plan": {"runtime":"rhai","source":"plans/person.rhai","entrypoint":"calculate","abi":ACTION_PLAN_ABI_V1}}, "actions":{"register-person": {"execution":{"mode":"immediate"}, "inputs":[{"id":"code","type":"string","maximumLength":64,"required":true,"classification":"internal"}, {"id":"unbound","type":"string","maximumLength":64,"classification":"restricted"}], - "plan":{"type":"function","function":"person-plan","inputs":["code"], + "plan":{"type":"scripted","actionPlan":"person-plan","inputs":["code"], "writes":[{"id":"person","target":{"recordType":"person"},"operation":"create","fields":["code"]}]}}}, "accessProfiles":{"registrar": {"default":true,"principalClaim":"registry_principal","requiredScopes":"unrestricted", "permissions":{"actions":[{"action":"register-person","operations":["invoke"],"targets":[{"recordType":"person","rowBoundaries":"unrestricted"}],"results":["person"]}]}}} @@ -84,7 +84,7 @@ fn native_functions_round_trip_without_backend_aliases() { #[test] fn named_function_members_are_closed() { let mut value = project(); - value["functions"]["person-plan"]["script"] = json!("plans/person.rhai"); + value["actionPlans"]["person-plan"]["script"] = json!("plans/person.rhai"); let failure = parse_project_json(&serde_json::to_vec(&value).unwrap()).unwrap_err(); assert!(failure .diagnostics() @@ -96,7 +96,7 @@ fn named_function_members_are_closed() { fn abi_and_source_are_required_on_the_named_function() { for member in ["abi", "source", "entrypoint"] { let mut value = project(); - value["functions"]["person-plan"] + value["actionPlans"]["person-plan"] .as_object_mut() .unwrap() .remove(member); @@ -114,31 +114,31 @@ fn retired_inline_handler_and_remote_runtime_are_refused() { json!({"type":"rhai","script":"plans/person.rhai"}); assert!(parse_project_json(&serde_json::to_vec(&value).unwrap()).is_err()); let mut value = project(); - value["functions"]["person-plan"]["runtime"] = json!("url"); + value["actionPlans"]["person-plan"]["runtime"] = json!("url"); assert!(parse_project_json(&serde_json::to_vec(&value).unwrap()).is_err()); } #[test] fn source_path_and_abi_fail_at_the_named_function() { let mut value = project(); - value["functions"]["person-plan"]["source"] = json!("plans/person.wasm"); + value["actionPlans"]["person-plan"]["source"] = json!("plans/person.wasm"); let failure = compile(value).unwrap_err(); assert!(failure .diagnostics() .iter() - .any(|d| d.path == "functions[id=person-plan].source")); + .any(|d| d.path == "actionPlans[id=person-plan].source")); let mut value = project(); - value["functions"]["person-plan"]["abi"] = json!("registry.action-handler/v1"); + value["actionPlans"]["person-plan"]["abi"] = json!("registry.action-handler/v1"); assert!(compile(value).is_err()); } #[test] fn missing_named_function_is_a_compile_time_refusal() { let mut value = project(); - value["actions"]["register-person"]["plan"]["function"] = json!("absent"); + value["actions"]["register-person"]["plan"]["actionPlan"] = json!("absent"); assert!(compile(value) .unwrap_err() .diagnostics() .iter() - .any(|d| d.code == "breg.action.function-unknown")); + .any(|d| d.code == "breg.action.plan-unknown")); } diff --git a/crates/registry-breg/tests/actions_functions_map.rs b/crates/registry-breg/tests/actions_functions_map.rs index d564d23676..d2c3acb2b6 100644 --- a/crates/registry-breg/tests/actions_functions_map.rs +++ b/crates/registry-breg/tests/actions_functions_map.rs @@ -1,11 +1,12 @@ // SPDX-License-Identifier: Apache-2.0 -//! `actions` and `functions` are mappings keyed by id (CFG-ID-5), in a project +//! `actions` and `actionPlans` are mappings keyed by id (CFG-ID-5), in a project //! and in a module. The key is the id, an inner id and the old list shape are //! refused with the mapping named, a repeated key is refused at the repeating //! key, and entries are held in id order whatever order the file writes them in. -use registry_breg::contract::{parse_module_yaml, parse_project_yaml}; +use registry_breg::compiler::module_digest_with_assets; +use registry_breg::contract::{parse_module_yaml, parse_project_yaml, ModuleAssetSource}; const PROJECT_HEAD: &str = "apiVersion: id.registrystack.org/formats/breg/project/v1alpha1 kind: BRegProject @@ -24,7 +25,7 @@ id: extension version: 0.1.0 "; -fn function(key: &str) -> String { +fn action_plan(key: &str) -> String { format!( " {key}:\n runtime: rhai\n source: plans/{key}.rhai\n entrypoint: plan\n abi: registry.action-plan/v1\n" ) @@ -32,7 +33,7 @@ fn function(key: &str) -> String { fn action(key: &str) -> String { format!( - " {key}:\n execution: {{mode: immediate}}\n inputs: []\n plan:\n type: function\n function: plan\n inputs: []\n writes: []\n" + " {key}:\n execution: {{mode: immediate}}\n inputs: []\n plan:\n type: scripted\n actionPlan: go\n inputs: []\n writes: []\n" ) } @@ -53,11 +54,83 @@ fn refusals(failure: ®istry_breg::CompileFailure) -> Vec<(&str, &str)> { } #[test] -fn mappings_of_actions_and_functions_read_each_key_as_the_id_in_id_order() { +fn scripted_action_plan_round_trips_with_the_published_keys() { let written = project(&format!( - "functions:\n{}{}actions:\n{}{}", - function("zeta"), - function("alpha"), + "actionPlans:\n{}actions:\n{}", + action_plan("go"), + action("go"), + )); + let parsed = parse_project_yaml(written.as_bytes()).expect("the scripted Action Plan reads"); + let serialized = serde_json::to_value(parsed).expect("the project serializes"); + assert!(serialized.get("functions").is_none()); + assert!(serialized["actionPlans"]["go"].is_object()); + let plan = &serialized["actions"]["go"]["plan"]; + assert_eq!(plan["type"], "scripted"); + assert_eq!(plan["actionPlan"], "go"); + assert!(plan.get("function").is_none()); +} + +#[test] +fn retired_action_plan_spellings_name_their_replacements() { + let written = project(&format!("functions:\n{}", action_plan("go"))); + let error = parse_project_yaml(written.as_bytes()).expect_err("functions is retired"); + assert_eq!( + refusals(&error), + [("config.removed-key", "project.functions")] + ); + assert!(error.diagnostics()[0].message.contains("actionPlans")); + + let written = module(&format!( + "actions:\n{}", + action("go").replace("actionPlan: go", "function: go") + )); + let error = parse_module_yaml(written.as_bytes()).expect_err("plan.function is retired"); + assert_eq!( + refusals(&error), + [("config.removed-key", "module.actions.go.plan.function")] + ); + assert!(error.diagnostics()[0].message.contains("actionPlan")); + + let written = module(&format!( + "actions:\n{}", + action("go").replace("type: scripted", "type: function") + )); + let error = parse_module_yaml(written.as_bytes()).expect_err("type: function is retired"); + assert_eq!( + refusals(&error), + [("config.removed-key", "module.actions.go.plan.type")] + ); + assert!(error.diagnostics()[0].message.contains("scripted")); +} + +#[test] +fn a_scripted_action_keeps_the_historical_module_digest() { + let module = parse_module_yaml(include_bytes!( + "fixtures/historical-action-plan-module/module.yaml" + )) + .unwrap(); + let asset = ModuleAssetSource { + module: Some("extension".into()), + path: "scripts/request-information.rhai".into(), + bytes: include_bytes!( + "fixtures/historical-action-plan-module/scripts/request-information.rhai" + ) + .to_vec(), + }; + // Recorded by the released v0.49 `bregctl project lock` on the same + // module and asset with the historical authored spellings. + assert_eq!( + module_digest_with_assets(&module, &[asset]), + "sha256:75aa99f59952a8d9e964a0aaeef37adfc07cea9c69640152eed6bbe870e4281b" + ); +} + +#[test] +fn mappings_of_actions_and_action_plans_read_each_key_as_the_id_in_id_order() { + let written = project(&format!( + "actionPlans:\n{}{}actions:\n{}{}", + action_plan("zeta"), + action_plan("alpha"), action("zeta"), action("alpha"), )); @@ -76,9 +149,9 @@ fn mappings_of_actions_and_functions_read_each_key_as_the_id_in_id_order() { assert_eq!(actions, ["alpha", "zeta"]); let written = module(&format!( - "functions:\n{}{}actions:\n{}{}", - function("zeta"), - function("alpha"), + "actionPlans:\n{}{}actions:\n{}{}", + action_plan("zeta"), + action_plan("alpha"), action("zeta"), action("alpha"), )); @@ -98,7 +171,7 @@ fn mappings_of_actions_and_functions_read_each_key_as_the_id_in_id_order() { } #[test] -fn a_repeated_action_or_function_key_is_refused_at_the_repeating_key() { +fn a_repeated_action_or_action_plan_key_is_refused_at_the_repeating_key() { let written = project(&format!("actions:\n{}{}", action("go"), action("go"))); let failure = parse_project_yaml(written.as_bytes()).expect_err("a repeated key is refused"); assert_eq!( @@ -106,11 +179,15 @@ fn a_repeated_action_or_function_key_is_refused_at_the_repeating_key() { vec![("yaml.duplicate-key", "project.actions.go")], "{failure:?}" ); - let written = project(&format!("functions:\n{}{}", function("go"), function("go"))); + let written = project(&format!( + "actionPlans:\n{}{}", + action_plan("go"), + action_plan("go") + )); let failure = parse_project_yaml(written.as_bytes()).expect_err("a repeated key is refused"); assert_eq!( refusals(&failure), - vec![("yaml.duplicate-key", "project.functions.go")], + vec![("yaml.duplicate-key", "project.actionPlans.go")], "{failure:?}" ); let written = module(&format!("actions:\n{}{}", action("go"), action("go"))); @@ -120,11 +197,15 @@ fn a_repeated_action_or_function_key_is_refused_at_the_repeating_key() { vec![("yaml.duplicate-key", "module.actions.go")], "{failure:?}" ); - let written = module(&format!("functions:\n{}{}", function("go"), function("go"))); + let written = module(&format!( + "actionPlans:\n{}{}", + action_plan("go"), + action_plan("go") + )); let failure = parse_module_yaml(written.as_bytes()).expect_err("a repeated key is refused"); assert_eq!( refusals(&failure), - vec![("yaml.duplicate-key", "module.functions.go")], + vec![("yaml.duplicate-key", "module.actionPlans.go")], "{failure:?}" ); } @@ -138,9 +219,9 @@ fn the_list_shapes_are_refused_with_the_mapping_named() { "actions: {ACTION_ID: {", ), ( - "functions", - "functions:\n - id: go\n runtime: rhai\n", - "functions: {FUNCTION_ID: {", + "actionPlans", + "actionPlans:\n - id: go\n runtime: rhai\n", + "actionPlans: {PLAN_ID: {", ), ] { for (scope, failure) in [ @@ -170,8 +251,11 @@ fn the_list_shapes_are_refused_with_the_mapping_named() { } #[test] -fn an_inner_id_in_an_action_or_function_is_refused() { - for (collection, entry) in [("actions", action("go")), ("functions", function("go"))] { +fn an_inner_id_in_an_action_or_action_plan_is_refused() { + for (collection, entry) in [ + ("actions", action("go")), + ("actionPlans", action_plan("go")), + ] { let entry = entry.replacen(":\n", ":\n id: go\n", 1); let written = project(&format!("{collection}:\n{entry}")); let failure = parse_project_yaml(written.as_bytes()).expect_err("an inner id is refused"); diff --git a/crates/registry-breg/tests/compiled_ddl_pins.rs b/crates/registry-breg/tests/compiled_ddl_pins.rs index c9ae286944..374bd2e89d 100644 --- a/crates/registry-breg/tests/compiled_ddl_pins.rs +++ b/crates/registry-breg/tests/compiled_ddl_pins.rs @@ -98,6 +98,12 @@ //! Selection by fit, `profile.not-authorized`, and `access-profile.ambiguous` //! in the generated OpenAPI document likewise move artifact revisions only. //! SQL and Action pins stay fixed. +//! The `limit` and `cursor` list query parameters, and the development-only +//! `failedCheck` Problem member, likewise change only the generated OpenAPI +//! document and artifact revisions. SQL and Action pins stay fixed. +//! The generated project SDK passes `limit` to the native list calls, which +//! changes the packaged SDK and artifact revisions. SQL and Action pins stay +//! fixed. use registry_breg::compiler::{compile_project, CompileProfile}; use registry_breg::contract::{parse_module_yaml, parse_project_yaml}; @@ -120,7 +126,7 @@ const FIXTURES: &[Fixture] = &[ ), module: None, ddl_sha256: "6d6431e3e4fb3eb254ef8f3b2e895aed2c09ed4ee7ca506627e1d063359f4578", - revision: "sha256:bae0a8d7f49ab9959743b39c1dacee918540abde36cfbabf065657d2cf13c1e4", + revision: "sha256:6ce101a4824207e4feaaca9c790de8580c07d280ca913937e6a643eb1ee48860", }, Fixture { name: "asset-registration-actions", @@ -131,7 +137,7 @@ const FIXTURES: &[Fixture] = &[ "../../../products/breg/fixtures/asset-registration-actions/modules/asset-registration-actions-core/module.yaml" )), ddl_sha256: "43acdae956eb2f932fb22a2cccc5cee5ed19cf806f2f28bbc677eff219d00b99", - revision: "sha256:991cd3ce2af7111942b7b023d1ffd98b0ec14bf6d6c82c82f1f5549620169e95", + revision: "sha256:6d9e4da6a98799e51faf07bf39ac5bd741d0bdb7086d9f0281ffed4ef36d6706", }, Fixture { name: "facility-registry-actions", @@ -142,7 +148,7 @@ const FIXTURES: &[Fixture] = &[ "../../../products/breg/fixtures/facility-registry-actions/modules/facility-registry-actions-core/module.yaml" )), ddl_sha256: "6439a877ee6508b999a77242542695d8ccddc6d80518699d90eddc32b305780b", - revision: "sha256:a32c551ddb61f7d47e79772919c0691b49c38b7015a6c3920f1ca946540bf9e5", + revision: "sha256:a0f2d6ba534425b7f1ce68af3e76ed44ee2938232c6c6db1e07818e818eda863", }, Fixture { name: "household-contact-actions", @@ -153,7 +159,7 @@ const FIXTURES: &[Fixture] = &[ "../../../products/breg/fixtures/household-contact-actions/modules/household-contact-actions-core/module.yaml" )), ddl_sha256: "f82f2f8376df97fb184c04d31c8e42c291f7a03dbd909828e1bf61612106de35", - revision: "sha256:d7a4350437701f38952f9bccac4bc2fb4cba8bc9afca0144afe0652b97d54958", + revision: "sha256:7513e3f517649641bfda36027e5ff437c5a6139ec5ec7224913dcd1c34a5e43a", }, ]; diff --git a/crates/registry-breg/tests/compiler_contract.rs b/crates/registry-breg/tests/compiler_contract.rs index a5f3d54153..1c3ea7140a 100644 --- a/crates/registry-breg/tests/compiler_contract.rs +++ b/crates/registry-breg/tests/compiler_contract.rs @@ -7492,10 +7492,10 @@ fn compiled_query_inventory_is_profile_scoped_bounded_and_temporal() { "$filter", "$orderby", "$select", - "$skiptoken", - "$top", "Accept", "accessProfile", + "cursor", + "limit", "traceparent", ] ); @@ -7509,11 +7509,11 @@ fn compiled_query_inventory_is_profile_scoped_bounded_and_temporal() { "$filter", "$orderby", "$select", - "$skiptoken", - "$top", "Accept", "accessProfile", "asOf", + "cursor", + "limit", "traceparent", ] ); @@ -7528,8 +7528,8 @@ fn compiled_query_inventory_is_profile_scoped_bounded_and_temporal() { assert_eq!(as_of["schema"], json!({"type": "string", "format": "date"})); let page_size = as_of_parameters .iter() - .find(|parameter| parameter["name"] == "$top") - .expect("$top parameter is rendered"); + .find(|parameter| parameter["name"] == "limit") + .expect("limit parameter is rendered"); assert_eq!( page_size["schema"], json!({"type": "integer", "minimum": 1, "maximum": 100}) @@ -7544,7 +7544,7 @@ fn compiled_query_inventory_is_profile_scoped_bounded_and_temporal() { .as_array() .unwrap() .iter() - .find(|parameter| parameter["name"] == "$skiptoken") + .find(|parameter| parameter["name"] == "cursor") .expect("continuation query parameter is rendered"); assert_eq!( cursor_parameter["schema"]["maxLength"], @@ -7798,10 +7798,10 @@ fn snapshot_operation_is_authenticated_stored_field_history_contract() { "$filter", "$orderby", "$select", - "$skiptoken", - "$top", "Accept", "accessProfile", + "cursor", + "limit", "snapshot", "traceparent", "validAt", diff --git a/crates/registry-breg/tests/data_operations.rs b/crates/registry-breg/tests/data_operations.rs index 3b217e3d10..68f2c07ebb 100644 --- a/crates/registry-breg/tests/data_operations.rs +++ b/crates/registry-breg/tests/data_operations.rs @@ -441,7 +441,22 @@ fn data_lifecycle_uses_exact_compiled_api_names() { PROFILE, retired_patch, ), - Err(DataError::InvalidItem) + Err(DataError::RetiredRecordIdentifier) + ); + + let mixed_patch = b"{\"operation\":\"patch\",\"recordId\":\"018f06d6-0248-7c7f-8a7e-df9dfbd83d2c\",\"recordIdentifier\":\"retired-value-canary\",\"ifMatch\":\"\\\"breg-revision\\\"\",\"patch\":[{\"op\":\"replace\",\"path\":\"/data/publicCode\",\"value\":\"BB\"}]}\n"; + let failure = DataImportPlan::from_jsonl( + ®istry, + ENTITY, + DataImportOperation::Patch, + PROFILE, + mixed_patch, + ) + .expect_err("a retired key is refused even when the current key is supplied"); + assert_eq!(failure, DataError::RetiredRecordIdentifier); + assert_eq!( + failure.to_string(), + "replace recordIdentifier with recordId in the patch item" ); let export = DataExportPlan::from_compiled(®istry, ENTITY, PROFILE, ["publicCode"]) diff --git a/crates/registry-breg/tests/fixtures/historical-action-plan-module/PROVENANCE.md b/crates/registry-breg/tests/fixtures/historical-action-plan-module/PROVENANCE.md new file mode 100644 index 0000000000..686eeec435 --- /dev/null +++ b/crates/registry-breg/tests/fixtures/historical-action-plan-module/PROVENANCE.md @@ -0,0 +1,9 @@ +# Module whose digest a released v0.49 lock recorded + +The `actionPlans` and `actions` of the Coordinator applications registry +example, as a module, with its Rhai asset kept byte for byte. The released +v0.49 `bregctl project lock` recorded the module digest that +`actions_functions_map.rs` pins, over the same module written with the +historical `functions`, `type: function` and `function` spellings. The copy +keeps the pin independent of later edits to the example. Do not edit these +files: a change breaks the pinned digest. diff --git a/crates/registry-breg/tests/fixtures/historical-action-plan-module/module.yaml b/crates/registry-breg/tests/fixtures/historical-action-plan-module/module.yaml new file mode 100644 index 0000000000..5d415f9bd1 --- /dev/null +++ b/crates/registry-breg/tests/fixtures/historical-action-plan-module/module.yaml @@ -0,0 +1,27 @@ +apiVersion: id.registrystack.org/formats/breg/module/v1alpha1 +kind: BRegModule +id: extension +version: 0.1.0 +actionPlans: + request-information-plan: + runtime: rhai + source: scripts/request-information.rhai + entrypoint: plan + abi: registry.action-plan/v1 +actions: + request-information: + execution: {mode: immediate} + inputs: + - {id: application, apiName: applicationId, type: reference, target: application, required: true, classification: internal} + - {id: reason, type: string, required: true, minimumLength: 1, maximumLength: 256, classification: internal} + plan: + type: scripted + actionPlan: request-information-plan + inputs: [application, reason] + refusals: + - {code: invalid-reason, label: The information request requires a nonblank reason.} + writes: + - id: application + target: {fromInput: application} + operation: patch + fields: [information-requested, reason] diff --git a/crates/registry-breg/tests/fixtures/historical-action-plan-module/scripts/request-information.rhai b/crates/registry-breg/tests/fixtures/historical-action-plan-module/scripts/request-information.rhai new file mode 100644 index 0000000000..7f2a08c5dd --- /dev/null +++ b/crates/registry-breg/tests/fixtures/historical-action-plan-module/scripts/request-information.rhai @@ -0,0 +1,8 @@ +fn plan(ctx) { + let reason = ctx.inputs.reason; + reason.trim(); + if reason == "" { + return #{refusal: #{code: "invalid-reason", field: "reason"}}; + } + #{effects: [#{id: "application", set: #{"information-requested": true, reason: reason}}]} +} diff --git a/crates/registry-breg/tests/http_auth.rs b/crates/registry-breg/tests/http_auth.rs index a16bf56ee4..40c7add613 100644 --- a/crates/registry-breg/tests/http_auth.rs +++ b/crates/registry-breg/tests/http_auth.rs @@ -357,17 +357,33 @@ impl Harness { } async fn with_registry(registry: Arc) -> Self { + Self::with_registry_and_posture(registry, registry_platform_config::Posture::Production) + .await + } + + async fn with_registry_and_posture( + registry: Arc, + posture: registry_platform_config::Posture, + ) -> Self { let idp = MockIdp::start().await; let authenticator = authenticator(®istry, &idp, authority_claims()) .expect("authentication config is valid"); let records = Arc::new(RecordingReadService::default()); - let service = Arc::new(HttpService::new( - Arc::clone(®istry), - read_identity(), - records.clone(), - Arc::new(Ready), - cursor_codec(), - )); + let service = Arc::new( + HttpService::new( + Arc::clone(®istry), + read_identity(), + records.clone(), + Arc::new(Ready), + cursor_codec(), + ) + .with_declared_posture_for_test( + registry_platform_config::DeclaredPosture { + posture, + source: registry_platform_config::PostureSource::Default, + }, + ), + ); let authenticator = Arc::new(authenticator); let app = authenticated_router(service, Arc::clone(&authenticator)); Self { @@ -3191,7 +3207,11 @@ async fn an_ambiguous_route_answers_400_with_the_admitted_profile_ids() { .entries .iter() .all(|entry| entry.default_profile_id.is_none())); - let harness = Harness::with_registry(registry).await; + let harness = Harness::with_registry_and_posture( + registry, + registry_platform_config::Posture::Development, + ) + .await; let token = harness.valid_token(); let path = "/v1/records/cases/00000000-0000-4000-8000-000000000001"; let response = harness.send(path, &[bearer(&token)], None).await; @@ -3205,6 +3225,19 @@ async fn an_ambiguous_route_answers_400_with_the_admitted_profile_ids() { "ambiguity is not counted as an authority refusal" ); let body = body_json(response).await; + let document: Value = serde_json::from_str(include_str!( + "../../../products/breg/generated/facility/generated/openapi.json" + )) + .unwrap(); + let problem = jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile(&document["components"]["schemas"]["Problem"]) + .unwrap(); + assert!(body.get("failedCheck").is_none()); + assert!(problem.is_valid(&body), "{body}"); + let mut incorrectly_tagged = body.clone(); + incorrectly_tagged["failedCheck"] = json!("access-profile"); + assert!(!problem.is_valid(&incorrectly_tagged)); assert_eq!(body["code"], "access-profile.ambiguous"); assert_eq!( body["type"], diff --git a/crates/registry-breg/tests/http_read_only.rs b/crates/registry-breg/tests/http_read_only.rs index f57820be88..3121a4e34f 100644 --- a/crates/registry-breg/tests/http_read_only.rs +++ b/crates/registry-breg/tests/http_read_only.rs @@ -695,14 +695,7 @@ async fn snapshot_route_requires_its_own_current_authority_and_never_calls_live_ assert_eq!( operation["request"]["queryParameters"], json!([ - "$count", - "$filter", - "$orderby", - "$select", - "$skiptoken", - "$top", - "snapshot", - "validAt" + "$count", "$filter", "$orderby", "$select", "cursor", "limit", "snapshot", "validAt" ]) ); for (suffix, claims) in [ @@ -2054,15 +2047,19 @@ async fn derived_fields_are_discoverable_as_read_only_response_properties() { async fn continuation_requests_refuse_query_overrides_before_record_io() { let harness = Harness::new(true); let before = harness.records.calls(); - let response = harness - .send( - Method::GET, - "/v1/records/cases?$skiptoken=opaque-token&$select=label", - Some(public_claims()), - ) - .await; - assert_eq!(response.status(), StatusCode::BAD_REQUEST); - assert_eq!(body_json(response).await["code"], "query.invalid"); + for parameter in ["cursor", "$skiptoken"] { + let response = harness + .send( + Method::GET, + &format!("/v1/records/cases?{parameter}=opaque-token&$select=label"), + Some(public_claims()), + ) + .await; + assert_eq!(response.status(), StatusCode::BAD_REQUEST); + let problem = body_json(response).await; + assert_eq!(problem["code"], "query.invalid"); + assert_eq!(problem["fieldPath"], parameter); + } assert_eq!(harness.records.calls(), before); } @@ -2107,7 +2104,6 @@ async fn legacy_query_keys_are_not_accepted() { "/v1/records/cases?filter=label:equals:Visible", "/v1/records/cases?sort=label", "/v1/records/cases?pageSize=25", - "/v1/records/cases?cursor=opaque-token", ] { let response = harness.send(Method::GET, uri, Some(public_claims())).await; assert_eq!(response.status(), StatusCode::BAD_REQUEST, "{uri}"); @@ -2122,34 +2118,34 @@ fn retired_proposal_history_query_name_is_not_advertised() { } #[tokio::test] -async fn record_list_limit_refusal_names_limit_and_guides_top() { +async fn record_list_accepts_limit_and_top_and_refuses_ambiguous_sizes() { let harness = Harness::new(true); - let response = harness - .send( - Method::GET, - "/v1/records/cases?limit=1", - Some(public_claims()), - ) - .await; - assert_eq!(response.status(), StatusCode::BAD_REQUEST); - let problem = body_json(response).await; - assert_eq!(problem["code"], "query.invalid", "{problem}"); - assert_eq!(problem["fieldPath"], "limit", "{problem}"); - assert!( - problem["detail"].as_str().unwrap().contains("`$top`"), - "{problem}" - ); + for query in ["limit=0", "$top=1&limit=1"] { + let response = harness + .send( + Method::GET, + &format!("/v1/records/cases?{query}"), + Some(public_claims()), + ) + .await; + assert_eq!(response.status(), StatusCode::BAD_REQUEST, "{query}"); + let problem = body_json(response).await; + assert_eq!(problem["code"], "query.invalid", "{problem}"); + assert_eq!(problem["fieldPath"], "limit", "{problem}"); + } assert_eq!(harness.records.calls(), 0); - let accepted = harness - .send( - Method::GET, - "/v1/records/cases?$top=1", - Some(public_claims()), - ) - .await; - assert_eq!(accepted.status(), StatusCode::OK); - assert_eq!(harness.records.last_request().maximum_records, 2); + for query in ["limit=1", "$top=1"] { + let accepted = harness + .send( + Method::GET, + &format!("/v1/records/cases?{query}"), + Some(public_claims()), + ) + .await; + assert_eq!(accepted.status(), StatusCode::OK, "{query}"); + assert_eq!(harness.records.last_request().maximum_records, 2); + } } #[tokio::test] @@ -2454,12 +2450,14 @@ async fn continuation_keeps_the_criteria_and_cannot_drop_them() { let first_query = request_query(&first_request); let token = required_filters_cursor(first_query); - let next = required_filters_list(&harness, &format!("&$skiptoken={token}")).await; - assert_eq!(next.status(), StatusCode::OK); - let next_request = harness.records.last_request(); - let next_query = request_query(&next_request); - assert!(next_query.continuation.is_some()); - assert_eq!(single_filter_predicate(next_query).field_id, "label"); + for parameter in ["cursor", "$skiptoken"] { + let next = required_filters_list(&harness, &format!("&{parameter}={token}")).await; + assert_eq!(next.status(), StatusCode::OK, "{parameter}"); + let next_request = harness.records.last_request(); + let next_query = request_query(&next_request); + assert!(next_query.continuation.is_some()); + assert_eq!(single_filter_predicate(next_query).field_id, "label"); + } // The same cursor without its filter no longer matches its own binding. let mut stripped = serde_json::to_value(&first_query.cursor_query).expect("query serializes"); @@ -3362,10 +3360,10 @@ async fn discovery_surfaces_share_caller_filtered_routes_and_fields() { "$filter", "$orderby", "$select", - "$skiptoken", - "$top", "Accept", "accessProfile", + "cursor", + "limit", "traceparent", ] ); @@ -3394,8 +3392,8 @@ async fn discovery_surfaces_share_caller_filtered_routes_and_fields() { .as_array() .expect("query parameters are rendered") .iter() - .find(|parameter| parameter["name"] == "$top") - .expect("$top parameter is rendered"); + .find(|parameter| parameter["name"] == "limit") + .expect("limit parameter is rendered"); assert_eq!(page_size["required"], false); assert_eq!( page_size["schema"], @@ -3902,7 +3900,7 @@ async fn real_router_serves_only_authorized_explicit_revision_routes() { let extra_query = send_to( &app, Method::GET, - &format!("{list_path}?accessProfile=caseworker&$top=1"), + &format!("{list_path}?accessProfile=caseworker&limit=1"), Some(caseworker_claims("case-management")), ) .await; @@ -3911,7 +3909,7 @@ async fn real_router_serves_only_authorized_explicit_revision_routes() { assert_eq!(extra_query["code"], "query.invalid"); // A revision route takes no read query option; the first one sent, in a // fixed order, is named. - assert_eq!(extra_query["fieldPath"], "$top"); + assert_eq!(extra_query["fieldPath"], "limit"); assert_eq!(revisions.calls.load(Ordering::SeqCst), 0); // A query string that is not `name=value` pairs has no single parameter @@ -4522,14 +4520,7 @@ async fn workspace_metadata_keeps_route_fields_selectors_and_query_capabilities_ ); assert_eq!( path["request"]["queryParameters"], - json!([ - "$count", - "$filter", - "$orderby", - "$select", - "$skiptoken", - "$top" - ]) + json!(["$count", "$filter", "$orderby", "$select", "cursor", "limit"]) ); assert_eq!( path["query"]["maximumPageSize"], diff --git a/crates/registry-breg/tests/immediate_action_compiler.rs b/crates/registry-breg/tests/immediate_action_compiler.rs index 4bd281d5a1..83b2a00891 100644 --- a/crates/registry-breg/tests/immediate_action_compiler.rs +++ b/crates/registry-breg/tests/immediate_action_compiler.rs @@ -99,8 +99,8 @@ fn handler_response_schema_accepts_omitted_slots_across_overlapping_grant_result }) }) .collect::>(); - source["functions"] = json!({"contact-plan": {"runtime":"rhai","source":"scripts/handler.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}); - source["actions"]["register-household-contact"]["plan"] = json!({"type":"function","function":"contact-plan","inputs":["household","person-code","legal-name"],"writes":writes}); + source["actionPlans"] = json!({"contact-plan": {"runtime":"rhai","source":"scripts/handler.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}); + source["actions"]["register-household-contact"]["plan"] = json!({"type":"scripted","actionPlan":"contact-plan","inputs":["household","person-code","legal-name"],"writes":writes}); let mut limited = source["accessProfiles"]["contact-registrar"].clone(); limited["default"] = json!(false); @@ -179,9 +179,9 @@ fn the_retired_v2_abi_is_refused_and_wasm_needs_a_wasm_capable_build() { bytes: br#"fn handle(ctx) { #{effects:[]} }"#.to_vec(), }] }; - source["functions"] = + source["actionPlans"] = json!({"contact-plan": {"runtime":kind,"source":path,"entrypoint":"handle","abi":abi}}); - source["actions"]["register-household-contact"]["plan"] = json!({"type":"function","function":"contact-plan","inputs":["household","person-code","legal-name"],"writes":writes}); + source["actions"]["register-household-contact"]["plan"] = json!({"type":"scripted","actionPlan":"contact-plan","inputs":["household","person-code","legal-name"],"writes":writes}); let project = parse_project_json(&serde_json::to_vec(&source).unwrap()).unwrap(); compile_project_with_assets(&project, &[], &assets, CompileProfile::Authoring) }; @@ -201,7 +201,7 @@ fn the_retired_v2_abi_is_refused_and_wasm_needs_a_wasm_capable_build() { .into_iter() .find(|diagnostic| diagnostic.code == "breg.action.handler-wasm-build-unsupported") .expect("input-only WASM handlers name the missing build capability"); - assert_eq!(not_admitted.path, "functions[id=contact-plan].runtime"); + assert_eq!(not_admitted.path, "actionPlans[id=contact-plan].runtime"); } #[cfg(feature = "wasm")] { @@ -212,7 +212,7 @@ fn the_retired_v2_abi_is_refused_and_wasm_needs_a_wasm_capable_build() { .into_iter() .find(|diagnostic| diagnostic.code == "breg.action.handler-module-asset-missing") .expect("an admitted WASM backend looks the declared module up"); - assert_eq!(missing_asset.path, "functions[id=contact-plan].source"); + assert_eq!(missing_asset.path, "actionPlans[id=contact-plan].source"); } // One handler ABI is accepted. The identifier that used to select the @@ -227,7 +227,7 @@ fn the_retired_v2_abi_is_refused_and_wasm_needs_a_wasm_capable_build() { .iter() .find(|diagnostic| diagnostic.code == "breg.action.handler-abi-invalid") .unwrap_or_else(|| panic!("{kind}: expected the ABI refusal, got {refused:?}")); - assert_eq!(unsupported_abi.path, "functions[id=contact-plan].abi"); + assert_eq!(unsupported_abi.path, "actionPlans[id=contact-plan].abi"); assert!(unsupported_abi.message.contains(ACTION_PLAN_ABI_V1)); assert!(refused .iter() @@ -1066,8 +1066,8 @@ fn current_revision_refuses_a_function_plan_that_writes_an_existing_record() { }) }) .collect::>(); - source["functions"] = json!({"contact-plan": {"runtime":"rhai","source":"scripts/handler.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}); - source["actions"]["register-household-contact"]["plan"] = json!({"type":"function","function":"contact-plan","inputs":["household","person-code","legal-name"],"writes":writes}); + source["actionPlans"] = json!({"contact-plan": {"runtime":"rhai","source":"scripts/handler.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}); + source["actions"]["register-household-contact"]["plan"] = json!({"type":"scripted","actionPlan":"contact-plan","inputs":["household","person-code","legal-name"],"writes":writes}); source["actions"]["register-household-contact"]["execution"] = json!({"mode":"immediate","concurrency":"current-revision"}); let project = parse_project_json(&serde_json::to_vec(&source).unwrap()).unwrap(); diff --git a/crates/registry-breg/tests/immediate_action_handler.rs b/crates/registry-breg/tests/immediate_action_handler.rs index d9c0bcdd10..fc4ab532ab 100644 --- a/crates/registry-breg/tests/immediate_action_handler.rs +++ b/crates/registry-breg/tests/immediate_action_handler.rs @@ -14,7 +14,7 @@ use std::time::{Duration, Instant}; use time::macros::date; fn project() -> Value { - json!({"datasets":{"test-dataset": {}},"functions":{"register-person-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}, + json!({"datasets":{"test-dataset": {}},"actionPlans":{"register-person-plan": {"runtime":"rhai","source":"handlers/register.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}, "apiVersion":"id.registrystack.org/formats/breg/project/v1alpha1", "kind":"BRegProject", "project":{"id":"action-handler-test","version":"1","defaultLanguage":"en","canonicalBaseIri":"https://example.test"}, "recordTypes":{"person": {"primaryDataset":"test-dataset","route":"people","mutationMode":"mutable","fields":[ @@ -25,7 +25,7 @@ fn project() -> Value { {"id":"given-name","apiName":"givenName","type":"string","maximumLength":80,"required":true,"classification":"restricted"}, {"id":"family-name","type":"string","maximumLength":80,"classification":"restricted"}, {"id":"person","type":"reference","target":"person","required":true,"classification":"restricted"} - ],"plan":{"type":"function","function":"register-person-plan","inputs":["given-name", "family-name", "person"],"writes":[ + ],"plan":{"type":"scripted","actionPlan":"register-person-plan","inputs":["given-name", "family-name", "person"],"writes":[ {"id":"person","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]}, {"id":"friend","target":{"recordType":"person"},"operation":"create","fields":["name","friend"]}, {"id":"existing","target":{"fromInput":"person"},"operation":"patch","fields":["name","friend"]} @@ -722,7 +722,7 @@ fn calls_by_name_to_functions_the_plan_engine_leaves_out_are_refused_at_compile( let diagnostic = failure .diagnostics() .iter() - .find(|diagnostic| diagnostic.code == "breg.action.plan-function-unavailable") + .find(|diagnostic| diagnostic.code == "breg.action.plan-unavailable") .unwrap_or_else(|| panic!("{script}: {failure:?}")); assert!( diagnostic.message.contains(&format!("`{function}`")), @@ -730,7 +730,7 @@ fn calls_by_name_to_functions_the_plan_engine_leaves_out_are_refused_at_compile( ); assert!(diagnostic.message.contains("line"), "{script}"); assert_eq!( - diagnostic.path, "functions[id=register-person-plan].source", + diagnostic.path, "actionPlans[id=register-person-plan].source", "{script}" ); } @@ -806,7 +806,7 @@ fn handler_compiler_rejects_inputs_outside_the_scalar_abi() { // The same declared input is valid for an action with fixed effects. let mut fixed = project(); fixed["actions"]["register-person"]["plan"] = json!({"type":"fixed","effects":[]}); - fixed.as_object_mut().unwrap().remove("functions"); + fixed.as_object_mut().unwrap().remove("actionPlans"); fixed["actions"]["register-person"]["inputs"] = json!([ input, {"id":"name","type":"string","maximumLength":160,"required":true,"classification":"restricted"} @@ -1010,11 +1010,11 @@ fn handler_rejects_ambiguous_sources_and_binds_governed_semantics() { let action = compile(project(), &valid).unwrap(); for (pointer, value) in [ ( - "/functions/register-person-plan/abi", + "/actionPlans/register-person-plan/abi", json!("registry.action-handler/v2"), ), ( - "/functions/register-person-plan/source", + "/actionPlans/register-person-plan/source", json!("../outside.rhai"), ), ("/actions/register-person/plan/writes/0/id", json!("friend")), @@ -1276,9 +1276,9 @@ fn handler_source_diagnostics_distinguish_assets_parse_positions_and_entrypoints assert_eq!( diagnostics[0].path, if code == "breg.action.handler-entrypoint" { - "functions[id=register-person-plan].entrypoint" + "actionPlans[id=register-person-plan].entrypoint" } else { - "functions[id=register-person-plan].source" + "actionPlans[id=register-person-plan].source" } ); assert!(!diagnostics[0].message.contains("private_source_canary")); @@ -1397,9 +1397,9 @@ fn handler_package_captures_exact_project_and_module_script_origins() { let action = source["actions"].take(); source.as_object_mut().unwrap().remove("actions"); - let functions = source["functions"].take(); - source.as_object_mut().unwrap().remove("functions"); - let module_value = json!({"apiVersion":"id.registrystack.org/formats/breg/module/v1alpha1","kind":"BRegModule", "id":"actions","version":"1","actions":action,"functions":functions}); + let functions = source["actionPlans"].take(); + source.as_object_mut().unwrap().remove("actionPlans"); + let module_value = json!({"apiVersion":"id.registrystack.org/formats/breg/module/v1alpha1","kind":"BRegModule", "id":"actions","version":"1","actions":action,"actionPlans":functions}); let module = registry_breg::contract::parse_module_json(&serde_json::to_vec(&module_value).unwrap()) .unwrap(); @@ -1429,7 +1429,7 @@ fn handler_package_captures_exact_project_and_module_script_origins() { fn fixed_action_fingerprints_omit_handler_and_bind_native_patterns() { let mut source = project(); source["actions"]["register-person"]["plan"] = json!({"type":"fixed","effects":[]}); - source.as_object_mut().unwrap().remove("functions"); + source.as_object_mut().unwrap().remove("actionPlans"); source["actions"]["register-person"]["inputs"][0]["maximumLength"] = json!(160); source["actions"]["register-person"]["plan"]["effects"] = json!([{"id":"person","target":{"recordType":"person"},"operation":"create","set":{"name":{"fromInput":"given-name"}}}]); source["accessProfiles"]["registrar"]["permissions"]["actions"][0]["results"] = diff --git a/crates/registry-breg/tests/native_inspection_inventory.rs b/crates/registry-breg/tests/native_inspection_inventory.rs index 616ae5ed54..9d1f18f02a 100644 --- a/crates/registry-breg/tests/native_inspection_inventory.rs +++ b/crates/registry-breg/tests/native_inspection_inventory.rs @@ -330,21 +330,21 @@ fn function_ceilings_fixed_clears_and_literal_null_remain_distinct() { let registry = compile(&source); let model = inspect_registry(®istry); let function = definition(&model["actions"], "correct-address"); - assert_eq!(function["plan"]["type"], "function"); + assert_eq!(function["plan"]["type"], "scripted"); assert!(function["plan"].get("effects").is_none()); assert!(function["plan"].get("order").is_none()); assert_eq!( - function["plan"]["function"]["source"], + function["plan"]["actionPlan"]["source"], "plans/correct-address.rhai" ); - assert!(function["plan"]["function"]["sourceModule"].is_null()); + assert!(function["plan"]["actionPlan"]["sourceModule"].is_null()); assert_eq!( - function["plan"]["function"]["writes"][0]["fields"], + function["plan"]["actionPlan"]["writes"][0]["fields"], json!(["address-line", "city", "postal-code"]) ); let fixed = definition(&model["actions"], "deactivate-facility"); assert_eq!(fixed["plan"]["type"], "fixed"); - assert!(fixed["plan"].get("function").is_none()); + assert!(fixed["plan"].get("actionPlan").is_none()); assert_eq!( fixed["plan"]["effects"][0]["mutations"][0], json!({"kind":"clear", "field":"city"}) @@ -409,7 +409,7 @@ fn function_ceilings_fixed_clears_and_literal_null_remain_distinct() { fn function_capability_vocabulary_keeps_action_explanations_schema_valid() { let mut source = source(); let canary = "private-capability-canary"; - source["functions"]["correct-address-plan"]["capabilities"] = json!([canary]); + source["actionPlans"]["correct-address-plan"]["capabilities"] = json!([canary]); action_mut(&mut source, "correct-address")["plan"]["capabilities"] = json!([canary]); let bytes = serde_json::to_vec(&source).unwrap(); match read_project_yaml("registry.json", &bytes) { @@ -445,12 +445,12 @@ fn function_inspection_retains_relative_asset_and_module_identity() { let module = parse_module_json( &serde_json::to_vec(&json!({ "apiVersion":"id.registrystack.org/formats/breg/module/v1alpha1", "kind":"BRegModule", - "id":"address-functions", "version":"1", "functions":source["functions"] + "id":"address-functions", "version":"1", "actionPlans":source["actionPlans"] })) .unwrap(), ) .unwrap(); - source["functions"] = json!({}); + source["actionPlans"] = json!({}); let assets = [ModuleAssetSource { module: Some("address-functions".into()), path: "plans/correct-address.rhai".into(), @@ -470,7 +470,7 @@ fn function_inspection_retains_relative_asset_and_module_identity() { .iter() .find(|action| action.id == "correct-address") .unwrap(); - let function = &inspect_action(action)["plan"]["function"]; + let function = &inspect_action(action)["plan"]["actionPlan"]; assert_eq!(function["source"], "plans/correct-address.rhai"); assert_eq!(function["sourceModule"], "address-functions"); } diff --git a/crates/registry-breg/tests/native_plan_security.rs b/crates/registry-breg/tests/native_plan_security.rs index 06aff724ff..fac5d30fa6 100644 --- a/crates/registry-breg/tests/native_plan_security.rs +++ b/crates/registry-breg/tests/native_plan_security.rs @@ -13,11 +13,11 @@ fn source() -> Value { "datasets":{"test": {}}, "recordTypes":{"item": {"primaryDataset":"test","route":"items","mutationMode":"mutable", "fields":[{"id":"label","type":"string","maximumLength":64,"required":true,"classification":"internal"}]}}, - "functions":{"calculate": {"runtime":"rhai","source":"plans/calculate.rhai","entrypoint":"calculate","abi":"registry.action-plan/v1"}}, + "actionPlans":{"calculate": {"runtime":"rhai","source":"plans/calculate.rhai","entrypoint":"calculate","abi":"registry.action-plan/v1"}}, "actions":{"register-item": {"execution":{"mode":"immediate"}, "inputs":[{"id":"label","type":"string","maximumLength":64,"required":true,"classification":"internal"}, {"id":"unbound","type":"string","maximumLength":64,"classification":"restricted"}], - "plan":{"type":"function","function":"calculate","inputs":["label"], + "plan":{"type":"scripted","actionPlan":"calculate","inputs":["label"], "writes":[{"id":"item","target":{"recordType":"item"},"operation":"create","fields":["label"]}]}}}, "accessProfiles":{"registrar": {"default":true,"principalClaim":"registry_principal","requiredScopes":"unrestricted", "permissions":{"actions":[{"action":"register-item","operations":["invoke"],"targets":[{"recordType":"item","rowBoundaries":"unrestricted"}],"results":["item"]}]}}}}) @@ -92,7 +92,7 @@ fn assert_refused_at_compile(call: &str) { failure .diagnostics() .iter() - .any(|diagnostic| diagnostic.code == "breg.action.plan-function-unavailable"), + .any(|diagnostic| diagnostic.code == "breg.action.plan-unavailable"), "{call}: {failure:?}" ); } diff --git a/crates/registry-breg/tests/native_source_conventions.rs b/crates/registry-breg/tests/native_source_conventions.rs index d31ab89266..8057fd8d4d 100644 --- a/crates/registry-breg/tests/native_source_conventions.rs +++ b/crates/registry-breg/tests/native_source_conventions.rs @@ -271,7 +271,7 @@ fn locally_defined_ids_and_type_keys_are_refused_at_their_source() { "/actions/correct-address/execution/proposal/reviewContext/id", "config.invalid-value", ); - for collection in ["functions", "actions", "datasets", "reviewAuthorities"] { + for collection in ["actionPlans", "actions", "datasets", "reviewAuthorities"] { let mut source = facility(); let entries = source[collection].as_object_mut().unwrap(); let (_, entry) = entries @@ -1036,7 +1036,7 @@ fn compiler_refuses_lookalike_ids_across_project_and_module_files() { fn compiler_warns_for_duplicate_labels_across_modules_and_extensions() { let mut project_source = facility(); project_source["modules"] = json!({"local-module": {"version":"0.1.0"}}); - project_source["functions"] = json!({}); + project_source["actionPlans"] = json!({}); project_source["actions"] = json!({}); { let profiles = project_source["accessProfiles"].as_object_mut().unwrap(); @@ -1137,9 +1137,9 @@ fn compiler_scopes_refusal_labels_by_action_across_project_and_module() { .unwrap() .value; - let function = project_source["functions"]["correct-address-plan"].clone(); + let function = project_source["actionPlans"]["correct-address-plan"].clone(); let mut action = project_source["actions"]["correct-address"].clone(); - action["plan"]["function"] = json!("module-address-plan"); + action["plan"]["actionPlan"] = json!("module-address-plan"); action["display"]["label"] = json!("Module address correction"); let module_source = json!({ "apiVersion":"id.registrystack.org/formats/breg/module/v1alpha1", @@ -1147,7 +1147,7 @@ fn compiler_scopes_refusal_labels_by_action_across_project_and_module() { "id":"local-module", "version":"0.1.0", "valueTypes":project_source["valueTypes"].clone(), - "functions":{"module-address-plan": function}, + "actionPlans":{"module-address-plan": function}, "actions":{"module-correct-address": action} }); let module = read_module_yaml("module.yaml", &bytes(&module_source)) @@ -1181,9 +1181,9 @@ fn compiler_scopes_refusal_labels_by_action_across_project_and_module() { #[test] fn function_capability_duplicates_are_not_collapsed() { - let path = "/functions/correct-address-plan/capabilities"; + let path = "/actionPlans/correct-address-plan/capabilities"; let mut source = facility(); - source["functions"]["correct-address-plan"]["capabilities"] = json!(["evidence", "evidence"]); + source["actionPlans"]["correct-address-plan"]["capabilities"] = json!(["evidence", "evidence"]); refusal(&source, &format!("{path}/1"), "config.duplicate-item"); let yaml = bytes(&source); let text = std::str::from_utf8(&yaml).unwrap(); @@ -1214,7 +1214,7 @@ fn function_capability_duplicates_are_not_collapsed() { #[test] fn nested_union_refusals_keep_the_member_path_line_and_column() { for path in [ - "/functions/correct-address-plan", + "/actionPlans/correct-address-plan", "/actions/register-facility/execution", "/actions/correct-address/plan", "/actions/deactivate-facility/execution/proposal/review", @@ -1262,10 +1262,10 @@ fn resource_bounds_and_signed_comparison_thresholds_have_distinct_semantics() { ] { for value in values { let mut source = facility(); - source["functions"]["correct-address-plan"]["limits"] = json!({key:value}); + source["actionPlans"]["correct-address-plan"]["limits"] = json!({key:value}); refusal( &source, - &format!("/functions/correct-address-plan/limits/{key}"), + &format!("/actionPlans/correct-address-plan/limits/{key}"), "config.out-of-range", ); } @@ -1329,12 +1329,12 @@ fn schema_and_reader_agree_on_bounds_native_tags_and_public_context_names() { ("maximumOutputBytes", 2_097_152), ] { for value in [1, maximum] { - source["functions"]["correct-address-plan"]["limits"] = json!({key:value}); + source["actionPlans"]["correct-address-plan"]["limits"] = json!({key:value}); assert!(schema.is_valid(&source)); read_project_yaml("registry.yaml", &bytes(&source)).unwrap(); } for value in [0, maximum + 1] { - source["functions"]["correct-address-plan"]["limits"] = json!({key:value}); + source["actionPlans"]["correct-address-plan"]["limits"] = json!({key:value}); assert!(!schema.is_valid(&source)); } } diff --git a/crates/registry-breg/tests/ordered_plan_contract.rs b/crates/registry-breg/tests/ordered_plan_contract.rs index ec46c737c8..d834cd4936 100644 --- a/crates/registry-breg/tests/ordered_plan_contract.rs +++ b/crates/registry-breg/tests/ordered_plan_contract.rs @@ -71,8 +71,8 @@ fn production_compiler_refuses_forward_and_cyclic_references_and_after() { #[test] fn production_function_evaluator_preserves_order_and_refuses_forward_refs() { let mut value = project(); - value["functions"] = json!({"pair-plan": {"runtime":"rhai","source":"plans/plan.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}); - value["actions"]["create-pair"]["plan"] = json!({"type":"function","function":"pair-plan","inputs":["name"],"writes":[ + value["actionPlans"] = json!({"pair-plan": {"runtime":"rhai","source":"plans/plan.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":[]}}); + value["actions"]["create-pair"]["plan"] = json!({"type":"scripted","actionPlan":"pair-plan","inputs":["name"],"writes":[ {"id":"z-result","target":{"recordType":"entry"},"operation":"create","fields":["name","parent"]}, {"id":"a-result","target":{"recordType":"entry"},"operation":"create","fields":["name","parent"]}]}); let script = r#"fn plan(ctx) { #{effects:[#{id:"z-result",set:#{name:ctx.inputs.name}},#{id:"a-result",set:#{name:ctx.inputs.name}}]} }"#; @@ -108,7 +108,7 @@ fn modules_share_native_record_types_value_types_and_function_asset_provenance() let mut value = project(); value["recordTypes"] = json!({}); value["modules"] = json!({"records": {"version":"1"}, "extensions": {"version":"1"}}); - value["actions"]["create-pair"]["plan"] = json!({"type":"function","function":"module-plan","inputs":["name"],"writes":[ + value["actions"]["create-pair"]["plan"] = json!({"type":"scripted","actionPlan":"module-plan","inputs":["name"],"writes":[ {"id":"z-result","target":{"recordType":"entry"},"operation":"create","fields":["name"]}, {"id":"a-result","target":{"recordType":"entry"},"operation":"create","fields":["name"]} ]}); @@ -124,7 +124,7 @@ fn modules_share_native_record_types_value_types_and_function_asset_provenance() "apiVersion":"id.registrystack.org/formats/breg/module/v1alpha1","kind":"BRegModule","id":"records","version":"1", "valueTypes":{"name":{"type":"string","maximumLength":32}}, "recordTypes":{"entry": {"route":"entries","primaryDataset":"records","mutationMode":"mutable","fields":[{"id":"name","typeRef":"name","required":true,"classification":"internal"}]}}, - "functions":{"module-plan": {"runtime":"rhai","source":"plans/plan.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":["evidence"]}} + "actionPlans":{"module-plan": {"runtime":"rhai","source":"plans/plan.rhai","entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":["evidence"]}} })).unwrap()).unwrap(); let extensions = parse_module_json(&serde_json::to_vec(&json!({ "apiVersion":"id.registrystack.org/formats/breg/module/v1alpha1","kind":"BRegModule","id":"extensions","version":"1","dependencies":["records"], diff --git a/crates/registry-breg/tests/postgres_client_capabilities.rs b/crates/registry-breg/tests/postgres_client_capabilities.rs index 181098ffa8..b2e39d203f 100644 --- a/crates/registry-breg/tests/postgres_client_capabilities.rs +++ b/crates/registry-breg/tests/postgres_client_capabilities.rs @@ -220,7 +220,7 @@ async fn sdk_atomic_corrections_snapshots_revisions_tombstone_and_recovery_use_r &BRegSnapshotListRequest::default() .orderby("validFrom") .unwrap() - .top(1) + .limit(1) .unwrap(), ) .await diff --git a/crates/registry-breg/tests/postgres_client_relationships.rs b/crates/registry-breg/tests/postgres_client_relationships.rs index e07e559127..e4e32c4691 100644 --- a/crates/registry-breg/tests/postgres_client_relationships.rs +++ b/crates/registry-breg/tests/postgres_client_relationships.rs @@ -116,7 +116,7 @@ async fn sdk_relationship_continuation_keeps_source_path_authority_and_target_pr .orderby("personCode") .unwrap() .count(true) - .top(1) + .limit(1) .unwrap(); let mut page = client .list_relationship_records( diff --git a/crates/registry-breg/tests/postgres_hook_changes.rs b/crates/registry-breg/tests/postgres_hook_changes.rs index e0b899aa60..3c8e4a11c4 100644 --- a/crates/registry-breg/tests/postgres_hook_changes.rs +++ b/crates/registry-breg/tests/postgres_hook_changes.rs @@ -162,7 +162,7 @@ fn hook_project_json( ], "hooks":{followup_hooks} }}}}, - "functions":{{"open-followup-plan":{{"runtime":"rhai","source":"scripts/open-followup.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}}}, + "actionPlans":{{"open-followup-plan":{{"runtime":"rhai","source":"scripts/open-followup.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}}}, "actions":{{"open-followup":{{ "execution":{{"mode":"immediate"}}, "inputs":[ @@ -170,7 +170,7 @@ fn hook_project_json( {{"id":"origin","apiName":"origin","type":"string","maximumLength":64,"required":true,"classification":"internal"}} ], "plan":{{ - "type":"function","function":"open-followup-plan","inputs":["jurisdiction","origin"], + "type":"scripted","actionPlan":"open-followup-plan","inputs":["jurisdiction","origin"], "writes":[{{"id":"followup","target":{{"recordType":"followup"}},"operation":"create","fields":["jurisdiction","label","origin"]}}{extra_writes}] }} }}}}, diff --git a/crates/registry-breg/tests/postgres_package.rs b/crates/registry-breg/tests/postgres_package.rs index 53b2568b9c..0f8ca3c5fe 100644 --- a/crates/registry-breg/tests/postgres_package.rs +++ b/crates/registry-breg/tests/postgres_package.rs @@ -442,7 +442,7 @@ fn projection_free_package_refuses_claimed_manifest_artifacts() { assert_eq!( load_error(root.path(), &local_context(),), - PackageError::Derivation + PackageError::GeneratedArtifactsMismatch ); } @@ -699,7 +699,7 @@ fn package_rederivation_refuses_rehashed_substituted_caller_safe_metadata() { assert_eq!( load_error(fixture.root.path(), &local_context(),), - PackageError::Derivation + PackageError::GeneratedArtifactsMismatch ); } @@ -721,7 +721,7 @@ fn package_rederivation_refuses_a_rehashed_substituted_event_inventory() { assert_eq!( load_error(fixture.root.path(), &local_context(),), - PackageError::Derivation + PackageError::GeneratedArtifactsMismatch ); } @@ -769,7 +769,7 @@ fn local_unsigned_package_rederives_every_artifact_and_refuses_filesystem_tamper }); assert_eq!( load_error(fixture.root.path(), &context), - PackageError::Derivation + PackageError::GeneratedArtifactsMismatch ); fs::write( &manifest_projection_path, diff --git a/crates/registry-breg/tests/postgres_package/compiler_upgrade.rs b/crates/registry-breg/tests/postgres_package/compiler_upgrade.rs index bd801d666a..b2423b1968 100644 --- a/crates/registry-breg/tests/postgres_package/compiler_upgrade.rs +++ b/crates/registry-breg/tests/postgres_package/compiler_upgrade.rs @@ -477,7 +477,7 @@ impl EarlierCompilerRegistry { }); assert_eq!( load_package(root.path(), &local_context()).err(), - Some(PackageError::Derivation), + Some(PackageError::GeneratedArtifactsMismatch), "this runtime refuses the concrete earlier-compiler boundary" ); let predecessor = load_predecessor_package(root.path(), &local_context()) diff --git a/crates/registry-breg/tests/postgres_package/derived_upgrade.rs b/crates/registry-breg/tests/postgres_package/derived_upgrade.rs index 7702256a0b..9ea4bafd55 100644 --- a/crates/registry-breg/tests/postgres_package/derived_upgrade.rs +++ b/crates/registry-breg/tests/postgres_package/derived_upgrade.rs @@ -96,7 +96,7 @@ async fn an_unchanged_successor_replaces_an_older_derived_wrapper() { }); assert_eq!( load_package(legacy_root.path(), &local_context()).err(), - Some(PackageError::Derivation), + Some(PackageError::GeneratedArtifactsMismatch), "the new runtime refuses an old package whose generated view no longer rederives" ); let predecessor = load_predecessor_package(legacy_root.path(), &local_context()) @@ -142,7 +142,9 @@ async fn an_unchanged_successor_replaces_an_older_derived_wrapper() { ) .await .err(), - Some(StartupError::PackageRefused(PackageError::Derivation)), + Some(StartupError::PackageRefused( + PackageError::GeneratedArtifactsMismatch + )), "the runtime refuses the old package before consulting or changing the database" ); drop(runtime); diff --git a/crates/registry-breg/tests/postgres_proposal.rs b/crates/registry-breg/tests/postgres_proposal.rs index 0bd6e257c4..c3468c6a0f 100644 --- a/crates/registry-breg/tests/postgres_proposal.rs +++ b/crates/registry-breg/tests/postgres_proposal.rs @@ -9063,11 +9063,11 @@ fn writable_inputs_source() -> Value { fn nullable_writable_inputs_registry() -> registry_breg::CompiledRegistry { let mut source = writable_inputs_source(); proposal_status::require_review(&mut source); - source["functions"] = json!({"nullable-note-plan": {"runtime":"rhai", "source":"plans/nullable-note.rhai", + source["actionPlans"] = json!({"nullable-note-plan": {"runtime":"rhai", "source":"plans/nullable-note.rhai", "entrypoint":"plan", "abi":"registry.action-plan/v1" }}); source["actions"]["correct-name"]["plan"] = json!({ - "type":"function", "function":"nullable-note-plan", "inputs":["target","value","note"], + "type":"scripted", "actionPlan":"nullable-note-plan", "inputs":["target","value","note"], "writes":[{"id":"name","target":{"fromInput":"target"},"operation":"patch","fields":["name"]}] }); let project = parse_project_json(&serde_json::to_vec(&source).unwrap()).unwrap(); diff --git a/crates/registry-breg/tests/postgres_record_profile_conformance.rs b/crates/registry-breg/tests/postgres_record_profile_conformance.rs index 659d985b06..4667c572b0 100644 --- a/crates/registry-breg/tests/postgres_record_profile_conformance.rs +++ b/crates/registry-breg/tests/postgres_record_profile_conformance.rs @@ -611,7 +611,7 @@ async fn exercise_breg_client( "public-units", &BRegListRequest::default() .options(public_options) - .top(1) + .limit(1) .expect("one is a valid BReg page size"), ) .await diff --git a/crates/registry-breg/tests/postgres_spatial_read.rs b/crates/registry-breg/tests/postgres_spatial_read.rs index ad26e46d91..d28fbc12a1 100644 --- a/crates/registry-breg/tests/postgres_spatial_read.rs +++ b/crates/registry-breg/tests/postgres_spatial_read.rs @@ -135,7 +135,7 @@ async fn sdk_bbox_geojson_and_continuations_use_real_postgis() { .unwrap(), ) .bbox(bbox) - .top(2) + .limit(2) .unwrap(); let mut page = client .list_geojson_records("service-sites", &request) diff --git a/crates/registry-breg/tests/registry_timezone.rs b/crates/registry-breg/tests/registry_timezone.rs index b67fb21058..4b7eb53ea3 100644 --- a/crates/registry-breg/tests/registry_timezone.rs +++ b/crates/registry-breg/tests/registry_timezone.rs @@ -159,11 +159,11 @@ fn a_current_date_requirement_requires_a_timezone() { #[test] fn a_plan_that_calls_today_requires_a_timezone() { let mut source = action_support::project(); - source["functions"] = json!({"dated-plan": {"runtime":"rhai", "source":"plans/dated.rhai", + source["actionPlans"] = json!({"dated-plan": {"runtime":"rhai", "source":"plans/dated.rhai", "entrypoint":"plan", "abi":"registry.action-plan/v1" }}); source["actions"]["register-child"]["plan"] = json!({ - "type":"function", "function":"dated-plan", "inputs":["parent"], + "type":"scripted", "actionPlan":"dated-plan", "inputs":["parent"], "writes":[{"id":"child","target":{"recordType":"child"},"operation":"create","fields":["parent","label"]}] }); let assets = || { @@ -223,11 +223,11 @@ fn plan(ctx) { #[test] fn a_user_defined_zero_argument_today_does_not_require_a_timezone() { let mut source = action_support::project(); - source["functions"] = json!({"dated-plan": {"runtime":"rhai", "source":"plans/dated.rhai", + source["actionPlans"] = json!({"dated-plan": {"runtime":"rhai", "source":"plans/dated.rhai", "entrypoint":"plan", "abi":"registry.action-plan/v1" }}); source["actions"]["register-child"]["plan"] = json!({ - "type":"function", "function":"dated-plan", "inputs":["parent"], + "type":"scripted", "actionPlan":"dated-plan", "inputs":["parent"], "writes":[{"id":"child","target":{"recordType":"child"},"operation":"create","fields":["parent","label"]}] }); let asset = ModuleAssetSource { diff --git a/crates/registry-breg/tests/review_context_package.rs b/crates/registry-breg/tests/review_context_package.rs index 6760c6a767..e0dc2abf4e 100644 --- a/crates/registry-breg/tests/review_context_package.rs +++ b/crates/registry-breg/tests/review_context_package.rs @@ -125,7 +125,7 @@ fn sealed_review_context_export_is_exact_and_cannot_be_omitted_or_rebound() { reseal(&missing); assert_eq!( inspect_package_integrity(&missing).err(), - Some(PackageError::Derivation) + Some(PackageError::GeneratedArtifactsMismatch) ); let rebound = temporary.path().join("rebound"); @@ -150,6 +150,6 @@ fn sealed_review_context_export_is_exact_and_cannot_be_omitted_or_rebound() { reseal(&rebound); assert_eq!( inspect_package_integrity(&rebound).err(), - Some(PackageError::Derivation) + Some(PackageError::GeneratedArtifactsMismatch) ); } diff --git a/crates/registry-breg/tests/script_baseline.rs b/crates/registry-breg/tests/script_baseline.rs index f881c8542d..0a5d2ef06c 100644 --- a/crates/registry-breg/tests/script_baseline.rs +++ b/crates/registry-breg/tests/script_baseline.rs @@ -22,7 +22,7 @@ fn action(script: &str) -> CompiledAction { "apiVersion":"id.registrystack.org/formats/breg/project/v1alpha1", "kind":"BRegProject", "project":{"id":"script-baseline","version":"1","defaultLanguage":"en","canonicalBaseIri":"https://example.test"}, "datasets":{"baseline": {}}, - "functions":{"baseline": {"runtime":"rhai","source":"handlers/baseline.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}, + "actionPlans":{"baseline": {"runtime":"rhai","source":"handlers/baseline.rhai","entrypoint":"handle","abi":"registry.action-plan/v1"}}, "recordTypes":{"record": {"primaryDataset":"baseline","route":"records","mutationMode":"mutable","fields":[ {"id":"label","type":"string","maximumLength":160,"required":true,"classification":"restricted"}, {"id":"count","type":"int64","classification":"restricted"}, @@ -33,7 +33,7 @@ fn action(script: &str) -> CompiledAction { {"id":"count","type":"int64","required":true,"classification":"restricted"}, {"id":"amount","type":"decimal","precision":20,"scale":2,"required":true,"classification":"restricted"}, {"id":"note","type":"string","maximumLength":80,"classification":"restricted"} - ],"plan":{"type":"function","function":"baseline","inputs":["label","count","amount","note"], + ],"plan":{"type":"scripted","actionPlan":"baseline","inputs":["label","count","amount","note"], "refusals":[{"code":"blank-label","label":"A label is required."}], "writes":[{"id":"record","target":{"recordType":"record"},"operation":"create","fields":["label","count","amount"]}] }}}, diff --git a/crates/registry-breg/tests/support/proposal_required_attachment.rs b/crates/registry-breg/tests/support/proposal_required_attachment.rs index 302056838a..b05c5c88eb 100644 --- a/crates/registry-breg/tests/support/proposal_required_attachment.rs +++ b/crates/registry-breg/tests/support/proposal_required_attachment.rs @@ -350,8 +350,8 @@ async fn required_file_precedes_plan_evaluation() { let mut source = registry_source(false); source["actions"]["correct-name"]["execution"]["proposal"]["attachments"][0]["required"] = json!(true); - source["functions"] = json!({"failing-plan":{"runtime":"rhai","source":"plans/failing.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}); - source["actions"]["correct-name"]["plan"] = json!({"type":"function","function":"failing-plan","inputs":["target","value"], + source["actionPlans"] = json!({"failing-plan":{"runtime":"rhai","source":"plans/failing.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}); + source["actions"]["correct-name"]["plan"] = json!({"type":"scripted","actionPlan":"failing-plan","inputs":["target","value"], "writes":[{"id":"name","target":{"fromInput":"target"},"operation":"patch","fields":["name"]}]}); let registry = compile_project_with_assets( &parse_project_json(&serde_json::to_vec(&source).unwrap()).unwrap(), diff --git a/crates/registry-breg/tests/timer_authoring.rs b/crates/registry-breg/tests/timer_authoring.rs index f68f47597c..b971491a55 100644 --- a/crates/registry-breg/tests/timer_authoring.rs +++ b/crates/registry-breg/tests/timer_authoring.rs @@ -871,14 +871,14 @@ fn timer_refuses_public_invoke_and_non_immediate_actions() { #[test] fn timer_refuses_remote_function_and_evidence_capabilities() { let mut remote = timer_project_value(); - remote["functions"].as_object_mut().unwrap().insert( + remote["actionPlans"].as_object_mut().unwrap().insert( "timer-plan".to_owned(), json!({"runtime":"rhai","source":"plans/timer.rhai", "entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":["evidence"] }), ); remote["actions"]["activate-contact"]["plan"] = json!({ - "type":"function","function":"timer-plan", + "type":"scripted","actionPlan":"timer-plan", "inputs":["contact","planned-at","operation-id"], "refusals":[], "writes":[{"id":"activated","target":{"fromInput":"contact"},"operation":"patch","fields":["active"]}] @@ -899,11 +899,11 @@ fn timer_refuses_remote_function_and_evidence_capabilities() { .all(|handler| handler.capabilities.is_empty())); let mut evidence = timer_project_value(); - evidence["functions"] = json!({"timer-plan": {"runtime":"rhai","source":"plans/timer.rhai", + evidence["actionPlans"] = json!({"timer-plan": {"runtime":"rhai","source":"plans/timer.rhai", "entrypoint":"plan","abi":"registry.action-plan/v1","capabilities":["evidence"] }}); evidence["actions"]["activate-contact"]["plan"] = json!({ - "type":"function","function":"timer-plan", + "type":"scripted","actionPlan":"timer-plan", "inputs":["contact","planned-at","operation-id"], "refusals":[], "writes":[{"id":"activated","target":{"fromInput":"contact"},"operation":"patch","fields":["active"]}] diff --git a/crates/registry-breg/tests/wasm_handler_admission.rs b/crates/registry-breg/tests/wasm_handler_admission.rs index 0c20619fba..b647799487 100644 --- a/crates/registry-breg/tests/wasm_handler_admission.rs +++ b/crates/registry-breg/tests/wasm_handler_admission.rs @@ -98,14 +98,14 @@ fn wasm_project() -> Value { {"id":"legal-name","apiName":"legalName","type":"string","maximumLength":160,"required":true,"classification":"restricted"} ] }}, - "functions":{"person-plan": {"runtime":"wasm","source":"wasm/handler.wasm","entrypoint":"handle","abi":"registry.action-plan/v1"}}, + "actionPlans":{"person-plan": {"runtime":"wasm","source":"wasm/handler.wasm","entrypoint":"handle","abi":"registry.action-plan/v1"}}, "actions":{"register-person": {"execution":{"mode":"immediate"}, "inputs":[ {"id":"person-code","apiName":"personCode","type":"string","maximumLength":64,"required":true,"classification":"restricted"}, {"id":"legal-name","apiName":"legalName","type":"string","maximumLength":160,"required":true,"classification":"restricted"} ], "plan":{ - "type":"function","function":"person-plan","inputs":["person-code","legal-name"], + "type":"scripted","actionPlan":"person-plan","inputs":["person-code","legal-name"], "writes":[{ "id":"person","target":{"recordType":"person"},"operation":"create", "fields":["person-code","legal-name"] @@ -240,7 +240,7 @@ fn a_missing_module_asset_reports_the_authored_path() { .map(|_| ()) .expect_err("a declared module without its asset is refused"); let diagnostic = first_code(&failure, "breg.action.handler-module-asset-missing"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); assert!( diagnostic.message.contains("wasm/handler.wasm"), "the diagnostic names the authored path: {}", @@ -255,7 +255,7 @@ fn a_module_over_the_structural_ceiling_is_refused_before_validation() { .map(|_| ()) .expect_err("a module beyond the structural ceiling is refused"); let diagnostic = first_code(&failure, "breg.action.handler-module-bound"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); // The refusal names the structural ceiling: the ceiling every build and // package enforces, not an operator's execution-time configuration. assert_eq!(MAXIMUM_WASM_MODULE_BYTES, 5 * 1024 * 1024); @@ -290,7 +290,7 @@ fn wat_text_is_not_admitted_as_a_module_binary() { .map(|_| ()) .expect_err("WebAssembly text is not a module binary"); let diagnostic = first_code(&failure, "breg.action.handler-module-invalid"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); } #[test] @@ -309,7 +309,7 @@ fn a_module_with_a_disallowed_import_is_refused_by_name() { .map(|_| ()) .expect_err("a module with an import is refused"); let diagnostic = first_code(&failure, "breg.action.handler-module-import-unsupported"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); assert!( diagnostic.message.contains("\"env\"") && diagnostic.message.contains("\"log\""), "the diagnostic names the disallowed import: {}", @@ -331,7 +331,7 @@ fn a_module_missing_a_required_export_is_refused_by_name() { .map(|_| ()) .expect_err("a module missing result_len is refused"); let diagnostic = first_code(&failure, "breg.action.handler-module-export-missing"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); assert!( diagnostic.message.contains("result_len"), "the diagnostic names the missing export: {}", @@ -390,7 +390,7 @@ fn wasm_handler_field_discipline_is_reported_per_backend() { // pairs the backend with its source reference, so the refusal arrives // while the project is read. let mut with_script = wasm_project(); - with_script["functions"]["person-plan"]["script"] = json!("scripts/handler.rhai"); + with_script["actionPlans"]["person-plan"]["script"] = json!("scripts/handler.rhai"); let failure = parse_project_json(&serde_json::to_vec(&with_script).unwrap()) .map(|_| ()) .expect_err("a WASM handler cannot declare a Rhai script"); @@ -403,12 +403,12 @@ fn wasm_handler_field_discipline_is_reported_per_backend() { // A non-.wasm module path never reaches the asset lookup. let mut bad_path = wasm_project(); - bad_path["functions"]["person-plan"]["source"] = json!("wasm/handler.txt"); + bad_path["actionPlans"]["person-plan"]["source"] = json!("wasm/handler.txt"); let failure = compile_with_module(bad_path, "wasm/handler.wasm", binary(MINIMAL_ABI_WAT)) .map(|_| ()) .expect_err("a non-wasm module path is refused"); let diagnostic = first_code(&failure, "breg.action.handler-module-source-invalid"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); } #[test] @@ -427,7 +427,7 @@ fn an_evidence_declaration_stays_refused_for_wasm_handlers_under_the_feature() { "outputs": ["active"], "maximumObservationAgeSeconds": 60 }]); - project["functions"]["person-plan"]["capabilities"] = json!(["evidence"]); + project["actionPlans"]["person-plan"]["capabilities"] = json!(["evidence"]); let contract = ModuleAssetSource { module: None, path: "evidence/farmer-contracts.json".to_owned(), @@ -479,7 +479,7 @@ fn an_evidence_declaration_stays_refused_for_wasm_handlers_under_the_feature() { })); // The same declared capability is admitted by an input-bound Rhai plan. - project["functions"]["person-plan"] = json!({ + project["actionPlans"]["person-plan"] = json!({ "runtime":"rhai", "source":"handlers/register.rhai", "entrypoint":"plan", "abi":ACTION_PLAN_ABI_V1, "capabilities":["evidence"] @@ -518,7 +518,7 @@ fn the_per_package_wasm_module_count_is_bounded() { {"id":"legal-name","type":"string","maximumLength":160,"required":true,"classification":"restricted"} ], "plan":{ - "type":"function","function":"person-plan","inputs":["person-code","legal-name"], + "type":"scripted","actionPlan":"person-plan","inputs":["person-code","legal-name"], "writes":[{"id":"person","target":{"recordType":"person"},"operation":"create","fields":["person-code","legal-name"]}] } })); @@ -534,7 +534,7 @@ fn the_per_package_wasm_module_count_is_bounded() { .map(|_| ()) .expect_err("a package beyond the module-count ceiling is refused"); let diagnostic = first_code(&failure, "breg.action.handler-modules-bound"); - assert_eq!(diagnostic.path, "functions[id=person-plan].source"); + assert_eq!(diagnostic.path, "actionPlans[id=person-plan].source"); } /// The package closure test needs the package module, which the runtime diff --git a/crates/registry-bregctl/src/action_handler_test.rs b/crates/registry-bregctl/src/action_handler_test.rs index ae1e2995a2..64b0ee3a33 100644 --- a/crates/registry-bregctl/src/action_handler_test.rs +++ b/crates/registry-bregctl/src/action_handler_test.rs @@ -744,7 +744,7 @@ recordTypes: fields: - {id: person-code, apiName: personCode, type: string, required: true, maximumLength: 64, classification: restricted} - {id: legal-name, apiName: legalName, type: string, required: true, maximumLength: 160, classification: restricted} -functions: +actionPlans: register-person-plan: runtime: wasm source: wasm/handler.wasm @@ -757,8 +757,8 @@ actions: - {id: legal-name, apiName: legalName, type: string, required: true, maximumLength: 160, classification: restricted} execution: {mode: immediate} plan: - type: function - function: register-person-plan + type: scripted + actionPlan: register-person-plan inputs: [person-code, legal-name] writes: - id: person diff --git a/crates/registry-bregctl/src/check.rs b/crates/registry-bregctl/src/check.rs index a0386cd661..3f865b66a0 100644 --- a/crates/registry-bregctl/src/check.rs +++ b/crates/registry-bregctl/src/check.rs @@ -58,6 +58,7 @@ const ADD_READABLE_OR_REMOVE_PROCESSING: &str = const REVIEW_RELATED_DISCLOSURE: &str = "Remove fields that these readers should not see from this read path's readableFields, or remove the read path; use a direct permission on the related record type when its own row boundaries should apply."; const FIND_PROJECT: &str = "Point bregctl check at a readable project directory that holds registry.yaml, or create one with bregctl init."; const REBUILD_PACKAGE: &str = "Rebuild the package with bregctl package PROJECT --test-receipt RECEIPT --output BUILD; a package is checked as the build wrote it, unmodified."; +const REBUILD_SUCCESSOR: &str = "Keep the sealed package intact and verify its provenance. For an active registry, run this release's bregctl test and bregctl package with --baseline-package ACTIVE, then plan and apply the checked successor. For a new registry, build and check a package with this release."; const REDUCE_MIGRATION_STATEMENTS: &str = "For an initial activation, reduce the generated schema or policy inventory below the supported package migration bound, for example by consolidating equivalent access profiles. A baseline-derived successor is checked against its actual migration when the package is prepared."; /// What `bregctl check` was asked to check. @@ -1361,6 +1362,7 @@ fn package_code(error: &PackageError) -> &'static str { | PackageError::Derivation | PackageError::MigrationPlan | PackageError::ReviewedMigration(_) => "breg.package.integrity-refused", + PackageError::GeneratedArtifactsMismatch => "breg.package.generated-artifacts-refused", PackageError::PreviousReleaseSources(_) => "breg.package.predecessor-sources-refused", PackageError::EntityIdMember => "breg.package.entity-id-refused", PackageError::EngineFeatureUpgradeRequired => "breg.package.engine-upgrade-required", @@ -1394,6 +1396,7 @@ fn package_action(error: &PackageError) -> &'static str { PackageError::EngineFeatureUpgradeRequired | PackageError::PreviousReleaseSources(_) | PackageError::EntityIdMember => PREVIOUS_RELEASE_ACTION, + PackageError::GeneratedArtifactsMismatch => REBUILD_SUCCESSOR, _ => REBUILD_PACKAGE, } } diff --git a/crates/registry-bregctl/src/data_lifecycle.rs b/crates/registry-bregctl/src/data_lifecycle.rs index 5ef8a47983..22d49d9419 100644 --- a/crates/registry-bregctl/src/data_lifecycle.rs +++ b/crates/registry-bregctl/src/data_lifecycle.rs @@ -972,6 +972,9 @@ fn map_ingestion_error(error: BRegIngestionError) -> DataLifecycleError { BRegIngestionError::EmptyChunk | BRegIngestionError::InvalidItem | BRegIngestionError::BodyEncoding => DataLifecycleError::Data(DataError::InvalidItem), + BRegIngestionError::RetiredRecordIdentifier => { + DataLifecycleError::Data(DataError::RetiredRecordIdentifier) + } BRegIngestionError::BodyTooLarge => DataLifecycleError::Data(DataError::ItemTooLarge), BRegIngestionError::InvalidDigest | BRegIngestionError::UnsupportedChunkAlgorithm @@ -3979,9 +3982,7 @@ mod tests { &resumed.output_state, &resumed.resume_state, |request| async move { - assert!(request - .path_and_query() - .contains("$skiptoken=SERVER-CURSOR")); + assert!(request.path_and_query().contains("cursor=SERVER-CURSOR")); Ok::<_, ()>(export_response("BB", None)) }, )) @@ -4174,9 +4175,7 @@ mod tests { &recovered.output_state, &recovered.resume_state, |request| async move { - assert!(request - .path_and_query() - .contains("$skiptoken=SERVER-CURSOR")); + assert!(request.path_and_query().contains("cursor=SERVER-CURSOR")); Ok::<_, ()>(export_response("BB", None)) }, )) diff --git a/crates/registry-bregctl/src/explain_report.rs b/crates/registry-bregctl/src/explain_report.rs index 93033c46fe..c6c7fe62fd 100644 --- a/crates/registry-bregctl/src/explain_report.rs +++ b/crates/registry-bregctl/src/explain_report.rs @@ -112,13 +112,13 @@ pub(crate) fn actions(value: &Value, lines: &mut Lines) { )); lines.pairs_at(2, &[("inputs", names(&action["inputs"], "id"))]); let plan = &action["plan"]; - if plan["type"] == "function" { - let function = &plan["function"]; - lines.pairs_at(2, &[("plan function", text(&function["source"]).into())]); - if let Some(module) = function["sourceModule"].as_str() { + if plan["type"] == "scripted" { + let action_plan = &plan["actionPlan"]; + lines.pairs_at(2, &[("Action Plan", text(&action_plan["source"]).into())]); + if let Some(module) = action_plan["sourceModule"].as_str() { lines.pairs_at(2, &[("source module", module.into())]); } - for write in items(&function["writes"]) { + for write in items(&action_plan["writes"]) { lines.listed( 2, &format!( diff --git a/crates/registry-bregctl/src/lib.rs b/crates/registry-bregctl/src/lib.rs index 05cb3335ea..cedc8d2811 100644 --- a/crates/registry-bregctl/src/lib.rs +++ b/crates/registry-bregctl/src/lib.rs @@ -598,7 +598,7 @@ struct CheckArgs { #[arg( long, value_name = "DIRECTORY", - conflicts_with_all = ["project", "file", "production", "runtime_config"] + conflicts_with_all = ["project", "file", "production", "require_package_closure", "runtime_config"] )] package: Option, @@ -607,12 +607,15 @@ struct CheckArgs { /// rehearsal receipt or backup binding, a model selection, /// example scenarios, session state or source preparation file. No secret, database, /// or network is read. With PROJECT, journeys are checked against that project. - #[arg(long, value_name = "FILE", conflicts_with_all = ["production", "runtime_config"])] + #[arg(long, value_name = "FILE", conflicts_with_all = ["production", "require_package_closure", "runtime_config"])] file: Option, - /// Enforce production-only package closure requirements. - #[arg(long)] + /// Compatibility shorthand for production posture and package closure. + #[arg(long, hide = true)] production: bool, + /// Require exact package input closure. Requires production posture. + #[arg(long)] + require_package_closure: bool, /// Exit 1 when a warning is reported. /// Development posture listings do not count. #[arg(long)] @@ -683,7 +686,7 @@ enum ProjectCommand { }, /// Compute and write module source digests in registry.yaml. Lock(ProjectLockArgs), - /// Test a named Action plan function with bounded synthetic JSON. + /// Test a named Action Plan with bounded synthetic JSON. ActionTest(ProjectActionTestArgs), } @@ -704,7 +707,7 @@ struct ProjectActionTestArgs { #[arg(value_name = "PROJECT")] project: PathBuf, - /// Compiled Action whose named plan function will run; pair with --input. + /// Compiled Action whose named Action Plan will run; pair with --input. #[arg(long, value_name = "ACTION", requires = "input", required = true)] action: Option, @@ -3285,6 +3288,18 @@ where ); } }; + if matches!(&cli.command, Command::Check(args) if args.require_package_closure) + && posture.posture != Posture::Production + { + return write_posture_usage( + "platform.posture.conflict", + "--require-package-closure requires production posture", + "Declare production posture or omit --require-package-closure.", + cli.format, + stdout, + stderr, + ); + } (posture, cli.format.with_posture(posture)) } else { (DEFAULT_POSTURE, cli.format) @@ -3454,7 +3469,7 @@ where let request = check::Request { project: args.project.as_deref(), package: args.package.as_deref(), - production: args.production, + production: args.require_package_closure || args.production, deny_warnings: args.deny_warnings, runtime_config: args.runtime_config.as_deref(), environment: args.environment, @@ -6417,6 +6432,13 @@ fn data_lifecycle_failure( DiagnosticArtifact::DataOperation, SuggestedAction::CorrectDataInput, ), + DataLifecycleError::Data(DataError::RetiredRecordIdentifier) => ( + format!("{prefix}.item.refused"), + "input", + "replace recordIdentifier with recordId in the patch item", + DiagnosticArtifact::DataOperation, + SuggestedAction::CorrectDataInput, + ), DataLifecycleError::Data(DataError::InvalidBinding) => ( format!("{prefix}.binding.refused"), "data", @@ -7934,14 +7956,18 @@ fn lifecycle_failure(command: &'static str, error: ApplyLifecycleError) -> Failu DiagnosticArtifact::VerifiedPackage, SuggestedAction::CorrectPackageBuild, ), - ApplyLifecycleError::TargetPackage(PackageError::Derivation) => ( + ApplyLifecycleError::TargetPackage( + PackageError::Derivation | PackageError::GeneratedArtifactsMismatch, + ) => ( "apply.package.build-mismatch", "package", PACKAGE_BUILD_MISMATCH, DiagnosticArtifact::VerifiedPackage, SuggestedAction::CorrectPackageBuild, ), - ApplyLifecycleError::CurrentPackage(PackageError::Derivation) => ( + ApplyLifecycleError::CurrentPackage( + PackageError::Derivation | PackageError::GeneratedArtifactsMismatch, + ) => ( "apply.package.build-mismatch", "package.root", PACKAGE_BUILD_MISMATCH, @@ -8895,7 +8921,9 @@ fn package_refusal_message( fallback: &'static str, ) -> std::borrow::Cow<'static, str> { match error { - PackageError::Derivation => PACKAGE_BUILD_MISMATCH.into(), + PackageError::Derivation | PackageError::GeneratedArtifactsMismatch => { + PACKAGE_BUILD_MISMATCH.into() + } PackageError::EngineFeatureUpgradeRequired | PackageError::EntityIdMember | PackageError::PreviousReleaseSources(_) => error.to_string().into(), @@ -8953,7 +8981,9 @@ fn package_refusal(error: &PackageError) -> (&'static str, SuggestedAction) { PackageError::Bounds | PackageError::Read => { ("package-refused", SuggestedAction::VerifyPackageIntegrity) } - PackageError::Derivation => ("build-mismatch", SuggestedAction::CorrectPackageBuild), + PackageError::Derivation | PackageError::GeneratedArtifactsMismatch => { + ("build-mismatch", SuggestedAction::CorrectPackageBuild) + } PackageError::EntityIdMember => ("entity-id-refused", SuggestedAction::CorrectPackageBuild), PackageError::PreviousReleaseSources(_) => ( "predecessor-sources-refused", @@ -10988,7 +11018,7 @@ fn load_project_planner_asset_files( ); } for function in &project.functions { - let location = format!("functions[{}].source", function.id); + let location = format!("actionPlans[{}].source", function.id); match function.runtime { registry_breg::contract::ActionHandlerKindSource::Rhai => { paths.insert(function.source.clone(), location); @@ -11142,7 +11172,7 @@ fn load_module_asset_files( ); } for function in &module.functions { - let location = format!("modules[{module_id}].functions[{}].source", function.id); + let location = format!("modules[{module_id}].actionPlans[{}].source", function.id); match function.runtime { registry_breg::contract::ActionHandlerKindSource::Rhai => { planner_paths.insert(function.source.clone(), location); @@ -12014,9 +12044,9 @@ fn explain_queries(compiled: &CompiledRegistry) -> serde_json::Result { "select": "$select", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "accessProfile": "accessProfile", "asOf": "asOf", }, @@ -17882,7 +17912,10 @@ mod tests { assert!(!actions.is_empty()); for action in actions { assert_eq!(action["dependencies"]["evidence"], json!([])); - assert_eq!(action["plan"]["function"]["abi"], "registry.action-plan/v1"); + assert_eq!( + action["plan"]["actionPlan"]["abi"], + "registry.action-plan/v1" + ); assert!(action["revision"].as_str().unwrap().starts_with("sha256:")); } } @@ -17904,7 +17937,10 @@ mod tests { let actions = explanation["actions"].as_array().unwrap(); assert!(!actions.is_empty()); for action in actions { - assert_eq!(action["plan"]["function"]["abi"], "registry.action-plan/v1"); + assert_eq!( + action["plan"]["actionPlan"]["abi"], + "registry.action-plan/v1" + ); let evidence = action["dependencies"]["evidence"].as_array().unwrap(); assert_eq!(evidence.len(), 2); assert!(evidence.iter().all(|binding| { @@ -17914,11 +17950,28 @@ mod tests { .starts_with("sha256:") && binding["provider"] == "farmer-registry" })); - assert!(action["plan"]["function"]["scriptSource"].is_null()); + assert!(action["plan"]["actionPlan"]["scriptSource"].is_null()); assert!(action["revision"].as_str().unwrap().starts_with("sha256:")); } } + #[test] + fn a_retired_import_record_key_names_its_replacement() { + let report = serde_json::to_value(data_lifecycle_failure( + "data import", + "data.import", + DataLifecycleError::Data(DataError::RetiredRecordIdentifier), + )) + .expect("the failure report serializes"); + let diagnostic = &report["diagnostics"][0]; + assert_eq!(diagnostic["code"], "data.import.item.refused"); + assert_eq!(diagnostic["path"], "input"); + assert_eq!( + diagnostic["message"], + "replace recordIdentifier with recordId in the patch item" + ); + } + #[test] fn a_half_reserved_export_pair_names_the_file_that_is_missing() { let checkpoint = serde_json::to_value(data_lifecycle_failure( @@ -19335,7 +19388,7 @@ extendRecordTypes: - id: person-summary sql: sql/summary.sql key: id -functions: +actionPlans: person-plan: runtime: rhai source: planners/person.rhai diff --git a/crates/registry-bregctl/tests/cli.rs b/crates/registry-bregctl/tests/cli.rs index 2963d4152e..31a8c718a0 100644 --- a/crates/registry-bregctl/tests/cli.rs +++ b/crates/registry-bregctl/tests/cli.rs @@ -1442,7 +1442,10 @@ fn missing_action_script_identifies_action_and_safe_relative_path() { .find(|diagnostic| diagnostic["code"] == "breg.source.planner-asset-missing") .unwrap_or_else(|| panic!("the missing planner asset is reported: {report}")); assert_eq!(diagnostic["code"], "breg.source.planner-asset-missing"); - assert_eq!(diagnostic["path"], "/functions/register-person-plan/source"); + assert_eq!( + diagnostic["path"], + "/actionPlans/register-person-plan/source" + ); assert_eq!( diagnostic["source"]["file"], project.path().join("registry.yaml").display().to_string() @@ -1517,7 +1520,7 @@ fn capture_failure_shares_the_registry_warning_budget() { assert!(capture < 100, "{report}"); assert_eq!( diagnostics[capture]["path"], - "/functions/register-person-plan/source" + "/actionPlans/register-person-plan/source" ); let stopped = report["diagnostics"] .as_array() @@ -3663,6 +3666,29 @@ fn examples_list_opens_a_pre_rename_development_run() { .contains("duplicate field `journeyFile`")); } +#[test] +fn check_package_closure_matches_the_production_shorthand() { + let project = minimal_example(); + let checked = |flags: &[&str]| { + Command::new(env!("CARGO_BIN_EXE_bregctl")) + .args(["--format", "json", "check", path(&project)]) + .args(flags) + .env_remove("REGISTRY_STACK_POSTURE") + .output() + .unwrap() + }; + let shorthand = checked(&["--production"]); + let explicit = checked(&["--posture", "production", "--require-package-closure"]); + assert_eq!(explicit.status, shorthand.status); + assert_eq!(json_stdout(&explicit), json_stdout(&shorthand)); + let incompatible = checked(&["--posture", "development", "--require-package-closure"]); + assert_eq!(incompatible.status.code(), Some(2)); + assert_eq!( + json_stdout(&incompatible)["diagnostics"][0]["code"], + "platform.posture.conflict" + ); +} + #[test] fn check_production_names_the_flag_in_an_environment_conflict() { let output = Command::new(env!("CARGO_BIN_EXE_bregctl")) @@ -7027,8 +7053,8 @@ fn explain_actions_reports_reference_acceptance_conditions() { assert_eq!(requirement["recordType"], "register"); assert_eq!(requirement["field"], "active"); assert_eq!(requirement["equals"], true); - assert_eq!(action["plan"]["function"]["kind"], "rhai"); - assert!(action["plan"]["function"].get("scriptSource").is_none()); + assert_eq!(action["plan"]["actionPlan"]["kind"], "rhai"); + assert!(action["plan"]["actionPlan"].get("scriptSource").is_none()); assert!(!String::from_utf8(output.stdout) .expect("explanation is UTF-8") .contains("registry_data")); @@ -7156,7 +7182,7 @@ recordTypes: fields: - {id: person-code, apiName: personCode, type: string, required: true, maximumLength: 64, classification: restricted} - {id: legal-name, apiName: legalName, type: string, required: true, maximumLength: 160, classification: restricted} -functions: +actionPlans: register-person-plan: runtime: wasm source: wasm/handler.wasm @@ -7169,8 +7195,8 @@ actions: - {id: legal-name, apiName: legalName, type: string, required: true, maximumLength: 160, classification: restricted} execution: {mode: immediate} plan: - type: function - function: register-person-plan + type: scripted + actionPlan: register-person-plan inputs: [person-code, legal-name] writes: - id: person @@ -7215,7 +7241,7 @@ fn explain_actions_reports_wasm_handler_server_compatibility() { assert!(output.status.success(), "{output:?}"); let report = json_stdout(&output); - let function = &report["explanation"]["actions"][0]["plan"]["function"]; + let function = &report["explanation"]["actions"][0]["plan"]["actionPlan"]; assert_eq!(function["kind"], "wasm"); assert_eq!(function["abi"], "registry.action-plan/v1"); assert_eq!(function["entrypoint"], "handle"); diff --git a/crates/registry-bregctl/tests/explain_contract.rs b/crates/registry-bregctl/tests/explain_contract.rs index cfb95544c1..a438a7966e 100644 --- a/crates/registry-bregctl/tests/explain_contract.rs +++ b/crates/registry-bregctl/tests/explain_contract.rs @@ -1083,7 +1083,7 @@ fn native_proposal_inspection_pins_review_and_system_apply_scope_without_sources .unwrap(); assert_eq!(correction["display"]["label"], "Correct facility address"); assert_eq!( - correction["plan"]["function"]["abi"], + correction["plan"]["actionPlan"]["abi"], "registry.action-plan/v1" ); let policy = &correction["execution"]["proposal"]; @@ -1200,6 +1200,19 @@ fn format_registry(root: &Path) -> Value { .to_json_value() } +#[test] +fn human_actions_explanation_names_the_action_plan_and_write_ceiling() { + let project = fixture_path("products/breg/examples/facility"); + let output = bregctl(&["explain", "actions", project.to_str().unwrap()]); + assert!(output.status.success(), "{output:?}"); + let stdout = String::from_utf8(output.stdout).expect("bregctl writes UTF-8"); + assert!( + stdout.contains("Action Plan plans/correct-address.rhai"), + "{stdout}" + ); + assert!(stdout.contains("write ceiling: patch facility"), "{stdout}"); +} + #[test] fn registered_examples_match_current_formatter_bytes_and_schemas() { let root = repo_root(); diff --git a/crates/registry-bregctl/tests/project_lock_refusals.rs b/crates/registry-bregctl/tests/project_lock_refusals.rs index 16f353da5b..1221db5a73 100644 --- a/crates/registry-bregctl/tests/project_lock_refusals.rs +++ b/crates/registry-bregctl/tests/project_lock_refusals.rs @@ -87,7 +87,7 @@ recordTypes: type: string maximumLength: 16 classification: internal -functions: +actionPlans: update-record-plan: runtime: rhai source: plans/update-record.rhai @@ -100,8 +100,8 @@ actions: - {id: record, type: reference, target: record, required: true, classification: internal} - {id: code, type: string, maximumLength: 16, required: true, classification: internal} plan: - type: function - function: update-record-plan + type: scripted + actionPlan: update-record-plan inputs: [record, code] writes: - id: record diff --git a/crates/registry-bregctl/tests/wasm_test_lifecycle.rs b/crates/registry-bregctl/tests/wasm_test_lifecycle.rs index 61ddbc4702..5ab5d9e4c9 100644 --- a/crates/registry-bregctl/tests/wasm_test_lifecycle.rs +++ b/crates/registry-bregctl/tests/wasm_test_lifecycle.rs @@ -16,6 +16,11 @@ use std::sync::atomic::{AtomicU64, Ordering}; use std::time::{SystemTime, UNIX_EPOCH}; use registry_breg::postgres::{provision_managed_schemas, SqlIdentifier}; +use registry_platform_canonical_json::canonicalize_json; +use registry_platform_config::{ + package::{write_sum_file, PackageLimits}, + sha256_uri, +}; use registry_platform_crypto::PrivateJwk; use registry_platform_testing::{fixtures, jwks_from_private_jwk, MockIdp}; use serde_json::{json, Value}; @@ -95,22 +100,7 @@ fn public_bregctl_test_fingerprint_only_measures_the_schema_the_full_run_binds() let receipt_after_measure = project.receipt.exists(); // The full run installs on the same database, so it also proves the // measurement left nothing behind. - let full = Command::new(env!("CARGO_BIN_EXE_bregctl")) - .env_remove("REGISTRY_STACK_POSTURE") - .args([ - "--format", - "json", - "test", - path(&project.project_root), - "--runtime-config", - path(&project.runtime_config), - "--credentials", - path(&project.credentials), - "--output", - path(&project.receipt), - ]) - .output() - .expect("bregctl test starts in a fresh process"); + let full = project.schema_test(None); runtime.block_on(idp.stop()); runtime.block_on(database.cleanup()); @@ -128,6 +118,101 @@ fn public_bregctl_test_fingerprint_only_measures_the_schema_the_full_run_binds() assert_eq!(measured["registryRevision"], full["registryRevision"]); } +#[test] +#[ignore = "requires BREG_TEST_DATABASE_URL and a PostgreSQL administrator"] +fn public_bregctl_rehearses_and_packages_a_successor_over_historical_action_plans() { + let runtime = tokio::runtime::Builder::new_current_thread() + .enable_all() + .build() + .expect("test runtime builds"); + let idp = runtime.block_on(MockIdp::start()); + let mut initial_db = runtime.block_on(TestDatabase::create()); + let initial = ProjectFixture::write(&initial_db, &idp, FixtureAudit::File); + let initial_test = initial.schema_test(None); + runtime.block_on(initial_db.cleanup()); + assert_command_succeeded(&initial_test); + let initial_build = initial.project_root.join("initial-build"); + assert_command_succeeded(&initial.package(&initial_build, None)); + + let check_package = |package: &Path| { + Command::new(env!("CARGO_BIN_EXE_bregctl")) + .env_remove("REGISTRY_STACK_POSTURE") + .args(["--format", "json", "check", "--package", path(package)]) + .output() + .expect("strict check starts") + }; + let predecessor = initial_build.join("package"); + assert_command_succeeded(&check_package(&predecessor)); + let openapi = predecessor.join("openapi/openapi.json"); + let current_openapi = fs::read(&openapi).unwrap(); + seal_historical_vocabulary(&predecessor); + assert_eq!(fs::read(openapi).unwrap(), current_openapi); + let strict = check_package(&predecessor); + assert_eq!(strict.status.code(), Some(1), "{strict:?}"); + let refusal: Value = serde_json::from_slice(&strict.stdout).unwrap(); + let diagnostic = &refusal["diagnostics"][0]; + assert_eq!( + diagnostic["code"], + "breg.package.generated-artifacts-refused" + ); + assert!(diagnostic["suggestedAction"] + .as_str() + .unwrap() + .contains("bregctl test and bregctl package with --baseline-package ACTIVE")); + + let mut successor_db = runtime.block_on(TestDatabase::create()); + let successor = ProjectFixture::write(&successor_db, &idp, FixtureAudit::File); + let rehearsal = successor.schema_test(Some(&predecessor)); + runtime.block_on(idp.stop()); + runtime.block_on(successor_db.cleanup()); + assert_command_succeeded(&rehearsal); + let successor_build = successor.project_root.join("successor-build"); + assert_command_succeeded(&successor.package(&successor_build, Some(&predecessor))); + assert_command_succeeded(&check_package(&successor_build.join("package"))); +} + +fn seal_historical_vocabulary(root: &Path) { + let manifest = root.join("package.json"); + let mut envelope: Value = serde_json::from_slice(&fs::read(&manifest).unwrap()).unwrap(); + let relative = "source/registry.yaml"; + let file = root.join(relative); + let mut text = fs::read_to_string(&file).unwrap(); + for (current, historical) in [ + ("actionPlans:", "functions:"), + ("type: scripted", "type: function"), + ("actionPlan:", "function:"), + ] { + assert!(text.contains(current), "{relative} lacks {current}"); + text = text.replace(current, historical); + } + set_private(&file); + fs::write(file, &text).unwrap(); + let entry = envelope["manifest"]["files"] + .as_array_mut() + .unwrap() + .iter_mut() + .find(|entry| entry["path"] == relative) + .unwrap(); + entry["sha256"] = json!(sha256_uri(text.as_bytes())); + entry["size"] = json!(text.len()); + set_private(&manifest); + fs::write(manifest, canonicalize_json(&envelope).unwrap()).unwrap(); + fs::remove_file(root.join("SHA256SUMS")).unwrap(); + write_sum_file( + root, + None, + &PackageLimits { + max_files: 4096, + max_file_bytes: 64 * 1024 * 1024, + max_total_bytes: 256 * 1024 * 1024, + max_depth: 16, + max_path_bytes: 512, + }, + "test package", + ) + .unwrap(); +} + #[derive(Clone, Copy)] enum FixtureAudit { File, @@ -143,22 +228,7 @@ fn run_schema_test(audit: FixtureAudit) -> (Output, Option) { let idp = runtime.block_on(MockIdp::start()); let project = ProjectFixture::write(&database, &idp, audit); - let output = Command::new(env!("CARGO_BIN_EXE_bregctl")) - .env_remove("REGISTRY_STACK_POSTURE") - .args([ - "--format", - "json", - "test", - path(&project.project_root), - "--runtime-config", - path(&project.runtime_config), - "--credentials", - path(&project.credentials), - "--output", - path(&project.receipt), - ]) - .output() - .expect("bregctl test starts in a fresh process"); + let output = project.schema_test(None); let receipt = fs::read(&project.receipt) .ok() @@ -172,7 +242,7 @@ fn run_schema_test(audit: FixtureAudit) -> (Output, Option) { fn assert_command_succeeded(output: &Output) { assert!( output.status.success(), - "bregctl test failed\nstdout: {}\nstderr: {}", + "bregctl failed\nstdout: {}\nstderr: {}", String::from_utf8_lossy(&output.stdout), String::from_utf8_lossy(&output.stderr), ); @@ -187,6 +257,44 @@ struct ProjectFixture { } impl ProjectFixture { + fn schema_test(&self, baseline: Option<&Path>) -> Output { + let mut command = Command::new(env!("CARGO_BIN_EXE_bregctl")); + command.env_remove("REGISTRY_STACK_POSTURE").args([ + "--format", + "json", + "test", + path(&self.project_root), + "--runtime-config", + path(&self.runtime_config), + "--credentials", + path(&self.credentials), + "--output", + path(&self.receipt), + ]); + if let Some(baseline) = baseline { + command.args(["--baseline-package", path(baseline)]); + } + command.output().expect("bregctl test starts") + } + + fn package(&self, build: &Path, baseline: Option<&Path>) -> Output { + let mut command = Command::new(env!("CARGO_BIN_EXE_bregctl")); + command.env_remove("REGISTRY_STACK_POSTURE").args([ + "--format", + "json", + "package", + path(&self.project_root), + "--test-receipt", + path(&self.receipt), + "--output", + path(build), + ]); + if let Some(baseline) = baseline { + command.args(["--baseline-package", path(baseline)]); + } + command.output().expect("bregctl package starts") + } + fn write(database: &TestDatabase, idp: &MockIdp, audit: FixtureAudit) -> Self { let root = tempfile::tempdir().expect("fixture directory creates"); let root_path = root.path().canonicalize().expect("fixture path resolves"); @@ -317,7 +425,7 @@ recordTypes: classification: public fields: - {id: code, type: string, required: true, maximumLength: 32, classification: public} -functions: +actionPlans: fixed-output-plan: runtime: wasm source: handlers/fixed-output.wasm @@ -329,8 +437,8 @@ actions: inputs: - {id: request, type: string, required: true, maximumLength: 32, classification: public} plan: - type: function - function: fixed-output-plan + type: scripted + actionPlan: fixed-output-plan inputs: [request] writes: - id: record diff --git a/crates/registry-casework/src/config/issuers.rs b/crates/registry-casework/src/config/issuers.rs index d2e025fa87..47e9766849 100644 --- a/crates/registry-casework/src/config/issuers.rs +++ b/crates/registry-casework/src/config/issuers.rs @@ -26,7 +26,7 @@ pub const ISSUERS_POINTER: &str = "/authentication/oidc/issuers"; pub static UNRESTRICTED_CLIENTS: DevelopmentSetting = DevelopmentSetting { code: "casework.posture.unrestricted-clients", key: "allowedClients", - summary: "admits a token from every client this issuer signs for", + summary: "this issuer entry admits a token from every client the issuer signs for", production: "List the OAuth clients whose access tokens this issuer entry admits.", }; diff --git a/crates/registry-casework/tests/problem_code_catalogue.rs b/crates/registry-casework/tests/problem_code_catalogue.rs index 61a12402b3..addf1cf2ba 100644 --- a/crates/registry-casework/tests/problem_code_catalogue.rs +++ b/crates/registry-casework/tests/problem_code_catalogue.rs @@ -128,11 +128,11 @@ fn the_ask_limit_refusal_is_registered_in_the_ask_operation_only() { )) .unwrap(); assert!( - schema["paths"]["/v1/review-tasks/{task_id}/asks"]["post"]["responses"]["409"] + schema["paths"]["/v1/review-tasks/{taskId}/asks"]["post"]["responses"]["409"] .to_string() .contains("ProblemReviewAskLimitReached") ); - let answer = &schema["paths"]["/v1/review-requests/{request_id}/asks/{ask_id}/answer"]["post"]; + let answer = &schema["paths"]["/v1/review-requests/{requestId}/asks/{askId}/answer"]["post"]; assert!(answer.is_object()); assert!(!answer.to_string().contains("ProblemReviewAskLimitReached")); } diff --git a/crates/registry-caseworkctl/src/lib.rs b/crates/registry-caseworkctl/src/lib.rs index 2800b28adb..7e6f4f03f3 100644 --- a/crates/registry-caseworkctl/src/lib.rs +++ b/crates/registry-caseworkctl/src/lib.rs @@ -14,7 +14,7 @@ mod selected_binary; mod templates; use anyhow::Result; use clap::{ArgGroup, Args, CommandFactory, Parser, Subcommand, ValueEnum}; -use registry_platform_config::{declared, DeclaredPosture}; +use registry_platform_config::{declared, DeclaredPosture, Posture}; use serde_json::{json, Value}; use std::{ ffi::OsString, @@ -273,9 +273,12 @@ struct CheckArgs { /// Existing authored Casework project directory. #[arg(value_name = "PROJECT")] project: PathBuf, - /// Check the exact package closure required for production. - #[arg(long)] + /// Compatibility shorthand for production posture and package closure. + #[arg(long, hide = true)] production: bool, + /// Require exact package input closure. Requires production posture. + #[arg(long)] + require_package_closure: bool, /// Refuse authored warnings as well as errors. /// Development posture listings do not count. #[arg(long)] @@ -384,7 +387,24 @@ fn main_entry_with_posture_resolver( let command_posture = match command.posture_flag() { Some(Err(diagnostic)) => return posture_usage(diagnostic, format, stdout, stderr), Some(Ok(flag)) => match resolve(flag) { - Ok(value) => Some(value), + Ok(value) => { + if matches!(&command, Command::Check(args) if args.require_package_closure) + && value.posture != Posture::Production + { + return posture_usage( + registry_platform_yaml::Diagnostic::error( + "platform.posture.conflict", + "posture", + "--require-package-closure requires production posture", + "Declare production posture or omit --require-package-closure.", + ), + format, + stdout, + stderr, + ); + } + Some(value) + } Err(error) => { return posture_usage( registry_platform_yaml::Diagnostic::error( @@ -802,10 +822,15 @@ fn run(command: Command, posture: Option) -> Result { project, template, .. } => project::init(&project, &template), Command::Check(args) => { + let require_package_closure = args.require_package_closure || args.production; let mut result = if args.runtime_config.is_some() { - project::check(&args.project, args.production, false) + project::check(&args.project, require_package_closure, false) } else { - project::check_with_acceptances(&args.project, args.production, args.deny_warnings) + project::check_with_acceptances( + &args.project, + require_package_closure, + args.deny_warnings, + ) }; if let Some(runtime) = args.runtime_config { result = project::check_runtime_config( @@ -1238,6 +1263,43 @@ mod tests { struct ClosedOutput; + #[test] + fn package_closure_is_explicit_and_preserves_the_legacy_request() { + let temporary = canonical_tempdir(); + let project_path = temporary.path().join("unpaired"); + project::init(&project_path, "canonical-review").unwrap(); + let check = |options: &[&str]| { + let mut args = vec![ + "caseworkctl".into(), + "--format".into(), + "json".into(), + "check".into(), + project_path.as_os_str().to_owned(), + ]; + args.extend(options.iter().map(OsString::from)); + let (mut output, mut errors) = (Vec::new(), Vec::new()); + let exit = main_entry_with_posture_resolver(args, &mut output, &mut errors, |flag| { + registry_platform_config::declared_from(flag, None) + }); + assert!(errors.is_empty(), "{}", String::from_utf8_lossy(&errors)); + (exit, serde_json::from_slice::(&output).unwrap()) + }; + assert_eq!(check(&["--posture", "production"]).0, ExitCode::SUCCESS); + let explicit = check(&["--posture", "production", "--require-package-closure"]); + assert_eq!(explicit.0, ExitCode::from(DOMAIN_REFUSAL_EXIT)); + assert_eq!( + explicit.1["diagnostics"][0]["code"], + "casework.context-provider.missing-description" + ); + assert_eq!(explicit, check(&["--production"])); + let development = check(&["--posture", "development", "--require-package-closure"]); + assert_eq!(development.0, ExitCode::from(report::USAGE_EXIT)); + assert_eq!( + development.1["diagnostics"][0]["code"], + "platform.posture.conflict" + ); + } + impl Write for ClosedOutput { fn write(&mut self, _: &[u8]) -> io::Result { Err(io::Error::from(io::ErrorKind::BrokenPipe)) diff --git a/crates/registry-caseworkctl/src/provider_add.rs b/crates/registry-caseworkctl/src/provider_add.rs index e94e19ea44..df6c547350 100644 --- a/crates/registry-caseworkctl/src/provider_add.rs +++ b/crates/registry-caseworkctl/src/provider_add.rs @@ -604,7 +604,7 @@ fn used_inputs(action: &Value) -> Vec { .filter_map(|input| input["id"].as_str()) .map(str::to_owned) .collect::>(); - let mut found = strings(&action["plan"]["function"]["boundInputs"]); + let mut found = strings(&action["plan"]["actionPlan"]["boundInputs"]); // Only compiler-owned reference positions name inputs. Literal JSON values // may contain an unrelated member named `input` and must remain opaque. if action["plan"]["type"].as_str() == Some("fixed") { @@ -637,8 +637,8 @@ fn used_inputs(action: &Value) -> Vec { fn write_shapes(action: &Value) -> Vec { let mut writes = BTreeMap::<(String, String), BTreeSet>::new(); - if let Some(function_writes) = action["plan"]["function"]["writes"].as_array() { - for write in function_writes { + if let Some(scripted_writes) = action["plan"]["actionPlan"]["writes"].as_array() { + for write in scripted_writes { let Some(record_type) = write["targetRecordType"].as_str() else { continue; }; @@ -2276,15 +2276,24 @@ exit 1 used_inputs(&fixed), ["expected", "guard-target", "replacement", "target"] ); - let function = json!({ + let scripted = json!({ "inputs":declared, "commitGuards":guards, - "plan":{"type":"function","function":{ + "plan":{"type":"scripted","actionPlan":{ "boundInputs":["target","replacement","unknown"], + "writes":[{"targetRecordType":"facility","operation":"patch","fields":["address-line"]}], "display":{"input":"unused-literal"} }} }); - assert_eq!(used_inputs(&function), used_inputs(&fixed)); + assert_eq!(used_inputs(&scripted), used_inputs(&fixed)); + let writes = write_shapes(&scripted); + assert_eq!(writes.len(), 1); + assert_eq!(writes[0].record_type, "facility"); + assert_eq!(writes[0].operation, "patch"); + assert_eq!( + writes[0].fields, + BTreeSet::from(["address-line".to_owned()]) + ); } #[test] @@ -2386,7 +2395,7 @@ exit 1 {"id":"second-change","apiName":"changes"}, {"id":"generated-collision","apiName":"permitRecordChanges"} ], - "plan":{"function":{"boundInputs":[ + "plan":{"type":"scripted","actionPlan":{"boundInputs":[ "address-line", "first-change", "generated-collision", diff --git a/crates/registry-cli-docs/catalog.json b/crates/registry-cli-docs/catalog.json index abb867c811..65e538416d 100644 --- a/crates/registry-cli-docs/catalog.json +++ b/crates/registry-cli-docs/catalog.json @@ -4306,8 +4306,8 @@ "environment": null }, { - "display": "--production", - "description": "Enforce production-only package closure requirements", + "display": "--require-package-closure", + "description": "Require exact package input closure. Requires production posture", "always_required": false, "repeatable": false, "default_values": [], @@ -4404,7 +4404,7 @@ "when": null, "arguments": [ "--file ", - "--production" + "--require-package-closure" ] }, { @@ -4420,7 +4420,7 @@ "when": null, "arguments": [ "--package ", - "--production" + "--require-package-closure" ] }, { @@ -4579,7 +4579,7 @@ { "name": "action-test", "invocation": "bregctl project action-test", - "about": "Test a named Action plan function with bounded synthetic JSON", + "about": "Test a named Action Plan with bounded synthetic JSON", "long_about": null, "usage": "bregctl project action-test [OPTIONS] --input --action ", "arguments": [ @@ -4596,7 +4596,7 @@ "options": [ { "display": "--action ", - "description": "Compiled Action whose named plan function will run; pair with --input", + "description": "Compiled Action whose named Action Plan will run; pair with --input", "always_required": true, "repeatable": false, "default_values": [], @@ -10527,8 +10527,8 @@ ], "options": [ { - "display": "--production", - "description": "Check the exact package closure required for production", + "display": "--require-package-closure", + "description": "Require exact package input closure. Requires production posture", "always_required": false, "repeatable": false, "default_values": [], @@ -13563,7 +13563,7 @@ { "name": "check", "invocation": "coordinatorctl check", - "about": "Validate the workflow, functions and root YAML companions offline", + "about": "Validate the workflow, Transforms and root YAML companions offline", "long_about": null, "usage": "coordinatorctl check [OPTIONS]", "arguments": [], @@ -13669,7 +13669,7 @@ { "name": "explain", "invocation": "coordinatorctl explain", - "about": "Explain a checked graph, mappings and execution bounds offline, or the helpers Functions may call", + "about": "Explain a checked graph, mappings and execution bounds offline, or the helpers Transforms may call", "long_about": null, "usage": "coordinatorctl explain [OPTIONS] --project \n coordinatorctl explain ", "arguments": [], @@ -13728,11 +13728,11 @@ "constraints": [], "subcommands": [ { - "name": "functions", - "invocation": "coordinatorctl explain functions", - "about": "List the helpers a pure Function may call, with the interpreter ABI and limits", + "name": "transforms", + "invocation": "coordinatorctl explain transforms", + "about": "List the helpers a pure Transform may call, with the interpreter ABI and limits", "long_about": null, - "usage": "coordinatorctl explain functions [OPTIONS]", + "usage": "coordinatorctl explain transforms [OPTIONS]", "arguments": [], "options": [ { @@ -19440,8 +19440,8 @@ "environment": null }, { - "display": "--production", - "description": "Require a production or evidence-grade target and complete deployment closure. Requires --target", + "display": "--require-deployment-closure", + "description": "Require a complete production or evidence-grade target. Requires --target and production posture", "always_required": false, "repeatable": false, "default_values": [], @@ -19493,7 +19493,7 @@ }, { "kind": "requires-all", - "when": "--production", + "when": "--require-deployment-closure", "arguments": [ "--target " ] @@ -19503,7 +19503,7 @@ "when": null, "arguments": [ "--file ", - "--production" + "--require-deployment-closure" ] }, { @@ -22222,7 +22222,7 @@ "arguments": [ { "display": "[PROJECT]", - "description": "Evidence project directory; the draft is printed when this is absent. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; the draft is printed when this is absent. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [], @@ -22397,7 +22397,7 @@ "options": [ { "display": "--project ", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [ @@ -22481,7 +22481,7 @@ "options": [ { "display": "--project ", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [ @@ -22565,7 +22565,7 @@ "options": [ { "display": "--project ", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [ @@ -22673,7 +22673,7 @@ "arguments": [ { "display": "[PROJECT]", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [], @@ -22746,7 +22746,7 @@ "arguments": [ { "display": "[PROJECT]", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [], @@ -22910,7 +22910,7 @@ "arguments": [ { "display": "[PROJECT]", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [], @@ -23116,7 +23116,7 @@ }, { "display": "[PROJECT]", - "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets.", + "description": "Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Derivation assets.", "always_required": false, "repeatable": false, "default_values": [ @@ -27293,7 +27293,7 @@ "name": "serve", "invocation": "registry-render serve", "about": "Serve the HTTP rendering API (see the runtime YAML)", - "long_about": null, + "long_about": "Serve the HTTP rendering API (see the runtime YAML). Configure OIDC authentication with authentication.oidc, or shared API key authentication with authentication.apiKeyRef for unsigned rendering. Sealing requires OIDC.", "usage": "registry-render serve [OPTIONS] --runtime-config ", "arguments": [], "options": [ @@ -27317,7 +27317,7 @@ }, { "display": "-h, --help", - "description": "Print help", + "description": "Print help (see a summary with '-h')", "always_required": false, "repeatable": false, "default_values": [], diff --git a/crates/registry-cli-docs/src/lib.rs b/crates/registry-cli-docs/src/lib.rs index 7bcd41c234..27ad206b9f 100644 --- a/crates/registry-cli-docs/src/lib.rs +++ b/crates/registry-cli-docs/src/lib.rs @@ -342,6 +342,36 @@ mod tests { })); } + #[test] + fn production_check_closure_is_separate_from_posture_in_help() { + let catalog = catalog(); + for (command, closure) in [ + ("bregctl check", "--require-package-closure"), + ("caseworkctl check", "--require-package-closure"), + ("evidencectl check", "--require-deployment-closure"), + ] { + let check = find_command(&catalog.binaries, command); + assert!( + check + .options + .iter() + .any(|arg| arg.display == "--posture "), + "{command}" + ); + assert!( + check.options.iter().any(|arg| arg.display == closure), + "{command}" + ); + assert!( + !check + .options + .iter() + .any(|arg| arg.display == "--production"), + "{command}" + ); + } + } + #[test] fn coordinator_publishes_authoring_and_authenticated_recovery_commands() { let catalog = catalog(); diff --git a/crates/registry-coordinator-client/src/client.rs b/crates/registry-coordinator-client/src/client.rs index 2a17003fcc..7ac0020be3 100644 --- a/crates/registry-coordinator-client/src/client.rs +++ b/crates/registry-coordinator-client/src/client.rs @@ -121,7 +121,9 @@ impl CoordinatorClient { return Err(Error::invalid_request("the workflow identifier is invalid")); } if key.is_empty() || key.len() > 256 || !key.bytes().all(|b| (0x20..=0x7e).contains(&b)) { - return Err(Error::invalid_request("the admission key is invalid")); + return Err(Error::invalid_request( + "Idempotency-Key must contain 1 to 256 printable ASCII characters", + )); } if !valid_revision(&request.workflow_revision) { return Err(Error::invalid_request("the workflow revision is invalid")); diff --git a/crates/registry-coordinator-client/src/lib.rs b/crates/registry-coordinator-client/src/lib.rs index d1fcf24db8..b58e90f4ca 100644 --- a/crates/registry-coordinator-client/src/lib.rs +++ b/crates/registry-coordinator-client/src/lib.rs @@ -18,12 +18,13 @@ //! //! Every Coordinator refusal is an RFC 9457 `application/problem+json` //! document with required `type`, `title`, `status`, `detail`, `code` and -//! `traceId` members and an optional `pointer`. The client accepts one as +//! `traceId` members, an optional `pointer`, and in development an optional +//! `failedCheck`. The client accepts one as //! `CoordinatorClientError::Problem` only //! when its status equals the answer's, its `traceId` equals the answer's //! `traceparent` trace, and its `type` is its `family.reason` code under //! `https://id.registrystack.org/problems/registry-coordinator/`; anything else -//! is a protocol failure. The client discards the title, detail and pointer. Redirects +//! is a protocol failure. The client discards the title, detail, pointer and failed check. Redirects //! and ambient proxies are disabled by the shared transport, and //! JSON/header/body bounds are enforced on every response. diff --git a/crates/registry-coordinator-client/tests/http.rs b/crates/registry-coordinator-client/tests/http.rs index 679e8c136c..101a2b584d 100644 --- a/crates/registry-coordinator-client/tests/http.rs +++ b/crates/registry-coordinator-client/tests/http.rs @@ -1423,11 +1423,14 @@ async fn invalid_admission_and_recovery_fail_before_io() { "", "contains\tcontrol", "injected\r\nheader", + "mañana", &"a".repeat(257), ] { assert!(matches!( client.start(&token(), key, &request()).await, - Err(CoordinatorClientError::InvalidRequest { .. }) + Err(CoordinatorClientError::InvalidRequest { + reason: "Idempotency-Key must contain 1 to 256 printable ASCII characters", + }) )); } let mut input = request(); @@ -1918,6 +1921,7 @@ fn dto_contract_tracks_the_runtime_generated_schema() { }; let mut event_problem = problem_document(400, "event.invalid"); event_problem["pointer"] = json!("/subject"); + event_problem["failedCheck"] = json!("sensitive-canary check"); for (schema, value) in [ (&schemas["RunStatus"], status()), (&schemas["RunInspection"], inspection()), diff --git a/crates/registry-coordinator/src/authoring.rs b/crates/registry-coordinator/src/authoring.rs index 16df88a480..339fbcc310 100644 --- a/crates/registry-coordinator/src/authoring.rs +++ b/crates/registry-coordinator/src/authoring.rs @@ -45,16 +45,19 @@ const FORMAT: FormatSpec<'static> = FormatSpec { RemovedKey { pointer: "/title", replacement: "Write project.label." }, RemovedKey { pointer: "/label", replacement: "Move label to project.label." }, RemovedKey { pointer: "/description", replacement: "Move description to project.description." }, - RemovedKey { pointer: "/functions/*/title", replacement: "Write label." }, + RemovedKey { pointer: "/functions", replacement: "Rename functions to transforms, then replace each type: function and function member with type: transform and transform." }, + RemovedKey { pointer: "/transforms/*/title", replacement: "Write label." }, + RemovedKey { pointer: "/workflow/steps/*/*/function", replacement: "Write type: transform and name the Transform in the transform member." }, + RemovedKey { pointer: "/workflow/eventTriggers/*/input/function", replacement: "Write type: transform and name the Transform in the transform member." }, RemovedKey { pointer: "/operations/*/title", replacement: "Write label." }, RemovedKey { pointer: "/workflow/steps/*/title", replacement: "Write label." }, RemovedKey { pointer: "/connections", replacement: "Declare logical connections on Operation aliases under operations, then bind them in runtime.yaml." }, - RemovedKey { pointer: "/functionsFile", replacement: "Declare named typed Functions under functions, each with its source asset." }, + RemovedKey { pointer: "/functionsFile", replacement: "Declare named typed Transforms under transforms, each with its source asset." }, RemovedKey { pointer: "/deadlineSeconds", replacement: "Move deadlineSeconds to workflow.deadlineSeconds." }, RemovedKey { pointer: "/start", replacement: "Move start to workflow.start." }, RemovedKey { pointer: "/steps", replacement: "Move steps to workflow.steps and use Operation aliases." }, RemovedKey { pointer: "/outcomes", replacement: "Move outcomes to workflow.outcomes." }, - RemovedKey { pointer: "/workflow/steps/*/*/arguments", replacement: "Use inputs with the Function signature's named references." }, + RemovedKey { pointer: "/workflow/steps/*/*/arguments", replacement: "Use inputs with the Transform signature's named references." }, ], }; @@ -74,7 +77,7 @@ pub struct CoordinatorProject { types: BTreeMap, /// Named typed bounded pure computations over one object of named inputs. #[serde(default)] - functions: BTreeMap, + transforms: BTreeMap, /// Local aliases for exact versioned host Operations and logical deployment connections. #[serde(default)] operations: BTreeMap, @@ -164,7 +167,7 @@ struct AuthoredOperation { /// or external command Operation. #[serde(default)] response_schema: Option, - /// The typed pure Function that interprets an external command's provider + /// The typed pure Transform that interprets an external command's provider /// response into an accepted result, a declared refusal or an uncertain /// outcome. Required on, and accepted only on, `external.command/v1`. #[serde(default)] @@ -194,7 +197,7 @@ struct AuthoredOperation { enum AuthoredCompletion { /// Repeats the accepted read under host-owned transport and credentials. BoundedPoll { - /// The typed pure Function that turns the saved command and response into an observation. + /// The typed pure Transform that turns the saved command and response into an observation. interpret: LocalId, /// Seconds between pending observations; the host may impose a stricter minimum. interval_seconds: BoundedU32<1, 86_400>, @@ -205,16 +208,16 @@ registry_platform_yaml::tagged_union!(AuthoredCompletion); #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase", deny_unknown_fields)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] -struct AuthoredFunction { +struct AuthoredTransform { /// The pinned pure runtime; rhai has no clock, network, database or credential capability. - runtime: FunctionRuntime, + runtime: TransformRuntime, /// A local reviewed source asset inside the project directory. source: String, /// One public source function taking exactly one named-input object. entrypoint: String, /// Named input schemas or references; every declared input is required exactly once. inputs: BTreeMap, - /// The declared result schema or mapping; Functions and the host enforce it. + /// The declared result schema or mapping; Transforms and the host enforce it. output: Schema, /// Optional narrowing of the bounded pure profile; omitted limits retain the default ceiling. #[serde(default)] @@ -232,7 +235,7 @@ struct AuthoredFunction { #[derive(Debug, Deserialize)] #[serde(rename_all = "kebab-case")] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] -enum FunctionRuntime { +enum TransformRuntime { Rhai, } @@ -424,7 +427,7 @@ enum Member { /// A literal JSON value; it remains subject to bounded value checks. value: ForeignValue, }, - /// Builds a nested object member by member, never with a Function. + /// Builds a nested object member by member, never with a Transform. Fields { /// Object members built from typed references, literals or nested fields. fields: Fields, @@ -442,10 +445,10 @@ registry_platform_yaml::tagged_union!(Member); #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] #[cfg_attr(feature = "schema", schemars(!remote, tag = "type"))] enum AuthoredMapping { - /// Computes a value with a declared typed pure Function. - Function { - /// A declared pure Function called with an object of named inputs. - function: LocalId, + /// Computes a value with a declared typed pure Transform. + Transform { + /// A declared pure Transform called with an object of named inputs. + transform: LocalId, /// Named input schemas or references; every declared input is required exactly once. inputs: BTreeMap, }, @@ -617,7 +620,7 @@ enum AuthoredStep { Finish { /// One declared terminal outcome name. outcome: LocalId, - /// The declared result schema or mapping; Functions and the host enforce it. + /// The declared result schema or mapping; Transforms and the host enforce it. #[serde(default)] output: Option, /// An optional human label; it changes neither stable identity nor behavior revision. @@ -799,9 +802,9 @@ impl From for crate::compare::Condition { impl From for Mapping { fn from(mapping: AuthoredMapping) -> Self { let reference = match mapping { - AuthoredMapping::Function { function, inputs } => { + AuthoredMapping::Transform { transform, inputs } => { return Self::Function { - function: function.into_string(), + function: transform.into_string(), inputs: inputs .into_iter() .map(|(id, reference)| (id.into_string(), reference.into())) @@ -855,7 +858,7 @@ pub(crate) fn asset_path(root: &Path, asset: &str) -> Result CoordinatorError::new("definition.read", "the project asset is unavailable") .with_exit(3) .suggest( - "Restore the named generated contract or Function source asset inside the project.", + "Restore the named generated contract or Transform source asset inside the project.", ) })?; if !candidate.starts_with(&root) || !candidate.is_file() { @@ -960,8 +963,8 @@ fn project_integrity_diagnostics( map_ids("/types", &project.types), ), ( - "coordinator.project.function-id-collision", - map_ids("/functions", &project.functions), + "coordinator.project.transform-id-collision", + map_ids("/transforms", &project.transforms), ), ( "coordinator.project.operation-id-collision", @@ -1002,13 +1005,13 @@ fn project_integrity_diagnostics( ), )); } - for (id, function) in &project.functions { + for (id, function) in &project.transforms { errors.extend(collisions( document, - "coordinator.project.function-input-id-collision", + "coordinator.project.transform-input-id-collision", &map_ids( &format!( - "/functions/{}/inputs", + "/transforms/{}/inputs", registry_platform_yaml::escape_pointer_segment(id.as_str()) ), &function.inputs, @@ -1054,15 +1057,15 @@ fn project_integrity_diagnostics( let groups = [ ( - "coordinator.project.duplicate-function-label", - "functions", + "coordinator.project.duplicate-transform-label", + "transforms", project - .functions + .transforms .iter() .filter_map(|(id, item)| { item.label.as_ref().map(|label| { let pointer = format!( - "/functions/{}/label", + "/transforms/{}/label", registry_platform_yaml::escape_pointer_segment(id.as_str()) ); (id.as_str().to_owned(), label.clone(), pointer) @@ -1292,13 +1295,13 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { (Operation::ExternalCommand, None) => { return Err(schema_error( format!("/operations/{id}/interpret"), - "external.command/v1 requires interpret: the Function that turns the provider response into an accepted result, a declared refusal or an uncertain outcome", + "external.command/v1 requires interpret: the Transform that turns the provider response into an accepted result, a declared refusal or an uncertain outcome", )); } (_, Some(_)) => { return Err(schema_error( format!("/operations/{id}/interpret"), - "only external.command/v1 accepts an interpretation Function", + "only external.command/v1 accepts an interpretation Transform", )); } (_, None) => {} @@ -1366,7 +1369,7 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { }, ); } - // Base operation schemas resolve before Function signatures. No completion + // Base operation schemas resolve before Transform signatures. No completion // output may take part in that graph, so a completion cannot define itself. let raw_operations = operations.clone(); let resolver = Schemas { @@ -1385,8 +1388,8 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { .transpose()?; } let base = operations.clone(); - // Interpretation Functions can see only resolved base Operation schemas - // and host-owned completions. Downstream Functions resolve after bounded + // Interpretation Transforms can see only resolved base Operation schemas + // and host-owned completions. Downstream Transforms resolve after bounded // completion bindings, so ordinary mappings can consume their typed output. let resolver = Schemas { types: &raw_types, @@ -1407,7 +1410,7 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { .collect::>(); let mut functions = BTreeMap::new(); let mut downstream = Vec::new(); - for (id, function) in project.functions { + for (id, function) in project.transforms { if interpreters.contains(id.as_str()) { functions.insert( id.as_str().to_owned(), @@ -1425,16 +1428,19 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { .expect("the base alias exists"); let field = format!("/operations/{operation_id}/interpret"); let function = functions.get(interpret.as_str()).ok_or_else(|| { - schema_error(field.clone(), "the interpretation Function is not declared") + schema_error( + field.clone(), + "the interpretation Transform is not declared", + ) })?; if function.inputs.len() != 2 || function.inputs.get("command") != Some(&operation.input) || function.inputs.get("response") != Some(&operation.output) { - return Err(schema_error(field, "the interpretation Function must take command and response with the command's exact input and response schemas")); + return Err(schema_error(field, "the interpretation Transform must take command and response with the command's exact input and response schemas")); } let (output, refusal) = - command_interpretation(&function.output, &format!("/functions/{interpret}/output"))?; + command_interpretation(&function.output, &format!("/transforms/{interpret}/output"))?; operation.response = Some(std::mem::replace(&mut operation.output, output)); operation.refusal = refusal; operation.interpret = Some(interpret.into_string()); @@ -1464,17 +1470,17 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { let function = functions.get(interpret.as_str()).ok_or_else(|| { schema_error( format!("/operations/{operation_id}/completions/{name}/interpret"), - "the interpretation Function is not declared", + "the interpretation Transform is not declared", ) })?; if function.inputs.len() != 2 || function.inputs.get("command") != Some(&operation.input) || function.inputs.get("response") != Some(&operation.output) { - return Err(schema_error(format!("/operations/{operation_id}/completions/{name}/interpret"), "the interpretation Function must take command and response with the owning Operation's exact schemas")); + return Err(schema_error(format!("/operations/{operation_id}/completions/{name}/interpret"), "the interpretation Transform must take command and response with the owning Operation's exact schemas")); } let output = - terminal_schema(&function.output, &format!("/functions/{interpret}/output"))?; + terminal_schema(&function.output, &format!("/transforms/{interpret}/output"))?; operation.completions.insert( name, CompletionDefinition { @@ -1755,7 +1761,7 @@ fn compile(project: CoordinatorProject, path: &Path) -> Result { fn resolve_function( id: &str, - function: AuthoredFunction, + function: AuthoredTransform, resolver: &Schemas<'_>, ) -> Result { let _runtime = function.runtime; @@ -1767,14 +1773,14 @@ fn resolve_function( resolver .resolve( &schema.0.into_value(), - &format!("/functions/{id}/inputs/{name}"), + &format!("/transforms/{id}/inputs/{name}"), ) .map(|schema| (name, schema)) }) .collect::>>()?; let output = resolver.resolve( &function.output.0.into_value(), - &format!("/functions/{id}/output"), + &format!("/transforms/{id}/output"), )?; Ok(FunctionDefinition { runtime: "rhai".into(), @@ -1816,8 +1822,8 @@ fn reference_sites(document: &Document) -> BTreeMap { - Some(format!("/functions/{id}")) + ("transform" | "interpret", Some(id)) if !schema => { + Some(format!("/transforms/{id}")) } ( "next" | "onTimeout" | "onCancel" | "onDeclaredRefusal" | "step", @@ -1851,7 +1857,7 @@ fn reference_sites(document: &Document) -> BTreeMap { Some(format!("asset:{asset}")) @@ -1936,8 +1942,8 @@ fn reference_sites(document: &Document) -> BTreeMap Result<()> { } /// The step output and declared refusal an external command's interpretation -/// establishes. The Function returns one closed object per state: `accepted` +/// establishes. The Transform returns one closed object per state: `accepted` /// with a required `result`, and optionally `refused` with a required closed /// enum `code` and `uncertain`. The step output is the accepted result, still /// bound to the interpretation's own local definitions; the refusal admits only @@ -2385,10 +2391,10 @@ pub(crate) fn positioned(document: &Document, error: CoordinatorError) -> Coordi } // A function's own definition is placed in functions.rhai; a function // that fails while a step evaluates it is placed at that step. - if error.code.starts_with("function.") + if error.code.starts_with("transform.") && !matches!( error.code.as_str(), - "function.value-limit" | "function.json" + "transform.value-limit" | "transform.json" ) && error.file.as_deref().map(std::path::PathBuf::as_path) != Some(Path::new("workflow.yaml")) @@ -2490,7 +2496,7 @@ pub fn project_schema() -> std::result::Result { maps(&mut schema); for (pointer, minimum, maximum) in [ ("/properties/operations", 0, 64), - ("/properties/functions", 0, 128), + ("/properties/transforms", 0, 128), ("/properties/types", 0, 128), ("/$defs/AuthoredWorkflow/properties/eventTriggers", 0, 16), ("/$defs/AuthoredWorkflow/properties/calendarTriggers", 0, 1), @@ -2510,13 +2516,13 @@ pub fn project_schema() -> std::result::Result { if variant .pointer("/properties/type/const") .and_then(Value::as_str) - == Some("function") + == Some("transform") { variant["properties"]["inputs"]["maxProperties"] = json!(16); } } } - if let Some(inputs) = schema.pointer_mut("/$defs/AuthoredFunction/properties/inputs") { + if let Some(inputs) = schema.pointer_mut("/$defs/AuthoredTransform/properties/inputs") { inputs["maxProperties"] = json!(16); } let mut text = serde_json::to_string_pretty(&schema)?; diff --git a/crates/registry-coordinator/src/cli.rs b/crates/registry-coordinator/src/cli.rs index af486e8715..accdfc4ccb 100644 --- a/crates/registry-coordinator/src/cli.rs +++ b/crates/registry-coordinator/src/cli.rs @@ -106,8 +106,8 @@ impl ListTurn { /// What `explain` describes without a project. #[derive(Subcommand)] enum ExplainTopic { - /// List the helpers a pure Function may call, with the interpreter ABI and limits. - Functions, + /// List the helpers a pure Transform may call, with the interpreter ABI and limits. + Transforms, } mod identity_facts; @@ -155,7 +155,7 @@ enum Command { #[command(subcommand)] topic: GenerateTopic, }, - /// Validate the workflow, functions and root YAML companions offline. + /// Validate the workflow, Transforms and root YAML companions offline. Check { #[arg(long)] /// Directory containing workflow.yaml and its declared code and contract assets. @@ -174,7 +174,7 @@ enum Command { /// Check under the production posture. production: bool, }, - /// Explain a checked graph, mappings and execution bounds offline, or the helpers Functions may call. + /// Explain a checked graph, mappings and execution bounds offline, or the helpers Transforms may call. #[command(args_conflicts_with_subcommands = true, subcommand_negates_reqs = true)] Explain { #[arg(long, required = true)] @@ -971,7 +971,7 @@ async fn execute( Ok(json!({"status":"generated","output":output})) } Command::Check { project, explain, deny_warnings, environment, .. } => check(project.as_deref(), runtime_config(cli)?.as_deref(), *explain, *deny_warnings, *environment, declared, explicit_settings), - Command::Explain { topic: Some(ExplainTopic::Functions), .. } => Ok(crate::functions::explain()), + Command::Explain { topic: Some(ExplainTopic::Transforms), .. } => Ok(crate::functions::explain()), Command::Explain { project, .. } => check(project.as_deref(), runtime_config(cli)?.as_deref(), true, false, false, declared, explicit_settings), Command::Test { project, fixtures } => test(project, fixtures.as_deref()), Command::Package { project, output } => { @@ -1623,9 +1623,9 @@ fn render_human(cli: &Cli, value: &Value) -> String { render_explain(value) } Command::Explain { - topic: Some(ExplainTopic::Functions), + topic: Some(ExplainTopic::Transforms), .. - } => render_functions(value), + } => render_transforms(value), Command::Check { .. } => { let mut out = String::new(); if let Some(workflow) = value["workflow"].as_str() { @@ -1780,15 +1780,15 @@ fn render_explain(value: &Value) -> String { .map(|(limit, bound)| format!("{limit} {bound}")) .collect::>() .join(", "); - out.push_str(&format!("Function limits: {limits}\n")); + out.push_str(&format!("Transform limits: {limits}\n")); out.push_str(&format!("Recovery: {}\n", text(&value["recovery"]))); out } /// The profile, then its helper names in lines a terminal can show. -fn render_functions(value: &Value) -> String { +fn render_transforms(value: &Value) -> String { let mut out = format!( - "Pure function helpers, profile {}\nInterpreter ABI: {}\nFunction limits: {}\nHelpers:\n", + "Transform helpers, profile {}\nInterpreter ABI: {}\nFunction limits: {}\nHelpers:\n", text(&value["profile"]), text(&value["interpreterAbi"]), value["limits"] @@ -1822,7 +1822,7 @@ fn render_functions(value: &Value) -> String { /// A step mapping as one phrase: `f(input, step a /b)`, `{m: input /n}` or /// one reference. fn mapping(value: &Value) -> String { - if let Some(function) = value["function"].as_str() { + if let Some(function) = value["transform"].as_str() { let arguments = value["arguments"] .as_array() .into_iter() diff --git a/crates/registry-coordinator/src/compare.rs b/crates/registry-coordinator/src/compare.rs index 217cfb2985..8aaa762fa6 100644 --- a/crates/registry-coordinator/src/compare.rs +++ b/crates/registry-coordinator/src/compare.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 //! The compare decision of a choose step: an ordered list of tests over typed -//! values that routes to `matched` or `unmatched`. A compare holds no Function, +//! values that routes to `matched` or `unmatched`. A compare holds no Transform, //! no nesting and no clock, so the same input and step outputs always take the //! same route. //! @@ -358,7 +358,7 @@ mod tests { fn only_a_compare_that_cannot_test_its_value_is_a_failed_choice() { let choice = CoordinatorError::new("mapping.choice", "the value is missing"); assert_eq!(failure_code(&choice), "choice-invalid"); - for code in ["mapping.path", "mapping.branch", "function.failed"] { + for code in ["mapping.path", "mapping.branch", "transform.failed"] { let error = CoordinatorError::new(code, "refused"); assert_eq!(failure_code(&error), "mapping-invalid", "{code}"); } diff --git a/crates/registry-coordinator/src/completion.rs b/crates/registry-coordinator/src/completion.rs index a6013d1308..6771c5a16e 100644 --- a/crates/registry-coordinator/src/completion.rs +++ b/crates/registry-coordinator/src/completion.rs @@ -23,7 +23,7 @@ use registry_platform_crypto::delivery_signature::{ use registry_review_protocol::ReviewCompletion; use uuid::Uuid; -/// Interpret one bounded external observation using the pinned pure Function. +/// Interpret one bounded external observation using the pinned pure Transform. /// The original saved command is the only correlation input; mappings are not /// evaluated again while waiting. Invalid evidence remains a recovery hold. pub(crate) fn interpret_poll( @@ -65,7 +65,7 @@ pub(crate) fn interpret_poll( }; match value.get("state").and_then(serde_json::Value::as_str) { Some("pending") => CompletionObservation::Pending { retry_after: None }, - // The Function's complete interpretation envelope has been checked. + // The Transform's complete interpretation envelope has been checked. // The worker or scenario checks the cached terminal contract once. Some("complete" | "refused") => CompletionObservation::Settled(value), _ => hold(), diff --git a/crates/registry-coordinator/src/contracts.rs b/crates/registry-coordinator/src/contracts.rs index f95bfb593f..efa16f2389 100644 --- a/crates/registry-coordinator/src/contracts.rs +++ b/crates/registry-coordinator/src/contracts.rs @@ -28,7 +28,7 @@ pub struct OperationContract { output_validator: JSONSchema, refusal_validator: Option, /// The complete provider response an `external.command/v1` interpretation - /// Function reads, before it becomes an accepted result or a refusal. + /// Transform reads, before it becomes an accepted result or a refusal. response_validator: Option, } @@ -172,7 +172,7 @@ impl OperationContract { Ok(self) } - /// Checks a provider response before an interpretation Function reads it. + /// Checks a provider response before an interpretation Transform reads it. /// An operation without a declared response accepts none. pub fn check_response(&self, value: &Value) -> Result<(), Violation> { match &self.response_validator { @@ -1255,13 +1255,13 @@ mod derived { (input::(), output::()) } - /// The command body is a JSON object a pinned pure Function builds; the + /// The command body is a JSON object a pinned pure Transform builds; the /// output is the bounded provider response the pinned interpretation - /// Function receives, never the step result itself. + /// Transform receives, never the step result itself. pub(super) fn external_command() -> (Value, Value) { let mut response = output::(); response["description"] = json!( - "The bounded provider response. The operation's interpret Function \ + "The bounded provider response. The operation's interpret Transform \ receives it with the command and returns the step result, a declared \ refusal, or an uncertain outcome." ); diff --git a/crates/registry-coordinator/src/definition.rs b/crates/registry-coordinator/src/definition.rs index 813d9326ee..2b3d45be7c 100644 --- a/crates/registry-coordinator/src/definition.rs +++ b/crates/registry-coordinator/src/definition.rs @@ -17,7 +17,7 @@ use serde_json::Value; use crate::{ functions::{ - check_value, Functions, INTERPRETER_ABI, MAXIMUM_FUNCTION_ARRAY_ITEMS, + check_value, Transforms, INTERPRETER_ABI, MAXIMUM_FUNCTION_ARRAY_ITEMS, MAXIMUM_FUNCTION_CALL_LEVELS, MAXIMUM_FUNCTION_EXPRESSION_DEPTH, MAXIMUM_FUNCTION_MAP_ENTRIES, MAXIMUM_FUNCTION_OPERATIONS, MAXIMUM_FUNCTION_SOURCE_BYTES, MAXIMUM_FUNCTION_STRING_BYTES, @@ -53,7 +53,7 @@ pub struct Definition { pub workflow: Workflow, pub digest: String, frozen: Snapshot, - functions: Functions, + functions: Transforms, input_schema: Arc, outcome_schemas: BTreeMap>, operation_contracts: BTreeMap>, @@ -94,12 +94,14 @@ pub struct ServiceDeadline { pub next: String, } -/// How a step computes its value: a pure function over references, an +/// How a step computes its value: a pure Transform over references, an /// object built member by member from references and nested objects, or one /// reference. #[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] #[serde(untagged, deny_unknown_fields)] pub enum Mapping { + // Frozen v1alpha1 snapshots and semantic revisions keep this member. + // Authoring and operator explanations use the Transform vocabulary. Function { function: String, inputs: BTreeMap, @@ -114,7 +116,7 @@ pub enum Mapping { } /// One member of a fields mapping: a reference, or a nested object built -/// the same way. A member never calls a Function. +/// the same way. A member never calls a Transform. #[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)] #[serde(untagged)] pub enum Member { @@ -188,6 +190,15 @@ pub(crate) fn valid_field_name(name: &str) -> bool { } impl Mapping { + fn explain(&self) -> Value { + match self { + Self::Function { function, inputs } => { + serde_json::json!({"transform":function,"inputs":inputs}) + } + mapping => serde_json::json!(mapping), + } + } + /// Each reference with its member path below the mapping. pub(crate) fn references(&self) -> Vec<(String, &Reference)> { match self { @@ -370,13 +381,13 @@ pub struct ResolvedOperation { pub refusal: Option, pub completions: BTreeMap, pub revision: String, - /// The pinned pure Function that turns an external command's saved + /// The pinned pure Transform that turns an external command's saved /// command and bounded provider response into an accepted result, a /// declared refusal or an uncertain outcome. Present only on /// `external.command/v1`. #[serde(default, skip_serializing_if = "Option::is_none")] pub interpret: Option, - /// The bounded provider response the interpretation Function reads. + /// The bounded provider response the interpretation Transform reads. /// Present only on `external.command/v1`, whose `output` is the /// interpreted accepted result. #[serde(default, skip_serializing_if = "Option::is_none")] @@ -680,14 +691,14 @@ impl Definition { .map_err(|error| { crate::authoring::positioned( &document, - error.at(&path, format!("/functions/{name}/source")), + error.at(&path, format!("/transforms/{name}/source")), ) })?; let source = read_text(&source_path, MAXIMUM_FUNCTION_SOURCE_BYTES as usize) .map_err(|error| { crate::authoring::positioned( &document, - error.at(&path, format!("/functions/{name}/source")), + error.at(&path, format!("/transforms/{name}/source")), ) })?; sources.insert(function.source.clone(), source); @@ -813,7 +824,7 @@ impl Definition { Err(error) => findings.push(error), _ => {} } - let functions = Functions::compile(&frozen.sources, &frozen.workflow.functions) + let functions = Transforms::compile(&frozen.sources, &frozen.workflow.functions) .map_err(|refused| findings.extend(refused)) .ok(); let input_schema = compile_schema(&frozen.workflow.input) @@ -967,10 +978,7 @@ impl Definition { }; let mut item = serde_json::json!({"id":id,"kind":kind,"next":step.targets()}); if let Some(mapping) = step.mapping() { - item["mapping"] = serde_json::json!(mapping); - if let Mapping::Function { inputs, .. } = mapping { - item["mapping"]["inputs"] = serde_json::json!(inputs); - } + item["mapping"] = mapping.explain(); } match step { Step::Call { @@ -1026,9 +1034,13 @@ impl Definition { item }) .collect::>(); + let mut event_triggers = serde_json::json!(self.workflow.event_triggers); + for (id, trigger) in &self.workflow.event_triggers { + event_triggers[id]["input"] = trigger.input.explain(); + } let mut report = serde_json::json!({"workflow":self.workflow.id,"version":self.workflow.version,"workflowRevision":self.digest, "start":self.workflow.start,"deadlineSeconds":parse_duration(&self.workflow.deadline)?.num_seconds(), - "contracts":contracts,"operations":self.workflow.operations,"operationContracts":operation_contracts,"calendarTriggers":self.workflow.calendar_triggers,"eventTriggers":self.workflow.event_triggers,"functions":self.workflow.functions,"types":self.workflow.types,"references":self.workflow.references,"presentation":self.workflow.presentation,"connections":self.workflow.connections,"outcomes":self.workflow.outcomes.keys().collect::>(),"steps":steps, + "contracts":contracts,"operations":self.workflow.operations,"operationContracts":operation_contracts,"calendarTriggers":self.workflow.calendar_triggers,"eventTriggers":event_triggers,"transforms":self.workflow.functions,"types":self.workflow.types,"references":self.workflow.references,"presentation":self.workflow.presentation,"connections":self.workflow.connections,"outcomes":self.workflow.outcomes.keys().collect::>(),"steps":steps, "limits":crate::functions::limits(),"valueLimits":crate::functions::value_limits(),"interpreterAbi":self.frozen.interpreter_abi,"schemaAbi":self.frozen.schema_abi,"adapterAbi":self.frozen.adapter_abi, "recovery":"A run restores this exact snapshot. retry-same preserves a frozen command and cannot adopt edited mappings or repeat an uncertain hold-after-dispatch evaluation."}); @@ -1355,7 +1367,7 @@ fn seal_revisions(workflow: &mut Workflow, sources: &BTreeMap) - for function in workflow.functions.values_mut() { let source = sources .get(&function.source) - .ok_or_else(|| fail("function.definition"))?; + .ok_or_else(|| fail("transform.definition"))?; function.revision = crate::functions::revision(function, source)?; } for operation in workflow.operations.values_mut() { @@ -1395,9 +1407,9 @@ fn seal_revisions(workflow: &mut Workflow, sources: &BTreeMap) - Ok(()) } -/// An external command pins one interpretation Function over its exact +/// An external command pins one interpretation Transform over its exact /// command and response schemas, and its output and refusal are exactly what -/// that Function declares. No other operation carries an interpretation. +/// that Transform declares. No other operation carries an interpretation. fn command_interpretation_valid(flow: &Workflow, operation: &ResolvedOperation) -> bool { if operation.uses != Operation::ExternalCommand { return operation.interpret.is_none() && operation.response.is_none(); @@ -1579,7 +1591,7 @@ fn build_fields( /// What computed a mapping's value, as a refusal names it. fn producer(mapping: &Mapping) -> String { match mapping { - Mapping::Function { function, .. } => format!("function {function}"), + Mapping::Function { function, .. } => format!("Transform {function}"), Mapping::Fields { .. } => "the fields mapping".into(), Mapping::Compare { .. } => "the compare".into(), Mapping::Reference(_) => "the reference".into(), @@ -1679,7 +1691,7 @@ fn workflow_findings(flow: &Workflow) -> Vec { ("connections", flow.connections.len(), 0, 16), ("outcomes", flow.outcomes.len(), 1, 64), ("operations", flow.operations.len(), 0, 64), - ("functions", flow.functions.len(), 0, 128), + ("transforms", flow.functions.len(), 0, 128), ("types", flow.types.len(), 0, 128), ("contracts", flow.contracts.len(), 0, 16), ] { @@ -1878,11 +1890,11 @@ fn workflow_findings(flow: &Workflow) -> Vec { } if let Some(Mapping::Function { function, inputs }) = step.mapping() { match flow.functions.get(function) { - None => findings.push(authored("mapping.function", &format!("steps.{name}.{}.function", step.role()), - &format!("Function {function} is not declared; available Functions are {}", listed(flow.functions.keys().map(String::as_str))), - "Name one of the declared Functions, or add its typed signature and reviewed source asset.")), - Some(signature) if inputs.keys().ne(signature.inputs.keys()) => findings.push(authored("mapping.function", &format!("steps.{name}.{}.inputs",step.role()), - "the named Function inputs must match its declared signature exactly", "Supply every declared input name once and remove undeclared names.")), + None => findings.push(authored("mapping.transform", &format!("steps.{name}.{}.transform", step.role()), + &format!("Transform {function} is not declared; available Transforms are {}", listed(flow.functions.keys().map(String::as_str))), + "Name one of the declared Transforms, or add its typed signature and reviewed source asset.")), + Some(signature) if inputs.keys().ne(signature.inputs.keys()) => findings.push(authored("mapping.transform", &format!("steps.{name}.{}.inputs",step.role()), + "the named Transform inputs must match its declared signature exactly", "Supply every declared input name once and remove undeclared names.")), _ => {}, } } @@ -2332,12 +2344,12 @@ pub(crate) fn validate_mapping( return Err(authored( "mapping.reference", &base, - "waitUntil and choose take a function or a single reference, not fields", - "Select the instant or label with one reference, or compute it in a function.", + "waitUntil and choose take a Transform or a single reference, not fields", + "Select the instant or label with one reference, or compute it in a Transform.", )) } (_, Mapping::Function { function, .. }) if !valid_name(function) => { - return Err(fail("mapping.function").at("workflow.yaml", format!("steps.{name}"))) + return Err(fail("mapping.transform").at("workflow.yaml", format!("steps.{name}"))) } (_, Mapping::Fields { fields }) => fields_bounds(fields, &base, 1, &mut 0)?, (_, Mapping::Compare { compare }) => compare.check(step, name)?, @@ -2354,7 +2366,7 @@ pub(crate) fn validate_mapping( "mapping.literal", &format!("{field}.value"), "the literal exceeds the structured value bounds", - "Shorten the literal or build the value in a function; literals hold at most 32 levels, 4096 nodes, 16384-byte strings, 131072 canonical bytes, and integers within 2^53 - 1.", + "Shorten the literal or build the value in a Transform; literals hold at most 32 levels, 4096 nodes, 16384-byte strings, 131072 canonical bytes, and integers within 2^53 - 1.", ) })?; continue; @@ -2539,16 +2551,16 @@ fn fail(code: &'static str) -> CoordinatorError { "definition.cycle" => "the graph contains a cycle", "definition.unreachable" => "a step is not reachable from start", "definition.deadline" => "deadline must be a positive s, m, h or d duration no longer than 365 days", - "mapping.branch" => "the function did not return a declared branch label", + "mapping.branch" => "the Transform did not return a declared branch label", "mapping.timestamp" => "waitUntil did not return an RFC 3339 instant", "mapping.missing-output" => "a declared prior call output is absent", "mapping.path" => "the reference path names no member of the value it reads", - "mapping.call-shape" => "the call input function did not return an object", + "mapping.call-shape" => "the call input Transform did not return an object", "definition.input" => "the start input does not satisfy its authored schema", "definition.outcome" => "the final output does not satisfy the declared outcome schema", "definition.schema" => "the schema is invalid or uses an unsupported format or external reference", _ => "the workflow definition or mapping was refused", - }).suggest("Inspect the authored field and function, correct the definition, then rerun check. Admitted runs keep their original snapshot.") + }).suggest("Inspect the authored field and Transform, correct the definition, then rerun check. Admitted runs keep their original snapshot.") } /// A run cancels only work it opened, so a cancel's input is a fields @@ -2559,7 +2571,7 @@ fn fail(code: &'static str) -> CoordinatorError { /// - a review cancel's `request` is the whole accepted request, with no path, /// a `casework.submit-review-request/v1` step returned. /// -/// Any other source, such as the run input, a literal, a Function, a nested +/// Any other source, such as the run input, a literal, a Transform, a nested /// object or another step, is refused with the code, message and suggestion /// returned here. Ordinary step reference checks then hold that the step ran /// on every route here. diff --git a/crates/registry-coordinator/src/event_trigger.rs b/crates/registry-coordinator/src/event_trigger.rs index 0361df8242..6dd75c724c 100644 --- a/crates/registry-coordinator/src/event_trigger.rs +++ b/crates/registry-coordinator/src/event_trigger.rs @@ -204,7 +204,7 @@ pub(crate) fn check_key_references( } /// Resolved governed trigger. The package revision covers every member, the -/// event schema and all referenced Function implementation bytes. +/// event schema and all referenced Transform implementation bytes. #[derive(Clone, Debug, Deserialize, Serialize, PartialEq)] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct EventTrigger { @@ -217,7 +217,7 @@ pub struct EventTrigger { impl EventTrigger { /// Evaluate only after durable duplicate lookup. Exact replay must not be - /// reinterpreted by an edited active mapping or Function. + /// reinterpreted by an edited active mapping or Transform. pub(crate) fn map(&self, definition: &Definition, event: &Value) -> Result { crate::functions::check_value(event)?; let schema = crate::definition::compile_schema(&self.event)?; @@ -463,7 +463,7 @@ pub fn verify_delivery( let event_source = envelope.source.as_str(); let value = serde_json::to_value(&envelope).map_err(|_| invalid_event())?; crate::functions::check_value(&value).map_err(|error| { - if error.code == "function.value-limit" { + if error.code == "transform.value-limit" { event_too_large() } else { invalid_event() diff --git a/crates/registry-coordinator/src/event_trigger_tests.rs b/crates/registry-coordinator/src/event_trigger_tests.rs index cfb13e052f..253cdf0ae4 100644 --- a/crates/registry-coordinator/src/event_trigger_tests.rs +++ b/crates/registry-coordinator/src/event_trigger_tests.rs @@ -666,7 +666,7 @@ fn a_function_used_only_by_an_event_trigger_is_hash_covered() { let workflow = project_text() .replace( "workflow:\n input:", - r#"functions: + r#"transforms: event-input: runtime: rhai source: functions.rhai @@ -687,8 +687,8 @@ workflow: fields: recordId: {type: input, path: /data/recordId}"#, r#" input: - type: function - function: event-input + type: transform + transform: event-input inputs: event: {type: input}"#, ); diff --git a/crates/registry-coordinator/src/external_http.rs b/crates/registry-coordinator/src/external_http.rs index 0bc397e345..c6fa2cb42a 100644 --- a/crates/registry-coordinator/src/external_http.rs +++ b/crates/registry-coordinator/src/external_http.rs @@ -275,7 +275,7 @@ impl ExternalHttpConnection { /// so the same command can still be retried. A `Retry-After` either /// answer carries that the command cannot use is ignored. Only a status /// `command_status` classifies as interpreted reaches the operation's - /// pinned interpretation Function, which receives the response. + /// pinned interpretation Transform, which receives the response. pub async fn command( &self, input: &Value, @@ -478,12 +478,12 @@ impl ExternalHttpConnection { /// What an `external.command/v1` attempt does with the provider's HTTP status /// before any body is read. Only [`CommandStatus::Interpreted`] reaches the -/// operation's interpretation Function; scenario checks use the same -/// classification, so a synthetic response reply cannot show the Function +/// operation's interpretation Transform; scenario checks use the same +/// classification, so a synthetic response reply cannot show the Transform /// reading a status the worker never hands it. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub(crate) enum CommandStatus { - /// The bounded response goes to the interpretation Function. + /// The bounded response goes to the interpretation Transform. Interpreted, /// A redirect is never followed. It may answer an accepted command, so /// the command is uncertain. @@ -512,8 +512,8 @@ pub(crate) fn command_status(status: reqwest::StatusCode) -> CommandStatus { } /// Interpret one provider response to an `external.command/v1` call with the -/// project's pinned pure Function. The response is held to its declared -/// schema before the Function reads it. Anything the Function cannot turn into +/// project's pinned pure Transform. The response is held to its declared +/// schema before the Transform reads it. Anything the Transform cannot turn into /// an accepted result or a declared refusal leaves the command uncertain, /// never failed: the provider may already have applied it. No code carries a /// response or command value. diff --git a/crates/registry-coordinator/src/functions.rs b/crates/registry-coordinator/src/functions.rs index c0e567043d..dc068f2a06 100644 --- a/crates/registry-coordinator/src/functions.rs +++ b/crates/registry-coordinator/src/functions.rs @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 -//! Pure functions under one pinned, bounded interpreter profile. +//! Pure Transforms under one pinned, bounded interpreter profile. use crate::definition::{compile_schema, FunctionDefinition}; use chrono::{DateTime, Datelike, SecondsFormat, TimeDelta, Utc}; @@ -55,7 +55,7 @@ const PROFILE: RhaiProfile = RhaiProfile { }; #[derive(Clone)] -pub(crate) struct Functions { +pub(crate) struct Transforms { entries: BTreeMap, } @@ -83,7 +83,7 @@ fn profile(function: &FunctionDefinition) -> RhaiProfile { } } -impl Functions { +impl Transforms { pub(crate) fn compile( sources: &BTreeMap, definitions: &BTreeMap, @@ -96,7 +96,7 @@ impl Functions { let result = (|| { let source = sources .get(&function.source) - .ok_or_else(|| failure("function.definition"))?; + .ok_or_else(|| failure("transform.definition"))?; let limits = &function.limits; let ceiling = crate::definition::FunctionLimits::default(); if function.runtime != "rhai" @@ -119,20 +119,20 @@ impl Functions { || limits.source_bytes > ceiling.source_bytes || function.inputs.len() > 16 { - return Err(failure("function.limits") - .at("workflow.yaml", format!("/functions/{name}/limits"))); + return Err(failure("transform.limits") + .at("workflow.yaml", format!("/transforms/{name}/limits"))); } let ast = platform::compile_entrypoint(&profile(function), source, &function.entrypoint, &[1]) .map_err(|error| match error { - platform::RhaiCompileError::SourceBound => failure("function.source-limit").at(&function.source, "/"), - platform::RhaiCompileError::Parse(position) if refused_only_for_curry(source) => CoordinatorError::new("function.definition", "function source uses `curry`, which Coordinator Functions do not offer") + platform::RhaiCompileError::SourceBound => failure("transform.source-limit").at(&function.source, "/"), + platform::RhaiCompileError::Parse(position) if refused_only_for_curry(source) => CoordinatorError::new("transform.definition", "Transform source uses `curry`, which Coordinator Transforms do not offer") .at(&function.source, format!("line {} column {}", position.line().unwrap_or(0), position.position().unwrap_or(0))) .suggest("Pass the value as an argument where the function is called, for example add(1, x) instead of Fn(\"add\").curry(1).call(x)."), - platform::RhaiCompileError::Parse(position) => CoordinatorError::new("function.definition", syntax_refusal(source)) + platform::RhaiCompileError::Parse(position) => CoordinatorError::new("transform.definition", syntax_refusal(source)) .at(&function.source, format!("line {} column {}", position.line().unwrap_or(0), position.position().unwrap_or(0))) - .suggest("Correct the named Function source syntax and rerun check."), - platform::RhaiCompileError::Entrypoint => CoordinatorError::new("function.definition", "the Function entrypoint must name one public Rhai function taking one named-input object") - .at("workflow.yaml", format!("/functions/{name}/entrypoint")) + .suggest("Correct the named Transform source syntax and rerun check."), + platform::RhaiCompileError::Entrypoint => CoordinatorError::new("transform.definition", "the Transform entrypoint must name one public Rhai function taking one named-input object") + .at("workflow.yaml", format!("/transforms/{name}/entrypoint")) .suggest("Declare one public function with exactly one parameter for its named input object."), })?; let mut names = std::collections::BTreeSet::new(); @@ -141,7 +141,7 @@ impl Functions { .any(|function| !names.insert(function.name.to_owned())) || names.len() > 128 { - return Err(failure("function.definition").at(&function.source, "/")); + return Err(failure("transform.definition").at(&function.source, "/")); } let properties = function .inputs @@ -160,8 +160,8 @@ impl Functions { let output = std::sync::Arc::new(compile_schema(&function.output)?); let revision = revision(function, source)?; if function.revision != revision { - return Err(failure("function.revision") - .at("workflow.yaml", format!("/functions/{name}"))); + return Err(failure("transform.revision") + .at("workflow.yaml", format!("/transforms/{name}"))); } Ok(CompiledFunction { definition: function.clone(), @@ -172,7 +172,7 @@ impl Functions { })(); match result { Ok(compiled) => { - // Functions share one source, so each walk finds the same + // Transforms share one source, so each walk finds the same // calls; a call is reported once, at its position. let unknown = unknown_calls(&compiled); if unknown.is_empty() { @@ -203,46 +203,46 @@ impl Functions { let function = self .entries .get(name) - .ok_or_else(|| failure("function.definition"))?; + .ok_or_else(|| failure("transform.definition"))?; check_value(inputs)?; if !function.input.is_valid(inputs) { return Err(contract_failure( name, - "function.input", + "transform.input", &function.input, inputs, synthetic, )); } let arguments = - vec![rhai::serde::to_dynamic(inputs).map_err(|_| failure("function.input"))?]; + vec![rhai::serde::to_dynamic(inputs).map_err(|_| failure("transform.input"))?]; let engine = platform::build_engine(&profile(&function.definition), None, register_pure_packages); let value = platform::call_with_fresh_scope(&engine, &function.ast, &function.definition.entrypoint, arguments) .map_err(|error| { let refusal = failure(match platform::classify_failure(&error) { - platform::RhaiFailureCategory::ResourceExhausted => "function.resource-limit", - platform::RhaiFailureCategory::Other => "function.execution", + platform::RhaiFailureCategory::ResourceExhausted => "transform.resource-limit", + platform::RhaiFailureCategory::Other => "transform.execution", }); - if synthetic { CoordinatorError { message: format!("function {name} failed: {}", located(&function.definition.entrypoint, &error)), ..refusal } - .suggest(format!("Correct Function {name} in {} at the named position, or correct its synthetic inputs.", function.definition.source)) } + if synthetic { CoordinatorError { message: format!("Transform {name} failed: {}", located(&function.definition.entrypoint, &error)), ..refusal } + .suggest(format!("Correct Transform {name} in {} at the named position, or correct its synthetic inputs.", function.definition.source)) } else { refusal } })?; if holds_non_finite(&value, 0) { - let refusal = failure("function.execution"); + let refusal = failure("transform.execution"); return Err(if synthetic { - CoordinatorError { message: format!("function {name} returned NaN or an infinite number, which has no JSON form"), ..refusal } - .suggest(format!("Correct Function {name} so it never divides by zero or takes the square root of a negative number; test with is_finite first.")) + CoordinatorError { message: format!("Transform {name} returned NaN or an infinite number, which has no JSON form"), ..refusal } + .suggest(format!("Correct Transform {name} so it never divides by zero or takes the square root of a negative number; test with is_finite first.")) } else { refusal }); } - let value = rhai::serde::from_dynamic(&value).map_err(|_| failure("function.output"))?; + let value = rhai::serde::from_dynamic(&value).map_err(|_| failure("transform.output"))?; check_value(&value)?; if !function.output.is_valid(&value) { return Err(contract_failure( name, - "function.output", + "transform.output", &function.output, &value, synthetic, @@ -263,21 +263,21 @@ fn contract_failure( if !synthetic { return refusal; } - let role = if code == "function.input" { + let role = if code == "transform.input" { "named inputs" } else { "output" }; let rule = crate::definition::schema_refusal(schema, value).unwrap_or_default(); - CoordinatorError {message:format!("function {name} returned a value of class {}; its declared {role} schema refuses it{rule}",crate::definition::class(value)),..refusal} - .suggest(format!("Correct Function {name} or its synthetic input mappings to satisfy the named signature rule.")) + CoordinatorError {message:format!("Transform {name} returned a value of class {}; its declared {role} schema refuses it{rule}",crate::definition::class(value)),..refusal} + .suggest(format!("Correct Transform {name} or its synthetic input mappings to satisfy the named signature rule.")) } pub(crate) fn revision(function: &FunctionDefinition, source: &str) -> Result { let semantic = serde_json::json!({"runtime":function.runtime,"profile":function.profile,"capabilities":function.capabilities,"abi":function.abi,"entrypoint":function.entrypoint, "inputs":function.inputs.iter().map(|(name,schema)| (name,crate::definition::semantic_schema(schema))).collect::>(),"output":crate::definition::semantic_schema(&function.output),"limits":function.limits,"valueLimits":value_limits(),"sourceDigest":registry_platform_config::sha256_uri(source.as_bytes())}); let bytes = registry_platform_canonical_json::canonicalize_json(&semantic) - .map_err(|_| failure("function.definition"))?; + .map_err(|_| failure("transform.definition"))?; Ok(registry_platform_config::sha256_uri(&bytes)) } @@ -349,7 +349,7 @@ fn syntax_refusal(source: &str) -> String { .err() .map(|error| format!(": {}", error.err_type())) .unwrap_or_default(); - format!("function source has invalid or disabled syntax{reason}") + format!("Transform source has invalid or disabled syntax{reason}") } /// Bound structured values before conversion and after execution as well as @@ -376,23 +376,23 @@ pub(crate) fn check_value(value: &Value) -> Result<()> { } } if !walk(value, 0, &mut 0) { - return Err(failure("function.value-limit")); + return Err(failure("transform.value-limit")); } let bytes = registry_platform_canonical_json::canonicalize_json(value) - .map_err(|_| failure("function.json"))?; + .map_err(|_| failure("transform.json"))?; if bytes.len() > MAXIMUM_VALUE_BYTES { - return Err(failure("function.value-limit")); + return Err(failure("transform.value-limit")); } Ok(()) } fn failure(code: &'static str) -> CoordinatorError { CoordinatorError::new(code, match code { - "function.resource-limit" => "the function exceeded its operation, call-depth or value-size budget", - "function.value-limit" => "the structured value exceeded its size or depth budget", - "function.execution" => "the function could not evaluate its supplied values", - "function.source-limit" => "functions.rhai exceeds the 65536-byte source budget", - _ => "the pure function boundary refused the definition or value", + "transform.resource-limit" => "the Transform exceeded its operation, call-depth or value-size budget", + "transform.value-limit" => "the structured value exceeded its size or depth budget", + "transform.execution" => "the Transform could not evaluate its supplied values", + "transform.source-limit" => "functions.rhai exceeds the 65536-byte source budget", + _ => "the pure Transform boundary refused the definition or value", }).suggest("Inspect the named mapping and reduce bounded work or correct its declared arguments; values are omitted.") } @@ -424,7 +424,7 @@ fn register_pure_packages(engine: &mut Engine) { /// every host: IEEE 754 arithmetic (`sqrt` is correctly rounded), rounding, /// parsing and conversion. The package's libm functions (`sin`, `exp`, `ln`, /// `hypot` and the like) are left out because their last digits depend on the -/// host's math library, and Function results are recomputed when waits replay. +/// host's math library, and Transform results are recomputed when waits replay. fn register_deterministic_math(engine: &mut Engine) { engine .register_fn("PI", || std::f64::consts::PI) @@ -643,7 +643,7 @@ const INTERPRETER_CALLS: [&str; 6] = [ "type_of", ]; -/// The names a Function may call: every callable the pure profile registers, +/// The names a Transform may call: every callable the pure profile registers, /// listed once from a real engine so the list cannot drift from what runs. /// Operators, property accessors and the symbols the profile disables are not /// calls an author writes by name. @@ -668,7 +668,7 @@ pub(crate) fn helpers() -> &'static BTreeSet { } /// Array methods that take a function by value or by name. A string literal -/// given to one of them names a Function to call. `index_of` and `contains` +/// given to one of them names a Transform to call. `index_of` and `contains` /// are left out: they search for the string. const CALLBACK_METHODS: [&str; 16] = [ "for_each", @@ -694,7 +694,7 @@ const NAMING_CALLS: [&str; 2] = ["Fn", "is_def_fn"]; /// One finding for each call, in `name`'s source, to a name that is neither a /// profile helper nor a function the source defines. Calls are matched by -/// name alone, so a wrong argument count still fails when the Function runs. +/// name alone, so a wrong argument count still fails when the Transform runs. /// A string literal given to `Fn`, `is_def_fn` or an array method such as /// `map` is read as a function name. A method call is skipped when the source /// also uses its name as a map key or property, since it may call a function @@ -761,14 +761,14 @@ fn unknown_calls(function: &CompiledFunction) -> Vec { _ => "/".to_owned(), }; CoordinatorError::new( - "function.unknown-call", + "transform.unknown-call", format!( "`{callee}` is not available: it is neither a helper of {PURE_PROFILE} nor a function defined in {}", function.definition.source ), ) .at(&function.definition.source, location) - .suggest("Call a listed helper, such as trim, split and starts_with for strings or parse_int and abs for numbers, or define the function in the same source; `coordinatorctl explain functions` lists every helper.") + .suggest("Call a listed helper, such as trim, split and starts_with for strings or parse_int and abs for numbers, or define the function in the same source; `coordinatorctl explain transforms` lists every helper.") }) .collect() } @@ -831,8 +831,8 @@ const HELPER_NOTES: [&str; 2] = [ "A top-level const is not visible inside a function: read it as global::NAME, or pass it as an input.", ]; -/// What `coordinatorctl explain functions` reports: the profile, its -/// interpreter ABI and limits, and every helper a Function may call. +/// What `coordinatorctl explain transforms` reports: the profile, its +/// interpreter ABI and limits, and every helper a Transform may call. pub(crate) fn explain() -> Value { json!({ "profile": PURE_PROFILE, @@ -874,7 +874,7 @@ fn instant_refused() -> Box { } /// Structured JSON custody limits, shared by every host Operation boundary. -/// These are distinct from a pure Function's narrowed interpreter limits. +/// These are distinct from a pure Transform's narrowed interpreter limits. pub(crate) fn value_limits() -> Value { serde_json::json!({ "maximumBytes": MAXIMUM_VALUE_BYTES, diff --git a/crates/registry-coordinator/src/http.rs b/crates/registry-coordinator/src/http.rs index 46776e612e..67317527a0 100644 --- a/crates/registry-coordinator/src/http.rs +++ b/crates/registry-coordinator/src/http.rs @@ -1280,6 +1280,55 @@ mod problem_tests { } } + #[test] + fn openapi_uses_explicit_path_identifier_names() { + let document = openapi(); + let operations: [(&str, &str, &str, &[&str]); 8] = [ + ( + "/v1/workflows/{workflowId}", + "get", + "workflowContract", + &["workflowId"], + ), + ("/v1/runs/{runId}", "get", "runStatus", &["runId"]), + ("/v1/runs/{runId}/inspect", "get", "inspectRun", &["runId"]), + ("/v1/runs/{runId}/check", "post", "checkNow", &["runId"]), + ( + "/v1/runs/{runId}/retry-same", + "post", + "retrySame", + &["runId"], + ), + ("/v1/runs/{runId}/cancel", "post", "cancelRun", &["runId"]), + ( + "/v1/runs/{runId}/reconcile", + "post", + "reconcileRun", + &["runId"], + ), + ( + "/v1/events/{workflowId}/{triggerId}", + "post", + "admitEvent", + &["workflowId", "triggerId"], + ), + ]; + for (path, method, id, expected_names) in operations { + let operation = &document["paths"][path][method]; + assert_eq!(operation["operationId"], id, "{method} {path}"); + let parameters = operation["parameters"].as_array().unwrap(); + let names: Vec<_> = parameters + .iter() + .filter(|parameter| parameter["in"] == "path") + .map(|parameter| { + assert_eq!(parameter["required"], true, "{method} {path}"); + parameter["name"].as_str().unwrap() + }) + .collect(); + assert_eq!(names.as_slice(), expected_names, "{method} {path}"); + } + } + #[test] fn openapi_summarizes_every_operation_once() { let document = openapi(); @@ -1963,7 +2012,7 @@ const BODY_PROBLEMS: [ProblemCode; 3] = [ ProblemCode::RequestBodyTooLarge, ProblemCode::RequestUnsupportedMediaType, ]; -/// Every problem resolving the `{run}` path segment can answer. +/// Every problem resolving the `{runId}` path segment can answer. const RUN_PROBLEMS: [ProblemCode; 2] = [ProblemCode::RequestInvalid, ProblemCode::RunNotVisible]; /// Every problem a review completion sender can be answered with. const REVIEW_COMPLETION_PROBLEMS: [ProblemCode; 6] = [ @@ -2052,11 +2101,11 @@ fn summary(operation_id: &str) -> &'static str { pub fn openapi() -> Value { use ProblemCode as P; let run_state = json!({"type":"string","enum":["running","finished","failed","cancelled","cancelled-after-effect","expired","attention","cancel-requested"]}); - let run_param = json!({"name":"run","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}); + let run_param = json!({"name":"runId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}); let mut paths = serde_json::Map::new(); let operations: [DocumentedOperation; 15] = [ ( - "/v1/workflows/{workflow}", + "/v1/workflows/{workflowId}", "get", "workflowContract", None, @@ -2102,7 +2151,7 @@ pub fn openapi() -> Value { .concat(), ), ( - "/v1/runs/{run}", + "/v1/runs/{runId}", "get", "runStatus", None, @@ -2110,7 +2159,7 @@ pub fn openapi() -> Value { RUN_PROBLEMS.to_vec(), ), ( - "/v1/runs/{run}/inspect", + "/v1/runs/{runId}/inspect", "get", "inspectRun", None, @@ -2126,7 +2175,7 @@ pub fn openapi() -> Value { .concat(), ), ( - "/v1/runs/{run}/check", + "/v1/runs/{runId}/check", "post", "checkNow", Some("CheckNow"), @@ -2134,7 +2183,7 @@ pub fn openapi() -> Value { [&BODY_PROBLEMS[..], &RUN_PROBLEMS[..], &[P::CheckNotWaiting]].concat(), ), ( - "/v1/runs/{run}/retry-same", + "/v1/runs/{runId}/retry-same", "post", "retrySame", Some("Reason"), @@ -2157,7 +2206,7 @@ pub fn openapi() -> Value { .concat(), ), ( - "/v1/runs/{run}/cancel", + "/v1/runs/{runId}/cancel", "post", "cancelRun", Some("Reason"), @@ -2170,7 +2219,7 @@ pub fn openapi() -> Value { .concat(), ), ( - "/v1/runs/{run}/reconcile", + "/v1/runs/{runId}/reconcile", "post", "reconcileRun", Some("Reason"), @@ -2257,11 +2306,11 @@ pub fn openapi() -> Value { json!({"description":"Authorized result","content":{"application/json":{"schema":{"$ref":format!("#/components/schemas/{response}")}}}}), ); let mut op = json!({"operationId":id,"summary":summary(id),"security":[{"bearer":[]}],"responses":responses}); - if path.contains("{run}") { + if path.contains("{runId}") { op["parameters"] = json!([run_param.clone()]); } - if path.contains("{workflow}") { - op["parameters"] = json!([{"name":"workflow","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}]); + if path.contains("{workflowId}") { + op["parameters"] = json!([{"name":"workflowId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}]); } if id == "listRuns" { op["parameters"] = json!([ @@ -2362,7 +2411,7 @@ pub fn openapi() -> Value { "Doctor":{"type":"object","required":["activationReady","state","findings"],"properties":{"activationReady":{"type":"boolean"},"findings":{"type":"array","maxItems":1,"items":{"type":"object","required":["code","message","suggestedAction"],"properties":{"code":{"const":"platform.activation.posture-mismatch"},"message":{"type":"string"},"suggestedAction":{"type":"string"}}}},"state":{"type":"object","required":["databaseId","schemaVersion","restoreHold","auditReady","admissionsHold","restoreReviewRequired","states","uncertain","terminalPayloads","oldestTerminalPayloadAt","proposalWaitsByTurn","heldRunCount","heldRuns"],"properties":{"databaseId":{"type":"string"},"schemaVersion":{"type":"integer"},"restoreHold":{"type":"boolean"},"auditReady":{"type":"boolean"},"admissionsHold":{"type":"boolean"},"restoreReviewRequired":{"type":"integer","minimum":0},"states":{"type":"object","additionalProperties":{"type":"integer"}},"uncertain":{"type":"integer"},"oldestDueAt":{"type":["string","null"],"format":"date-time"},"terminalPayloads":{"type":"integer","minimum":0},"oldestTerminalPayloadAt":{"type":["string","null"],"format":"date-time"},"proposalWaitsByTurn":{"$ref":"#/components/schemas/ProposalWaitsByTurn"},"heldRunCount":{"type":"integer","minimum":0},"heldRuns":{"$ref":"#/components/schemas/HeldRuns"}}}}}, "RetryScheduled":{"type":"object","required":["runId","status"],"properties":{"runId":{"type":"string","format":"uuid"},"status":{"const":"retry-scheduled"}}}, "Hold":{"type":"object","required":["restoreHold"],"properties":{"restoreHold":{"type":"boolean"}}},"Erased":{"type":"object","required":["erased"],"properties":{"erased":{"type":"integer","minimum":0}}}, - "Problem":{"type":"object","additionalProperties":false,"required":["type","title","status","detail","code","traceId"],"properties":{"type":{"type":"string","enum":problem_types},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"code":{"type":"string","enum":problem_codes},"traceId":{"type":"string"},"pointer":{"type":"string"}}} + "Problem":{"type":"object","additionalProperties":false,"required":["type","title","status","detail","code","traceId"],"properties":{"type":{"type":"string","enum":problem_types},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"code":{"type":"string","enum":problem_codes},"traceId":{"type":"string"},"pointer":{"type":"string"},"failedCheck":{"type":"string","description":"The check that refused the request, included only in development."}}} }); let count = json!({"type":"integer","minimum":0}); schemas["HeldRuns"] = json!({"type":"array","maxItems":100,"description":"The first live runs by run id held because this Coordinator version does not restore their retained definition; heldRunCount counts them all.","items":{"$ref":"#/components/schemas/HeldRun"}}); diff --git a/crates/registry-coordinator/src/http/admission_contracts.rs b/crates/registry-coordinator/src/http/admission_contracts.rs index bf951c8edc..6e640710dd 100644 --- a/crates/registry-coordinator/src/http/admission_contracts.rs +++ b/crates/registry-coordinator/src/http/admission_contracts.rs @@ -76,11 +76,11 @@ fn event_path(paths: &mut Map) { "description":"Run admission is committed, or the exact event was already admitted. Empty Hook response proposes no source mutation.", "headers":{"X-Coordinator-Run-Id":{"schema":{"type":"string","format":"uuid"}}} })); - let mut parameters = ["workflow", "trigger"].into_iter().map(|name| { + let mut parameters = ["workflowId", "triggerId"].into_iter().map(|name| { json!({"name":name,"in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}) }).collect::>(); parameters.extend(webhook_parameters()); - paths.insert("/v1/events/{workflow}/{trigger}".into(), json!({"post":{ + paths.insert("/v1/events/{workflowId}/{triggerId}".into(), json!({"post":{ "operationId":"admitEvent","summary":"Start a workflow from an authenticated product event", "description":"Accept at most 1048576 canonical JSON bytes in a HookEnvelope, then hold the admitted event to the 131072-byte structured value profile. Standard Webhooks signs the webhook ID, Unix timestamp and exact body using the key for the trigger in the URL. The signed timestamp must be within 300 seconds in either direction. The webhook ID must equal the envelope ID, and the envelope must match the configured producer URI and authored event type and data schema. The source URI, event ID and trigger bind admission across retries. Every downstream call uses its own product authorization.", "security":[{"eventSource":[]}],"parameters":parameters, diff --git a/crates/registry-coordinator/src/mapping_check.rs b/crates/registry-coordinator/src/mapping_check.rs index 942f4aa864..85cc38615d 100644 --- a/crates/registry-coordinator/src/mapping_check.rs +++ b/crates/registry-coordinator/src/mapping_check.rs @@ -70,17 +70,17 @@ fn check_step( if let Mapping::Function { function, inputs } = mapping { let signature = workflow.functions.get(function).ok_or_else(|| { authored( - "mapping.function", + "mapping.transform", &format!("{base}.function"), - "the named Function is not declared", - "Name one of the project's declared Functions.", + "the named Transform is not declared", + "Name one of the project's declared Transforms.", ) })?; if inputs.keys().ne(signature.inputs.keys()) { return Err(authored( - "mapping.function", + "mapping.transform", &format!("{base}.inputs"), - "the named Function inputs must match its declared signature exactly", + "the named Transform inputs must match its declared signature exactly", "Supply every declared input name once and remove undeclared names.", )); } @@ -192,7 +192,7 @@ fn schema_fits(target: &Value, read: &Read<'_>, field: &str) -> Result<()> { wanted.describe(), offered.describe() ), - "Select a value of the target type, or convert it with a typed Function.", + "Select a value of the target type, or convert it with a typed Transform.", )); } Ok(()) diff --git a/crates/registry-coordinator/src/problem.rs b/crates/registry-coordinator/src/problem.rs index f3ef8d6722..d94ab9f297 100644 --- a/crates/registry-coordinator/src/problem.rs +++ b/crates/registry-coordinator/src/problem.rs @@ -372,7 +372,7 @@ impl ProblemCode { } Self::CheckNotWaiting => "That step is not waiting.", Self::DefinitionRefused => { - "The workflow's workflow definition, one of its mappings or one of its functions refused the request." + "The workflow's workflow definition, one of its mappings or one of its Transforms refused the request." } Self::DeploymentActivationChanged => { "An apply changed the active packages after this service started. Restart it with the runtime file that apply used." @@ -529,7 +529,7 @@ pub(crate) fn for_error(code: &str) -> Option { } code if code.starts_with("definition.") || code.starts_with("mapping.") - || code.starts_with("function.") => + || code.starts_with("transform.") => { ProblemCode::DefinitionRefused } @@ -715,7 +715,7 @@ mod tests { ("deployment.refused", ProblemCode::DeploymentRefused), ("state-key-custody", ProblemCode::DeploymentRefused), ("mapping.branch", ProblemCode::DefinitionRefused), - ("function.arity", ProblemCode::DefinitionRefused), + ("transform.arity", ProblemCode::DefinitionRefused), ("mutation-uncertain", ProblemCode::MutationUncertain), ] { assert_eq!(for_error(internal), Some(public), "{internal}"); diff --git a/crates/registry-coordinator/src/protocol.rs b/crates/registry-coordinator/src/protocol.rs index 8ef9776dd0..49e2f14030 100644 --- a/crates/registry-coordinator/src/protocol.rs +++ b/crates/registry-coordinator/src/protocol.rs @@ -432,7 +432,7 @@ pub trait AdapterSet: Send + Sync { /// Observe a named completion of the exact accepted call. Both arguments /// are protected durable values. The host interprets bounded external - /// reads using the immutable Workflow Function, never an adapter script. + /// reads using the immutable Workflow Transform, never an adapter script. async fn observe_completion( &self, _request: &CallRequest, diff --git a/crates/registry-coordinator/src/read_in_force.rs b/crates/registry-coordinator/src/read_in_force.rs index eca262a4bb..a0b4dfa545 100644 --- a/crates/registry-coordinator/src/read_in_force.rs +++ b/crates/registry-coordinator/src/read_in_force.rs @@ -137,7 +137,7 @@ pub(crate) async fn read_in_force( // is an overlap, and a third is never needed to know that. let Ok(request) = BRegAsOfListRequest::new(as_of) .and_then(|request| request.options(options.clone()).filter(filter)) - .and_then(|request| request.top(2)) + .and_then(|request| request.limit(2)) else { return refused("invalid-command"); }; @@ -173,7 +173,7 @@ pub(crate) async fn read_in_force( } /// The subject fields a call names, when the mapping spells them out as a -/// literal or as nested fields. A subject built by a Function or read whole +/// literal or as nested fields. A subject built by a Transform or read whole /// from input is not known until the run. fn literal_subject_fields(input: &Mapping) -> Option> { let subject = match input { diff --git a/crates/registry-coordinator/src/scenarios.rs b/crates/registry-coordinator/src/scenarios.rs index 22261885f4..28b6c9405d 100644 --- a/crates/registry-coordinator/src/scenarios.rs +++ b/crates/registry-coordinator/src/scenarios.rs @@ -119,7 +119,7 @@ enum AuthoredReply { /// The product returned a package-declared, no-effect business refusal. /// A supported call takes its `onDeclaredRefusal` edge when it has one; /// otherwise the run stops as refused. An `external.command/v1` step - /// takes a `response` reply instead, which its interpretation Function + /// takes a `response` reply instead, which its interpretation Transform /// may turn into a declared refusal. DeclaredRefusal { /// The validated refusal code the package declares. @@ -132,9 +132,9 @@ enum AuthoredReply { code: LocalId, }, /// The provider answered an `external.command/v1` call with `value`. The - /// operation's pinned interpretation Function turns it into an accepted + /// operation's pinned interpretation Transform turns it into an accepted /// result, a declared refusal or an uncertain outcome, as it would at run - /// time. The status must be one the worker hands to that Function: a + /// time. The status must be one the worker hands to that Transform: a /// redirect, a 429 or a 5xx never reaches it, so a fixture models those /// with an `uncertain` or `retryable` reply. Response { @@ -210,7 +210,7 @@ enum AuthoredWait { value: ForeignValue, }, /// The host repeats the accepted external read and interprets these - /// synthetic typed responses under the completion's named Function. + /// synthetic typed responses under the completion's named Transform. Observations { /// One to 128 bounded response objects in observation order. #[cfg_attr(feature = "schema", schemars(length(min = 1, max = 128)))] @@ -939,7 +939,7 @@ fn execute(definition: &Definition, scenario: &Scenario) -> Result Result Result Result { terminal = Some(value); break; }, crate::protocol::CompletionObservation::Pending { .. } => { now += chrono::Duration::seconds(i64::from(*interval_seconds)); }, - _ => return Err(error("scenario.wait-observation", format!("/waits/{step}/responses/{index}"), "the pinned polling interpretation did not establish a valid observation", "Correct the interpretation Function and response correlation under the named completion contract.")), + _ => return Err(error("scenario.wait-observation", format!("/waits/{step}/responses/{index}"), "the pinned polling interpretation did not establish a valid observation", "Correct the interpretation Transform and response correlation under the named completion contract.")), } } if let Some(value) = terminal { @@ -1867,7 +1867,7 @@ fn disbursement_acceptance(value: &Value) -> Option String { } /// The status of a synthetic command response the worker would never hand to -/// the interpretation Function, with the reply that models what the worker +/// the interpretation Transform, with the reply that models what the worker /// does instead. The worker reads the status before any body, so a scenario -/// cannot show the Function reading a redirect, a 429 or a server failure. +/// cannot show the Transform reading a redirect, a 429 or a server failure. fn uninterpreted_status(response: &Value) -> Option<(String, &'static str)> { use crate::external_http::{command_status, CommandStatus}; let Some(status) = response diff --git a/crates/registry-coordinator/src/worker.rs b/crates/registry-coordinator/src/worker.rs index 4675f79121..e55e8f1fda 100644 --- a/crates/registry-coordinator/src/worker.rs +++ b/crates/registry-coordinator/src/worker.rs @@ -733,7 +733,7 @@ impl Worker { }, }; // A command's provider response becomes its step result only - // through the project's pinned interpretation Function. + // through the project's pinned interpretation Transform. let result = match result { CallOutcome::Success(response) if request.operation == crate::protocol::Operation::ExternalCommand => diff --git a/crates/registry-coordinator/tests/authored_project.rs b/crates/registry-coordinator/tests/authored_project.rs index 44e9355c97..ed49346dff 100644 --- a/crates/registry-coordinator/tests/authored_project.rs +++ b/crates/registry-coordinator/tests/authored_project.rs @@ -28,8 +28,8 @@ fn project() -> Value { "type": "finish", "outcome": "accepted", "output": { - "type": "function", - "function": "identity", + "type": "transform", + "transform": "identity", "inputs": { "arg0": { "type": "input" @@ -70,8 +70,8 @@ fn declared_refusal_project() -> Value { "type": "call", "operation": "invoke-breg-action", "input": { - "type": "function", - "function": "command", + "type": "transform", + "transform": "command", "inputs": { "arg0": { "type": "input" @@ -174,10 +174,10 @@ fn authored_project_converts_to_the_versioned_snapshot_abi() { fn project_check_keeps_a_positioned_duplicate_function_title_warning() { let root = tempfile::tempdir().unwrap(); let mut authored = declare_test_functions(&project()); - authored["functions"]["identity"]["label"] = json!("Identity function"); - let mut copy = authored["functions"]["identity"].clone(); + authored["transforms"]["identity"]["label"] = json!("Identity function"); + let mut copy = authored["transforms"]["identity"].clone(); copy["label"] = json!("identity function"); - authored["functions"]["identity-copy"] = copy; + authored["transforms"]["identity-copy"] = copy; let bytes = serde_json::to_vec(&authored).unwrap(); fs::write( root.path().join("functions.rhai"), @@ -191,10 +191,10 @@ fn project_check_keeps_a_positioned_duplicate_function_title_warning() { let finding = warnings .diagnostics() .iter() - .find(|diagnostic| diagnostic.code == "coordinator.project.duplicate-function-label") + .find(|diagnostic| diagnostic.code == "coordinator.project.duplicate-transform-label") .expect("the duplicate title warning survives project compilation"); - assert_eq!(finding.path, "/functions/identity-copy/label"); - assert_eq!(finding.related[0].path, "/functions/identity/label"); + assert_eq!(finding.path, "/transforms/identity-copy/label"); + assert_eq!(finding.related[0].path, "/transforms/identity/label"); assert!(finding.message.contains("`identity`")); assert!(finding.message.contains("`identity-copy`")); assert!(!finding.message.contains("Identity function")); @@ -204,10 +204,10 @@ fn project_check_keeps_a_positioned_duplicate_function_title_warning() { fn project_check_keeps_duplicate_title_warnings_beside_compile_errors() { let root = tempfile::tempdir().unwrap(); let mut authored = declare_test_functions(&project()); - authored["functions"]["identity"]["label"] = json!("Identity function"); - let mut copy = authored["functions"]["identity"].clone(); + authored["transforms"]["identity"]["label"] = json!("Identity function"); + let mut copy = authored["transforms"]["identity"].clone(); copy["label"] = json!("identity function"); - authored["functions"]["identity-copy"] = copy; + authored["transforms"]["identity-copy"] = copy; authored["workflow"]["steps"]["done"] = json!({ "type": "call", "operation": "missing-operation", @@ -220,7 +220,7 @@ fn project_check_keeps_duplicate_title_warnings_beside_compile_errors() { let error = authoring::parse_project(&path, fs::read(&path).unwrap()) .expect_err("the missing operation refuses compilation"); for code in [ - "coordinator.project.duplicate-function-label", + "coordinator.project.duplicate-transform-label", "coordinator.definition.operation", ] { assert!( @@ -237,7 +237,7 @@ fn project_check_keeps_duplicate_title_warnings_beside_compile_errors() { fn project_check_refuses_separator_lookalikes_in_the_function_namespace() { let root = tempfile::tempdir().unwrap(); let mut authored = project(); - authored["functions"] = json!({ + authored["transforms"] = json!({ "identity-fn": { "runtime": "rhai", "source": "functions.rhai", @@ -259,10 +259,10 @@ fn project_check_refuses_separator_lookalikes_in_the_function_namespace() { let finding = error .diagnostics .iter() - .find(|diagnostic| diagnostic.code == "coordinator.project.function-id-collision") + .find(|diagnostic| diagnostic.code == "coordinator.project.transform-id-collision") .expect("the function collision has its own finding"); - assert_eq!(finding.path, "/functions/identity_fn"); - assert_eq!(finding.related[0].path, "/functions/identity-fn"); + assert_eq!(finding.path, "/transforms/identity_fn"); + assert_eq!(finding.related[0].path, "/transforms/identity-fn"); assert!(finding.message.contains("`identity-fn`")); assert!(finding.message.contains("`identity_fn`")); } @@ -433,7 +433,7 @@ fn declared_refusal_is_available_only_on_its_edge_and_not_after_a_mixed_join() { .remove("refused"); joined["workflow"]["steps"]["joined"] = json!({ "type":"finish", "outcome":"joined", "output":{ - "type":"function", "function":"identity", "inputs": {"arg0": {"type":"step", "step":"act"}} + "type":"transform", "transform":"identity", "inputs": {"arg0": {"type":"step", "step":"act"}} } }); joined["workflow"]["outcomes"] = json!({"joined":{}}); @@ -569,7 +569,7 @@ fn reads_and_evaluations_accept_on_failure_but_mutations_refuse_it() { "apiVersion":"id.registrystack.org/formats/coordinator/project/v1alpha1", "kind":"CoordinatorProject", "project":{"id":"evaluation-failure-route","version":"1"}, - "functions":{"command":{ + "transforms":{"command":{ "runtime":"rhai","source":"functions.rhai","entrypoint":"command", "inputs":{"arg0":{"type":"object"}}, "output":{"operationInput":"evaluate"} @@ -579,7 +579,7 @@ fn reads_and_evaluations_accept_on_failure_but_mutations_refuse_it() { "input":{"type":"object"},"deadlineSeconds":60,"start":"act", "steps":{ "act":{"type":"call","operation":"evaluate", - "input":{"type":"function","function":"command","inputs":{"arg0":{"type":"input"}}}, + "input":{"type":"transform","transform":"command","inputs":{"arg0":{"type":"input"}}}, "next":"accepted","onFailure":"refused"}, "accepted":{"type":"finish","outcome":"accepted"}, "refused":{"type":"finish","outcome":"refused"} @@ -636,7 +636,7 @@ fn a_failure_route_has_no_call_output_and_names_a_declared_step() { project["workflow"]["steps"]["refused"] = json!({ "type":"finish", "outcome":"refused", - "output":{"type":"function","function":"identity","inputs":{"arg0":{"type":"step","step":"act"}}} + "output":{"type":"transform","transform":"identity","inputs":{"arg0":{"type":"step","step":"act"}}} }); project["workflow"]["outcomes"]["refused"] = json!({}); write_project(root.path(), &project, source); @@ -706,7 +706,7 @@ fn function_compile_diagnostics_keep_the_function_file_and_position() { .err() .expect("must refuse syntax"); let finding = &error.diagnostics[0]; - assert_eq!(finding.code, "coordinator.function.definition"); + assert_eq!(finding.code, "coordinator.transform.definition"); assert_eq!(finding.path, ""); let source = finding.source.as_ref().unwrap(); assert!(source.file.ends_with("functions.rhai")); @@ -746,7 +746,7 @@ fn linked_function_source_refusal_points_to_the_authored_reference() { .err() .expect("a linked source must refuse"); let finding = error.diagnostics.first().expect("a positioned finding"); - assert_eq!(finding.path, "/functions/identity/source"); + assert_eq!(finding.path, "/transforms/identity/source"); assert!(finding .source .as_ref() @@ -770,7 +770,7 @@ fn missing_function_source_keeps_the_operational_exit_and_authored_position() { .err() .expect("missing source must refuse"); assert_eq!(error.exit_code, 3); - assert_eq!(error.diagnostics[0].path, "/functions/identity/source"); + assert_eq!(error.diagnostics[0].path, "/transforms/identity/source"); assert!(error.diagnostics[0] .source .as_ref() @@ -786,7 +786,7 @@ fn execution_member_diagnostics_preserve_authored_step_names() { let mut project = project(); project["workflow"]["start"] = json!(name); project["workflow"]["steps"] = json!({name: { - "type":"wait-until", "waitUntil":{"type":"function", "function":"identity", "inputs": {"arg0": {"type":"input"}}}, + "type":"wait-until", "waitUntil":{"type":"transform", "transform":"identity", "inputs": {"arg0": {"type":"input"}}}, "next":"missing" }}); write_project( @@ -883,7 +883,7 @@ fn project_schema_matches_local_keys_bounds_and_foreign_schema_members() { assert!(schema["properties"].get("functionsFile").is_none()); for (pointer, minimum, maximum) in [ ("/properties/operations", 0, 64), - ("/properties/functions", 0, 128), + ("/properties/transforms", 0, 128), ("/properties/types", 0, 128), ("/$defs/AuthoredWorkflow/properties/steps", 1, 64), ("/$defs/AuthoredWorkflow/properties/outcomes", 1, 64), @@ -904,11 +904,11 @@ fn project_schema_matches_local_keys_bounds_and_foreign_schema_members() { .collect::>(); assert_eq!( tags, - ["function", "fields", "compare", "input", "step", "literal"] + ["transform", "fields", "compare", "input", "step", "literal"] ); let function = variants .iter() - .find(|variant| variant["properties"]["type"]["const"] == "function") + .find(|variant| variant["properties"]["type"]["const"] == "transform") .unwrap(); assert_eq!(function["properties"]["inputs"]["maxProperties"], 16); assert_eq!(schema["$defs"]["Fields"]["maxProperties"], 64); @@ -1111,9 +1111,9 @@ fn authoring_schemas_describe_every_member_and_form() { fn declare_test_functions(project: &Value) -> Value { fn mapping(value: &Value, functions: &mut serde_json::Map) { if let Some(object) = value.as_object() { - if object.get("type") == Some(&json!("function")) { + if object.get("type") == Some(&json!("transform")) { if let (Some(name), Some(inputs)) = ( - object.get("function").and_then(Value::as_str), + object.get("transform").and_then(Value::as_str), object.get("inputs").and_then(Value::as_object), ) { let signature = inputs @@ -1135,6 +1135,6 @@ fn declare_test_functions(project: &Value) -> Value { let mut project = project.clone(); let mut functions = serde_json::Map::new(); mapping(&project["workflow"]["steps"], &mut functions); - project["functions"] = Value::Object(functions); + project["transforms"] = Value::Object(functions); project } diff --git a/crates/registry-coordinator/tests/authoring.rs b/crates/registry-coordinator/tests/authoring.rs index 5dd36350b5..1244874aff 100644 --- a/crates/registry-coordinator/tests/authoring.rs +++ b/crates/registry-coordinator/tests/authoring.rs @@ -34,14 +34,14 @@ fn authored_value(source: &str) -> Value { } fn computed_workflow() -> String { let mut workflow = authored_value(WORKFLOW); - workflow["functions"]["send-after"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"send_after", + workflow["transforms"]["send-after"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"send_after", "inputs":{"input":{"typeRef":"workflow-input"}},"output":{"type":"string","format":"date-time"}}); - workflow["functions"]["read-request"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"read_request", + workflow["transforms"]["read-request"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"read_request", "inputs":{"input":{"typeRef":"workflow-input"}},"output":{"operationInput":"applications-read-record"}}); workflow["workflow"]["steps"]["due"]["waitUntil"] = - json!({"type":"function","function":"send-after","inputs":{"input":{"type":"input"}}}); + json!({"type":"transform","transform":"send-after","inputs":{"input":{"type":"input"}}}); workflow["workflow"]["steps"]["read-application"]["input"] = - json!({"type":"function","function":"read-request","inputs":{"input":{"type":"input"}}}); + json!({"type":"transform","transform":"read-request","inputs":{"input":{"type":"input"}}}); workflow.to_string() } fn computed_source() -> String { @@ -69,6 +69,44 @@ fn refused(result: registry_coordinator::Result) -> CoordinatorError } } +#[test] +fn authored_transforms_use_their_own_vocabulary_but_keep_the_frozen_snapshot_format() { + let authored = authored_value(WORKFLOW); + assert!(authored["transforms"]["notice-route"].is_object()); + assert!(authored.get("functions").is_none()); + let definition = fixture(); + let report = definition.explain().unwrap(); + assert!(report["transforms"]["notice-route"].is_object()); + assert!(report.get("functions").is_none()); + let permission = report["steps"] + .as_array() + .unwrap() + .iter() + .find(|step| step["id"] == "permission") + .unwrap(); + assert_eq!(permission["mapping"]["transform"], "notice-route"); + assert!(permission["mapping"].get("function").is_none()); + let snapshot = definition.snapshot().unwrap(); + let frozen: Value = serde_json::from_str(&snapshot).unwrap(); + assert!(frozen["workflow"]["functions"]["notice-route"].is_object()); + assert_eq!( + frozen["workflow"]["steps"]["permission"]["choose"]["function"], + "notice-route" + ); + let restored = Definition::from_snapshot(&snapshot).unwrap(); + assert_eq!(restored.snapshot().unwrap(), snapshot); + assert_eq!(restored.digest, definition.digest); +} + +#[test] +fn retired_function_declaration_points_to_transforms() { + let legacy = WORKFLOW.replace("\ntransforms:", "\nfunctions:"); + let error = refused(load(&legacy, SOURCE)); + assert!(error.diagnostics.iter().any(|diagnostic| { + diagnostic.path == "/functions" && diagnostic.suggested_action.contains("transforms") + })); +} + #[test] fn synthetic_fixture_maps_current_permission_and_receipt() { let definition = fixture(); @@ -121,14 +159,14 @@ fn synthetic_fixture_maps_current_permission_and_receipt() { fn shared_mapping_is_validated_only_for_the_executing_branch() { let workflow = json!({ "apiVersion":"id.registrystack.org/formats/coordinator/project/v1alpha1","kind":"CoordinatorProject","project":{"id":"shared-mapping","version":"1"}, - "functions":{ + "transforms":{ "branch":{"runtime":"rhai","source":"functions.rhai","entrypoint":"branch","inputs":{"input":{"type":"object"}},"output":{"type":"string","enum":["number","text"]}}, "value":{"runtime":"rhai","source":"functions.rhai","entrypoint":"value","inputs":{"input":{"type":"object"}},"output":{}} },"workflow":{"input":{"type":"object","required":["choice","value"],"properties":{"choice":{"enum":["number","text"]},"value":{}},"additionalProperties":false},"deadlineSeconds":3600,"start":"select", "steps":{ - "select":{"type":"choose","choose":{"type":"function","function":"branch","inputs":{"input":{"type":"input"}}},"cases":{"number":"finish-number","text":"finish-text"}}, - "finish-number":{"type":"finish","outcome":"number","output":{"type":"function","function":"value","inputs":{"input":{"type":"input"}}}}, - "finish-text":{"type":"finish","outcome":"text","output":{"type":"function","function":"value","inputs":{"input":{"type":"input"}}}} + "select":{"type":"choose","choose":{"type":"transform","transform":"branch","inputs":{"input":{"type":"input"}}},"cases":{"number":"finish-number","text":"finish-text"}}, + "finish-number":{"type":"finish","outcome":"number","output":{"type":"transform","transform":"value","inputs":{"input":{"type":"input"}}}}, + "finish-text":{"type":"finish","outcome":"text","output":{"type":"transform","transform":"value","inputs":{"input":{"type":"input"}}}} },"outcomes":{"number":{"type":"integer"},"text":{"type":"string"}}} }); let definition = load( @@ -283,7 +321,10 @@ fn bad_graphs_and_whole_value_references_refuse() { json!("arbitrary-http"), ), ("/workflow/deadlineSeconds", json!("é")), - ("/functions/notice-route/source", json!("../functions.rhai")), + ( + "/transforms/notice-route/source", + json!("../functions.rhai"), + ), ("/workflow/deadlineSeconds", json!("${DEADLINE}")), ] { let mut workflow = base.clone(); @@ -345,7 +386,7 @@ fn branch_timestamp_schema_and_missing_values_refuse_without_values() { let error = definition .evaluate("permission", &input(), &outputs) .unwrap_err(); - assert_eq!(error.code, "function.output"); + assert_eq!(error.code, "transform.output"); assert!(!error.to_string().contains(CANARY)); let definition = fixture(); assert_eq!( @@ -375,7 +416,7 @@ fn branch_timestamp_schema_and_missing_values_refuse_without_values() { .initial_due(&input(), instant("2026-10-09T09:00:00Z")) .unwrap_err() .code, - "function.output" + "transform.output" ); } @@ -390,7 +431,7 @@ fn pure_profile_has_no_clock_sleep_or_io_and_limits_computation() { &source.replace("input.sendAfter", expression), )); assert_eq!( - error.code, "coordinator.function.unknown-call", + error.code, "coordinator.transform.unknown-call", "{expression}" ); } @@ -405,7 +446,7 @@ fn pure_profile_has_no_clock_sleep_or_io_and_limits_computation() { .evaluate("due", &input(), &BTreeMap::new()) .unwrap_err() .code, - "function.resource-limit" + "transform.resource-limit" ); } let definition = load( @@ -636,14 +677,14 @@ fn resource_limits_include_recursion_input_values_and_non_object_commands() { .evaluate("due", &input(), &BTreeMap::new()) .unwrap_err() .code, - "function.resource-limit" + "transform.resource-limit" ); let definition = fixture(); let mut excessive = input(); excessive["sendAfter"] = json!("x".repeat(16385)); assert_eq!( definition.validate_input(&excessive).unwrap_err().code, - "function.value-limit" + "transform.value-limit" ); let definition = load( &workflow, @@ -658,7 +699,7 @@ fn resource_limits_include_recursion_input_values_and_non_object_commands() { .evaluate("read-application", &input(), &BTreeMap::new()) .unwrap_err() .code, - "function.output" + "transform.output" ); } @@ -721,10 +762,10 @@ fn authoring_diagnostics_locate_graph_reference_and_functions_without_runtime_va &source.replace("fn send_after(input)", "fn send_after(input, extra)"), )); // The step that calls the function is where the mismatch is placed. - assert_eq!(error.code, "coordinator.function.definition"); + assert_eq!(error.code, "coordinator.transform.definition"); assert_eq!( error.field.as_deref(), - Some("/functions/send-after/entrypoint") + Some("/transforms/send-after/entrypoint") ); assert!(error.diagnostics[0] .source diff --git a/crates/registry-coordinator/tests/authoring_findings.rs b/crates/registry-coordinator/tests/authoring_findings.rs index 61298639b1..84213d3742 100644 --- a/crates/registry-coordinator/tests/authoring_findings.rs +++ b/crates/registry-coordinator/tests/authoring_findings.rs @@ -172,7 +172,7 @@ fn a_function_returning_an_undeclared_label_is_reported_at_its_step_by_check_and let findings = check["diagnostics"].as_array().unwrap(); assert_eq!(findings.len(), 1, "{check}"); let finding = &findings[0]; - assert_eq!(finding["code"], "coordinator.function.output"); + assert_eq!(finding["code"], "coordinator.transform.output"); assert_eq!(finding["path"], "/workflow/steps/permission/choose"); assert!(finding["source"]["file"] .as_str() @@ -181,7 +181,7 @@ fn a_function_returning_an_undeclared_label_is_reported_at_its_step_by_check_and assert_eq!(finding["source"]["line"], workflow_line("choose:") + 1); let message = finding["message"].as_str().unwrap(); for expected in [ - "function notice-route returned a value of class string", + "Transform notice-route returned a value of class string", "declared output schema refuses it", ] .into_iter() @@ -215,14 +215,14 @@ fn a_rhai_failure_names_its_kind_and_position_offline() { let (check, test) = refused(&root); assert_eq!(check["diagnostics"], test["diagnostics"], "{check}\n{test}"); let finding = &check["diagnostics"][0]; - assert_eq!(finding["code"], "coordinator.function.execution"); + assert_eq!(finding["code"], "coordinator.transform.execution"); assert_eq!(finding["path"], "/workflow/steps/permission/choose"); assert_eq!(finding["source"]["line"], workflow_line("choose:") + 1); let message = finding["message"].as_str().unwrap(); // The kind of failure and its position in functions.rhai, never the // engine's own words, which may repeat the values it was given. assert!( - message.contains("function notice-route failed: a property is missing in function notice_route at line 6, column "), + message.contains("Transform notice-route failed: a property is missing in function notice_route at line 6, column "), "{message}" ); assert!(!message.contains("member"), "{message}"); @@ -245,10 +245,10 @@ fn a_thrown_rhai_error_names_its_kind_and_position_but_no_value() { let (check, test) = refused(&root); assert_eq!(check["diagnostics"], test["diagnostics"], "{check}\n{test}"); let finding = &check["diagnostics"][0]; - assert_eq!(finding["code"], "coordinator.function.execution"); + assert_eq!(finding["code"], "coordinator.transform.execution"); let message = finding["message"].as_str().unwrap(); assert!( - message.contains("function notice-route failed: an error was thrown in function notice_route at line 6, column "), + message.contains("Transform notice-route failed: an error was thrown in function notice_route at line 6, column "), "{message}" ); assert_unrepeated(&root, &[MARKER, RECORD_ID]); @@ -273,7 +273,7 @@ fn a_failure_in_a_called_function_is_placed_in_that_function() { let message = check["diagnostics"][0]["message"].as_str().unwrap(); assert!( message.contains( - "function notice-route failed: an error was thrown in function helper at line 10, column 5" + "Transform notice-route failed: an error was thrown in function helper at line 10, column 5" ), "{message}" ); @@ -548,18 +548,18 @@ fn a_refused_step_value_is_named_by_its_class_and_rule_never_by_value() { let mut functions = FUNCTIONS.to_owned(); let expected = match kind { "wait" => { - workflow["functions"]["send-after"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"send_after","inputs":{"input":{"typeRef":"workflow-input"}},"output":{"type":"string"}}); - workflow["workflow"]["steps"]["due"]["waitUntil"] = json!({"type":"function","function":"send-after","inputs":{"input":{"type":"input"}}}); + workflow["transforms"]["send-after"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"send_after","inputs":{"input":{"typeRef":"workflow-input"}},"output":{"type":"string"}}); + workflow["workflow"]["steps"]["due"]["waitUntil"] = json!({"type":"transform","transform":"send-after","inputs":{"input":{"type":"input"}}}); functions.push_str(&format!( "\nfn send_after(args) {{ \"{MARKER}\" + args.input.applicationId }}" )); - "function send-after returned a value of class string; expected an RFC 3339 instant with an offset" + "Transform send-after returned a value of class string; expected an RFC 3339 instant with an offset" } "finish" => { - workflow["functions"]["accepted-output"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"accepted_output","inputs":{"input":{"typeRef":"workflow-input"}},"output":{"type":"object"}}); - workflow["workflow"]["steps"]["accepted"]["output"] = json!({"type":"function","function":"accepted-output","inputs":{"input":{"type":"input"}}}); + workflow["transforms"]["accepted-output"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"accepted_output","inputs":{"input":{"typeRef":"workflow-input"}},"output":{"type":"object"}}); + workflow["workflow"]["steps"]["accepted"]["output"] = json!({"type":"transform","transform":"accepted-output","inputs":{"input":{"type":"input"}}}); functions.push_str(&format!("\nfn accepted_output(args) {{ #{{messageId: \"{MARKER}\" + args.input.applicationId}} }}")); - "function accepted-output returned a value of class object; the message-accepted outcome schema refuses it at /messageId by its rule /properties/messageId/format" + "Transform accepted-output returned a value of class object; the message-accepted outcome schema refuses it at /messageId by its rule /properties/messageId/format" } _ => { fs::write( @@ -747,13 +747,13 @@ fn a_connection_name_is_bound_at_deployment_and_changes_the_semantic_revision() #[test] fn an_unknown_function_is_reported_at_its_step_with_the_declared_functions() { let mut workflow = authored_value(); - workflow["workflow"]["steps"]["notify"]["input"]["function"] = json!("notice-reqest"); + workflow["workflow"]["steps"]["notify"]["input"]["transform"] = json!("notice-reqest"); let findings = checked_value(workflow); assert_eq!(findings.len(), 1); finding( &findings, - "/workflow/steps/notify/input/function", - "coordinator.mapping.function", + "/workflow/steps/notify/input/transform", + "coordinator.mapping.transform", &["notice-reqest", "notice-request", "notice-route"], ); } @@ -770,8 +770,8 @@ fn a_function_called_with_the_wrong_inputs_is_reported_at_its_step() { finding( &findings, "/workflow/steps/notify/input/inputs", - "coordinator.mapping.function", - &["named Function inputs", "signature"], + "coordinator.mapping.transform", + &["named Transform inputs", "signature"], ); } @@ -855,7 +855,7 @@ fn authored_semantic_errors_and_warnings_share_one_file_budget() { fn check_reports_every_independent_error_in_one_run() { let mut workflow = authored_value(); workflow["workflow"]["start"] = json!("begin"); - workflow["workflow"]["steps"]["permission"]["choose"]["function"] = json!("notice-rout"); + workflow["workflow"]["steps"]["permission"]["choose"]["transform"] = json!("notice-rout"); workflow["workflow"]["steps"]["skipped"]["outcome"] = json!("no-permission"); let findings = checked_value(workflow); let mut paths = findings @@ -868,7 +868,7 @@ fn check_reports_every_independent_error_in_one_run() { [ "/workflow/outcomes/no-current-permission", "/workflow/start", - "/workflow/steps/permission/choose/function", + "/workflow/steps/permission/choose/transform", "/workflow/steps/skipped/outcome" ], "{findings:#?}" diff --git a/crates/registry-coordinator/tests/breg_action_native.rs b/crates/registry-coordinator/tests/breg_action_native.rs index d0c6dc75cd..cf80d52ccb 100644 --- a/crates/registry-coordinator/tests/breg_action_native.rs +++ b/crates/registry-coordinator/tests/breg_action_native.rs @@ -390,7 +390,7 @@ types: operations: act: {uses: breg.invoke-action/v1, connection: applications, action: {contract: source, id: update-item}} notify: {uses: messaging.submit-message/v1, connection: notices} -functions: +transforms: action_request: runtime: rhai source: functions.rhai @@ -417,17 +417,17 @@ workflow: act: type: call operation: act - input: {type: function, function: action_request, inputs: {input: {type: input}}} + input: {type: transform, transform: action_request, inputs: {input: {type: input}}} next: notify notify: type: call operation: notify - input: {type: function, function: notice_request, inputs: {action: {type: step, step: act}}} + input: {type: transform, transform: notice_request, inputs: {action: {type: step, step: act}}} next: done done: type: finish outcome: accepted - output: {type: function, function: result, inputs: {action: {type: step, step: act}, notice: {type: step, step: notify}}} + output: {type: transform, transform: result, inputs: {action: {type: step, step: act}, notice: {type: step, step: notify}}} outcomes: accepted: {typeRef: accepted-output} "#).unwrap(); diff --git a/crates/registry-coordinator/tests/canonical_model.rs b/crates/registry-coordinator/tests/canonical_model.rs index 69c54e5720..34ccf333af 100644 --- a/crates/registry-coordinator/tests/canonical_model.rs +++ b/crates/registry-coordinator/tests/canonical_model.rs @@ -10,10 +10,10 @@ fn project() -> Value { "project": {"id":"typed-workflow","version":"1"}, "types": {"request": {"type":"object","additionalProperties":false,"required":["text"], "properties":{"text":{"type":"string"}}}}, - "functions": {"render": {"runtime":"rhai","source":"functions.rhai","entrypoint":"render", + "transforms": {"render": {"runtime":"rhai","source":"functions.rhai","entrypoint":"render", "inputs":{"request":{"typeRef":"request"}},"output":{"type":"string"}}}, "workflow": {"input":{"typeRef":"request"},"deadlineSeconds":3600,"start":"done", - "steps":{"done":{"type":"finish","outcome":"rendered","output":{"type":"function","function":"render","inputs":{"request":{"type":"input"}}}}}, + "steps":{"done":{"type":"finish","outcome":"rendered","output":{"type":"transform","transform":"render","inputs":{"request":{"type":"input"}}}}}, "outcomes":{"rendered":{"type":"string"}}} }) } @@ -57,7 +57,7 @@ fn named_function_inputs_are_typed_and_the_snapshot_restores_without_sources() { let error = definition .evaluate("done", &json!({"text":42}), &BTreeMap::new()) .unwrap_err(); - assert_eq!(error.code, "function.input"); + assert_eq!(error.code, "transform.input"); assert!(!error.message.contains("42")); } @@ -69,10 +69,10 @@ fn presentation_version_and_unreferenced_definitions_do_not_change_workflow_revi edited["project"]["description"] = json!("Shows a text."); edited["project"]["version"] = json!("next"); edited["workflow"]["steps"]["done"]["label"] = json!("Show the text"); - edited["functions"]["render"]["label"] = json!("Render a notice"); + edited["transforms"]["render"]["label"] = json!("Render a notice"); edited["types"]["request"]["properties"]["text"]["description"] = json!("Public text"); edited["types"]["unrelated"] = json!({"type":"integer"}); - edited["functions"]["unrelated"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"render", + edited["transforms"]["unrelated"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"render", "inputs":{"ignored":{"type":"integer"}},"output":{"type":"string"}}); let edited = load(&edited, SOURCE).unwrap(); assert_eq!(initial.digest, edited.digest); @@ -150,14 +150,14 @@ fn an_event_trigger_label_and_description_do_not_change_workflow_revision() { fn a_title_is_refused_with_label_as_its_replacement() { for (pointer, set) in [ ("/title", "project"), - ("/functions/render/title", "function"), + ("/transforms/render/title", "transform"), ("/workflow/steps/done/title", "step"), ("/operations/read-job/title", "operation"), ] { let mut edited = project(); match set { "project" => edited["title"] = json!("Readable workflow"), - "function" => edited["functions"]["render"]["title"] = json!("Render a notice"), + "transform" => edited["transforms"]["render"]["title"] = json!("Render a notice"), "operation" => { edited["operations"] = json!({"read-job":{"title":"Read the job","uses":"external.get/v1","connection":"jobs"}}); } @@ -185,11 +185,11 @@ fn changed_function_code_or_limits_changes_workflow_revision() { .digest ); let mut edited = project(); - edited["functions"]["render"]["limits"] = json!({"operations":500}); + edited["transforms"]["render"]["limits"] = json!({"operations":500}); let edited = load(&edited, SOURCE).unwrap(); assert_ne!(initial.digest, edited.digest); assert_eq!( - edited.explain().unwrap()["functions"]["render"]["limits"]["operations"], + edited.explain().unwrap()["transforms"]["render"]["limits"]["operations"], 500 ); } @@ -207,7 +207,7 @@ fn signature_names_and_closed_output_are_enforced_without_rendering_values() { let error = definition .evaluate("done", &json!({"text":"private-canary"}), &BTreeMap::new()) .unwrap_err(); - assert_eq!(error.code, "function.output"); + assert_eq!(error.code, "transform.output"); assert!(!error.message.contains("private-canary")); } @@ -225,8 +225,8 @@ fn schema_references_resolve_nested_properties_and_preserve_reference_sites() { ); assert!(references["/workflow/input/typeRef"]["source"]["line"].is_number()); assert_eq!( - references["/workflow/steps/done/output/function"]["target"], - "/functions/render" + references["/workflow/steps/done/output/transform"]["target"], + "/transforms/render" ); } @@ -255,13 +255,13 @@ fn schema_cycles_mixtures_and_undeclared_references_point_to_authored_fields() { #[test] fn the_default_profile_has_no_clock_and_narrowing_cannot_widen_it() { let error = refused(&project(), "fn render(inputs) { timestamp().to_string() }"); - assert_eq!(error.code, "coordinator.function.unknown-call"); + assert_eq!(error.code, "coordinator.transform.unknown-call"); let mut edited = project(); - edited["functions"]["render"]["limits"] = json!({"operations":100001}); + edited["transforms"]["render"]["limits"] = json!({"operations":100001}); let error = refused(&edited, SOURCE); assert_eq!( error.diagnostics[0].path, - "/functions/render/limits/operations" + "/transforms/render/limits/operations" ); assert_eq!(error.diagnostics[0].code, "config.out-of-range"); } @@ -287,7 +287,7 @@ fn poll_completion_uses_base_schemas_then_resolves_typed_terminal_output() { let mut edited = project(); edited["operations"] = json!({"read-job":{"uses":"external.get/v1","connection":"jobs","responseSchema":{"type":"object","required":["status","body"],"additionalProperties":false,"properties":{"status":{"type":"integer"},"body":{"type":"object"}}}, "completions":{"terminal":{"type":"bounded-poll","interpret":"observe","intervalSeconds":30}}}}); - edited["functions"] = json!({"observe":{"runtime":"rhai","source":"functions.rhai","entrypoint":"observe", + edited["transforms"] = json!({"observe":{"runtime":"rhai","source":"functions.rhai","entrypoint":"observe", "inputs":{"command":{"operationInput":"read-job"},"response":{"operationOutput":"read-job"}},"output":{"oneOf":[ {"type":"object","additionalProperties":false,"required":["state"],"properties":{"state":{"type":"string","const":"pending"}}}, {"type":"object","additionalProperties":false,"required":["state","result"],"properties":{"state":{"type":"string","const":"complete"},"result":{"type":"string"}}}, @@ -341,7 +341,7 @@ fn poll_completion_uses_base_schemas_then_resolves_typed_terminal_output() { assert!(definition .validate_outcome("terminal", &json!({"state":"pending"})) .is_err()); - edited["functions"]["observe"]["output"]["oneOf"][1]["title"] = + edited["transforms"]["observe"]["output"]["oneOf"][1]["title"] = json!("A successful job observation"); let retitled = load(&edited, "fn observe(inputs) { #{state: \"pending\"} }").unwrap(); assert_eq!(definition.digest, retitled.digest); @@ -350,7 +350,7 @@ fn poll_completion_uses_base_schemas_then_resolves_typed_terminal_output() { "type":"object","required":["id"],"additionalProperties":false, "properties":{"id":{"$ref":"#/$defs/identifier"}} }); - edited["functions"]["observe"]["output"]["oneOf"][1]["properties"]["result"] = + edited["transforms"]["observe"]["output"]["oneOf"][1]["properties"]["result"] = json!({"typeRef":"job-result"}); let referenced = load(&edited, "fn observe(inputs) { #{state: \"pending\"} }").unwrap(); referenced @@ -371,10 +371,10 @@ fn poll_completion_uses_base_schemas_then_resolves_typed_terminal_output() { restored .validate_outcome("terminal", &json!({"state":"refused","code":"job-failed"})) .unwrap(); - edited["functions"]["observe"]["output"] = + edited["transforms"]["observe"]["output"] = json!({"completionOutput":{"operation":"read-job","name":"terminal"}}); let error = refused(&edited, "fn observe(inputs) { #{state: \"pending\"} }"); - assert_eq!(error.diagnostics[0].path, "/functions/observe/output"); + assert_eq!(error.diagnostics[0].path, "/transforms/observe/output"); } #[cfg(feature = "schema")] @@ -397,7 +397,7 @@ fn whole_schema_references_rebase_local_definitions_when_embedded() { "$defs":{"text":{"type":"string","minLength":2}}, "properties":{"value":{"$ref":"#/$defs/text"}}}); edited["types"]["request"]["properties"]["text"] = json!({"typeRef":"message"}); - edited["functions"]["render"]["output"] = json!({"typeRef":"message"}); + edited["transforms"]["render"]["output"] = json!({"typeRef":"message"}); edited["workflow"]["outcomes"]["rendered"] = json!({"typeRef":"message"}); let definition = load(&edited, SOURCE).unwrap(); assert!(definition @@ -416,7 +416,7 @@ fn whole_schema_references_rebase_local_definitions_when_embedded() { #[test] fn function_source_assets_cannot_escape_the_project() { let mut edited = project(); - edited["functions"]["render"]["source"] = json!("../outside.rhai"); + edited["transforms"]["render"]["source"] = json!("../outside.rhai"); let error = refused(&edited, SOURCE); assert!(error.message.contains("relative path")); } diff --git a/crates/registry-coordinator/tests/cli_authoring.rs b/crates/registry-coordinator/tests/cli_authoring.rs index 81df08b754..fc36973895 100644 --- a/crates/registry-coordinator/tests/cli_authoring.rs +++ b/crates/registry-coordinator/tests/cli_authoring.rs @@ -201,7 +201,7 @@ fn init_check_and_explain_work_without_database_or_signing_keys() { ]); assert!(explained.status.success()); let result: Value = serde_json::from_slice(&explained.stdout).unwrap(); - assert!(result["functions"] + assert!(result["transforms"] .as_object() .unwrap() .values() diff --git a/crates/registry-coordinator/tests/external_command_project.rs b/crates/registry-coordinator/tests/external_command_project.rs index a2dd79412d..16b5ef7a7b 100644 --- a/crates/registry-coordinator/tests/external_command_project.rs +++ b/crates/registry-coordinator/tests/external_command_project.rs @@ -249,17 +249,17 @@ fn the_interpretation_takes_the_command_and_its_bounded_response() { #[test] fn the_interpretation_declares_accepted_and_only_known_states() { let findings = refused(&[("const: accepted", "const: complete")]); - finding(&findings, "/functions/bill-outcome/output", &["accepted"]); + finding(&findings, "/transforms/bill-outcome/output", &["accepted"]); let findings = refused(&[("enum: [account-closed]", "minLength: 1")]); finding( &findings, - "/functions/bill-outcome/output", + "/transforms/bill-outcome/output", &["closed enum"], ); let findings = refused(&[("const: uncertain", "const: pending")]); - finding(&findings, "/functions/bill-outcome/output", &["uncertain"]); + finding(&findings, "/transforms/bill-outcome/output", &["uncertain"]); } #[test] diff --git a/crates/registry-coordinator/tests/fixtures/external-command/workflow.yaml b/crates/registry-coordinator/tests/fixtures/external-command/workflow.yaml index a2207e13fe..93f1742130 100644 --- a/crates/registry-coordinator/tests/fixtures/external-command/workflow.yaml +++ b/crates/registry-coordinator/tests/fixtures/external-command/workflow.yaml @@ -50,7 +50,7 @@ types: properties: state: {type: string, const: uncertain} -functions: +transforms: bill-request: runtime: rhai source: functions.rhai @@ -84,8 +84,8 @@ workflow: type: call operation: create-bill input: - type: function - function: bill-request + type: transform + transform: bill-request inputs: request: {type: input} next: billed diff --git a/crates/registry-coordinator/tests/fixtures/review-wait/workflow.yaml b/crates/registry-coordinator/tests/fixtures/review-wait/workflow.yaml index 6285eec536..3acfdfe8f6 100644 --- a/crates/registry-coordinator/tests/fixtures/review-wait/workflow.yaml +++ b/crates/registry-coordinator/tests/fixtures/review-wait/workflow.yaml @@ -14,7 +14,7 @@ types: applicationVersion: {type: string, minLength: 1, maxLength: 64} applicationDigest: {type: string, pattern: "^sha256:[0-9a-f]{64}$"} email: {type: string, format: email} -functions: +transforms: review-request: runtime: rhai source: functions.rhai @@ -41,7 +41,7 @@ workflow: submit-review: type: call operation: submit-review-request - input: {type: function, function: review-request, inputs: {input: {type: input}}} + input: {type: transform, transform: review-request, inputs: {input: {type: input}}} next: await-review await-review: type: wait-for @@ -62,7 +62,7 @@ workflow: notify: type: call operation: submit-message - input: {type: function, function: notice-request, inputs: {input: {type: input}, result: {type: step, step: await-review}}} + input: {type: transform, transform: notice-request, inputs: {input: {type: input}, result: {type: step, step: await-review}}} next: notice-sent notice-sent: type: finish diff --git a/crates/registry-coordinator/tests/helper_functions.rs b/crates/registry-coordinator/tests/helper_functions.rs index a6f3ad9342..2b85025ef4 100644 --- a/crates/registry-coordinator/tests/helper_functions.rs +++ b/crates/registry-coordinator/tests/helper_functions.rs @@ -10,12 +10,12 @@ fn write_project(root: &Path, source: &str) { let workflow = json!({ "apiVersion": authoring::API_VERSION, "kind": authoring::KIND, "project": {"id": "helpers", "version": "1"}, - "functions": { + "transforms": { "probe": {"runtime":"rhai","source":"functions.rhai","entrypoint":"probe","inputs":{"request":{"type":"object"}},"output":{}} }, "workflow": {"input": {"type": "object"}, "deadlineSeconds": 86400, "start": "done", "steps": { - "done": {"type": "finish", "outcome": "measured", "output": {"type": "function", "function": "probe", "inputs": {"request":{"type": "input"}}}} + "done": {"type": "finish", "outcome": "measured", "output": {"type": "transform", "transform": "probe", "inputs": {"request":{"type": "input"}}}} }, "outcomes": {"measured": {}} } }); @@ -131,7 +131,7 @@ fn helpers_that_make_longer_strings_stay_inside_the_string_budget() { ] { let source = body.replace("aaaaaaaa", &"a".repeat(1024)); let error = run(&source, json!({})).unwrap_err(); - assert_eq!(error.code, "function.resource-limit", "{body}"); + assert_eq!(error.code, "transform.resource-limit", "{body}"); } } @@ -147,7 +147,7 @@ fn an_oversized_replace_reaches_a_loaded_project_as_a_resource_limit_refusal() { json!({"big": big}), ) .unwrap_err(); - assert_eq!(error.code, "function.resource-limit"); + assert_eq!(error.code, "transform.resource-limit"); } #[test] @@ -155,7 +155,7 @@ fn a_call_to_a_name_the_profile_lacks_is_refused_at_load_with_its_position_and_a let error = load("parse_decimal(inputs.request.digits)") .err() .expect("unknown helper is refused"); - assert_eq!(error.code, "coordinator.function.unknown-call"); + assert_eq!(error.code, "coordinator.transform.unknown-call"); assert!( error.message.contains("`parse_decimal`"), "{}", @@ -166,7 +166,7 @@ fn a_call_to_a_name_the_profile_lacks_is_refused_at_load_with_its_position_and_a .suggested_action .as_deref() .unwrap() - .contains("coordinatorctl explain functions"), + .contains("coordinatorctl explain transforms"), "{error:?}" ); let source = error.diagnostics[0] @@ -197,7 +197,7 @@ fn every_unknown_call_is_reported_and_known_calls_and_local_functions_pass() { .as_array() .unwrap() .iter() - .filter(|d| d["code"] == "coordinator.function.unknown-call") + .filter(|d| d["code"] == "coordinator.transform.unknown-call") .map(|d| d["message"].as_str().unwrap().to_owned()) .collect::>(); assert_eq!(findings.len(), 3, "{report}"); @@ -214,7 +214,7 @@ fn every_unknown_call_is_reported_and_known_calls_and_local_functions_pass() { #[test] fn explain_functions_lists_the_helpers_of_the_profile() { - let output = cli(&["--format", "json", "explain", "functions"]); + let output = cli(&["--format", "json", "explain", "transforms"]); assert!( output.status.success(), "{}", @@ -267,10 +267,10 @@ fn explain_functions_lists_the_helpers_of_the_profile() { assert!(report["interpreterAbi"].as_str().unwrap().contains("/v3;")); assert_eq!(report["limits"]["stringBytes"], 16384); - let human = cli(&["explain", "functions"]); + let human = cli(&["explain", "transforms"]); assert!(human.status.success()); let text = String::from_utf8(human.stdout).unwrap(); - assert!(text.starts_with("Pure function helpers"), "{text}"); + assert!(text.starts_with("Transform helpers"), "{text}"); assert!(text.contains("parse_int"), "{text}"); assert!(text.contains("Notes:"), "{text}"); assert!(text.contains("global::NAME"), "{text}"); @@ -291,7 +291,7 @@ fn explain_without_a_project_names_the_argument_and_its_help_lists_the_topic() { let help = cli(&["explain", "--help"]); assert!(help.status.success()); let text = String::from_utf8(help.stdout).unwrap(); - assert!(text.contains("functions"), "{text}"); + assert!(text.contains("transforms"), "{text}"); assert!(text.contains("--project"), "{text}"); } @@ -307,7 +307,7 @@ fn pad_with_an_empty_padding_string_is_refused_instead_of_looping() { ), ] { let error = within(10, move || run(body, request)).unwrap_err(); - assert_eq!(error.code, "function.execution", "{body}"); + assert_eq!(error.code, "transform.execution", "{body}"); } } @@ -332,7 +332,7 @@ fn pad_with_a_string_fills_to_the_length_and_stops_at_the_budget() { r#"let s = ""; s.pad(9223372036854775807, "ab"); s"#, ] { let error = within(10, move || run(body, json!({}))).unwrap_err(); - assert_eq!(error.code, "function.resource-limit", "{body}"); + assert_eq!(error.code, "transform.resource-limit", "{body}"); } } @@ -413,9 +413,9 @@ fn package_string_helpers_end_on_empty_zero_and_extreme_arguments() { if let Err(error) = outcome { assert!( [ - "function.execution", - "function.resource-limit", - "function.output" + "transform.execution", + "transform.resource-limit", + "transform.output" ] .contains(&error.code.as_ref()), "{call}: {error:?}" @@ -451,7 +451,7 @@ fn only_math_whose_result_is_the_same_on_every_host_is_available() { let error = load(name) .err() .unwrap_or_else(|| panic!("{name} is available")); - assert_eq!(error.code, "coordinator.function.unknown-call", "{name}"); + assert_eq!(error.code, "coordinator.transform.unknown-call", "{name}"); } let value = run( r#" @@ -492,7 +492,7 @@ fn a_result_holding_nan_or_infinity_is_refused_not_turned_into_null() { "parse_float(\"NaN\")", ] { let error = run(body, json!({})).unwrap_err(); - assert_eq!(error.code, "function.execution", "{body}"); + assert_eq!(error.code, "transform.execution", "{body}"); } // Finite numbers, and a NaN that is only tested, still pass. assert_eq!( @@ -511,7 +511,7 @@ fn a_function_that_curries_is_refused_at_check_with_a_way_forward() { let Err(error) = Definition::load(root.path()) else { panic!("a Function that curries was accepted"); }; - assert_eq!(error.code, "coordinator.function.definition"); + assert_eq!(error.code, "coordinator.transform.definition"); assert!(error.message.contains("curry"), "{}", error.message); let hint = error.suggested_action.as_deref().unwrap_or_default(); assert!(hint.contains("curry"), "{hint}"); @@ -527,8 +527,8 @@ fn a_refusal_in_a_shared_source_is_reported_once() { ); let path = root.path().join("workflow.yaml"); let mut workflow: Value = serde_json::from_str(&fs::read_to_string(&path).unwrap()).unwrap(); - workflow["functions"]["other"] = workflow["functions"]["probe"].clone(); - workflow["functions"]["other"]["entrypoint"] = json!("other"); + workflow["transforms"]["other"] = workflow["transforms"]["probe"].clone(); + workflow["transforms"]["other"]["entrypoint"] = json!("other"); fs::write(&path, workflow.to_string()).unwrap(); let output = cli(&[ "--format", @@ -542,7 +542,7 @@ fn a_refusal_in_a_shared_source_is_reported_once() { .as_array() .unwrap() .iter() - .filter(|d| d["code"] == "coordinator.function.definition") + .filter(|d| d["code"] == "coordinator.transform.definition") .count(); assert_eq!(refusals, 1, "{report}"); } @@ -563,7 +563,7 @@ fn unknown_call_names(source: &str) -> Vec { .map(Vec::as_slice) .unwrap_or_default() .iter() - .filter(|d| d["code"] == "coordinator.function.unknown-call") + .filter(|d| d["code"] == "coordinator.transform.unknown-call") .map(|d| { let message = d["message"].as_str().unwrap(); message.split('`').nth(1).unwrap().to_owned() diff --git a/crates/registry-coordinator/tests/instant_functions.rs b/crates/registry-coordinator/tests/instant_functions.rs index 401441fae4..57b6bde8cf 100644 --- a/crates/registry-coordinator/tests/instant_functions.rs +++ b/crates/registry-coordinator/tests/instant_functions.rs @@ -15,14 +15,14 @@ fn project(functions: &str) -> tempfile::TempDir { let workflow = json!({ "apiVersion": authoring::API_VERSION, "kind": authoring::KIND, "project": {"id": "instants", "version": "1"}, - "functions": { + "transforms": { "due": {"runtime":"rhai","source":"functions.rhai","entrypoint":"due","inputs":{"request":{"type":"object"}},"output":{"type":"string","format":"date-time"}}, "elapsed": {"runtime":"rhai","source":"functions.rhai","entrypoint":"elapsed","inputs":{"request":{"type":"object"}},"output":{"type":"integer"}} }, "workflow": {"input": {"type": "object"}, "deadlineSeconds": 86400, "start": "due", "steps": { - "due": {"type": "wait-until", "waitUntil": {"type": "function", "function": "due", "inputs": {"request":{"type": "input"}}}, "next": "done"}, - "done": {"type": "finish", "outcome": "measured", "output": {"type": "function", "function": "elapsed", "inputs": {"request":{"type": "input"}}}} + "due": {"type": "wait-until", "waitUntil": {"type": "transform", "transform": "due", "inputs": {"request":{"type": "input"}}}, "next": "done"}, + "done": {"type": "finish", "outcome": "measured", "output": {"type": "transform", "transform": "elapsed", "inputs": {"request":{"type": "input"}}}} }, "outcomes": {"measured": {"type": "integer"}} } }); @@ -52,7 +52,7 @@ fn between(at: &str, other: &str) -> registry_coordinator::Result { definition().evaluate("done", &json!({"at": at, "other": other}), &BTreeMap::new()) } -const REFUSED: &str = "the function could not evaluate its supplied values"; +const REFUSED: &str = "the Transform could not evaluate its supplied values"; #[test] fn add_seconds_moves_an_instant_and_writes_it_in_utc() { @@ -107,7 +107,7 @@ fn an_instant_or_result_outside_rfc_3339_is_a_function_failure_that_omits_the_va ]; for refusal in refusals { let error = refusal.err().unwrap(); - assert_eq!(error.code, "function.execution"); + assert_eq!(error.code, "transform.execution"); assert_eq!(error.message, REFUSED); let rendered = serde_json::to_string(&json!({ "message": error.message, "field": error.field, @@ -136,5 +136,5 @@ fn the_function_profile_reads_no_clock() { let error = Definition::load(project(&functions).path()) .err() .expect("a call to the clock is refused"); - assert_eq!(error.code, "coordinator.function.unknown-call"); + assert_eq!(error.code, "coordinator.transform.unknown-call"); } diff --git a/crates/registry-coordinator/tests/mapping_checks.rs b/crates/registry-coordinator/tests/mapping_checks.rs index cd9e038297..f8c555749c 100644 --- a/crates/registry-coordinator/tests/mapping_checks.rs +++ b/crates/registry-coordinator/tests/mapping_checks.rs @@ -289,7 +289,7 @@ fn a_mapping_that_fits_every_schema_loads() { #[test] fn open_members_accept_any_path_beneath_them() { let mut project = project(); - project["workflow"]["steps"]["done"]["output"] = json!({"type": "function", "function": "combine", "inputs": {"arg0": {"type": "input", "path": "/labels/lname"}, "arg1": {"type": "input", "path": "/labels/other"}, "arg2": {"type": "input", "path": "/tree/child/child/child/name"}, "arg3": {"type": "input", "path": "/slots/3"}, "arg4": {"type": "input", "path": "/extra/any/depth"}, "arg5": {"type": "step", "step": "read", "path": "/data/domainData/any/0/depth"}, "arg6": {"type": "step", "step": "read", "path": "/data/extension"}, "arg7": {"type": "step", "step": "read", "path": "/links/self"}, "arg8": {"type": "step", "step": "lookup", "path": "/body/0/a~1b"}}}); + project["workflow"]["steps"]["done"]["output"] = json!({"type": "transform", "transform": "combine", "inputs": {"arg0": {"type": "input", "path": "/labels/lname"}, "arg1": {"type": "input", "path": "/labels/other"}, "arg2": {"type": "input", "path": "/tree/child/child/child/name"}, "arg3": {"type": "input", "path": "/slots/3"}, "arg4": {"type": "input", "path": "/extra/any/depth"}, "arg5": {"type": "step", "step": "read", "path": "/data/domainData/any/0/depth"}, "arg6": {"type": "step", "step": "read", "path": "/data/extension"}, "arg7": {"type": "step", "step": "read", "path": "/links/self"}, "arg8": {"type": "step", "step": "lookup", "path": "/body/0/a~1b"}}}); load(&project, "fn combine(__named) { let a = __named.arg0; let b = __named.arg1; let c = __named.arg2; let d = __named.arg3; let e = __named.arg4; let f = __named.arg5; let g = __named.arg6; let h = __named.arg7; let i = __named.arg8; () }").unwrap(); } @@ -335,7 +335,7 @@ fn a_path_the_operation_output_does_not_declare_is_refused() { #[test] fn function_arguments_have_their_paths_checked_and_nothing_else() { let mut project = project(); - project["workflow"]["steps"]["done"]["output"] = json!({"type": "function", "function": "combine", "inputs": {"arg0": {"type": "input", "path": "/count"}, "arg1": {"type": "input", "path": "/tree/child/nmae"}}}); + project["workflow"]["steps"]["done"]["output"] = json!({"type": "transform", "transform": "combine", "inputs": {"arg0": {"type": "input", "path": "/count"}, "arg1": {"type": "input", "path": "/tree/child/nmae"}}}); assert_finding( &refused(&project), "coordinator.mapping.path", @@ -642,9 +642,9 @@ fn an_admitted_snapshot_is_not_held_to_the_static_checks() { fn declare_test_functions(project: &Value) -> Value { fn mapping(value: &Value, functions: &mut serde_json::Map) { if let Some(object) = value.as_object() { - if object.get("type") == Some(&json!("function")) { + if object.get("type") == Some(&json!("transform")) { if let (Some(name), Some(inputs)) = ( - object.get("function").and_then(Value::as_str), + object.get("transform").and_then(Value::as_str), object.get("inputs").and_then(Value::as_object), ) { let signature = inputs @@ -666,6 +666,6 @@ fn declare_test_functions(project: &Value) -> Value { let mut project = project.clone(); let mut functions = serde_json::Map::new(); mapping(&project["workflow"]["steps"], &mut functions); - project["functions"] = Value::Object(functions); + project["transforms"] = Value::Object(functions); project } diff --git a/crates/registry-coordinator/tests/mapping_grammar.rs b/crates/registry-coordinator/tests/mapping_grammar.rs index 1218d1b570..bcb4464fdb 100644 --- a/crates/registry-coordinator/tests/mapping_grammar.rs +++ b/crates/registry-coordinator/tests/mapping_grammar.rs @@ -214,7 +214,7 @@ fn references_and_fields_carry_plumbing_without_a_function() { #[test] fn function_arguments_accept_paths_and_literals() { let mut project = project(); - project["workflow"]["steps"]["done"]["output"] = json!({"type": "function", "function": "combine", "inputs": {"arg0": {"type": "input", "path": "/applicationId"}, "arg1": {"type": "literal", "value": {"nested": [1, true, null]}}, "arg2": {"type": "step", "step": "read", "path": "/data"}, "arg3": {"type": "step", "step": "read"}}}); + project["workflow"]["steps"]["done"]["output"] = json!({"type": "transform", "transform": "combine", "inputs": {"arg0": {"type": "input", "path": "/applicationId"}, "arg1": {"type": "literal", "value": {"nested": [1, true, null]}}, "arg2": {"type": "step", "step": "read", "path": "/data"}, "arg3": {"type": "step", "step": "read"}}}); let definition = load( &project, "fn combine(__named) { let id = __named.arg0; let literal = __named.arg1; let data = __named.arg2; let whole = __named.arg3; let count = if literal.nested.len() == 3 && literal.nested[1] { \"3\" } else { \"?\" }; #{ record: data.recordId + \":\" + id + \":\" + count + \":\" + whole.meta.datasetId, note: () } }", @@ -319,21 +319,21 @@ fn a_malformed_pointer_is_refused_at_its_member() { fn an_input_names_its_form_function_or_fields() { for (value, path, code, message, action) in [ ( - json!({"function": "f", "inputs": {}}), + json!({"transform": "f", "inputs": {}}), "/workflow/steps/read/input", "config.missing-key", "the member `type` is missing; it names which form this mapping takes", - "Add `type` with one of `function`, `fields`, `compare`, `input`, `step`, `literal`.", + "Add `type` with one of `transform`, `fields`, `compare`, `input`, `step`, `literal`.", ), ( json!({"type": "unknown"}), "/workflow/steps/read/input/type", "config.unknown-variant", - "expected one of `function`, `fields`, `compare`, `input`, `step`, `literal`", - "Use one of `function`, `fields`, `compare`, `input`, `step`, `literal`.", + "expected one of `transform`, `fields`, `compare`, `input`, `step`, `literal`", + "Use one of `transform`, `fields`, `compare`, `input`, `step`, `literal`.", ), ( - json!({"type": "function", "function": "f"}), + json!({"type": "transform", "transform": "f"}), "/workflow/steps/read/input", "config.missing-key", "the required member `inputs` is missing", @@ -347,11 +347,11 @@ fn an_input_names_its_form_function_or_fields() { "Add `fields`.", ), ( - json!({"type": "function", "function": "f", "inputs": {}, "fields": {}}), + json!({"type": "transform", "transform": "f", "inputs": {}, "fields": {}}), "/workflow/steps/read/input/fields", "config.unknown-key", "`fields` is not a member of this mapping", - "Remove `fields`; the accepted keys are `type`, `function`, `inputs`.", + "Remove `fields`; the accepted keys are `type`, `transform`, `inputs`.", ), ] { let mut project = project(); @@ -368,18 +368,18 @@ fn an_input_names_its_form_function_or_fields() { fn a_selector_names_its_form_function_or_one_reference() { for (value, path, code, message, action) in [ ( - json!({"function": "f", "inputs": {}}), + json!({"transform": "f", "inputs": {}}), "/workflow/steps/route/choose", "config.missing-key", "the member `type` is missing; it names which form this mapping takes", - "Add `type` with one of `function`, `fields`, `compare`, `input`, `step`, `literal`.", + "Add `type` with one of `transform`, `fields`, `compare`, `input`, `step`, `literal`.", ), ( json!({"type": "unknown"}), "/workflow/steps/route/choose/type", "config.unknown-variant", - "expected one of `function`, `fields`, `compare`, `input`, `step`, `literal`", - "Use one of `function`, `fields`, `compare`, `input`, `step`, `literal`.", + "expected one of `transform`, `fields`, `compare`, `input`, `step`, `literal`", + "Use one of `transform`, `fields`, `compare`, `input`, `step`, `literal`.", ), ( json!({"type": "step"}), @@ -410,11 +410,11 @@ fn a_selector_names_its_form_function_or_one_reference() { "Remove `path`; the accepted keys are `type`, `value`.", ), ( - json!({"type": "function", "function": "f", "inputs": {}, "path": "/x"}), + json!({"type": "transform", "transform": "f", "inputs": {}, "path": "/x"}), "/workflow/steps/route/choose/path", "config.unknown-key", "`path` is not a member of this mapping", - "Remove `path`; the accepted keys are `type`, `function`, `inputs`.", + "Remove `path`; the accepted keys are `type`, `transform`, `inputs`.", ), ] { let mut project = project(); @@ -554,9 +554,9 @@ fn reference_selectors_keep_their_result_contracts() { fn declare_test_functions(project: &Value) -> Value { fn mapping(value: &Value, functions: &mut serde_json::Map) { if let Some(object) = value.as_object() { - if object.get("type") == Some(&json!("function")) { + if object.get("type") == Some(&json!("transform")) { if let (Some(name), Some(inputs)) = ( - object.get("function").and_then(Value::as_str), + object.get("transform").and_then(Value::as_str), object.get("inputs").and_then(Value::as_object), ) { let signature = inputs @@ -578,6 +578,6 @@ fn declare_test_functions(project: &Value) -> Value { let mut project = project.clone(); let mut functions = serde_json::Map::new(); mapping(&project["workflow"]["steps"], &mut functions); - project["functions"] = Value::Object(functions); + project["transforms"] = Value::Object(functions); project } diff --git a/crates/registry-coordinator/tests/nested_fields.rs b/crates/registry-coordinator/tests/nested_fields.rs index be3265a61f..e5d3b9085c 100644 --- a/crates/registry-coordinator/tests/nested_fields.rs +++ b/crates/registry-coordinator/tests/nested_fields.rs @@ -137,9 +137,9 @@ fn only(error: &CoordinatorError) -> &Diagnostic { fn declare_test_functions(project: &Value) -> Value { fn mapping(value: &Value, functions: &mut serde_json::Map) { if let Some(object) = value.as_object() { - if object.get("type") == Some(&json!("function")) { + if object.get("type") == Some(&json!("transform")) { if let (Some(name), Some(inputs)) = ( - object.get("function").and_then(Value::as_str), + object.get("transform").and_then(Value::as_str), object.get("inputs").and_then(Value::as_object), ) { let signature = inputs @@ -157,7 +157,7 @@ fn declare_test_functions(project: &Value) -> Value { let mut project = project.clone(); let mut functions = serde_json::Map::new(); mapping(&project["workflow"]["steps"], &mut functions); - project["functions"] = Value::Object(functions); + project["transforms"] = Value::Object(functions); project } @@ -342,7 +342,7 @@ fn a_nested_member_reads_only_outputs_available_on_every_route() { fn a_nested_member_never_holds_a_function() { let mut project = project(); project["workflow"]["steps"]["lookup"]["input"]["fields"]["query"]["fields"]["page"] = - json!({"type": "function", "function": "page", "inputs": {}}); + json!({"type": "transform", "transform": "page", "inputs": {}}); let error = parse_refused(&project); let finding = &error.diagnostics[0]; assert_eq!(finding.code, "config.unknown-variant"); @@ -357,7 +357,7 @@ fn a_nested_member_never_holds_a_function() { // Function inputs stay plain references. let mut project = self::project(); - project["workflow"]["steps"]["lookup"]["input"] = json!({"type": "function", "function": "build", "inputs": { + project["workflow"]["steps"]["lookup"]["input"] = json!({"type": "transform", "transform": "build", "inputs": { "page": {"type": "fields", "fields": {}} }}); let error = parse_refused(&project); @@ -377,11 +377,11 @@ fn a_nested_member_never_holds_a_function() { fn a_nested_mapping_freezes_the_input_a_function_would_build() { let declarative = load(&project(), "").unwrap(); let mut computed = project(); - computed["workflow"]["steps"]["lookup"]["input"] = json!({"type": "function", "function": "build_query", "inputs": { + computed["workflow"]["steps"]["lookup"]["input"] = json!({"type": "transform", "transform": "build_query", "inputs": { "page": {"type": "input", "path": "/page"}, "record": {"type": "step", "step": "read", "path": "/data/recordId"} }}); - computed["workflow"]["steps"]["done"]["output"] = json!({"type": "function", "function": "build_outcome", "inputs": { + computed["workflow"]["steps"]["done"]["output"] = json!({"type": "transform", "transform": "build_outcome", "inputs": { "id": {"type": "input", "path": "/applicationId"}, "record": {"type": "step", "step": "read", "path": "/data/recordId"} }}); @@ -485,7 +485,7 @@ fn a_snapshot_refuses_unknown_members_of_a_nested_mapping() { reference_with_fields["fields"]["page"]["fields"] = json!({}); let mut function_shaped = query.clone(); function_shaped["fields"]["page"] = - json!({"type": "function", "function": "page", "inputs": {}}); + json!({"type": "transform", "transform": "page", "inputs": {}}); let mut wrong_case = query.clone(); wrong_case["type"] = json!("Fields"); for (case, query) in [ diff --git a/crates/registry-coordinator/tests/postgres_state.rs b/crates/registry-coordinator/tests/postgres_state.rs index 1c628b45b0..49c065fcba 100644 --- a/crates/registry-coordinator/tests/postgres_state.rs +++ b/crates/registry-coordinator/tests/postgres_state.rs @@ -49,7 +49,7 @@ kind: CoordinatorProject project: {id: synthetic-declared-refusal, version: v1} contracts: applications: {type: breg, source: applications.json} -functions: +transforms: action: runtime: rhai source: functions.rhai @@ -75,14 +75,14 @@ workflow: action: type: call operation: invoke-breg-action - input: {type: function, function: action, inputs: {input: {type: input}}} + input: {type: transform, transform: action, inputs: {input: {type: input}}} next: applied onDeclaredRefusal: refused applied: {type: finish, outcome: applied} refused: type: finish outcome: refused - output: {type: function, function: keep, inputs: {value: {type: step, step: action}}} + output: {type: transform, transform: keep, inputs: {value: {type: step, step: action}}} outcomes: applied: {type: 'null'} refused: {operationRefusal: invoke-breg-action} @@ -99,7 +99,7 @@ kind: CoordinatorProject project: {id: synthetic-declared-refusal-deadline, version: v1} contracts: applications: {type: breg, source: applications.json} -functions: +transforms: action: runtime: rhai source: functions.rhai @@ -125,13 +125,13 @@ workflow: action: type: call operation: invoke-breg-action - input: {type: function, function: action, inputs: {input: {type: input}}} + input: {type: transform, transform: action, inputs: {input: {type: input}}} next: applied onDeclaredRefusal: later later: type: call operation: invoke-breg-action - input: {type: function, function: action, inputs: {input: {type: input}}} + input: {type: transform, transform: action, inputs: {input: {type: input}}} next: applied applied: {type: finish, outcome: applied} outcomes: @@ -143,7 +143,7 @@ kind: CoordinatorProject project: id: synthetic-reminder version: v1 -functions: +transforms: timer: runtime: rhai source: functions.rhai @@ -214,8 +214,8 @@ workflow: wait: type: wait-until waitUntil: - type: function - function: timer + type: transform + transform: timer inputs: input: type: input @@ -224,8 +224,8 @@ workflow: type: call operation: read-record input: - type: function - function: record + type: transform + transform: record inputs: input: type: input @@ -233,8 +233,8 @@ workflow: choose: type: choose choose: - type: function - function: permission + type: transform + transform: permission inputs: record: type: step @@ -246,8 +246,8 @@ workflow: type: call operation: submit-message input: - type: function - function: message + type: transform + transform: message inputs: record: type: step @@ -257,8 +257,8 @@ workflow: type: finish outcome: sent output: - type: function - function: receipt + type: transform + transform: receipt inputs: message: type: step @@ -311,7 +311,7 @@ async fn harness() -> Harness { .unwrap(); std::fs::write(project.path().join("applications.json"), include_str!("../../../products/coordinator/examples/governed-action-follow-up/generated/applications.contract.json")).unwrap(); std::fs::write(project.path().join("workflow.yaml"), WORKFLOW).expect("workflow"); - std::fs::write(project.path().join("functions.rhai"), FUNCTIONS).expect("functions"); + std::fs::write(project.path().join("functions.rhai"), FUNCTIONS).expect("transforms"); let definition = Definition::load(project.path()).expect("valid synthetic definition"); Harness { url, @@ -1865,7 +1865,7 @@ async fn a_call_input_outside_the_operation_input_is_refused_before_dispatch_wit // A permissive Function result still cannot bypass the host's exact // Operation contract or freeze an invalid command. let mut workflow = authored_workflow_value(WORKFLOW); - workflow["functions"]["message"]["output"] = json!({"type":"object"}); + workflow["transforms"]["message"]["output"] = json!({"type":"object"}); std::fs::write(h.project.path().join("workflow.yaml"), workflow.to_string()).unwrap(); let definition = Definition::load(h.project.path()).unwrap(); let run = h @@ -1925,7 +1925,7 @@ async fn invalid_dictionary_values_never_disclose_member_names_or_dispatch() { apiVersion: id.registrystack.org/formats/coordinator/project/v1alpha1 kind: CoordinatorProject project: {id: synthetic-dictionary-privacy, version: '1'} -functions: +transforms: request: runtime: rhai source: functions.rhai @@ -1949,7 +1949,7 @@ workflow: read: type: call operation: read-job - input: {type: function, function: request, inputs: {request: {type: input}}} + input: {type: transform, transform: request, inputs: {request: {type: input}}} next: done done: {type: finish, outcome: done} outcomes: {done: {type: 'null'}} @@ -3946,36 +3946,36 @@ async fn invalid_following_wait(prior: &str, body: &str) -> Harness { let mut workflow = authored_workflow_value(WORKFLOW); let mut steps = serde_json::Map::new(); let input_mapping = - json!({"type":"function","function":"record","inputs":{"input":{"type":"input"}}}); + json!({"type":"transform","transform":"record","inputs":{"input":{"type":"input"}}}); let start = match prior { "read" => { steps.insert("read".into(),json!({"type":"call","operation":"read-record","input":input_mapping,"next":"later"})); "read" } "choose" => { - steps.insert("choose".into(),json!({"type":"choose","choose":{"type":"function","function":"choose-input","inputs":{"input":{"type":"input"}}},"cases":{"yes":"later"}})); + steps.insert("choose".into(),json!({"type":"choose","choose":{"type":"transform","transform":"choose-input","inputs":{"input":{"type":"input"}}},"cases":{"yes":"later"}})); "choose" } "wait" => { - steps.insert("wait".into(),json!({"type":"wait-until","waitUntil":{"type":"function","function":"timer","inputs":{"input":{"type":"input"}}},"next":"later"})); + steps.insert("wait".into(),json!({"type":"wait-until","waitUntil":{"type":"transform","transform":"timer","inputs":{"input":{"type":"input"}}},"next":"later"})); "wait" } "message" => { steps.insert("read".into(),json!({"type":"call","operation":"read-record","input":input_mapping,"next":"message"})); - steps.insert("message".into(),json!({"type":"call","operation":"submit-message","input":{"type":"function","function":"message","inputs":{"record":{"type":"step","step":"read"}}},"next":"later"})); + steps.insert("message".into(),json!({"type":"call","operation":"submit-message","input":{"type":"transform","transform":"message","inputs":{"record":{"type":"step","step":"read"}}},"next":"later"})); "read" } _ => panic!("unknown test prior step"), }; - steps.insert("later".into(),json!({"type":"wait-until","waitUntil":{"type":"function","function":"broken-wait","inputs":{"input":{"type":"input"}}},"next":"future-read"})); + steps.insert("later".into(),json!({"type":"wait-until","waitUntil":{"type":"transform","transform":"broken-wait","inputs":{"input":{"type":"input"}}},"next":"future-read"})); steps.insert( "future-read".into(), json!({"type":"call","operation":"read-record","input":input_mapping,"next":"done"}), ); steps.insert("done".into(), json!({"type":"finish","outcome":"done"})); workflow["workflow"] = json!({"input":{"type":"object"},"deadlineSeconds":3600,"start":start,"steps":steps,"outcomes":{"done":{"type":"null"}}}); - workflow["functions"]["choose-input"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"choose_input","inputs":{"input":{"type":"object"}},"output":{"type":"string","enum":["yes"]}}); - workflow["functions"]["broken-wait"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"broken_wait","inputs":{"input":{"type":"object"}},"output":{}}); + workflow["transforms"]["choose-input"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"choose_input","inputs":{"input":{"type":"object"}},"output":{"type":"string","enum":["yes"]}}); + workflow["transforms"]["broken-wait"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"broken_wait","inputs":{"input":{"type":"object"}},"output":{}}); std::fs::write(h.project.path().join("workflow.yaml"), workflow.to_string()).unwrap(); std::fs::write(h.project.path().join("functions.rhai"),format!("{FUNCTIONS}\nfn choose_input(args) {{ \"yes\" }}\nfn broken_wait(args) {{let input=args.input; {body}}}")).unwrap(); h.definition = Definition::load(h.project.path()).unwrap(); @@ -4681,9 +4681,8 @@ async fn interrupted_mutation(kind: &str, prepared: bool) -> (Harness, Uuid, Arc .as_object_mut() .unwrap() .remove("read"); - document["workflow"]["steps"]["message"]["input"] = - json!({"type":"function","function":"pre-io-command","inputs":{"input":{"type":"input"}}}); - document["functions"]["pre-io-command"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"pre_io_command","inputs":{"input":{"type":"object"}},"output":{"operationInput":"submit-message"}}); + document["workflow"]["steps"]["message"]["input"] = json!({"type":"transform","transform":"pre-io-command","inputs":{"input":{"type":"input"}}}); + document["transforms"]["pre-io-command"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"pre_io_command","inputs":{"input":{"type":"object"}},"output":{"operationInput":"submit-message"}}); if kind == "appointment" { document["operations"]["submit-message"]["uses"] = json!("scheduling.create-appointment/v1"); diff --git a/crates/registry-coordinator/tests/process_restart.rs b/crates/registry-coordinator/tests/process_restart.rs index 6c16e8afd6..a2fd1c955a 100644 --- a/crates/registry-coordinator/tests/process_restart.rs +++ b/crates/registry-coordinator/tests/process_restart.rs @@ -346,7 +346,7 @@ async fn exited_decision_workers_hold_unknown_results_and_reuse_completed_result apiVersion: id.registrystack.org/formats/coordinator/project/v1alpha1 kind: CoordinatorProject project: {id: process-decision, version: '1'} -functions: +transforms: decision-request: runtime: rhai source: functions.rhai @@ -371,11 +371,11 @@ workflow: evaluate: type: call operation: evaluate - input: {type: function, function: decision-request, inputs: {input: {type: input}}} + input: {type: transform, transform: decision-request, inputs: {input: {type: input}}} next: wait wait: type: wait-until - waitUntil: {type: function, function: timer, inputs: {input: {type: input}}} + waitUntil: {type: transform, transform: timer, inputs: {input: {type: input}}} next: done done: type: finish diff --git a/crates/registry-coordinator/tests/product_contract_imports.rs b/crates/registry-coordinator/tests/product_contract_imports.rs index e716c5faf4..88f563997d 100644 --- a/crates/registry-coordinator/tests/product_contract_imports.rs +++ b/crates/registry-coordinator/tests/product_contract_imports.rs @@ -299,10 +299,9 @@ fn template_import_checks_computed_data_and_keeps_local_schema_references() { project["contracts"] = json!({"notices": {"type": "messaging", "source": "contract.json"}}); project["operations"]["request"]["template"] = json!({"contract": "notices", "id": "licence-issued", "version": "1"}); - project["functions"] = json!({"message": {"runtime": "rhai", "source": "functions.rhai", "entrypoint": "message", + project["transforms"] = json!({"message": {"runtime": "rhai", "source": "functions.rhai", "entrypoint": "message", "inputs": {"input": {"type": "object"}}, "output": {"type": "object"}}}); - project["workflow"]["steps"]["call"]["input"] = - json!({"type": "function", "function": "message", "inputs": {"input": {"type": "input"}}}); + project["workflow"]["steps"]["call"]["input"] = json!({"type": "transform", "transform": "message", "inputs": {"input": {"type": "input"}}}); fs::write( root.path().join("functions.rhai"), "fn message(args) { args.input }", diff --git a/crates/registry-coordinator/tests/read_in_force_adapter.rs b/crates/registry-coordinator/tests/read_in_force_adapter.rs index e9f79e887c..f007001096 100644 --- a/crates/registry-coordinator/tests/read_in_force_adapter.rs +++ b/crates/registry-coordinator/tests/read_in_force_adapter.rs @@ -236,7 +236,7 @@ async fn the_request_is_one_as_of_read_with_an_equality_filter_and_top_two() { "$filter", "district eq 'O''Brien''s' and grade eq 7 and hours eq 7.5 and lead eq true", )) - .and(query_param("$top", "2")) + .and(query_param("limit", "2")) .and(query_param("accessProfile", "follow-up-reader")) .and(header_exists("authorization")) .respond_with(collection(vec![row(ASSIGNMENT, "1")])) diff --git a/crates/registry-coordinator/tests/recovery_audit.rs b/crates/registry-coordinator/tests/recovery_audit.rs index 7069cccdd7..dbd1bdcb03 100644 --- a/crates/registry-coordinator/tests/recovery_audit.rs +++ b/crates/registry-coordinator/tests/recovery_audit.rs @@ -132,7 +132,7 @@ async fn harness() -> Harness { r#"apiVersion: id.registrystack.org/formats/coordinator/project/v1alpha1 kind: CoordinatorProject project: {id: recovery-audit, version: v1} -functions: +transforms: timer: runtime: rhai source: functions.rhai @@ -146,7 +146,7 @@ workflow: steps: wait: type: wait-until - waitUntil: {type: function, function: timer, inputs: {input: {type: input}}} + waitUntil: {type: transform, transform: timer, inputs: {input: {type: input}}} next: done done: {type: finish, outcome: done} outcomes: {done: {type: 'null'}} diff --git a/crates/registry-coordinator/tests/review_wait_postgres.rs b/crates/registry-coordinator/tests/review_wait_postgres.rs index 60e91ceb2a..b7f369d83d 100644 --- a/crates/registry-coordinator/tests/review_wait_postgres.rs +++ b/crates/registry-coordinator/tests/review_wait_postgres.rs @@ -290,7 +290,7 @@ async fn harness_with_options(on_timeout: bool, on_cancel: bool, cleanup_wait: b workflow_with_cancel(on_timeout, on_cancel, cleanup_wait), ) .expect("workflow"); - std::fs::write(project.path().join("functions.rhai"), FUNCTIONS).expect("functions"); + std::fs::write(project.path().join("functions.rhai"), FUNCTIONS).expect("transforms"); let definition = Definition::load(project.path()).expect("valid synthetic definition"); Harness { url, diff --git a/crates/registry-coordinator/tests/runtime_config.rs b/crates/registry-coordinator/tests/runtime_config.rs index 8a499cc6d5..4762697ffe 100644 --- a/crates/registry-coordinator/tests/runtime_config.rs +++ b/crates/registry-coordinator/tests/runtime_config.rs @@ -806,7 +806,7 @@ fn init_writes_eight_entries_for_an_offline_checkable_project_and_never_overwrit let explanation = definition.explain().unwrap(); assert_eq!(explanation["workflowRevision"], definition.digest); assert!(explanation["operations"].is_object()); - assert!(explanation["functions"].is_object()); + assert!(explanation["transforms"].is_object()); assert_eq!(explanation["steps"].as_array().unwrap().len(), 6); assert_eq!(explanation["limits"]["operations"], 100000); fs::write(path.join("functions.rhai"), CANARY).unwrap(); @@ -926,7 +926,7 @@ fn appointment_workflow_refuses_ordinary_authority_before_admission_or_activatio ) .unwrap(); read_only["workflow"]["start"] = json!("metadata"); - read_only.as_object_mut().unwrap().remove("functions"); + read_only.as_object_mut().unwrap().remove("transforms"); read_only["operations"] .as_object_mut() .unwrap() diff --git a/crates/registry-coordinator/tests/scheduling_event_native.rs b/crates/registry-coordinator/tests/scheduling_event_native.rs index 00d18ca87b..56daa20b4f 100644 --- a/crates/registry-coordinator/tests/scheduling_event_native.rs +++ b/crates/registry-coordinator/tests/scheduling_event_native.rs @@ -286,7 +286,7 @@ fn write_project(root: &Path) { "appointmentId":{"type":"string","format":"uuid"}, "state":{"type":"string","enum":["confirmed","cancelled"]} }}}, - "functions":{"notice-request":{"runtime":"rhai","source":"functions.rhai","entrypoint":"notice_request", + "transforms":{"notice-request":{"runtime":"rhai","source":"functions.rhai","entrypoint":"notice_request", "inputs":{"input":{"typeRef":"lifecycle-input"}},"output":{"operationInput":"send-message"}}}, "operations":{"send-message":{"uses":"messaging.submit-message/v1","connection":"notices"}}, "workflow":{ @@ -313,7 +313,7 @@ fn write_project(root: &Path) { "deadlineSeconds":300, "start":"notify", "steps":{ - "notify":{"type":"call","operation":"send-message","input":{"type":"function","function":"notice-request","inputs":{"input":{"type":"input"}}},"next":"accepted"}, + "notify":{"type":"call","operation":"send-message","input":{"type":"transform","transform":"notice-request","inputs":{"input":{"type":"input"}}},"next":"accepted"}, "accepted":{"type":"finish","outcome":"message-accepted","output":{"type":"fields","fields":{"messageId":{"type":"step","step":"notify","path":"/id"}}}} }, "outcomes":{"message-accepted":{"type":"object","additionalProperties":false,"required":["messageId"],"properties":{"messageId":{"type":"string","format":"uuid"}}}} diff --git a/crates/registry-coordinator/tests/support/breg_service.rs b/crates/registry-coordinator/tests/support/breg_service.rs index 8f4bded57e..6ebb639d7c 100644 --- a/crates/registry-coordinator/tests/support/breg_service.rs +++ b/crates/registry-coordinator/tests/support/breg_service.rs @@ -176,11 +176,11 @@ impl Breg { "fields":[{"id":"owner", "type":"string", "required":true, "maximumLength":80, "classification":"internal"}, {"id":"label", "type":"string", "required":true, "minimumLength":1, "maximumLength":80, "classification":"internal"}]}}, "datasets":{"synthetic-items": {}}, - "functions":{"update-item-plan": {"runtime":"rhai","source":"scripts/update-item.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}, + "actionPlans":{"update-item-plan": {"runtime":"rhai","source":"scripts/update-item.rhai","entrypoint":"plan","abi":"registry.action-plan/v1"}}, "actions":{"update-item": { "execution":{"mode":"immediate"}, "inputs":[ {"id":"target", "apiName":"targetId", "type":"reference", "target":"item", "required":true, "classification":"internal"}, {"id":"label", "type":"string", "required":true, "minimumLength":1, "maximumLength":80, "classification":"internal"}], - "plan":{"type":"function", "function":"update-item-plan", "inputs":["target","label"], + "plan":{"type":"scripted", "actionPlan":"update-item-plan", "inputs":["target","label"], "refusals":[{"code":"label-not-eligible", "label":"The label is not eligible."}], "writes":[{"id":"item", "target":{"fromInput":"target"}, "operation":"patch", "fields":["label"]}]}}}, "accessProfiles":{ diff --git a/crates/registry-coordinator/tests/support/decision_evaluation.rs b/crates/registry-coordinator/tests/support/decision_evaluation.rs index 0c8cbb1a55..5c32c9b7d2 100644 --- a/crates/registry-coordinator/tests/support/decision_evaluation.rs +++ b/crates/registry-coordinator/tests/support/decision_evaluation.rs @@ -7,7 +7,7 @@ const DECISION_WORKFLOW: &str = r#" apiVersion: id.registrystack.org/formats/coordinator/project/v1alpha1 kind: CoordinatorProject project: {id: synthetic-decision, version: '1'} -functions: +transforms: decision-request: runtime: rhai source: functions.rhai @@ -26,7 +26,7 @@ workflow: evaluate: type: call operation: evaluate - input: {type: function, function: decision-request, inputs: {input: {type: input}}} + input: {type: transform, transform: decision-request, inputs: {input: {type: input}}} next: done done: type: finish @@ -250,9 +250,9 @@ async fn completed_decision_is_reused_after_restart_and_downstream_mapping_failu let mut h = decision_harness().await; if broken_wait { let mut document = authored_workflow_value(DECISION_WORKFLOW); - document["functions"]["broken-wait"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"broken_wait","inputs":{"input":{"type":"object"}},"output":{}}); + document["transforms"]["broken-wait"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"broken_wait","inputs":{"input":{"type":"object"}},"output":{}}); document["workflow"]["steps"]["evaluate"]["next"] = json!("later"); - document["workflow"]["steps"]["later"] = json!({"type":"wait-until","waitUntil":{"type":"function","function":"broken-wait","inputs":{"input":{"type":"input"}}},"next":"done"}); + document["workflow"]["steps"]["later"] = json!({"type":"wait-until","waitUntil":{"type":"transform","transform":"broken-wait","inputs":{"input":{"type":"input"}}},"next":"done"}); std::fs::write(h.project.path().join("workflow.yaml"), document.to_string()).unwrap(); std::fs::write( h.project.path().join("functions.rhai"), diff --git a/crates/registry-coordinator/tests/support/leased_wait_deadline.rs b/crates/registry-coordinator/tests/support/leased_wait_deadline.rs index 641d71e2b6..4d0b089bb9 100644 --- a/crates/registry-coordinator/tests/support/leased_wait_deadline.rs +++ b/crates/registry-coordinator/tests/support/leased_wait_deadline.rs @@ -15,7 +15,7 @@ kind: CoordinatorProject project: id: leased-timer version: v1 -functions: +transforms: timer: runtime: rhai source: functions.rhai @@ -35,11 +35,11 @@ workflow: steps: wait: type: wait-until - waitUntil: {type: function, function: timer, inputs: {input: {type: input}}} + waitUntil: {type: transform, transform: timer, inputs: {input: {type: input}}} next: choose choose: type: choose - choose: {type: function, function: choice, inputs: {input: {type: input}}} + choose: {type: transform, transform: choice, inputs: {input: {type: input}}} cases: {done: done} done: {type: finish, outcome: done} outcomes: @@ -175,7 +175,7 @@ async fn leased_finish_preserves_outcome_under_restore_review_and_after_retentio apiVersion: id.registrystack.org/formats/coordinator/project/v1alpha1 kind: CoordinatorProject project: {id: leased-finish, version: v1} -functions: +transforms: keep: runtime: rhai source: functions.rhai @@ -190,7 +190,7 @@ workflow: done: type: finish outcome: done - output: {type: function, function: keep, inputs: {input: {type: input}}} + output: {type: transform, transform: keep, inputs: {input: {type: input}}} outcomes: done: {type: object} "#, diff --git a/crates/registry-coordinator/tests/support/restore_pending.rs b/crates/registry-coordinator/tests/support/restore_pending.rs index a4423a1f36..61680764a0 100644 --- a/crates/registry-coordinator/tests/support/restore_pending.rs +++ b/crates/registry-coordinator/tests/support/restore_pending.rs @@ -32,12 +32,12 @@ async fn pending_work(kind: &str, at: chrono::DateTime) -> (Harness, Uuid, .remove("read"); let operation = "submit-message"; document["workflow"]["steps"]["message"]["operation"] = json!(operation); - document["workflow"]["steps"]["message"]["input"] = json!({"type":"function","function":"pending-command","inputs":{"input":{"type":"input"}}}); + document["workflow"]["steps"]["message"]["input"] = json!({"type":"transform","transform":"pending-command","inputs":{"input":{"type":"input"}}}); if kind == "appointment" { document["operations"][operation] = json!({"uses":"scheduling.create-appointment/v1","connection":"messages"}); } - document["functions"]["pending-command"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"pending_command","inputs":{"input":{"type":"object"}},"output":{"operationInput":operation}}); + document["transforms"]["pending-command"] = json!({"runtime":"rhai","source":"functions.rhai","entrypoint":"pending_command","inputs":{"input":{"type":"object"}},"output":{"operationInput":operation}}); let functions = h.project.path().join("functions.rhai"); let source = std::fs::read_to_string(&functions).unwrap(); std::fs::write( diff --git a/crates/registry-coordinator/tests/support/snapshot_boundary.rs b/crates/registry-coordinator/tests/support/snapshot_boundary.rs index 740cfa8786..f936001652 100644 --- a/crates/registry-coordinator/tests/support/snapshot_boundary.rs +++ b/crates/registry-coordinator/tests/support/snapshot_boundary.rs @@ -15,11 +15,11 @@ pub fn project_at_snapshot_size(path: &Path, size: usize) { let mut workflow = json!({ "apiVersion": "id.registrystack.org/formats/coordinator/project/v1alpha1", "kind": "CoordinatorProject", "project": {"id": "snapshot-boundary", "version": "1"}, - "functions":{"branch":{"runtime":"rhai","source":"functions.rhai","entrypoint":"branch","inputs":{"input":{"type":"null"}},"output":{"enum":["one","two","three"]}}}, + "transforms":{"branch":{"runtime":"rhai","source":"functions.rhai","entrypoint":"branch","inputs":{"input":{"type":"null"}},"output":{"enum":["one","two","three"]}}}, "workflow":{ "input": schema, "deadlineSeconds": 3600, "start": "select", "steps": { - "select": {"type": "choose", "choose": {"type": "function", "function": "branch", "inputs": {"input":{"type":"input"}}}, + "select": {"type": "choose", "choose": {"type": "transform", "transform": "branch", "inputs": {"input":{"type":"input"}}}, "cases": {"one": "first", "two": "second", "three": "third"}}, "first": {"type": "finish", "outcome": "one"}, "second": {"type": "finish", "outcome": "two"}, "third": {"type": "finish", "outcome": "three"} diff --git a/crates/registry-coordinator/tests/wait_for_authoring.rs b/crates/registry-coordinator/tests/wait_for_authoring.rs index 785a4c5164..67928a7ea1 100644 --- a/crates/registry-coordinator/tests/wait_for_authoring.rs +++ b/crates/registry-coordinator/tests/wait_for_authoring.rs @@ -325,7 +325,7 @@ fn a_review_cancel_built_by_a_function_is_refused() { ), ( " input:\n type: fields\n fields:\n request: {type: step, step: submit-review}\n reason: {type: literal, value: \"No decision within fourteen days.\"}\n", - " input: {type: function, function: withdrawal, inputs: {request: {type: step, step: submit-review}}}\n", + " input: {type: transform, transform: withdrawal, inputs: {request: {type: step, step: submit-review}}}\n", ), ], ); diff --git a/crates/registry-documents/src/config.rs b/crates/registry-documents/src/config.rs index 9615637320..ddcec31e94 100644 --- a/crates/registry-documents/src/config.rs +++ b/crates/registry-documents/src/config.rs @@ -436,7 +436,7 @@ registry_platform_yaml::tagged_union!(ContentVerificationConfig); static DOCUMENTS_CONTENT_VERIFICATION_DISABLED: DevelopmentSetting = DevelopmentSetting { code: "documents.posture.content-verification-disabled", key: "contentVerification", - summary: "Finalized document versions are approved without content verification.", + summary: "Finalized document versions are approved without content verification", production: "Configure an HTTP content verifier.", }; diff --git a/crates/registry-documents/src/schema.rs b/crates/registry-documents/src/schema.rs index 9a7e4e643e..80ef3cfd79 100644 --- a/crates/registry-documents/src/schema.rs +++ b/crates/registry-documents/src/schema.rs @@ -655,7 +655,8 @@ pub fn openapi_documents() -> Result, serde_json: "status": {"type": "integer"}, "detail": {"type": "string"}, "code": {"type": "string", "enum": codes}, - "traceId": {"type": "string"} + "traceId": {"type": "string"}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."} } }), ); diff --git a/crates/registry-evidence-authoring/src/compile.rs b/crates/registry-evidence-authoring/src/compile.rs index 65a2361eb0..151f9521f3 100644 --- a/crates/registry-evidence-authoring/src/compile.rs +++ b/crates/registry-evidence-authoring/src/compile.rs @@ -67,13 +67,13 @@ pub fn compile_with_pack_routes( let mut functions = Vec::new(); for (function_id, function) in &project.functions { let at = FieldPath::root() - .key("functions") + .key("derivations") .map_key(function_id.to_string()); let Some(script) = scripts.get(&function.source) else { findings.push(Finding::new( at.key("source"), - "function-asset-missing", - "the named Function asset was not supplied", + "derivation-asset-missing", + "the named Derivation asset was not supplied", )); continue; }; @@ -100,7 +100,7 @@ pub fn compile_with_pack_routes( project .functions .get(id) - .expect("validated Function reference") + .expect("validated Derivation reference") }; let mut sources = Map::new(); let mut source_facts = BTreeMap::new(); @@ -576,6 +576,7 @@ pub fn compile_with_pack_routes( .map(|(name, output)| (name.to_string(), output.concept.clone())) .collect(), ); + // This comment is part of the compiled artifact and its digest. let compiled_script = format!( "// Evidence Function {} interface assertion-derive/v1\n{compiled_script}", definition.derive.function @@ -588,7 +589,7 @@ pub fn compile_with_pack_routes( .key("assertionDefinitions") .map_key(id.to_string()) .key("derive") - .key("function"), + .key("derivation"), )?; let mut requirement = json!({"handle":id,"uri":definition.semantics.requirement,"question":definition.question,"kind":definition.semantics.kind,"grantCeiling":definition.grant_ceiling,"representations":definition.representations,"acquisition":definition.acquisition,"purposes":[definition.purpose],"subjectRoles":definition.subjects.iter().map(|subject| json!({"role":subject.role,"cardinality":"one","lookups":subject.selectors})).collect::>(),"referenceFrameworks":definition.semantics.reference_frameworks,"evidenceType":definition.semantics.evidence_type,"observationTimezone":definition.observation_timezone,"validitySeconds":definition.validity_seconds,"subjectBinding":definition.subject_binding,"derivation":{"script":derive_path,"parameters":definition.derive.parameters},"concepts":concepts,"disclosureGuard":definition.disclosure_guard.clone().unwrap_or_else(|| json!({"families":[definition.semantics.requirement]})),"existenceDisclosure":definition.existence_disclosure}); if !definition.derive.selector_inputs.is_empty() { @@ -1289,6 +1290,10 @@ pub fn definition_dependencies(project: &EvidenceProject, id: &str) -> Option) -> Vec { validate_entry_fact_reads(source, "derive", declared) diff --git a/crates/registry-evidence-authoring/src/formats.rs b/crates/registry-evidence-authoring/src/formats.rs index a8573e7600..dd8e59674c 100644 --- a/crates/registry-evidence-authoring/src/formats.rs +++ b/crates/registry-evidence-authoring/src/formats.rs @@ -309,7 +309,7 @@ pub fn finding_action(code: &str) -> &'static str { "acquisition-source" | "source-reference" => "Name a Source declared in this EvidenceProject and preserve the acquisition contract.", "output-type" | "output-bounds" | "output-concept" => "Declare one retained Output type with exactly its required constraints and an absolute concept URI.", "output-schema" | "codelist-asset" | "codelist-identity" => "Supply the reviewed project-relative schema or codelist asset and matching identity/version.", - "function-compile" | "function-signature" | "function-interface" | "function-source" => "Correct the named Function and its declared interface, then check its call sites.", + "derivation-compile" | "derivation-signature" | "derivation-interface" | "derivation-source" => "Correct the named Derivation and its declared interface, then check its call sites.", "derivation-fact-undeclared" => "Read only facts supplied to this definition's derivation by its acquisition plan.", "authority-ceiling" | "authority-definition" => "Declare complete grants using existing definitions and stay within every definition ceiling.", "authority-value-claims" | "authority-claim-path" | "authority-request-claims" => "Match valueClaims exactly to the selected profile for authenticated values, and omit them for request values.", @@ -319,7 +319,7 @@ pub fn finding_action(code: &str) -> &'static str { "public-check-entity-reference-output" => "Remove the entity-reference Outputs from a definition that has publicCheck; a public check has no relying party to scope them to.", "public-check-existence-disclosure" => "Remove existenceDisclosure or set it to collapse-unresolved.", "public-check-code-fact" => "Name a string fact the Source's facts schema declares, and keep it out of the Source's inputs.", - "public-check-facts-content" => "Keep only `type` on each fact and remove the required list, then check content in the derive Function. For a BReg Source, export it again with `bregctl generate evidence-source --public-check`.", + "public-check-facts-content" => "Keep only `type` on each fact and remove the required list, then check content in the Derivation. For a BReg Source, export it again with `bregctl generate evidence-source --public-check`.", "authority-public-check" => "Activate a definition that exists in the project and declares publicCheck.", "selector-field-bounds" => "Declare the closed selector field type and its required bounds or codelist reference.", "kebab-case" | "date-time" | "x-evidencectl-mock" | "x-evidencectl-recursive-ref" => "Correct the inspected OpenAPI description as the message describes.", diff --git a/crates/registry-evidence-authoring/src/project.rs b/crates/registry-evidence-authoring/src/project.rs index d04d024f05..e7eef8b831 100644 --- a/crates/registry-evidence-authoring/src/project.rs +++ b/crates/registry-evidence-authoring/src/project.rs @@ -38,6 +38,14 @@ pub const PROJECT: FormatSpec<'static> = FormatSpec { pointer: "/description", replacement: "Move description to project.description.", }, + RemovedKey { + pointer: "/functions", + replacement: "Rename functions to derivations.", + }, + RemovedKey { + pointer: "/assertionDefinitions/*/derive/function", + replacement: "Rename derive.function to derive.derivation.", + }, ], }; @@ -53,6 +61,7 @@ pub struct EvidenceProject { pub project: ProjectIdentity, #[serde(rename = "lookups")] pub selector_profiles: BTreeMap, + #[serde(rename = "derivations")] pub functions: BTreeMap, pub sources: BTreeMap, pub assertion_definitions: BTreeMap, @@ -93,6 +102,7 @@ pub struct SelectorProfile { #[derive(Clone, Debug, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +#[cfg_attr(feature = "schema", schemars(rename = "Derivation"))] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct Function { /// Optional presentation label. Stable references use the identifier. @@ -123,6 +133,7 @@ pub struct Function { #[derive(Clone, Copy, Debug, Deserialize, Serialize, Eq, PartialEq, Hash)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +#[cfg_attr(feature = "schema", schemars(rename = "DerivationInterface"))] pub enum FunctionInterface { #[serde(rename = "assertion-derive/v1")] AssertionDerive, @@ -159,11 +170,13 @@ pub struct SelectorAlternative { #[derive(Clone, Debug, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +#[cfg_attr(feature = "schema", schemars(rename = "DerivationCall"))] #[serde(rename_all = "camelCase", deny_unknown_fields)] pub struct FunctionCall { + #[serde(rename = "derivation")] pub function: LocalId, #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] - #[cfg_attr(feature = "schema", schemars(extend("x-registry-passthrough" = "Literal reviewed Function parameter bindings, checked at the named Function call site.")))] + #[cfg_attr(feature = "schema", schemars(extend("x-registry-passthrough" = "Literal reviewed Derivation parameter bindings, checked at the named Derivation call site.")))] pub parameters: BTreeMap, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub selector_inputs: Vec, @@ -622,7 +635,7 @@ pub struct SourceInputSelector { } const RETIRED_ACQUISITION_CODE: &str = "evidence.project.source-acquisition-retired"; -const RETIRED_ACQUISITION_ACTION: &str = "Move preparation and extraction into a reviewed Adapter pack, retain assertion-derive/v1 Functions, and replace the Source with pack, route, connection and inputs. Import current exports with evidencectl source import EXPORT --project PROJECT; it does not convert retired projects. See https://docs.registrystack.org/products/registry-evidence/authoring-form/#migrate-a-retired-source-project."; +const RETIRED_ACQUISITION_ACTION: &str = "Move preparation and extraction into a reviewed Adapter pack, retain assertion-derive/v1 Derivations, and replace the Source with pack, route, connection and inputs. Import current exports with evidencectl source import EXPORT --project PROJECT; it does not convert retired projects. See https://docs.registrystack.org/products/registry-evidence/authoring-form/#migrate-a-retired-source-project."; const RETIRED_ACQUISITION_AGAIN: &str = "Migrate this site with the rest of the project, as the first evidence.project.source-acquisition-retired diagnostic describes."; /// Project-specific scalar refusals reuse the shared authored-file rules and @@ -641,7 +654,7 @@ impl ScalarHook for ProjectScalars { fn value(&mut self, site: &ScalarSite<'_>) -> Result, Refusal> { self.authored.value(site)?; - let message = if matches!(site.keys, ["functions", _, "interface"]) + let message = if matches!(site.keys, ["functions" | "derivations", _, "interface"]) && matches!(site.text, "source-prepare/v1" | "source-extract/v1") { Some("The source-prepare/v1 and source-extract/v1 interfaces are retired; reviewed Adapter pack routes own source acquisition.") @@ -735,9 +748,9 @@ fn project_id_namespaces(project: &EvidenceProject) -> Vec) -> Vec< .collect::>(), ), ( - "evidence.project.duplicate-function-label", - "functions", + "evidence.project.duplicate-derivation-label", + "derivations", project .functions .iter() .filter_map(|(id, item)| { item.label.as_ref().map(|label| { let pointer = format!( - "/functions/{}/label", + "/derivations/{}/label", registry_platform_yaml::escape_pointer_segment(id.as_str()) ); (id.as_str().to_owned(), label.clone(), pointer) @@ -1035,11 +1048,11 @@ fn validate_project_without_id_collisions(project: &EvidenceProject) -> Vec Vec MAX_OUTPUTS_PER_ASSERTION { @@ -1595,7 +1608,7 @@ fn validate_project_display_text(project: &EvidenceProject) -> Vec { validate_presentation( function.label.as_deref(), function.description.as_deref(), - &FieldPath::root().key("functions").map_key(id.to_string()), + &FieldPath::root().key("derivations").map_key(id.to_string()), &mut findings, ); } diff --git a/crates/registry-evidence-authoring/src/types.rs b/crates/registry-evidence-authoring/src/types.rs index 0b8e24ef8f..4aa6c743a4 100644 --- a/crates/registry-evidence-authoring/src/types.rs +++ b/crates/registry-evidence-authoring/src/types.rs @@ -473,11 +473,11 @@ pub fn typescript(project: &EvidenceProject, compiled: &CompiledProject) -> Stri } result.push_str("}\n"); } - result.push_str("export interface FunctionBindings {\n"); + result.push_str("export interface DerivationBindings {\n"); for (function_id, function) in &project.functions { let shape = function_shape(project, compiled, function_id, function); result.push_str(&format!( - " // evidence-function: {}\n {}: {};\n", + " // evidence-derivation: {}\n {}: {};\n", function_id, json!(function_id), ts(&shape, &shape, 0) @@ -556,13 +556,13 @@ pub fn python(project: &EvidenceProject, compiled: &CompiledProject) -> String { for (function_id, function) in &project.functions { let shape = function_shape(project, compiled, function_id, function); let name = renderer.shape(&shape, &shape, 0); - result.push_str(&format!("# evidence-function: {}\n", function_id)); + result.push_str(&format!("# evidence-derivation: {}\n", function_id)); result.push_str(&renderer.definitions); renderer.definitions.clear(); entries.push(format!(" {}: {name},\n", json!(function_id))); } result.push_str(&format!( - "FunctionBindings = TypedDict(\"FunctionBindings\", {{\n{}}})\n", + "DerivationBindings = TypedDict(\"DerivationBindings\", {{\n{}}})\n", entries.join("") )); result.push_str("ASSERTION_DEFINITIONS: dict[str, str] = {\n"); diff --git a/crates/registry-evidence-authoring/tests/acquisition_validation.rs b/crates/registry-evidence-authoring/tests/acquisition_validation.rs index 26c13ad56f..9908c98ad7 100644 --- a/crates/registry-evidence-authoring/tests/acquisition_validation.rs +++ b/crates/registry-evidence-authoring/tests/acquisition_validation.rs @@ -10,7 +10,7 @@ fn project_value() -> Value { "fields": {"person-id": {"type": "string", "minimumBytes": 1, "maximumBytes": 64}} } }, - "functions": { + "derivations": { "extract": {"interface": "source-extract/v1", "source": "functions/extract.rhai"}, "derive": {"interface": "assertion-derive/v1", "source": "functions/derive.rhai"} }, @@ -42,7 +42,7 @@ fn project_value() -> Value { "grantCeiling": {"authorities": ["organizational"], "actorKinds": ["service"], "valueOrigins": ["request"], "audiences": ["urn:example:audience"]}, "subjects": [{"role": "person", "selectors": ["person-by-id"]}], "acquisition": {"type": "single", "source": "search"}, - "derive": {"function": "derive"}, + "derive": {"derivation": "derive"}, "outputs": {"active": {"concept": "urn:example:active", "type": "boolean"}}, "validitySeconds": 300, "subjectBinding": "audience-scoped", diff --git a/crates/registry-evidence-authoring/tests/authoring_schema.rs b/crates/registry-evidence-authoring/tests/authoring_schema.rs index dbe1488919..7c4a7f4943 100644 --- a/crates/registry-evidence-authoring/tests/authoring_schema.rs +++ b/crates/registry-evidence-authoring/tests/authoring_schema.rs @@ -465,7 +465,7 @@ fn the_project_schema_closes_its_shape_and_requires_the_normalized_keys() { "kind", "project", "lookups", - "functions", + "derivations", "sources", "assertionDefinitions", ] { @@ -486,6 +486,12 @@ fn the_project_schema_closes_its_shape_and_requires_the_normalized_keys() { fn the_project_schema_exposes_pack_bindings_and_derivation_contracts() { let documents = documents().expect("the authoring schemas generate"); let document = &documents[PROJECT_SCHEMA_FILE]; + let value: Value = serde_json::from_str(document).expect("the project schema is JSON"); + assert!(value["properties"].get("functions").is_none()); + let call = &value["$defs"]["DerivationCall"]; + assert_eq!(call["required"], serde_json::json!(["derivation"])); + assert!(call["properties"].get("function").is_none()); + assert!(value["$defs"]["Derivation"].is_object()); for member in [ "assertionDefinitions", "lookups", @@ -1244,10 +1250,10 @@ fn project_check_refuses_separator_lookalikes_in_the_selector_profile_namespace( fn project_check_bounds_mixed_semantic_errors_and_duplicate_label_warnings_once() { let mut document = yaml_as_json(NORMALIZED_PROJECT); document["lookups"]["record-by-id"]["maximumAggregateBytes"] = serde_json::json!(32); - let template = document["functions"]["derive-adult-status"].clone(); - let functions = document["functions"] + let template = document["derivations"]["derive-adult-status"].clone(); + let functions = document["derivations"] .as_object_mut() - .expect("the canonical functions are a map"); + .expect("the canonical derivations are a map"); for index in 0..=MAXIMUM_DIAGNOSTICS_PER_FILE { let mut function = template.clone(); function["label"] = serde_json::json!("Repeated function label"); @@ -1268,7 +1274,7 @@ fn project_check_bounds_mixed_semantic_errors_and_duplicate_label_warnings_once( assert!(report .diagnostics() .iter() - .any(|diagnostic| diagnostic.code == "evidence.project.duplicate-function-label")); + .any(|diagnostic| diagnostic.code == "evidence.project.duplicate-derivation-label")); let marker = report .diagnostics() .iter() @@ -1311,8 +1317,8 @@ fn source_function_refs_are_closed_while_derivation_calls_expose_bindings() { .is_err()); let document = NORMALIZED_PROJECT.replacen( - "derive:\n function: derive-adult-status", - "derive:\n function: derive-adult-status\n parameters:\n threshold: 18\n selectorInputs: []", + "derive:\n derivation: derive-adult-status", + "derive:\n derivation: derive-adult-status\n parameters:\n threshold: 18\n selectorInputs: []", 1, ); assert!(schema(PROJECT_SCHEMA_FILE).is_valid(&yaml_as_json(&document))); diff --git a/crates/registry-evidence-authoring/tests/compiled_names.rs b/crates/registry-evidence-authoring/tests/compiled_names.rs index 6a66eb0e04..a4df55ec5f 100644 --- a/crates/registry-evidence-authoring/tests/compiled_names.rs +++ b/crates/registry-evidence-authoring/tests/compiled_names.rs @@ -18,7 +18,7 @@ fn normalized_document() -> Value { } } }, - "functions": { + "derivations": { "derive-adult-status": { "interface": "assertion-derive/v1", "source": "functions/derive.rhai" @@ -55,7 +55,7 @@ fn normalized_document() -> Value { }, "subjects": [{"role": "person", "selectors": ["record-by-id"]}], "acquisition": {"source": "person-record"}, - "derive": {"function": "derive-adult-status"}, + "derive": {"derivation": "derive-adult-status"}, "outputs": { "adult": {"concept": "urn:example:concept:adult", "type": "boolean"} }, @@ -100,15 +100,15 @@ fn function_id_and_presentation_label_are_separate() { "interface": "assertion-derive/v1", "source": "functions/unused-derive.rhai" }); - let functions = document["functions"].as_object_mut().unwrap(); + let functions = document["derivations"].as_object_mut().unwrap(); functions.insert("a".repeat(64), function.clone()); assert!(read_normalized(&document).is_ok()); - let functions = document["functions"].as_object_mut().unwrap(); + let functions = document["derivations"].as_object_mut().unwrap(); functions.remove(&"a".repeat(64)); functions.insert("a".repeat(65), function); let diagnostic = normalized_refusal(&document); - assert_eq!(diagnostic.path, format!("/functions/{}", "a".repeat(65))); + assert_eq!(diagnostic.path, format!("/derivations/{}", "a".repeat(65))); } #[test] diff --git a/crates/registry-evidence-authoring/tests/derivation_depth.rs b/crates/registry-evidence-authoring/tests/derivation_depth.rs index ef0b469f07..c273f8027b 100644 --- a/crates/registry-evidence-authoring/tests/derivation_depth.rs +++ b/crates/registry-evidence-authoring/tests/derivation_depth.rs @@ -36,7 +36,7 @@ fn assert_compiles(source: &str) { fn assert_depth_refused(source: &str) { let findings = validate_function(source, FunctionInterface::AssertionDerive); assert_eq!(findings.len(), 1); - assert_eq!(findings[0].code, "function-compile"); + assert_eq!(findings[0].code, "derivation-compile"); } #[test] diff --git a/crates/registry-evidence-authoring/tests/finding_messages.rs b/crates/registry-evidence-authoring/tests/finding_messages.rs index 4a4f3b280f..2d186bd23a 100644 --- a/crates/registry-evidence-authoring/tests/finding_messages.rs +++ b/crates/registry-evidence-authoring/tests/finding_messages.rs @@ -116,10 +116,10 @@ fn normalized_function_rule_reports_its_exact_sentence() { ); assert_case( "Function signature", - "Function must expose exactly one entry point with its declared interface signature", + "Derivation must expose exactly one entry point with its declared interface signature", &findings, ); - assert_eq!(first(&findings).code, "function-signature"); + assert_eq!(first(&findings).code, "derivation-signature"); } #[test] @@ -193,9 +193,9 @@ fn normalized_rule_codes_remain_machine_addressable() { [ "definition-count", "definition-question", + "derivation-interface", + "derivation-source", "derive-selector-profile", - "function-interface", - "function-source", "output-bounds", "output-concept", "output-type", @@ -510,12 +510,12 @@ fn normalized_references_report_the_retained_derivation_interface() { project.functions.clear(); }); assert!(findings.iter().any(|finding| { - finding.code == "function-interface" - && finding.message == "derive must name an assertion-derive/v1 Function" + finding.code == "derivation-interface" + && finding.message == "derive must name an assertion-derive/v1 Derivation" && finding .field .to_json_pointer() - .ends_with("/derive/function") + .ends_with("/derive/derivation") })); } @@ -534,9 +534,9 @@ fn normalized_project_and_semantic_diagnostics_keep_exact_sites() { }); assert_normalized_finding( &findings, - "function-source", - "/functions/derive-adult-status/source", - "name one project-relative .rhai function asset without traversal", + "derivation-source", + "/derivations/derive-adult-status/source", + "name one project-relative .rhai Derivation asset without traversal", ); let findings = normalized_findings(|project| { @@ -785,10 +785,10 @@ fn named_function_abi_reports_compile_signature_and_interface_failures() { let compile = validate_function("fn derive(", project::FunctionInterface::AssertionDerive); assert_case( "Function compile", - "Function does not compile as Rhai", + "Derivation does not compile as Rhai", &compile, ); - assert_eq!(first(&compile).code, "function-compile"); + assert_eq!(first(&compile).code, "derivation-compile"); let signature = validate_function( "fn derive(facts, selectors) { #{} }", @@ -796,10 +796,10 @@ fn named_function_abi_reports_compile_signature_and_interface_failures() { ); assert_case( "Function signature", - "Function must expose exactly one entry point with its declared interface signature", + "Derivation must expose exactly one entry point with its declared interface signature", &signature, ); - assert_eq!(first(&signature).code, "function-signature"); + assert_eq!(first(&signature).code, "derivation-signature"); let interface = validate_function( "fn derive(facts, selectors, context) { #{} } fn extract(response, context) { #{} }", @@ -807,10 +807,10 @@ fn named_function_abi_reports_compile_signature_and_interface_failures() { ); assert_case( "Function interface", - "Function cannot expose another interface entry point", + "Derivation cannot expose another interface entry point", &interface, ); - assert_eq!(first(&interface).code, "function-interface"); + assert_eq!(first(&interface).code, "derivation-interface"); assert!(validate_function( "fn derive(facts, selectors, context) { #{} }", diff --git a/crates/registry-evidence-authoring/tests/formats_readers.rs b/crates/registry-evidence-authoring/tests/formats_readers.rs index 0678ce179c..abf30703e4 100644 --- a/crates/registry-evidence-authoring/tests/formats_readers.rs +++ b/crates/registry-evidence-authoring/tests/formats_readers.rs @@ -86,6 +86,65 @@ fn project_lookup_spelling_is_closed() { assert_eq!((source.line, source.column), (Some(6), Some(1))); } +#[test] +fn derivation_keys_are_canonical_and_retired_spellings_name_their_replacements() { + let current = PROJECT_TEXT; + let decoded = project::read_project("evidence.yaml", current.as_bytes()) + .expect("the canonical derivation fields read"); + let serialized = serde_json::to_value(decoded.value).unwrap(); + assert!(serialized["derivations"]["derive-adult-status"].is_object()); + assert!(serialized.get("functions").is_none()); + let derive = &serialized["assertionDefinitions"]["adult-status"]["derive"]; + assert_eq!(derive["derivation"], "derive-adult-status"); + assert!(derive.get("function").is_none()); + + let cases = [ + ( + "derivations:\n", + "functions:\n", + "/functions", + "derivations", + 1, + ), + ( + "derivations:\n", + "functions: {}\nderivations:\n", + "/functions", + "derivations", + 1, + ), + ( + " derivation: derive-adult-status\n", + " function: derive-adult-status\n", + "/assertionDefinitions/adult-status/derive/function", + "derive.derivation", + 7, + ), + ( + " derivation: derive-adult-status\n", + " function: derive-adult-status\n derivation: derive-adult-status\n", + "/assertionDefinitions/adult-status/derive/function", + "derive.derivation", + 7, + ), + ]; + for (spelling, retired, path, replacement, column) in cases { + let authored = current.replacen(spelling, retired, 1); + assert_ne!(authored, current); + let report = project::read_project("evidence.yaml", authored.as_bytes()) + .expect_err("the obsolete key is refused"); + let diagnostic = report + .diagnostics() + .iter() + .find(|diagnostic| diagnostic.code == "config.removed-key" && diagnostic.path == path) + .expect("the retired key is diagnosed at its own path"); + assert!(diagnostic.suggested_action.contains(replacement)); + let source = diagnostic.source.as_ref().expect("a source position"); + assert_eq!(source.column, Some(column)); + assert!(source.line.is_some()); + } +} + #[test] fn authority_lookup_spelling_is_closed() { let project = project::read_project("evidence.yaml", PROJECT_TEXT.as_bytes()) @@ -168,7 +227,7 @@ fn functions_are_keyed_by_their_id_and_carry_no_inner_id() { assert!( report.diagnostics().iter().any(|diagnostic| { diagnostic.code == "config.unknown-key" - && diagnostic.path == "/functions/derive-adult-status/id" + && diagnostic.path == "/derivations/derive-adult-status/id" }), "{:?}", report.diagnostics() @@ -188,7 +247,7 @@ fn a_function_id_written_twice_is_refused_at_the_second_key() { assert!( report.diagnostics().iter().any(|diagnostic| { diagnostic.code == "yaml.duplicate-key" - && diagnostic.path == "/functions/derive-adult-status" + && diagnostic.path == "/derivations/derive-adult-status" }), "{:?}", report.diagnostics() @@ -356,8 +415,8 @@ fn finding_codes_name_their_area_once() { "evidence.authority.definition" ); assert_eq!( - finding_code("function", "function-compile"), - "evidence.function.compile" + finding_code("derivation", "derivation-compile"), + "evidence.derivation.compile" ); assert_eq!( finding_code("schema", "evidence.output-schema.open-object"), diff --git a/crates/registry-evidence-authoring/tests/normalized_project.rs b/crates/registry-evidence-authoring/tests/normalized_project.rs index 1383a03255..7925132970 100644 --- a/crates/registry-evidence-authoring/tests/normalized_project.rs +++ b/crates/registry-evidence-authoring/tests/normalized_project.rs @@ -11,9 +11,9 @@ use std::collections::BTreeMap; fn project() -> project::EvidenceProject { serde_json::from_value(json!({ "project":{"id":"synthetic-evidence","version":"1"}, "lookups":{"person-by-id":{"maximumAggregateBytes":64,"fields":{"person-id":{"type":"string","minimumBytes":1,"maximumBytes":64}}}}, - "functions":{"derive-status":{"interface":"assertion-derive/v1","source":"functions/derive.rhai"}}, + "derivations":{"derive-status":{"interface":"assertion-derive/v1","source":"functions/derive.rhai"}}, "sources":{"person":{"pack":{"id":"synthetic-register","version":"0.1.0"},"route":"evidence-person","connection":"population","inputs":{"personId":{"selector":{"role":"person","profile":"person-by-id","field":"person-id"}}},"acquisitionPosture":"record-transformed"}}, - "assertionDefinitions":{"active-status":{"question":"Is the person active?","semantics":{"requirement":"urn:example:requirement:active","kind":"criterion","evidenceType":"urn:example:evidence:active","referenceFrameworks":["urn:example:framework:status"]},"purpose":"status-verification","grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:consumer"]},"subjects":[{"role":"person","selectors":["person-by-id"]}],"acquisition":{"source":"person"},"derive":{"function":"derive-status"},"outputs":{"active":{"concept":"urn:example:concept:active","type":"boolean"}},"validitySeconds":300,"subjectBinding":"audience-scoped","representations":["signed-jws"]}} + "assertionDefinitions":{"active-status":{"question":"Is the person active?","semantics":{"requirement":"urn:example:requirement:active","kind":"criterion","evidenceType":"urn:example:evidence:active","referenceFrameworks":["urn:example:framework:status"]},"purpose":"status-verification","grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:consumer"]},"subjects":[{"role":"person","selectors":["person-by-id"]}],"acquisition":{"source":"person"},"derive":{"derivation":"derive-status"},"outputs":{"active":{"concept":"urn:example:concept:active","type":"boolean"}},"validitySeconds":300,"subjectBinding":"audience-scoped","representations":["signed-jws"]}} })).unwrap() } fn scripts() -> BTreeMap { @@ -96,6 +96,9 @@ fn normalized_project_compiles_sources_outputs_and_named_functions() { ); let script = String::from_utf8(compiled.artifacts["derivations/active-status.rhai"].clone()).unwrap(); + assert!( + script.starts_with("// Evidence Function derive-status interface assertion-derive/v1\n") + ); assert!(script.contains("fn authored_derive")); assert!(!script.contains("canary")); assert_eq!( @@ -185,9 +188,12 @@ fn constructed_presentation_fields_share_display_text_validation() { *label = Some(value.to_owned()); }, ), - ("/functions/derive-status/description", |project, value| { - project.functions.values_mut().next().unwrap().description = Some(value.to_owned()); - }), + ( + "/derivations/derive-status/description", + |project, value| { + project.functions.values_mut().next().unwrap().description = Some(value.to_owned()); + }, + ), ( "/assertionDefinitions/active-status/label", |project, value| { @@ -287,6 +293,9 @@ fn old_question_envelope_inline_source_and_disclosure_allow_are_rejected() { fn question_presentation_does_not_change_definition_dependencies() { let project = project(); let before = compile::definition_dependencies(&project, "active-status").unwrap(); + assert_eq!(before["definition"]["derive"]["function"], "derive-status"); + assert!(before["definition"]["derive"].get("derivation").is_none()); + assert_eq!(before["functions"][0]["id"], "derive-status"); let mut after = project.clone(); after .assertion_definitions @@ -495,7 +504,7 @@ fn missing_named_dependencies_have_exact_field_paths() { assert!(findings .iter() .any(|finding| finding.field.to_json_pointer() - == "/assertionDefinitions/active-status/derive/function")); + == "/assertionDefinitions/active-status/derive/derivation")); } #[test] @@ -570,7 +579,7 @@ fn presentation_metadata_does_not_change_compiled_semantics_or_behavior_dependen edited["project"]["description"] = json!("Explains the project"); edited["project"]["version"] = json!("2"); edited["sources"]["person"]["description"] = json!("Reviewed source explanation"); - edited["functions"]["derive-status"]["label"] = json!("Extract a person"); + edited["derivations"]["derive-status"]["label"] = json!("Extract a person"); edited["lookups"]["person-by-id"]["label"] = json!("Person identifier"); edited["assertionDefinitions"]["active-status"]["description"] = json!("Presentation only"); edited["assertionDefinitions"]["active-status"]["outputs"]["active"]["label"] = json!("Active"); @@ -628,7 +637,7 @@ fn retired_source_batch_and_acquisition_capability_wire_is_refused() { #[test] fn colliding_local_ids_retain_distinct_artifacts_and_deterministic_output() { let mut value = serde_json::to_value(project()).unwrap(); - value["functions"]["derive-extra"] = + value["derivations"]["derive-extra"] = json!({"interface":"assertion-derive/v1","source":"functions/derive-extra.rhai"}); value["assertionDefinitions"]["active-status"]["outputs"] = json!({ "active-extra":{ @@ -639,7 +648,7 @@ fn colliding_local_ids_retain_distinct_artifacts_and_deterministic_output() { }); let mut second_definition = value["assertionDefinitions"]["active-status"].clone(); second_definition["semantics"]["requirement"] = json!("urn:example:requirement:second"); - second_definition["derive"]["function"] = json!("derive-extra"); + second_definition["derive"]["derivation"] = json!("derive-extra"); second_definition["outputs"] = json!({ "extra":{ "concept":"urn:example:concept:second", @@ -768,7 +777,9 @@ fn generated_types_resolve_structured_schemas_and_exact_function_result_shapes() < ts.find("export interface AssertionOutputs").unwrap() ); let py = project::python(&project, &compiled); - assert!(py.contains("SourceFacts = TypedDict") && py.contains("FunctionBindings = TypedDict")); + assert!( + py.contains("SourceFacts = TypedDict") && py.contains("DerivationBindings = TypedDict") + ); assert!(py.contains("NotRequired[Literal[\"current\", \"expired\"]]")); assert!(py.contains("\"output\": Literal[\"details\"]")); let mut child=std::process::Command::new("python3").args(["-c","import ast,sys; source=sys.stdin.read(); ast.parse(source); exec(compile(source,'generated-evidence-types','exec'), {})"]).stdin(std::process::Stdio::piped()).stderr(std::process::Stdio::piped()).spawn().expect("python3 syntax checker"); @@ -797,7 +808,7 @@ fn checked_pack_facts_replace_retired_search_then_fetch_fact_closure() { value["sources"]["fetch"] = value["sources"]["person"].clone(); value["sources"]["person"]["facts"] = json!({"search_only":{"type":"boolean"}}); value["sources"]["fetch"]["facts"] = json!({"active":{"type":"boolean"}}); - value["functions"]["extract-fetch"] = + value["derivations"]["extract-fetch"] = json!({"interface":"source-extract/v1","source":"functions/fetch.rhai"}); value["sources"]["fetch"]["extract"] = json!({"function":"extract-fetch"}); value["assertionDefinitions"]["active-status"]["acquisition"] = @@ -907,7 +918,7 @@ fn retired_reused_source_functions_and_prior_fact_contexts_are_refused() { value["sources"]["search"] = value["sources"]["person"].clone(); value["sources"]["search"]["facts"] = json!({"reference":{"type":"string","maximumBytes":64}}); value["sources"]["search"]["extract"] = json!({"function":"extract-search"}); - value["functions"]["extract-search"] = + value["derivations"]["extract-search"] = json!({"interface":"source-extract/v1","source":"functions/search.rhai"}); value["assertionDefinitions"]["from-search"] = value["assertionDefinitions"]["active-status"].clone(); diff --git a/crates/registry-evidence-authoring/tests/pack_sources.rs b/crates/registry-evidence-authoring/tests/pack_sources.rs index ec3c059b03..b7b3630bd4 100644 --- a/crates/registry-evidence-authoring/tests/pack_sources.rs +++ b/crates/registry-evidence-authoring/tests/pack_sources.rs @@ -60,9 +60,9 @@ fn project() -> project::EvidenceProject { serde_json::from_value(json!({ "project":{"id":"family-evidence","version":"1"}, "lookups":{"person-by-id":{"maximumAggregateBytes":64,"fields":{"person-id":{"type":"string","minimumBytes":1,"maximumBytes":64}}}}, - "functions":{"derive-family":{"interface":"assertion-derive/v1","source":"functions/derive.rhai"}}, + "derivations":{"derive-family":{"interface":"assertion-derive/v1","source":"functions/derive.rhai"}}, "sources":{"family":{"pack":{"id":"synthetic-register","version":"0.1.0"},"route":"evidence-family","connection":"register","inputs":{"personId":{"selector":{"role":"person","profile":"person-by-id","field":"person-id"}}},"acquisitionPosture":"record-transformed"}}, - "assertionDefinitions":{"family-status":{"question":"Does the family record match?","semantics":{"requirement":"urn:example:requirement:family","kind":"criterion","evidenceType":"urn:example:evidence:family","referenceFrameworks":["urn:example:framework:family"]},"purpose":"family-check","grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:consumer"]},"subjects":[{"role":"person","selectors":["person-by-id"]}],"acquisition":{"source":"family"},"derive":{"function":"derive-family"},"outputs":{"matched":{"concept":"urn:example:concept:matched","type":"boolean"}},"validitySeconds":300,"subjectBinding":"audience-scoped","representations":["signed-jws"]}} + "assertionDefinitions":{"family-status":{"question":"Does the family record match?","semantics":{"requirement":"urn:example:requirement:family","kind":"criterion","evidenceType":"urn:example:evidence:family","referenceFrameworks":["urn:example:framework:family"]},"purpose":"family-check","grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:consumer"]},"subjects":[{"role":"person","selectors":["person-by-id"]}],"acquisition":{"source":"family"},"derive":{"derivation":"derive-family"},"outputs":{"matched":{"concept":"urn:example:concept:matched","type":"boolean"}},"validitySeconds":300,"subjectBinding":"audience-scoped","representations":["signed-jws"]}} })).expect("pack-source project") } diff --git a/crates/registry-evidence-authoring/tests/public_check.rs b/crates/registry-evidence-authoring/tests/public_check.rs index 23d3cb31b6..31b630948d 100644 --- a/crates/registry-evidence-authoring/tests/public_check.rs +++ b/crates/registry-evidence-authoring/tests/public_check.rs @@ -17,7 +17,7 @@ fn project_value() -> Value { json!({ "project": {"id": "certificate-check", "version": "1"}, "lookups": {"certificate-number": {"maximumAggregateBytes": 32, "fields": {"number": {"type": "string", "minimumBytes": 4, "maximumBytes": 32}}}}, - "functions": {"derive-certificate-check": {"interface": "assertion-derive/v1", "source": "functions/derive.rhai"}}, + "derivations": {"derive-certificate-check": {"interface": "assertion-derive/v1", "source": "functions/derive.rhai"}}, "sources": {"certificate-record": {"pack": {"id": "synthetic-register", "version": "1"}, "route": "certificate", "connection": "synthetic-register", "inputs": {"recordId": {"selector": {"role": "certificate", "profile": "certificate-number", "field": "number"}}}, "acquisitionPosture": "record-transformed"}}, "assertionDefinitions": {DEFINITION: { "question": "What is the current status of this certificate?", @@ -26,7 +26,7 @@ fn project_value() -> Value { "grantCeiling": {"authorities": ["organizational"], "actorKinds": ["service"], "valueOrigins": ["request"], "audiences": ["urn:example:audience:portal"]}, "subjects": [{"role": "certificate", "selectors": ["certificate-number"]}], "acquisition": {"source": "certificate-record"}, - "derive": {"function": "derive-certificate-check"}, + "derive": {"derivation": "derive-certificate-check"}, "outputs": { "status": {"concept": "urn:example:concept:certificate-status:v1", "type": "controlled-category", "values": ["valid", "suspended", "revoked", "expired"]}, "printed": {"concept": "urn:example:concept:certificate-printed:v1", "type": "reviewed-structured-value", "schema": "schemas/printed.json", "maximumSerializedBytes": 1024} diff --git a/crates/registry-evidence-authoring/tests/retired_source_diagnostics.rs b/crates/registry-evidence-authoring/tests/retired_source_diagnostics.rs index bc916d6dd7..5aeeaca043 100644 --- a/crates/registry-evidence-authoring/tests/retired_source_diagnostics.rs +++ b/crates/registry-evidence-authoring/tests/retired_source_diagnostics.rs @@ -22,7 +22,7 @@ fn retired_acquisition_functions_name_the_pack_migration_instead_of_a_derivation let diagnostic = report .diagnostics() .iter() - .find(|diagnostic| diagnostic.path == "/functions/derive-adult-status/interface") + .find(|diagnostic| diagnostic.path == "/derivations/derive-adult-status/interface") .expect("the exact retired function interface is addressed"); assert_eq!(diagnostic.code, RETIRED_CODE); assert!(diagnostic.message.contains("retired")); diff --git a/crates/registry-evidence-oid4vci/src/contracts.rs b/crates/registry-evidence-oid4vci/src/contracts.rs index a51f8e9533..4c30948fea 100644 --- a/crates/registry-evidence-oid4vci/src/contracts.rs +++ b/crates/registry-evidence-oid4vci/src/contracts.rs @@ -367,7 +367,8 @@ fn schemas() -> Value { "invalid_grant", "invalid_credential_request", "invalid_proof", "invalid_nonce", "credential_request_denied", "temporarily_unavailable", "server_error" ]}, - "error_description": {"type": "string"} + "error_description": {"type": "string"}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."} } }, "CredentialIssuerMetadata": { diff --git a/crates/registry-evidence-oid4vci/src/draft13.rs b/crates/registry-evidence-oid4vci/src/draft13.rs index d84be3c51b..02e5c5bd05 100644 --- a/crates/registry-evidence-oid4vci/src/draft13.rs +++ b/crates/registry-evidence-oid4vci/src/draft13.rs @@ -257,7 +257,8 @@ pub(crate) fn openapi_schemas() -> Value { "unsupported_credential_type", "invalid_proof", "credential_request_denied", "temporarily_unavailable", "server_error" ]}, - "error_description": {"type": "string"} + "error_description": {"type": "string"}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."} } }, "Draft13IssuerMetadata": { diff --git a/crates/registry-evidence-oid4vci/src/service.rs b/crates/registry-evidence-oid4vci/src/service.rs index 2fd5b3c0c0..641d086755 100644 --- a/crates/registry-evidence-oid4vci/src/service.rs +++ b/crates/registry-evidence-oid4vci/src/service.rs @@ -2280,6 +2280,11 @@ mod tests { async fn the_development_body_names_the_failed_check_and_production_does_not() { use registry_platform_config::{DeclaredPosture, Posture, PostureReport, PostureSource}; let directory = canonical_tempdir(); + let openapi = crate::contracts::openapi_document(); + let schema = jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile(&openapi["components"]["schemas"]["Problem"]) + .expect("problem schema compiles"); for (posture, expected) in [ (Posture::Production, None), (Posture::Development, Some("credential-missing")), @@ -2295,7 +2300,11 @@ mod tests { .json(&offer_body(false)) .await; assert_eq!(response.status_code(), StatusCode::UNAUTHORIZED); - assert_eq!(response.json::()["failedCheck"].as_str(), expected); + let mut problem = response.json::(); + assert_eq!(problem["failedCheck"].as_str(), expected); + assert!(schema.is_valid(&problem), "{problem}"); + problem["failedCheck"] = json!(false); + assert!(!schema.is_valid(&problem), "{problem}"); } } diff --git a/crates/registry-evidence-oid4vci/tests/draft13_profile.rs b/crates/registry-evidence-oid4vci/tests/draft13_profile.rs index b6f89416db..f008d937de 100644 --- a/crates/registry-evidence-oid4vci/tests/draft13_profile.rs +++ b/crates/registry-evidence-oid4vci/tests/draft13_profile.rs @@ -49,6 +49,7 @@ use registry_evidence_verifier::{ }; use registry_platform_audit::AuditWriter; use registry_platform_authcommon::FailedCheck; +use registry_platform_config::{DeclaredPosture, Posture, PostureReport, PostureSource}; use registry_platform_crypto::{hmac_sha256_base64url_no_pad, sign, PrivateJwk}; use registry_platform_sdjwt::SdJwtIssuer; use serde_json::{json, Value}; @@ -177,6 +178,7 @@ struct SigningIssuer { signing_key: String, requests: Mutex>, issued: Mutex>, + refuse_issuance: bool, } impl SigningIssuer { @@ -199,6 +201,7 @@ impl SigningIssuer { signing_key: signing_key.to_string(), requests: Mutex::new(Vec::new()), issued: Mutex::new(Vec::new()), + refuse_issuance: false, } } @@ -222,6 +225,10 @@ impl CredentialIssuer for SigningIssuer { } async fn issue(&self, spec: HolderBoundRequestSpec) -> Result, IssuanceError> { + if self.refuse_issuance { + self.requests.lock().expect("requests lock").push(spec); + return Err(IssuanceError::Refused); + } let signer = SdJwtIssuer::from_jwk( PrivateJwk::parse(&self.signing_key).expect("the issuer private JWK parses"), ) @@ -312,9 +319,17 @@ struct Harness { } fn harness(draft13: bool) -> Harness { + harness_with_issuer(draft13, Posture::Development, SigningIssuer::new()) +} + +fn harness_with_issuer(draft13: bool, posture: Posture, issuer: SigningIssuer) -> Harness { let block = draft13.then_some("draft13Profile: {}"); - let config = load_config(&config_text(block)).expect("the deployment loads"); - let issuer = Arc::new(SigningIssuer::new()); + let mut config = load_config(&config_text(block)).expect("the deployment loads"); + config.posture = PostureReport::new(DeclaredPosture { + posture, + source: PostureSource::Flag, + }); + let issuer = Arc::new(issuer); let clock = TestClock::default(); let reading = clock.clone(); let service = DeliveryService::with_halves( @@ -323,10 +338,7 @@ fn harness(draft13: bool) -> Harness { Arc::clone(&issuer) as Arc, Arc::new( DeliveryAudit::with_writer( - AuditWriter::from_line_sink( - Box::new(std::io::sink()), - registry_platform_config::Posture::Development, - ), + AuditWriter::from_line_sink(Box::new(std::io::sink()), posture), b"0123456789abcdef0123456789abcdef".to_vec(), ) .expect("the test audit profile is valid"), @@ -841,6 +853,44 @@ async fn the_draft13_token_endpoint_refuses_other_grants_and_spent_codes() { // Credential endpoint. +#[tokio::test] +async fn issuance_refusal_matches_the_draft13_credential_response_in_both_postures() { + let openapi = registry_evidence_oid4vci::contracts::openapi_document(); + let mut response_schema = openapi["paths"][draft13::CREDENTIAL_PATH]["post"]["responses"] + ["400"]["content"]["application/json"]["schema"] + .clone(); + response_schema["components"] = openapi["components"].clone(); + let schema = jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile(&response_schema) + .expect("Draft 13 credential refusal schema"); + for posture in [Posture::Production, Posture::Development] { + let harness = harness_with_issuer( + true, + posture, + SigningIssuer { + refuse_issuance: true, + ..SigningIssuer::new() + }, + ); + let (token, nonce) = draft13_grant(&harness.server).await; + let jwt = proof(&holder_key(), DRAFT13_ISSUER, &nonce, &harness); + let response = post_credential(&harness.server, &token, &credential_body(&jwt)).await; + assert_eq!(response.status_code(), StatusCode::BAD_REQUEST); + assert_eq!(harness.issuer.call_count(), 1); + let body = response.json::(); + let mut expected = json!({ + "error": "credential_request_denied", + "error_description": "this credential request cannot be completed" + }); + if posture == Posture::Development { + expected["failedCheck"] = json!("source-authority"); + } + assert_eq!(body, expected); + assert!(schema.is_valid(&body), "{body}"); + } +} + #[tokio::test] async fn a_singular_proof_is_accepted_and_the_credential_is_delivered_unaltered() { let harness = harness(true); diff --git a/crates/registry-evidence-oid4vp/src/contracts.rs b/crates/registry-evidence-oid4vp/src/contracts.rs index b4d9c80362..d59939e7de 100644 --- a/crates/registry-evidence-oid4vp/src/contracts.rs +++ b/crates/registry-evidence-oid4vp/src/contracts.rs @@ -30,6 +30,11 @@ const FAILURE_CATEGORIES: [&str; 6] = [ "other", ]; +fn contract_path(path: &str) -> String { + path.replace("{reference}", "{sessionReference}") + .replace("{request_id}", "{requestId}") +} + /// Generate the committed HTTP contract from the same route constants the /// runtime registers. #[must_use] @@ -65,14 +70,14 @@ pub fn openapi_document() -> Value { }), ); paths.insert( - SESSION_PATH.to_owned(), + contract_path(SESSION_PATH), json!({ "get": { "operationId": "readSessionStatus", "summary": "Read the state of a session the applicant created", "security": [{"applicantBearer": []}], "parameters": [{ - "name": "reference", "in": "path", "required": true, + "name": "sessionReference", "in": "path", "required": true, "schema": {"type": "string"} }], "responses": { @@ -87,14 +92,14 @@ pub fn openapi_document() -> Value { }), ); paths.insert( - REQUEST_PATH.to_owned(), + contract_path(REQUEST_PATH), json!({ "get": { "operationId": "fetchRequestObject", "summary": "Serve the signed OpenID4VP request object to the wallet", "description": "Anonymous; the request identifier is a bearer capability. The object is a JWT signed under the policy's client identifier.", "parameters": [{ - "name": "request_id", "in": "path", "required": true, + "name": "requestId", "in": "path", "required": true, "schema": {"type": "string"} }], "responses": { @@ -113,14 +118,14 @@ pub fn openapi_document() -> Value { }), ); paths.insert( - RESPONSE_PATH.to_owned(), + contract_path(RESPONSE_PATH), json!({ "post": { "operationId": "receiveWalletResponse", "summary": "Receive the wallet's direct_post.jwt response", "description": "Anonymous; the request identifier is a bearer capability. The form carries one encrypted `response` JWE, or a plain OAuth `error`. Answers use the OAuth error shape and never carry a description.", "parameters": [{ - "name": "request_id", "in": "path", "required": true, + "name": "requestId", "in": "path", "required": true, "schema": {"type": "string"} }], "requestBody": { @@ -136,7 +141,7 @@ pub fn openapi_document() -> Value { "400": oauth_error_response("The response was refused"), "408": problem_response("The configured request deadline elapsed"), "413": problem_response("The body exceeds the response size limit"), - "429": oauth_retry_response("Responses are arriving too quickly"), + "429": oauth_rate_limit_response(), "503": oauth_retry_response("The audit destination is stopped, the response is being recorded, or holding the presentation would pass the held-presentation byte budget") } } @@ -333,6 +338,13 @@ fn oauth_retry_response(description: &str) -> Value { response } +fn oauth_rate_limit_response() -> Value { + let mut response = oauth_retry_response("Responses are arriving too quickly"); + response["content"]["application/json"]["schema"] = + json!({"$ref": "#/components/schemas/OAuthRateLimit"}); + response +} + fn schemas() -> Value { json!({ "HealthResponse": { @@ -361,13 +373,21 @@ fn schemas() -> Value { "type": {"type": "string", "format": "uri"}, "title": {"type": "string"}, "status": {"type": "integer"}, - "detail": {"type": "string"} + "detail": {"type": "string"}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."} } }, "OAuthError": { "type": "object", "additionalProperties": false, "required": ["error"], "properties": {"error": {"enum": ["invalid_request", "temporarily_unavailable"]}} }, + "OAuthRateLimit": { + "type": "object", "additionalProperties": false, "required": ["error"], + "properties": { + "error": {"const": "temporarily_unavailable"}, + "failedCheck": {"const": "rate-limit", "description": "The check that refused the request, included only in development."} + } + }, "CreateSessionRequest": { "type": "object", "additionalProperties": false, "required": ["policy"], "properties": {"policy": {"type": "string"}} @@ -499,16 +519,53 @@ mod tests { .as_object() .expect("paths are an object") .keys() - .map(String::as_str) + .cloned() .collect::>(); - assert_eq!(actual, ROUTES.into_iter().collect::>()); + let expected = ROUTES + .into_iter() + .map(contract_path) + .collect::>(); + assert_eq!(actual, expected); + } + + #[test] + fn path_arguments_identify_the_session_and_wallet_request() { + let document = openapi_document(); + for (path, method, parameter, operation) in [ + ( + "/v1/sessions/{sessionReference}", + "get", + "sessionReference", + "readSessionStatus", + ), + ( + "/v1/requests/{requestId}", + "get", + "requestId", + "fetchRequestObject", + ), + ( + "/v1/responses/{requestId}", + "post", + "requestId", + "receiveWalletResponse", + ), + ] { + let published = &document["paths"][path][method]; + assert_eq!(published["operationId"], operation); + assert_eq!(published["parameters"][0]["in"], "path"); + assert_eq!(published["parameters"][0]["name"], parameter); + assert_eq!(published["parameters"][0]["required"], true); + } } #[test] fn every_route_publishes_one_operation_with_the_deadline_refusal() { let document = openapi_document(); for path in ROUTES { - let operations = document["paths"][path].as_object().expect("a route"); + let operations = document["paths"][contract_path(path)] + .as_object() + .expect("a route"); assert_eq!(operations.len(), 1, "{path}"); let operation = operations.values().next().unwrap(); assert!(operation["responses"].get("408").is_some(), "{path}"); @@ -519,7 +576,7 @@ mod tests { fn every_response_publishes_the_traceparent_header() { let document = openapi_document(); for path in ROUTES { - let operation = document["paths"][path] + let operation = document["paths"][contract_path(path)] .as_object() .expect("a route") .values() @@ -544,13 +601,14 @@ mod tests { (SESSION_PATH, "get"), (READ_PATH, "post"), ] { + let path = contract_path(path); assert_eq!( - document["paths"][path][method]["responses"]["401"]["headers"]["WWW-Authenticate"] + document["paths"][&path][method]["responses"]["401"]["headers"]["WWW-Authenticate"] ["schema"]["const"], "Bearer", "{path}" ); - let forbidden = &document["paths"][path][method]["responses"]["403"]; + let forbidden = &document["paths"][&path][method]["responses"]["403"]; assert!(forbidden.is_object(), "{path} publishes 403"); assert!( forbidden["headers"].get("WWW-Authenticate").is_none(), @@ -564,7 +622,7 @@ mod tests { let document = openapi_document(); for path in [SESSIONS_PATH, READ_PATH, RESPONSE_PATH] { assert!( - document["paths"][path]["post"]["responses"] + document["paths"][contract_path(path)]["post"]["responses"] .get("413") .is_some(), "{path}" @@ -595,7 +653,8 @@ mod tests { fn the_budget_refusal_is_published_on_the_wallet_route() { let document = openapi_document(); assert!( - document["paths"][RESPONSE_PATH]["post"]["responses"]["503"]["description"] + document["paths"][contract_path(RESPONSE_PATH)]["post"]["responses"]["503"] + ["description"] .as_str() .unwrap() .contains("byte budget") diff --git a/crates/registry-evidence-oid4vp/tests/endpoints.rs b/crates/registry-evidence-oid4vp/tests/endpoints.rs index a8dc83a2da..c6e3ea7ad8 100644 --- a/crates/registry-evidence-oid4vp/tests/endpoints.rs +++ b/crates/registry-evidence-oid4vp/tests/endpoints.rs @@ -871,8 +871,17 @@ async fn every_published_route_is_served_and_every_served_route_is_published() { let harness = Harness::new(&Options::default()).await; let (server, _) = harness.server().await; let document = openapi_document(); + assert_eq!( + document["paths"].as_object().unwrap().len(), + ROUTES.len(), + "every published path is a served route" + ); for path in ROUTES { - let method = document["paths"][path] + // The contract publishes descriptive parameter names for the same routes. + let published = path + .replace("{reference}", "{sessionReference}") + .replace("{request_id}", "{requestId}"); + let method = document["paths"][published.as_str()] .as_object() .unwrap() .keys() diff --git a/crates/registry-evidence-oid4vp/tests/responses.rs b/crates/registry-evidence-oid4vp/tests/responses.rs index ae0833f617..ecd5b4d727 100644 --- a/crates/registry-evidence-oid4vp/tests/responses.rs +++ b/crates/registry-evidence-oid4vp/tests/responses.rs @@ -1216,6 +1216,65 @@ async fn responses_are_rate_limited_per_request_and_globally() { .assert_status(StatusCode::TOO_MANY_REQUESTS); } +fn wallet_response_schema(status: &str) -> jsonschema::JSONSchema { + use registry_evidence_oid4vp::contracts::openapi_document; + let document = openapi_document(); + let responses = &document["paths"]["/v1/responses/{requestId}"]["post"]["responses"]; + let reference = responses[status]["content"]["application/json"]["schema"]["$ref"] + .as_str() + .unwrap(); + jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile( + document + .pointer(reference.strip_prefix('#').unwrap()) + .unwrap(), + ) + .unwrap() +} + +#[tokio::test] +async fn wallet_errors_validate_against_their_status_specific_response_contract() { + use registry_platform_config::Posture; + let refused = wallet_response_schema("400"); + let limited = wallet_response_schema("429"); + let unavailable = wallet_response_schema("503"); + let incorrectly_tagged = + json!({"error": "temporarily_unavailable", "failedCheck": "rate-limit"}); + assert!(!unavailable.is_valid(&incorrectly_tagged)); + assert!(!refused.is_valid(&json!({"error": "invalid_request", "failedCheck": "rate-limit"}))); + assert!( + !limited.is_valid(&json!({"error": "temporarily_unavailable", "failedCheck": "purpose"})) + ); + + for posture in [Posture::Production, Posture::Development] { + let harness = Harness::new(&Options { + wallet_response_burst: 1, + ..Options::default() + }) + .await; + let (server, _) = harness.server_with_posture(posture).await; + let reference = "C".repeat(43); + let first = post_response(&server, &reference, "x").await; + first.assert_status(StatusCode::BAD_REQUEST); + let first = first.json::(); + assert_eq!(first, json!({"error": "invalid_request"})); + assert!(refused.is_valid(&first)); + let second = post_response(&server, &reference, "x").await; + second.assert_status(StatusCode::TOO_MANY_REQUESTS); + let second = second.json::(); + assert!(limited.is_valid(&second), "{second}"); + assert_eq!( + second, + if posture == Posture::Production { + json!({"error": "temporarily_unavailable"}) + } else { + incorrectly_tagged.clone() + } + ); + } +} + #[tokio::test] async fn reads_are_rate_limited_per_evidence_client() { let harness = Harness::new(&Options { @@ -1238,8 +1297,19 @@ async fn reads_are_rate_limited_per_evidence_client() { #[tokio::test] async fn an_audit_failure_refuses_the_response_and_leaves_the_session_pending() { + use registry_platform_config::Posture; + let schema = wallet_response_schema("503"); + for posture in [Posture::Production, Posture::Development] { + assert_wallet_audit_failure(posture, &schema).await; + } +} + +async fn assert_wallet_audit_failure( + posture: registry_platform_config::Posture, + schema: &jsonschema::JSONSchema, +) { let harness = Harness::new(&Options::default()).await; - let (server, service) = harness.server().await; + let (server, service) = harness.server_with_posture(posture).await; let exchange = start(&harness, &server, &service, "national-id", "user-1").await; let jwe = seal_to_session(&exchange, &national_id_payload(&exchange)); @@ -1249,10 +1319,9 @@ async fn an_audit_failure_refuses_the_response_and_leaves_the_session_pending() std::fs::write(&harness.audit_path, b"").unwrap(); let refused = post_response(&server, &exchange.request_id, &jwe).await; refused.assert_status(StatusCode::SERVICE_UNAVAILABLE); - assert_eq!( - refused.json::(), - json!({"error": "temporarily_unavailable"}) - ); + let body = refused.json::(); + assert_eq!(body, json!({"error": "temporarily_unavailable"})); + assert!(schema.is_valid(&body), "{body}"); assert!(refused.maybe_header("retry-after").is_some()); // The reservation was released: the session holds nothing for this // response and reads as pending. diff --git a/crates/registry-evidence/src/contracts.rs b/crates/registry-evidence/src/contracts.rs index 65849f7416..686a623422 100644 --- a/crates/registry-evidence/src/contracts.rs +++ b/crates/registry-evidence/src/contracts.rs @@ -872,7 +872,8 @@ fn problem_schema() -> Value { "the Evidence request rate is exhausted", "the authoritative source is unavailable", "the request could not be served", "the requested resource was not found" ]}, - "traceId": {"type": "string", "pattern": TRACE_ID_PATTERN} + "traceId": {"type": "string", "pattern": TRACE_ID_PATTERN}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."} }, "$comment": "Problem members are a closed safe shape. No request, authority, source, script, supported-value, subject-binding, candidate, or credential detail is returned." }); @@ -880,12 +881,18 @@ fn problem_schema() -> Value { PROBLEM_VARIANTS .into_iter() .map(|(code, status, title, detail)| { + let failed_check = match (code, status) { + ("service.unavailable", 503) => json!({"const": "key-source-unavailable"}), + (_, 401 | 403 | 429) => json!({"type": "string"}), + _ => json!(false), + }; json!({"properties": { "type": {"const": format!("{PROBLEM_TYPE_BASE}{}", code.replace('.', "/"))}, "title": {"const": title}, "status": {"const": status}, "detail": {"const": detail}, - "code": {"const": code} + "code": {"const": code}, + "failedCheck": failed_check }}) }) .collect(), @@ -1805,6 +1812,38 @@ fn authentication_challenge_header() -> Value { }) } +#[cfg(test)] +pub(crate) fn assert_served_problem( + path: &str, + method: &str, + body: &Value, + code: crate::problem::ProblemCode, + failed_check: Option<&str>, +) { + let documents = documents().expect("published contracts generate"); + let document: Value = serde_json::from_str(&documents[OPENAPI_FILE]).expect("OpenAPI parses"); + let status = code.status().as_u16().to_string(); + let mut schema = document["paths"][path][method]["responses"][&status]["content"] + ["application/problem+json"]["schema"] + .clone(); + schema["components"] = document["components"].clone(); + let validator = jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile(&schema) + .expect("published response schema compiles"); + let trace = body["traceId"].as_str().expect("public trace ID"); + let trace = registry_platform_httpsec::TraceId::parse(trace).expect("trace ID parses"); + let mut expected = serde_json::to_value(code.body(trace)).expect("problem serializes"); + if let Some(check) = failed_check { + expected["failedCheck"] = json!(check); + } + assert_eq!(*body, expected); + assert!( + validator.is_valid(body), + "response does not match {path} {method} {status}: {body}" + ); +} + #[cfg(test)] mod tests { use super::*; @@ -2454,7 +2493,7 @@ mod tests { assert_eq!(problem["additionalProperties"], json!(false)); assert_eq!( problem["properties"].as_object().map(|value| value.len()), - Some(6) + Some(7) ); } @@ -2624,6 +2663,51 @@ mod tests { } } + #[test] + fn problem_schema_accepts_development_refusal_diagnostics() { + let schema = problem_schema(); + let compiled = JSONSchema::options() + .with_draft(Draft::Draft202012) + .compile(&schema) + .expect("problem schema compiles"); + let mut problem = json!({ + "type": "https://id.registrystack.org/problems/registry-evidence/evidence/denied", + "title": "Evidence request is not permitted", + "status": 403, + "detail": "the Evidence request is not permitted", + "code": "evidence.denied", + "traceId": "0123456789abcdef0123456789abcdef" + }); + assert!(compiled.is_valid(&problem)); + problem["failedCheck"] = json!("access-profile"); + assert!(compiled.is_valid(&problem)); + problem["failedCheck"] = json!(false); + assert!(!compiled.is_valid(&problem)); + for (code, status, title, detail) in PROBLEM_VARIANTS { + let mut problem = json!({ + "type": format!("{PROBLEM_TYPE_BASE}{}", code.replace('.', "/")), + "title": title, + "status": status, + "detail": detail, + "code": code, + "traceId": "0123456789abcdef0123456789abcdef" + }); + assert!(compiled.is_valid(&problem), "production {code}"); + problem["failedCheck"] = json!("key-source-unavailable"); + assert_eq!( + compiled.is_valid(&problem), + matches!(status, 401 | 403 | 429) || code == "service.unavailable", + "development {code}" + ); + problem["failedCheck"] = json!("access-profile"); + assert_eq!( + compiled.is_valid(&problem), + matches!(status, 401 | 403 | 429), + "{code}" + ); + } + } + #[test] fn problem_schema_rejects_mismatched_code_status_and_title() { let schema = problem_schema(); diff --git a/crates/registry-evidence/src/normalized_tests.rs b/crates/registry-evidence/src/normalized_tests.rs index a28b34e462..00aebe654a 100644 --- a/crates/registry-evidence/src/normalized_tests.rs +++ b/crates/registry-evidence/src/normalized_tests.rs @@ -1322,7 +1322,7 @@ fn normalized_project() -> EvidenceProject { "fields": {"record-id": {"type": "string", "minimumBytes": 1, "maximumBytes": 64}} } }, - "functions": { + "derivations": { "derive-active": {"interface": "assertion-derive/v1", "source": "functions/derive.rhai"}, "derive-classic": {"interface": "assertion-derive/v1", "source": "functions/derive-classic.rhai"}, "derive-members": {"interface": "assertion-derive/v1", "source": "functions/derive-members.rhai"} @@ -1408,7 +1408,7 @@ fn normalized_project() -> EvidenceProject { ["signed-jws"], ); classic["acquisition"] = json!({"source": "classic"}); - classic["derive"] = json!({"function": "derive-classic"}); + classic["derive"] = json!({"derivation": "derive-classic"}); document["assertionDefinitions"]["classic"] = classic; let mut fetch_set = definition( REQUIREMENT_SET, @@ -1419,7 +1419,7 @@ fn normalized_project() -> EvidenceProject { ["signed-jws"], ); fetch_set["acquisition"] = json!({"source": "members"}); - fetch_set["derive"] = json!({"function": "derive-members"}); + fetch_set["derive"] = json!({"derivation": "derive-members"}); document["assertionDefinitions"]["fetch-set"] = fetch_set; serde_json::from_value(document).expect("normalized project is structurally valid") } @@ -1714,7 +1714,7 @@ fn definition( }, "subjects": [{"role": "subject", "selectors": ["record-by-id"]}], "acquisition": {"source": "records"}, - "derive": {"function": "derive-active"}, + "derive": {"derivation": "derive-active"}, "outputs": {"active": {"concept": format!("urn:example:normalized:concept:active:{}", purpose.trim_end_matches("-check")), "type": "boolean"}}, "validitySeconds": 300, "subjectBinding": binding, diff --git a/crates/registry-evidence/src/public_check_tests.rs b/crates/registry-evidence/src/public_check_tests.rs index 9e11af2368..c0d2b69a27 100644 --- a/crates/registry-evidence/src/public_check_tests.rs +++ b/crates/registry-evidence/src/public_check_tests.rs @@ -30,6 +30,7 @@ use registry_evidence_authoring::{ project::{AcquisitionPosture, EvidenceProject, PackReference}, target::{self, EvidenceTargetAuthority}, }; +use registry_platform_config::Posture; use registry_platform_yaml::LocalId; use serde_json::{json, Value}; use tempfile::TempDir; @@ -160,6 +161,14 @@ async fn public_check_runtime(authority_kind: Authority) -> PublicCheckRuntime { async fn public_check_runtime_with_routes( authority_kind: Authority, routes: Vec, +) -> PublicCheckRuntime { + public_check_runtime_with_posture(authority_kind, routes, Posture::Development).await +} + +async fn public_check_runtime_with_posture( + authority_kind: Authority, + routes: Vec, + posture: Posture, ) -> PublicCheckRuntime { let source = MockServer::start().await; let temporary = tempfile::tempdir().expect("temporary public-check deployment"); @@ -251,16 +260,17 @@ sourceConnections: .expect("runtime configuration is written"); fs::set_permissions(&runtime_path, fs::Permissions::from_mode(0o400)) .expect("runtime configuration is sealed"); - DeploymentInputs::load( + let deployment = DeploymentInputs::load( &runtime_path, registry_platform_config::DeclaredPosture { posture: registry_platform_config::Posture::Development, source: registry_platform_config::PostureSource::Flag, }, ) - .expect("package and authority ceilings both load"); + .expect("package and authority ceilings both load") + .with_test_posture(posture); let runtime = Arc::new( - EvidenceRuntime::initialize_with_authenticator(&runtime_path, authenticator()) + EvidenceRuntime::initialize_from_with_authenticator(deployment, authenticator()) .await .expect("certificate runtime initializes"), ); @@ -362,7 +372,7 @@ fn certificate_project() -> EvidenceProject { "fields": {"number": {"type": "string", "minimumBytes": 4, "maximumBytes": 32}} } }, - "functions": { + "derivations": { "derive-certificate-check": {"interface": "assertion-derive/v1", "source": "functions/derive.rhai"} }, "sources": { @@ -394,7 +404,7 @@ fn certificate_project() -> EvidenceProject { }, "subjects": [{"role": "certificate", "selectors": ["certificate-number"]}], "acquisition": {"source": "certificate-record"}, - "derive": {"function": "derive-certificate-check"}, + "derive": {"derivation": "derive-certificate-check"}, "outputs": { "status": {"concept": STATUS_CONCEPT, "type": "controlled-category", "values": ["valid", "suspended", "revoked", "expired"]}, "printed": {"concept": PRINTED_CONCEPT, "type": "reviewed-structured-value", "schema": "schemas/printed.json", "maximumSerializedBytes": 1024}, @@ -1007,6 +1017,26 @@ async fn a_check_only_authority_serves_the_check() { /// Test 14: every miss class is one identical not-found response, and only /// the audit tells them apart, without the presented or stored values. +#[tokio::test] +async fn a_concealed_miss_matches_the_untagged_response_in_both_postures() { + use crate::contracts::assert_served_problem; + for posture in [Posture::Production, Posture::Development] { + let fixture = + public_check_runtime_with_posture(Authority::RelyingAndCheck, pack_routes(), posture) + .await; + fixture.mount_record(NUMBER, record("valid")).await; + let response = check(&fixture.http(), NUMBER, "AAAAAAAAAAAAAAAAAAAAAAAA").await; + response.assert_status(StatusCode::NOT_FOUND); + assert_served_problem( + "/v1/public-check", + "post", + &response.json(), + ProblemCode::ResourceNotFound, + None, + ); + } +} + #[tokio::test] async fn every_miss_is_one_identical_not_found() { let fixture = public_check_runtime(Authority::RelyingAndCheck).await; diff --git a/crates/registry-evidence/src/refusal_recording_tests.rs b/crates/registry-evidence/src/refusal_recording_tests.rs index 00e16b6fdf..de6d8a2fc3 100644 --- a/crates/registry-evidence/src/refusal_recording_tests.rs +++ b/crates/registry-evidence/src/refusal_recording_tests.rs @@ -431,6 +431,93 @@ fn golden_path() -> PathBuf { Path::new(env!("CARGO_MANIFEST_DIR")).join(GOLDEN) } +#[tokio::test] +async fn the_evidence_router_serves_the_status_specific_problem_contract_in_both_postures() { + use crate::contracts::assert_served_problem; + use registry_platform_config::Posture; + let post = "/v1/evidence"; + let definitions = "/v1/evidence-definitions"; + for posture in [Posture::Production, Posture::Development] { + let visible = |check| (posture == Posture::Development).then_some(check); + let prepared = prepare_acceptance("subject-binding-secret-canary-32-bytes-minimum").await; + make_writable(&prepared.bundle_root); + mutate_acceptance_configuration(&prepared.bundle_root.join("evidence.yaml"), |config| { + config["rateLimits"]["requestsPerPrincipalPerMinute"] = json!(1); + config["rateLimits"]["burstPerPrincipal"] = json!(1); + }); + refresh_package_envelope(&prepared.bundle_root); + make_read_only(&prepared.bundle_root); + let runtime = initialize_acceptance_with_posture(prepared, posture, false).await; + let app = build_app(Arc::clone(&runtime.runtime)); + for (name, code) in [ + ("no-authorization-header", ProblemCode::AuthenticationFailed), + ("client-not-admitted", ProblemCode::NotAuthorized), + ] { + let scenario = scenarios() + .into_iter() + .find(|case| case.name == name) + .unwrap(); + let response = app.clone().oneshot(build_request(&scenario)).await.unwrap(); + assert_eq!(response.status(), code.status()); + let bytes = axum::body::to_bytes(response.into_body(), 16_384) + .await + .unwrap(); + let body = serde_json::from_slice(&bytes).unwrap(); + assert_served_problem(post, "post", &body, code, visible(scenario.check.as_str())); + } + + Mock::given(method("POST")) + .and(path("/v1/facts")) + .respond_with(ResponseTemplate::new(503)) + .expect(1) + .mount(&runtime.server) + .await; + let http = TestServer::new(app); + let bearer = format!("Bearer {}", access_token(None)); + let source = http + .post(post) + .add_header("authorization", &bearer) + .json(&adult_request()) + .await; + source.assert_status(StatusCode::SERVICE_UNAVAILABLE); + assert_served_problem( + post, + "post", + &source.json(), + ProblemCode::DependencyUnavailable, + None, + ); + let limited = http + .get(definitions) + .add_header("authorization", &bearer) + .await; + limited.assert_status(StatusCode::TOO_MANY_REQUESTS); + assert_served_problem( + definitions, + "get", + &limited.json(), + ProblemCode::RateLimited, + visible("rate-limit"), + ); + + let prepared = prepare_acceptance("subject-binding-secret-canary-32-bytes-minimum").await; + let runtime = initialize_acceptance_with_posture(prepared, posture, true).await; + let http = TestServer::new(build_app(Arc::clone(&runtime.runtime))); + let issuer = http + .get(definitions) + .add_header("authorization", &bearer) + .await; + issuer.assert_status(StatusCode::SERVICE_UNAVAILABLE); + assert_served_problem( + definitions, + "get", + &issuer.json(), + ProblemCode::ServiceUnavailable, + visible("key-source-unavailable"), + ); + } +} + #[test] fn every_refusal_is_counted_logged_once_by_its_check_and_answered_as_before() { let scenarios = scenarios(); diff --git a/crates/registry-evidence/src/runtime_tests.rs b/crates/registry-evidence/src/runtime_tests.rs index 015c4e5ee4..cfcfb6d1d2 100644 --- a/crates/registry-evidence/src/runtime_tests.rs +++ b/crates/registry-evidence/src/runtime_tests.rs @@ -10066,10 +10066,23 @@ async fn acceptance_runtime_with_posture_authenticator( posture: registry_platform_config::Posture, ) -> AcceptanceRuntime { let prepared = prepare_acceptance("subject-binding-secret-canary-32-bytes-minimum").await; + initialize_acceptance_with_posture(prepared, posture, false).await +} + +async fn initialize_acceptance_with_posture( + prepared: PreparedAcceptance, + posture: registry_platform_config::Posture, + key_source_unavailable: bool, +) -> AcceptanceRuntime { let private = PrivateJwk::parse(AUTH_PRIVATE_JWK).expect("auth test key parses"); + let keys = if key_source_unavailable { + ResponseTemplate::new(503) + } else { + ResponseTemplate::new(200).set_body_json(json!({"keys": [private.public()]})) + }; Mock::given(method("GET")) .and(path("/.well-known/jwks.json")) - .respond_with(ResponseTemplate::new(200).set_body_json(json!({"keys": [private.public()]}))) + .respond_with(keys) .mount(&prepared.server) .await; let mut config = crate::bundle::Bundle::load(&prepared.bundle_root) diff --git a/crates/registry-evidence/tests/authoring_output_forms.rs b/crates/registry-evidence/tests/authoring_output_forms.rs index ab7bbdf44c..fd34ded886 100644 --- a/crates/registry-evidence/tests/authoring_output_forms.rs +++ b/crates/registry-evidence/tests/authoring_output_forms.rs @@ -45,7 +45,7 @@ fn project_document() -> Value { } } }, - "functions": { + "derivations": { "derive-values": {"interface": "assertion-derive/v1", "source": "functions/derive.rhai"} }, "sources": { @@ -83,7 +83,7 @@ fn project_document() -> Value { }, "subjects": [{"role": "subject", "selectors": ["record-by-code"]}], "acquisition": {"source": "records"}, - "derive": {"function": "derive-values"}, + "derive": {"derivation": "derive-values"}, "outputs": { "boolean": {"concept": "urn:example:concept:boolean", "type": "boolean"}, "controlled-code": {"concept": "urn:example:concept:controlled-code", "type": "controlled-code", "codelist": "codelists/codes.yaml", "codelistVersion": "1", "maximumBytes": 8}, diff --git a/crates/registry-evidencectl/schemas/authoring/project.schema.json b/crates/registry-evidencectl/schemas/authoring/project.schema.json index cb70bcdf49..2027a500a0 100644 --- a/crates/registry-evidencectl/schemas/authoring/project.schema.json +++ b/crates/registry-evidencectl/schemas/authoring/project.schema.json @@ -51,7 +51,7 @@ "$ref": "#/$defs/Acquisition" }, "derive": { - "$ref": "#/$defs/FunctionCall" + "$ref": "#/$defs/DerivationCall" }, "description": { "anyOf": [ @@ -180,6 +180,73 @@ ], "type": "string" }, + "Derivation": { + "additionalProperties": false, + "properties": { + "description": { + "anyOf": [ + { + "$ref": "#/$defs/DisplayText" + }, + { + "type": "null" + } + ], + "description": "Human explanation for authors and reviewers; excluded from behavior revisions." + }, + "interface": { + "$ref": "#/$defs/DerivationInterface" + }, + "label": { + "anyOf": [ + { + "$ref": "#/$defs/DisplayText" + }, + { + "type": "null" + } + ], + "description": "Optional presentation label. Stable references use the identifier." + }, + "source": { + "type": "string" + } + }, + "required": [ + "interface", + "source" + ], + "type": "object" + }, + "DerivationCall": { + "additionalProperties": false, + "properties": { + "derivation": { + "$ref": "#/$defs/LocalId" + }, + "parameters": { + "additionalProperties": true, + "type": "object", + "x-registry-passthrough": "Literal reviewed Derivation parameter bindings, checked at the named Derivation call site." + }, + "selectorInputs": { + "items": { + "$ref": "#/$defs/DeriveSelectorInput" + }, + "type": "array" + } + }, + "required": [ + "derivation" + ], + "type": "object" + }, + "DerivationInterface": { + "enum": [ + "assertion-derive/v1" + ], + "type": "string" + }, "DeriveSelectorInput": { "additionalProperties": false, "properties": { @@ -460,73 +527,6 @@ } ] }, - "Function": { - "additionalProperties": false, - "properties": { - "description": { - "anyOf": [ - { - "$ref": "#/$defs/DisplayText" - }, - { - "type": "null" - } - ], - "description": "Human explanation for authors and reviewers; excluded from behavior revisions." - }, - "interface": { - "$ref": "#/$defs/FunctionInterface" - }, - "label": { - "anyOf": [ - { - "$ref": "#/$defs/DisplayText" - }, - { - "type": "null" - } - ], - "description": "Optional presentation label. Stable references use the identifier." - }, - "source": { - "type": "string" - } - }, - "required": [ - "interface", - "source" - ], - "type": "object" - }, - "FunctionCall": { - "additionalProperties": false, - "properties": { - "function": { - "$ref": "#/$defs/LocalId" - }, - "parameters": { - "additionalProperties": true, - "type": "object", - "x-registry-passthrough": "Literal reviewed Function parameter bindings, checked at the named Function call site." - }, - "selectorInputs": { - "items": { - "$ref": "#/$defs/DeriveSelectorInput" - }, - "type": "array" - } - }, - "required": [ - "function" - ], - "type": "object" - }, - "FunctionInterface": { - "enum": [ - "assertion-derive/v1" - ], - "type": "string" - }, "GrantCeiling": { "additionalProperties": false, "properties": { @@ -1182,9 +1182,9 @@ }, "type": "object" }, - "functions": { + "derivations": { "additionalProperties": { - "$ref": "#/$defs/Function" + "$ref": "#/$defs/Derivation" }, "propertyNames": { "$ref": "#/$defs/LocalId" @@ -1233,7 +1233,7 @@ "kind", "project", "lookups", - "functions", + "derivations", "sources", "assertionDefinitions" ], diff --git a/crates/registry-evidencectl/src/check.rs b/crates/registry-evidencectl/src/check.rs index 0b86b42eef..e9d2f8a9cb 100644 --- a/crates/registry-evidencectl/src/check.rs +++ b/crates/registry-evidencectl/src/check.rs @@ -86,8 +86,9 @@ pub(crate) fn check( let target_path = target.map(crate::target::target_path); let target = target_path.as_deref(); let assurance_refusal = if production { - let path = target - .ok_or_else(|| anyhow::anyhow!("--production requires an explicit EvidenceTarget"))?; + let path = target.ok_or_else(|| { + anyhow::anyhow!("deployment closure requires an explicit EvidenceTarget") + })?; let bytes = crate::authored::read_authored_file(path, "EvidenceTarget")?; let target_model = registry_evidence_authoring::target::read_target(&path.to_string_lossy(), &bytes)? @@ -102,7 +103,7 @@ pub(crate) fn check( .then(|| crate::build::TargetDocumentDiagnostic { code: "evidence.target.production-assurance-required", path: format!("{}:/assuranceProfile", path.display()), - message: "--production requires production or evidence-grade target assurance" + message: "deployment closure requires production or evidence-grade target assurance" .to_owned(), }) } else { @@ -353,7 +354,7 @@ fn refused(command: &str, project: &Path, target: Option<&Path>, found: &Report) crate::report::refused( command, status, - json!({"project":project,"target":target,"proof":"authoring","diagnostics":found.to_json_value(),"projectPresentation":null,"lookups":{},"capabilityCeilings":null,"assertionDefinitions":[],"sources":[],"functions":[],"authority":null,"offline":true,"networkAccess":false,"secretResolution":false,"fixtureExecution":false}), + json!({"project":project,"target":target,"proof":"authoring","diagnostics":found.to_json_value(),"projectPresentation":null,"lookups":{},"capabilityCeilings":null,"assertionDefinitions":[],"sources":[],"derivations":[],"authority":null,"offline":true,"networkAccess":false,"secretResolution":false,"fixtureExecution":false}), ) } @@ -519,8 +520,8 @@ pub(crate) fn render_human_with_settings( } writeln!( out, - " Derive: Function {}", - definition["derive"]["function"] + " Derivation: {}", + definition["derive"]["derivation"] .as_str() .unwrap_or("unknown") )?; @@ -543,10 +544,10 @@ pub(crate) fn render_human_with_settings( render_source(source, out)?; } } - for function in report["functions"].as_array().into_iter().flatten() { + for function in report["derivations"].as_array().into_iter().flatten() { writeln!( out, - "Function {} ({}): {}", + "Derivation {} ({}): {}", function["id"].as_str().unwrap_or("unknown"), function["interface"].as_str().unwrap_or("unknown"), function["digest"].as_str().unwrap_or("unknown") @@ -800,9 +801,9 @@ acceptances: let compilation = report .diagnostics() .iter() - .find(|diagnostic| diagnostic.code == "evidence.project.function-compile") + .find(|diagnostic| diagnostic.code == "evidence.project.derivation-compile") .expect("the Function compilation error is retained"); - assert_eq!(compilation.path, "/functions/derive-adult-status"); + assert_eq!(compilation.path, "/derivations/derive-adult-status"); let compilation_source = compilation.source.as_ref().expect("placed error"); assert_eq!(compilation_source.file, project_file.to_string_lossy()); assert_eq!( @@ -1000,11 +1001,11 @@ acceptances: assert_eq!(report.warning_count(), 100); assert_eq!( report.diagnostics()[0].code, - "evidence.project.function-compile" + "evidence.project.derivation-compile" ); assert_eq!( report.diagnostics()[0].path, - "/functions/derive-adult-status" + "/derivations/derive-adult-status" ); assert_eq!( report.diagnostics()[0].source.as_ref().unwrap().file, @@ -1019,14 +1020,14 @@ acceptances: let refused = refused_check_report(temporary.path(), None, report); let json = serde_json::to_string(&refused).unwrap(); - assert!(json.contains("evidence.project.function-compile")); - assert!(json.contains("evidence.project.duplicate-function-label")); + assert!(json.contains("evidence.project.derivation-compile")); + assert!(json.contains("evidence.project.duplicate-derivation-label")); assert!(!json.contains("Indistinguishable Function label")); let mut human = Vec::new(); render_human(&refused, report, &mut human).unwrap(); let human = String::from_utf8(human).unwrap(); - assert!(human.contains("evidence.project.function-compile")); - assert!(human.contains("evidence.project.duplicate-function-label")); + assert!(human.contains("evidence.project.derivation-compile")); + assert!(human.contains("evidence.project.duplicate-derivation-label")); assert!(!human.contains("Indistinguishable Function label")); } #[test] @@ -1064,7 +1065,7 @@ acceptances: .iter() .find(|diagnostic| diagnostic.code == "evidence.project.asset-path") .expect("the missing asset is refused"); - assert_eq!(asset.path, "/functions/derive-adult-status/source"); + assert_eq!(asset.path, "/derivations/derive-adult-status/source"); let asset_source = asset.source.as_ref().expect("placed asset refusal"); assert_eq!(asset_source.file, project_file.to_string_lossy()); assert_eq!( @@ -1140,7 +1141,7 @@ acceptances: "id":"eligible", "requirement":"urn:example:eligible", "acquisition":{"source":"records-search"}, - "derive":{"function":"derive-eligible"}, + "derive":{"derivation":"derive-eligible"}, "outputs":{"eligible":{"type":"boolean"},"reason":{"type":"string"}}, "grantCeiling":{"authorities":["organizational"]} }, @@ -1148,7 +1149,7 @@ acceptances: "id":"income", "requirement":"urn:example:income", "acquisition":{"source":"income-record"}, - "derive":{"function":"derive-income"}, + "derive":{"derivation":"derive-income"}, "outputs":{"income":{"type":"integer"}}, "grantCeiling":{"authorities":["organizational"]} }, @@ -1156,7 +1157,7 @@ acceptances: "id":"residence", "requirement":"urn:example:residence", "acquisition":{"source":"residence-record"}, - "derive":{"function":"derive-residence"}, + "derive":{"derivation":"derive-residence"}, "outputs":{"resident":{"type":"boolean"}}, "grantCeiling":{"authorities":["organizational"]} } @@ -1199,7 +1200,7 @@ acceptances: "facts":{"type":"object","properties":{"draft-id":{"type":"string"}}} } ], - "functions":[{"id":"derive-eligible","interface":"assertion-derive/v1","digest":"sha256:reviewed","callSites":["/assertionDefinitions/eligible/derive"],"bindings":{},"capabilities":["declared-outputs"]}], + "derivations":[{"id":"derive-eligible","interface":"assertion-derive/v1","digest":"sha256:reviewed","callSites":["/assertionDefinitions/eligible/derive"],"bindings":{},"capabilities":["declared-outputs"]}], "authority":{"authorityRevision":"sha256:active"} }); let mut output = Vec::new(); @@ -1223,13 +1224,13 @@ acceptances: "Source income-record: pack benefits-register@1; route income-record; connection benefits-api" )); assert!(output.contains("Facts: income (integer)")); - assert!(output.contains("Derive: Function derive-eligible")); + assert!(output.contains("Derivation: derive-eligible")); assert!(output.contains("Outputs: eligible, reason")); assert!(output.contains("Sources not referenced by definitions:")); assert!(output.contains( "Source draft-source: pack draft-register@1; route draft-record; connection draft-api" )); - assert!(output.contains("Function derive-eligible")); + assert!(output.contains("Derivation derive-eligible")); assert!(output.contains("authorityRevision")); assert!(!output.contains("Prepare:"), "{output}"); assert!(!output.contains("extract:"), "{output}"); diff --git a/crates/registry-evidencectl/src/lib.rs b/crates/registry-evidencectl/src/lib.rs index ad4fd9d7f4..c3cb7a39aa 100644 --- a/crates/registry-evidencectl/src/lib.rs +++ b/crates/registry-evidencectl/src/lib.rs @@ -195,14 +195,17 @@ struct CheckArgs { /// Check one tooling file on its own, offline: a client profile, reviewed /// contracts, a ThunderID task connection or session file, a source-import /// baseline or journal, a source resolution file, or a source export manifest. - #[arg(long, conflicts_with_all = ["project", "target", "production"])] + #[arg(long, conflicts_with_all = ["project", "target", "production", "require_deployment_closure"])] file: Option, /// Explicit deployment target whose governance and runtime structure are checked. #[arg(long)] target: Option, - /// Require a production or evidence-grade target and complete deployment closure. Requires --target. - #[arg(long, requires = "target")] + /// Compatibility shorthand for production posture and deployment closure. + #[arg(long, requires = "target", hide = true)] production: bool, + /// Require a complete production or evidence-grade target. Requires --target and production posture. + #[arg(long, requires = "target")] + require_deployment_closure: bool, /// Exit 1 when a warning is reported. #[arg(long)] deny_warnings: bool, @@ -634,6 +637,19 @@ fn run_entry() -> ExitCode { } }; let posture = declared.unwrap_or(DEFAULT_POSTURE); + if matches!(&cli.command, Command::Check(args) if args.require_deployment_closure) + && posture.posture != registry_platform_config::Posture::Production + { + let report = + registry_platform_yaml::Report::new(vec![registry_platform_yaml::Diagnostic::error( + "platform.posture.conflict", + "", + "--require-deployment-closure requires production posture", + "Declare production posture or omit --require-deployment-closure.", + )]); + write_report_failure(&command_path, report::USAGE_EXIT, &report, format, None); + return ExitCode::from(report::USAGE_EXIT); + } let result = match cli.command { Command::Api(args) => { if format_explicit { @@ -1536,7 +1552,7 @@ fn run_check_command( let checked = check::check( project, args.target.as_deref(), - args.production, + args.require_deployment_closure || args.production, args.deny_warnings, declared, ); diff --git a/crates/registry-evidencectl/src/normalized.rs b/crates/registry-evidencectl/src/normalized.rs index daa9f0a5f0..74da44f8b3 100644 --- a/crates/registry-evidencectl/src/normalized.rs +++ b/crates/registry-evidencectl/src/normalized.rs @@ -32,10 +32,10 @@ fn read_decoded(root: &Path) -> Result<(Decoded, BTreeMap Result<(Decoded, BTreeMap registry_evidence_authoring::layout::MAX_DERIVATION_BYTES as usize { - bail!("Function exceeds the authored script size limit"); + bail!("Derivation exceeds the authored script size limit"); } scripts.insert( function.source.clone(), - String::from_utf8(bytes).context("Function asset must be UTF-8")?, + String::from_utf8(bytes).context("Derivation asset must be UTF-8")?, ); } for source in decoded.value.sources.values() { @@ -422,10 +422,10 @@ pub(crate) fn inspect(root: &Path, target: Option<&Path>, command: &str) -> Resu for function in &mut compiled.functions { let path = function["source"] .as_str() - .context("compiled Function source")?; + .context("compiled Derivation source")?; let script = authored::read_authored_file( &safe_asset(snapshot.root(), path)?, - "reviewed Function asset", + "reviewed Derivation asset", )?; function["digest"] = json!(registry_platform_config::sha256_uri(&script)); } @@ -479,7 +479,7 @@ pub(crate) fn inspect(root: &Path, target: Option<&Path>, command: &str) -> Resu report: crate::report::success( command, "complete", - json!({"project":root,"target":target.as_deref(),"proof":"authoring","diagnostics":diagnostics.to_json_value(),"projectPresentation":{"id":project.project.id,"version":project.project.version,"label":project.project.label,"description":project.project.description},"lookups":project.selector_profiles,"capabilityCeilings":{"maximumHolderBoundBatchSize":project.maximum_holder_bound_batch_size},"assertionDefinitions":definitions,"sources":project.sources.iter().map(|(id,source)| json!({"id":id,"label":source.label,"description":source.description,"pack":source.pack,"route":source.route,"connection":source.connection,"inputs":source.inputs,"acquisitionPosture":source.acquisition_posture,"projection":source.projection.as_ref().map(|projection| json!({"source":projection.source,"entrypoint":projection.entrypoint,"schema":projection.schema,"digest":compiled.model["sources"][id.as_str()]["projection"]["digest"]})),"facts":compiled.source_facts.get(id.as_str())})).collect::>(),"functions":compiled.functions,"authority":authority,"offline":true,"networkAccess":false,"secretResolution":false,"fixtureExecution":false}), + json!({"project":root,"target":target.as_deref(),"proof":"authoring","diagnostics":diagnostics.to_json_value(),"projectPresentation":{"id":project.project.id,"version":project.project.version,"label":project.project.label,"description":project.project.description},"lookups":project.selector_profiles,"capabilityCeilings":{"maximumHolderBoundBatchSize":project.maximum_holder_bound_batch_size},"assertionDefinitions":definitions,"sources":project.sources.iter().map(|(id,source)| json!({"id":id,"label":source.label,"description":source.description,"pack":source.pack,"route":source.route,"connection":source.connection,"inputs":source.inputs,"acquisitionPosture":source.acquisition_posture,"projection":source.projection.as_ref().map(|projection| json!({"source":projection.source,"entrypoint":projection.entrypoint,"schema":projection.schema,"digest":compiled.model["sources"][id.as_str()]["projection"]["digest"]})),"facts":compiled.source_facts.get(id.as_str())})).collect::>(),"derivations":compiled.functions,"authority":authority,"offline":true,"networkAccess":false,"secretResolution":false,"fixtureExecution":false}), ), diagnostics, }) @@ -983,9 +983,9 @@ fn filesystem_pack_closure_reaches_the_checked_compiler_without_conversion() { let project: EvidenceProject = serde_json::from_value(json!({ "project":{"id":"pack-bridge","version":"1"}, "lookups":{"record-by-id":{"maximumAggregateBytes":64,"fields":{"record-id":{"type":"string","minimumBytes":1,"maximumBytes":64}}}}, - "functions":{"derive-record":{"interface":"assertion-derive/v1","source":"functions/derive.rhai"}}, + "derivations":{"derive-record":{"interface":"assertion-derive/v1","source":"functions/derive.rhai"}}, "sources":{"record":{"pack":{"id":"synthetic-register","version":"0.1.0"},"route":"evidence-record","connection":"register","inputs":{"recordId":{"selector":{"role":"subject","profile":"record-by-id","field":"record-id"}}},"acquisitionPosture":"record-transformed"}}, - "assertionDefinitions":{"record-match":{"question":"Does the record match?","semantics":{"requirement":"urn:example:requirement:record","kind":"criterion","evidenceType":"urn:example:evidence:record","referenceFrameworks":["urn:example:framework:record"]},"purpose":"record-check","grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:consumer"]},"subjects":[{"role":"subject","selectors":["record-by-id"]}],"acquisition":{"source":"record"},"derive":{"function":"derive-record"},"outputs":{"matched":{"concept":"urn:example:concept:matched","type":"boolean"}},"validitySeconds":300,"subjectBinding":"audience-scoped","representations":["signed-jws"]}} + "assertionDefinitions":{"record-match":{"question":"Does the record match?","semantics":{"requirement":"urn:example:requirement:record","kind":"criterion","evidenceType":"urn:example:evidence:record","referenceFrameworks":["urn:example:framework:record"]},"purpose":"record-check","grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:consumer"]},"subjects":[{"role":"subject","selectors":["record-by-id"]}],"acquisition":{"source":"record"},"derive":{"derivation":"derive-record"},"outputs":{"matched":{"concept":"urn:example:concept:matched","type":"boolean"}},"validitySeconds":300,"subjectBinding":"audience-scoped","representations":["signed-jws"]}} })) .unwrap(); let scripts = BTreeMap::from([( @@ -1030,3 +1030,24 @@ fn inspection_reports_the_governed_source_projection() { assert!(output.contains("projections/person-facts.rhai")); assert!(output.contains("schemas/person-facts.json")); } + +#[cfg(test)] +#[test] +fn inspection_reports_the_canonical_derivation_names() { + let root = + Path::new(env!("CARGO_MANIFEST_DIR")).join("../../products/evidence/examples/standalone"); + let checked = inspect(&root, None, "explain").unwrap(); + assert!(checked.report.get("functions").is_none()); + let derivations = checked.report["derivations"].as_array().unwrap(); + assert!(derivations.iter().any(|entry| { + entry["id"] == "derive-adult-status" && entry["interface"] == "assertion-derive/v1" + })); + let adult_status = checked.report["assertionDefinitions"] + .as_array() + .unwrap() + .iter() + .find(|entry| entry["id"] == "adult-status") + .unwrap(); + assert_eq!(adult_status["derive"]["derivation"], "derive-adult-status"); + assert!(adult_status["derive"].get("function").is_none()); +} diff --git a/crates/registry-evidencectl/src/scaffold.rs b/crates/registry-evidencectl/src/scaffold.rs index ab6e5f90da..920c40b372 100644 --- a/crates/registry-evidencectl/src/scaffold.rs +++ b/crates/registry-evidencectl/src/scaffold.rs @@ -268,7 +268,7 @@ fn create( args.directory.join("evidence.yaml").display() ); println!( - " functions: {}", + " derivation assets: {}", args.directory.join("functions").display() ); println!( @@ -668,7 +668,7 @@ fn write_normalized_starter(root: &Path, source: AuthoringSource<'_>) -> anyhow: "kind": registry_evidence_authoring::project::PROJECT_KIND, "project":{"id":"local-evidence","version":"1"}, "lookups":{"record-reference":{"maximumAggregateBytes":64,"fields":{"record-reference":{"type":"string","minimumBytes":1,"maximumBytes":64}}}}, - "functions":{"derive-record-status":{"interface":"assertion-derive/v1","source":"functions/derive-record-status.rhai"}}, + "derivations":{"derive-record-status":{"interface":"assertion-derive/v1","source":"functions/derive-record-status.rhai"}}, "sources":{"record-status":source_document}, "assertionDefinitions":{"record-status":{ "question":"Does the selected synthetic record satisfy the reviewed condition?", @@ -677,7 +677,7 @@ fn write_normalized_starter(root: &Path, source: AuthoringSource<'_>) -> anyhow: "grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:local-evidence"]}, "subjects":[{"role":"subject","selectors":["record-reference"]}], "acquisition":{"source":"record-status"}, - "derive":{"function":"derive-record-status"}, + "derive":{"derivation":"derive-record-status"}, "outputs":{"satisfied":{"concept":"urn:example:concept:record-status:v1","type":"boolean"}}, "validitySeconds":300, "subjectBinding":"audience-scoped", diff --git a/crates/registry-evidencectl/src/source_cli.rs b/crates/registry-evidencectl/src/source_cli.rs index 1977fb8061..0bc6f3fee8 100644 --- a/crates/registry-evidencectl/src/source_cli.rs +++ b/crates/registry-evidencectl/src/source_cli.rs @@ -41,7 +41,7 @@ pub(crate) struct SourceImportArgs { /// Evidence project directory; defaults to the current directory. /// /// This command needs an editable project containing evidence.yaml and its - /// named Function assets. + /// named Derivation assets. #[arg(long, default_value = ".")] pub(crate) project: PathBuf, /// Closed versioned file choosing keep, adopt, or an explicitly resolved file. @@ -62,7 +62,7 @@ pub(crate) struct SourceDetachArgs { /// Evidence project directory; defaults to the current directory. /// /// This command needs an editable project containing evidence.yaml and its - /// named Function assets. + /// named Derivation assets. #[arg(value_name = "PROJECT", default_value = ".")] pub(crate) project: PathBuf, } @@ -457,7 +457,7 @@ lookups: baseline-reference: maximumAggregateBytes: 64 fields: {value: {type: string, minimumBytes: 1, maximumBytes: 64}} -functions: +derivations: baseline-derive: {interface: assertion-derive/v1, source: functions/baseline-derive.rhai} sources: baseline: @@ -475,7 +475,7 @@ assertionDefinitions: grantCeiling: {authorities: [organizational], actorKinds: [service], valueOrigins: [request], audiences: ["urn:test:audience"]} subjects: [{role: subject, selectors: [baseline-reference]}] acquisition: {source: baseline} - derive: {function: baseline-derive} + derive: {derivation: baseline-derive} outputs: {matched: {concept: "urn:test:concept:matched", type: boolean}} validitySeconds: 60 subjectBinding: audience-scoped @@ -604,7 +604,7 @@ assertionDefinitions: .expect("scan EvidenceProject") .expect("EvidenceProject document") .to_json_value(); - project["functions"]["record-active-derive"] = json!({"interface":"assertion-derive/v1","source":"functions/record-active-derive.rhai"}); + project["derivations"]["record-active-derive"] = json!({"interface":"assertion-derive/v1","source":"functions/record-active-derive.rhai"}); project["assertionDefinitions"]["record-active"] = json!({ "question":"Is the record active?", "semantics":{"requirement":"urn:test:record-active","kind":"criterion","evidenceType":"urn:test:evidence:record-active","referenceFrameworks":["urn:test:framework"]}, @@ -612,7 +612,7 @@ assertionDefinitions: "grantCeiling":{"authorities":["organizational"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:test:audience"]}, "subjects":[{"role":"subject","selectors":["record-code"]}], "acquisition":{"source":"lookup"}, - "derive":{"function":"record-active-derive"}, + "derive":{"derivation":"record-active-derive"}, "outputs":{"active":{"concept":"urn:test:concept:active","type":"boolean"}}, "validitySeconds":60, "subjectBinding":"audience-scoped", diff --git a/crates/registry-evidencectl/src/source_import/files.rs b/crates/registry-evidencectl/src/source_import/files.rs index b9de5f1897..7ad4c56782 100644 --- a/crates/registry-evidencectl/src/source_import/files.rs +++ b/crates/registry-evidencectl/src/source_import/files.rs @@ -238,7 +238,7 @@ pub(super) fn artifact_path(value: &str) -> Result<()> { "functions" => ".rhai", "source-fragments" | "selector-fragments" => ".json", _ => bail!( - "source imports may contain only bounded source fragments, Functions, or verified public export artifacts" + "source imports may contain only bounded source fragments, Derivation assets, or verified public export artifacts" ), }; let stem = name diff --git a/crates/registry-evidencectl/src/source_import/mod.rs b/crates/registry-evidencectl/src/source_import/mod.rs index 116a57b1fb..201c94f911 100644 --- a/crates/registry-evidencectl/src/source_import/mod.rs +++ b/crates/registry-evidencectl/src/source_import/mod.rs @@ -603,13 +603,14 @@ fn current_artifact( else { return Ok(None); }; + // Virtual fragments in import state retain their existing key. let function_ids = template["functions"] .as_array() - .context("normalized Functions")? + .context("normalized Derivations")? .iter() .filter_map(|function| function["id"].as_str()) .collect::>(); - // A Source fragment lists its Functions as declarations that carry their + // A Source fragment lists its Derivations as declarations that carry their // id; the project keys the same declarations by that id. let functions = decoded .value @@ -620,7 +621,7 @@ fn current_artifact( let mut value = serde_json::to_value(function)?; value .as_object_mut() - .context("a Function declaration is an object")? + .context("a Derivation declaration is an object")? .insert("id".to_owned(), json!(id)); Ok(value) }) @@ -658,9 +659,9 @@ fn merge_normalized_fragments( .and_then(|value| value.as_object().cloned()) .context("EvidenceProject lookups")?; let mut functions = object - .remove("functions") + .remove("derivations") .and_then(|value| value.as_object().cloned()) - .context("EvidenceProject Functions")?; + .context("EvidenceProject derivations")?; let mut sources = object .remove("sources") .and_then(|value| value.as_object().cloned()) @@ -719,21 +720,21 @@ fn merge_normalized_fragments( .context("normalized sourceId")?; for function in fragment["functions"] .as_array() - .context("normalized Functions")? + .context("normalized Derivations")? { let mut function = function .as_object() - .context("a fragment Function is an object")? + .context("a fragment Derivation is an object")? .clone(); let id = function .remove("id") .and_then(|id| id.as_str().map(str::to_owned)) - .context("a fragment Function names its id")?; - // `functions` holds the project's own Functions and those of + .context("a fragment Derivation names its id")?; + // `derivations` holds the project's own Derivations and those of // the fragments merged so far; a repeated id would replace one. if functions.contains_key(&id) { bail!( - "source `{source_id}` declares Function `{id}`, which the project or another imported source already declares; give each Function a distinct id" + "source `{source_id}` declares Derivation `{id}`, which the project or another imported source already declares; give each Derivation a distinct id" ); } functions.insert(id, Value::Object(function)); @@ -742,7 +743,7 @@ fn merge_normalized_fragments( } } object.insert("lookups".to_owned(), Value::Object(selectors)); - object.insert("functions".to_owned(), Value::Object(functions)); + object.insert("derivations".to_owned(), Value::Object(functions)); object.insert("sources".to_owned(), Value::Object(sources)); object.insert( "apiVersion".to_owned(), @@ -757,7 +758,7 @@ fn merge_normalized_fragments( &document, [ ("/lookups", &value["lookups"]), - ("/functions", &value["functions"]), + ("/derivations", &value["derivations"]), ("/sources", &value["sources"]), ], )?; diff --git a/crates/registry-evidencectl/src/source_import/tests.rs b/crates/registry-evidencectl/src/source_import/tests.rs index 4bbe189c8e..fbf06b6cc5 100644 --- a/crates/registry-evidencectl/src/source_import/tests.rs +++ b/crates/registry-evidencectl/src/source_import/tests.rs @@ -24,7 +24,7 @@ lookups: other-reference: maximumAggregateBytes: 64 fields: {value: {type: string, minimumBytes: 1, maximumBytes: 64}} -functions: +derivations: other-derive: interface: assertion-derive/v1 source: functions/other-derive.rhai @@ -45,7 +45,7 @@ assertionDefinitions: grantCeiling: {authorities: [organizational], actorKinds: [service], valueOrigins: [request], audiences: ["urn:example:audience:test"]} subjects: [{role: subject, selectors: [other-reference]}] acquisition: {source: other} - derive: {function: other-derive} + derive: {derivation: other-derive} outputs: {matched: {concept: "urn:example:concept:matched", type: boolean}} validitySeconds: 60 subjectBinding: audience-scoped @@ -481,7 +481,7 @@ fn flow_and_empty_project_collections_import_without_partial_entries() { "\n {}", ] { let project = format!( - "apiVersion: {}\nkind: {}\nfunctions: {functions}\n# Preserve this comment and the unowned member.\nuntouched: true\n", + "apiVersion: {}\nkind: {}\nderivations: {functions}\n# Preserve this comment and the unowned member.\nuntouched: true\n", registry_evidence_authoring::project::PROJECT_API_VERSION, registry_evidence_authoring::project::PROJECT_KIND, ); @@ -498,7 +498,8 @@ fn flow_and_empty_project_collections_import_without_partial_entries() { "source": "functions/imported-derive.rhai" }}); let replaced = - replace_project_sections(&project, &document, [("/functions", &replacement)]).unwrap(); + replace_project_sections(&project, &document, [("/derivations", &replacement)]) + .unwrap(); registry_platform_yaml::Reader::new("evidence.yaml") .read( replaced.as_bytes(), diff --git a/crates/registry-evidencectl/src/source_mock/mod.rs b/crates/registry-evidencectl/src/source_mock/mod.rs index f62c931535..c9bbaf21aa 100644 --- a/crates/registry-evidencectl/src/source_mock/mod.rs +++ b/crates/registry-evidencectl/src/source_mock/mod.rs @@ -73,7 +73,7 @@ pub struct ServeArgs { /// Evidence project directory; defaults to the current directory. /// /// This command needs an editable project containing evidence.yaml and its - /// named Function assets. + /// named Derivation assets. #[arg(value_name = "PROJECT", conflicts_with_all = ["openapi", "config"])] project: Option, @@ -124,7 +124,7 @@ pub struct GenerateArgs { /// Evidence project directory; defaults to the current directory. /// /// This command needs an editable project containing evidence.yaml and its - /// named Function assets. + /// named Derivation assets. #[arg(value_name = "PROJECT", conflicts_with_all = ["openapi", "config"])] project: Option, @@ -162,7 +162,7 @@ pub struct CheckArgs { /// Evidence project directory; defaults to the current directory. /// /// This command needs an editable project containing evidence.yaml and its - /// named Function assets. + /// named Derivation assets. #[arg(value_name = "PROJECT", conflicts_with = "config")] project: Option, /// Exit 1 when a warning is reported. diff --git a/crates/registry-evidencectl/src/suggest/emit.rs b/crates/registry-evidencectl/src/suggest/emit.rs index d57bb39798..e6829df79a 100644 --- a/crates/registry-evidencectl/src/suggest/emit.rs +++ b/crates/registry-evidencectl/src/suggest/emit.rs @@ -578,7 +578,7 @@ fn validate_mapped_request_path(inputs: &EmitInputs) -> Result<()> { Ok(()) } -/// Write every named Function asset under `/`, creating parent +/// Write the draft assets under `/`, creating parent /// directories as needed. Refuses to overwrite any existing file: if any /// target already exists, nothing is written and the error lists every /// collision so the caller can resolve them all at once. diff --git a/crates/registry-evidencectl/src/suggest/mod.rs b/crates/registry-evidencectl/src/suggest/mod.rs index 7ec71886f3..da695d228d 100644 --- a/crates/registry-evidencectl/src/suggest/mod.rs +++ b/crates/registry-evidencectl/src/suggest/mod.rs @@ -106,7 +106,7 @@ pub struct SuggestArgs { /// Evidence project directory; the draft is printed when this is absent. /// /// This command needs an editable project containing evidence.yaml and its - /// named Function assets. + /// named Derivation assets. #[arg(value_name = "PROJECT")] pub project: Option, } @@ -599,7 +599,7 @@ fn parse_request_target(raw: &str) -> Result { "path" => Ok(RequestTarget::Path(value.to_owned())), "query" => Ok(RequestTarget::Query(value.to_owned())), "body" => { parse_body_pointer(value)?; Ok(RequestTarget::Body(value.to_owned())) } - "header" | "cookie" | "auth" | "authentication" => bail!("request target `{channel}:` is unsupported: authentication is target configuration, and generated Functions cannot set headers or cookies"), + "header" | "cookie" | "auth" | "authentication" => bail!("request target `{channel}:` is unsupported: suggestions map selectors to path, query, or body members, and authentication is target configuration"), _ => bail!("request target `{raw}` uses unknown channel `{channel}`; use path:, query:, or body:"), } } @@ -842,7 +842,7 @@ fn validate_selector_domain( ] { if schema.get(keyword).is_some() { bail!( - "request target `{}` declares `{keyword}`, so the mapped selector domain cannot be proven compatible without a reviewed Function or narrower selector profile", + "request target `{}` declares `{keyword}`, so the mapped selector domain cannot be proven compatible without a reviewed Adapter pack source route or narrower selector profile", display_target(target) ); } diff --git a/crates/registry-evidencectl/templates/openapi/README.md b/crates/registry-evidencectl/templates/openapi/README.md index 1e1b77df93..24f9f75bd1 100644 --- a/crates/registry-evidencectl/templates/openapi/README.md +++ b/crates/registry-evidencectl/templates/openapi/README.md @@ -6,10 +6,10 @@ | File | What it holds | | --- | --- | -| `evidence.yaml` | The single `EvidenceProject` with stable IDs for selector profiles, derive Functions, Source bindings, AssertionDefinitions, and outputs. | +| `evidence.yaml` | The single `EvidenceProject` with stable IDs for selector profiles, Derivations, Source bindings, AssertionDefinitions, and outputs. | | `source.openapi.yaml` | The retained API description used by `evidencectl source suggest`. | | `adapter-packs/` | Pinned source routes, schemas and source preparation or extraction programs. | -| `functions/` | Assertion derive Function assets referenced by `evidence.yaml`. | +| `functions/` | Rhai Derivation assets referenced by `evidence.yaml`. | | `fixtures/` | Synthetic offline cases for `evidencectl test`. | | `local-target.yaml` | The disposable normalized local target. | | `dev-authority.yaml` | Complete local AccessProfiles and grants. | diff --git a/crates/registry-evidencectl/templates/sqlite-extract/README.md b/crates/registry-evidencectl/templates/sqlite-extract/README.md index e2ef6efded..bf8f617e23 100644 --- a/crates/registry-evidencectl/templates/sqlite-extract/README.md +++ b/crates/registry-evidencectl/templates/sqlite-extract/README.md @@ -6,9 +6,9 @@ | File | What it holds | | --- | --- | -| `evidence.yaml` | The single `EvidenceProject`: stable selector profile, derive Function, Source binding, AssertionDefinition, output, and grant-ceiling IDs. | +| `evidence.yaml` | The single `EvidenceProject` with stable selector profile, Derivation, Source binding, AssertionDefinition, output, and grant-ceiling IDs. | | `adapter-packs/starter-source/` | The pinned SQLite route, fixed statement, closed schemas, and extraction program. Caller values bind as parameters and never become statement text. | -| `functions/derive-record-status.rhai` | The `assertion-derive/v1` Function that maps facts to declared outputs. | +| `functions/derive-record-status.rhai` | The `assertion-derive/v1` Derivation that maps facts to declared outputs. | | `fixtures/record-status.yaml` | Synthetic offline cases for `evidencectl test`. | | `local-target.yaml` | A disposable `EvidenceTarget` with local service, OIDC, source connection, signer, limits, and generated paths. | | `dev-authority.yaml` | Complete local AccessProfiles and grants bounded by the AssertionDefinition ceilings. | @@ -21,7 +21,7 @@ evidencectl check . --target local-target.yaml evidencectl test . --target local-target.yaml --explain ``` -Review the project, adapter pack, derive Function, fixtures, target, and authority together. Source acquisition produces private facts only. An AssertionDefinition grants no downstream write or review authority. +Review the project, adapter pack, Derivation, fixtures, target, and authority together. Source acquisition produces private facts only. An AssertionDefinition grants no downstream write or review authority. ## Documentation diff --git a/crates/registry-evidencectl/templates/starter/README.md b/crates/registry-evidencectl/templates/starter/README.md index 40ed863791..d12dafabc4 100644 --- a/crates/registry-evidencectl/templates/starter/README.md +++ b/crates/registry-evidencectl/templates/starter/README.md @@ -7,7 +7,7 @@ | File | What it holds | | --- | --- | | `evidence.yaml` | The single normalized `EvidenceProject`. | -| `functions/` | Named preparation, extraction, and derivation Functions. | +| `functions/` | Rhai Derivation assets. | | `queries/` | Fixed statements used by Sources when needed. | | `fixtures/` | Synthetic offline cases. | | `codelists/` | Bounded static lookup data when supplied. | diff --git a/crates/registry-evidencectl/tests/explain_sources.rs b/crates/registry-evidencectl/tests/explain_sources.rs index 416d7008f3..579aadd3ad 100644 --- a/crates/registry-evidencectl/tests/explain_sources.rs +++ b/crates/registry-evidencectl/tests/explain_sources.rs @@ -85,7 +85,7 @@ fn explain_connects_a_real_definition_to_its_source_operation_facts_and_output() assert!(stdout .contains("Inputs: coverageId <- selector coverage-record@coverage-by-id.coverage_id")); assert!(stdout.contains("Facts: beneficiary-reference (string), status (string)")); - assert!(stdout.contains("Derive: Function derive-coverage-status")); + assert!(stdout.contains("Derivation: derive-coverage-status")); assert!(stdout.contains("Outputs: coverage-record-reports-active")); } diff --git a/crates/registry-evidencectl/tests/production_build.rs b/crates/registry-evidencectl/tests/production_build.rs index 31038155bc..933bf685d1 100644 --- a/crates/registry-evidencectl/tests/production_build.rs +++ b/crates/registry-evidencectl/tests/production_build.rs @@ -1167,7 +1167,7 @@ fn production_check_refuses_local_assurance_without_creating_local_secrets() { String::from_utf8_lossy(&output.stderr) ); assert!( - diagnostic.contains("--production requires production or evidence-grade"), + diagnostic.contains("deployment closure requires production or evidence-grade"), "{diagnostic}" ); if format == "json" { @@ -1190,12 +1190,46 @@ fn production_check_refuses_local_assurance_without_creating_local_secrets() { fixture.assert_no_staging_residue(); } +#[test] +fn deployment_closure_matches_the_legacy_option_and_requires_production() { + let fixture = Fixture::new(); + fixture.use_default_local_signer(); + let legacy = fixture.check_production("json"); + let explicit = fixture + .check_command("json", &fixture.target) + .args(["--posture", "production", "--require-deployment-closure"]) + .output() + .unwrap(); + assert_eq!(explicit.status.code(), Some(1)); + assert_eq!(explicit.status, legacy.status); + assert_eq!(explicit.stdout, legacy.stdout); + assert!(explicit.stderr.is_empty()); + let refusal: Value = serde_json::from_slice(&explicit.stdout).unwrap(); + assert_eq!( + refusal["diagnostics"][0]["code"], + "evidence.target.production-assurance-required" + ); + + let development = fixture + .check_command("json", &fixture.target) + .args(["--posture", "development", "--require-deployment-closure"]) + .output() + .unwrap(); + assert_eq!(development.status.code(), Some(2)); + let refusal: Value = serde_json::from_slice(&development.stdout).unwrap(); + assert_eq!( + refusal["diagnostics"][0]["code"], + "platform.posture.conflict" + ); + assert!(fixture.invocations().is_empty()); +} + #[test] fn unsafe_function_sources_refuse_inspection_before_missing_dependencies() { for (source, expected_code) in [ ( "missing/../outside.rhai", - "evidence.project.function-source", + "evidence.project.derivation-source", ), ("functions/linked.rhai", "evidence.project.asset-path"), ] { @@ -1206,8 +1240,8 @@ fn unsafe_function_sources_refuse_inspection_before_missing_dependencies() { symlink(&outside, fixture.project.join(source)).expect("linked Function asset"); } edit_json(&fixture.project.join("evidence.yaml"), |project| { - project["functions"]["answer"]["source"] = json!(source); - project["functions"]["missing"] = + project["derivations"]["answer"]["source"] = json!(source); + project["derivations"]["missing"] = json!({"interface":"assertion-derive/v1","source":"functions/missing.rhai"}); }); let project_before = fs::read(fixture.project.join("evidence.yaml")).unwrap(); @@ -1231,7 +1265,7 @@ fn unsafe_function_sources_refuse_inspection_before_missing_dependencies() { .iter() .any(|diagnostic| { diagnostic["code"] == expected_code - && diagnostic["path"] == "/functions/answer/source" + && diagnostic["path"] == "/derivations/answer/source" && diagnostic["source"]["file"] .as_str() .is_some_and(|file| file.ends_with("evidence.yaml")) @@ -1861,20 +1895,27 @@ impl Fixture { } fn check_production_with(&self, format: &str, target: &Path) -> Output { - Command::new(env!("CARGO_BIN_EXE_evidencectl")) + self.check_command(format, target) + .arg("--production") + .output() + .expect("evidencectl check starts") + } + + fn check_command(&self, format: &str, target: &Path) -> Command { + let mut command = Command::new(env!("CARGO_BIN_EXE_evidencectl")); + command .args(["--format", format, "check"]) .arg(&self.project) .arg("--target") .arg(target) - .arg("--production") + .env_remove("REGISTRY_STACK_POSTURE") .env("EVIDENCE_BIN", &self.evidence) .env("FAKE_EVIDENCE_LOG", &self.log) .env( "FAKE_EVIDENCE_VERSION", registry_platform_buildinfo::DISPLAY_VERSION, - ) - .output() - .expect("evidencectl check starts") + ); + command } fn build_with(&self, project: &Path, target: &Path, output: &Path) -> Output { @@ -2239,7 +2280,7 @@ fn project_document() -> Value { "apiVersion":"id.registrystack.org/formats/evidence/project/v1alpha1", "kind":"EvidenceProject", "project":{"id":"production-fixture","version":"1"}, "lookups":{"subject-reference-v1":{"maximumAggregateBytes":128,"fields":{"reference":{"type":"string","minimumBytes":1,"maximumBytes":128}}}}, - "functions":{ + "derivations":{ "answer":{"interface":"assertion-derive/v1","source":"functions/answer.rhai"} }, "sources":{"registry":{ @@ -2259,7 +2300,7 @@ fn definition_document(id: &str) -> Value { "purpose":"eligibility", "grantCeiling":{"authorities":["statutory"],"actorKinds":["service"],"valueOrigins":["request"],"audiences":["urn:example:audience:relying"]}, "subjects":[{"role":"subject","selectors":["subject-reference-v1"]}], - "acquisition":{"source":"registry"},"derive":{"function":"answer"}, + "acquisition":{"source":"registry"},"derive":{"derivation":"answer"}, "outputs":{"allowed":{"concept":"urn:example:concepts:allowed","type":"boolean"}}, "validitySeconds":300,"observationTimezone":"UTC","subjectBinding":"audience-scoped","representations":["signed-jws"], "disclosureGuard":{"families":["urn:example:disclosure-families:allowed"]}, diff --git a/crates/registry-evidencectl/tests/production_handoff.rs b/crates/registry-evidencectl/tests/production_handoff.rs index f5c1074953..071c12b87f 100644 --- a/crates/registry-evidencectl/tests/production_handoff.rs +++ b/crates/registry-evidencectl/tests/production_handoff.rs @@ -991,7 +991,7 @@ impl Fixture { "kind":"EvidenceProject", "project":{"id":"production-handoff","version":"1"}, "lookups":{"person-reference-v1":{"maximumAggregateBytes":200,"fields":{"person-id":{"type":"string","minimumBytes":1,"maximumBytes":200}}}}, - "functions":{ + "derivations":{ "adult-status-derive":{"interface":"assertion-derive/v1","source":"functions/adult-status-derive.rhai"} }, "sources":{"people": source_binding( @@ -1149,7 +1149,7 @@ privacyExpectation: "immunization-summary-derive", "parent-relationship-derive", ] { - project["functions"][function] = json!({"interface":"assertion-derive/v1","source":format!("functions/{function}.rhai")}); + project["derivations"][function] = json!({"interface":"assertion-derive/v1","source":format!("functions/{function}.rhai")}); } project["sources"]["immunizations"] = source_binding( "immunizations", @@ -1933,7 +1933,7 @@ fn assertion_definition(input: AssertionDefinitionInput<'_>) -> Value { json!({"role":role, "selectors":[profile]}) }).collect::>(), "acquisition":{"source":source}, - "derive":{"function":derive}, + "derive":{"derivation":derive}, "outputs":{output:governed_output}, "validitySeconds":300, "subjectBinding":"audience-scoped", diff --git a/crates/registry-language-server/README.md b/crates/registry-language-server/README.md index b608881372..8f9c56acb4 100644 --- a/crates/registry-language-server/README.md +++ b/crates/registry-language-server/README.md @@ -42,23 +42,23 @@ Former question envelopes and inline operation sources are rejected. |---|---|---| | `assertionDefinitions` | acquisition `source` and `holderPresented.source` | named `sources` | | definitions and sources | lookup references | `lookups` | -| definitions | `derive.function` | an `assertion-derive/v1` named Function | -| sources | `prepare.function`, `extract.function` | a Function with the matching interface | -| named Functions | `source` | the contained Rhai function asset | +| definitions | `derive.derivation` | a named `assertion-derive/v1` Derivation | +| `derivations` | `source` | the contained Rhai asset | | definition outputs | `schema` | the contained schema asset | | definitions | `fixtures` | the contained fixture asset | | target authority grants | `definition`, subject `lookup` | project definitions and lookups | -| derivation function release entries | `output` | the calling definition's declared outputs | -| generated TypeScript and Python project types | definition and output names | the same normalized declarations | +| Derivation release entries | `output` | the calling definition's declared outputs | +| generated TypeScript and Python project types | Source, Derivation, definition and output names | the same normalized declarations | -Navigation, references, completion and hover use these indexed names. Function completion offers +Navigation, references, completion and hover use these indexed names. Derivation completion offers only the matching interface. Output names are scoped to the calling assertion definition; private facts never become output candidates. Generated files are recognized by the shared generator's -header and per-definition markers, at any contained `.ts` or `.py` path. +header and entry markers, at any contained `.ts` or `.py` path. `evidencectl types` emits +`DerivationBindings` with `evidence-derivation:` markers in both languages. -File completion enumerates bounded contained siblings with the same extension. No function or -generated code is executed. Missing assets are reported at their path references. Function -signature diagnostics use the shared pure authoring check. +File completion enumerates bounded contained siblings with the same extension. The language server +indexes Rhai and generated code without executing it. Missing assets are reported at their path +references. Derivation signature diagnostics use the shared pure authoring check. A value slot that holds no scalar has no semantic completion yet. Hover on a reference names its resolved declaration and project-relative file. Symbolic links, multiply linked files, paths outside @@ -73,7 +73,7 @@ symbols, completion, and hover for their modeled local authoring edges. | Product | Indexed relationships | |---|---| | BReg | Authored modules, record types and extensions, value types, fields including implicit `id`, selectors, constraints, read paths, record and project access profiles, Action inputs/plans/commit guards, Proposal permissions/attachments/review context, review authorities, datasets, vocabularies, and governed function/hook/SQL files. Module assets resolve relative to the module. | -| Coordinator | Local workflow types, named Functions and source assets, generated contract import aliases and asset paths, Operation aliases, Step names/edges and preceding-step reads, declared outcomes and Review outcome keys, fixture step and outcome references, event triggers, and whole-schema aliases at declared signature/input/output positions. | +| Coordinator | Local workflow types, named Transforms and source assets, generated contract import aliases and asset paths, Operation aliases, Step names/edges and preceding-step reads, declared outcomes and Review outcome keys, fixture step and outcome references, event triggers, and whole-schema aliases at declared signature/input/output positions. | | Casework | Queues, access profiles, teams, review policies with policy-scoped stages, outcomes and inline routing fields, trusted producers and completion hook destinations, read-only context providers and runtime deployment bindings, clocks, calendars and holiday sets, task templates, current fixtures, schema files, and development directory clients. Source namespaces remain opaque external names. | | Scheduling | Services/offerings/openings/holiday sets, local location/pool/window records, exception reopening targets scoped to location, and fixture offering names. | | Messaging | Providers, sender profiles, template identities and version-specific metadata files, access profiles, runtime providers, locale and part names and their Jinja body files, provider scripts, and fixed template schema/sample file symbols. | @@ -115,7 +115,7 @@ Most diagnostics this server publishes have severity `Error`. A warning the shar Other products diagnose their explicitly modeled local authoring relationships. Indexing-ceiling diagnostics explain the editor's operational budgets and do not claim compiler validation. Shared Evidence parser diagnostics keep their own codes, such as `config.unknown-key` and -`evidence.project.function-interface`. Missing asset diagnostics use `evidence.project.missing-*`. +`evidence.project.derivation-interface`. Missing asset diagnostics use `evidence.project.missing-*`. ## Discovery diff --git a/crates/registry-language-server/src/evidence/index.rs b/crates/registry-language-server/src/evidence/index.rs index 0afa6155f9..505e09e78e 100644 --- a/crates/registry-language-server/src/evidence/index.rs +++ b/crates/registry-language-server/src/evidence/index.rs @@ -11,7 +11,7 @@ use crate::{ }, yaml::{ParsedDocument, ScalarStyle, SourceMap, YamlScalar, YamlValue}, }; -use registry_evidence_authoring::{project, target}; +use registry_evidence_authoring::{formats::finding_code, project, target}; use std::{ collections::{BTreeMap, BTreeSet}, path::{Path, PathBuf}, @@ -77,7 +77,7 @@ pub(crate) fn build_index( &profile.key, ); } - for function in mapping(value.get("functions")) { + for function in mapping(value.get("derivations")) { let id = &function.key; let function = &function.value; builder.define( @@ -151,7 +151,7 @@ pub(crate) fn build_index( if let Some(function) = definition .value .get("derive") - .and_then(|x| x.get_scalar("function")) + .and_then(|x| x.get_scalar("derivation")) { derive_uses .entry(function.value.clone()) @@ -290,7 +290,7 @@ pub(crate) fn build_index( } } } - for function in mapping(value.get("functions")) { + for function in mapping(value.get("derivations")) { let id = &function.key; let Some(asset) = function.value.get_scalar("source") else { continue; @@ -316,7 +316,7 @@ pub(crate) fn build_index( path: root.join(&asset.value), range: DOCUMENT_START, severity: DiagnosticSeverity::ERROR, - code: Some(format!("evidence.function.{}", finding.code)), + code: Some(finding_code("derivation", finding.code)), message: bounded_message(&finding.message), }); } @@ -379,13 +379,18 @@ pub(crate) fn build_index( catalog_kind = None; continue; } - if line.contains("evidence-source: ") || line.contains("evidence-function: ") { + // Existing generated declarations still use the function marker. + let kind = if line.contains("evidence-source: ") { + Some(EvidenceKind::Source) + } else if line.contains("evidence-derivation: ") || line.contains("evidence-function: ") + { + Some(EvidenceKind::Function) + } else { + None + }; + if let Some(kind) = kind { scope = None; - catalog_kind = Some(if line.contains("evidence-source: ") { - EvidenceKind::Source - } else { - EvidenceKind::Function - }); + catalog_kind = Some(kind); continue; } if line.contains("assertionDefinitions =") || line.starts_with("ASSERTION_DEFINITIONS:") @@ -498,7 +503,7 @@ impl Builder<'_> { } } fn function_call(&mut self, path: &Path, value: Option<&YamlValue>, interface: &str) { - if let Some(at) = value.and_then(|value| value.get_scalar("function")) { + if let Some(at) = value.and_then(|value| value.get_scalar("derivation")) { let offers = Arc::new( self.function_interfaces .iter() diff --git a/crates/registry-language-server/src/evidence/layout.rs b/crates/registry-language-server/src/evidence/layout.rs index c4b2025a00..af94e6707f 100644 --- a/crates/registry-language-server/src/evidence/layout.rs +++ b/crates/registry-language-server/src/evidence/layout.rs @@ -22,7 +22,7 @@ impl DocumentRole { Self::Project => "Evidence project", Self::Target => "Evidence target", Self::Authority => "target authority", - Self::Function => "Function", + Self::Function => "Rhai script", Self::Generated => "generated project types", Self::Schema => "schema", Self::Fixture => "fixture", diff --git a/crates/registry-language-server/src/products/catalog.rs b/crates/registry-language-server/src/products/catalog.rs index 7e3e19e550..b496484ac1 100644 --- a/crates/registry-language-server/src/products/catalog.rs +++ b/crates/registry-language-server/src/products/catalog.rs @@ -34,7 +34,7 @@ const BREG_DECLARATIONS: &[N] = &[ N::global("recipients/groups/*/id", "BReg recipient group"), N::global("datasets/$key", "BReg dataset"), N::global("valueTypes/$key", "BReg value type"), - N::global("functions/$key", "BReg function"), + N::global("actionPlans/$key", "BReg Action Plan"), N::global("reviewAuthorities/$key", "BReg review authority"), N { scope: Scope::BregAction, @@ -62,7 +62,7 @@ const BREG_REFERENCES: &[N] = &[ N::global("recordTypes/*/fields/*/typeRef", "BReg value type"), N::global("extendRecordTypes/*/fields/*/typeRef", "BReg value type"), N::global("actions/*/inputs/*/typeRef", "BReg value type"), - N::global("actions/*/plan/function", "BReg function"), + N::global("actions/*/plan/actionPlan", "BReg Action Plan"), N::global( "actions/*/execution/proposal/review/authority", "BReg review authority", @@ -412,7 +412,7 @@ const BREG_FILES: &[FileRule] = &[ relative_to_document: false, index_target: true, }, - FileRule::root("functions/*/source", false), + FileRule::root("actionPlans/*/source", false), FileRule::root("recordTypes/*/hooks/*/handler/script", false), FileRule::root("recordTypes/*/hooks/*/handler/module", false), FileRule::root("recordTypes/*/derived/*/sql", false), @@ -422,7 +422,7 @@ const BREG_FILES: &[FileRule] = &[ const BREG_MODULE_FILES: &[FileRule] = &[ FileRule { relative_to_document: true, - ..FileRule::root("functions/*/source", false) + ..FileRule::root("actionPlans/*/source", false) }, FileRule { relative_to_document: true, diff --git a/crates/registry-language-server/src/products/catalog_coordinator.rs b/crates/registry-language-server/src/products/catalog_coordinator.rs index 72e07ea93f..44ab88af5a 100644 --- a/crates/registry-language-server/src/products/catalog_coordinator.rs +++ b/crates/registry-language-server/src/products/catalog_coordinator.rs @@ -6,7 +6,7 @@ use super::spec::{DocumentRules, FileRule, NameRule as N}; const DECLARATIONS: &[N] = &[ N::global("project/id", "Coordinator workflow"), N::global("types/$key", "Coordinator type"), - N::global("functions/$key", "Coordinator Function"), + N::global("transforms/$key", "Coordinator Transform"), N::global("contracts/$key", "Coordinator contract import"), N::global("operations/$key", "Coordinator Operation"), N::global("workflow/steps/$key", "Coordinator Step"), @@ -31,13 +31,13 @@ const REFERENCES: &[N] = &[ ), N::global( "operations/*/completions/*/interpret", - "Coordinator Function", + "Coordinator Transform", ), - N::global("operations/*/interpret", "Coordinator Function"), + N::global("operations/*/interpret", "Coordinator Transform"), // Mapping inputs and fields hold References, so literal JSON payloads are never walked. N { - only_when: Some(("type", "function")), - ..N::global("workflow/steps/*/input/function", "Coordinator Function") + only_when: Some(("type", "transform")), + ..N::global("workflow/steps/*/input/transform", "Coordinator Transform") }, N { only_when: Some(("type", "step")), @@ -52,8 +52,8 @@ const REFERENCES: &[N] = &[ ..N::global("workflow/steps/*/input/fields/*/step", "Coordinator Step") }, N { - only_when: Some(("type", "function")), - ..N::global("workflow/steps/*/choose/function", "Coordinator Function") + only_when: Some(("type", "transform")), + ..N::global("workflow/steps/*/choose/transform", "Coordinator Transform") }, N { only_when: Some(("type", "step")), @@ -68,10 +68,10 @@ const REFERENCES: &[N] = &[ ..N::global("workflow/steps/*/choose/fields/*/step", "Coordinator Step") }, N { - only_when: Some(("type", "function")), + only_when: Some(("type", "transform")), ..N::global( - "workflow/steps/*/waitUntil/function", - "Coordinator Function", + "workflow/steps/*/waitUntil/transform", + "Coordinator Transform", ) }, N { @@ -93,8 +93,8 @@ const REFERENCES: &[N] = &[ ) }, N { - only_when: Some(("type", "function")), - ..N::global("workflow/steps/*/output/function", "Coordinator Function") + only_when: Some(("type", "transform")), + ..N::global("workflow/steps/*/output/transform", "Coordinator Transform") }, N { only_when: Some(("type", "step")), @@ -109,10 +109,10 @@ const REFERENCES: &[N] = &[ ..N::global("workflow/steps/*/output/fields/*/step", "Coordinator Step") }, N { - only_when: Some(("type", "function")), + only_when: Some(("type", "transform")), ..N::global( - "workflow/eventTriggers/*/input/function", - "Coordinator Function", + "workflow/eventTriggers/*/input/transform", + "Coordinator Transform", ) }, N { @@ -142,35 +142,38 @@ const REFERENCES: &[N] = &[ "types/*/completionOutput/operation", "Coordinator Operation", ), - N::global("functions/*/inputs/*/typeRef", "Coordinator type"), + N::global("transforms/*/inputs/*/typeRef", "Coordinator type"), N::global( - "functions/*/inputs/*/operationInput", + "transforms/*/inputs/*/operationInput", "Coordinator Operation", ), N::global( - "functions/*/inputs/*/operationOutput", + "transforms/*/inputs/*/operationOutput", "Coordinator Operation", ), N::global( - "functions/*/inputs/*/operationRefusal", + "transforms/*/inputs/*/operationRefusal", "Coordinator Operation", ), N::global( - "functions/*/inputs/*/completionOutput/operation", + "transforms/*/inputs/*/completionOutput/operation", "Coordinator Operation", ), - N::global("functions/*/output/typeRef", "Coordinator type"), - N::global("functions/*/output/operationInput", "Coordinator Operation"), + N::global("transforms/*/output/typeRef", "Coordinator type"), N::global( - "functions/*/output/operationOutput", + "transforms/*/output/operationInput", "Coordinator Operation", ), N::global( - "functions/*/output/operationRefusal", + "transforms/*/output/operationOutput", "Coordinator Operation", ), N::global( - "functions/*/output/completionOutput/operation", + "transforms/*/output/operationRefusal", + "Coordinator Operation", + ), + N::global( + "transforms/*/output/completionOutput/operation", "Coordinator Operation", ), N::global("operations/*/responseSchema/typeRef", "Coordinator type"), @@ -252,7 +255,7 @@ pub(super) const DOCUMENTS: &[DocumentRules] = &[ references: REFERENCES, // Assets remain navigation targets; no Rhai or generated contract bytes are indexed. files: &[ - FileRule::root("functions/*/source", false), + FileRule::root("transforms/*/source", false), FileRule::root("contracts/*/source", false), ], }, diff --git a/crates/registry-language-server/src/refs.rs b/crates/registry-language-server/src/refs.rs index ab6f403ba8..143fcc04f3 100644 --- a/crates/registry-language-server/src/refs.rs +++ b/crates/registry-language-server/src/refs.rs @@ -136,10 +136,10 @@ impl EvidenceKind { Self::Output => "output", Self::Source => "source", Self::SelectorProfile => "lookup", - Self::FunctionFile => "function file", + Self::FunctionFile => "derivation file", Self::SchemaFile => "schema file", Self::FixtureFile => "fixture file", - Self::Function => "function", + Self::Function => "derivation", Self::Requirement => "requirement", Self::Fact => "fact", } @@ -161,9 +161,7 @@ impl EvidenceKind { } } - /// The part of a diagnostic code that names this kind. It is [`Self::label`] without the - /// spaces, so `evidence.project.unknown-source` and `evidence.project.unknown-lookup` read as the - /// sentences they accompany. + /// The part of a diagnostic code that names this authoring kind. pub(crate) fn slug(self) -> &'static str { match self { Self::Project => "project", @@ -173,10 +171,10 @@ impl EvidenceKind { Self::Output => "output", Self::Source => "source", Self::SelectorProfile => "lookup", - Self::FunctionFile => "function-file", + Self::FunctionFile => "derivation-file", Self::SchemaFile => "schema-file", Self::FixtureFile => "fixture-file", - Self::Function => "function", + Self::Function => "derivation", Self::Requirement => "requirement", Self::Fact => "fact", } diff --git a/crates/registry-language-server/src/workspace.rs b/crates/registry-language-server/src/workspace.rs index d9108dd708..a045f84ffe 100644 --- a/crates/registry-language-server/src/workspace.rs +++ b/crates/registry-language-server/src/workspace.rs @@ -929,7 +929,7 @@ mod tests { use super::*; use std::fs; use tempfile::tempdir; - const PROJECT: &str = "apiVersion: id.registrystack.org/formats/evidence/project/v1alpha1\nkind: EvidenceProject\nproject: {id: synthetic, version: \"1\"}\nlookups: {}\nfunctions: {}\nsources: {}\nassertionDefinitions: {}\n"; + const PROJECT: &str = "apiVersion: id.registrystack.org/formats/evidence/project/v1alpha1\nkind: EvidenceProject\nproject: {id: synthetic, version: \"1\"}\nlookups: {}\nderivations: {}\nsources: {}\nassertionDefinitions: {}\n"; fn project(root: &Path) { fs::write(root.join("evidence.yaml"), PROJECT).unwrap(); } diff --git a/crates/registry-language-server/tests/breg_native_authoring.rs b/crates/registry-language-server/tests/breg_native_authoring.rs index 536263efd3..28342a1bb3 100644 --- a/crates/registry-language-server/tests/breg_native_authoring.rs +++ b/crates/registry-language-server/tests/breg_native_authoring.rs @@ -28,8 +28,8 @@ fn facility() -> Project { "source: <|source|>plans/correct-address.rhai", ), ( - "function: correct-address-plan", - "function: <|function|>correct-address-plan", + "actionPlan: correct-address-plan", + "actionPlan: <|function|>correct-address-plan", ), ( "typeRef: address-line", @@ -376,7 +376,10 @@ async fn canonical_function_reference_changes_are_visible_through_lsp() { .iter() .any(|item| item["label"] == "correct-address-plan") ); - let edited = source.replace("function: correct-address-plan", "function: missing-plan"); + let edited = source.replace( + "actionPlan: correct-address-plan", + "actionPlan: missing-plan", + ); session.notify("textDocument/didChange", json!({"textDocument":{"uri":uri(&path),"version":2},"contentChanges":[{"text":edited}]})).await; assert!(session .published_diagnostics(&path) @@ -410,8 +413,8 @@ fn retired_entities_handlers_and_change_request_paths_have_no_editor_fallback() fn module_value_types_extensions_functions_and_empty_input_plans_resolve() { let project = Project::new(&[ file("registry.yaml", "kind: BRegProject\nmodules: {core: {}, extra: {}}\naccessProfiles: {staff: {permissions: {actions: [{action: create, results: [<|result|>created]}]}}}\n"), - file("modules/core/module.yaml", "kind: BRegModule\nid: core\nvalueTypes: {bounded-name: {type: string, maximumLength: 64}}\nrecordTypes: {person: {fields: [{id: name, typeRef: bounded-name}]}}\nfunctions: {make-person: {source: <|asset|>plans/create.rhai}}\nactions: {create: {execution: {mode: immediate}, plan: {type: function, function: make-person, inputs: [], writes: [{id: <|effect|>created, target: {recordType: person}, fields: [name]}]}}}\n"), - file("modules/extra/module.yaml", "kind: BRegModule\nid: extra\ndependencies: [core]\nextendRecordTypes: {<|record|>person: {fields: [{id: alias, typeRef: <|type|>bounded-name}]}}\nactions: {update: {execution: {mode: immediate}, inputs: [{id: person, type: reference, target: person}], plan: {type: function, function: <|function|>make-person, inputs: [person], writes: [{id: changed, target: {fromInput: person}, fields: [<|field|>alias]}]}}}\n"), + file("modules/core/module.yaml", "kind: BRegModule\nid: core\nvalueTypes: {bounded-name: {type: string, maximumLength: 64}}\nrecordTypes: {person: {fields: [{id: name, typeRef: bounded-name}]}}\nactionPlans: {make-person: {source: <|asset|>plans/create.rhai}}\nactions: {create: {execution: {mode: immediate}, plan: {type: scripted, actionPlan: make-person, inputs: [], writes: [{id: <|effect|>created, target: {recordType: person}, fields: [name]}]}}}\n"), + file("modules/extra/module.yaml", "kind: BRegModule\nid: extra\ndependencies: [core]\nextendRecordTypes: {<|record|>person: {fields: [{id: alias, typeRef: <|type|>bounded-name}]}}\nactions: {update: {execution: {mode: immediate}, inputs: [{id: person, type: reference, target: person}], plan: {type: scripted, actionPlan: <|function|>make-person, inputs: [person], writes: [{id: changed, target: {fromInput: person}, fields: [<|field|>alias]}]}}}\n"), file("modules/core/plans/create.rhai", "fn plan(ctx) { #{} }\n"), ]); let index = ProjectIndex::load_product(project.root(), ProductKind::Breg).unwrap(); diff --git a/crates/registry-language-server/tests/coordinator_navigation.rs b/crates/registry-language-server/tests/coordinator_navigation.rs index c4d256e462..1562a85e0e 100644 --- a/crates/registry-language-server/tests/coordinator_navigation.rs +++ b/crates/registry-language-server/tests/coordinator_navigation.rs @@ -19,8 +19,8 @@ types: <|type|>request: {type: object} contracts: <|contract|>registry: {type: breg, source: <|contract-file|>generated/registry.json} -functions: - <|function|>make-request: +transforms: + <|transform|>make-request: runtime: rhai source: <|function-file|>functions.rhai entrypoint: make_request @@ -41,8 +41,8 @@ workflow: dataSchema: urn:example:remote-event:v1 event: {typeRef: <|event-type-use|>request} input: - type: function - function: <|event-function-use|>make-request + type: transform + transform: <|event-function-use|>make-request inputs: {request: {type: input}} review: outcomes: @@ -53,8 +53,8 @@ workflow: type: call operation: <|operation-use|>read-record input: - type: function - function: <|function-use|>make-request + type: transform + transform: <|function-use|>make-request inputs: {request: {type: input}} next: <|next-use|>complete <|finish|>complete: @@ -66,7 +66,7 @@ workflow: record: {type: step, step: <|step-use|>read} literal: type: literal - value: {type: function, function: not-a-local-function, step: not-a-local-step, typeRef: not-a-local-type} + value: {type: transform, transform: not-a-local-function, step: not-a-local-step, typeRef: not-a-local-type} outcomes: <|outcome|>handled: {operationOutput: <|output-operation-use|>read-record} "#; @@ -100,8 +100,8 @@ fn coordinator_native_review_and_event_edges_resolve_without_claiming_external_n ("operation-use", "operation", "read-record"), ("output-operation-use", "operation", "read-record"), ("contract-use", "contract", "registry"), - ("function-use", "function", "make-request"), - ("event-function-use", "function", "make-request"), + ("function-use", "transform", "make-request"), + ("event-function-use", "transform", "make-request"), ("start-use", "step", "read"), ("next-use", "finish", "complete"), ("step-use", "step", "read"), @@ -262,7 +262,7 @@ async fn coordinator_discovery_unsaved_diagnostics_and_watched_assets_use_the_re ); let changed = source - .replace("function: make-request", "function: unknown-function") + .replace("transform: make-request", "transform: unknown-function") .replace("operation: read-record", "operation: unknown-operation") .replace("start: read", "start: unknown-step") .replace("typeRef: request", "typeRef: unknown-type") diff --git a/crates/registry-language-server/tests/evidence_cards_protocol.rs b/crates/registry-language-server/tests/evidence_cards_protocol.rs index 6ee7915900..f4186d039d 100644 --- a/crates/registry-language-server/tests/evidence_cards_protocol.rs +++ b/crates/registry-language-server/tests/evidence_cards_protocol.rs @@ -16,7 +16,7 @@ async fn every_completion_trigger_uses_the_same_interface_filtered_list() { session.open(&p.path(PROJECT), SOURCE, 1).await; let mut responses = Vec::new(); for trigger in [1, 2, 3] { - responses.push(session.request("textDocument/completion",json!({"textDocument":{"uri":uri(&p.path(PROJECT))},"position":after(SOURCE,"derive: {function: "),"context":{"triggerKind":trigger,"triggerCharacter":"-"}})).await); + responses.push(session.request("textDocument/completion",json!({"textDocument":{"uri":uri(&p.path(PROJECT))},"position":after(SOURCE,"derive: {derivation: "),"context":{"triggerKind":trigger,"triggerCharacter":"-"}})).await); } assert_eq!(responses[0], responses[1]); assert_eq!(responses[1], responses[2]); diff --git a/crates/registry-language-server/tests/evidence_completion.rs b/crates/registry-language-server/tests/evidence_completion.rs index 661347627f..25717e184d 100644 --- a/crates/registry-language-server/tests/evidence_completion.rs +++ b/crates/registry-language-server/tests/evidence_completion.rs @@ -18,8 +18,8 @@ fn sources_complete_with_the_declared_names() { #[test] fn functions_complete_only_the_matching_interface() { let source = SOURCE.replace( - "functions:\n", - "functions:\n retired-extract: {interface: source-extract/v1, source: functions/retired.rhai}\n", + "derivations:\n", + "derivations:\n retired-extract: {interface: source-extract/v1, source: functions/retired.rhai}\n", ); let p = Project::new(&source); p.write( @@ -31,7 +31,7 @@ fn functions_complete_only_the_matching_interface() { labels( &index, &p.path(PROJECT), - after(&source, "derive: {function: ") + after(&source, "derive: {derivation: ") ), vec!["derive-status"] ); @@ -40,8 +40,8 @@ fn functions_complete_only_the_matching_interface() { fn retired_acquisition_channels_offer_no_sources_or_functions() { let source = SOURCE .replace( - "functions:\n", - "functions:\n retired-extract: {interface: source-extract/v1, source: functions/retired.rhai}\n", + "derivations:\n", + "derivations:\n retired-extract: {interface: source-extract/v1, source: functions/retired.rhai}\n", ) .replace( " connection: population\n", @@ -108,7 +108,7 @@ fn selectors_complete_and_declarations_offer_no_references() { #[test] fn candidate_replaces_the_entire_written_value() { let p = Project::new(SOURCE); - let at = after(SOURCE, "derive: {function: "); + let at = after(SOURCE, "derive: {derivation: "); let candidates = p.index().completions_at(&p.path(PROJECT), at); assert_eq!(candidates[0].range.start, at); assert_eq!( diff --git a/crates/registry-language-server/tests/evidence_completion_adversarial.rs b/crates/registry-language-server/tests/evidence_completion_adversarial.rs index a629efadbe..d47c672225 100644 --- a/crates/registry-language-server/tests/evidence_completion_adversarial.rs +++ b/crates/registry-language-server/tests/evidence_completion_adversarial.rs @@ -19,15 +19,15 @@ fn asking_for_completion_does_not_change_diagnostics() { #[test] fn unresolved_function_completion_still_offers_the_correct_interface() { let source = SOURCE.replace( - "derive: {function: derive-status}", - "derive: {function: missing}", + "derive: {derivation: derive-status}", + "derive: {derivation: missing}", ); let p = Project::new(&source); assert_eq!( labels( &p.index(), &p.path(PROJECT), - after(&source, "derive: {function: ") + after(&source, "derive: {derivation: ") ), vec!["derive-status"] ); diff --git a/crates/registry-language-server/tests/evidence_diagnostics.rs b/crates/registry-language-server/tests/evidence_diagnostics.rs index 66d884fddd..64b520b7e4 100644 --- a/crates/registry-language-server/tests/evidence_diagnostics.rs +++ b/crates/registry-language-server/tests/evidence_diagnostics.rs @@ -57,7 +57,7 @@ fn named_function_interface_fault_is_reported_without_executing_code() { .diagnostics() .iter() .any(|x| x.path == p.path(DERIVE) - && x.code.as_ref().unwrap().starts_with("evidence.function."))); + && x.code.as_ref().unwrap().starts_with("evidence.derivation."))); } #[test] fn authority_diagnostics_use_the_shared_grant_reader() { diff --git a/crates/registry-language-server/tests/evidence_generated_navigation.rs b/crates/registry-language-server/tests/evidence_generated_navigation.rs index 6f4c91d4b8..f248bcf2aa 100644 --- a/crates/registry-language-server/tests/evidence_generated_navigation.rs +++ b/crates/registry-language-server/tests/evidence_generated_navigation.rs @@ -62,6 +62,9 @@ fn typescript_and_python_outputs_navigate_to_the_same_normalized_model() { registry_evidence_authoring::project::python(&project, &compiled), ), ] { + assert!(source.contains("DerivationBindings")); + assert!(source.contains("evidence-derivation: derive-status")); + assert!(!source.contains("evidence-function: ")); p.write(file, &source); let index = p.index(); assert!(index.diagnostics().is_empty(), "{:?}", index.diagnostics()); @@ -105,6 +108,25 @@ fn typescript_and_python_outputs_navigate_to_the_same_normalized_model() { ); } } + +#[test] +fn legacy_generated_markers_still_navigate_to_the_authored_derivation() { + let p = Project::new(SOURCE); + for (file, comment) in [("types/legacy.ts", "//"), ("types/legacy.py", "#")] { + let source = format!( + "{comment} Generated from the normalized EvidenceProject.\n{comment} evidence-function: derive-status\n\"derive-status\": unknown,\n" + ); + p.write(file, &source); + let index = p.index(); + assert_eq!( + index.definitions_at(&p.path(file), after(&source, "\""))[0] + .range + .start, + at(SOURCE, "derive-status: {interface:") + ); + } +} + #[test] fn ordinary_code_files_are_not_indexed_as_generated_types() { let p = Project::new(SOURCE); diff --git a/crates/registry-language-server/tests/evidence_index.rs b/crates/registry-language-server/tests/evidence_index.rs index fc9427bd3e..7dfb8b477c 100644 --- a/crates/registry-language-server/tests/evidence_index.rs +++ b/crates/registry-language-server/tests/evidence_index.rs @@ -32,13 +32,12 @@ fn named_sources_navigate_in_both_directions() { .any(|x| x.range.start == reference)); } #[test] -fn named_functions_and_their_assets_navigate() { +fn named_derivations_and_their_assets_navigate() { let p = Project::new(SOURCE); let index = p.index(); - let function = after(SOURCE, "derive: {function: "); - let declaration = after(SOURCE, " derive-status"); + let derivation = after(SOURCE, "derive: {derivation: "); assert_eq!( - index.definitions_at(&p.path(PROJECT), function)[0] + index.definitions_at(&p.path(PROJECT), derivation)[0] .range .start, at(SOURCE, "derive-status: {interface") @@ -48,7 +47,8 @@ fn named_functions_and_their_assets_navigate() { index.definitions_at(&p.path(PROJECT), asset)[0].path, p.path(DERIVE) ); - let _ = declaration; + assert_eq!(EvidenceKind::Function.label(), "derivation"); + assert_eq!(EvidenceKind::FunctionFile.label(), "derivation file"); } #[test] fn selector_profiles_resolve_subjects_and_source_inputs() { diff --git a/crates/registry-language-server/tests/runtime_product_navigation.rs b/crates/registry-language-server/tests/runtime_product_navigation.rs index 2a6a56be81..157eadd81f 100644 --- a/crates/registry-language-server/tests/runtime_product_navigation.rs +++ b/crates/registry-language-server/tests/runtime_product_navigation.rs @@ -373,8 +373,8 @@ async fn disappearing_module_keeps_unsaved_buffer_until_file_returns() { fn module_assets_named_constraints_and_action_results_keep_their_own_scope() { let project=Project::new(&[ file("registry.yaml","apiVersion: id.registrystack.org/formats/breg/project/v1alpha1\nkind: BRegProject\nproject: {id: example}\nmodules: {core: {}, extra: {}}\naccessProfiles: {staff: {permissions: {actions: [{action: register, results: [<|result|>created-record]}]}}}\n"), - file("modules/core/module.yaml","apiVersion: id.registrystack.org/formats/breg/module/v1alpha1\nkind: BRegModule\nid: core\nrecordTypes:\n person:\n fields: [{id: <|field|>name, type: string}]\n constraints: [{type: unique, id: named-rule, fields: [<|constraint|>name]}]\nactions:\n register:\n inputs: []\n execution: {mode: immediate}\n plan: {type: fixed, effects: [{id: <|effect|>created-record}]}\nfunctions: {core-plan: {source: <|script|>scripts/action.rhai}}\n"), - file("modules/extra/module.yaml","apiVersion: id.registrystack.org/formats/breg/module/v1alpha1\nkind: BRegModule\nid: extra\nfunctions: {extra-plan: {source: scripts/action.rhai}}\n"), + file("modules/core/module.yaml","apiVersion: id.registrystack.org/formats/breg/module/v1alpha1\nkind: BRegModule\nid: core\nrecordTypes:\n person:\n fields: [{id: <|field|>name, type: string}]\n constraints: [{type: unique, id: named-rule, fields: [<|constraint|>name]}]\nactions:\n register:\n inputs: []\n execution: {mode: immediate}\n plan: {type: fixed, effects: [{id: <|effect|>created-record}]}\nactionPlans: {core-plan: {source: <|script|>scripts/action.rhai}}\n"), + file("modules/extra/module.yaml","apiVersion: id.registrystack.org/formats/breg/module/v1alpha1\nkind: BRegModule\nid: extra\nactionPlans: {extra-plan: {source: scripts/action.rhai}}\n"), file("modules/core/scripts/action.rhai","// core\n"), file("modules/extra/scripts/action.rhai","// extra\n"), ]); diff --git a/crates/registry-language-server/tests/support/normalized.rs b/crates/registry-language-server/tests/support/normalized.rs index 90f880c01b..cfddcbdf8a 100644 --- a/crates/registry-language-server/tests/support/normalized.rs +++ b/crates/registry-language-server/tests/support/normalized.rs @@ -14,7 +14,7 @@ project: version: "1" lookups: person-by-id: {maximumAggregateBytes: 64, fields: {person-id: {type: string, minimumBytes: 1, maximumBytes: 64}}} -functions: +derivations: derive-status: {interface: assertion-derive/v1, source: functions/derive.rhai} sources: person: @@ -32,7 +32,7 @@ assertionDefinitions: grantCeiling: {authorities: [organizational], actorKinds: [service], valueOrigins: [request], audiences: ['urn:example:audience:consumer']} subjects: [{role: person, selectors: [person-by-id]}] acquisition: {source: person} - derive: {function: derive-status} + derive: {derivation: derive-status} outputs: active: {concept: 'urn:example:concept:active', type: boolean} validitySeconds: 300 diff --git a/crates/registry-mcp/tests/native_adapter.rs b/crates/registry-mcp/tests/native_adapter.rs index efa1fefdcc..f4a8ebe188 100644 --- a/crates/registry-mcp/tests/native_adapter.rs +++ b/crates/registry-mcp/tests/native_adapter.rs @@ -40,7 +40,12 @@ async fn breg_records_facade_reads_the_configured_facility_directory() { assert_eq!(stack.exported["digest"], stack.runtime_contract["digest"]); let client = stack.client().await; - let get = call(&client, GET_TOOL, get_arguments(FACILITY_ID)).await; + let get = call( + &client, + GET_TOOL, + json!({"path":{"recordId":FACILITY_ID},"query":{}}), + ) + .await; assert_eq!(get.is_error, Some(false), "{get:?}"); let get = structured(&get); diff --git a/crates/registry-messaging/src/schema.rs b/crates/registry-messaging/src/schema.rs index 0c1f0b99f9..b72caa3f66 100644 --- a/crates/registry-messaging/src/schema.rs +++ b/crates/registry-messaging/src/schema.rs @@ -128,6 +128,7 @@ pub fn authoring_documents() -> Result, serde_jso pub fn openapi_documents() -> Result, serde_json::Error> { let mut paths = Map::new(); for operation in OPERATIONS { + let path = published_path(operation.path); let mut responses = Map::new(); responses.insert( operation.success_status.to_string(), @@ -169,7 +170,7 @@ pub fn openapi_documents() -> Result, serde_json: "summary": operation.summary, "responses": responses, }); - let mut parameters: Vec = path_parameters(operation.path) + let mut parameters: Vec = path_parameters(path) .map(|name| { json!({ "name": name, @@ -229,7 +230,7 @@ pub fn openapi_documents() -> Result, serde_json: json!([]) }; paths - .entry(operation.path.to_owned()) + .entry(path.to_owned()) .or_insert_with(|| Value::Object(Map::new())) .as_object_mut() .expect("every path item is an object") @@ -372,7 +373,8 @@ pub fn openapi_documents() -> Result, serde_json: "status": {"type": "integer"}, "detail": {"type": "string"}, "code": {"type": "string", "enum": codes}, - "traceId": {"type": "string"} + "traceId": {"type": "string"}, + "failedCheck": {"type": "string", "description": "The check that refused the request, included only in development."} } }, "Recipient": { @@ -610,6 +612,22 @@ fn problem_headers(status: u16) -> Option { } } +fn published_path(path: &str) -> &str { + use registry_messaging_core::{ + MESSAGE_CANCEL_PATH, MESSAGE_PATH, PROVIDER_CALLBACK_PATH, PROVIDER_CALLBACK_TOKEN_PATH, + TEMPLATE_PREVIEW_PATH, + }; + + match path { + MESSAGE_PATH => "/v1/messages/{messageId}", + MESSAGE_CANCEL_PATH => "/v1/messages/{messageId}/cancel", + TEMPLATE_PREVIEW_PATH => "/v1/templates/{templateId}/versions/{templateVersion}/preview", + PROVIDER_CALLBACK_PATH => "/v1/provider-callbacks/{providerId}", + PROVIDER_CALLBACK_TOKEN_PATH => "/v1/provider-callbacks/{providerId}/{token}", + _ => path, + } +} + fn path_parameters(path: &str) -> impl Iterator { path.split('/').filter_map(|segment| { segment @@ -882,20 +900,80 @@ mod tests { } } + #[test] + fn openapi_publishes_explicit_path_parameter_names() { + let documents = openapi_documents().unwrap(); + let document: Value = serde_json::from_str(&documents[OPENAPI_FILE]).unwrap(); + let cases: [(&str, &str, &str, &[&str]); 5] = [ + ( + "/v1/messages/{messageId}", + "get", + "getMessage", + &["messageId"], + ), + ( + "/v1/messages/{messageId}/cancel", + "post", + "cancelMessage", + &["messageId"], + ), + ( + "/v1/templates/{templateId}/versions/{templateVersion}/preview", + "post", + "previewTemplate", + &["templateId", "templateVersion"], + ), + ( + "/v1/provider-callbacks/{providerId}", + "post", + "receiveProviderCallback", + &["providerId"], + ), + ( + "/v1/provider-callbacks/{providerId}/{token}", + "post", + "receiveProviderCallbackWithToken", + &["providerId", "token"], + ), + ]; + let path_count = document["paths"] + .as_object() + .unwrap() + .keys() + .filter(|path| path.contains('{')) + .count(); + assert_eq!(path_count, cases.len()); + for (path, method, operation_id, expected) in cases { + let operation = &document["paths"][path][method]; + assert_eq!(operation["operationId"], operation_id); + let parameters: Vec<_> = operation["parameters"] + .as_array() + .unwrap() + .iter() + .filter(|parameter| parameter["in"] == "path") + .map(|parameter| { + assert_eq!(parameter["required"], true); + parameter["name"].as_str().unwrap() + }) + .collect(); + assert_eq!(parameters.as_slice(), expected, "{path}"); + } + } + #[test] fn openapi_lists_every_operation_and_only_catalogued_problems() { let documents = openapi_documents().unwrap(); assert_eq!(documents, openapi_documents().unwrap()); let document: Value = serde_json::from_str(&documents[OPENAPI_FILE]).unwrap(); for operation in OPERATIONS { - let entry = &document["paths"][operation.path][operation.method]; + let entry = &document["paths"][published_path(operation.path)][operation.method]; assert_eq!(entry["operationId"], operation.operation_id); } assert!( document["paths"].get("/metrics").is_none(), "the metrics listener is not part of the public contract" ); - let message = &document["paths"]["/v1/messages/{message_id}"]["get"]; + let message = &document["paths"]["/v1/messages/{messageId}"]["get"]; assert_eq!(message["security"], json!([{"bearer": []}])); assert!(message["responses"]["404"].is_object()); assert!(message["responses"]["401"].is_object()); @@ -944,8 +1022,8 @@ mod tests { let documents = openapi_documents().unwrap(); let document: Value = serde_json::from_str(&documents[OPENAPI_FILE]).unwrap(); for path in [ - registry_messaging_core::PROVIDER_CALLBACK_PATH, - registry_messaging_core::PROVIDER_CALLBACK_TOKEN_PATH, + "/v1/provider-callbacks/{providerId}", + "/v1/provider-callbacks/{providerId}/{token}", ] { let callback = &document["paths"][path]["post"]; assert_eq!(callback["security"], json!([])); @@ -971,14 +1049,15 @@ mod tests { fn the_preview_operation_publishes_its_path_parameters_and_bodies() { let documents = openapi_documents().unwrap(); let document: Value = serde_json::from_str(&documents[OPENAPI_FILE]).unwrap(); - let preview = &document["paths"][registry_messaging_core::TEMPLATE_PREVIEW_PATH]["post"]; + let preview = &document["paths"] + ["/v1/templates/{templateId}/versions/{templateVersion}/preview"]["post"]; let names: Vec<&str> = preview["parameters"] .as_array() .unwrap() .iter() .map(|parameter| parameter["name"].as_str().unwrap()) .collect(); - assert_eq!(names, ["template_id", "version"]); + assert_eq!(names, ["templateId", "templateVersion"]); assert_eq!( preview["requestBody"]["content"]["application/json"]["schema"]["$ref"], "#/components/schemas/TemplatePreviewRequest" @@ -987,8 +1066,8 @@ mod tests { preview["responses"]["200"]["content"]["application/json"]["schema"]["$ref"], "#/components/schemas/TemplatePreview" ); - let message = &document["paths"]["/v1/messages/{message_id}"]["get"]; - assert_eq!(message["parameters"][0]["name"], "message_id"); + let message = &document["paths"]["/v1/messages/{messageId}"]["get"]; + assert_eq!(message["parameters"][0]["name"], "messageId"); assert!(message.get("requestBody").is_none()); } @@ -1154,7 +1233,8 @@ mod tests { let documents = openapi_documents().unwrap(); let document: Value = serde_json::from_str(&documents[OPENAPI_FILE]).unwrap(); for operation in OPERATIONS { - let responses = &document["paths"][operation.path][operation.method]["responses"]; + let responses = + &document["paths"][published_path(operation.path)][operation.method]["responses"]; for problem in operation.problems { let status = problem.http_status(); let headers = &responses[status.to_string()]["headers"]; diff --git a/crates/registry-payment-client/src/client.rs b/crates/registry-payment-client/src/client.rs index 3613db0566..fc380c34c1 100644 --- a/crates/registry-payment-client/src/client.rs +++ b/crates/registry-payment-client/src/client.rs @@ -473,7 +473,7 @@ fn validate_key(value: &str) -> Result<(), PaymentClientError> { Ok(()) } else { Err(PaymentClientError::invalid_request( - "the idempotency key is not 1 to 128 visible ASCII characters", + "Idempotency-Key must contain 1 to 128 visible ASCII characters", )) } } @@ -500,7 +500,7 @@ fn domain_problem( ) -> PaymentClientError { if document.status != status.as_u16() || document.code.status() != status.as_u16() - || document.type_uri != document.code.type_uri() + || !document.code.recognizes_type(&document.type_uri) || document.title != document.code.as_str() { return protocol(status, PaymentProtocolFailure::Problem, trace_id); diff --git a/crates/registry-payment-client/tests/http_boundary.rs b/crates/registry-payment-client/tests/http_boundary.rs index 8c1888fa45..4081b3231f 100644 --- a/crates/registry-payment-client/tests/http_boundary.rs +++ b/crates/registry-payment-client/tests/http_boundary.rs @@ -145,6 +145,31 @@ fn token() -> BearerToken { BearerToken::new("synthetic-payment-token").expect("fixture token") } +#[tokio::test] +async fn invalid_idempotency_key_names_the_header_and_sends_nothing() { + let (client, fixture) = serve_problem( + StatusCode::UNPROCESSABLE_ENTITY, + PaymentProblemCode::InvalidRequest, + ) + .await; + let request = RequestCollection { + bill_id: Uuid::new_v4(), + bill_version: 3, + }; + let error = client + .request_collection(&token(), "sensitive key", &request) + .await + .unwrap_err(); + assert!(matches!( + error, + PaymentClientError::InvalidRequest { + reason: "Idempotency-Key must contain 1 to 128 visible ASCII characters" + } + )); + assert!(!error.to_string().contains("sensitive key")); + assert!(fixture.observations.lock().unwrap().is_empty()); +} + #[tokio::test] async fn g2p_submission_sends_once_when_the_provider_outcome_is_unknown() { let (client, fixture) = serve_problem( @@ -612,6 +637,80 @@ async fn inconsistent_problem_document_is_a_protocol_failure() { assert!(error.is_outcome_unknown()); } +#[tokio::test] +async fn every_problem_accepts_its_canonical_type_and_only_its_exact_legacy_type() { + let request = RequestCollection { + bill_id: Uuid::new_v4(), + bill_version: 3, + }; + for &code in PaymentProblemCode::ALL { + let status = StatusCode::from_u16(code.status()).unwrap(); + let mut candidate = code_problem(code); + for accepted in [ + candidate["type"].as_str().unwrap().to_owned(), + format!("urn:registry:problem:{}", code.as_str()), + ] { + candidate["type"] = json!(accepted); + let (client, _) = + serve_fixture(status, "application/problem+json", candidate.to_string()).await; + let error = client + .request_collection(&token(), KEY, &request) + .await + .unwrap_err(); + assert!( + matches!(error, PaymentClientError::Problem { code: actual, status: actual_status, .. } + if actual == code && actual_status == status.as_u16()), + "{code:?} {error}" + ); + } + } + + let code = PaymentProblemCode::OutcomeUnknown; + let mut legacy = code_problem(code); + legacy["type"] = json!("urn:registry:problem:adapter.payment.outcome-unknown"); + for (field, wrong) in [ + ( + "type", + json!("urn:registry:problem:adapter.payment.unknown-type"), + ), + ( + "type", + json!("urn:registry:problem:adapter.payment.outcome-unknown#legacy"), + ), + ( + "type", + json!("urn:registry:problem:adapter.payment.unavailable"), + ), + ("type", json!(PaymentProblemCode::Unavailable.type_uri())), + ("title", json!(PaymentProblemCode::Unavailable.as_str())), + ("status", json!(500)), + ("code", json!(PaymentProblemCode::Unavailable)), + ] { + let mut body = legacy.clone(); + body[field] = wrong; + let (client, _) = serve_fixture( + StatusCode::SERVICE_UNAVAILABLE, + "application/problem+json", + body.to_string(), + ) + .await; + let error = client + .request_collection(&token(), KEY, &request) + .await + .unwrap_err(); + assert!( + matches!( + error, + PaymentClientError::Protocol { + failure: PaymentProtocolFailure::Problem, + .. + } + ), + "{field} {error}" + ); + } +} + #[test] fn connection_and_request_values_are_rejected_before_io() { let base = Url::parse("https://adapter.example.invalid/root").unwrap(); diff --git a/crates/registry-payment-protocol/examples/problem-catalog.rs b/crates/registry-payment-protocol/examples/problem-catalog.rs new file mode 100644 index 0000000000..6d0fd63e0a --- /dev/null +++ b/crates/registry-payment-protocol/examples/problem-catalog.rs @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: Apache-2.0 + +use registry_payment_protocol::PaymentProblemCode; +use serde_json::json; +use std::{env, fs, path::PathBuf, process::ExitCode}; + +fn main() -> ExitCode { + let mut args = env::args_os().skip(1); + let (Some(flag), Some(output), None) = (args.next(), args.next(), args.next()) else { + eprintln!("usage: problem-catalog --output "); + return ExitCode::from(2); + }; + if flag != "--output" { + eprintln!("usage: problem-catalog --output "); + return ExitCode::from(2); + } + + let entries: Vec<_> = PaymentProblemCode::ALL + .iter() + .copied() + .map(|code| { + json!({ + "uri": code.type_uri(), + "code": code.as_str(), + "title": code.as_str(), + "description": code.description(), + "httpStatuses": [code.status()], + }) + }) + .collect(); + let mut bytes = + serde_json::to_vec_pretty(&json!({"entries": entries})).expect("catalog serializes"); + bytes.push(b'\n'); + if fs::write(PathBuf::from(output), bytes).is_err() { + eprintln!("problem catalog could not be written"); + return ExitCode::FAILURE; + } + ExitCode::SUCCESS +} diff --git a/crates/registry-payment-protocol/src/lib.rs b/crates/registry-payment-protocol/src/lib.rs index 767e67b511..2dd8e1621f 100644 --- a/crates/registry-payment-protocol/src/lib.rs +++ b/crates/registry-payment-protocol/src/lib.rs @@ -5,6 +5,24 @@ use serde::{Deserialize, Serialize}; use uuid::Uuid; +const PAYMENT_PROBLEM_TYPE_BASE: &str = "https://id.registrystack.org/problems/registry-adapter/"; +const LEGACY_PAYMENT_PROBLEM_TYPE_BASE: &str = "urn:registry:problem:"; +// Freeze the suffixes emitted before the HTTPS migration. A future problem +// code has no legacy alias unless the released wire contract emitted it. +const LEGACY_PAYMENT_PROBLEM_CODES: &[&str] = &[ + "adapter.payment.authentication-required", + "adapter.payment.forbidden", + "adapter.payment.invalid-request", + "adapter.payment.conflict", + "adapter.payment.not-found", + "adapter.payment.receipt-unresolved", + "adapter.payment.receipt-expired", + "adapter.payment.recovery-held", + "adapter.payment.outcome-unknown", + "adapter.payment.unavailable", + "adapter.payment.provider-protocol", +]; + /// Maximum exact integer shared with JSON consumers and the synthetic provider. pub const MAX_MINOR_UNITS: u64 = 9_007_199_254_740_991; @@ -37,6 +55,21 @@ pub enum PaymentProblemCode { } impl PaymentProblemCode { + /// The closed inventory served by the payment host. + pub const ALL: &'static [Self] = &[ + Self::Unauthenticated, + Self::Forbidden, + Self::InvalidRequest, + Self::Conflict, + Self::NotFound, + Self::ReceiptUnresolved, + Self::ReceiptExpired, + Self::RecoveryHeld, + Self::OutcomeUnknown, + Self::Unavailable, + Self::ProviderProtocol, + ]; + #[must_use] pub const fn as_str(self) -> &'static str { match self { @@ -70,7 +103,45 @@ impl PaymentProblemCode { #[must_use] pub fn type_uri(self) -> String { - format!("urn:registry:problem:{}", self.as_str()) + format!("{PAYMENT_PROBLEM_TYPE_BASE}{}", self.as_str()) + } + + /// Match the canonical URI or the previous URI for this exact code. + /// Callers also validate the status and title against the same code. + #[must_use] + pub fn recognizes_type(self, uri: &str) -> bool { + let code = self.as_str(); + uri.strip_prefix(PAYMENT_PROBLEM_TYPE_BASE) == Some(code) + || (uri.strip_prefix(LEGACY_PAYMENT_PROBLEM_TYPE_BASE) == Some(code) + && LEGACY_PAYMENT_PROBLEM_CODES.contains(&code)) + } + + /// Value-free resolver description. The payment wire body has no detail member. + #[must_use] + pub const fn description(self) -> &'static str { + match self { + Self::Unauthenticated => "The payment caller credential is missing or refused.", + Self::Forbidden => "The verified caller is not admitted for this payment operation.", + Self::InvalidRequest => { + "The request does not meet the payment operation's input contract." + } + Self::Conflict => { + "The requested operation conflicts with the current payment binding or state." + } + Self::NotFound => "The payment resource is absent or not visible to the caller.", + Self::ReceiptUnresolved => "The original request has no confirmed acceptance receipt.", + Self::ReceiptExpired => "The original acceptance receipt is past its recovery window.", + Self::RecoveryHeld => { + "The original payment attempt requires reconciliation before it can proceed." + } + Self::OutcomeUnknown => { + "The outcome of the original payment attempt could not be established." + } + Self::Unavailable => "The payment operation was unavailable.", + Self::ProviderProtocol => { + "The provider's response did not meet the payment protocol contract." + } + } } } @@ -102,6 +173,29 @@ impl From for PaymentProblem { } } +/// Schema of newly emitted problem answers. Clients validate earlier peers +/// separately against the closed legacy type for the same tuple. +#[cfg(feature = "schema")] +#[must_use] +pub fn payment_problem_schema() -> schemars::Schema { + use serde_json::json; + let mut schema = schemars::schema_for!(PaymentProblem); + let variants: Vec<_> = PaymentProblemCode::ALL + .iter() + .copied() + .map(|code| { + json!({"properties": { + "type": {"const": code.type_uri()}, + "title": {"const": code.as_str()}, + "status": {"const": code.status()}, + "code": {"const": code.as_str()} + }}) + }) + .collect(); + schema.insert("oneOf".to_owned(), json!(variants)); + schema +} + /// A refused wire value. Messages never contain caller or provider values. #[derive(Debug, thiserror::Error, PartialEq, Eq)] #[error("payment contract: {0}")] diff --git a/crates/registry-payment-protocol/tests/contract.rs b/crates/registry-payment-protocol/tests/contract.rs index 8eee0dd31f..c402f6d68e 100644 --- a/crates/registry-payment-protocol/tests/contract.rs +++ b/crates/registry-payment-protocol/tests/contract.rs @@ -231,6 +231,10 @@ fn authored_money_refuses_zero_and_unsupported_fractional_precision() { #[test] fn payment_problem_accepts_only_declared_fields() { let problem = PaymentProblem::from(PaymentProblemCode::Forbidden); + assert_eq!( + problem.type_uri, + "https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden" + ); let mut wire = serde_json::to_value(&problem).unwrap(); assert!(wire.get("failedCheck").is_none()); assert_eq!( @@ -250,3 +254,30 @@ fn payment_problem_accepts_only_declared_fields() { wire["failedCheck"] = json!(42); assert!(serde_json::from_value::(wire).is_err()); } + +#[cfg(feature = "schema")] +#[test] +fn published_payment_problem_schema_checks_the_complete_tuple() { + let document = + serde_json::to_value(registry_payment_protocol::payment_problem_schema()).unwrap(); + let schema = jsonschema::JSONSchema::options() + .with_draft(jsonschema::Draft::Draft202012) + .compile(&document) + .expect("closed Payment problem schema"); + for &code in PaymentProblemCode::ALL { + let body = serde_json::to_value(PaymentProblem::from(code)).unwrap(); + assert!(schema.is_valid(&body), "{body}"); + for (field, wrong) in [ + ( + "type", + json!(format!("urn:registry:problem:{}", code.as_str())), + ), + ("status", json!(599)), + ("title", json!("an unrelated payment problem")), + ] { + let mut mutated = body.clone(); + mutated[field] = wrong; + assert!(!schema.is_valid(&mutated), "{mutated}"); + } + } +} diff --git a/crates/registry-render/src/auth.rs b/crates/registry-render/src/auth.rs index dc275abfa9..a95b87b592 100644 --- a/crates/registry-render/src/auth.rs +++ b/crates/registry-render/src/auth.rs @@ -256,7 +256,7 @@ impl Callers { .get(client) .is_none_or(|owner| owner.as_str() == &*caller.issuer_id) }); - // Correlate the exact verified credential, as in legacy API-key mode. + // Correlate the exact verified credential, as in shared API-key mode. // Issuer, subject, and client claims are never written into the audit event. Ok(Authenticated { caller_fingerprint, @@ -266,7 +266,7 @@ impl Callers { } /// The callers of a runtime that configures OIDC authentication. `None` for -/// the legacy API key. +/// the shared API key. pub(crate) async fn callers( runtime: &RenderRuntime, witness: Option<®istry_platform_config::DevelopmentWitness>, diff --git a/crates/registry-render/src/cli.rs b/crates/registry-render/src/cli.rs index 6c82faa9c4..c90f7f4505 100644 --- a/crates/registry-render/src/cli.rs +++ b/crates/registry-render/src/cli.rs @@ -310,6 +310,10 @@ pub enum Command { #[command(subcommand)] Generate(GenerateCommand), /// Serve the HTTP rendering API (see the runtime YAML). + /// + /// Configure OIDC authentication with authentication.oidc, or shared API + /// key authentication with authentication.apiKeyRef for unsigned rendering. + /// Sealing requires OIDC. Serve { /// Runtime configuration file. #[arg(long = "runtime-config", value_name = "ABSOLUTE_FILE")] @@ -501,7 +505,7 @@ fn run_inner(cli: Cli) -> Result { if seal { return Err(RenderProblem::new( crate::problem::ProblemKind::InvalidArgument, - "`check --seal` was the old way to build a package: run `registry-render check`, then build a deployment package with `registry-render package --bundle --output `. To seal documents with a PAdES signature, declare `signing.seals` in the runtime file and call `POST /v1/seal/{type}`.", + "`check --seal` was the old way to build a package: run `registry-render check`, then build a deployment package with `registry-render package --bundle --output `. To seal documents with a PAdES signature, declare `signing.seals` in the runtime file and call `POST /v1/seal/{documentType}`.", )); } let declaration = if production && posture.as_deref() == Some("development") { @@ -619,7 +623,7 @@ fn run_inner(cli: Cli) -> Result { Command::Seal { bundle } => Err(RenderProblem::new( crate::problem::ProblemKind::InvalidArgument, format!( - "`seal` was the old name for `package`: build a deployment package with `registry-render package --bundle {} --output `. To seal documents with a PAdES signature, declare `signing.seals` in the runtime file and call `POST /v1/seal/{{type}}`.", + "`seal` was the old name for `package`: build a deployment package with `registry-render package --bundle {} --output `. To seal documents with a PAdES signature, declare `signing.seals` in the runtime file and call `POST /v1/seal/{{documentType}}`.", bundle.display() ), )), diff --git a/crates/registry-render/src/openapi.rs b/crates/registry-render/src/openapi.rs index 0dd3bdf839..76087f1bb4 100644 --- a/crates/registry-render/src/openapi.rs +++ b/crates/registry-render/src/openapi.rs @@ -2,13 +2,13 @@ //! generator; the JSON file is the contract, and the serve tests pin its routes. //! //! The document describes every route, the seal route included. A -//! deployment without a `signing` block does not mount `/v1/seal/{type}`, +//! deployment without a `signing` block does not mount `/v1/seal/{documentType}`, //! so it serves the document without that path ([`served`]). use std::sync::OnceLock; /// The seal route, present only in a deployment that declares seals. -pub const SEAL_PATH: &str = "/v1/seal/{type}"; +pub const SEAL_PATH: &str = "/v1/seal/{documentType}"; /// The OpenAPI document a deployment serves: the whole contract when it /// seals, and the contract without the seal route when it does not. diff --git a/crates/registry-render/src/runtime.rs b/crates/registry-render/src/runtime.rs index d6cc696eb8..a1c0b4653f 100644 --- a/crates/registry-render/src/runtime.rs +++ b/crates/registry-render/src/runtime.rs @@ -340,8 +340,12 @@ fn default_shutdown_grace( #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] #[serde(deny_unknown_fields, rename_all = "camelCase")] pub struct AuthenticationRuntime { - /// Secret reference to the caller API key, under a declared provider. - /// Omit when OIDC authentication is configured. + /// Secret reference to the shared API key, under a declared provider: one + /// static bearer credential that every request presents. It is supported for a + /// single trusted caller where no OIDC issuer is available. It never seals. + /// Every request carries the same key, so the audit records one fingerprint + /// for all calls and cannot tell callers apart. Omit when OIDC authentication + /// is configured. #[cfg_attr( feature = "schema", schemars(with = "registry_platform_config::SecretReference") @@ -1536,7 +1540,7 @@ fn findings( (None, Some(api_key_ref)) => { if let Err(error) = runtime.secret_providers.check_reference("authentication.apiKeyRef", api_key_ref) { findings.push(block_finding(&error)); } } - _ => findings.push(Finding { code: "render.runtime.authentication", pointer: "/authentication".to_owned(), message: "authentication must configure exactly one of oidc or apiKeyRef".to_owned(), action: "Configure authentication.oidc for the Render resource, or one legacy apiKeyRef; remove the other mode.".to_owned() }), + _ => findings.push(Finding { code: "render.runtime.authentication", pointer: "/authentication".to_owned(), message: "authentication must configure exactly one of oidc or apiKeyRef".to_owned(), action: "Configure authentication.oidc for the Render resource, or one shared API key in apiKeyRef; remove the other mode.".to_owned() }), } if let Err(error) = runtime.audit.settings() { findings.push(audit_finding(&error)); @@ -1665,13 +1669,13 @@ fn signing_findings( message, action: action.to_owned(), }; - // With the legacy key, `authentication` already carries its own refusal when it is + // With the shared key, `authentication` already carries its own refusal when it is // neither mode; only the key mode makes sealing impossible. if runtime.authentication.oidc.is_none() && runtime.authentication.api_key_ref.is_some() { findings.push(finding( "render.runtime.signing-requires-oidc", "/signing".to_owned(), - "signing needs OIDC authentication: the legacy API key cannot say which client is \ + "signing needs OIDC authentication: the shared API key cannot say which client is \ sealing, so it can never be allowed to seal" .to_owned(), "Configure authentication.oidc and name the sealing clients in each seal's allowedClients, or \ @@ -1766,10 +1770,12 @@ fn signing_findings( _ => {} } if let Some(authority) = &seal.timestamp_authority { - if !registry_platform_httputil::client::transport_protects_the_credential( - &authority.url.to_url(), - ) { - findings.push(finding( + // The same selection the seal's timestamp client is built on, so + // check refuses what serve would refuse at startup. + let url = authority.url.to_url(); + match registry_platform_httputil::select::select_credential_destination(&url, None, &[]) + { + Err(_) => findings.push(finding( "render.runtime.insecure-timestamp-url", format!("{base}/timestampAuthority/url"), format!( @@ -1778,7 +1784,34 @@ fn signing_findings( ), "Use the https URL of the timestamp authority; use http only for a test \ authority on localhost.", - )); + )), + Ok(selected) => { + if selected.validate_literal_host().is_err() { + findings.push(finding( + "render.runtime.timestamp-address-refused", + format!("{base}/timestampAuthority/url"), + format!( + "signing.seals.{id}.timestampAuthority.url names an address \ + Render does not dial: link-local, multicast, unspecified or a \ + cloud metadata address" + ), + "Use the URL of the timestamp authority on a routable or private \ + address.", + )); + } + if authority.ca_bundle_ref.is_some() && url.scheme() != "https" { + findings.push(finding( + "render.runtime.seal-timestamp-ca-bundle-requires-https", + format!("{base}/timestampAuthority/url"), + format!( + "signing.seals.{id}.timestampAuthority.caBundleRef applies only \ + to an https timestampAuthority.url" + ), + "Use the https URL of the timestamp authority, or remove \ + caBundleRef.", + )); + } + } } } let clients_pointer = format!("{base}/allowedClients"); @@ -2765,7 +2798,7 @@ mod tests { } #[test] - fn oidc_is_an_explicit_alternative_to_the_legacy_key() { + fn oidc_is_an_explicit_alternative_to_the_shared_key() { let (_dir, home) = home(); let oidc = OIDC_ONE_ISSUER; let text = minimal(&home).replace("apiKeyRef: secret:file/api.key", oidc); @@ -4073,6 +4106,19 @@ mod tests { "render.runtime.insecure-timestamp-url", "/signing/seals/ministry/timestampAuthority/url", ), + ( + SEAL.replace("https://tsa.example.test", "https://169.254.169.254"), + "render.runtime.timestamp-address-refused", + "/signing/seals/ministry/timestampAuthority/url", + ), + ( + SEAL.replace( + " url: https://tsa.example.test/tsr\n", + " url: http://127.0.0.1:8318/tsr\n caBundleRef: secret:file/tsa-ca.pem\n", + ), + "render.runtime.seal-timestamp-ca-bundle-requires-https", + "/signing/seals/ministry/timestampAuthority/url", + ), ( SEAL.replace(ts_url, &format!("{ts_url} attemptTimeoutMilliseconds: 999\n")), "config.out-of-range", @@ -4332,7 +4378,7 @@ mod tests { } #[test] - fn signing_needs_oidc_and_refuses_the_legacy_key() { + fn signing_needs_oidc_and_refuses_the_shared_key() { let (_dir, home) = home(); let text = format!("{}signing:\n seals:\n{SEAL}", minimal(&home)); let problem = refused(&home, &text); diff --git a/crates/registry-render/src/seal.rs b/crates/registry-render/src/seal.rs index 0d0a120481..aa75ad8381 100644 --- a/crates/registry-render/src/seal.rs +++ b/crates/registry-render/src/seal.rs @@ -1179,7 +1179,7 @@ impl TimestampFailure { struct TimestampAuthority { seal_id: String, url: reqwest::Url, - client: reqwest::Client, + client: registry_platform_httputil::DestinationClient, peer_policy: registry_platform_httputil::PeerPolicy, } @@ -1237,26 +1237,51 @@ impl TimestampAuthority { ) }; let url = reqwest::Url::parse(authority.url.to_url().as_str()).map_err(|_| unusable())?; + // The request carries no credential, but the authority answers for + // the institution's seal, so it takes the same protected selection + // the runtime check applies: https, or plain http to loopback. + let selected = + registry_platform_httputil::select::select_credential_destination(&url, None, &[]) + .map_err(|_| unusable())?; + selected.validate_literal_host().map_err(|_| unusable())?; let attempt_timeout = authority.attempt_timeout(); - let client = registry_platform_httputil::client::build_client( - registry_platform_httputil::client::OutboundOptions { - request_timeout: attempt_timeout, - connect_timeout: attempt_timeout, - user_agent: Some("registry-render"), - trusted_root_certificates, - }, - ) - .map_err(|reason| match trusted_root_certificates { - None => unusable(), - Some(_) => refusal( - seal_id, - "timestampAuthority/caBundleRef", - "render.runtime.seal-timestamp-ca-bundle-invalid", - format!("signing.seals.{seal_id}.timestampAuthority.caBundleRef: {reason}"), - "Store the PEM certificates of the authorities that issue the timestamp \ + let mut builder = registry_platform_httputil::OutboundClientBuilder::new() + .timeout(attempt_timeout) + .connect_timeout(attempt_timeout) + .user_agent("registry-render") + .destination(&selected); + if let Some(pem) = trusted_root_certificates { + builder = builder.trusted_root_certificates(pem); + } + let client = builder + .try_build() + .map_err(|error| match (error, trusted_root_certificates) { + ( + registry_platform_httputil::OutboundClientBuildError::ConfiguredRootsRequireHttps, + _, + ) => refusal( + seal_id, + "timestampAuthority/url", + "render.runtime.seal-timestamp-ca-bundle-requires-https", + format!( + "signing.seals.{seal_id}.timestampAuthority.caBundleRef applies only to \ + an https timestampAuthority.url" + ), + "Use the https URL of the timestamp authority, or remove caBundleRef.", + ), + (_, None) => unusable(), + (error, Some(_)) => refusal( + seal_id, + "timestampAuthority/caBundleRef", + "render.runtime.seal-timestamp-ca-bundle-invalid", + format!( + "signing.seals.{seal_id}.timestampAuthority.caBundleRef: {}", + error.reason() + ), + "Store the PEM certificates of the authorities that issue the timestamp \ authority's TLS certificate under the reference.", - ), - })?; + ), + })?; Ok(Self { seal_id: seal_id.to_owned(), url, @@ -1296,16 +1321,33 @@ impl TimestampAuthority { }; let nonce = random_timestamp_nonce().map_err(|_| internal())?; let query = timestamp_request(signature_value, nonce).map_err(|_| internal())?; + let mut request = reqwest::Request::new(reqwest::Method::POST, self.url.clone()); + let headers = request.headers_mut(); + headers.insert( + reqwest::header::CONTENT_TYPE, + reqwest::header::HeaderValue::from_static(TIMESTAMP_QUERY), + ); + headers.insert( + reqwest::header::ACCEPT, + reqwest::header::HeaderValue::from_static(TIMESTAMP_REPLY), + ); + *request.body_mut() = Some(query.into()); let response = self .client - .post(self.url.clone()) - .header(reqwest::header::CONTENT_TYPE, TIMESTAMP_QUERY) - .header(reqwest::header::ACCEPT, TIMESTAMP_REPLY) - .body(query) - .send() + .execute(request) .await - .map_err(|error| { - self.failure(TimestampFailure::Unreachable, transport_reason(&error)) + .map_err(|error| match error { + registry_platform_httputil::DestinationClientError::Request(error) + if destination_refused(&error) => + { + self.failure(TimestampFailure::Refused, "destination-refused") + } + registry_platform_httputil::DestinationClientError::Request(error) => { + self.failure(TimestampFailure::Unreachable, transport_reason(&error)) + } + // The request URL is the selected one, so the client never + // refuses its origin or host. + _ => internal(), })?; registry_platform_httputil::validate_response_headers(response.headers(), self.peer_policy) .map_err(|_| self.failure(TimestampFailure::Refused, "response-headers"))?; @@ -1339,6 +1381,23 @@ impl TimestampAuthority { /// The reason for a transport failure: the attempt timeout, or any other /// connection failure. +/// Whether the selected client refused the address the authority's host +/// resolved to, rather than failing to reach it: retrying cannot help, so +/// it is reported as a refusal, not as unreachable. +fn destination_refused(error: &reqwest::Error) -> bool { + let mut source = std::error::Error::source(error); + while let Some(cause) = source { + if cause + .downcast_ref::() + .is_some() + { + return true; + } + source = cause.source(); + } + false +} + fn transport_reason(error: &reqwest::Error) -> &'static str { if error.is_timeout() { "timed-out" @@ -1391,6 +1450,64 @@ mod tests { .expect("a free place") } + /// The timestamp authority client is confined to the destination the + /// shared selector chooses: https, or plain http to an explicit + /// loopback host. A cloud metadata address is never dialled, and plain + /// http elsewhere never builds a client, whatever the runtime check + /// said first. + #[test] + fn the_timestamp_authority_client_follows_the_selector() { + let authority = |url: &str| -> TimestampAuthorityRuntime { + serde_json::from_value(serde_json::json!({ "url": url })).expect("authority") + }; + let built = |url: &str| { + TimestampAuthority::new( + "ministry", + &authority(url), + None, + registry_platform_httputil::PeerPolicy::RefuseDevelopmentPeer, + ) + }; + for admitted in [ + "https://tsa.example.test/tsr", + "https://10.0.0.7/tsr", + "http://127.0.0.1:8080/tsr", + ] { + assert!(built(admitted).is_ok(), "{admitted}"); + } + for refused in ["https://169.254.169.254/tsr", "http://10.0.0.7/tsr"] { + let Err(problem) = built(refused) else { + panic!("{refused} builds a timestamp client"); + }; + assert!( + format!("{problem:?}").contains("render.runtime.seal-timestamp-client"), + "{refused}: {problem:?}" + ); + } + } + + /// A host name whose answer the selected client refuses, here an https + /// name resolving to loopback, fails the seal as a refusal the operator + /// must fix, never as an unreachable authority to retry later. + #[tokio::test] + async fn a_refused_answer_is_a_destination_refusal_not_unreachable() { + let authority: TimestampAuthorityRuntime = + serde_json::from_value(serde_json::json!({ "url": "https://localhost.:9/tsr" })) + .expect("authority"); + let authority = TimestampAuthority::new( + "ministry", + &authority, + None, + registry_platform_httputil::PeerPolicy::RefuseDevelopmentPeer, + ) + .expect("a name builds a client; its answer is checked at send"); + let problem = authority + .stamp(b"signature value") + .await + .expect_err("a loopback answer is refused"); + assert_eq!(problem.reason(), Some("destination-refused"), "{problem:?}"); + } + #[test] fn the_seconds_until_expiry_count_down_and_go_negative() { let pki = TestPki::generate().expect("test PKI"); diff --git a/crates/registry-render/src/server.rs b/crates/registry-render/src/server.rs index c698bed020..ef1f0e7475 100644 --- a/crates/registry-render/src/server.rs +++ b/crates/registry-render/src/server.rs @@ -10,7 +10,7 @@ //! served OpenAPI document omits it, and `/ready` carries no `signing` //! member, so a deployment that does not seal is unchanged. It requires the //! `render:seal` scope, which `render:render` does not imply, and a client -//! the seal's `allowedClients` names; the legacy API key never seals. +//! the seal's `allowedClients` names; the shared API key never seals. use std::collections::BTreeMap; use std::net::SocketAddr; @@ -497,9 +497,9 @@ fn seal_scope_guidance(service: &Service) -> &'static str { _ => SEAL_SCOPE_GUIDANCE, } } -/// The caller guidance the legacy API key receives on the seal route. -const LEGACY_KEY_GUIDANCE: &str = - "The legacy API key cannot seal; present an OIDC resource credential with the render:seal scope."; +/// The caller guidance the shared API key receives on the seal route. +const SHARED_KEY_GUIDANCE: &str = + "The shared API key cannot seal; present an OIDC resource credential with the render:seal scope."; async fn require_render_bearer( State(service): State>, @@ -600,11 +600,11 @@ async fn require_bearer( return response; } }; - // The legacy API key never seals. The runtime already refuses a signing + // The shared API key never seals. The runtime already refuses a signing // block without OIDC, so this holds even if that check is bypassed. if route == Route::Seal && service.oidc.is_none() { - let problem = RenderProblem::new(ProblemKind::Forbidden, "the legacy API key cannot seal") - .with_public_detail(LEGACY_KEY_GUIDANCE); + let problem = RenderProblem::new(ProblemKind::Forbidden, "the shared API key cannot seal") + .with_public_detail(SHARED_KEY_GUIDANCE); let (path, headers) = (request.uri().path(), request.headers()); return refuse_access( &service, @@ -695,7 +695,7 @@ struct Caller { /// The credential fingerprint, the only caller value the audit records. fingerprint: String, /// The verified OIDC client, for a seal's `allowedClients`; never - /// audited. `None` for the legacy API key or a token naming no client. + /// audited. `None` for the shared API key or a token naming no client. client_id: Option, } @@ -2796,11 +2796,11 @@ pub(crate) mod tests { assert_ne!(drawn, crate::audit::correlation()); } - /// The legacy API key never reaches the seal route, even on a service + /// The shared API key never reaches the seal route, even on a service /// that loaded a seal without OIDC: the bearer layer refuses it before /// the handler, with the guidance it needs, as one refusal entry. #[tokio::test] - async fn the_legacy_api_key_is_refused_on_the_seal_route_at_request_time() { + async fn the_shared_api_key_is_refused_on_the_seal_route_at_request_time() { use axum::body::to_bytes; use registry_platform_crypto::document_signature::test_support::TestPki; let pki = TestPki::generate().expect("test PKI"); @@ -2833,7 +2833,7 @@ pub(crate) mod tests { let body = to_bytes(response.into_body(), 16384).await.unwrap(); let body: serde_json::Value = serde_json::from_slice(&body).unwrap(); assert_eq!(body["code"], "render.forbidden"); - assert_eq!(body["detail"], LEGACY_KEY_GUIDANCE); + assert_eq!(body["detail"], SHARED_KEY_GUIDANCE); let accepted = lines.accepted(); assert_eq!(accepted.len(), 1, "{accepted:?}"); assert_eq!(accepted[0]["phase"], "response"); @@ -2938,14 +2938,14 @@ pub(crate) mod tests { /// The service a refusal case runs against. #[derive(Clone, Copy)] enum Mode { - /// The legacy API key. - Legacy, + /// The shared API key. + SharedKey, /// An OIDC verifier over a static key set. Oidc, /// An OIDC verifier whose issuer declares service actor kind. OidcDeclaredService, - /// The legacy API key on a service that loaded a seal. - LegacySealed, + /// The shared API key on a service that loaded a seal. + SharedKeySealed, /// An OIDC verifier and a seal that allows a different client. OidcSealed, /// An OIDC verifier whose key source answers 503. @@ -3003,7 +3003,7 @@ pub(crate) mod tests { ), ))); } - if matches!(mode, Mode::LegacySealed | Mode::OidcSealed) { + if matches!(mode, Mode::SharedKeySealed | Mode::OidcSealed) { let pki = TestPki::generate().expect("test PKI"); let test_seal = pki .issue_seal(registry_platform_crypto::SigningAlgorithm::Es256) @@ -3074,11 +3074,11 @@ pub(crate) mod tests { /// Every refusal the access layers and the seal handler make, with the /// check each one must record. fn refusal_cases() -> Vec { - let legacy = |key: &str| Some(format!("Bearer {key}")); + let shared_key = |key: &str| Some(format!("Bearer {key}")); vec![ RefusalCase::new( "no-authorization-header", - Mode::Legacy, + Mode::SharedKey, Method::GET, "/v1/document-types", None, @@ -3086,7 +3086,7 @@ pub(crate) mod tests { ), RefusalCase::new( "scheme-not-bearer", - Mode::Legacy, + Mode::SharedKey, Method::GET, "/v1/document-types", Some("Basic dXNlcjpwYXNz".to_owned()), @@ -3094,7 +3094,7 @@ pub(crate) mod tests { ), RefusalCase::new( "empty-bearer-token", - Mode::Legacy, + Mode::SharedKey, Method::GET, "/v1/document-types", Some("Bearer ".to_owned()), @@ -3102,7 +3102,7 @@ pub(crate) mod tests { ), RefusalCase::new( "value-shorter-than-the-scheme", - Mode::Legacy, + Mode::SharedKey, Method::GET, "/v1/document-types", Some("Basic".to_owned()), @@ -3110,7 +3110,7 @@ pub(crate) mod tests { ), RefusalCase::new( "repeated-authorization-header", - Mode::Legacy, + Mode::SharedKey, Method::GET, "/v1/document-types", None, @@ -3119,7 +3119,7 @@ pub(crate) mod tests { .raw(vec![b"Bearer first".to_vec(), b"Bearer second".to_vec()]), RefusalCase::new( "non-ascii-authorization-header", - Mode::Legacy, + Mode::SharedKey, Method::GET, "/v1/document-types", None, @@ -3127,11 +3127,11 @@ pub(crate) mod tests { ) .raw(vec![b"Bearer caf\xe9".to_vec()]), RefusalCase::new( - "legacy-key-mismatch", - Mode::Legacy, + "shared-key-mismatch", + Mode::SharedKey, Method::GET, "/v1/document-types", - legacy("canary-wrong-key-0123456789abcdef0123456789"), + shared_key("canary-wrong-key-0123456789abcdef0123456789"), "shared-secret", ), RefusalCase::new( @@ -3217,11 +3217,11 @@ pub(crate) mod tests { "scope", ), RefusalCase::new( - "legacy-key-on-seal-route", - Mode::LegacySealed, + "shared-key-on-seal-route", + Mode::SharedKeySealed, Method::POST, "/v1/seal/receipt", - legacy(TEST_API_KEY), + shared_key(TEST_API_KEY), "operation", ), RefusalCase::new( @@ -3502,7 +3502,7 @@ pub(crate) mod tests { ); // Verify OpenAPI documents 401, 403, and 503 on GET /v1/document-types and - // non-scope-only 403 descriptions on /v1/render/{type} and /v1/seal/{type}. + // non-scope-only 403 descriptions on the render and seal OpenAPI operations. let openapi: serde_json::Value = serde_json::from_str(crate::openapi::OPENAPI_JSON).unwrap(); let documents_responses = &openapi["paths"]["/v1/document-types"]["get"]["responses"]; @@ -3510,13 +3510,14 @@ pub(crate) mod tests { assert!(documents_responses.get("403").is_some()); assert!(documents_responses.get("503").is_some()); assert!( - openapi["paths"]["/v1/render/{type}"]["post"]["responses"]["403"]["description"] + openapi["paths"]["/v1/render/{documentType}"]["post"]["responses"]["403"] + ["description"] .as_str() .unwrap() .contains("admitted") ); assert!( - openapi["paths"]["/v1/seal/{type}"]["post"]["responses"]["403"]["description"] + openapi["paths"]["/v1/seal/{documentType}"]["post"]["responses"]["403"]["description"] .as_str() .unwrap() .contains("admitted") @@ -3752,7 +3753,7 @@ pub(crate) mod tests { #[tokio::test] async fn the_refusal_counter_is_exposed_from_zero_for_every_check() { - let service = refusal_service(Mode::Legacy).await; + let service = refusal_service(Mode::SharedKey).await; let text = scraped(&service, &Arc::new(Metrics::default())).await; assert!(text.contains( "# HELP render_request_refusals_total Requests refused, by the check that failed.\n# TYPE render_request_refusals_total counter\n" diff --git a/crates/registry-render/tests/golden/authentication_refusals.json b/crates/registry-render/tests/golden/authentication_refusals.json index c7ef5280ca..3828c262dd 100644 --- a/crates/registry-render/tests/golden/authentication_refusals.json +++ b/crates/registry-render/tests/golden/authentication_refusals.json @@ -86,35 +86,6 @@ }, "status": 503 }, - "legacy-key-mismatch": { - "body": { - "code": "render.unauthorized", - "detail": "Present a valid bearer credential for this Render resource.", - "status": 401, - "title": "unauthorized", - "type": "https://render.registrystack.org/problems/unauthorized" - }, - "headers": { - "cache-control": "no-store", - "content-type": "application/problem+json", - "www-authenticate": "Bearer" - }, - "status": 401 - }, - "legacy-key-on-seal-route": { - "body": { - "code": "render.forbidden", - "detail": "The legacy API key cannot seal; present an OIDC resource credential with the render:seal scope.", - "status": 403, - "title": "forbidden", - "type": "https://render.registrystack.org/problems/forbidden" - }, - "headers": { - "cache-control": "no-store", - "content-type": "application/problem+json" - }, - "status": 403 - }, "no-authorization-header": { "body": { "code": "render.unauthorized", @@ -217,6 +188,35 @@ }, "status": 403 }, + "shared-key-mismatch": { + "body": { + "code": "render.unauthorized", + "detail": "Present a valid bearer credential for this Render resource.", + "status": 401, + "title": "unauthorized", + "type": "https://render.registrystack.org/problems/unauthorized" + }, + "headers": { + "cache-control": "no-store", + "content-type": "application/problem+json", + "www-authenticate": "Bearer" + }, + "status": 401 + }, + "shared-key-on-seal-route": { + "body": { + "code": "render.forbidden", + "detail": "The shared API key cannot seal; present an OIDC resource credential with the render:seal scope.", + "status": 403, + "title": "forbidden", + "type": "https://render.registrystack.org/problems/forbidden" + }, + "headers": { + "cache-control": "no-store", + "content-type": "application/problem+json" + }, + "status": 403 + }, "token-audience": { "body": { "code": "render.unauthorized", diff --git a/crates/registry-render/tests/scaffold.rs b/crates/registry-render/tests/scaffold.rs index 6dceb6de11..20c48297d7 100644 --- a/crates/registry-render/tests/scaffold.rs +++ b/crates/registry-render/tests/scaffold.rs @@ -377,7 +377,7 @@ fn retired_seal_command_names_the_package_replacement() { run(&["init", dir.to_str().unwrap()]); let bundle = dir.to_str().unwrap(); let sealing = "To seal documents with a PAdES signature, declare `signing.seals` in the \ - runtime file and call `POST /v1/seal/{type}`."; + runtime file and call `POST /v1/seal/{documentType}`."; let refused = run(&["seal", "--bundle", bundle]); assert_eq!( refused.status.code(), @@ -1156,7 +1156,7 @@ fn openapi_document_has_no_drift() { "/ready", "/openapi.json", "/v1/document-types", - "/v1/render/{type}", + "/v1/render/{documentType}", ]; assert_eq!(paths.len(), expected_paths.len(), "{paths:?}"); for path in expected_paths { @@ -1167,7 +1167,7 @@ fn openapi_document_has_no_drift() { ["required"], serde_json::json!(["status", "posture", "developmentSettings"]) ); - let render = &paths["/v1/render/{type}"]["post"]; + let render = &paths["/v1/render/{documentType}"]["post"]; assert!( render["security"][0]["bearerAuth"].is_array(), "auth is declared and enforced" diff --git a/crates/registry-render/tests/serve.rs b/crates/registry-render/tests/serve.rs index 6e0576c264..04fa1a056e 100644 --- a/crates/registry-render/tests/serve.rs +++ b/crates/registry-render/tests/serve.rs @@ -923,6 +923,11 @@ fn the_openapi_document_declares_what_the_render_route_answers() { let document = request(server.port, "GET", "/openapi.json", &[], None); assert_eq!(document.status, 200); let openapi: serde_json::Value = serde_json::from_slice(&document.body).expect("openapi json"); + let bearer = openapi["components"]["securitySchemes"]["bearerAuth"]["description"] + .as_str() + .expect("bearer authentication description"); + assert!(bearer.contains("shared API key")); + assert!(bearer.contains("authentication.apiKeyRef")); fn media(reply: &Reply) -> &str { reply .headers @@ -965,13 +970,13 @@ fn the_openapi_document_declares_what_the_render_route_answers() { assert!(properties.contains_key(member), "missing field {member}"); } } - let operation = &openapi["paths"]["/v1/render/{type}"]["post"]; + let operation = &openapi["paths"]["/v1/render/{documentType}"]["post"]; assert!(operation["parameters"] .as_array() .unwrap() .iter() .any(|parameter| { - parameter["name"] == "type" + parameter["name"] == "documentType" && parameter["in"] == "path" && parameter["required"] == true })); diff --git a/crates/registry-render/tests/serve_seal.rs b/crates/registry-render/tests/serve_seal.rs index 4159059751..610491397c 100644 --- a/crates/registry-render/tests/serve_seal.rs +++ b/crates/registry-render/tests/serve_seal.rs @@ -99,6 +99,8 @@ struct Tsa { tls: bool, requests: Arc, content_types: Arc>>, + /// For each request: its request line, `Accept` and `User-Agent`. + wire: Arc>>, /// The root certificate the authority's timestamp chain leads to. root_pem: String, } @@ -199,7 +201,9 @@ fn start_tsa_over(mode: TsaMode, tls: Option answer_timestamp_request(stream, mode, &pki, &seen), + None => answer_timestamp_request(stream, mode, &pki, &seen, &seen_wire), Some(config) => { let Ok(connection) = tokio_rustls::rustls::ServerConnection::new(Arc::clone(config)) @@ -221,7 +225,7 @@ fn start_tsa_over(mode: TsaMode, tls: Option>, + wire: &Mutex>, ) { let (head, query) = read_http_request(&mut stream); - let content_type = head - .lines() - .filter_map(|line| line.split_once(':')) - .find(|(name, _)| name.trim().eq_ignore_ascii_case("content-type")) - .map(|(_, value)| value.trim().to_owned()) - .unwrap_or_default(); - seen.lock().unwrap().push(content_type); + let header = |wanted: &str| { + head.lines() + .filter_map(|line| line.split_once(':')) + .find(|(name, _)| name.trim().eq_ignore_ascii_case(wanted)) + .map(|(_, value)| value.trim().to_owned()) + .unwrap_or_default() + }; + seen.lock().unwrap().push(header("content-type")); + wire.lock().unwrap().push(format!( + "{} accept={} user-agent={}", + head.lines().next().unwrap_or_default(), + header("accept"), + header("user-agent") + )); if matches!(mode, TsaMode::Silent) { std::thread::sleep(Duration::from_secs(10)); return; @@ -1034,6 +1047,11 @@ fn a_b_t_seal_verifies_over_its_byte_ranges_and_carries_its_timestamp() { tsa.content_types.lock().unwrap().as_slice(), ["application/timestamp-query"] ); + assert_eq!( + tsa.wire.lock().unwrap().as_slice(), + ["POST /tsr HTTP/1.1 accept=application/timestamp-reply user-agent=registry-render"], + "the exact RFC 3161 request" + ); // The first revision is byte-stable on the seal route. let again = seal_json(&fixture, &server); @@ -1123,13 +1141,13 @@ fn the_openapi_document_declares_what_the_seal_route_answers() { include_bytes!("../../../products/render/generated/registry-render.openapi.json"); assert_eq!(reply.body.as_slice(), contract); let openapi = reply.json(); - let operation = &openapi["paths"]["/v1/seal/{type}"]["post"]; + let operation = &openapi["paths"]["/v1/seal/{documentType}"]["post"]; assert!(operation["parameters"] .as_array() .unwrap() .iter() .any(|parameter| { - parameter["name"] == "type" + parameter["name"] == "documentType" && parameter["in"] == "path" && parameter["required"] == true })); @@ -1454,7 +1472,7 @@ fn without_signing_the_seal_route_and_signing_readiness_do_not_exist() { serde_json::json!({"status":"ready","posture":"development","developmentSettings":[{"code":"render.posture.seals-not-served","pointer":"/signing"}]}) ); let openapi = request(server.port, "GET", "/openapi.json", &[], None).json(); - assert!(openapi["paths"].get("/v1/seal/{type}").is_none()); + assert!(openapi["paths"].get("/v1/seal/{documentType}").is_none()); } #[test] @@ -1654,7 +1672,7 @@ fn readiness_reports_each_seal_and_never_requests_a_timestamp() { } assert_eq!(tsa.requests.load(Ordering::SeqCst), 0); let openapi = request(server.port, "GET", "/openapi.json", &[], None).json(); - let seal = &openapi["paths"]["/v1/seal/{type}"]["post"]; + let seal = &openapi["paths"]["/v1/seal/{documentType}"]["post"]; assert!(seal["security"][0]["bearerAuth"].is_array()); for status in ["200", "400", "401", "403", "429", "502", "503"] { assert!(seal["responses"].get(status).is_some(), "{status}"); @@ -1861,7 +1879,7 @@ fn each_authorization_refusal_has_its_own_problem() { } #[test] -fn the_legacy_api_key_never_seals() { +fn the_shared_api_key_never_seals() { let pki = seal_pki(); let fixture = deployment(Some(SealSpec { tsa_url: None, diff --git a/crates/registry-stack-client-node/__test__/facade.test-d.ts b/crates/registry-stack-client-node/__test__/facade.test-d.ts index 49cda74e0a..b92b34157f 100644 --- a/crates/registry-stack-client-node/__test__/facade.test-d.ts +++ b/crates/registry-stack-client-node/__test__/facade.test-d.ts @@ -38,7 +38,7 @@ new scheduling.SchedulingClient({ baseUrl: 'https://scheduling.example.invalid/' // @ts-expect-error null is not an omission in JavaScript configuration new scheduling.SchedulingClient({ baseUrl: 'https://scheduling.example.invalid/', userAgent: null }) -bregClient.listRecords('people', { top: 25 }) +bregClient.listRecords('people', { limit: 25 }) void bregClient.registryContract('reader').then((metadata) => { const datasets: ReadonlyArray | null = metadata.statisticalDatasets diff --git a/crates/registry-stack-client-node/breg/client.d.ts b/crates/registry-stack-client-node/breg/client.d.ts index 3ab5385e9c..649d277ddc 100644 --- a/crates/registry-stack-client-node/breg/client.d.ts +++ b/crates/registry-stack-client-node/breg/client.d.ts @@ -224,7 +224,7 @@ export interface RecordOptions extends RecordProjectionOptions { } export interface ListOptions extends RecordProjectionOptions { - top?: SafeInteger | null + limit?: SafeInteger | null filter?: string | null orderby?: string | null count?: boolean | null @@ -232,7 +232,7 @@ export interface ListOptions extends RecordProjectionOptions { } export interface CollectionOptions extends RecordProjectionOptions { - top?: SafeInteger | null + limit?: SafeInteger | null filter?: string | null orderby?: string | null count?: boolean | null @@ -248,7 +248,7 @@ export interface GeoJsonOptions { accessProfile?: string | null } export interface GeoJsonListOptions extends GeoJsonOptions { - top?: SafeInteger | null + limit?: SafeInteger | null filter?: string | null orderby?: string | null count?: boolean | null @@ -257,7 +257,7 @@ export interface GeoJsonListOptions extends GeoJsonOptions { export interface ListContinuation { route: string - skiptoken: string + cursor: string format: RecordFormat accessProfile?: string | null registryIdentifier: string @@ -276,7 +276,7 @@ export interface RelationshipListContinuation extends ListContinuation { } export interface GeoJsonListContinuation { route: string - skiptoken: string + cursor: string accessProfile?: string } diff --git a/docs/site/.markdownlint-cli2.yaml b/docs/site/.markdownlint-cli2.yaml index 112de2b9d1..cdaeee0f8a 100644 --- a/docs/site/.markdownlint-cli2.yaml +++ b/docs/site/.markdownlint-cli2.yaml @@ -37,6 +37,7 @@ config: - AuthoringConfigurationReference - ConfigurationReference - ConfigurationFormatsTable + - PostureDiagnosticsTable - ConfigurationFormatChecks - EventReferenceTable - CoordinatorOperationsTable diff --git a/docs/site/astro.config.mjs b/docs/site/astro.config.mjs index c877023df3..86d466361f 100644 --- a/docs/site/astro.config.mjs +++ b/docs/site/astro.config.mjs @@ -1074,6 +1074,7 @@ export default defineConfig({ items: [ { label: 'Overview', slug: 'reference' }, { label: 'Errors and status codes', slug: 'reference/errors' }, + { label: 'Posture diagnostic codes', slug: 'reference/posture-diagnostics' }, { label: 'Receive signed deliveries', slug: 'reference/delivery-signing' }, { label: 'TypeScript clients', slug: 'reference/typescript-clients' }, { label: 'Environment variables', slug: 'reference/environment-variables' }, diff --git a/docs/site/docs/style-guide.md b/docs/site/docs/style-guide.md index 1ad1f7b453..2d80f963dd 100644 --- a/docs/site/docs/style-guide.md +++ b/docs/site/docs/style-guide.md @@ -178,6 +178,7 @@ Preferred terms. | Legacy repo paths | `registry_relay` and `decentralized-evidence-demo` appear only in historical pages or `rename_status` fields. Never in prose on a `current` page without explicit rename context. | | Standards | Use the official acronym after spelling on first use. `DCAT`, `SHACL`, `OGC API Records`, `SD-JWT VC`, `CCCEV`. Never translate. | | Base Registry Engine nouns | Six nouns, capitalised as the product prints them: `Record type` (`recordType` in a project file), `Record`, `Action`, `Plan`, `Proposal`, and `ActionReceipt`. Retired and refused by `check:config-vocabulary` on Base Registry Engine pages: entity and entities as registry nouns, change request, change control, lifecycle action and lifecycle authority. Manifest names and other products' own vocabulary are not affected. | +| Retired configuration spellings | `check:config-vocabulary` refuses each spelling in the Retired spellings table of `products/platform/CONFIG-CONVENTIONS.md` on every page. A line may name one only as a migration note. That line names the replacement in code marks, or says renamed, removed, retired or replaced before the spelling. | ## Choosing examples diff --git a/docs/site/package.json b/docs/site/package.json index 9e8e8164a3..3070ff2318 100644 --- a/docs/site/package.json +++ b/docs/site/package.json @@ -21,6 +21,7 @@ "generate": "npm run generate:source && npm run generate:archive", "generate:source": "node scripts/generate-evidence-configuration.mjs && node scripts/generate-breg-configuration.mjs && node scripts/generate-scheduling-configuration.mjs && node scripts/generate-casework-configuration.mjs && node scripts/generate-render-configuration.mjs && node scripts/generate-messaging-configuration.mjs && node scripts/generate-coordinator-configuration.mjs && node scripts/generate-documents-configuration.mjs && node scripts/generate-configuration-formats.mjs && node scripts/generate-cli-reference.mjs && node scripts/generate-breg-evidence-starter.mjs && node scripts/generate-evidence-examples.mjs", "generate:archive": "node scripts/generate-data.mjs && node scripts/fetch-openapi.mjs && node scripts/sync-repo-docs.mjs && node scripts/generate-sidebar.mjs", + "generate:posture-diagnostics": "node scripts/generate-posture-diagnostics.mjs --write", "pretest": "npm run generate", "test": "node --test \"scripts/**/*.test.mjs\"", "check:llms:built": "node scripts/check-llms.mjs", @@ -34,6 +35,7 @@ "check:relative-links": "node scripts/check-relative-links.mjs", "check:content": "node scripts/check-doc-frontmatter.mjs", "check:cli-reference": "node scripts/generate-cli-reference.mjs --check", + "check:posture-diagnostics": "node scripts/generate-posture-diagnostics.mjs --check", "check:cutover": "node scripts/check-current-doc-cutover.mjs", "check:notary-surface": "node scripts/check-notary-surface.mjs", "check:svg": "node scripts/check-svg-a11y.mjs", @@ -65,7 +67,7 @@ "check:tutorial:scheduling:dry-run": "node scripts/run-tutorial.mjs --gate scheduling --dry-run", "check:links": "npm run build && npm run check:links:built", "check": "npm run check:source && npm run build && npm run check:built:current", - "check:source": "npm run generate && npm run check:cli-reference && npm run check:evidence-links && npm run check:evidence-anchors && npm run check:draft-links && npm run check:glossary-links && npm run check:relative-links && npm run check:docset && npm run check:release-manifests && npm run check:archive-lock && npm run check:content && npm run check:cutover && npm run check:notary-surface && npm run check:markdown && npm run check:style && npm run check:style:fixtures && npm run check:openapi && npm run check:config-vocabulary && npm run check:tutorial:evidence:dry-run && npm run check:tutorial:breg:dry-run && npm run check:tutorial:casework:dry-run && npm run check:tutorial:coordinator:dry-run && npm run check:tutorial:messaging:dry-run && npm run check:tutorial:discovery:dry-run && npm run check:tutorial:render:dry-run && npm run check:tutorial:documents:dry-run && npm run check:tutorial:scheduling:dry-run && npm run check:svg", + "check:source": "npm run generate && npm run check:cli-reference && npm run check:posture-diagnostics && npm run check:evidence-links && npm run check:evidence-anchors && npm run check:draft-links && npm run check:glossary-links && npm run check:relative-links && npm run check:docset && npm run check:release-manifests && npm run check:archive-lock && npm run check:content && npm run check:cutover && npm run check:notary-surface && npm run check:markdown && npm run check:style && npm run check:style:fixtures && npm run check:openapi && npm run check:config-vocabulary && npm run check:tutorial:evidence:dry-run && npm run check:tutorial:breg:dry-run && npm run check:tutorial:casework:dry-run && npm run check:tutorial:coordinator:dry-run && npm run check:tutorial:messaging:dry-run && npm run check:tutorial:discovery:dry-run && npm run check:tutorial:render:dry-run && npm run check:tutorial:documents:dry-run && npm run check:tutorial:scheduling:dry-run && npm run check:svg", "check:built:current": "npm run check:accessibility:built && npm run check:llms:built && npm run check:seo:current && npm run check:links:current", "check:production": "npm run check:source && npm run build:dev && npm run check:production:built", "check:production:built": "DOCS_DIST_DIR=$PWD/dist/dev DOCS_PUBLIC_BASE=/dev/ npm run check:accessibility:built && DOCS_DIST_DIR=$PWD/dist/dev DOCS_PUBLIC_BASE=/dev/ npm run check:llms:built && DOCS_DIST_DIR=$PWD/dist/dev DOCS_PUBLIC_BASE=/dev/ npm run check:seo:current && DOCS_DIST_DIR=$PWD/dist/dev DOCS_PUBLIC_BASE=/dev/ npm run check:links:current", diff --git a/docs/site/scripts/check-stale-config-vocabulary.baseline b/docs/site/scripts/check-stale-config-vocabulary.baseline index 5d39d89ceb..5e2502e825 100644 --- a/docs/site/scripts/check-stale-config-vocabulary.baseline +++ b/docs/site/scripts/check-stale-config-vocabulary.baseline @@ -1,10 +1,8 @@ # Pending-rewrite baseline for check-stale-config-vocabulary.sh. # -# Each line names one page, relative to docs/site, that still carries retired -# vocabulary. The check counts and reports its lines instead of refusing them. -# The comment names the docs rewrite package that removes the vocabulary; that -# package deletes the line. A page not listed here fails the check on its -# first retired spelling. +# Each line names a page relative to docs/site with a BReg vocabulary +# exception. The check reports the BReg matches on those pages. Retired +# Evidence and Casework terms still fail on each page the gate scans. # # Not scanned: the field descriptions the generated configuration reference # renders from products/breg/generated/*/*.schema.json. Several still say @@ -14,6 +12,5 @@ # BReg rewrite, PR 5: Reference and src/data src/content/docs/reference/bregctl-publicschema-wizard.mdx # quotes the wizard's own prompts, which still say entity (crates/registry-bregctl/src/init_from_model/wizard.rs); cleared when the product renames them -# Evidence and Casework rewrite: Start and Reference -src/content/docs/operate/advanced/upgrade-and-retire.mdx # review round -src/data/projects.yaml # bounded question +# Historical BReg upgrade steps need the names used by predecessor versions. +src/content/docs/operate/advanced/upgrade-and-retire.mdx # v0.41.0 change requests and removed recovery values diff --git a/docs/site/scripts/check-stale-config-vocabulary.sh b/docs/site/scripts/check-stale-config-vocabulary.sh index b3dd26e414..885f10fe48 100755 --- a/docs/site/scripts/check-stale-config-vocabulary.sh +++ b/docs/site/scripts/check-stale-config-vocabulary.sh @@ -4,6 +4,10 @@ set -euo pipefail # CONFIG_VOCABULARY_ROOT points the check at another docs-site tree; its tests # use it to run against fixture trees. The default is this site. ROOT="${CONFIG_VOCABULARY_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}" +# The Retired spellings table under CFG-CHANGE-2 in the configuration +# conventions lists the spellings both this check and the convention lint +# refuse. CONFIG_CONVENTIONS_FILE points the check at a fixture copy. +CONVENTIONS="${CONFIG_CONVENTIONS_FILE:-$ROOT/../../products/platform/CONFIG-CONVENTIONS.md}" PATTERN='registry\.validation\.report\.v1|schema:\s*registry\.validation|checks\[\]\.(product_report|findings)|YAML parsed successfully|auth\.oidc\.(jwks_uri|allowed_typ|leeway_seconds)|(extendE|e)ntities\[\]\.events\[\]|webhook\.destinationId' PATHS=( "$ROOT/README.md" @@ -51,9 +55,10 @@ EVIDENCE_CASEWORK_RETIRED='[Aa]uthoring [Ww]orkspaces?|[Bb]ounded [Qq]uestions?| # - Registry Manifest renderings and retired Relay tool names; # - the Rust source types and functions cited by evidence anchors; # - the configure/breg-change-control page slug in links. +# shellcheck disable=SC2016 # the backticks are literal Markdown code marks ALLOWED='[Ee]ntity[ -]tags?|(audience-scoped-)?entity-reference(-list)?|[a-z_]*entity_reference[a-z_]*|[Tt]racked[ _-]?[Ee]ntit(y|ies)(_id)?|entity JSON Schemas?|SHACL entity shapes|get_metadata_entity_[a-z_]+|Entity(Extension)?Source|[a-z_]*entit(y|ies)[a-z_]*\(\)|breg-change-control|`--entity`' -# Pages that still carry retired vocabulary until a later rewrite removes it. -# Their lines are counted and reported, not refused. +# Pages with remaining BReg vocabulary exceptions. The gate counts their +# matching lines and still refuses retired Evidence and Casework terminology. BASELINE="$ROOT/scripts/check-stale-config-vocabulary.baseline" is_breg_page() { @@ -89,6 +94,36 @@ if [[ ! -f "$BASELINE" ]]; then echo "pending-rewrite baseline not found: $BASELINE" >&2 exit 2 fi +if [[ ! -f "$CONVENTIONS" ]]; then + echo "configuration conventions not found: $CONVENTIONS" >&2 + exit 2 +fi + +# One line per retired spelling: the spelling, a tab, then its replacements +# separated by tabs. Read from the first table after "**Retired spellings.**". +retired_list="$( + awk ' + index($0, "**Retired spellings.**") == 1 { found = 1; next } + found && /^\|/ { table = 1 } + found && table && !/^\|/ { exit } + found && table && /^\| `/ { + n = split($0, cells, "|") + spelling = cells[2] + if (!match(spelling, /`[^`]+`/)) next + line = substr(spelling, RSTART + 1, RLENGTH - 2) + rest = cells[3] + while (match(rest, /`[^`]+`/)) { + line = line "\t" substr(rest, RSTART + 1, RLENGTH - 2) + rest = substr(rest, RSTART + RLENGTH) + } + print line + } + ' "$CONVENTIONS" +)" +if [[ -z "$retired_list" ]]; then + echo "no Retired spellings table found in $CONVENTIONS" >&2 + exit 2 +fi # Each page is preceded by an awk assignment naming its pattern set. pages=() @@ -106,21 +141,58 @@ done < <( find "$ROOT/src/data" -maxdepth 1 -type f -name '*.yaml' -print0 ) -# The awk program reads the baseline first, then every page. A retired -# spelling on a baselined page is counted and reported; anywhere else it -# fails the check. +# The awk program reads the retired-spelling list and the BReg baseline +# first, then every page. Retired Evidence and Casework terminology fails on +# every page. Any other retired spelling on a baselined page is counted and +# reported; anywhere else it fails the check. A Retired spellings table entry +# is allowed on a line that is a migration note: it names the replacement in +# code marks, or says renamed, removed, retired or replaced before the +# spelling. The convention lint (products/platform/scripts/ +# check-config-conventions.py, MIGRATION_WORDS) uses the same words, and its +# test holds the two alternations equal. retired_status=0 ROOT="$ROOT" CROSS_PRODUCT_RETIRED="$CROSS_PRODUCT_RETIRED" BREG_RETIRED="$BREG_RETIRED" \ EVIDENCE_CASEWORK_RETIRED="$EVIDENCE_CASEWORK_RETIRED" ALLOWED="$ALLOWED" \ awk ' BEGIN { root = ENVIRON["ROOT"] "/" - narrow = ENVIRON["CROSS_PRODUCT_RETIRED"] "|" ENVIRON["EVIDENCE_CASEWORK_RETIRED"] + narrow = ENVIRON["CROSS_PRODUCT_RETIRED"] broad = narrow "|" ENVIRON["BREG_RETIRED"] + evidence_casework = ENVIRON["EVIDENCE_CASEWORK_RETIRED"] allowed = ENVIRON["ALLOWED"] pending = 0 failures = 0 } + function literal(text, out, i, c) { + out = "" + for (i = 1; i <= length(text); i++) { + c = substr(text, i, 1) + out = out (index(".$*+?()[]{}|/", c) ? "[" c "]" : c) + } + return out + } + function whole(text) { + return "(^|[^A-Za-z0-9_-])" literal(text) "([^A-Za-z0-9_-]|$)" + } + function coded(text) { + return "`([^`]*[^A-Za-z0-9_`-])?" literal(text) "([^A-Za-z0-9_`-][^`]*)?`" + } + function migration(line, index_, spelling_at, i) { + for (i = 1; i <= replacement_count[index_]; i++) { + if (line ~ replacement[index_, i]) return 1 + } + match(line, retired_pattern[index_]) + spelling_at = RSTART + return match(tolower(line), /renamed|removed|retired|replac/) && RSTART < spelling_at + } + mode == "retired" { + count_fields = split($0, fields, "\t") + retired_count++ + retired_pattern[retired_count] = whole(fields[1]) + replacement_count[retired_count] = count_fields - 1 + for (i = 2; i <= count_fields; i++) replacement[retired_count, i - 1] = coded(fields[i]) + next + } mode == "baseline" { entry = $0 sub(/#.*/, "", entry) @@ -139,12 +211,15 @@ ROOT="$ROOT" CROSS_PRODUCT_RETIRED="$CROSS_PRODUCT_RETIRED" BREG_RETIRED="$BREG_ text = $0 gsub(allowed, "", text) retired = (mode == "breg") ? broad : narrow - if (text !~ retired) next - if (page in baselined) { - count[page]++ - } else { + renamed = 0 + for (i = 1; i <= retired_count; i++) { + if ($0 ~ retired_pattern[i] && !migration($0, i)) renamed = 1 + } + if (text ~ evidence_casework || ((text ~ retired || renamed) && !(page in baselined))) { print page ":" FNR ": " $0 failures++ + } else if (text ~ retired || renamed) { + count[page]++ } } END { @@ -160,10 +235,10 @@ ROOT="$ROOT" CROSS_PRODUCT_RETIRED="$CROSS_PRODUCT_RETIRED" BREG_RETIRED="$BREG_ } exit (failures > 0) } - ' mode=baseline "$BASELINE" ${pages[@]+"${pages[@]}"} || retired_status=$? + ' mode=retired - mode=baseline "$BASELINE" ${pages[@]+"${pages[@]}"} <<<"$retired_list" || retired_status=$? if [[ "$retired_status" -eq 1 ]]; then - echo "retired vocabulary found outside the pending-rewrite baseline ($BASELINE)" >&2 + echo "retired vocabulary found (BReg exceptions: $BASELINE)" >&2 exit 1 elif [[ "$retired_status" -ne 0 ]]; then echo "retired vocabulary search failed with exit code $retired_status" >&2 diff --git a/docs/site/scripts/check-stale-config-vocabulary.test.mjs b/docs/site/scripts/check-stale-config-vocabulary.test.mjs index f42683ae29..a45d10ff13 100644 --- a/docs/site/scripts/check-stale-config-vocabulary.test.mjs +++ b/docs/site/scripts/check-stale-config-vocabulary.test.mjs @@ -11,10 +11,28 @@ const execFileAsync = promisify(execFile); const scriptDir = dirname(fileURLToPath(import.meta.url)); const gate = resolve(scriptDir, 'check-stale-config-vocabulary.sh'); -async function runGate(root) { +// A fixture copy of the Retired spellings table the gate reads from the +// configuration conventions. +const conventions = `# Conventions + +**Retired spellings.** Both checks refuse these. + +| Retired spelling | Replacement | Retired by | +|---|---|---| +| \`selectorProfiles\` | \`lookups\` | CFG-NAME-5 | +| \`bregctl dev\` | \`rstack dev\` | Platform | +| \`databaseInitializationEnvironment\` | none: delete the key | BReg | +| \`requestTimeoutSeconds\` | \`requestTimeoutMilliseconds\` | CFG-NAME-5 | +| \`retainDays\` | \`retentionDays\` | CFG-NAME-5 | +| \`selectorProfile\` | \`lookup\` | CFG-NAME-5 | + +**Not refused.** +`; + +async function runGate(root, conventionsFile = join(root, 'CONFIG-CONVENTIONS.md')) { try { const { stdout, stderr } = await execFileAsync('bash', [gate], { - env: { ...process.env, CONFIG_VOCABULARY_ROOT: root }, + env: { ...process.env, CONFIG_VOCABULARY_ROOT: root, CONFIG_CONVENTIONS_FILE: conventionsFile }, }); return { code: 0, output: `${stdout}${stderr}` }; } catch (error) { @@ -31,6 +49,7 @@ async function withFixture({ pages = {}, baseline = [] }, check) { await mkdir(join(root, 'src/data'), { recursive: true }); await mkdir(join(root, 'scripts'), { recursive: true }); await writeFile(join(root, 'README.md'), '# Fixture\n'); + await writeFile(join(root, 'CONFIG-CONVENTIONS.md'), conventions); await writeFile( join(root, 'scripts/check-stale-config-vocabulary.baseline'), `# fixture baseline\n${baseline.map((page) => `${page} # PR 2\n`).join('')}`, @@ -61,7 +80,7 @@ test('a retired word on a BReg page outside the baseline fails', async () => { const result = await runGate(root); assert.equal(result.code, 1, result.output); assert.match(result.output, /configure\/breg-access\.mdx:2: Each entity has fields\./u); - assert.match(result.output, /retired vocabulary found outside the pending-rewrite baseline/u); + assert.match(result.output, /retired vocabulary found/u); }, ); }); @@ -176,6 +195,26 @@ test('retired Evidence and Casework spellings fail on any page', async () => { } }); +test('a pending BReg rewrite cannot hide retired Evidence or Casework terminology', async () => { + const projectData = 'src/data/projects.yaml'; + await withFixture( + { + pages: { + [bregPage]: 'Each entity has fields.\nCasework owns the review round.\n', + [projectData]: 'role: Evidence answers one bounded question.\n', + }, + baseline: [bregPage, projectData], + }, + async (root) => { + const result = await runGate(root); + assert.equal(result.code, 1, result.output); + assert.ok(result.output.includes(`${bregPage}:2:`), result.output); + assert.ok(result.output.includes(`${projectData}:1:`), result.output); + assert.match(result.output, /breg-access\.mdx: 1 line\(s\) with retired vocabulary/u); + }, + ); +}); + test('an approved specification page keeps the words it was approved with', async () => { await withFixture( { pages: { 'src/content/docs/spec/rs-arc-g.mdx': 'Casework holds one review round.\n' } }, @@ -196,3 +235,74 @@ test('the existing stale configuration patterns still fail', async () => { }, ); }); + +test('a retired spelling from the conventions table fails on any page', async () => { + const page = 'src/content/docs/operate/run.mdx'; + await withFixture( + { pages: { [page]: 'Run `bregctl dev start demo`.\nDeclare `selectorProfiles` in the project.\n' } }, + async (root) => { + const result = await runGate(root); + assert.equal(result.code, 1, result.output); + assert.match(result.output, /operate\/run\.mdx:1: Run `bregctl dev start demo`\./u); + assert.match(result.output, /operate\/run\.mdx:2: Declare `selectorProfiles` in the project\./u); + }, + ); +}); + +test('a migration note may name a retired spelling', async () => { + const page = 'src/content/docs/operate/upgrade.mdx'; + const text = [ + 'Rename `selectorProfiles` to `lookups`.', + 'Delete the retired `databaseInitializationEnvironment` key.', + 'The removed `bregctl dev` command has no flags.', + '- `audit.retainDays`, now `audit.retentionDays`', + 'Use `rstack dev` where you used `bregctl dev`.', + 'A `bregctl dev-state` file and `selectorProfilesUsed` are other words.', + '', + ].join('\n'); + await withFixture({ pages: { [page]: text } }, async (root) => { + const result = await runGate(root); + assert.equal(result.code, 0, result.output); + }); +}); + +test('a retired spelling on a baselined page is counted, not refused', async () => { + const page = 'src/content/docs/operate/old.mdx'; + await withFixture( + { pages: { [page]: 'Declare `selectorProfiles`.\n' }, baseline: [page] }, + async (root) => { + const result = await runGate(root); + assert.equal(result.code, 0, result.output); + assert.match(result.output, /pending rewrite: src\/content\/docs\/operate\/old\.mdx: 1 line\(s\)/u); + }, + ); +}); + +test('the gate refuses to run without the conventions table', async () => { + await withFixture({}, async (root) => { + const missing = await runGate(root, join(root, 'absent.md')); + assert.equal(missing.code, 2, missing.output); + assert.match(missing.output, /configuration conventions not found/u); + await writeFile(join(root, 'CONFIG-CONVENTIONS.md'), '# Conventions\n'); + const empty = await runGate(root); + assert.equal(empty.code, 2, empty.output); + assert.match(empty.output, /no Retired spellings table found/u); + }); +}); + +test('teaching prose with a migration word after the spelling still fails', async () => { + const page = 'src/content/docs/operate/probe.mdx'; + const lines = [ + 'Requests that run past `requestTimeoutSeconds` are refused with `504`.', + 'Declare a `selectorProfile` for each lookup the definition needs.', + 'Set `retainDays: 30`, older audit files are removed at rotation.', + '`bregctl dev start` replaces any running stack.', + ]; + await withFixture({ pages: { [page]: `${lines.join('\n')}\n` } }, async (root) => { + const result = await runGate(root); + assert.equal(result.code, 1, result.output); + for (const [index, line] of lines.entries()) { + assert.ok(result.output.includes(`operate/probe.mdx:${index + 1}: ${line}`), result.output); + } + }); +}); diff --git a/docs/site/scripts/generate-breg-configuration.mjs b/docs/site/scripts/generate-breg-configuration.mjs index 98fbde9f21..8df60b13e2 100644 --- a/docs/site/scripts/generate-breg-configuration.mjs +++ b/docs/site/scripts/generate-breg-configuration.mjs @@ -100,6 +100,8 @@ export const SERVICE_CONTRACTS = [ export const CLIENT_CAPABILITIES = 'products/breg/contracts/client-capabilities.json'; const PROPOSAL_QUERY_TYPE = 'BRegProposalQuery.'; +const PROPOSAL_NODE_QUERY = 'BaseRegistryClient.listProposals.query'; +const PROPOSAL_PYTHON_QUERY = 'BaseRegistryClient.list_proposals.query'; async function readContracts(repoRoot, contracts) { return Promise.all(contracts.map(async (entry) => { @@ -119,14 +121,15 @@ export function proposalQueryKeys(inventory) { if (bindings === null || typeof bindings !== 'object') { throw new Error(`${CLIENT_CAPABILITIES} has no queryOptionBindings`); } - const keys = Object.entries(bindings) - .filter(([, binding]) => binding.rust.every((name) => name.startsWith(PROPOSAL_QUERY_TYPE))) - .map(([key, binding]) => ({ - key, - rust: binding.rust, - node: binding.node, - python: binding.python, - })); + const keys = []; + for (const [key, binding] of Object.entries(bindings)) { + const rust = binding.rust.filter((name) => name.startsWith(PROPOSAL_QUERY_TYPE)); + if (rust.length === 0) continue; + if (!binding.node.includes(PROPOSAL_NODE_QUERY) || !binding.python.includes(PROPOSAL_PYTHON_QUERY)) { + throw new Error(`${CLIENT_CAPABILITIES}: ${key} lacks the Proposal list query binding for Node or Python`); + } + keys.push({ key, rust, node: [PROPOSAL_NODE_QUERY], python: [PROPOSAL_PYTHON_QUERY] }); + } if (keys.length === 0) throw new Error(`${CLIENT_CAPABILITIES} binds no Proposal list query key`); return keys; } diff --git a/docs/site/scripts/generate-breg-configuration.test.mjs b/docs/site/scripts/generate-breg-configuration.test.mjs index dcc80f4d31..82bef7d34c 100644 --- a/docs/site/scripts/generate-breg-configuration.test.mjs +++ b/docs/site/scripts/generate-breg-configuration.test.mjs @@ -152,12 +152,23 @@ test('Proposal list query keys come from the client capability inventory', async assert.deepEqual(document.client_proposal_query.keys.map((entry) => entry.key), ['action', 'owner', 'target', 'state', 'cursor', 'limit', 'turn', 'pendingManualApplication']); for (const entry of document.client_proposal_query.keys) { + if (['cursor', 'limit'].includes(entry.key)) continue; assert.deepEqual(entry, { key: entry.key, ...inventory.queryOptionBindings[entry.key] }); } + for (const key of ['cursor', 'limit']) { + assert.ok(inventory.queryOptionBindings[key].rust.length > 1, `${key} is shared with record lists`); + assert.deepEqual(document.client_proposal_query.keys.find((entry) => entry.key === key), { + key, rust: [`BRegProposalQuery.${key}`], node: ['BaseRegistryClient.listProposals.query'], + python: ['BaseRegistryClient.list_proposals.query'], + }); + } assert.throws(() => proposalQueryKeys({}), /queryOptionBindings/); assert.throws(() => proposalQueryKeys({ queryOptionBindings: { accessProfile: { rust: ['BRegRecordOptions.access_profile'], node: [], python: [] }, } }), /no Proposal list query key/); + assert.throws(() => proposalQueryKeys({ queryOptionBindings: { + limit: { rust: ['BRegProposalQuery.limit'], node: ['ListOptions.limit'], python: [] }, + } }), /limit lacks the Proposal list query binding/); }); test('schema defaults preserve false, null, collections, and referenced defaults', () => { diff --git a/docs/site/scripts/generate-coordinator-configuration.test.mjs b/docs/site/scripts/generate-coordinator-configuration.test.mjs index f60c6147a1..2ba4c6d542 100644 --- a/docs/site/scripts/generate-coordinator-configuration.test.mjs +++ b/docs/site/scripts/generate-coordinator-configuration.test.mjs @@ -31,9 +31,10 @@ test('Coordinator project and runtime references carry the keys authors and oper const keys = (id) => new Set(document.contracts.find((contract) => contract.id === id) .fields.map((field) => field.key_path)); const project = keys('project'); - for (const path of ['workflow.steps', 'workflow.start', 'operations.*.uses', 'functions.*.entrypoint']) { + for (const path of ['workflow.steps', 'workflow.start', 'operations.*.uses', 'transforms.*.entrypoint']) { assert.ok(project.has(path), path); } + assert.ok(!project.has('functions.*.entrypoint')); const runtime = keys('runtime'); for (const path of [ 'connections', diff --git a/docs/site/scripts/generate-posture-diagnostics.mjs b/docs/site/scripts/generate-posture-diagnostics.mjs new file mode 100644 index 0000000000..090ec9a4f6 --- /dev/null +++ b/docs/site/scripts/generate-posture-diagnostics.mjs @@ -0,0 +1,199 @@ +import { readdir, readFile } from 'node:fs/promises'; +import { join } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { parseArgs } from 'node:util'; + +import { publishJson } from './configuration-reference.mjs'; + +const root = fileURLToPath(new URL('../../../', import.meta.url)); +const output = 'docs/site/src/data/posture-diagnostics.json'; +// Each declaration type and the fields its struct literal must give. +const declarations = { + DevelopmentSetting: ['code', 'key', 'summary', 'production'], + ExplicitProductionSetting: ['code', 'key', 'summary'], +}; +const identifier = /^[A-Za-z_]\w*$/u; + +// Keep literal strings intact and ignore comments so neither can introduce +// declaration tokens. A Rust block comment can itself contain block comments. +function rustTokens(source) { + const token = /\/\/[^\n]*|\/\*|r(#+)?"[\s\S]*?"\1|"(?:\\[\s\S]|[^"\\])*"|'(?:\\.|[^'\\\n])'|::|\w+|[^\s]/gu; + const comment = /\/\*|\*\//gu; + const tokens = []; + for (let match; (match = token.exec(source));) { + if (match[0] === '/*') { + comment.lastIndex = token.lastIndex; + let depth = 1; + while (depth) { + const boundary = comment.exec(source); + if (!boundary) throw new Error('unterminated Rust block comment'); + depth += boundary[0] === '/*' ? 1 : -1; + } + token.lastIndex = comment.lastIndex; + } else if (!match[0].startsWith('//')) { + tokens.push(match[0]); + } + } + return tokens; +} + +function skipTestItem(tokens, start) { + // Skip the following item, including other attributes and an optional body. + const closing = { '(': ')', '[': ']', '{': '}' }; + const stack = []; + for (let index = start; index < tokens.length; index++) { + const token = tokens[index]; + if (Object.hasOwn(closing, token)) { + stack.push(closing[token]); + } else if (token === stack.at(-1)) { + stack.pop(); + if (token === '}' && stack.length === 0) return index; + } else if (token === ';' && stack.length === 0) { + return index; + } + } + return tokens.length; +} + +// The declaration type named at `index`, after any path qualifier. +function settingType(tokens, index) { + while (tokens[index + 1] === '::' && identifier.test(tokens[index] ?? '')) { + index += 2; + } + return Object.hasOwn(declarations, tokens[index]) ? { type: tokens[index], end: index + 1 } : null; +} + +function readSetting(tokens, start, file, name, type) { + const fail = (message) => { + throw new Error(file + ' (' + name + '): ' + message); + }; + const fields = declarations[type]; + const literal = settingType(tokens, start); + const open = literal?.type === type ? literal.end : -1; + if (tokens[open] !== '{') fail('expected a ' + type + ' struct literal'); + + const values = {}; + let index = open + 1; + while (tokens[index] !== '}') { + const field = tokens[index]; + if (!fields.includes(field) || Object.hasOwn(values, field) || tokens[index + 1] !== ':') { + fail('expected each field ' + fields.join(', ') + ' once'); + } + const literal = tokens[index + 2]; + if (!literal?.startsWith('"')) fail(field + ' must use a string literal'); + try { + values[field] = JSON.parse(literal); + } catch { + fail(field + ' must use a string literal with JSON-compatible escapes'); + } + if (!values[field].trim()) fail(field + ' must be nonempty'); + index += 3; + if (tokens[index] === ',') index++; + else if (tokens[index] !== '}') fail(field + ' must use a single string literal'); + } + if (fields.some((field) => !Object.hasOwn(values, field))) fail('missing required field'); + // The runtime appends to the summary, so a final period breaks its message. + if (values.summary.endsWith('.')) fail('summary is a message fragment and must not end with a period'); + const crate = file.split('/')[1]; + return type === 'DevelopmentSetting' + ? { code: values.code, key: values.key, condition: values.summary, remedy: values.production, crate } + : { code: values.code, key: values.key, condition: values.summary, crate }; +} + +function readDeclarations(source, file) { + const tokens = rustTokens(source); + const rows = { DevelopmentSetting: [], ExplicitProductionSetting: [] }; + for (let index = 0; index < tokens.length; index++) { + if (tokens.slice(index, index + 7).join('') === '#[cfg(test)]') { + index = skipTestItem(tokens, index + 7); + continue; + } + if (tokens[index] !== 'static' && tokens[index] !== 'const') continue; + const name = tokens[index + 1]; + if (!identifier.test(name ?? '') || tokens[index + 2] !== ':') continue; + const declared = settingType(tokens, index + 3); + if (!declared || tokens[declared.end] !== '=') continue; + rows[declared.type].push(readSetting(tokens, declared.end + 1, file, name, declared.type)); + } + return rows; +} + +async function* rustFiles(directory, base) { + for (const entry of await readdir(join(directory, base), { withFileTypes: true })) { + const path = base + '/' + entry.name; + if (entry.isDirectory() && entry.name !== 'tests') yield* rustFiles(directory, path); + if (entry.isFile() && entry.name.endsWith('.rs') && !entry.name.endsWith('_tests.rs')) { + yield path; + } + } +} + +export async function generatePostureDiagnostics(directory) { + const byKey = { DevelopmentSetting: new Map(), ExplicitProductionSetting: new Map() }; + const sources = []; + const crates = await readdir(join(directory, 'crates'), { withFileTypes: true }); + for (const crate of crates.filter((entry) => entry.isDirectory())) { + const cratePath = 'crates/' + crate.name; + const entries = await readdir(join(directory, cratePath), { withFileTypes: true }); + if (!entries.some((entry) => entry.name === 'src' && entry.isDirectory())) continue; + for await (const file of rustFiles(directory, cratePath + '/src')) { + const source = await readFile(join(directory, file), 'utf8'); + if (!Object.keys(declarations).some((type) => source.includes(type))) continue; + const found = readDeclarations(source, file); + if (Object.values(found).some((rows) => rows.length)) sources.push(file); + for (const [type, rows] of Object.entries(found)) { + for (const row of rows) { + // Every declaration of a code and key carries the same metadata; + // the row lists each crate that declares it. + const { crate, ...metadata } = row; + const id = JSON.stringify([row.code, row.key]); + const previous = byKey[type].get(id); + if (previous && JSON.stringify(previous.metadata) !== JSON.stringify(metadata)) { + throw new Error(file + ' and ' + previous.file + ': conflicting metadata for ' + row.code + ' (' + row.key + ')'); + } + const crates = new Set(previous?.crates).add(crate); + byKey[type].set(id, { file: previous?.file ?? file, metadata, crates }); + } + } + } + } + if (!byKey.DevelopmentSetting.size) throw new Error('no DevelopmentSetting declarations found'); + const sorted = (rows) => [...rows.keys()].sort().map((id) => { + const { metadata, crates } = rows.get(id); + return { ...metadata, crates: [...crates].sort() }; + }); + return { + sources: sources.sort(), + diagnostics: sorted(byKey.DevelopmentSetting), + explicit: sorted(byKey.ExplicitProductionSetting), + }; +} + +async function main() { + const { values } = parseArgs({ + options: { check: { type: 'boolean' }, write: { type: 'boolean' }, root: { type: 'string' } }, + }); + if (Boolean(values.check) === Boolean(values.write)) { + throw new Error('pass either --check or --write'); + } + const directory = values.root ?? root; + const data = await generatePostureDiagnostics(directory); + const path = join(directory, output); + if (values.write) { + await publishJson(path, data); + } else { + const text = await readFile(path, 'utf8'); + if (text !== JSON.stringify(data, null, 2) + '\n') { + throw new Error(output + ' is out of date. Run npm run generate:posture-diagnostics in docs/site.'); + } + } +} + +if (process.argv[1] && fileURLToPath(import.meta.url) === process.argv[1]) { + try { + await main(); + } catch (error) { + console.error(error.message); + process.exitCode = 1; + } +} diff --git a/docs/site/scripts/generate-posture-diagnostics.test.mjs b/docs/site/scripts/generate-posture-diagnostics.test.mjs new file mode 100644 index 0000000000..84ee9740cb --- /dev/null +++ b/docs/site/scripts/generate-posture-diagnostics.test.mjs @@ -0,0 +1,124 @@ +import assert from 'node:assert/strict'; +import { execFile } from 'node:child_process'; +import { mkdtemp, mkdir, rm, writeFile } from 'node:fs/promises'; +import { tmpdir } from 'node:os'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { promisify } from 'node:util'; +import test from 'node:test'; + +import { generatePostureDiagnostics } from './generate-posture-diagnostics.mjs'; + +const exec = promisify(execFile); +const script = fileURLToPath(new URL('./generate-posture-diagnostics.mjs', import.meta.url)); + +function setting(name, code, key = 'mode', condition = 'development mode is selected') { + return `static ${name}: DevelopmentSetting = registry_platform_config::DevelopmentSetting { + code: "${code}", + key: "${key}", + summary: "${condition}", + production: + "Set a production mode.", +};`; +} + +async function fixture(t, files) { + const directory = await mkdtemp(join(tmpdir(), 'posture-diagnostics-')); + t.after(() => rm(directory, { recursive: true })); + for (const [file, contents] of Object.entries(files)) { + const path = join(directory, file); + await mkdir(dirname(path), { recursive: true }); + await writeFile(path, contents); + } + return directory; +} + +test('collects live settings and preserves both keys for a shared code', async (t) => { + const code = 'example.posture.mode'; + const first = 'crates/example/src/config.rs'; + const second = 'crates/example/src/lib.rs'; + const directory = await fixture(t, { + [first]: ` + //! ${setting('DOCUMENTED', 'test.posture.doctest').replaceAll('\n', '\n//! ')} + /* nested comment /* ${setting('COMMENT', 'test.posture.comment')} */ */ + const TEXT: &str = r#"${setting('STRING', 'test.posture.string')}"#; + #[cfg(test)] + mod fixtures { ${setting('TEST', 'test.posture.inline')} } + #[cfg(feature = "native")] + fn discover() { + ${setting('SECOND', code, 'origin')} + } + `, + [second]: `pub(crate) ${setting('FIRST', code).replace('static', 'const')} + ${setting('DUPLICATE', code)}`, + 'crates/example/src/config_tests.rs': setting('TEST', 'test.posture.external'), + 'crates/example/tests/config.rs': setting('TEST', 'test.posture.integration'), + }); + const { sources, diagnostics, explicit } = await generatePostureDiagnostics(directory); + assert.deepEqual(sources, [first, second]); + assert.deepEqual(diagnostics, ['mode', 'origin'].map((key) => ({ + code, + key, + condition: 'development mode is selected', + remedy: 'Set a production mode.', + crates: ['example'], + }))); + assert.deepEqual(explicit, []); +}); + +test('lists explicit production settings and every crate that declares a code', async (t) => { + const explicitSetting = (name, code) => `static ${name}: registry_platform_config::ExplicitProductionSetting = ExplicitProductionSetting { + code: "${code}", + key: "allowedClients", + summary: "admits every client the issuer signs for", +};`; + const directory = await fixture(t, { + 'crates/first/src/lib.rs': setting('FIRST', 'example.posture.mode') + explicitSetting('OPEN', 'platform.posture.open'), + 'crates/second/src/lib.rs': setting('SECOND', 'example.posture.mode'), + // A product's own type of the same name is not a declaration. + 'crates/third/src/check.rs': 'struct ExplicitProductionSetting { code: String }\nfn f() -> ExplicitProductionSetting { ExplicitProductionSetting { code: String::new() } }\n', + }); + const { sources, diagnostics, explicit } = await generatePostureDiagnostics(directory); + assert.deepEqual(sources, ['crates/first/src/lib.rs', 'crates/second/src/lib.rs']); + assert.deepEqual(diagnostics.map(({ code, crates }) => [code, crates]), [['example.posture.mode', ['first', 'second']]]); + assert.deepEqual(explicit, [{ + code: 'platform.posture.open', + key: 'allowedClients', + condition: 'admits every client the issuer signs for', + crates: ['first'], + }]); +}); + +test('rejects conflicting metadata and unsupported field expressions', async (t) => { + const code = 'example.posture.mode'; + const path = 'crates/example/src/lib.rs'; + const directory = await fixture(t, { + [path]: [setting('FIRST', code), setting('SECOND', code, 'mode', 'different condition')].join('\n'), + }); + await assert.rejects(generatePostureDiagnostics(directory), /conflicting metadata.*example\.posture\.mode/); + await writeFile(join(directory, path), setting('FIRST', code).replace('"Set a production mode."', 'REMEDY')); + await assert.rejects(generatePostureDiagnostics(directory), /crates\/example\/src\/lib\.rs.*production.*string literal/); + await writeFile(join(directory, path), setting('FIRST', code, 'mode', 'Development mode is selected.')); + await assert.rejects(generatePostureDiagnostics(directory), /summary is a message fragment/); +}); + +test('check fails for stale committed input without rewriting it', async (t) => { + const path = 'crates/example/src/lib.rs'; + const code = 'example.posture.mode'; + const directory = await fixture(t, { [path]: setting('FIRST', code) }); + await exec(process.execPath, [script, '--root', directory, '--write']); + await exec(process.execPath, [script, '--root', directory, '--check']); + await writeFile(join(directory, path), setting('FIRST', code, 'mode', 'changed condition')); + for (let attempt = 0; attempt < 2; attempt++) { + await assert.rejects( + exec(process.execPath, [script, '--root', directory, '--check']), + /posture-diagnostics\.json is out of date/, + ); + } + await exec(process.execPath, [script, '--root', directory, '--write']); + await exec(process.execPath, [script, '--root', directory, '--check']); +}); + +test('committed lookup matches the owned declarations', async () => { + await exec(process.execPath, [script, '--check']); +}); diff --git a/docs/site/scripts/openapi-renderer.mjs b/docs/site/scripts/openapi-renderer.mjs index 62e1b3d6c2..79d1e8190b 100644 --- a/docs/site/scripts/openapi-renderer.mjs +++ b/docs/site/scripts/openapi-renderer.mjs @@ -1,8 +1,8 @@ // starlight-openapi 0.27 assumes property/item schemas are objects when // generating examples. OpenAPI 3.1 also permits boolean JSON Schemas. Keep -// the product artifact unchanged and adapt only the renderer's input: true -// and {} accept the same values. Remove this adapter once the renderer -// supports native boolean schemas, including examples for false schemas. +// the product artifact unchanged and adapt only the renderer's input. +// Remove this adapter once the renderer supports native boolean schemas, +// including examples for prohibited properties. const schemaMaps = new Set(['properties', 'patternProperties', '$defs', 'definitions', 'dependentSchemas']); const schemaLists = new Set(['allOf', 'anyOf', 'oneOf', 'prefixItems']); @@ -19,11 +19,19 @@ export function projectOpenApiForRenderer(document) { throw new Error(`OpenAPI renderer does not support false schema at ${path}; upgrade starlight-openapi before rendering this contract`); } if (!value || typeof value !== 'object' || Array.isArray(value)) return value; - return Object.fromEntries(Object.entries(value).map(([key, child]) => { + const prohibitedProperties = []; + const result = Object.fromEntries(Object.entries(value).map(([key, child]) => { const childPath = `${path}/${escapePointer(key)}`; if (schemaMaps.has(key) && child && typeof child === 'object') { - return [key, Object.fromEntries(Object.entries(child).map(([name, entry]) => - [name, schema(entry, `${childPath}/${escapePointer(name)}`)]))]; + const entries = []; + for (const [name, entry] of Object.entries(child)) { + if (key === 'properties' && entry === false && !value.required?.includes(name)) { + prohibitedProperties.push(name); + continue; + } + entries.push([name, schema(entry, `${childPath}/${escapePointer(name)}`)]); + } + return [key, Object.fromEntries(entries)]; } if (schemaLists.has(key) && Array.isArray(child)) { return [key, child.map((entry, index) => schema(entry, `${childPath}/${index}`))]; @@ -37,6 +45,14 @@ export function projectOpenApiForRenderer(document) { if (propertyFlags.has(key) && typeof child !== 'boolean') return [key, schema(child, childPath)]; return [key, child]; })); + if (prohibitedProperties.length > 0) { + // The assertion still forbids each name. The example generator only + // visits declared properties, so it leaves these out of its fallback. + const restriction = { not: { enum: prohibitedProperties } }; + result.propertyNames = result.propertyNames === undefined + ? restriction : { allOf: [result.propertyNames, restriction] }; + } + return result; } function map(value, path, visit) { diff --git a/docs/site/scripts/openapi-renderer.test.mjs b/docs/site/scripts/openapi-renderer.test.mjs index 76611ccaf3..e8c07978d1 100644 --- a/docs/site/scripts/openapi-renderer.test.mjs +++ b/docs/site/scripts/openapi-renderer.test.mjs @@ -61,7 +61,9 @@ test('boolean schemas adapt without changing annotation values, flags, or refere }); test('false schemas fail with an actionable JSON pointer instead of an invalid generated example', () => { - const original = { components: { schemas: { 'not/allowed': { properties: { body: false } } } } }; + const original = { components: { schemas: { 'not/allowed': { + required: ['body'], properties: { body: false }, + } } } }; assert.throws(() => projectOpenApiForRenderer(original), /false schema at #\/components\/schemas\/not~1allowed\/properties\/body; upgrade starlight-openapi/); assert.equal(original.components.schemas['not/allowed'].properties.body, false); @@ -69,6 +71,41 @@ test('false schemas fail with an actionable JSON pointer instead of an invalid g assert.equal(createSchemaExampleValue({ not: {} }), 'example'); }); +test('optional prohibited properties keep their restriction and stay out of generated examples', () => { + const original = { components: { schemas: { Variant: { + type: 'object', additionalProperties: false, + propertyNames: { pattern: '^[a-zA-Z]+$' }, + properties: { code: { const: 'refusal' }, failedCheck: false, credential: false }, + } } } }; + const snapshot = structuredClone(original); + const { Variant } = projectOpenApiForRenderer(original).components.schemas; + assert.deepEqual(original, snapshot); + assert.deepEqual(Variant, { + type: 'object', additionalProperties: false, + propertyNames: { allOf: [{ pattern: '^[a-zA-Z]+$' }, { not: { enum: ['failedCheck', 'credential'] } }] }, + properties: { code: { const: 'refusal' } }, + }); + assert.deepEqual(createSchemaExampleValue(Variant), { code: 'refusal' }); +}); + +test('the published Evidence problem variants project the prohibited diagnostic without changing the contract', () => { + const source = new URL('../../../products/evidence/generated/registry-evidence.openapi.json', import.meta.url); + const original = JSON.parse(readFileSync(source, 'utf8')); + const { Problem } = projectOpenApiForRenderer(original).components.schemas; + const variants = original.components.schemas.Problem.oneOf; + assert.equal(variants.filter((variant) => variant.properties.failedCheck === false).length, 7); + for (const [index, variant] of variants.entries()) { + const projected = Problem.oneOf[index]; + if (variant.properties.failedCheck === false) { + assert.deepEqual(projected.propertyNames, { not: { enum: ['failedCheck'] } }); + assert.equal(Object.hasOwn(createSchemaExampleValue(projected), 'failedCheck'), false); + } else { + assert.deepEqual(projected, variant); + } + } + assert.deepEqual(original, JSON.parse(readFileSync(source, 'utf8'))); +}); + test('operation, callback, webhook, header, and media schemas use the same projection', () => { const data = { get: { responses: { 200: { content: { 'application/json': { schema: false } } } } } }; const operation = { parameters: [{ name: 'body', in: 'query', schema: true }], diff --git a/docs/site/src/components/PostureDiagnosticsTable.astro b/docs/site/src/components/PostureDiagnosticsTable.astro new file mode 100644 index 0000000000..1060a4059f --- /dev/null +++ b/docs/site/src/components/PostureDiagnosticsTable.astro @@ -0,0 +1,42 @@ +--- +import { diagnostics, explicit } from '../data/posture-diagnostics.json'; + +interface Props { + /** `development` lists the settings production refuses; `explicit` lists the ones it accepts. */ + kind?: 'development' | 'explicit'; + /** Only rows declared by these crates. */ + only?: string[]; + /** Leave out rows declared only by these crates. */ + except?: string[]; +} + +const { kind = 'development', only, except = [] } = Astro.props; +const rows = (kind === 'explicit' ? explicit : diagnostics).filter(({ crates }) => + only ? crates.some((crate) => only.includes(crate)) : crates.some((crate) => !except.includes(crate)), +); +// Declarations write the condition as a message fragment; show it as a sentence. +const sentence = (text: string) => text.charAt(0).toUpperCase() + text.slice(1); +--- + + + + + + + + {kind === 'development' && } + + + + + {rows.map((row) => ( + + + + + {kind === 'development' && } + + + ))} + +
CodeSettingConditionProduction remedyWhere
{row.code}{row.key}{sentence(row.condition)}{'remedy' in row ? row.remedy : ''}{row.crates.map((crate, index) => <>{index > 0 && ', '}{crate})}
diff --git a/docs/site/src/content/docs/configure/adapter-jobs.mdx b/docs/site/src/content/docs/configure/adapter-jobs.mdx index 3b756ef826..da220d4b74 100644 --- a/docs/site/src/content/docs/configure/adapter-jobs.mdx +++ b/docs/site/src/content/docs/configure/adapter-jobs.mdx @@ -317,7 +317,7 @@ There are exactly two destinations, chosen per job by what its items need. | --- | --- | --- | | Use when | The item maps to one BReg operation with no lookup: an immediate Action, or a Proposal start and submit | The item needs a lookup, a choice between operations, a wait, a person, or a write outside BReg | | Adapter holds | The BReg client behind the `direct-breg` feature, and a BReg credential | One signing key per trigger, no product client and no Coordinator crate | -| Mapping runs | In the job, as a Rhai script | In the workflow, as a Rhai Function on the same engine | +| Mapping runs | In the job, as a Rhai script | In the workflow, as a Rhai Transform | | Retry identity | Command keys derived from the job, the item key and its sequence | An event ID derived from the same three | | Accepted means | BReg committed the Action, or the Proposal is submitted | Coordinator admitted the event and opened a Run | | Follow-up | None in the job; review and application are seen in BReg and the review provider | The workflow follows the outcome with `wait-for` and reaches a person when needed | @@ -373,7 +373,7 @@ A metadata mismatch or operation refusal never selects another operation or dest {/* Evidence: crates/registry-adapter-connectors/src/coordinator_event.rs a_rotating_trigger_sends_the_current_signature_first */} {/* Evidence: crates/registry-adapter-job/src/runtime_destination.rs resolve_destination_keys */} -The job sends one event per item as a canonical JSON `HookEnvelope` in a Standard Webhooks POST to `/v1/events/{workflow}/{trigger}`. +The job sends one event per item as a canonical JSON `HookEnvelope` in a Standard Webhooks POST to `/v1/events/{workflowId}/{triggerId}`. The request carries `accept: application/json`, `content-type: application/json`, `webhook-id`, `webhook-timestamp`, and `webhook-signature`. The signature covers the envelope ID, the send time in Unix seconds, and the exact body bytes. The receiver accepts a `webhook-timestamp` up to 300 seconds before or after its own clock. diff --git a/docs/site/src/content/docs/configure/adapter.mdx b/docs/site/src/content/docs/configure/adapter.mdx index e327529484..08e5bf8788 100644 --- a/docs/site/src/content/docs/configure/adapter.mdx +++ b/docs/site/src/content/docs/configure/adapter.mdx @@ -92,7 +92,7 @@ The built-in Consultation target is the exception: the product owns its standard See [Adapter Consultation](../adapter-consultation/). The first profile, `breg-records` v1, is a starting target, not the only one. -It mirrors the Base Registry Engine (BReg) public read surface, `/v1/records/{type}` and `/v1/records/{type}/{record_id}`, with the operations `records-search` and `records-get`. +It mirrors the Base Registry Engine (BReg) public read surface, `/v1/records/{type}` and `/v1/records/{type}/{recordId}`, with the operations `records-search` and `records-get`. It adds write operations `records-create`, `records-update` and `records-patch`, and answers in the Registry Record v1 shape. A contract that a ministry already publishes can use another profile file. @@ -1023,7 +1023,7 @@ A field mapping does not establish programme membership or enable API operations - An ingestion direct destination mapping reads one source item and fills the destination BReg operation's input, or yields an item-scoped refusal. The generator wraps the mapped input in the job's destination shape (for a Proposal, `startInput` and `submitBody`). A failed required value, conversion or validation in an ingestion mapping becomes an item-scoped refusal under the profile's mapping problem, never a deployment-level stop. -Mapping for a Coordinator event destination runs in a Coordinator Function and is outside this format. +Mapping for a Coordinator event destination runs in a Coordinator Transform and is outside this format. The write direction (a record mapped to a source request body) uses the same model with the source request schema as the target, and is generated and checked only. ### Source fields diff --git a/docs/site/src/content/docs/configure/breg-access.mdx b/docs/site/src/content/docs/configure/breg-access.mdx index e24d3a7e6a..014598b643 100644 --- a/docs/site/src/content/docs/configure/breg-access.mdx +++ b/docs/site/src/content/docs/configure/breg-access.mdx @@ -292,7 +292,7 @@ An alternative counts as met only when the filter is a top-level `and` of predic included, and every field of the alternative has an `eq` predicate with a non-null value. A predicate under `or` or `not` does not count, and neither do `ne`, comparisons, `in`, `startswith`, or a test for null. Other predicates may sit beside the required ones. `$count` is held to the same rule. A -`$skiptoken` cursor carries the first page's filter under its signature, so a continuation page +`cursor` cursor carries the first page's filter under its signature, so a continuation page cannot drop or change it. `bregctl check` refuses a `requiredFilters` that: diff --git a/docs/site/src/content/docs/configure/breg-actions.mdx b/docs/site/src/content/docs/configure/breg-actions.mdx index 93398c133c..540f192d72 100644 --- a/docs/site/src/content/docs/configure/breg-actions.mdx +++ b/docs/site/src/content/docs/configure/breg-actions.mdx @@ -143,7 +143,7 @@ these rules: or `fromEffect` into an existing Record, because a value the caller chose from a stale view would overwrite a concurrent update. A create effect can still take caller values. - A `revision: unchanged` guard is refused, because it needs the condition this mode removes. -- A function plan that writes an existing Record is refused. +- A scripted Action Plan that writes an existing Record is refused. - A Proposal cannot declare `concurrency`. Omit `concurrency` for the default, which asks the caller for a condition. Turning `current-revision` @@ -246,13 +246,13 @@ only the correlated result; ## Plans and Evidence -A [Plan](../../reference/glossary/#planner) is fixed, like `deactivate-facility`'s, or computed -by a Rhai Function. `correct-address` names its Function and bounds what it may write: +A [Plan](../../reference/glossary/#action-plan) is fixed, like `deactivate-facility`'s, or computed +by a Rhai script. `correct-address` names its Action Plan and bounds what it may write: ```yaml title="registry.yaml" test-excerpt="facility/registry.yaml" plan: - type: function - function: correct-address-plan + type: scripted + actionPlan: correct-address-plan inputs: [facility, address-line, city, postal-code] writes: - id: facility-address @@ -263,7 +263,7 @@ by a Rhai Function. `correct-address` names its Function and bounds what it may - {code: invalid-postal-code, label: Postal code is invalid} ``` -The project's `functions` entry names its script: +The project's `actionPlans` entry names its script: ```rhai title="plans/correct-address.rhai" test-excerpt="facility/plans/correct-address.rhai" fn plan(ctx) { @@ -338,9 +338,9 @@ Effect order is authored order, with explicit dependencies. A forward reference refuses compilation. Aliased writes to one target fold into one revision; conflicting writes or cycles refuse atomically. -For computed effects, declare a named Function and select `plan.type: function` with its `function`, `inputs`, `writes`, and declared `refusals`. +For computed effects, declare a named Action Plan and select `plan.type: scripted` with its `actionPlan`, `inputs`, `writes`, and declared `refusals`. The write ceiling remains governed configuration. -A Function's `writes` are a ceiling, not CRUD permission: a profile allowed to invoke the Action gains no ordinary create or patch on the Record types those writes name. +A scripted Action Plan's `writes` are a ceiling, not CRUD permission: a profile allowed to invoke the Action gains no ordinary create or patch on the Record types those writes name. Rhai uses `registry.action-plan/v1` and `ctx.inputs`, and returns exactly one of two map shapes: `#{effects: [...]}` or `#{refusal: #{code: "...", field: "..."}}`, where `field` is optional. [WASM handlers](../breg-wasm-action-handlers/) have their own admitted backend contract. @@ -353,12 +353,12 @@ The [person registration example project](https://github.com/registrystack/regis crates/registry-breg/src/action_handler.rs today evidence::resolve; products/breg/acceptance/person-registration-rhai/README.md */} -A Function accepts only declared scalar inputs, including Record reference IDs. +A scripted Action Plan accepts only declared scalar inputs, including Record reference IDs. A `decimal` input arrives as its canonical JSON string. Compilation refuses a `crs84-point`, `crs84-polygon`, or `structured` input with `breg.action.handler-input-type-unsupported`; use fixed effects for those values. A `string` or `text` input must declare a `maximumLength` of at most 4,096 Unicode scalar values, so every value fits the 16,384-byte UTF-8 string budget; a larger bound fails with `breg.action.handler-input-string-bound`. -Every Function input string, timestamps included, also has a 16,384-byte admission limit. -An HTTP request exceeding a declared bound or that byte limit returns `400 request.invalid` before the Function runs. +Every scripted Action Plan input string, timestamps included, also has a 16,384-byte admission limit. +An HTTP request exceeding a declared bound or that byte limit returns `400 request.invalid` before the script runs. An omitted optional input has no key in `ctx.inputs`; an explicit JSON `null` has a key whose value is the unit value `()`. Test membership with `in` when absence matters, and guard both cases before calling a string method: @@ -371,7 +371,7 @@ family.trim(); ``` Calling a string method on an unguarded missing or null value fails the handler. -Required inputs refuse omission and null before the Function runs, and fixed-effect Actions refuse an explicit null input. +Required inputs refuse omission and null before the script runs, and fixed-effect Actions refuse an explicit null input. When an optional input is absent or null, omit the corresponding field from an effect's `set` map. Copying `()` or `null` into a required, non-null field is a handler result failure; it does not clear the field. @@ -382,7 +382,7 @@ The Rhai Action ABI provides three bounded date-string helpers: - `add_months(date, months)` adds from -12,000 through 12,000 months, clamping to the target month's last day. Invalid dates, an out-of-range result, or an offset outside those bounds fails the handler without exposing the supplied value. -A Function that calls `today()` requires `project.timezone`. +A scripted Action Plan that calls `today()` requires `project.timezone`. A caller-selected business date remains a typed input such as `asOfDate` and is caller data. Plan logic runs only when that Action is invoked and is not a Record field-validation boundary. If a rule must not be bypassed, withhold the ordinary Create profile that could write the same state without the Action. @@ -416,7 +416,7 @@ See [Schedule Actions with Record timers](../breg-record-timers/). An Action grant uses `permissions.actions`, the Action ID, `operations: [invoke]`, explicit target row boundaries, and permitted result effects. It grants no ordinary CRUD. Its target row boundaries are runtime-enforced Action authority in addition to any ordinary Record grant held by the same profile. -Every existing reference target needs current target authority, including link-only references and targets chosen by a function. +Every existing reference target needs current target authority, including link-only references and targets chosen by a scripted Action Plan. `commitGuards` checks required current facts inside the mutation transaction. A Record type's `mutationPolicy` still prevents immediate writes to Proposal-required targets. @@ -577,8 +577,8 @@ A known failed guard takes precedence over missing guard input; correcting that No availability response names a guard ID or a Record value. Availability is an observation. -It does not run a Function, test SQL uniqueness or Evidence, mint a condition token, grant mutation authority, or reserve the observed revision. -Invoke remains responsible for current authority, concurrency, form completeness, every guard, Functions, and Evidence; all required checks must succeed before effects commit. +It does not run an Action Plan script, test SQL uniqueness or Evidence, mint a condition token, grant mutation authority, or reserve the observed revision. +Invoke remains responsible for current authority, concurrency, form completeness, every guard, scripted plans, and Evidence; all required checks must succeed before effects commit. `available: true` means only that this target's field guards are currently satisfied, including the case where it has no field guards. A safely disclosed field guard that fails at commit answers `412 action.guard-failed` after current-target admission checks pass. @@ -593,7 +593,7 @@ If it fails, BReg rolls back and re-observes disclosure before returning `guardR crates/registry-breg/tests/postgres_immediate_action_requirements.rs input-required; crates/registry-breg/tests/postgres_immediate_action_requirements.rs guardReason. */} -## Test a Plan function offline +## Test a scripted Action Plan offline ```sh test-skip="uses placeholder Action and input names" bregctl check ./registry @@ -601,7 +601,7 @@ bregctl --format json explain actions ./registry bregctl project action-test ./registry --action --input /path/to/input.json --evaluation-date 2026-01-31 ``` -`action-test` runs a named Plan function over bounded synthetic JSON using logical input IDs, without a wire envelope. +`action-test` runs the Action Plan script over bounded synthetic JSON using logical input IDs, without a wire envelope. A handler that calls `today()` requires the fixed `--evaluation-date`; the command never reads the workstation clock. Add `--expect /path/to/expected.json` to check exact effects, a declared refusal, or a handler failure. The public `action-plan-branches` fixture carries all three examples. diff --git a/docs/site/src/content/docs/configure/breg-evidence.mdx b/docs/site/src/content/docs/configure/breg-evidence.mdx index c2da95bc00..bca7813ee9 100644 --- a/docs/site/src/content/docs/configure/breg-evidence.mdx +++ b/docs/site/src/content/docs/configure/breg-evidence.mdx @@ -12,7 +12,7 @@ standards_referenced: [] --- Base Registry Engine (BReg) exports an explicitly selected compiled lookup as a reviewed Source contract. -Import merges that Source, its lookups, and named preparation and extraction Functions into an existing normalised EvidenceProject. +Import merges the Source and its lookups into an existing Evidence project. The pinned Adapter pack owns request preparation and extraction. Evidence owns the AssertionDefinitions those facts answer, caller grants, minimum disclosure, signing, and deployment configuration. Live acquisition uses BReg's ordinary HTTP lookup API. @@ -128,7 +128,7 @@ evidencectl check ./evidence evidencectl test ./evidence --target ./evidence/local-target.yaml ``` -Its `evidence.yaml` owns Sources, lookups, named Functions, and AssertionDefinitions. +Its `evidence.yaml` owns Sources, lookups, Derivations, and AssertionDefinitions. `local-target.yaml` binds local resources, and `dev-authority.yaml` supplies complete disposable caller authority. The tracked inputs contain secret references, and initialisation creates owner-only local keys. @@ -139,7 +139,7 @@ evidencectl source import ./exports/registry-status --project ./evidence ``` Import creates no assertion meaning or caller grant. -Merge the maintained `starter/definitions.yaml.fragment` Functions and AssertionDefinitions into the existing `evidence.yaml`, and copy its `functions/` and `fixtures/` files. +Merge the maintained `starter/definitions.yaml.fragment` Derivations and AssertionDefinitions into the existing `evidence.yaml`, and copy its `functions/` and `fixtures/` files. The fragment is ordinary authoring input, not a complete project or an `init --starter` template. Keep the independent SQLite definition and the imported Source declarations. The resulting project has three definitions and two Sources, with 35 synthetic fixture cases across the complete composition. @@ -216,7 +216,7 @@ Select a reviewed `request` lookup when the caller's authorised selector values The ordinary export uses Evidence's optional `extract(response, selectors, context)` form. It checks the returned selected identity's scalar type and exact value before returning matched facts. A missing, wrongly typed, or mismatched identity fails as a source protocol error. -No AssertionDefinition can skip that check by replacing its derive Function. +No AssertionDefinition can skip that check by replacing its Derivation. Only the explicit fact fields enter the fact set. A fact keeps the field's declared `pattern` in both generated schemas, and a decimal fact states its declared precision and scale as a pattern. diff --git a/docs/site/src/content/docs/configure/breg-external-views.mdx b/docs/site/src/content/docs/configure/breg-external-views.mdx index 56407d020f..b3d14fef5e 100644 --- a/docs/site/src/content/docs/configure/breg-external-views.mdx +++ b/docs/site/src/content/docs/configure/breg-external-views.mdx @@ -169,7 +169,7 @@ List the licences whose holder's family name is Lee, sorted by family name, with ```sh test-skip="needs a live registry and source" bregctl api \ - '/v1/external-views/licence-holder-indexed/holder/records?accessProfile=officer&$filter=family-name%20eq%20%27Lee%27&$orderby=family-name&$count=true&$top=20' \ + '/v1/external-views/licence-holder-indexed/holder/records?accessProfile=officer&$filter=family-name%20eq%20%27Lee%27&$orderby=family-name&$count=true&limit=20' \ --url "$BREG_URL" \ --token-file "$OFFICER_TOKEN_FILE" ``` @@ -194,9 +194,9 @@ bregctl api \ } ``` -`$filter` accepts one `eq` comparison on a filterable field, against a literal or `null`. `$top` -accepts 1 to 100 and defaults to 50. When more licences match than `$top`, the response carries -`nextCursor`. For the next page, send that value as `$skiptoken` with the same `accessProfile` and +`$filter` accepts one `eq` comparison on a filterable field, against a literal or `null`. `limit` +accepts 1 to 100 and defaults to 50. When more licences match than `limit`, the response carries +`nextCursor`. For the next page, send that value as `cursor` with the same `accessProfile` and no other query option. A cursor is bound to its caller, query, and projection, and a purge or a fresh projection epoch invalidates it. diff --git a/docs/site/src/content/docs/configure/breg-history.mdx b/docs/site/src/content/docs/configure/breg-history.mdx index 47a42f805c..1d87cc8b9a 100644 --- a/docs/site/src/content/docs/configure/breg-history.mdx +++ b/docs/site/src/content/docs/configure/breg-history.mdx @@ -29,7 +29,7 @@ Three inputs select the state a query reproduces: |---|---| | `snapshot` | Which committed registry state to reproduce. Omit it to capture the latest committed state once. | | `validAt` | Optional effective date or UTC timestamp within that recorded state. Omit it to return recorded state without an effective-time filter. | -| `$skiptoken` | Expiring continuation of an already authorised query, including its exact snapshot. | +| `cursor` | Expiring continuation of an already authorised query, including its exact snapshot. | A snapshot reference is a bookmark, not a credential. Current access rules apply on every request, including after a package or policy upgrade. @@ -120,7 +120,7 @@ Any other `asOf` value answers `400 query.invalid` naming `asOf`. On a date interval, `:current` uses the registry's local date; on a timestamp interval it uses the current instant. Every `:current` and `:as-of` response echoes the `asOf` it used in collection `meta`, so a caller can record the date its answer was for. -To tell one Record in force from several without paging, read with `$top=2` and no `$count` or `$orderby`. +To tell one Record in force from several without paging, read with `limit=2` and no `$count` or `$orderby`. BReg then returns at most two items, selected after access rules, and the item count (0, 1 or 2) is the answer; `nextCursor` need not be followed. Coordinator's `breg.read-in-force/v1` uses this read with an equality filter built from its structured subject. @@ -132,7 +132,7 @@ Only a successful read with zero rows means that nothing matched. crates/registry-breg/tests/temporal_reads.rs current_and_as_of_responses_echo_the_as_of_they_used_in_meta; crates/registry-breg/tests/postgres_historical.rs snapshot_http_reconstructs_before_filters_and_keeps_pages_pinned. */} -{/* TODO[evidence]: the $top=2 in-force read and the missing or empty row-boundary claim answers (404 resource.not-found, 401 authentication.refused) have no located test. */} +{/* TODO[evidence]: the limit=2 in-force read and the missing or empty row-boundary claim answers (404 resource.not-found, 401 authentication.refused) have no located test. */} ## Query a saved state @@ -147,8 +147,8 @@ After correcting the move's effective date to June 15, a newly captured snapshot The original saved reference still returns B, subject to current authorisation and retained history. Responses contain `items` with `recordId`, `revisionId`, and selected `domainData`, plus collection `meta`, `snapshot`, `pageInfo.nextCursor`, optional `count`, and `validAt` when supplied. -Use the usual `$select`, `$filter`, `$orderby`, `$top` and `$count` options. -Follow a continuation using only `$skiptoken` and, if needed, `accessProfile`; do not repeat or override its snapshot, effective time or query options. +Use the usual `$select`, `$filter`, `$orderby`, `limit` and `$count` options. +Follow a continuation using only `cursor` and, if needed, `accessProfile`; do not repeat or override its snapshot, effective time or query options. Date intervals accept calendar dates such as `2026-06-05`. Timestamp intervals require a UTC RFC 3339 timestamp. diff --git a/docs/site/src/content/docs/configure/breg-journeys.mdx b/docs/site/src/content/docs/configure/breg-journeys.mdx index af5812bd52..740b78038b 100644 --- a/docs/site/src/content/docs/configure/breg-journeys.mdx +++ b/docs/site/src/content/docs/configure/breg-journeys.mdx @@ -54,7 +54,7 @@ bregctl explain actions facility ```text test-excerpt correct-address (proposal) inputs facility, address-line, city, postal-code - plan function plans/correct-address.rhai + Action Plan plans/correct-address.rhai write ceiling: patch facility, fields address-line, city, postal-code commit guard facility: revision unchanged ``` @@ -94,7 +94,7 @@ jurisdiction: Keep the success and the refusal; add a step for each invariant your change affects. -A plan Function has an offline loop, with input keyed by authored input ID: +A scripted Action Plan has an offline loop, with input keyed by authored input ID: ```json title="correction-input.json" test-file {"facility": "018f0c3e-7b1a-7c00-8000-000000000001", "address-line": "2 Corrected Road", "city": "Corrected city", "postal-code": "10300"} diff --git a/docs/site/src/content/docs/configure/breg-proposals.mdx b/docs/site/src/content/docs/configure/breg-proposals.mdx index 7e301f1c06..b5c1bbab57 100644 --- a/docs/site/src/content/docs/configure/breg-proposals.mdx +++ b/docs/site/src/content/docs/configure/breg-proposals.mdx @@ -16,7 +16,7 @@ Base Registry Engine (BReg) owns the draft, the frozen Plan, target authorisatio An external review authority owns review policy and decisions. The facility template declares generated CRUD for its directory, immediate registration of a facility and an assignment, and two Proposal Actions. -The reviewed-change example uses a fixed Plan when a named function is unnecessary. +The reviewed-change example uses a fixed Plan when the effects are known at authoring time. [Actions and Proposals](../breg-actions/) introduces both Action modes; this page is the Proposal reference for adopters and operators. {/* Evidence: crates/registry-breg/src/contract.rs ActionSource; @@ -99,10 +99,10 @@ mutationPolicy: ``` A direct Patch or immediate Action cannot bypass that rule. -The Action's `plan` is either `type: fixed` with ordered effects or `type: function` naming a project-local function and its write ceiling. +The Action's `plan` is either `type: fixed` with ordered effects or `type: scripted` naming a project-local `actionPlan` and its write ceiling. Effects use `fromInput`, `fromEffect`, literal `value`, and explicit clear operations. -Function code computes effects within that ceiling; it cannot invent authority or a review result. -The facility function uses `registry.action-plan/v1` and `ctx.inputs`. +The script computes effects within that ceiling. BReg retains mutation and review enforcement. +The facility Action Plan uses `registry.action-plan/v1` and `ctx.inputs`. A Proposal draft may omit an input declared `required: true` during Start, Edit, Revise, or Rebase. Every value that is present must still match its declared type, nullability, and the caller's `writableInputs` authority. diff --git a/docs/site/src/content/docs/configure/breg-record-timers.mdx b/docs/site/src/content/docs/configure/breg-record-timers.mdx index 5740c3b98e..5b023a06dc 100644 --- a/docs/site/src/content/docs/configure/breg-record-timers.mdx +++ b/docs/site/src/content/docs/configure/breg-record-timers.mdx @@ -78,7 +78,7 @@ timerGrants: The invoked Action is an ordinary immediate Action, and the timer must map every one of its inputs. The compiler refuses a timer that invokes a Proposal Action, a publicly invokable Action, or an -Action with remote Function, Evidence, commit-Evidence, or consent-issuance capability. +Action that depends on remote capabilities, Evidence checks, commit-Evidence checks, or consent issuance. A local bounded handler remains available when it needs none of those capabilities. {/* Evidence: crates/registry-breg/tests/timer_authoring.rs @@ -241,7 +241,7 @@ That coverage does not extend to actual `bregctl` process logging or to every fa Run the normal authoring checks and inspect the compiled access report: ```sh -bregctl check ./registry --production +bregctl check ./registry --posture production --require-package-closure bregctl --format json explain access ./registry ``` diff --git a/docs/site/src/content/docs/configure/breg-spatial-queries.mdx b/docs/site/src/content/docs/configure/breg-spatial-queries.mdx index 17a97ec38b..eb6ba2a558 100644 --- a/docs/site/src/content/docs/configure/breg-spatial-queries.mdx +++ b/docs/site/src/content/docs/configure/breg-spatial-queries.mdx @@ -116,7 +116,7 @@ If `$select` omits the readable primary geometry, GeoJSON emits `geometry: null` A profile that cannot read the primary geometry cannot request this representation or use bbox. A GeoJSON get does not supply a mutation ETag. -Follow `registry.pageInfo.nextCursor` with the native `$skiptoken` option and normal authorisation on every request. +Follow `registry.pageInfo.nextCursor` with the native `cursor` option and normal authorisation on every request. A cursor binds the effective query, selection, page size, profile, authority, package, and representation, so do not change those options on continuation. Pages read live data, not a frozen snapshot, so concurrent writes can affect traversal. Count remains separately authorised and opt-in. diff --git a/docs/site/src/content/docs/configure/breg-wasm-action-handlers.mdx b/docs/site/src/content/docs/configure/breg-wasm-action-handlers.mdx index 35e86845a4..2467facb5a 100644 --- a/docs/site/src/content/docs/configure/breg-wasm-action-handlers.mdx +++ b/docs/site/src/content/docs/configure/breg-wasm-action-handlers.mdx @@ -11,7 +11,7 @@ locale: en standards_referenced: [] --- -A Base Registry Engine (BReg) immediate Action can run a named WebAssembly Function instead of a +A Base Registry Engine (BReg) immediate Action can use a WebAssembly Action Plan instead of a Rhai script. You write the decision logic as a Rust function, compile it to a module, and name the module in your registry project. This page covers what a WASM handler can do, how to author and package one, the runtime configuration, and the upgrade and rollback paths. @@ -22,7 +22,7 @@ it is a function from the request inputs to one outcome document. ## What a WASM handler is -A WASM handler is one named Function with `runtime: wasm`, a project-local `source` path, +A Wasm Action Plan is one declaration under `actionPlans` with `runtime: wasm`, a project-local `source` path, `entrypoint: plan` and `abi: registry.action-plan/v1`. An immediate Action selects it from its bounded Plan. @@ -186,10 +186,10 @@ the ceilings: ## Package it into a BReg project -Declare a named Function, then select it from an immediate Action's bounded Plan: +Declare the Wasm Action Plan and select it from the immediate Action: ```yaml -functions: +actionPlans: normalize-phone-plan: runtime: wasm source: wasm/handler.wasm @@ -201,8 +201,8 @@ functions: execution: mode: immediate plan: - type: function - function: normalize-phone-plan + type: scripted + actionPlan: normalize-phone-plan inputs: [phone, region] refusals: - code: invalid-phone diff --git a/docs/site/src/content/docs/configure/breg.mdx b/docs/site/src/content/docs/configure/breg.mdx index 77b04a0d7e..c34dee5331 100644 --- a/docs/site/src/content/docs/configure/breg.mdx +++ b/docs/site/src/content/docs/configure/breg.mdx @@ -93,7 +93,7 @@ project: `project` gives the registry its identity. The rest of the file follows in this order: `package` (the source revision a production package records), `datasets`, `reviewAuthorities`, -`recordTypes`, `valueTypes`, `functions`, `actions`, `accessProfiles`, and `vocabularies`. A +`recordTypes`, `valueTypes`, `actionPlans`, `actions`, `accessProfiles`, and `vocabularies`. A project may also declare `modules`, `statisticalDatasets`, `recipients`, and `evidenceProviders`. The [configuration reference](../../reference/breg-configuration/) lists every key with its type and bounds. @@ -147,8 +147,8 @@ row boundaries to four separate kinds of grant: `permissions.records`, `permissi ## Declare Actions and plan code An [Action](../../reference/glossary/#action) is a named change with typed inputs. A -[Function](../../reference/glossary/#function) declares its runtime, source, entrypoint, ABI, -capabilities, and limits, and the Action that calls it fixes what it may write. Record hooks +[scripted Action Plan](../../reference/glossary/#action-plan) declares its runtime, source, entrypoint, ABI, +capabilities, and limits. The Action that selects it fixes what it may write. Record hooks announce committed changes; [Bind webhook receivers](../../operate/breg-webhooks/) covers delivery. @@ -256,7 +256,7 @@ History erasure removes Proposal links to erased revisions even when the current The UUID in each Record envelope remains the stable Record identity. Use a generated `string` field for an institution-facing number or code. It reads like an ordinary field, but callers and Actions cannot set or patch it. -Do not grant it in `writableFields` or a Function write ceiling. +Do not grant it in `writableFields` or a scripted Action Plan write ceiling. Add `generate` to a stored `string` field: diff --git a/docs/site/src/content/docs/configure/casework.mdx b/docs/site/src/content/docs/configure/casework.mdx index 9142040947..9a0b2c3db1 100644 --- a/docs/site/src/content/docs/configure/casework.mdx +++ b/docs/site/src/content/docs/configure/casework.mdx @@ -927,7 +927,7 @@ Successful assignment, claim, caseload transfer, release or task closure clears ## Check a deployment before activation -`caseworkctl check ./casework --production` reads the exact package input closure and points an unpaired context provider back to its authored `description` with the `provider pair` recovery command. +`caseworkctl check ./casework --posture production --require-package-closure` reads the exact package input closure and points an unpaired context provider back to its authored `description` with the `provider pair` recovery command. It writes no package and contacts no runtime dependency. `plan` reads the configured database, and `doctor` also checks the audit destination. [Deploy Registry Casework](../../operate/casework/) covers activation. diff --git a/docs/site/src/content/docs/configure/coordinator.mdx b/docs/site/src/content/docs/configure/coordinator.mdx index e6d4593921..efbef67db7 100644 --- a/docs/site/src/content/docs/configure/coordinator.mdx +++ b/docs/site/src/content/docs/configure/coordinator.mdx @@ -136,17 +136,18 @@ read-application: `type: input` reads the run's input, `type: step` an earlier call's output, and `type: literal` a fixed value. A `path` is a JSON Pointer into it. `type: fields` builds an object of up to 64 -members, and `type: function` computes the value with a Function, as `permission` and `notify` do. +members, and `type: transform` computes the value with a Transform, as `permission` and `notify` do. {/* Evidence: crates/registry-coordinator/src/cli.rs, render_explain; crates/registry-coordinator/src/authoring.rs, AuthoredStep, Mapping; crates/registry-coordinator/src/operations.rs, CATALOG. */} -## Functions +## Transforms -`notice-route` and `notice-request` are Rhai entrypoints in `functions.rhai`. `workflow.yaml` -declares each one's inputs and output by schema, here the read operation's output and the -Messaging operation's input: +Declare `notice-route` and `notice-request` under `transforms` in `workflow.yaml`. +Each [Transform](../../reference/glossary/#transform) names a Rhai entrypoint in `functions.rhai` +and declares its input and output schemas. +This Transform reads the BReg operation's output and produces the Messaging operation's input. ```yaml title="follow-up/workflow.yaml" test-excerpt="follow-up/workflow.yaml" notice-request: @@ -162,13 +163,17 @@ notice-request: operationInput: notices-submit-message ``` -A Function is pure: it has no clock, network, database, file, or credential. The host checks its +A Transform is pure: it has no clock, network, database, file, or credential. The host checks its inputs and output against those schemas and stops it at the limits `check --explain` prints. -`add_seconds` and `seconds_between` compute over instants a Function is given. +`add_seconds` and `seconds_between` compute over instants a Transform is given. {/* Evidence: crates/registry-coordinator/src/functions.rs; crates/registry-coordinator/src/definition.rs, FunctionLimits. */} +If you are upgrading an authored workflow, rename its `functions` section to `transforms`. +In each mapping, change `type: function` to `type: transform` and rename its `function` member +to `transform`. Then run `coordinatorctl check --project ./follow-up`. + ## Check a change `check` fits every mapping to the schemas it reads and feeds. Misspell the input member the read @@ -216,7 +221,7 @@ Valid runtime configuration ``` The `Definition:` digest is the workflow revision. It hashes what execution depends on: input, -steps, outcomes, and the operation and Function revisions used. Labels, descriptions (including `project.label` and `project.description`), and +steps, outcomes, and the operation and Transform revisions used. Labels, descriptions (including `project.label` and `project.description`), and `project.version` do not change it. Every run records the revision it was admitted under. {/* Evidence: crates/registry-coordinator/src/mapping_check.rs; @@ -230,11 +235,11 @@ A project separates reusable assets from the one workflow that uses them: - `project` supplies an ID, a human version label, and an optional `label` and `description`. - `contracts` optionally imports generated local product contracts. - `types` optionally names reusable JSON Schemas. -- `functions` optionally names typed pure computations, their source assets, and entrypoints. +- `transforms` optionally names typed pure computations, their source assets, and entrypoints. - `operations` names local aliases for exact versioned host operations and logical connections. - `workflow` contains the input, the deadline, the start step, the steps, and the declared outcomes. -A project can omit functions when no mapping needs one. +A project can omit `transforms` when no mapping needs one. Imported contracts are local generated artifacts the compiler reads, not runtime discovery. Schema positions accept a JSON Schema or one of `typeRef`, `operationInput`, `operationOutput`, `operationRefusal`, or `completionOutput`; a completion output names its operation and completion. `check` resolves those references locally, verifies that every incoming route provides the data a step reads, and fits mappings to the input and result contracts before anything runs. @@ -250,7 +255,7 @@ The schema execution profile is pinned in every snapshot; unknown formats and re ### Build nested objects A `fields` mapping builds an object member by member. -Each member is a reference (`input`, `step`, or `literal`) or another `fields` mapping, so a workflow builds a structured operation input without a Function: +Each member is a reference (`input`, `step`, or `literal`) or another `fields` mapping, so a workflow builds a structured operation input without a Transform: ```yaml start: @@ -278,8 +283,8 @@ start: Nesting reaches a depth of 4, counting the outermost mapping as 1, and the whole mapping holds at most 64 members across all levels. A nested object counts as one member, and so does each of its own members. -A nested member holds only references and further `fields` mappings, never a Function: compute such a value in an earlier step and reference it. -`wait-until`, `choose`, and Function `inputs` still take references only. +A nested member holds only references and further `fields` mappings, never a Transform: compute such a value in an earlier step and reference it. +`wait-until`, `choose`, and Transform `inputs` still take references only. Compilation refuses a fifth level with `mapping.fields-depth` and a 65th member with `mapping.fields-count`, each at the member's path. The compiler checks every member against the operation input schema at that member's path, and the built object is validated again before preparation. @@ -311,7 +316,7 @@ size: Conditions run in order and stop at the first decisive one, so `present: true` before a numeric test guards an optional value. A missing or wrongly typed value in any other test fails the run with `choice-invalid`; it never routes silently to `unmatched`. -A compare holds no Function and no clock. +A compare holds no Transform and no clock. A compare treats the numbers `4` and `4.0` as equal, as JSON Schema does. Casework routing uses the same `equals` and `oneOf` names but compares JSON values exactly, so `4` and `4.0` differ there. @@ -377,12 +382,12 @@ Give the deadline route its own steps, such as a notice and a finish, disjoint f {/* Evidence: crates/registry-coordinator/src/authoring.rs service_deadline_seconds, on_deadline. */} -### Function helpers +### Transform helpers Each Rhai entrypoint takes one object of its declared named inputs and returns one typed value. -A Function declares `runtime`, `source`, `entrypoint`, `inputs`, and `output`. +A Transform declares `runtime`, `source`, `entrypoint`, `inputs`, and `output`. Explicit limits can only narrow the host's ceilings on operations, calls, expressions, strings, arrays, maps, and source size. -A Function cannot obtain credentials, read a clock, or reach a filesystem, network, or database, and it cannot construct workflow steps. +A Transform cannot obtain credentials, read a clock, or reach a filesystem, network, or database, and it cannot construct workflow steps. The profile's callable names are the interpreter's own calls, the arithmetic, logic, string, array, map, and iterator packages, and these helpers: @@ -396,14 +401,14 @@ The trigonometric, hyperbolic, exponential, and logarithmic functions are not av A result that holds NaN or an infinite number is refused with `function.execution`. A top-level `const` is not visible inside a function: read it as `global::NAME` or pass it as an input. -`check` reports a call to any other name as `coordinator.function.unknown-call` at its position in the Function source, unless the source defines that name. -Calls are matched by name only, so a wrong argument count still fails when the Function runs. -The check is an authoring aid, not a security boundary: the engine refuses any name it lacks when the Function runs. +`check` reports a call to any other name as `coordinator.transform.unknown-call` at its position in the Transform source, unless the source defines that name. +Calls are matched by name only, so a wrong argument count still fails when the Transform runs. +The check is an authoring aid, not a security boundary: the engine refuses any name it lacks when the Transform runs. It also reads a string literal given to `Fn`, `is_def_fn`, or an array method such as `map` as a function name, and skips a method call whose name the source also uses as a map key or property. -`coordinatorctl explain functions` prints the names, the interpreter ABI, and the limits. +`coordinatorctl explain transforms` prints the names, the interpreter ABI, and the limits. The ABI names the helper set, so a definition frozen under an earlier ABI is refused with `definition.abi` and the project is re-authored. -{/* Evidence: crates/registry-coordinator/tests/helper_functions.rs coordinator.function.unknown-call; +{/* Evidence: crates/registry-coordinator/tests/helper_functions.rs coordinator.transform.unknown-call; crates/registry-coordinator/src/functions.rs; crates/registry-coordinator/src/definition.rs definition.abi. */} @@ -479,7 +484,7 @@ A trigger accepts a logical source, an exact event type and data-schema identity The event source owns event meaning and disclosure, and product event names and payload meanings stay in the authored project. The receiving workflow uses the same finite execution engine and independently authorised downstream connections as an explicit start. -The receiver is `POST /v1/events/{workflow}/{trigger}`. +The receiver is `POST /v1/events/{workflowId}/{triggerId}`. It accepts the shared HookEnvelope signed with Standard Webhooks using the key configured for that workflow and trigger under `eventSources`. - The authenticated source URI, the event ID, and the trigger bind admission independently of the local source alias, and the canonical event bytes bind exact retries. @@ -522,8 +527,8 @@ await-review: `timeoutSeconds` is required and shorter than the run deadline. Casework submission exposes `result`, and the BReg Proposal operations expose `proposal`. The payment collection operations expose `collection` and the disbursement operations expose `disbursement`, as [Collect and disburse payments](#collect-and-disburse-payments) describes. -An external GET operation can declare a named `bounded-poll` completion with a typed pure `interpret` Function and `intervalSeconds`. -The Function receives the saved command and the latest validated response and returns `pending`, `complete` with a typed result, or a declared `refused` code. +An external GET operation can declare a named `bounded-poll` completion with a typed pure `interpret` Transform and `intervalSeconds`. +The Transform receives the saved command and the latest validated response and returns `pending`, `complete` with a typed result, or a declared `refused` code. The host owns transport, credentials, permitted destinations, scheduling, correlation, and the durable read budget, and the workflow graph stays acyclic. External polling is independent of Casework and BReg, and neither external operation offers an arbitrary HTTP method or a dynamic destination. @@ -702,7 +707,7 @@ The link carries only the opaque ID, which grants nothing without BReg's own gra `breg.read-in-force/v1` takes `entity`, a structured `subject` of equality values on declared fields, and a calendar `date`. It never accepts a filter string. -Coordinator sends one BReg `:as-of` read with `asOf` set to the date, an equality filter built from the subject, and `$top=2`, so BReg reads at most two rows. +Coordinator sends one BReg `:as-of` read with `asOf` set to the date, an equality filter built from the subject, and `limit=2`, so BReg reads at most two rows. Only entities whose `temporal` uses date intervals are accepted; compilation refuses other imports with `definition.read-in-force-entity`. BReg applies the interval's own semantics, an exclusive end or an inclusive last day, as the record schema's `x-registry-temporal` marker states; Coordinator never evaluates the interval itself. @@ -863,7 +868,7 @@ An `external.get/v1` alias can specialise its validated response and declare a b `external.command/v1` sends one POST to a provider the operator configured. Workflow data supplies only the JSON body; the runtime connection fixes the origin, the exact relative `commandPath`, and the credential, and redirects are never followed. A connection without `commandPath` stays read-only, and `check` refuses a command alias bound to it or to a connection of another type. -The alias names a required `interpret` Function and can specialise the provider's `{status, body}` response: +The alias names a required `interpret` Transform and can specialise the provider's `{status, body}` response: ```yaml types: @@ -887,7 +892,7 @@ types: properties: state: {type: string, const: uncertain} -functions: +transforms: bill-outcome: runtime: rhai source: functions.rhai @@ -905,14 +910,14 @@ operations: interpret: bill-outcome ``` -The Function reads the frozen command and the validated response, held to the alias's `responseSchema`, and returns `accepted` with a result, `refused` with a declared code, or `uncertain`. +The Transform reads the frozen command and the validated response, held to the alias's `responseSchema`, and returns `accepted` with a result, `refused` with a declared code, or `uncertain`. The step output is the accepted `result`, typed by the `bill` schema in this example. A declared code takes `onDeclaredRefusal` as `{refusalCode}`, and an interpreter that never returns `refused` has no refusal route. -Return `uncertain` for any answer the Function does not recognise, so the run holds instead of guessing. +Return `uncertain` for any answer the Transform does not recognise, so the run holds instead of guessing. An accepted result is the provider's answer as the project interprets it; Coordinator does not independently verify the provider's effect. -Only a response whose status Coordinator neither holds nor retries reaches the Function: a redirect, a 429, and any 5xx never do. -Fixtures reply to the step with `type: response` and a `{status, body}` value, which the same Function interprets, and the status must be one the Function sees at run time. +Only a response whose status Coordinator neither holds nor retries reaches the Transform: a redirect, a 429, and any 5xx never do. +Fixtures reply to the step with `type: response` and a `{status, body}` value, which the same Transform interprets, and the status must be one the Transform sees at run time. A `success` or `declared-refusal` reply to the step is refused. `coordinatorctl test` refuses a `response` reply with a redirect, 429, or 5xx status at `scenario.reply`, naming the `uncertain` or `retryable` reply that models it. @@ -1069,7 +1074,7 @@ same for Python. Regenerate after any change that moves the revision. Give the operator the package directory, its package digest, and a `runtime.yaml` template with secret references and no secret values. For each connection, list the product, the access profile -or review policy it needs, and for Messaging the template and sender profile the Functions name. +or review policy it needs, and for Messaging the template and sender profile the Transforms name. The operator pins the package in `deployment.packages` by `root` and `expectedDigest`. One deployment serves up to sixteen workflows; each is applied, upgraded, and rolled back on its own, and a run keeps the definition it started with. diff --git a/docs/site/src/content/docs/configure/discovery.mdx b/docs/site/src/content/docs/configure/discovery.mdx index 8f2f723b03..6b762247a1 100644 --- a/docs/site/src/content/docs/configure/discovery.mdx +++ b/docs/site/src/content/docs/configure/discovery.mdx @@ -65,7 +65,7 @@ A provider gives you the HTTPS URL of its public description out of band. Check production does, with `--production`: ```sh test-exit="1" -discoveryctl check --project discovery-project --production +discoveryctl check --project discovery-project --posture production ``` ```text test-expect diff --git a/docs/site/src/content/docs/configure/evidence-oid4vp.mdx b/docs/site/src/content/docs/configure/evidence-oid4vp.mdx index b90a30d74b..6fb0ab6e2b 100644 --- a/docs/site/src/content/docs/configure/evidence-oid4vp.mdx +++ b/docs/site/src/content/docs/configure/evidence-oid4vp.mdx @@ -252,7 +252,7 @@ evidence-oid4vp openapi --output evidence-oid4vp.openapi.json Your portal creates a session at `POST /v1/sessions` with an applicant token and shows the returned wallet link; the wallet fetches the request object and posts its encrypted response; Evidence reads the result. The [wallet presentation API reference](../../reference/apis/evidence-oid4vp/) renders -the same contract. `GET /v1/sessions/{reference}` reports `pending`, `received`, or `failed`, and +the same contract. `GET /v1/sessions/{sessionReference}` reports `pending`, `received`, or `failed`, and adds a `failureCategory` when the wallet reported an error; it never returns presented content. The token issuers and their key sets can use loopback HTTP in either posture. HTTP beyond loopback requires development and `allowInsecureHttp: true`. A successful `/ready` response includes `posture` and `developmentSettings` alongside `status`. diff --git a/docs/site/src/content/docs/configure/scheduling.mdx b/docs/site/src/content/docs/configure/scheduling.mdx index cb4e5ae2ca..de0fec8bdb 100644 --- a/docs/site/src/content/docs/configure/scheduling.mdx +++ b/docs/site/src/content/docs/configure/scheduling.mdx @@ -385,7 +385,7 @@ The source that approved the grant remains independent of the booking record and The write is: ```http -PUT /v1/appointments/{appointment_id}/attendance +PUT /v1/appointments/{appointmentId}/attendance Authorization: Bearer TASK_TOKEN Idempotency-Key: caller-chosen-key Content-Type: application/json diff --git a/docs/site/src/content/docs/explanation/how-evidence-works.mdx b/docs/site/src/content/docs/explanation/how-evidence-works.mdx index 004f686292..43fe8ba834 100644 --- a/docs/site/src/content/docs/explanation/how-evidence-works.mdx +++ b/docs/site/src/content/docs/explanation/how-evidence-works.mdx @@ -30,10 +30,10 @@ file and the scripts it names, kept in version control. It declares four things. - **Lookups.** A [lookup](../../reference/glossary/#lookup) bounds what a caller may send to identify a subject. `record-by-id` admits one string field of 1 to 64 bytes, and a route input takes its value only from that field. -- **Functions.** A [Function](../../reference/glossary/#function) is a small +- **Derivations.** A [Derivation](../../reference/glossary/#derivation) is a small [Rhai](../../reference/glossary/#rhai) script with the `assertion-derive/v1` interface. It turns the route's validated facts into declared outputs. Provider response normalisation belongs to - the pack. Functions run under fixed operation and size limits and cannot import code. + the pack. Derivations run under fixed operation and size limits and cannot import code. Evidence has no built-in domain: adult status exists only because a project declares it. @@ -126,7 +126,7 @@ file, and a compiled authority; `evidence authority activate` records the author process serves them as read at startup, so a change means a new package or activation and a restart. -Each request passes five stages: the selectors are checked, the source is read, the Functions +Each request passes five stages: the selectors are checked, the source is read, the Derivations run, only declared outputs are accepted, and the assertion is signed with its definition's [`configurationRevision`](../../reference/glossary/#configuration-revision). An unsigned JSON answer, where the definition permits one, carries the revision without a signature. @@ -176,7 +176,7 @@ a retained response afterwards; the [`evidencectl` reference](../../reference/cli/evidencectl/) lists each command. Relying services pin the `configurationRevision`. It moves when you edit what a definition does, -such as its source, lookups, Functions, codelists, or outputs, and stays put for +such as its source, lookups, Derivations, codelists, or outputs, and stays put for `question` text, fixtures, credentials, grants, and signing keys. Changing the address of a source connection the definition uses also moves it. A change in meaning gets a new Requirement URI, published beside the old one for an announced period; a clarification keeps the diff --git a/docs/site/src/content/docs/explanation/where-each-rule-lives.mdx b/docs/site/src/content/docs/explanation/where-each-rule-lives.mdx index af28f5ea6a..163b7f4579 100644 --- a/docs/site/src/content/docs/explanation/where-each-rule-lives.mdx +++ b/docs/site/src/content/docs/explanation/where-each-rule-lives.mdx @@ -41,18 +41,20 @@ products hold what happens around a record. | Preconditions on current data | BReg Action `commitGuards`, with `targets` and `evidence` entries, checked when the Action commits | Guard entries on the Action | `bregctl explain actions` | | Derived values | BReg generated identifiers (`generate` on a string field) and live derived fields (reviewed SQL compiled to a read-only view) | The field's `generate` entry, or the Record type's `derived` block | `registry-project.schema.json` | | Rates, thresholds and other parameters that change over time | BReg Record type with `temporal` validity and a `temporal-non-overlap` constraint, so that one record holds each period, changed through an Action (a Proposal Action when a change needs review). A plan cannot read stored records, so a workflow reads the record in force with `breg.read-in-force/v1` and passes the values to the Action as inputs. | The Record type and the Action that changes it | `registry-project.schema.json`; `generated/operations/catalog.json` | -| Calculation and branching in an Action | BReg Action `plan`: `fixed`, a Rhai Function, or a Wasm Function | Typed Action `inputs`, declared write slots and declared refusal codes; Function ABI `registry.action-plan/v1` | `bregctl generate actions` writes the `action-contracts/v1` document | +| Calculation and branching in an Action | BReg Action `plan`: `fixed` or `scripted` with a Rhai or Wasm Action Plan | Typed Action `inputs`, declared write slots and declared refusal codes; Action Plan ABI `registry.action-plan/v1` | `bregctl generate actions` writes the `action-contracts/v1` document | | Record timers | BReg Record type `timers`, enabled by the root project's `timerGrants`; each timer invokes one non-public immediate Action | The timer declaration on the Record type | `registry-project.schema.json`; a timer-only Action has no portable Action contract | | Events and webhooks | BReg `hooks`: a `url`, `rhai` or `wasm` handler that runs after commit; local handlers use ABI `registry.hook-handler/v1` | `trigger`, `projection` and optional `when` on the hook | `bregctl explain events`; one schema for each hook in `generated/event-schemas/`, and `proposal-lifecycle.schema.json` there | | Review, then apply | BReg Proposal Action (`execution.mode: proposal`); Casework supplies the review | The Action's `review` and `application` declarations | `bregctl generate actions` | -| Multi-step or cross-product process | Registry Coordinator `workflow.yaml`: `call`, `choose`, `wait-until`, `wait-for` and `finish` steps, with pure Rhai Functions | Typed workflow input and named finishes | `generated/operations/catalog.json` and the generated project schema | +| Multi-step or cross-product process | Registry Coordinator `workflow.yaml`: `call`, `choose`, `wait-until`, `wait-for` and `finish` steps, with pure Rhai Transforms | Typed workflow input and named finishes | `generated/operations/catalog.json` and the generated project schema | | Calls to systems outside the stack | Adapter pack routes (reviewed, in Camel route YAML, with Rhai mapping scripts), bound to a profile by a project and served as a facade | The profile's operations | The Adapter effective contract | -| Answering a question about a person or record for another service | Registry Evidence: an AssertionDefinition, a Source bound to an Adapter pack route, and a derivation Function | The public Requirement URI, purpose and subject selectors | `generated/evidence-definitions-v1.schema.json` and the generated OpenAPI | +| Answering a question about a person or record for another service | Registry Evidence: an AssertionDefinition, a Source bound to an Adapter pack route, and a Derivation | The public Requirement URI, purpose and subject selectors | `generated/evidence-definitions-v1.schema.json` and the generated OpenAPI | | Documents and certificates | Registry Render (Typst template bundle, byte-stable PDF) and the Registry Document Store (custody and release of a verified version) | Render: template bundle and record data. Document Store: document policy and grants | `render/schemas/project.schema.json`; the Document Store project schema and event schemas | | Case steps | Registry Casework `ReviewPolicy`: stages, queues, outcomes and routing rules | The policy in `casework.yaml` | `generated/project/project.schema.json`; `caseworkctl explain` | | Notifications | Registry Messaging: versioned templates with a JSON Schema each, providers and sender profiles | The template's input schema | `generated/authoring/template.schema.json`; `messagingctl generate templates` | | Appointments | Registry Scheduling policy: offerings, holds and bookings, with four observer triggers | The policy | `generated/project/project.schema.json`; `schedulingctl explain` | +A [service function](../../reference/glossary/#service-function) can call product APIs within one request. Each product verifies the authority for its own calls. + {/* Evidence: crates/registry-breg/tests/native_patterns.rs; crates/registry-breg/src/immediate_actions.rs; crates/registry-breg/src/generated_identifiers.rs; crates/registry-breg/src/derived_sql.rs (live derived fields); crates/registry-breg/src/postgres/history_read.rs (temporal); @@ -71,7 +73,7 @@ products hold what happens around a record. A plan runs only when its Action is invoked. It reads no stored record and no clock. The one date a Rhai plan can read is `today()`, the registry-local date captured once for the evaluation, and a -Function that calls `today()` requires `project.timezone`. Where the Action declares Evidence, a +scripted Action Plan that calls `today()` requires `project.timezone`. Where the Action declares Evidence, a Rhai plan can also call `evidence::resolve`. A Wasm plan reads its inputs only. [Actions and Proposals](../../configure/breg-actions/) has the details. diff --git a/docs/site/src/content/docs/operate/advanced/generate-identity-configuration.mdx b/docs/site/src/content/docs/operate/advanced/generate-identity-configuration.mdx index ff7af52ba9..1099caf5a6 100644 --- a/docs/site/src/content/docs/operate/advanced/generate-identity-configuration.mdx +++ b/docs/site/src/content/docs/operate/advanced/generate-identity-configuration.mdx @@ -101,7 +101,7 @@ file, and renders the result. on its curve is not checked. {/* Evidence: crates/registry-thunderid-tooling/src/identity_generate.rs, generate(), and key_file_refusal(); - crates/registry-casework/src/config.rs authentication.oidc.humanIdentity and representedHuman. */} + crates/registry-casework/src/config.rs, the removed authentication.oidc.humanIdentity and representedHuman. */} ## Prerequisites diff --git a/docs/site/src/content/docs/operate/advanced/upgrade-and-retire.mdx b/docs/site/src/content/docs/operate/advanced/upgrade-and-retire.mdx index 6110830a36..bd3c65aa03 100644 --- a/docs/site/src/content/docs/operate/advanced/upgrade-and-retire.mdx +++ b/docs/site/src/content/docs/operate/advanced/upgrade-and-retire.mdx @@ -217,7 +217,7 @@ so a binary that cannot run leaves the installed toolset selected. `authentication.oidc.issuers` entry and replace `tokenTypes: [at+jwt]` with `accessTokenType: at+jwt`. Keep principal, tag, audience-claim, and scope settings on the outer OIDC block. Review any changed source bindings. Check and test the copied project with - `evidencectl check --target TARGET --production PROJECT` and + `evidencectl check --target TARGET --posture production --require-deployment-closure PROJECT` and `evidencectl test --target TARGET PROJECT`. Retired split authoring documents need the normalised project form. Use `evidencectl package --target TARGET --output CANDIDATE PROJECT` and install the rebuilt @@ -650,7 +650,7 @@ in this sequence. ### Retire Casework -1. Stop new producer submissions and staff mutations. Finish pending review rounds, or cancel them +1. Stop new producer submissions and staff mutations. Finish pending ReviewRequests, or cancel them through each bound producer's supported interface. Confirm that consumers have correlated the terminal results before removing their review authority. 2. Preserve the retained results and accountability your institution requires. A final `pg_dump` @@ -666,8 +666,8 @@ in this sequence. 1. Stop every consumer, then close the import authorities still open with `bregctl import-authority close`. -2. Export what must outlive the registry. `bregctl data export` exports one entity through one - access profile, checkpointed; a final `pg_dump` is the only complete copy. See +2. Export what must outlive the registry. `bregctl data export` exports one Record type through one + access profile with a checkpoint. Only a final `pg_dump` gives you a complete copy. See [Export with a checkpoint](../../breg-data/#export-with-a-checkpoint). 3. Erase what your policy does not let you keep, before that final backup: see [Erase retained history](../../breg-retention/#erase-retained-history) and diff --git a/docs/site/src/content/docs/operate/breg-changes.mdx b/docs/site/src/content/docs/operate/breg-changes.mdx index 554b8f4952..c1b2d81b53 100644 --- a/docs/site/src/content/docs/operate/breg-changes.mdx +++ b/docs/site/src/content/docs/operate/breg-changes.mdx @@ -34,7 +34,7 @@ compound alias, advance the edited module's version, and refresh its lock with t ```sh bregctl project lock ./normalized-registry -bregctl check ./normalized-registry --production +bregctl check ./normalized-registry --posture production --require-package-closure ``` Review the normalised source to confirm that requiredness, classification, grants, identifiers, diff --git a/docs/site/src/content/docs/operate/breg-data.mdx b/docs/site/src/content/docs/operate/breg-data.mdx index 3a98590c67..840f3fb5af 100644 --- a/docs/site/src/content/docs/operate/breg-data.mdx +++ b/docs/site/src/content/docs/operate/breg-data.mdx @@ -357,9 +357,9 @@ and `domainData` containing the fields you named. {"domainData":{"operatorCode":"OP-001","status":"active"},"recordId":"00000000-0000-4000-8000-000000000001","revisionId":"1"} ``` -When upgrading from v0.48.0, update consumers of export files to read `recordId` and -`revisionId` in place of `recordIdentifier` and `revisionIdentifier`. Finish any -in-progress export with the matching v0.48.0 `bregctl`, serving runtime, and compiled +When upgrading from v0.48.0, update consumers of export files to read +`recordId` and `revisionId` in place of `recordIdentifier` and `revisionIdentifier`. +Finish any in-progress export with the matching v0.48.0 `bregctl`, serving runtime, and compiled package before cutover, or start a fresh output and checkpoint pair after upgrading. Keep the original output and checkpoint together. If you convert an archived export for downstream use, convert a separate copy to preserve the checkpoint's digest. diff --git a/docs/site/src/content/docs/operate/breg.mdx b/docs/site/src/content/docs/operate/breg.mdx index 7ed7a1f543..4eb9ce1780 100644 --- a/docs/site/src/content/docs/operate/breg.mdx +++ b/docs/site/src/content/docs/operate/breg.mdx @@ -17,7 +17,7 @@ tutorial_test: --- You have a [registry project](../../reference/glossary/#registry-project) that passes -`bregctl check --production`, and you want it serving. This page takes you from an empty +`bregctl check --posture production --require-package-closure`, and you want it serving. This page takes you from an empty PostgreSQL server to a `breg` process that serves the project's first [package](../../reference/glossary/#package) and answers `GET /ready`. The examples use the facility template that `bregctl init --template facility-registry facility` creates. @@ -469,7 +469,7 @@ These three commands turn the project into a package the database can activate. the runtime file you will serve, so it also checks that file against the project: ```sh -bregctl check facility --runtime-config /etc/breg/runtime.yaml --production +bregctl check facility --runtime-config /etc/breg/runtime.yaml --posture production --require-package-closure ``` ```text @@ -478,7 +478,7 @@ Production check passed; registry revision sha256:4877be0dd9ded0447278206d829445 Warnings follow the success line. Read each one. -`check --production` declares production and checks package closure. A check +`--posture production` declares production. Add `--require-package-closure` to check the exact package inputs. A check without the flag still defaults to production for the runtime file. Use `--posture development` to report development settings as warnings in a laptop file. diff --git a/docs/site/src/content/docs/operate/coordinator.mdx b/docs/site/src/content/docs/operate/coordinator.mdx index f95a9c5639..1f49c16706 100644 --- a/docs/site/src/content/docs/operate/coordinator.mdx +++ b/docs/site/src/content/docs/operate/coordinator.mdx @@ -150,7 +150,7 @@ Retain the keys needed to read those snapshots and the custody metadata needed f Pin the package digest for exact bytes; use `workflowRevision` for execution semantics. -- The computed workflow revision hashes the input, graph, outcomes, used Operation and Function revisions, and host execution contracts. +- The computed workflow revision hashes the input, graph, outcomes, used Operation and Transform revisions, and host execution contracts. Presentation labels and descriptions do not change it. `check` prints it on its `Definition:` line, and start, status, list, and inspect report it as `workflowRevision`. Existing runs keep their admitted revision. @@ -902,7 +902,7 @@ The client resends an admission whose outcome is unknown only under its original An operator policy lists every owner's runs in those workflows. `limit` takes 1 to 100 and defaults to 20. Pass `nextCursor` as `cursor` with the same filters to continue; each page rechecks current caller and workflow permissions. -Keep the run ID a start returns for direct lookup with `GET /v1/runs/{run}`. +Keep the run ID a start returns for direct lookup with `GET /v1/runs/{runId}`. Filters, which combine: @@ -1067,7 +1067,7 @@ An `external.command/v1` call has no read-only receipt, so `reconcile` reports ` The run holds at once with the effect unknown, and `retry-same` resends the same command while the deadline is still in the future. A 429 the deadline ends still ends the run `expired`. - A command ignores a `Retry-After` it cannot use, such as a date, a duplicate field, a malformed value, or a wait over 86,400 seconds, and retries on the ordinary backoff instead. -- Any other server error, a redirect, a timeout, a lost acknowledgement, or a response the interpretation Function cannot settle holds the run as uncertain. +- Any other server error, a redirect, a timeout, a lost acknowledgement, or a response the interpretation Transform cannot settle holds the run as uncertain. - After an uncertain attempt, including a retried 503, a declared refusal or 429 keeps the run held. Check the provider's record and cancel the run if no further step is wanted. diff --git a/docs/site/src/content/docs/operate/deployment-posture.mdx b/docs/site/src/content/docs/operate/deployment-posture.mdx index 8ffae6cd6b..91317ffc9e 100644 --- a/docs/site/src/content/docs/operate/deployment-posture.mdx +++ b/docs/site/src/content/docs/operate/deployment-posture.mdx @@ -71,7 +71,8 @@ Examples include non-loopback plain HTTP issuers (`allowInsecureHttp: true`), field-encryption key custody, disabled document content verification, and Registry Evidence `assuranceProfile: local`. -Each development-only setting carries a stable `.posture.` code: +Each development-only setting carries a stable `.posture.` code. Look up a code in +[Posture diagnostic codes](../../reference/posture-diagnostics/). - In `production`, `check` and startup refuse every development-only setting as an error diagnostic. Each diagnostic names the configuration pointer and the production replacement. diff --git a/docs/site/src/content/docs/operate/registry-render.mdx b/docs/site/src/content/docs/operate/registry-render.mdx index 8d06e83260..2ef9fa5829 100644 --- a/docs/site/src/content/docs/operate/registry-render.mdx +++ b/docs/site/src/content/docs/operate/registry-render.mdx @@ -28,9 +28,9 @@ compatibility promise. - **One package directory, mounted read-only.** Serve verifies it at startup and in the worker on every request, and refuses a package that changes while it runs. -- **One API key in an owner-only file.** At least 32 bytes of ASCII. Serve trims one trailing line - ending and refuses any other whitespace, because a mis-read key would reject every caller while - health stays green. +- **Either OIDC issuer settings or one shared API key in an owner-only file.** A shared API key is + at least 32 bytes of ASCII. Serve trims one trailing line ending and refuses any other whitespace, + because a mis-read key would reject every caller while health stays green. - **A writable audit directory, or a log collector on standard output.** Serve refuses a directory that group or others can write. - **A TLS proxy in front.** The listener serves plain HTTP, reads no forwarded header, and accepts @@ -239,8 +239,8 @@ Give each replica its own audit path. ## Answer callers -Callers POST one JSON body to `/v1/render/` with the API key. Keep the key off the -command line: write the header to a file only the caller reads, as +Callers POST one JSON body to `/v1/render/` with their bearer credential. Keep it +off the command line: write the header to a file only the caller reads, as [the tutorial](../../tutorials/first-render-document/) does, and pass the file. ```sh @@ -273,7 +273,7 @@ and `audit-failed` (503). ### Authenticate callers with OIDC tokens -Choose exactly one non-null authentication mode: `authentication.oidc` or the legacy +Choose exactly one non-null authentication mode: `authentication.oidc` or the shared API key in `authentication.apiKeyRef`, which keeps its secret-provider and entropy checks. Do not configure both, and do not use null as an absent member. For OIDC, the block is: @@ -329,7 +329,7 @@ certificate, its issuer, and how you hold the key. ### Enable a seal -You need an OIDC deployment (a seal never works with the legacy API key), a seal certificate chain +You need an OIDC deployment (a seal never works with the shared API key), a seal certificate chain in a PEM file with the seal certificate first, and the seal key in Vault or OpenBao Transit: an `ecdsa-p256` key created non-exportable, reached through a Transit signing proxy on a Unix socket on the Render host. The proxy holds the Transit token; Render sends none. Create the key and its diff --git a/docs/site/src/content/docs/operate/stuck-work.mdx b/docs/site/src/content/docs/operate/stuck-work.mdx index faf2605a14..bf49037380 100644 --- a/docs/site/src/content/docs/operate/stuck-work.mdx +++ b/docs/site/src/content/docs/operate/stuck-work.mdx @@ -162,9 +162,9 @@ Use the metrics. - The metrics listener also serves `/version`. **Clear.** Supervisors move overdue tasks over HTTP with their own credentials. -The routes are `POST /v1/review-tasks/{task_id}/assign`, `release`, `claim`, and `delegate`. +The routes are `POST /v1/review-tasks/{taskId}/assign`, `release`, `claim`, and `delegate`. `GET /v1/review-tasks/supervision` lists tasks for a supervisor. -A producer withdraws a request with `POST /v1/review-requests/{request_id}/cancel`. +A producer withdraws a request with `POST /v1/review-requests/{requestId}/cancel`. These are caller actions under a role, not an operator token API. A dead-lettered completion delivery shows in `casework_completion_deliveries`, but Casework has no command or route to retry or discard it. @@ -204,7 +204,7 @@ No gauge counts failed messages, so alert on `transient` attempts and list them - The state-changing commands take `--apply`. - `messagingctl retention erase-expired` erases expired data on demand. -Over HTTP, `POST /v1/messages/{message_id}/cancel` cancels a message with an operator or owner profile. +Over HTTP, `POST /v1/messages/{messageId}/cancel` cancels a message with an operator or owner profile. It works only before dispatch has leased the message. Otherwise the service answers that dispatch has started or the message is already terminal. diff --git a/docs/site/src/content/docs/reference/api-stability.mdx b/docs/site/src/content/docs/reference/api-stability.mdx index d504c33734..fcaa81795a 100644 --- a/docs/site/src/content/docs/reference/api-stability.mdx +++ b/docs/site/src/content/docs/reference/api-stability.mdx @@ -69,10 +69,10 @@ Registry Evidence's versioned routes are `POST /v1/evidence`, `POST /v1/evidence [experimental surfaces](#experimental-surfaces). Registry Coordinator's promise covers its workflow model of five step types, its run API, and -the `coordinator` SDK namespace. Its versioned routes are `GET /v1/workflows/{workflow}`, -`POST /v1/runs`, `GET /v1/runs`, `GET /v1/runs/{run}`, `GET /v1/runs/{run}/inspect`, -`POST /v1/runs/{run}/retry-same`, `POST /v1/runs/{run}/cancel`, `POST /v1/runs/{run}/reconcile`, -`POST /v1/runs/{run}/check`, `POST /v1/events/{workflow}/{trigger}`, and +the `coordinator` SDK namespace. Its versioned routes are `GET /v1/workflows/{workflowId}`, +`POST /v1/runs`, `GET /v1/runs`, `GET /v1/runs/{runId}`, `GET /v1/runs/{runId}/inspect`, +`POST /v1/runs/{runId}/retry-same`, `POST /v1/runs/{runId}/cancel`, `POST /v1/runs/{runId}/reconcile`, +`POST /v1/runs/{runId}/check`, `POST /v1/events/{workflowId}/{triggerId}`, and `POST /v1/review-completions`. Its deployment-wide operator routes are `GET /v1/doctor`, `POST /v1/restore-hold`, `POST /v1/release-restore-hold`, `POST /v1/release-admission-hold`, `POST /v1/complete-execution-recovery`, and `POST /v1/retention`. Its operational routes are diff --git a/docs/site/src/content/docs/reference/apis/registry-casework.mdx b/docs/site/src/content/docs/reference/apis/registry-casework.mdx index 3bcda0c921..5c3b5019eb 100644 --- a/docs/site/src/content/docs/reference/apis/registry-casework.mdx +++ b/docs/site/src/content/docs/reference/apis/registry-casework.mdx @@ -34,38 +34,38 @@ A role that a row does not name is refused with `operation.not-authorized`. | GET | `/health`, `/ready` | Anyone, no token | `200`; `/ready` answers `503` while storage or the audit journal is unavailable | | GET | `/.well-known/jwks.json` | Anyone, no token | Keys that verify task assertions | | GET | `/v1/casework` | Any profile | The deployed project, without providers, calendars, or clocks for a requester | -| GET | `/v1/review-policies`, `/v1/review-policies/{policy_id}` | Any profile | The compiled ReviewPolicy closures the caller may use | +| GET | `/v1/review-policies`, `/v1/review-policies/{policyId}` | Any profile | The compiled ReviewPolicy closures the caller may use | | POST | `/v1/review-requests` | Requester | `201` with the accepted [ReviewRequest](../../glossary/#review-request), `200` on recovery | -| GET | `/v1/review-requests/{request_id}` | Requester | The request's state | -| POST | `/v1/review-requests/{request_id}/cancel` | Requester | The cancellation | -| GET | `/v1/review-requests/{request_id}/result` | Requester | `200` with the ReviewResult; bodiless `202` pending, `410` erased | +| GET | `/v1/review-requests/{requestId}` | Requester | The request's state | +| POST | `/v1/review-requests/{requestId}/cancel` | Requester | The cancellation | +| GET | `/v1/review-requests/{requestId}/result` | Requester | `200` with the ReviewResult; bodiless `202` pending, `410` erased | | GET | `/v1/review-results` | Requester | A resumable page of settled results | | GET | `/v1/review-asks` | Requester | A resumable page of ask announcements, `410` past retention | -| GET | `/v1/review-requests/{request_id}/asks/{ask_id}` | Requester that created the request | The ask; an empty `404` for any other ask | -| POST | `/v1/review-requests/{request_id}/asks/{ask_id}/answer` | Requester that created the request | The answered ask; `409` `review.ask-not-open` when it is not open | -| GET | `/v1/review-requests/{request_id}/history`, `/clocks` | Reviewer or requester | History; clocks | -| POST | `/v1/review-requests/{request_id}/notes` | Reviewer; requester for requester-audience notes | The entry | +| GET | `/v1/review-requests/{requestId}/asks/{askId}` | Requester that created the request | The ask; an empty `404` for any other ask | +| POST | `/v1/review-requests/{requestId}/asks/{askId}/answer` | Requester that created the request | The answered ask; `409` `review.ask-not-open` when it is not open | +| GET | `/v1/review-requests/{requestId}/history`, `/clocks` | Reviewer or requester | History; clocks | +| POST | `/v1/review-requests/{requestId}/notes` | Reviewer; requester for requester-audience notes | The entry | | GET | `/v1/review-tasks`, `/next`, `/holdings`, `/own-decisions` | Staff, supervisor | ReviewTasks | | GET | `/v1/review-tasks/supervision` | Supervisor | Tasks in served queues | -| GET | `/v1/review-tasks/{task_id}`, `/context` | Staff, supervisor | The task; its review context | +| GET | `/v1/review-tasks/{taskId}`, `/context` | Staff, supervisor | The task; its review context | | GET | `/v1/delegated-staff/review-tasks` | Configured delegated reader representing staff | A page of tasks assigned to the represented staff member, in due order | -| GET | `/v1/delegated-staff/review-tasks/{task_id}/context` | Configured delegated reader representing the holder | The held task's review context | -| POST | `/v1/review-tasks/{task_id}/claim`, `/release` | Staff, supervisor | The task | -| POST | `/v1/review-tasks/{task_id}/assign` | Supervisor serving the queue | The task | -| POST | `/v1/review-tasks/{task_id}/delegate` | A reviewer whose profile decides the stage | The task | -| GET, PUT, DELETE | `/v1/review-tasks/{task_id}/draft` | The holder | The private draft; `204` on delete | -| POST | `/v1/review-tasks/{task_id}/decisions` | The holder | `204` | -| POST | `/v1/review-tasks/{task_id}/asks` | The holder, at a stage that declares `asks` | The task with its `waiting` marker, and the ask | -| GET | `/v1/review-tasks/{task_id}/task-templates` | Staff, supervisor | Task grant previews | -| GET, POST | `/v1/review-tasks/{task_id}/task-grants` | Staff, supervisor | Grants on the task; the approved grant | -| POST | `/v1/review-tasks/{task_id}/task-grants/{grant_id}/revoke` | Staff, supervisor | The revocation | -| POST | `/v1/task-grants/{grant_id}/assertion` | The grant's agent, scope `casework:grants:assert` | A signed task assertion | -| GET | `/v1/task-grants/{grant_id}/status` | A service, scope `casework:grants:status` | Current status | -| GET | `/v1/review-accountability/{event_id}` | Supervisor | The accountability record | -| GET, PUT | `/v1/directory`, `/v1/directory/teams/{team_id}`; POST `/v1/directory/bootstrap` | Administrator | The directory | +| GET | `/v1/delegated-staff/review-tasks/{taskId}/context` | Configured delegated reader representing the holder | The held task's review context | +| POST | `/v1/review-tasks/{taskId}/claim`, `/release` | Staff, supervisor | The task | +| POST | `/v1/review-tasks/{taskId}/assign` | Supervisor serving the queue | The task | +| POST | `/v1/review-tasks/{taskId}/delegate` | A reviewer whose profile decides the stage | The task | +| GET, PUT, DELETE | `/v1/review-tasks/{taskId}/draft` | The holder | The private draft; `204` on delete | +| POST | `/v1/review-tasks/{taskId}/decisions` | The holder | `204` | +| POST | `/v1/review-tasks/{taskId}/asks` | The holder, at a stage that declares `asks` | The task with its `waiting` marker, and the ask | +| GET | `/v1/review-tasks/{taskId}/task-templates` | Staff, supervisor | Task grant previews | +| GET, POST | `/v1/review-tasks/{taskId}/task-grants` | Staff, supervisor | Grants on the task; the approved grant | +| POST | `/v1/review-tasks/{taskId}/task-grants/{grantId}/revoke` | Staff, supervisor | The revocation | +| POST | `/v1/task-grants/{grantId}/assertion` | The grant's agent, scope `casework:grants:assert` | A signed task assertion | +| GET | `/v1/task-grants/{grantId}/status` | A service, scope `casework:grants:status` | Current status | +| GET | `/v1/review-accountability/{eventId}` | Supervisor | The accountability record | +| GET, PUT | `/v1/directory`, `/v1/directory/teams/{teamId}`; POST `/v1/directory/bootstrap` | Administrator | The directory | | GET | `/v1/directory/targets` | By purpose | Nameable people and queues | -| GET, POST, PUT, DELETE | `/v1/directory/absences`, `/{absence_id}` | Staff for self, supervisor for team, administrator | Absences | -| POST, GET | `/v1/directory/holidays`, `/{id}/revisions/{revision}` | Administrator | Holiday set revisions | +| GET, POST, PUT, DELETE | `/v1/directory/absences`, `/{absenceId}` | Staff for self, supervisor for team, administrator | Absences | +| POST, GET | `/v1/directory/holidays`, `/{holidayId}/revisions/{holidayRevision}` | Administrator | Holiday set revisions | | POST | `/v1/directory/clocks/recompute/preview`, `/apply` | Administrator | Preview, then result | | POST | `/v1/directory/caseload/preview`, `/apply` | Supervisor | Preview, then result | @@ -127,7 +127,7 @@ carries `Cache-Control: no-store`. `POST /v1/review-requests` names a policy `id`. Omit `version` and `digest` to take the ReviewPolicy active at admission, or send both to require the `identity` that -`GET /v1/review-policies/{policy_id}` returned; a differing pin is `review.policy-mismatch`. The +`GET /v1/review-policies/{policyId}` returned; a differing pin is `review.policy-mismatch`. The ReviewResult repeats the accepted binding with the subject and `submissionDigest`; the consumer checks that correlation and authorises any business change itself. diff --git a/docs/site/src/content/docs/reference/apis/registry-coordinator.mdx b/docs/site/src/content/docs/reference/apis/registry-coordinator.mdx index c54ff48477..7b4357bcb9 100644 --- a/docs/site/src/content/docs/reference/apis/registry-coordinator.mdx +++ b/docs/site/src/content/docs/reference/apis/registry-coordinator.mdx @@ -17,7 +17,7 @@ import ApiReferenceTable from '../../../../components/ApiReferenceTable.astro'; Registry Coordinator serves one HTTP surface for starting a run of a served workflow, following and recovering that run, operating the deployment, and taking Casework completion wake-ups. Every route except `/health`, `/ready`, `/v1/review-completions`, and -`/v1/events/{workflow}/{trigger}` takes a caller access token, and the access profile that token +`/v1/events/{workflowId}/{triggerId}` takes a caller access token, and the access profile that token resolves to decides what the caller may do. A Casework completion authenticates with its Standard Webhooks signature, as does a product event. [API stability](../../api-stability/) states the versioning contract. @@ -66,7 +66,7 @@ configured for that connection, and the receiving product decides it. ## Discover a workflow -`GET /v1/workflows/{workflow}` returns the active permitted contract, including `workflowRevision`, +`GET /v1/workflows/{workflowId}` returns the active permitted contract, including `workflowRevision`, input, and declared outcomes. It requires the caller's `start` action for that Workflow. Use that revision for fresh starts or a generated revision-pinned TypeScript/Python wrapper. Generated wrappers provide typed `start`, `get`, and `cancel` over the maintained public generic @@ -106,7 +106,7 @@ A start is refused before admission when: ## Start a run from a product event -`POST /v1/events/{workflow}/{trigger}` admits a run from a signed product event, when the workflow +`POST /v1/events/{workflowId}/{triggerId}` admits a run from a signed product event, when the workflow declares that trigger and the runtime file lists its source under `eventSources`. The body is the platform hook envelope, at most 1,048,576 canonical JSON bytes, above which it answers `413 request.body-too-large`; the admitted event value must then fit the 131,072-byte value @@ -130,7 +130,7 @@ The event grants no authority for the calls the run then makes. ## Read and inspect runs -`GET /v1/runs/{run}` answers the run's `RunStatus`: its `workflow`, computed `workflowRevision`, +`GET /v1/runs/{runId}` answers the run's `RunStatus`: its `workflow`, computed `workflowRevision`, `bindingDigest`, its current step and state, when it was admitted and when its deadline falls, whether an effect is `uncertain`, and whether it needs restore review. `stepLabel` is the label the workflow author gave the current step, as packaged in the workflow @@ -160,7 +160,7 @@ includes `nextCursor`, pass it as `cursor` with the same filters to continue. Ev current caller and workflow permissions. An invalid cursor or one from a different caller or filter answers `400 request.invalid`. Keep the run ID a start returns for direct status lookup. -`GET /v1/runs/{run}/inspect` answers the run, one entry per step with its state, attempt count, +`GET /v1/runs/{runId}/inspect` answers the run, one entry per step with its state, attempt count, whether its command is prepared, whether its effect is uncertain, and whether its receipt expired, and a `recovery` block. `recovery.retryAllowed` and `recovery.reason` describe whether the run can be scheduled again. For a compatible current call, `recovery.operation` names the pinned operation's diff --git a/docs/site/src/content/docs/reference/apis/registry-messaging.mdx b/docs/site/src/content/docs/reference/apis/registry-messaging.mdx index fbca2d4bb7..41e21be659 100644 --- a/docs/site/src/content/docs/reference/apis/registry-messaging.mdx +++ b/docs/site/src/content/docs/reference/apis/registry-messaging.mdx @@ -187,7 +187,7 @@ is checked against the template version's JSON Schema before anything renders. A ## Message status -`GET /v1/messages/{message_id}` answers two facts separately, and one status derived from them: +`GET /v1/messages/{messageId}` answers two facts separately, and one status derived from them: - `dispatch` is what the worker did with the message: `queued`, `sending`, `submitted`, `failed`, `unknown`, `cancelled`, or `expired`. `submitted` means the provider accepted the message, never @@ -216,7 +216,7 @@ the reference itself. {/* Evidence: crates/registry-messaging/src/messages.rs, MASKED_CONTACT; crates/registry-messaging-core/src/wire.rs, AttemptOutcome and AttemptSummary. */} -`POST /v1/messages/{message_id}/cancel` cancels a message that is still queued, including one +`POST /v1/messages/{messageId}/cancel` cancels a message that is still queued, including one waiting for a retry. Once dispatch started it answers `409 message.dispatch-started`, and once the message reached a final state it answers `409 message.terminal`. @@ -224,9 +224,9 @@ message reached a final state it answers `409 message.terminal`. ## Provider callbacks -A provider that reports delivery calls `POST /v1/provider-callbacks/{provider_id}` when the runtime +A provider that reports delivery calls `POST /v1/provider-callbacks/{providerId}` when the runtime configuration gives it an `hmac-sha1-url-form` or `hmac-sha256-body` callback verifier, or -`POST /v1/provider-callbacks/{provider_id}/{token}` when it gives it a `path-token` verifier. These +`POST /v1/provider-callbacks/{providerId}/{token}` when it gives it a `path-token` verifier. These routes take no bearer token: the verifier authenticates each callback, and the provider package's receipt script reads it. @@ -275,11 +275,11 @@ HTTP status listed beside it. `request.not-found` answers a path the contract do | `GET /ready` | None | `200` when the database carries every expected migration and its package ledger names the package this process serves active, `503 service.unavailable` otherwise | | `POST /v1/messages` | Bearer, sender | Submit one message | | `POST /v1/messages/receipt` | Bearer, the exact original submitting principal | Observe a retained success receipt using the original key and request | -| `GET /v1/messages/{message_id}` | Bearer, the submitting principal or an operator | Read one message's status and attempts | -| `POST /v1/messages/{message_id}/cancel` | Bearer, the submitting principal or an operator | Cancel a queued message | -| `POST /v1/templates/{template_id}/versions/{version}/preview` | Bearer, sender | Render a listed template version with given data, persisting nothing | -| `POST /v1/provider-callbacks/{provider_id}` | The provider's callback verifier | Take one delivery callback | -| `POST /v1/provider-callbacks/{provider_id}/{token}` | A `path-token` verifier | Take one delivery callback | +| `GET /v1/messages/{messageId}` | Bearer, the submitting principal or an operator | Read one message's status and attempts | +| `POST /v1/messages/{messageId}/cancel` | Bearer, the submitting principal or an operator | Cancel a queued message | +| `POST /v1/templates/{templateId}/versions/{templateVersion}/preview` | Bearer, sender | Render a listed template version with given data, persisting nothing | +| `POST /v1/provider-callbacks/{providerId}` | The provider's callback verifier | Take one delivery callback | +| `POST /v1/provider-callbacks/{providerId}/{token}` | A `path-token` verifier | Take one delivery callback | {/* Evidence: crates/registry-messaging/src/http.rs, router(); products/messaging/generated/registry-messaging.openapi.json. */} diff --git a/docs/site/src/content/docs/reference/breg-api.mdx b/docs/site/src/content/docs/reference/breg-api.mdx index d78fdf8e60..d08f96a91b 100644 --- a/docs/site/src/content/docs/reference/breg-api.mdx +++ b/docs/site/src/content/docs/reference/breg-api.mdx @@ -182,7 +182,7 @@ is `items[0].domainData`, not `items[0].data.domainData`: } ``` -`nextCursor` is `null` on the last page. To continue, send it as `$skiptoken` with no other option +`nextCursor` is `null` on the last page. To continue, send it as `cursor` with no other option except `accessProfile`. The cursor is signed with the runtime `cursor.secretRef`, binds the whole original query, and expires after `cursor.maximumAgeSeconds`; a cursor that fails any of those checks answers `400 query.cursor-invalid`. With `$count`, the response carries the matching total. @@ -717,10 +717,10 @@ nonempty set of declared API input names in `missingInputs`. `not-disclosed` car `observedRevision: null` and no missing-input names because the selected profile cannot safely inspect the guard or boundary. A known failed guard takes precedence over missing guard input. No availability response names a guard ID or a Record value. -The route evaluates only field guards for that one target. It does not run a Function, test SQL +The route evaluates only field guards for that one target. It does not run an Action Plan script, test SQL uniqueness or Evidence, inspect other targets, supply a condition token, or grant mutation authority. A true answer means only that the selected target's field guards are currently satisfied, -including when it has none. Form completeness, Functions, Evidence, other targets, and SQL +including when it has none. Form completeness, scripted plans, Evidence, other targets, and SQL constraints may still refuse. Invoke checks authority, concurrency, and every guard in the commit transaction. @@ -761,7 +761,7 @@ Display labels and safe instance titles help applications present the contract, A title exposes only fields the current profile can read. Reference descriptors and bounded forward and inverse navigation reuse normal Record authority, and a link or relationship never grants target disclosure. -Use the advertised `$filter`, `$orderby`, `$select`, `$top`, and `$count` query capabilities and bounds. +Use the advertised `$filter`, `$orderby`, `$select`, `limit`, and `$count` query capabilities and bounds. Filters reduce a permitted collection; they do not supply authorisation. Continuation uses the opaque cursor and selected profile. References, spatial reads, historical reads, and statistical datasets expose only their declared capability variants. @@ -925,7 +925,7 @@ counted on the metrics listener rather than journaled; see | Patch document | `/` for operation `n`, `//op`, `//path` for a path outside `/data/` or a field you may not write, known or not, and `//value`. | | Batch body | `/items`, `/changeContext`, `/items/`, `/items//operation`, `/items//recordId`, `/items//ifMatch`, `/items//patch`, and the create and patch forms above under `/items/` and `/items//patch`. | | Header | `Idempotency-Key` when it is missing or malformed; `If-Match` when a batch request sends one, because each batch item carries its own `ifMatch`. | -| Query | The parameter: `$select`, `$filter`, `$orderby`, `$top`, `$count`, `$skiptoken`, `bbox`, `accessProfile`, `asOf`, `snapshot`, or `validAt`; on statistics routes also `from`, `to`, `status`, `limit`, or `cursor`. A revision route takes none but `accessProfile` and names the first other one you sent. | +| Query | The parameter: `$select`, `$filter`, `$orderby`, `limit`, `$count`, `cursor`, `bbox`, `accessProfile`, `asOf`, `snapshot`, or `validAt`; on statistics routes also `from`, `to`, or `status`. A revision route takes none but `accessProfile` and names the first other one you sent. | A name you sent is never echoed: an unknown member and a withheld one stop at the same location. An oversized or non-JSON body, an undefined query parameter, a malformed query string, and the diff --git a/docs/site/src/content/docs/reference/casework-configuration.mdx b/docs/site/src/content/docs/reference/casework-configuration.mdx index 2c4169440c..b698b272b5 100644 --- a/docs/site/src/content/docs/reference/casework-configuration.mdx +++ b/docs/site/src/content/docs/reference/casework-configuration.mdx @@ -444,12 +444,12 @@ Verification precedes source I/O and any output, including empty pages. A human request to a current-source target without `Registry-Source-Authorization` is refused before source I/O with 401 `source-authorization.required` (in both development and production postures), while concealing unknown and invisible single targets with 404 `request.not-found`. Supplying `Registry-Source-Authorization` without `Registry-Source-Profile` is refused with 400 `source-profile.required`. -Casework-retained reads that make no source call (a decided task on `GET /v1/review-tasks/{id}` and terminal history on `GET /v1/review-requests/{id}/history`) do not require `Registry-Source-Authorization`, though a supplied source header is still validated. -`GET /v1/review-tasks/{id}/context` (even when decided), `own-decisions`, `clocks`, and `notes` require `Registry-Source-Authorization`. +Casework-retained reads that make no source call (a decided task on `GET /v1/review-tasks/{taskId}` and terminal history on `GET /v1/review-requests/{requestId}/history`) do not require `Registry-Source-Authorization`, though a supplied source header is still validated. +`GET /v1/review-tasks/{taskId}/context` (even when decided), `own-decisions`, `clocks`, and `notes` require `Registry-Source-Authorization`. A submitted-context task or request needs no source token and ignores a well-formed source pair from a staff caller. Casework checks the headers' shape without verifying the source token or forwarding it. -For submitted context, Casework refuses a lone `Registry-Source-Profile` with 400 `source-profile.not-applicable` on the single task read, the draft read (`GET /v1/review-tasks/{task_id}/draft`), task mutations that preflight source context (claim, assign, delegate, decisions, asks, and saving or deleting a draft), and request history, clocks, and notes. +For submitted context, Casework refuses a lone `Registry-Source-Profile` with 400 `source-profile.not-applicable` on the single task read, the draft read (`GET /v1/review-tasks/{taskId}/draft`), task mutations that preflight source context (claim, assign, delegate, decisions, asks, and saving or deleting a draft), and request history, clocks, and notes. On the shared history, clocks, and notes routes, a requester who sends a well-formed source pair receives 403 `profile.not-authorized`. A lone source profile receives 400 `source-profile.not-applicable`. Routes outside source-credential admission refuse `Registry-Source-Authorization` with 400 `request.invalid`. These include release, task-grant revocation, accountability, policy routes, the eight dedicated requester routes, directory routes other than caseload and clock recompute, and delegated-reader routes. diff --git a/docs/site/src/content/docs/reference/client-api.mdx b/docs/site/src/content/docs/reference/client-api.mdx index ffacebd058..e78065e7d3 100644 --- a/docs/site/src/content/docs/reference/client-api.mdx +++ b/docs/site/src/content/docs/reference/client-api.mdx @@ -179,7 +179,7 @@ selection is inert metadata that grants no access. The [HTTP problem and recovery contract](../errors/) defines the common fields, bodyless Casework result states, Scheduling concealment, meaningful Retry-After intervals and portable idempotency guidance. BReg keeps -`$top`/`$skiptoken`; Casework, Scheduling and Coordinator use `limit`/`cursor`. +`limit`/`cursor`, as do Casework, Scheduling and Coordinator. Use Python `from registry_client.auth import PrivateKeyJwt` for a product-neutral provider. The compatibility `breg.PrivateKeyJwt` is the same native class. Construct @@ -762,8 +762,8 @@ shape is refused at construction with kind `configuration`. crates/registry-breg-client-node/client.d.ts, attemptTimeoutMilliseconds, crates/registry-breg-client-py/python/registry_breg_client/__init__.pyi, attempt_timeout_seconds */} -Python's `top` list argument produces BReg's `$top` query parameter. Continue with the -returned `$skiptoken` contract. Treat `metadata.operations` identifiers as opaque +Python's `limit` list argument sets the maximum page size. Pass the returned +continuation to the matching continuation method. Treat `metadata.operations` identifiers as opaque metadata selected from the compiled registry contract; do not construct or parse identifiers using an undocumented spelling. diff --git a/docs/site/src/content/docs/reference/coordinator-configuration.mdx b/docs/site/src/content/docs/reference/coordinator-configuration.mdx index 7157bba68b..2d15a91700 100644 --- a/docs/site/src/content/docs/reference/coordinator-configuration.mdx +++ b/docs/site/src/content/docs/reference/coordinator-configuration.mdx @@ -71,7 +71,7 @@ Declare `development` or `production` with `REGISTRY_STACK_POSTURE` or `--postur An undeclared posture is production. If you set both, use the same value. Run `rstack dev` for development, or declare it on the command you run. The `check` command reports development settings as warnings in development and -errors in production. `check --production` declares production. +errors in production. `check --posture production` declares production. Use `listener.tlsTermination: loopback-plaintext` for a loopback bind. Configure PostgreSQL separately with `database.transport`. Its default is `verified-tls`. diff --git a/docs/site/src/content/docs/reference/documents-configuration.mdx b/docs/site/src/content/docs/reference/documents-configuration.mdx index 3b0ebdd568..fdf6b35ca3 100644 --- a/docs/site/src/content/docs/reference/documents-configuration.mdx +++ b/docs/site/src/content/docs/reference/documents-configuration.mdx @@ -115,7 +115,7 @@ Declare `development` or `production` with `REGISTRY_STACK_POSTURE` or `--postur An undeclared posture is production. If you set both, use the same value. Run `rstack dev` for development, or declare it on the command you run. The `check` command reports development settings as warnings in development and -errors in production. `check --production` declares production. +errors in production. `check --posture production` declares production. Use `listener.tlsTermination: loopback-plaintext` for a loopback bind. Configure PostgreSQL separately with `database.transport`. Its default is `verified-tls`. diff --git a/docs/site/src/content/docs/reference/errors.mdx b/docs/site/src/content/docs/reference/errors.mdx index fef4d60901..584427276a 100644 --- a/docs/site/src/content/docs/reference/errors.mdx +++ b/docs/site/src/content/docs/reference/errors.mdx @@ -149,10 +149,10 @@ Client retry rules are in the client crates' documentation. {/* TODO[evidence]: the `Retry-After` and no-source-probe readiness claims are carried from the source; no single test anchors them. */} -BReg pagination uses `$top` and `$skiptoken` (Python `top`); Casework, Scheduling, and Coordinator use `limit` and `cursor`. +BReg, Casework, Scheduling and Coordinator use `limit` and `cursor` on paginated list routes. SDKs expose each actual contract and do not automatically follow continuations. -{/* Evidence: crates/registry-breg/src/api/metadata.rs $skiptoken. */} +{/* Evidence: crates/registry-breg/src/api/metadata.rs cursor. */} {/* TODO[evidence]: Casework, Scheduling, and Coordinator `limit` and `cursor` pagination anchors were not located. */} ## Product problem contracts diff --git a/docs/site/src/content/docs/reference/evidence-request-adapter-api.mdx b/docs/site/src/content/docs/reference/evidence-request-adapter-api.mdx index b8213c7d2b..ae16583752 100644 --- a/docs/site/src/content/docs/reference/evidence-request-adapter-api.mdx +++ b/docs/site/src/content/docs/reference/evidence-request-adapter-api.mdx @@ -28,9 +28,9 @@ are not alternate forms of `derive`. crates/registry-evidence/src/rhai_runtime.rs compile_derivation, derive. */} This page describes the compiled assertion ABI under Evidence bundle Version 1. -For the Functions you write in an Evidence project, use the +For the Derivations you write in an Evidence project, use the [authoring form](../../products/registry-evidence/authoring-form/). -An authored `assertion-derive/v1` Function returns local `{output, value}` entries; the authoring +An authored `assertion-derive/v1` Derivation returns local `{output, value}` entries; the authoring compiler translates them into compiled `{concept_id, value}` entries. The host helpers and resource limits apply to both authored and compiled assertion derivations. `evidencectl package` compiles authoring inputs and delegates execution to the real `evidence` diff --git a/docs/site/src/content/docs/reference/glossary.mdx b/docs/site/src/content/docs/reference/glossary.mdx index eecbeea412..2732c13d8d 100644 --- a/docs/site/src/content/docs/reference/glossary.mdx +++ b/docs/site/src/content/docs/reference/glossary.mdx @@ -33,7 +33,10 @@ Product names are always in English, including on future translated pages.
The protected record Registry Casework keeps of who made a Decision and their private reason, held for the pinned policy's `accountabilityRetentionDays` and never sent to the producer. See Retention in Casework.
Action
-
A BReg typed operation with one bounded Plan and a fixed execution mode. An `immediate` Action commits its effects atomically and returns an ActionReceipt; a `proposal` Action starts a durable Proposal.
+
A BReg typed operation with one bounded Action Plan and a fixed execution mode. An `immediate` Action commits its effects atomically and returns an ActionReceipt; a `proposal` Action starts a durable Proposal.
+ +
Action Plan
+
The effects an Action makes, authored under `plan`. A `type: fixed` plan lists the effects in order. A `type: scripted` plan selects an `actionPlan` declared under `actionPlans`. It computes effects within the Action's declared `writes`. BReg authorizes and commits those effects.
ActionReceipt
The response to a successful immediate Action: its `applicationId` and, under `results`, the Record type, `recordId`, and new revision of each effect the caller may see. A refused invocation leaves no partial change.
@@ -66,7 +69,7 @@ Product names are always in English, including on future translated pages.
A pinned Casework policy rule that measures a subject or a stage against a deadline, in elapsed time or working days on a calendar. It can send a reminder or move a due task to another queue, and never decides an outcome.
`configurationRevision`
-
The `sha256:` digest a Registry Evidence assertion carries for what its assertion definition does, which relying services pin. It moves with the source request or response shape, lookups, Functions, codelists, schemas, outputs, or validity, and stays put for question text, fixtures, endpoints, credentials, grants, and signing keys.
+
The `sha256:` digest a Registry Evidence assertion carries for what its assertion definition does, which relying services pin. It moves with the source request or response shape, lookups, Derivations, codelists, schemas, outputs, or validity, and stays put for question text, fixtures, endpoints, credentials, grants, and signing keys.
content verification
The Registry Document Store's check of every stored document version by an operator-configured verifier, which receives the bytes and answers approved or rejected. Only an approval bound to the version's digest, media type, and the current verifier releases it; a rejection keeps it from ever being released. Base Registry Engine applies the same check to Proposal attachments.
@@ -83,6 +86,9 @@ Product names are always in English, including on future translated pages.
deployment candidate
The directory `evidencectl package` writes from an Evidence project and one target: an immutable `bundle/`, a runtime file, and a compiled authority. Its package digest identifies the bundle.
+
Derivation
+
A bounded Rhai computation in an Evidence project. It uses `assertion-derive/v1` to turn validated source facts into declared outputs. Evidence validates those outputs and constructs the assertion. The reviewed Adapter pack normalizes the source response.
+
directory
Registry Casework's runtime record of teams, their staff and supervisors, and the queues they serve, maintained by an administrator through the directory API under revisions. See Staff the directory.
@@ -108,10 +114,7 @@ Product names are always in English, including on future translated pages.
The minimum-disclosure assertion product: it answers one predefined question from a fixed read of your system with a signed assertion, never the source record. Binaries `evidence` and `evidencectl`.
Evidence project
-
An `evidence.yaml` file and the scripts it names, kept in version control, declaring assertion definitions, sources, lookups, and Functions. `evidencectl` checks, tests, and packages it with a target into a deployment candidate.
- -
Function
-
A project-local typed implementation asset. In BReg, an Action's Plan uses one to compute effects within the Action's declared write ceiling; it cannot grant authority or invent a review decision. In an Evidence project, a Rhai script with the `assertion-derive/v1` interface that turns a source route's validated facts into declared outputs, under fixed operation and size limits. Provider response normalisation belongs to the reviewed Adapter pack. In a Registry Coordinator workflow, a Rhai script that routes a `choose` step or computes a value a call's input maps with `type: function`, with no clock, file, network, database, or credentials.
+
An `evidence.yaml` file and the scripts it names, kept in version control, declaring assertion definitions, sources, lookups, and Derivations. `evidencectl` checks, tests, and packages it with a target into a deployment candidate.
grant ceiling
The widest authority a Registry Evidence assertion definition lets any grant give for it: the authorities, actor kinds, value origins, and audiences a grant may name. A target authority's grant may only narrow it; Registry Evidence refuses to activate one that widens it.
@@ -141,7 +144,7 @@ Product names are always in English, including on future translated pages.
The rule that one Registry Evidence response carries the smallest sufficient answer to one requirement and never the source record. The assertion payload is closed against additional properties, and its output gate admits only the concept identifiers and value forms the requirement declares.
module
-
A reusable `modules//module.yaml` file that contributes Record types, value types, Functions, Actions, and additive extensions to a Base Registry Engine registry project.
+
A reusable `modules//module.yaml` file that contributes Record types, value types, Action Plans, Actions, and additive extensions to a Base Registry Engine registry project.
offering
One bookable Registry Scheduling service at one location, in exact-time or arrival-window mode, drawing on a resource pool or on published windows.
@@ -167,9 +170,6 @@ Product names are always in English, including on future translated pages.
package digest
The `sha256:` digest of a package's `SHA256SUMS` file, reported by every product that serves a package and accepted as `package.expectedDigest`. It is an integrity digest, not an authenticity proof: packages are unsigned.
-
Plan
-
The effects an Action makes, authored under `plan`: a `type: fixed` Plan lists them in order, and a `type: function` Plan names a Function that computes them within the Action's declared `writes`.
-
policy package
The directory `caseworkctl package` writes from a checked Casework project, with its exact `SHA256SUMS`. The runtime verifies that closure before serving and refuses a changed, missing, or extra file.
@@ -249,7 +249,7 @@ Product names are always in English, including on future translated pages.
One human contribution to a ReviewRequest, created when a stage becomes active, with its queue, revision, holder, and Decision.
Rhai
-
The bounded scripting language for adopter-authored Functions, run under fixed operation and size limits. Registry Evidence Functions extract facts and derive outputs; Base Registry Engine Functions compute an Action's effects; Registry Coordinator Functions route a `choose` step or compute a mapped call input.
+
A scripting language used by Evidence Derivations, BReg scripted Action Plans, and Coordinator Transforms. Each product runs the script under fixed operation and size limits.
role
An authored job identifier under `roles` in an `RStackService` `service.yaml`. A role names an actor kind, holder claim names, and the access profiles the job uses in each product. Products own the permissions and state the scopes and purposes in their identity facts.
@@ -272,6 +272,9 @@ Product names are always in English, including on future translated pages.
seal (document)
A PAdES signature made with an institution's own key over a document a stack product produced, so a relying party can check which institution issued the document and that it has not changed since. Registry Render applies one, at PAdES baseline level B-B or B-T, to a PDF it rendered from a verified package in the same request, when the document type names a seal in its manifest. It never seals bytes a caller sends. A document seal is an electronic seal in the PAdES format. Other uses of "seal" in the stack do not mean a document seal: `sealed_value::seal` and `seal_field` in `registry-platform-crypto` mean authenticated encryption of a stored value, and a sealed audit segment is a rotated audit file the shared writer has closed. See Seal documents.
+
Service function
+
Application code declared under `functions` in `service.yaml`. The private App Kit uses these entries for code that can call product APIs within one request. Each product verifies the authority for the requests it receives.
+
source
An Evidence project binding that selects a reviewed Adapter pack route, one named connection and explicit authorised selector inputs. The route acquires and normalises facts within bounded read authority. Registry Evidence supplies the credential its target binds to the connection, never the caller's.
@@ -296,6 +299,9 @@ Product names are always in English, including on future translated pages.
team
A named Casework group that serves queues and declares the profiles its members and supervisors must hold; its membership lives in the directory.
+
Transform
+
A bounded Rhai computation in a Registry Coordinator workflow. A `type: transform` mapping calls it with named, typed inputs. It can select a branch or compute an operation value using only the supplied data.
+
trust domain
The institutional boundary whose operators, runtime identities, policy, keys, and approval govern one deployment. A Registry Evidence process serves one trust domain, named by the URI in `service.trustDomain`, with one signer and one audit boundary.
diff --git a/docs/site/src/content/docs/reference/index.mdx b/docs/site/src/content/docs/reference/index.mdx index fd0ee2599c..69d1e5ec75 100644 --- a/docs/site/src/content/docs/reference/index.mdx +++ b/docs/site/src/content/docs/reference/index.mdx @@ -20,6 +20,7 @@ from the task section that uses them. ## Configuration and commands - [Configuration files](configuration-files/) +- [Posture diagnostic codes](posture-diagnostics/) The generated command-line reference is published only after its exact source version receives a recorded human review. diff --git a/docs/site/src/content/docs/reference/messaging-configuration.mdx b/docs/site/src/content/docs/reference/messaging-configuration.mdx index 06c0227516..ea63e0f0f5 100644 --- a/docs/site/src/content/docs/reference/messaging-configuration.mdx +++ b/docs/site/src/content/docs/reference/messaging-configuration.mdx @@ -323,7 +323,7 @@ The provider example contains the installation steps and links to AWS's maintain ## Provider callbacks -An `http` provider whose package declares `receipts: callback` reports delivery to `POST /v1/provider-callbacks/{provider_id}` on the public listener, or, for `path-token`, to `POST /v1/provider-callbacks/{provider_id}/{token}`. +An `http` provider whose package declares `receipts: callback` reports delivery to `POST /v1/provider-callbacks/{providerId}` on the public listener, or, for `path-token`, to `POST /v1/provider-callbacks/{providerId}/{token}`. These routes take no bearer token. The connection's `callbackVerifier` authenticates each callback, and is one of these: diff --git a/docs/site/src/content/docs/reference/posture-diagnostics.mdx b/docs/site/src/content/docs/reference/posture-diagnostics.mdx new file mode 100644 index 0000000000..43e8e89148 --- /dev/null +++ b/docs/site/src/content/docs/reference/posture-diagnostics.mdx @@ -0,0 +1,72 @@ +--- +title: Posture diagnostic codes +description: Look up a development-only configuration diagnostic by code and find the change to make for production. +status: current +owner: registry-docs +source_repos: + - registry-stack +last_reviewed: "2026-12-01" +doc_type: reference +locale: en +standards_referenced: [] +wide: true +--- + +import PostureDiagnosticsTable from '../../../components/PostureDiagnosticsTable.astro'; + +A posture diagnostic reports a configuration setting that is safe only on a workstation or in a +test. Its code has the form `.posture.`, and it names the JSON pointer of the +setting. In production, `check` and startup report it as an error and the process refuses to +start. In development, the same code is a warning: `--deny-warnings` does not fail on it, and the +process lists it in its startup log and in the `developmentSettings` member of `/ready`. + +To fix a production error, find the code below and apply its production remedy. On a laptop or in +a test run, declare development instead: start the project with `rstack dev`, or set +`REGISTRY_STACK_POSTURE=development` or pass `--posture development`. Most remedies change the +runtime file. Some change something the runtime reads, such as the package, the discovery index +or the identity provider's discovery document, and the remedy says so. + +This page covers the posture codes the Registry Stack products in this release declare. See +[Deployment posture](../../operate/deployment-posture/) for how a process chooses its posture. + +{/* Evidence: crates/registry-platform-config/src/posture.rs, PostureReport::diagnostics, PostureReport::ready_member, DevelopmentSetting, ExplicitProductionSetting; docs/site/scripts/generate-posture-diagnostics.mjs. */} + +## Development-only settings + +Production refuses each of these. The Setting column names the configuration member that holds +the value; match it against the pointer in the diagnostic when a code appears twice. Where names +the component that reports the code. + + + +`breg.posture.review-http-authorization-endpoint` is detected only at startup, after the review +page reads the issuer's discovery document, so `check` cannot report it. + + + + + + + +## Explicit production settings + +These codes report a setting that production accepts because you chose it explicitly. No action +is needed. Startup logs each one, and `check --format json` lists it under +`explicitProductionSettings`. See +[Explicit production settings](../../operate/deployment-posture/#explicit-production-settings). +`platform.posture.unrestricted-clients` is one of these, and is different from +`casework.posture.unrestricted-clients` above, which production refuses. + + + +## Other posture refusals + +These codes are refusals about the posture itself rather than a development-only setting. + +| Code | Meaning | Remedy | +|---|---|---| +| `platform.posture.invalid-value` | The declared posture is empty, unknown or differently cased. It must be exactly `production` or `development`. | Declare a valid posture. See [Production is the default](../../operate/deployment-posture/#production-is-the-default). | +| `platform.posture.conflict` | `--posture` (or a tool's `--production` alias) and `REGISTRY_STACK_POSTURE` declare different postures, or `--posture` is given more than once. | Declare the posture once, or make both inputs agree. See [Production is the default](../../operate/deployment-posture/#production-is-the-default). | +| `evidence.posture.assurance-profile-conflict` | A development process was given an Evidence package built for production assurance. | Build the package with `assuranceProfile: local` for development, or run the package in production. | +| `render.posture.assurance-profile-conflict` | A development Render process is configured with `assuranceProfile: production`. | Write `assuranceProfile: local` and use a local key file, or start the deployment as production. See [Render configuration](../render-configuration/). | +| `render.posture.test-signing` | `registry-render test-seal` ran without declaring development. | Declare development for the test seal. See [Use a test seal in development](../../operate/registry-render/#use-a-test-seal-in-development). | diff --git a/docs/site/src/content/docs/reference/render-configuration.mdx b/docs/site/src/content/docs/reference/render-configuration.mdx index de6e2011bf..75bedb9039 100644 --- a/docs/site/src/content/docs/reference/render-configuration.mdx +++ b/docs/site/src/content/docs/reference/render-configuration.mdx @@ -28,7 +28,14 @@ This grammar is not frozen. list declares each type's template, data schema, label locales, version, and PDF standard. Each `labels/.yaml` holds one label table, and every table must carry the same keys. `runtime.yaml` is what `registry-render serve` reads: listener, -package, secret providers, API key, limits, and audit. +package, secret providers, authentication, limits, and audit. + +`authentication` takes exactly one mode. `oidc` admits resource-bound access tokens and names each +client. `apiKeyRef` names a shared API key: one static bearer credential that every request +presents. The shared API key is a supported mode for a single trusted caller where no OIDC issuer +is available. It never seals. Every request carries the same key, so the audit records one +fingerprint for all calls and cannot tell callers apart. Use `oidc` when more than one system calls +Render or when a deployment seals. The JSON Schema a document type names for its data is yours to write; Render applies it to every request and has no schema of its own for it. A schema-valid file still needs `registry-render @@ -42,7 +49,9 @@ Two rules are written as exclusions the tables do not show: each document's `ent {/* Evidence: crates/registry-render/src/manifest.rs, Manifest; crates/registry-render/src/labels.rs; - crates/registry-render/src/runtime.rs, RenderRuntime; + crates/registry-render/src/runtime.rs, RenderRuntime, AuthenticationRuntime; + crates/registry-render/src/server.rs, SHARED_KEY_GUIDANCE, fingerprint_api_key at service build + and the bearer check; crates/registry-render/src/check.rs, run; docs/site/scripts/generate-render-configuration.mjs. */} @@ -79,12 +88,19 @@ The tables above list the `signing.seals.` keys and the manifest's per-docum rules are not in the tables. - Omit `signing` to leave sealing off. With it, at least one seal is required, and `serve` mounts - `POST /v1/seal/{type}`. Without it, that path is an unknown route and `/ready` has no `signing` + `POST /v1/seal/{documentType}`. Without it, that path is an unknown route and `/ready` has no `signing` member. - `signing` needs `authentication.oidc`. Each seal has exactly one of `timestampAuthority` (B-T) and `withoutTimestamp: seal-stops-validating-when-certificate-expires` (B-B). - `timestampAuthority.url` is `https`; `http` is accepted only for `localhost`, `127.0.0.0/8`, and `[::1]`. `attemptTimeoutMilliseconds` is 1000 to 60000 and defaults to 10000. +- Render resolves only the authority's host. It refuses an answer that is loopback for a host name, + link-local, multicast, unspecified, or a cloud metadata address, and accepts a private address. + The name `localhost` and a loopback address literal stay accepted. A refused address literal + stops `check` and `serve` with `render.runtime.timestamp-address-refused`, and a refused answer + for a host name fails each seal with reason `destination-refused`. +- `caBundleRef` needs an `https` URL; on `http` it is refused with + `render.runtime.seal-timestamp-ca-bundle-requires-https`. - `timestampAuthority.caBundleRef` is a secret reference to a PEM CA bundle that verifies the authority's TLS certificate in place of the platform's trusted roots. Omitted, the platform's trusted roots verify it. @@ -147,7 +163,7 @@ Serve and `check` report these as runtime problems at the position of the key. | Code | Meaning | |---|---| -| `render.runtime.signing-requires-oidc` | `signing` is declared with the legacy API key. | +| `render.runtime.signing-requires-oidc` | `signing` is declared with the shared API key. | | `render.runtime.no-seals` | `signing.seals` is empty. | | `render.runtime.relative-path` | `certificateChainFile`, or a `transit` signer's `unixSocketPath`, is relative or has a `.` or `..` segment. | | `render.runtime.seal-timestamp-undecided` | Neither `timestampAuthority` nor `withoutTimestamp` is declared. | @@ -213,9 +229,9 @@ seal requests only. ### The seal route -`POST /v1/seal/{type}` takes the render route's request body and returns the document sealed. It +`POST /v1/seal/{documentType}` takes the render route's request body and returns the document sealed. It requires the `render:seal` scope, which `render:render` does not imply, from a client the seal's -`allowedClients` names. The legacy API key never seals. The signing time is the server's clock, +`allowedClients` names. The shared API key never seals. The signing time is the server's clock, truncated to seconds. `GET /v1/document-types` names the seal of each document type this route takes as `seal`; a document type without it is refused here with `document-not-sealable`. @@ -247,7 +263,7 @@ The problems specific to this route, from a closed vocabulary shared with the re | Problem | HTTP | Exit code | Meaning | |---|---|---|---| -| `forbidden` | 403 | 23 | The credential lacks `render:seal`, or is the legacy API key. | +| `forbidden` | 403 | 23 | The credential lacks `render:seal`, or is the shared API key. | | `seal-client-not-allowed` | 403 | 30 | The verified client is not in the seal's `allowedClients`. | | `document-not-sealable` | 400 | 29 | The document type names no seal. | | `signing-unavailable` | 503 | 26 | The seal's key provider is not ready. | @@ -278,6 +294,7 @@ A `timestamp-failed` response entry adds `reason`, the failing check, and the lo | `reason` | Piece | |---|---| | `connection-failed`, `timed-out` | The authority could not be reached within the attempt timeout. | +| `destination-refused` | The authority's host name resolved to an address Render does not dial. Retrying does not help. | | `response-headers` | The reply exceeds the header limits or declares development to a production caller. | | `http-status`, `not-granted` | The authority answered with an HTTP error, or a status that grants no token. | | `not-a-timestamp-reply`, `malformed-response`, `missing-token`, `not-tst-info`, `malformed-tst-info` | The answer is not a DER timestamp reply carrying a token. | @@ -331,7 +348,7 @@ errors also exit 2, and a panic exits 101. - 21, `internal`: an internal invariant broke; it never carries data. - 22, `body-too-large`: the request body is over the configured ceiling (serve, HTTP 413). - 23, `forbidden`: the verified credential lacks `render:render` (`render:seal` on the seal route), - or the legacy API key calls the seal route (serve, HTTP 403). + or the shared API key calls the seal route (serve, HTTP 403). - 24, `authentication-unavailable`: the verifier cannot reach a verdict (serve, HTTP 503). - 25, `not-found`: the route is not exposed by the adapter (HTTP 404). - 26, `signing-unavailable`: the seal's key provider cannot sign now (serve, HTTP 503). diff --git a/docs/site/src/content/docs/reference/render-payload.mdx b/docs/site/src/content/docs/reference/render-payload.mdx index bb1deb52ce..37338d5a52 100644 --- a/docs/site/src/content/docs/reference/render-payload.mdx +++ b/docs/site/src/content/docs/reference/render-payload.mdx @@ -58,7 +58,7 @@ bytes is the `dataDigest` the caller stores on the record. - `locale` is present only when the request sent one, and is validated. - `issuedAt` is the document's issuance claim. It is also the world clock and the PDF date. - `document` carries the document type's `id` and its `version` from the manifest. -- `signing` is present only on the seal route, `POST /v1/seal/{type}`, and in +- `signing` is present only on the seal route, `POST /v1/seal/{documentType}`, and in `compile --preview-seal`. {/* Evidence: crates/registry-render/src/envelope.rs, EnvelopeInput, SigningPayload and diff --git a/docs/site/src/content/docs/reference/scheduling-configuration.mdx b/docs/site/src/content/docs/reference/scheduling-configuration.mdx index ba29e47666..bb1cebe0c9 100644 --- a/docs/site/src/content/docs/reference/scheduling-configuration.mdx +++ b/docs/site/src/content/docs/reference/scheduling-configuration.mdx @@ -92,9 +92,12 @@ kind: SchedulingRuntimeConfig The earlier `registry.registrystack.org/scheduling-runtime/v1alpha1` envelope is refused with a diagnostic naming the current one. -So are the renamed keys `audit.retainDays`, `retention.attemptReceiptDays`, -`retention.attemptReceiptRetentionDays`, `retention.hookPayloadDays`, and `caseworkResource` in a -`taskGrantStatus` entry, each naming the key that replaced it. +So are these renamed keys, each with a diagnostic naming the key that replaced it: + +- `audit.retainDays`, now `audit.retentionDays` +- `retention.attemptReceiptDays` and `retention.attemptReceiptRetentionDays`, now `retention.receiptRetentionDays` +- `retention.hookPayloadDays`, now `retention.hookPayloadRetentionDays` +- `caseworkResource` in a `taskGrantStatus` entry, now `statusResource` String values in `runtime.yaml` may take a deployment value from the environment when the runtime starts: `${VAR}` requires `VAR`, `${VAR:-default}` falls back to `default`, and `${VAR:?message}` diff --git a/docs/site/src/content/docs/reference/typescript-clients.mdx b/docs/site/src/content/docs/reference/typescript-clients.mdx index 49713da5ad..2412b2efc0 100644 --- a/docs/site/src/content/docs/reference/typescript-clients.mdx +++ b/docs/site/src/content/docs/reference/typescript-clients.mdx @@ -102,6 +102,18 @@ The successful browser coverage consists of the six reads above. {/* Evidence: clients/typescript/tests/live/browser.live.test.ts runBrowserSuite; clients/typescript/tests/live/browser-live.html checkUnauthenticatedSession, checkAuthenticatedMatrix, checkEvidenceSession. */} +Run the full live matrix on demand from a source checkout with the product and operator binaries built from that checkout. +It also needs Docker, Python 3, Node 24, Deno and Playwright's Chromium. +After installing the client dependencies and building the browser bundle, run +`npm --prefix clients/typescript run test:live -- --require-deno` from the repository root. +The TypeScript CI job runs the Node and Deno package tests for relevant changes and during the nightly sweep. +The live CI job is scheduled for 22:37 UTC each night and runs on a manual full sweep. +It builds the product binaries from source and runs the full Node, Deno and Chromium matrix. + +{/* Evidence: clients/typescript/package.json scripts; clients/typescript/tests/live/run.ts runLiveSuite; + clients/typescript/tests/live/harness.ts resolveBinaries, startLiveEnvironment; + clients/typescript/tests/live/browser.live.test.ts; .github/workflows/ci.yml. */} + ## Generate a service for your BReg projects Install the package in your application with Node 24. @@ -197,7 +209,7 @@ import { createRegistryClient } from './generated/services/breg-facility-documen const registry = createRegistryClient({ baseUrl: '/registry' }) const answer = await registry.facility.call('records.facility.list', { - query: { accessProfile: 'facility-reader', $top: 25 }, + query: { accessProfile: 'facility-reader', limit: 25 }, }) await registry.casework.call('describeCasework') ``` @@ -499,7 +511,7 @@ Two helpers walk the cursor. import { allPages, pages } from './browser.ts' const contacts = await allPages(cursor => client.records_contact_listPage({ - query: { accessProfile: 'directory-editor', $top: 25 }, + query: { accessProfile: 'directory-editor', limit: 25 }, }, cursor)) for await (const page of pages(cursor => client.records_contact_listPage({}, cursor))) { @@ -578,11 +590,11 @@ const first = await client.list('licence', { where: { status: ['active', 'suspended'], region: 'north', holderName: { startsWith: 'Dep' } }, orderBy: 'expiresOn', select: ['licenceNumber', 'holderName', 'expiresOn'], - top: 20, + limit: 20, count: true, }) if (first.nextCursor !== null) { - const second = await client.list('licence', { accessProfile: 'licence-officer', after: first.nextCursor }) + const second = await client.list('licence', { accessProfile: 'licence-officer', cursor: first.nextCursor }) } ``` @@ -593,7 +605,7 @@ if (first.nextCursor !== null) { | `orderBy` | One sortable property, or `'property desc'` where the profile allows descending. | | `select` | Selectable properties, each once. | | `count` | Allowed only when the profile sets `allowCount`. The answer then carries `count`. | -| `top` | A whole number from 1 to the profile's `maximumPageSize`. | +| `limit` | A whole number from 1 to the profile's `maximumPageSize`. | `where` forms and the operators they need: @@ -621,10 +633,10 @@ A refusal is a `TypeError` that names the property and profile, for example ``Pr It never repeats a filter value, and it names a property only when the contract declares it. `list` returns `{ items, nextCursor }`, plus `count` when the answer carries it. -Pass `nextCursor` as `after` for the next page. If the first page used the default, omit `accessProfile` again. If it named a profile, repeat that profile. +Pass `nextCursor` as `cursor` for the next page. If the first page used the default, omit `accessProfile` again. If it named a profile, repeat that profile. A null cursor ends the list. The cursor carries the query, so the continuation sends only the access profile and the cursor. -The client refuses `where`, `orderBy`, `select`, `count` and `top` alongside `after` before sending a request, because the cursor carries them. +The client refuses `where`, `orderBy`, `select`, `count` and `limit` alongside `cursor` before sending a request, because the cursor carries them. `list` takes the same `signal` and `maxResponseBytes` as any call, and works with `pages` and `allPages`. Sub-collection lists use `call` by operation ID or their generated page method. diff --git a/docs/site/src/content/docs/security/casework.mdx b/docs/site/src/content/docs/security/casework.mdx index ce300d4488..8c581a5467 100644 --- a/docs/site/src/content/docs/security/casework.mdx +++ b/docs/site/src/content/docs/security/casework.mdx @@ -153,8 +153,8 @@ grants in [Registry Casework task grants](../../reference/casework-task-grants/) A human request to a current-source target without `Registry-Source-Authorization` is refused before source I/O with 401 `source-authorization.required` on the `credential-missing` check, while preserving 404 concealment for unknown or invisible single targets. - Casework-retained reads that make no source call (a decided task on `GET /v1/review-tasks/{id}` - and terminal history on `GET /v1/review-requests/{id}/history`) do not require + Casework-retained reads that make no source call (a decided task on `GET /v1/review-tasks/{taskId}` + and terminal history on `GET /v1/review-requests/{requestId}/history`) do not require `Registry-Source-Authorization`, though a supplied source header is still validated. Collection authentication resolves one immutable provider before filtering or output, including empty pages; missing or ambiguous providers and invalid pairs fail the invocation. @@ -163,8 +163,9 @@ grants in [Registry Casework task grants](../../reference/casework-task-grants/) is decided as without the pair, by the primary bearer, profile and ordinary authorisation. Before looking up the target's policy, Casework refuses malformed source bearers and repeated authorisation or source profile headers. It also refuses a source bearer without a valid - `Registry-Source-Profile` and requests from a requester. Casework refuses either retired header, - `Registry-Casework-Profile` or `Registry-Review-Profile`, even if it appears only once. + `Registry-Source-Profile` and requests from a requester. + Casework refuses the retired `Registry-Casework-Profile` and `Registry-Review-Profile` headers, + even if one appears only once. A repeated `accessProfile` query parameter or an invalid selector value is a separate refusal. Both selector checks return `400` `request.invalid`. Source-free routes still reject the source header. diff --git a/docs/site/src/content/docs/security/coordinator.mdx b/docs/site/src/content/docs/security/coordinator.mdx index d7a61e323a..150a5b50fa 100644 --- a/docs/site/src/content/docs/security/coordinator.mdx +++ b/docs/site/src/content/docs/security/coordinator.mdx @@ -25,7 +25,7 @@ Deployment steps are in [Deploy Registry Coordinator](../../operate/coordinator/ Adapter payment connection. Operator configuration is trusted; workflow data is not. - A workflow author writes a project that Coordinator freezes into a definition. - The author supplies bodies, mappings and pure Functions. + The author supplies bodies, mappings and pure Transforms. The author does not choose destinations, headers, credentials or recovery behaviour; the closed operation catalogue does. - Providers decide every effect a run requests: Registry Casework, Registry Scheduling, BReg, the @@ -232,12 +232,12 @@ Enforcement: Once the request may have left, a lost or broken exchange, a timeout, a redirect, any other 5xx, and an oversize, malformed or schema-invalid response are uncertain and hold the run. - Coordinator checks the response against the alias's `responseSchema`, then runs the project's - pinned pure Function. + pinned pure Transform. Only `accepted` with a result matching the step's declared output, or `refused` with a declared - code, leaves the hold; everything else, including a Function error, is uncertain. - The worker and offline scenarios use the same Function, and scenario validation + code, leaves the hold; everything else, including a Transform error, is uncertain. + The worker and offline scenarios use the same Transform, and scenario validation (`scenario.reply`) refuses a `success` or `declared-refusal` reply to the step, so no scenario - reaches a result or refusal route the Function would not produce. + reaches a result or refusal route the Transform would not produce. Transport and scenario validation share one status classification, so a `response` reply with a status the worker holds or retries before interpretation (a redirect, a 429 or any 5xx) is refused too. @@ -489,9 +489,9 @@ Refused: a metadata answer beyond 8 MiB; any business answer beyond 64 KiB. derived_response_limits_retain_credentials_and_leave_the_original_bound_unchanged. These HTTP fixtures do not establish database transaction or deployed service behavior. */} -### COORDINATOR-INV-09: the pure Function profile is bounded and deterministic +### COORDINATOR-INV-09: the pure Transform profile is bounded and deterministic -Threat: a pure Function runs author-supplied code inside the worker. +Threat: a pure Transform runs author-supplied code inside the worker. An argument-controlled loop or allocation could hold a worker thread or exhaust memory. A host-dependent result could differ when a wait replays or a job attempt recomputes, and a changed engine could reinterpret a frozen definition. @@ -535,18 +535,18 @@ Enforcement: functions take results from the platform math library and may differ in the last digits between operating systems, CPU architectures or library versions. Results are recomputed, not only read back: a held wait is recomputed when waits replay, the next - WaitUntil is evaluated again, and each job attempt runs the Function again. + WaitUntil is evaluated again, and each job attempt runs the Transform again. A deadline computed with such a function could therefore land a second apart on two hosts. Coordinator registers only deterministic functions: `sqrt`, `floor`, `ceiling`, `round`, `int`, `fraction`, `is_nan`, `is_finite`, `is_infinite`, `to_degrees`, `to_radians`, `PI`, `E`, `parse_int`, `parse_float`, `to_int` and `to_float`, next to the arithmetic package's `abs`, `sign`, `min` and `max`. -- A Function result holding NaN or an infinite float (`0.0 / 0.0`, `sqrt(-1.0)`) is refused with +- A Transform result holding NaN or an infinite float (`0.0 / 0.0`, `sqrt(-1.0)`) is refused with `function.execution` where results turn into JSON, instead of becoming `null`. - The unknown-call check walks the syntax tree and function table, which Rhai exposes only under its `internals` feature, enabled in the build. It is an authoring aid, not a security boundary: the engine refuses any name it lacks when the - Function runs. + Transform runs. Refused: empty-padding `pad`; `pad` or `replace` results over the string budget; NaN and infinity results; a definition frozen under another interpreter identity; any function outside the @@ -616,7 +616,7 @@ admission. Startup refuses a profile without `subjects`. Threat: every workflow in a deployment calls Casework under the same review producer identity, so Casework cannot tell which run submitted a review request. -A cancel whose `request` is built from input, a literal, a Function or another step could withdraw +A cancel whose `request` is built from input, a literal, a Transform or another step could withdraw a review that another run submitted. Enforcement: check refuses a `casework.cancel-review-request/v1` step unless its input is a fields @@ -891,7 +891,7 @@ The residuals refer to them by number. A live run whose retained definition a version does not restore, under another interpreter identity or a restore rule it breaks, is held with `definition-refused`, and only a release that accepts its definition can end it (COORDINATOR-INV-12). -9. Treat a project's Function as reviewed code: a Function that maps an ambiguous provider answer +9. Treat a project's Transform as reviewed code: a Transform that maps an ambiguous provider answer to `accepted` is an authoring defect that scenarios and review must catch. 10. List in each access profile's `subjects` only the identities it is meant to admit: a producer client's own service-account subject, or the named operators. @@ -987,10 +987,10 @@ Each residual names the condition under which it applies, its consequence, and t - Consequence: `reconcile` cannot settle an uncertain command. - Mitigation: check the provider's records, then retry or cancel the held run. -### COORDINATOR-RES-08: an accepted result is the Function's reading +### COORDINATOR-RES-08: an accepted result is the Transform's reading - Condition: Coordinator does not independently verify the provider's effect. -- Consequence: a Function that maps an ambiguous answer to `accepted` records an effect that may +- Consequence: a Transform that maps an ambiguous answer to `accepted` records an effect that may not have happened. - Mitigation: cover ambiguous answers in scenarios and review. @@ -1106,7 +1106,7 @@ Each residual names the condition under which it applies, its consequence, and t ### COORDINATOR-RES-19: float `**` is not on the deterministic math list -- Condition: a Function uses float `**` (`powf`, in the arithmetic package). +- Condition: a Transform uses float `**` (`powf`, in the arithmetic package). - Consequence: its result is not covered by the deterministic-math rule, so last digits could differ across hosts. - Mitigation: do not derive a deadline or a comparison threshold from float `**`. diff --git a/docs/site/src/content/docs/security/evidence.mdx b/docs/site/src/content/docs/security/evidence.mdx index ab3ddf3b30..b5a9da39b6 100644 --- a/docs/site/src/content/docs/security/evidence.mdx +++ b/docs/site/src/content/docs/security/evidence.mdx @@ -143,7 +143,7 @@ connection policies fix the endpoints, authentication, and TLS a route may use. That closes off server-side request forgery (SSRF), credential forwarding, and script-directed networking. The route returns one closed lookup result, and the requirement's -[Function](../../reference/glossary/#function) returns declared typed values +[Derivation](../../reference/glossary/#derivation) returns declared typed values only. The core validates both and assembles the public evidence itself. Absence does not leak. Missing facts, script failures, audit failures, and @@ -213,7 +213,7 @@ evaluation time, and nothing else. stored code, and the other unresolved cases return the same `404`, with the same headers and body apart from the fresh trace identifier. - **Code confinement.** The code is compared in constant time and removed from the facts before any - Function runs, on every route that reads that source. It is never a source input, and it appears in + Derivation runs, on every route that reads that source. It is never a source input, and it appears in no log, audit record, or answer. - **Timing.** Evidence adds no delay, so a response can take longer when the number exists than when it does not. That can reveal whether a number exists. It reveals nothing about the code. The diff --git a/docs/site/src/content/docs/security/render.mdx b/docs/site/src/content/docs/security/render.mdx index 1a5e076457..454914f37f 100644 --- a/docs/site/src/content/docs/security/render.mdx +++ b/docs/site/src/content/docs/security/render.mdx @@ -126,7 +126,9 @@ creation, is what would close it. Render reaches the authority over TLS with the host's root certificates, or with only the CA bundle `timestampAuthority.caBundleRef` names, and accepts a token that matches the signature, nonce and -key usage; it does not pin the authority's certificate or decide whether it is trusted. +key usage; it does not pin the authority's certificate or decide whether it is trusted. It resolves +only the authority's host and never dials a cloud metadata, link-local, multicast or unspecified +address, nor a loopback answer for a host name. Validators decide trust in the seal certificate and the timestamp authority. {/* Evidence: crates/registry-render/src/runtime.rs ca_bundle_ref; @@ -234,8 +236,8 @@ Render counts every refused request by the check that refused it, in `metricsListener` is set. Without it the counter still counts and the log line is the only signal. The `check` label is a closed set of 45 names, every one published at zero, and no caller value becomes a label. -The counter covers a missing or malformed credential, a legacy API key mismatch, a token the -verifier refuses, a key source Render cannot reach or use, a missing scope, the legacy key presented to the seal +The counter covers a missing or malformed credential, a shared API key mismatch, a token the +verifier refuses, a key source Render cannot reach or use, a missing scope, the shared key presented to the seal route, and a client that the seal's `allowedClients` does not list. Each refusal also writes one `request refused` log line with `failed_check` and the request's trace id when it has one, at most five lines per check per minute, with `suppressed` counting what a diff --git a/docs/site/src/content/docs/start/coordinator.mdx b/docs/site/src/content/docs/start/coordinator.mdx index fa5ad46650..d36c2c47dd 100644 --- a/docs/site/src/content/docs/start/coordinator.mdx +++ b/docs/site/src/content/docs/start/coordinator.mdx @@ -39,9 +39,9 @@ cannot restore that definition holds the run. A workflow is built from five step types: - `call` runs one product operation. -- `choose` routes on one typed value, on a pure [Function](../../reference/glossary/#function) +- `choose` routes on one typed value, on a pure [Transform](../../reference/glossary/#transform) written in bounded [Rhai](../../reference/glossary/#rhai), or on a `compare` of typed values that - needs no Function. In a `compare`, a value that is missing or of the wrong type fails the run + needs no Transform. In a `compare`, a value that is missing or of the wrong type fails the run instead of routing to `unmatched`. The `present` test is the exception, because it reads absence. - `wait-until` waits for an instant. - `wait-for` waits for a named result, such as a Casework review decision. @@ -49,7 +49,7 @@ A workflow is built from five step types: `coordinatorctl check` compiles the project offline. It proves that each step a mapping reads has run on every route that reaches it, and it checks each path against the declared schemas. Values a -schema leaves open, and values a Function computes, are left to scenarios and the runtime. +schema leaves open, and values a Transform computes, are left to scenarios and the runtime. `coordinatorctl package` freezes the project into an immutable [package](../../reference/glossary/#package) whose digest the deployment pins. @@ -63,7 +63,7 @@ schema leaves open, and values a Function computes, are left to scenarios and th An authorised caller starts a run with `POST /v1/runs`, giving the expected workflow revision, its input, and an idempotency key. An authored event trigger can also start one from a signed product -event at `POST /v1/events/{workflow}/{trigger}`, and an authored calendar trigger starts one on a +event at `POST /v1/events/{workflowId}/{triggerId}`, and an authored calendar trigger starts one on a schedule with no caller. The same key with the same revision and input returns the same run, and the [API reference](../../reference/apis/registry-coordinator/) states what a conflicting reuse gets. diff --git a/docs/site/src/content/docs/start/registry-render.mdx b/docs/site/src/content/docs/start/registry-render.mdx index 14e8b5f2a5..803db8b992 100644 --- a/docs/site/src/content/docs/start/registry-render.mdx +++ b/docs/site/src/content/docs/start/registry-render.mdx @@ -57,7 +57,7 @@ receives](../../reference/render-payload/#what-fixes-the-bytes) gives the rules. `registry-render compile` renders one document at a terminal, for authoring and for printing at a counter without a service. `registry-render serve` is a small HTTP service that admits callers by -OIDC access token, or by a legacy API key, and serves one package. `registry-render package` copies +OIDC access token, or by a shared API key, and serves one package. `registry-render package` copies validated source into a new directory and writes a sorted `SHA256SUMS` file covering every file, plus an optional `REVISION`. The package digest is the sha256 of that checksum file. The package writer refuses an existing directory, so a digest never gains different bytes. diff --git a/docs/site/src/content/docs/tutorials/assert-a-role-bound-relationship.mdx b/docs/site/src/content/docs/tutorials/assert-a-role-bound-relationship.mdx index 991ed8baf9..5613e37fc6 100644 --- a/docs/site/src/content/docs/tutorials/assert-a-role-bound-relationship.mdx +++ b/docs/site/src/content/docs/tutorials/assert-a-role-bound-relationship.mdx @@ -68,7 +68,7 @@ subjects: Each role selects a record through the `record-by-id` [lookup](../../reference/glossary/#lookup). The `parent-record` source fetches the parent set with the `child` selector alone, and its response shape requires `complete: true`, so an -incomplete set is refused before any Function runs. `outputs` declares one Boolean, `is-parent`, so +incomplete set is refused before the Derivation runs. `outputs` declares one Boolean, `is-parent`, so the parent list never enters the assertion. {/* Evidence: products/evidence/examples/standalone/evidence.yaml, selectorInputs; diff --git a/docs/site/src/content/docs/tutorials/build-and-deploy-evidence-project.mdx b/docs/site/src/content/docs/tutorials/build-and-deploy-evidence-project.mdx index e3e8cbe096..6e3788e1eb 100644 --- a/docs/site/src/content/docs/tutorials/build-and-deploy-evidence-project.mdx +++ b/docs/site/src/content/docs/tutorials/build-and-deploy-evidence-project.mdx @@ -53,7 +53,7 @@ The deployment you build here does not need the run from your first assertion; s ## Write the deployment target -The assertion provider owns the Evidence project: `assertionDefinitions`, `sources`, `functions`, +The assertion provider owns the Evidence project: `assertionDefinitions`, `sources`, `derivations`, `lookups`, `outputs`, and each `grantCeiling`. You own the environment, in a [deployment target](../../reference/glossary/#target) kept beside the project. Step out of `adult-status` and create one from the project's local settings: @@ -157,7 +157,7 @@ Access profiles: 1 Run the production closure check with production declared for this command. The remaining commands run in development. ```sh test-exit="1" -REGISTRY_STACK_POSTURE=production rstack evidence check adult-status --target deploy-target/target.yaml --production +REGISTRY_STACK_POSTURE=production rstack evidence check adult-status --target deploy-target/target.yaml --require-deployment-closure ``` ```text test-expect @@ -168,7 +168,7 @@ Explicit production setting platform.posture.issuer-loopback-plaintext at /authe Explicit production setting platform.posture.issuer-loopback-plaintext at /authentication/oidc/issuers/primary/jwksSource/uri. An issuer endpoint uses plain HTTP on loopback. Explicit production setting platform.posture.unrestricted-clients at /authentication/oidc/issuers/primary/allowedClients. admits a token from every client this issuer signs for. error[evidence.target.production-assurance-required] deploy-target/target.yaml:/assuranceProfile - --production requires production or evidence-grade target assurance + deployment closure requires production or evidence-grade target assurance next: Correct the selected project or target artifact and rerun check. 1 error, 0 warnings in 1 file ``` diff --git a/docs/site/src/content/docs/tutorials/change-a-registry-with-an-action.mdx b/docs/site/src/content/docs/tutorials/change-a-registry-with-an-action.mdx index adc99e17bf..af3aa901ef 100644 --- a/docs/site/src/content/docs/tutorials/change-a-registry-with-an-action.mdx +++ b/docs/site/src/content/docs/tutorials/change-a-registry-with-an-action.mdx @@ -71,7 +71,7 @@ actions: ``` `update-contact-email` takes a contact and an email address. Its `plan` is its -[Plan](../../reference/glossary/#planner): the one effect it has, a patch of that contact's +[Action Plan](../../reference/glossary/#action-plan): the one effect it has, a patch of that contact's `email`. `execution: {mode: immediate}` means the registry makes the change in the same request that invokes the Action. diff --git a/docs/site/src/content/docs/tutorials/connect-a-sqlite-extract.mdx b/docs/site/src/content/docs/tutorials/connect-a-sqlite-extract.mdx index 9cc5c75d62..0ae94c190e 100644 --- a/docs/site/src/content/docs/tutorials/connect-a-sqlite-extract.mdx +++ b/docs/site/src/content/docs/tutorials/connect-a-sqlite-extract.mdx @@ -54,7 +54,7 @@ rstack evidence init registry-status \ Created an editable SQLite-extract authoring project in registry-status README: registry-status/README.md (what each file holds, and what comes next) project: registry-status/evidence.yaml - functions: registry-status/functions + derivation assets: registry-status/functions adapter packs: registry-status/adapter-packs target: registry-status/local-target.yaml authority: registry-status/dev-authority.yaml diff --git a/docs/site/src/content/docs/tutorials/connect-an-institution-source.mdx b/docs/site/src/content/docs/tutorials/connect-an-institution-source.mdx index 1ae3afe88c..87bd2fd70c 100644 --- a/docs/site/src/content/docs/tutorials/connect-an-institution-source.mdx +++ b/docs/site/src/content/docs/tutorials/connect-an-institution-source.mdx @@ -123,14 +123,14 @@ Definition fhir-coverage-status: urn:example:requirement:coverage-record:v1 Posture: record-transformed Inputs: coverageId <- selector coverage-record@coverage-by-id.coverage_id Facts: beneficiary-reference (string), status (string) - Derive: Function derive-coverage-status + Derivation: derive-coverage-status Outputs: coverage-record-reports-active ``` The Source is the project's thin acquisition binding. It selects one route from the reviewed `fhir-read-through@1` pack, supplies `coverageId` from the fixed lookup, and names the -target-owned connection. The route returns only the two private Facts shown before the derivation -Function produces the Boolean Output. +target-owned connection. The route returns the two private Facts shown. The Derivation uses +those Facts to produce the Boolean Output. ## Read the operation from its OpenAPI description diff --git a/docs/site/src/content/docs/tutorials/evidence-from-breg.mdx b/docs/site/src/content/docs/tutorials/evidence-from-breg.mdx index e2fbfd3065..31490bbac2 100644 --- a/docs/site/src/content/docs/tutorials/evidence-from-breg.mdx +++ b/docs/site/src/content/docs/tutorials/evidence-from-breg.mdx @@ -113,22 +113,21 @@ rstack evidence source import ./registry-status-export --project ./evidence ``` The import checks every artifact's checksum, then adds the `registry-status` Source, its selector -profiles, and two Functions. It adds no assertion definition and no caller grant: the registry's -profile does not become an Evidence permission. +profiles, and its pinned Adapter pack. It grants no Evidence permission. The AssertionDefinitions and their Derivations come from the fragment in the next step. {/* Evidence: crates/registry-breg/src/evidence_source.rs; crates/registry-evidencectl/src/source_import/mod.rs, replace_project_sections. */} ## Add the assertion definitions -Copy the fragment's Functions and fixtures, then merge its definitions with +Copy the fragment's Derivation scripts and fixtures, then merge its definitions with [yq](https://github.com/mikefarah/yq) version 4: ```sh cp teaching-inputs/starter/functions/*.rhai evidence/functions/ cp teaching-inputs/starter/fixtures/*.yaml evidence/fixtures/ yq --inplace ' - .functions += load("teaching-inputs/starter/definitions.yaml.fragment").functions + .derivations += load("teaching-inputs/starter/definitions.yaml.fragment").derivations | .assertionDefinitions += load("teaching-inputs/starter/definitions.yaml.fragment").assertionDefinitions ' evidence/evidence.yaml yq '.assertionDefinitions | keys' evidence/evidence.yaml diff --git a/docs/site/src/content/docs/tutorials/extend-a-registry-with-a-module.mdx b/docs/site/src/content/docs/tutorials/extend-a-registry-with-a-module.mdx index 7aa60136ab..6a845921c6 100644 --- a/docs/site/src/content/docs/tutorials/extend-a-registry-with-a-module.mdx +++ b/docs/site/src/content/docs/tutorials/extend-a-registry-with-a-module.mdx @@ -111,7 +111,7 @@ The lock writes the digest of the module's exact bytes into `registry.yaml`. If changes later, the check fails until you lock again. ```sh -rstack breg check . --production +rstack breg check . --posture production --require-package-closure ``` ```text test-expect diff --git a/docs/site/src/content/docs/tutorials/first-evidence-assertion.mdx b/docs/site/src/content/docs/tutorials/first-evidence-assertion.mdx index d012a8a293..345d296fa2 100644 --- a/docs/site/src/content/docs/tutorials/first-evidence-assertion.mdx +++ b/docs/site/src/content/docs/tutorials/first-evidence-assertion.mdx @@ -110,7 +110,7 @@ Definition adult-status: urn:example:requirement:adult-status:v1 Projection: projections/person-facts.rhai::project_facts; schema schemas/person-facts.json; digest sha256:e203f7570ea7e625e36fa155bf0b4060865b26043b8ba1dce6bcc606fca01696 Inputs: recordId <- selector subject@record-by-id.record-id Facts: birth-date (string), residence-region (string) - Derive: Function derive-adult-status + Derivation: derive-adult-status Outputs: adult ``` diff --git a/docs/site/src/content/docs/tutorials/move-evidence-to-production-signing.mdx b/docs/site/src/content/docs/tutorials/move-evidence-to-production-signing.mdx index 1f1517e1b4..cdb9c7a8da 100644 --- a/docs/site/src/content/docs/tutorials/move-evidence-to-production-signing.mdx +++ b/docs/site/src/content/docs/tutorials/move-evidence-to-production-signing.mdx @@ -186,7 +186,7 @@ A successful `/ready` response includes `posture: production` and an empty `deve Check the project against the target for production: ```sh -rstack evidence check "" --target "/target.yaml" --production +rstack evidence check "" --target "/target.yaml" --posture production --require-deployment-closure ``` ```text test-expect diff --git a/docs/site/src/content/docs/tutorials/query-breg-client.mdx b/docs/site/src/content/docs/tutorials/query-breg-client.mdx index ede2462d97..2057324b7d 100644 --- a/docs/site/src/content/docs/tutorials/query-breg-client.mdx +++ b/docs/site/src/content/docs/tutorials/query-breg-client.mdx @@ -333,7 +333,7 @@ node change_email.mjs "$contact_id" ada@analytical.example.test The registry answered each call with an ActionReceipt. It names the Action, gives the change an `applicationId`, and lists under each effect of the Action's -[Plan](../../reference/glossary/#planner), here the single effect `contact-email`, the Record it +[Action Plan](../../reference/glossary/#action-plan), here the single effect `contact-email`, the Record it changed and that Record's new revision. When the registry refuses, the client raises `BaseRegistryClientError`, and its `kind` says what diff --git a/docs/site/src/content/docs/tutorials/return-a-governed-value.mdx b/docs/site/src/content/docs/tutorials/return-a-governed-value.mdx index f1ba9d28c7..6a33e57489 100644 --- a/docs/site/src/content/docs/tutorials/return-a-governed-value.mdx +++ b/docs/site/src/content/docs/tutorials/return-a-governed-value.mdx @@ -122,7 +122,7 @@ outputs: - south ``` -A [Function](../../reference/glossary/#function) that computed any other value would not get it +A [Derivation](../../reference/glossary/#derivation) that computed any other value would not get it past Registry Evidence. One fixture case proves that by returning a value outside the list; run the region fixtures with their trace: diff --git a/docs/site/src/data/coordinator-api.yaml b/docs/site/src/data/coordinator-api.yaml index cab253d937..8927909ca0 100644 --- a/docs/site/src/data/coordinator-api.yaml +++ b/docs/site/src/data/coordinator-api.yaml @@ -53,15 +53,15 @@ rows: - ['`GET`', '`/health`', 'None', '`200` with `{"live":true}` while the process answers.'] - ['`GET`', '`/ready`', 'None', '`200` with `{"ready":true}`, or `503` with `{"ready":false}` while the service cannot accept work.'] - - ['`GET`', '`/v1/workflows/{workflow}`', 'Bearer, `start` on the named workflow', 'Discover the active revision, input schema, and declared outcomes.'] + - ['`GET`', '`/v1/workflows/{workflowId}`', 'Bearer, `start` on the named workflow', 'Discover the active revision, input schema, and declared outcomes.'] - ['`POST`', '`/v1/runs`', 'Bearer, `start` on the named workflow', 'Start one run with the expected `workflowRevision` and an `Idempotency-Key`.'] - ['`GET`', '`/v1/runs`', 'Bearer, `status`', 'List at most 100 of the most recently admitted runs the caller may see, newest first.'] - - ['`GET`', '`/v1/runs/{run}`', 'Bearer, `status`', 'Read one run''s progress and its reviewed terminal output.'] - - ['`GET`', '`/v1/runs/{run}/inspect`', 'Bearer, `inspect`', 'Read bounded steps, accepted or unknown effects, durable wait budgets, and available recovery actions.'] - - ['`POST`', '`/v1/runs/{run}/cancel`', 'Bearer, `cancel`', 'Stop future dispatch where possible, without rolling back an accepted effect.'] - - ['`POST`', '`/v1/runs/{run}/check`', 'Bearer, `inspect`', 'Read a waiting step''s product now, no sooner than the read floor after its last read, counting against the wait''s read budget. Body `{"step":"..."}`.'] - - ['`POST`', '`/v1/runs/{run}/reconcile`', 'Bearer, `reconcile`', 'Settle an uncertain call from the receiving product''s original-key receipt.'] - - ['`POST`', '`/v1/runs/{run}/retry-same`', 'Bearer, `retry-same`', 'Schedule held work again with its original command, key, binding, and authority.'] + - ['`GET`', '`/v1/runs/{runId}`', 'Bearer, `status`', 'Read one run''s progress and its reviewed terminal output.'] + - ['`GET`', '`/v1/runs/{runId}/inspect`', 'Bearer, `inspect`', 'Read bounded steps, accepted or unknown effects, durable wait budgets, and available recovery actions.'] + - ['`POST`', '`/v1/runs/{runId}/cancel`', 'Bearer, `cancel`', 'Stop future dispatch where possible, without rolling back an accepted effect.'] + - ['`POST`', '`/v1/runs/{runId}/check`', 'Bearer, `inspect`', 'Read a waiting step''s product now, no sooner than the read floor after its last read, counting against the wait''s read budget. Body `{"step":"..."}`.'] + - ['`POST`', '`/v1/runs/{runId}/reconcile`', 'Bearer, `reconcile`', 'Settle an uncertain call from the receiving product''s original-key receipt.'] + - ['`POST`', '`/v1/runs/{runId}/retry-same`', 'Bearer, `retry-same`', 'Schedule held work again with its original command, key, binding, and authority.'] - ['`GET`', '`/v1/doctor`', 'Bearer, operator', 'Report activation, audit readiness, holds, and run counts.'] - ['`POST`', '`/v1/restore-hold`', 'Bearer, operator', 'Place the restore hold, which stops dispatch and admissions.'] - ['`POST`', '`/v1/release-restore-hold`', 'Bearer, operator', 'Release the restore hold once no held work is unresolved.'] @@ -69,4 +69,4 @@ - ['`POST`', '`/v1/complete-execution-recovery`', 'Bearer, operator', 'Attest complete execution history and prior fencing while the restore hold remains.'] - ['`POST`', '`/v1/retention`', 'Bearer, operator', 'Erase eligible terminal payloads that ended before a cutoff.'] - ['`POST`', '`/v1/review-completions`', 'Standard Webhooks signature using the key selected by the recipient binding', 'Bring forward the next result read of a run waiting on that review request.'] - - ['`POST`', '`/v1/events/{workflow}/{trigger}`', 'Standard Webhooks signature using the key for the trigger URL', 'Admit one run per exact authenticated event and trigger; exact redelivery returns the same run.'] + - ['`POST`', '`/v1/events/{workflowId}/{triggerId}`', 'Standard Webhooks signature using the key for the trigger URL', 'Admit one run per exact authenticated event and trigger; exact redelivery returns the same run.'] diff --git a/docs/site/src/data/posture-diagnostics.json b/docs/site/src/data/posture-diagnostics.json new file mode 100644 index 0000000000..7a05acc531 --- /dev/null +++ b/docs/site/src/data/posture-diagnostics.json @@ -0,0 +1,308 @@ +{ + "sources": [ + "crates/registry-adapter-core/src/runtime.rs", + "crates/registry-adapter/src/payments/config.rs", + "crates/registry-breg-mcp/src/config.rs", + "crates/registry-breg-review/src/config.rs", + "crates/registry-breg-review/src/lib.rs", + "crates/registry-breg/src/compiler.rs", + "crates/registry-breg/src/field_encryption.rs", + "crates/registry-breg/src/runtime_config.rs", + "crates/registry-casework/src/config/issuers.rs", + "crates/registry-discovery/src/model.rs", + "crates/registry-documents/src/config.rs", + "crates/registry-evidence-oid4vci/src/config.rs", + "crates/registry-evidence/src/bundle.rs", + "crates/registry-evidencectl/src/check.rs", + "crates/registry-mcp-edge/src/config.rs", + "crates/registry-platform-config/src/blocks.rs", + "crates/registry-platform-config/src/caller_issuers.rs", + "crates/registry-platform-config/src/destination.rs", + "crates/registry-render/src/runtime.rs", + "crates/registry-session/src/config.rs" + ], + "diagnostics": [ + { + "code": "adapter.posture.payment-simulator", + "key": "provider", + "condition": "Collections are sent to a synthetic simulator", + "remedy": "Remove the simulator collection connection from the production configuration.", + "crates": [ + "registry-adapter" + ] + }, + { + "code": "breg.posture.http-public-origin", + "key": "publicOrigin", + "condition": "The registry publishes links with a plain HTTP origin", + "remedy": "Set listener.publicOrigin to an HTTPS origin.", + "crates": [ + "registry-breg" + ] + }, + { + "code": "breg.posture.local-key-custody", + "key": "provider", + "condition": "The field-encryption data key is stored in a local file", + "remedy": "Configure the transit provider for field encryption.", + "crates": [ + "registry-breg" + ] + }, + { + "code": "breg.posture.placeholder-identity", + "key": "canonicalBaseIri", + "condition": "The package uses a reserved placeholder registry identity", + "remedy": "Replace canonicalBaseIri and rebuild the package.", + "crates": [ + "registry-breg" + ] + }, + { + "code": "breg.posture.review-http-authorization-endpoint", + "key": "issuer", + "condition": "The authorization endpoint discovered from signIn.issuer is plain http", + "remedy": "Publish an https authorization_endpoint in the issuer's discovery document.", + "crates": [ + "registry-breg-review" + ] + }, + { + "code": "breg.posture.review-http-public-origin", + "key": "publicOrigin", + "condition": "The review page's public origin is plain http", + "remedy": "Use an https public origin.", + "crates": [ + "registry-breg-review" + ] + }, + { + "code": "breg.posture.review-http-public-origin", + "key": "reviewBaseUrl", + "condition": "The review base URL is plain http", + "remedy": "Use an https review base URL.", + "crates": [ + "registry-breg-mcp" + ] + }, + { + "code": "casework.posture.unrestricted-clients", + "key": "allowedClients", + "condition": "this issuer entry admits a token from every client the issuer signs for", + "remedy": "List the OAuth clients whose access tokens this issuer entry admits.", + "crates": [ + "registry-casework" + ] + }, + { + "code": "discovery.posture.loopback-catalog-url", + "key": "catalogUrl", + "condition": "the index advertises an address on the reader's own machine", + "remedy": "Publish HTTPS URLs on non-loopback hosts.", + "crates": [ + "registry-discovery" + ] + }, + { + "code": "documents.posture.content-verification-disabled", + "key": "contentVerification", + "condition": "Finalized document versions are approved without content verification", + "remedy": "Configure an HTTP content verifier.", + "crates": [ + "registry-documents" + ] + }, + { + "code": "evidence.posture.credential-free-source", + "key": "authentication", + "condition": "a credential-free source connection provides no client authentication", + "remedy": "Bind an mtlsIdentity or configure an authenticated endpoint.", + "crates": [ + "registry-evidence" + ] + }, + { + "code": "evidence.posture.local-assurance", + "key": "assuranceProfile", + "condition": "local assurance permits locally held signing keys", + "remedy": "Build a production or evidence-grade package with a Transit signer.", + "crates": [ + "registry-evidence", + "registry-evidencectl" + ] + }, + { + "code": "evidence.posture.supervised-validation", + "key": "validationMode", + "condition": "supervised validation permits a published loopback HTTP credential issuer", + "remedy": "Use validationMode: strict and publish an HTTPS credential issuer.", + "crates": [ + "registry-evidence-oid4vci" + ] + }, + { + "code": "evidence.posture.unrestricted-offer-gate", + "key": "allowedClients", + "condition": "an unrestricted offer gate admits all values vouched for by the issuer", + "remedy": "List the required clients and scopes explicitly.", + "crates": [ + "registry-evidence-oid4vci" + ] + }, + { + "code": "platform.posture.database-private-plaintext", + "key": "transport", + "condition": "The database connection is not encrypted and reaches a private network", + "remedy": "Write database.transport: verified-tls, and give the database a certificate the runtime trusts.", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.generated-audit-key", + "key": "hashKeyCustody", + "condition": "The audit hash key was generated by a development tool", + "remedy": "Provision an audit hash key, reference it in audit.hashKeyRef, and write audit.hashKeyCustody: operator-provisioned.", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.insecure-issuer-http", + "key": "allowInsecureHttp", + "condition": "Plain http is permitted to an issuer beyond loopback", + "remedy": "Delete allowInsecureHttp and use an https issuer.", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.mcp-http-published-issuer", + "key": "issuer", + "condition": "The published resource server issuer is plain http", + "remedy": "Use an https issuer.", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.mcp-http-resource", + "key": "resource", + "condition": "The protected resource identifier is plain http", + "remedy": "Use an https resource identifier.", + "crates": [ + "registry-mcp-edge" + ] + }, + { + "code": "platform.posture.session-development-loopback", + "key": "tlsTermination", + "condition": "The session listener admits loopback HTTP in the browser and issuer endpoints", + "remedy": "Use operator-controlled-upstream TLS termination and HTTPS endpoints.", + "crates": [ + "registry-session" + ] + }, + { + "code": "platform.posture.test-issuer", + "key": "type", + "condition": "The issuer's signing keys come from a test issuer", + "remedy": "Write jwksSource: {type: discovery}, or a static or uri source for the real issuer.", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "render.posture.local-assurance", + "key": "assuranceProfile", + "condition": "seals use a local key file and are marked as test seals", + "remedy": "Configure assuranceProfile: production and sign through Transit.", + "crates": [ + "registry-render" + ] + }, + { + "code": "render.posture.seals-not-served", + "key": "signing", + "condition": "the bundle declares seals, but this runtime has no signing block and renders those document types unsealed", + "remedy": "Configure signing.seals for the bundle's seals, or deploy a bundle whose documents do not declare seals.", + "crates": [ + "registry-render" + ] + } + ], + "explicit": [ + { + "code": "adapter.posture.anonymous-https", + "key": "anonymousHttps", + "condition": "a fixed HTTPS source is reached without an application credential", + "crates": [ + "registry-adapter-core" + ] + }, + { + "code": "breg.posture.scopeless-without-subject-rule", + "key": "accessProfiles", + "condition": "a profile admits declared-kind tokens with no scope and no row rule keyed on the subject", + "crates": [ + "registry-breg" + ] + }, + { + "code": "platform.posture.client-actor-kinds", + "key": "clientActorKinds", + "condition": "tokens from the named clients are treated as the declared kinds", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.destination-private-plaintext", + "key": "transport", + "condition": "An outbound destination is reached without TLS, inside declared private ranges", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.issuer-actor-kind", + "key": "actorKind", + "condition": "every token from this issuer is treated as the declared kind", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.issuer-loopback-plaintext", + "key": "issuer", + "condition": "An issuer endpoint uses plain HTTP on loopback", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.jwt-access-token", + "key": "accessTokenType", + "condition": "admits access tokens typed JWT. ID tokens stay refused", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.scope-claim", + "key": "scopeClaim", + "condition": "reads scopes from a claim other than scope", + "crates": [ + "registry-platform-config" + ] + }, + { + "code": "platform.posture.unrestricted-clients", + "key": "allowedClients", + "condition": "admits a token from every client this issuer signs for", + "crates": [ + "registry-platform-config" + ] + } + ] +} diff --git a/docs/site/src/data/projects.yaml b/docs/site/src/data/projects.yaml index 6317af2720..ed5981d991 100644 --- a/docs/site/src/data/projects.yaml +++ b/docs/site/src/data/projects.yaml @@ -41,7 +41,7 @@ name: Registry Evidence repo_path: ../registry-stack target_repo_path: ../registry-stack - role: Minimum-disclosure assertion service. Given authenticated authority, an authorized purpose, a predefined requirement, and the selector data an authoritative provider needs, each evaluation answers one bounded question about one complete subject-role set and returns the smallest sufficient signed assertion. Its request-batch route groups up to sixteen independent audience-scoped evaluations under one common requirement and purpose. Registry Evidence composes shared audit, crypto, HTTP security, OIDC, and SD-JWT primitives from Registry Platform. + role: Minimum-disclosure assertion service. Given authenticated authority, an authorized purpose, a predefined requirement, and the selector data an authoritative provider needs, each evaluation answers one question about one complete subject-role set and returns the smallest sufficient signed assertion. Its request-batch route groups up to sixteen independent audience-scoped evaluations under one common requirement and purpose. Registry Evidence composes shared audit, crypto, HTTP security, OIDC, and SD-JWT primitives from Registry Platform. owns: - Requirement definitions, bounded evaluation, and the acquisition posture recorded with every answer. - Authorization grants, purpose and audience checks, and the disclosure decision that releases an assertion. diff --git a/products/adapter/CHANGELOG.md b/products/adapter/CHANGELOG.md index 25bd9105fe..e4a1ad8b59 100644 --- a/products/adapter/CHANGELOG.md +++ b/products/adapter/CHANGELOG.md @@ -2,6 +2,15 @@ ## Unreleased +- BREAKING: Native `breg-records` v1 contracts publish `recordId` as the + record path argument. Replace `record_id` in generated client and MCP path + arguments. Refresh the Live Effective Contract and its pinned digest + together. Operation names and concrete HTTP URLs stay the same. + +- BREAKING: Payment problems emit canonical Adapter HTTPS type URIs. Upgrade + strict payment clients before or together with the payment host. Updated + clients still read the matching enumerated legacy Payment URNs. + ## 0.49.0 - 2026-12-01 - BREAKING: The Rust payment protocol and client accept the optional `failedCheck` problem member while rejecting other unknown members. Migration: set `failed_check: None` in existing `PaymentProblem` struct literals that carry no failed check. diff --git a/products/adapter/examples/breg-govstack/generated/openapi.json b/products/adapter/examples/breg-govstack/generated/openapi.json index 4add64bd37..4f3ae085d1 100644 --- a/products/adapter/examples/breg-govstack/generated/openapi.json +++ b/products/adapter/examples/breg-govstack/generated/openapi.json @@ -35,6 +35,10 @@ "minItems": 1, "type": "array" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "maximum": 599, "minimum": 400, diff --git a/products/adapter/examples/dhis2-consultation/generated/openapi.json b/products/adapter/examples/dhis2-consultation/generated/openapi.json index bf5a7c05d3..23eae8ad76 100644 --- a/products/adapter/examples/dhis2-consultation/generated/openapi.json +++ b/products/adapter/examples/dhis2-consultation/generated/openapi.json @@ -35,6 +35,10 @@ "minItems": 1, "type": "array" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "maximum": 599, "minimum": 400, diff --git a/products/adapter/examples/dhis2-tracker/generated/openapi.json b/products/adapter/examples/dhis2-tracker/generated/openapi.json index 9af85bed57..53b38def37 100644 --- a/products/adapter/examples/dhis2-tracker/generated/openapi.json +++ b/products/adapter/examples/dhis2-tracker/generated/openapi.json @@ -1579,13 +1579,13 @@ ] } }, - "/v1/records/person/{record_id}": { + "/v1/records/person/{recordId}": { "get": { "operationId": "records-get.person", "parameters": [ { "in": "path", - "name": "record_id", + "name": "recordId", "required": true, "schema": { "type": "string" @@ -1794,7 +1794,7 @@ "parameters": [ { "in": "path", - "name": "record_id", + "name": "recordId", "required": true, "schema": { "type": "string" diff --git a/products/adapter/examples/formats/effective-contract.json b/products/adapter/examples/formats/effective-contract.json index 282ea59acb..aa6bd5405a 100644 --- a/products/adapter/examples/formats/effective-contract.json +++ b/products/adapter/examples/formats/effective-contract.json @@ -1,7 +1,7 @@ { "apiVersion": "id.registrystack.org/formats/adapter/effective-contract/v1alpha1", "kind": "AdapterEffectiveContract", - "digest": "sha256:a67559af6bf8ac240de3218c9ad9807875fb88a8b280f8d60658dd4a68c058fa", + "digest": "sha256:ebdcf7e7317af3f015dde99458b9a296a5071279345165e00c8e5dc7ec4014d5", "contract": { "schemaDialect": "https://json-schema.org/draft/2020-12/schema", "project": { @@ -173,7 +173,7 @@ "bindingId": "person-get", "profileOperationId": "records-get", "method": "GET", - "path": "/v1/records/person/{record_id}", + "path": "/v1/records/person/{recordId}", "support": "served", "effect": "read", "successStatus": 200, @@ -181,7 +181,7 @@ "path": { "additionalProperties": false, "properties": { - "record_id": { + "recordId": { "minLength": 1, "not": { "anyOf": [ @@ -200,7 +200,7 @@ } }, "required": [ - "record_id" + "recordId" ], "type": "object" }, diff --git a/products/adapter/examples/kobotoolbox-breg/registry.yaml b/products/adapter/examples/kobotoolbox-breg/registry.yaml index d51b709c28..4ad091a02f 100644 --- a/products/adapter/examples/kobotoolbox-breg/registry.yaml +++ b/products/adapter/examples/kobotoolbox-breg/registry.yaml @@ -44,7 +44,7 @@ recordTypes: lookups: - {id: by-source-submission, fields: [source-submission-id]} -functions: +actionPlans: register-household-plan: runtime: rhai source: scripts/register-household.rhai @@ -70,8 +70,8 @@ actions: - {id: respondent-name, apiName: respondentName, type: string, required: true, minimumLength: 1, maximumLength: 256, classification: internal} - {id: household-size, apiName: householdSize, type: int64, required: true, classification: internal} plan: - type: function - function: register-household-plan + type: scripted + actionPlan: register-household-plan inputs: [source-submission-id, respondent-name, household-size] writes: - {id: household, target: {recordType: household}, operation: create, fields: [owner, source-submission-id, respondent-name, household-size]} diff --git a/products/adapter/examples/kobotoolbox-job/workflow/workflow.yaml b/products/adapter/examples/kobotoolbox-job/workflow/workflow.yaml index e449f06d23..dd9a02a1e2 100644 --- a/products/adapter/examples/kobotoolbox-job/workflow/workflow.yaml +++ b/products/adapter/examples/kobotoolbox-job/workflow/workflow.yaml @@ -40,7 +40,7 @@ contracts: households: type: breg source: generated/households.contract.json -functions: +transforms: proposal-request: runtime: rhai source: functions.rhai @@ -132,8 +132,8 @@ workflow: type: call operation: submit-household input: - type: function - function: proposal-request + type: transform + transform: proposal-request inputs: event: {type: input, path: /event} next: await-proposal @@ -155,8 +155,8 @@ workflow: type: call operation: lookup-household input: - type: function - function: lookup-request + type: transform + transform: lookup-request inputs: event: {type: input, path: /event} next: review-resolved @@ -165,8 +165,8 @@ workflow: type: call operation: submit-review input: - type: function - function: resolved-review-request + type: transform + transform: resolved-review-request inputs: event: {type: input, path: /event} lookup: {type: step, step: lookup-revised} @@ -181,8 +181,8 @@ workflow: type: call operation: submit-review input: - type: function - function: unresolved-review-request + type: transform + transform: unresolved-review-request inputs: event: {type: input, path: /event} next: await-unresolved-review @@ -196,8 +196,8 @@ workflow: type: call operation: submit-review input: - type: function - function: returned-review-request + type: transform + transform: returned-review-request inputs: event: {type: input, path: /event} next: await-returned-review diff --git a/products/adapter/examples/opencrvs-consultation/generated/openapi.json b/products/adapter/examples/opencrvs-consultation/generated/openapi.json index 67bca9bb9c..56fd180913 100644 --- a/products/adapter/examples/opencrvs-consultation/generated/openapi.json +++ b/products/adapter/examples/opencrvs-consultation/generated/openapi.json @@ -35,6 +35,10 @@ "minItems": 1, "type": "array" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "maximum": 599, "minimum": 400, diff --git a/products/adapter/examples/opencrvs-events/generated/openapi.json b/products/adapter/examples/opencrvs-events/generated/openapi.json index e83f28c868..1895cc2224 100644 --- a/products/adapter/examples/opencrvs-events/generated/openapi.json +++ b/products/adapter/examples/opencrvs-events/generated/openapi.json @@ -1341,13 +1341,13 @@ ] } }, - "/v1/records/birth/{record_id}": { + "/v1/records/birth/{recordId}": { "get": { "operationId": "records-get.birth", "parameters": [ { "in": "path", - "name": "record_id", + "name": "recordId", "required": true, "schema": { "type": "string" diff --git a/products/adapter/examples/payment-collections/CONTRACT.md b/products/adapter/examples/payment-collections/CONTRACT.md index 53a3bfc756..0bfc6e4fed 100644 --- a/products/adapter/examples/payment-collections/CONTRACT.md +++ b/products/adapter/examples/payment-collections/CONTRACT.md @@ -38,6 +38,14 @@ to Coordinator. JSON Schema checks structural bounds. Runtime checks also enforce currency scale, portable integer limits, exact correlation and evidence consistency. +Payment problem types use the Adapter HTTPS namespace followed by the exact +dotted code. For example, a payment authorization refusal sends type +`https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden` +with status 403 and code and title `adapter.payment.forbidden`. In v0.51 the +host emits HTTPS types. The updated client accepts earlier Payment URNs for the +same enumerated status, title and code. Upgrade strict payment clients before +or together with the host. + ## Relationship to payments-capability-v1 The earlier [composition capability contract](https://github.com/registrystack/registry-service-composition/blob/main/docs/capabilities/payments.md) diff --git a/products/adapter/examples/qfield-postgis/registry/README.md b/products/adapter/examples/qfield-postgis/registry/README.md index 2643cb816d..844af3552e 100644 --- a/products/adapter/examples/qfield-postgis/registry/README.md +++ b/products/adapter/examples/qfield-postgis/registry/README.md @@ -12,7 +12,7 @@ The `ingestion` profile accepts only the `adapter-field-ingestion` service client with the `registry:write` scope. It grants no ordinary Record CRUD. Each Plan fixes `owner` to that synthetic client identity, and target authority requires the resulting owner to equal the verified `sub` claim. The two Plans -are deliberately duplicated because `registry.action-plan/v1` function inputs +are deliberately duplicated because `registry.action-plan/v1` Action Plan inputs accept scalar values, not the geometry and structured values used here. ## Inputs diff --git a/products/adapter/fixtures/source-shapes/rest-offset-mtls/generated/openapi.json b/products/adapter/fixtures/source-shapes/rest-offset-mtls/generated/openapi.json index 55c8c3be25..b7531fd175 100644 --- a/products/adapter/fixtures/source-shapes/rest-offset-mtls/generated/openapi.json +++ b/products/adapter/fixtures/source-shapes/rest-offset-mtls/generated/openapi.json @@ -1327,13 +1327,13 @@ ] } }, - "/v1/records/household/{record_id}": { + "/v1/records/household/{recordId}": { "get": { "operationId": "records-get.household", "parameters": [ { "in": "path", - "name": "record_id", + "name": "recordId", "required": true, "schema": { "type": "string" diff --git a/products/breg/AGENTS.md b/products/breg/AGENTS.md index d9150593bf..78f5fb1a10 100644 --- a/products/breg/AGENTS.md +++ b/products/breg/AGENTS.md @@ -36,6 +36,11 @@ BReg does not inherit its publication contract or serve as a generic replacement The build posture never enters the package. A development-only property of a package must be derivable from its content and refused by production load, as the placeholder identity is. +Verified package closure reads translate historical Action Plan keys for +predecessor planning and rehearsal. Authored projects and modules accept only +the current keys. Remove the translation when no supported predecessor carries +the old spelling. + ## Source neutrality `products/breg/scripts/check_source_neutrality.py` forbids fixture-specific diff --git a/products/breg/CHANGELOG.md b/products/breg/CHANGELOG.md index 5f688e05c8..00db64c0f6 100644 --- a/products/breg/CHANGELOG.md +++ b/products/breg/CHANGELOG.md @@ -2,6 +2,50 @@ ## Unreleased +- BREAKING: BReg uses Action Plans for scripted Action logic. In `registry.yaml` + and `module.yaml`, rename `functions` to `actionPlans`. In an Action's + `plan`, change `type: function` to `type: scripted` and rename `function` to + `actionPlan`. Keep the existing IDs, script or Wasm sources, input and write + declarations, and `registry.action-plan/v1` ABI. Update `bregctl` explanation + consumers to read `plan.type: scripted` and the `plan.actionPlan` details. + +- BREAKING: BReg Action Plan diagnostics use `breg.action-plan.id-collision` + and `breg.action-plan.contract-invalid` in place of `breg.function.*`. + Replace `breg.action.function-unknown`, `breg.action.function-contract-invalid`, + and `breg.action.function-input-unknown` with `breg.action.plan-unknown`, + `breg.action.plan-contract-invalid`, and `breg.action.plan-input-unknown`. + Replace `breg.action.plan-function-unavailable` with `breg.action.plan-unavailable`. + Expect diagnostic paths under `/actionPlans/` and the human explain label + `Action Plan` in place of `plan function`. + +- BReg Record, history, relationship and External View list contracts use `limit` + and `cursor`. Update first-page requests and continue on the same route with + the returned cursor and access profile. The server still reads earlier query + spellings during upgrades. Rust and Node list clients use `limit`, Python + takes `limit=`, and clients write `cursor` in persisted continuations. They + still read prior `skiptoken` continuations. A generated project SDK's + `related()` takes `limit` in place of `top`. Regenerate the SDK and rename + the argument where a caller passes it by name. + +- BREAKING: v0.51 `bregctl check --package` refuses sealed v0.49 packages whose + generated OpenAPI uses `$top`, with `breg.package.generated-artifacts-refused`. + Keep the old package intact and use its + matching v0.49 tools and runtime until cutover. Update the authored Action + Plan keys, then use v0.51 `bregctl test` on a disposable database and + `bregctl package` to build the successor. Pass the active old package as + `--baseline-package` to both commands. Check the new package, run + `bregctl plan` and the reviewed `bregctl apply`, then serve the successor + with the matching v0.51 runtime. + +- BREAKING: A generated artifact that was changed and then resealed with + matching digests now reports `breg.package.generated-artifacts-refused` + instead of `breg.package.integrity-refused`. Update alerts for that refusal. + Strict checks use the same code for historical Action Plan spelling, even + when the generated artifacts match. A predecessor may use one spelling + per source file. A sealed source file that mixes the historical and current + spellings, or declares both for one key, is refused as + `breg.package.integrity-refused`, because no release writes one. + ## 0.49.0 - 2026-12-01 - BREAKING: `bregctl data export` JSONL uses `recordId` and `revisionId` in place of v0.48.0's `recordIdentifier` and `revisionIdentifier`. Migration: Update export file consumers for both keys. Finish an in-progress export with the matching v0.48.0 `bregctl`, serving runtime, and compiled package before upgrading, or start a fresh output and checkpoint pair after upgrading. Convert archived exports on a separate copy to preserve any checkpoint digest. diff --git a/products/breg/acceptance/farmer-landholding-evidence/evidence/provider/evidence.yaml b/products/breg/acceptance/farmer-landholding-evidence/evidence/provider/evidence.yaml index 62679b2dcd..d8b623fe9f 100644 --- a/products/breg/acceptance/farmer-landholding-evidence/evidence/provider/evidence.yaml +++ b/products/breg/acceptance/farmer-landholding-evidence/evidence/provider/evidence.yaml @@ -11,7 +11,7 @@ lookups: type: string minimumBytes: 3 maximumBytes: 77 -functions: +derivations: derive-status: interface: assertion-derive/v1 source: functions/status.rhai @@ -62,7 +62,7 @@ assertionDefinitions: acquisition: source: source-status derive: - function: derive-status + derivation: derive-status outputs: active: concept: urn:example:farmer:active @@ -95,7 +95,7 @@ assertionDefinitions: acquisition: source: source-category derive: - function: derive-category + derivation: derive-category outputs: category: concept: urn:example:farmer:category diff --git a/products/breg/acceptance/farmer-landholding-evidence/registry.yaml b/products/breg/acceptance/farmer-landholding-evidence/registry.yaml index b207c56245..b652c3e5d2 100644 --- a/products/breg/acceptance/farmer-landholding-evidence/registry.yaml +++ b/products/breg/acceptance/farmer-landholding-evidence/registry.yaml @@ -127,8 +127,8 @@ "mode": "immediate" }, "plan": { - "type": "function", - "function": "register-landholding-plan", + "type": "scripted", + "actionPlan": "register-landholding-plan", "inputs": [ "farmer-prefix", "farmer-number", @@ -229,8 +229,8 @@ "mode": "immediate" }, "plan": { - "type": "function", - "function": "check-procedure-plan", + "type": "scripted", + "actionPlan": "check-procedure-plan", "inputs": [ "farmer-prefix", "farmer-number", @@ -404,7 +404,7 @@ ] } }, - "functions": { + "actionPlans": { "register-landholding-plan": { "runtime": "rhai", "source": "scripts/register-landholding.rhai", diff --git a/products/breg/acceptance/person-registration-rhai/registry.yaml b/products/breg/acceptance/person-registration-rhai/registry.yaml index fc0ef23bcc..b225d326a2 100644 --- a/products/breg/acceptance/person-registration-rhai/registry.yaml +++ b/products/breg/acceptance/person-registration-rhai/registry.yaml @@ -197,7 +197,7 @@ ] } }, - "functions": { + "actionPlans": { "register-person-plan": { "runtime": "rhai", "source": "scripts/register-person.rhai", @@ -242,8 +242,8 @@ } ], "plan": { - "type": "function", - "function": "register-person-plan", + "type": "scripted", + "actionPlan": "register-person-plan", "inputs": [ "identifier", "given-name", @@ -339,8 +339,8 @@ ] }, "plan": { - "type": "function", - "function": "register-with-registration-plan", + "type": "scripted", + "actionPlan": "register-with-registration-plan", "inputs": [ "identifier", "given-name", diff --git a/products/breg/acceptance/reviewed-evidence-journey/tests/run_live.py b/products/breg/acceptance/reviewed-evidence-journey/tests/run_live.py index d4698e1976..fd357fd762 100644 --- a/products/breg/acceptance/reviewed-evidence-journey/tests/run_live.py +++ b/products/breg/acceptance/reviewed-evidence-journey/tests/run_live.py @@ -479,16 +479,15 @@ def activate_evidence(h, source_project, source, origin): h.ctl("evidencectl", "source-import", "source", "import", exported, "--project", project) model = yaml.safe_load((project / "evidence.yaml").read_text()) fragment = yaml.safe_load((ROOT / "products/breg/evidence/starter/definitions.yaml.fragment").read_text()) - # Import starts from a valid standalone project. Only the imported HTTP - # Source and its Functions remain in this composition's final model. + # Keep the imported HTTP Source and the teaching fragment's Derivation. model["sources"].pop("record-status") model["lookups"].pop("record-by-code-v1") - model["functions"] = { - id: function - for id, function in model["functions"].items() + model["derivations"] = { + id: derivation + for id, derivation in model["derivations"].items() if id not in ("record-status-extract", "extract-record-active") } - model["functions"]["record-active"] = fragment["functions"]["record-active"] + model["derivations"]["record-active"] = fragment["derivations"]["record-active"] model["assertionDefinitions"] = {"record-active": fragment["assertionDefinitions"]["record-active"]} yaml_write(project / "evidence.yaml", model) for directory, name in [("functions", "record-active.rhai"), ("fixtures", "record-active.yaml")]: diff --git a/products/breg/contracts/client-capabilities.json b/products/breg/contracts/client-capabilities.json index 0fa7603fbd..ea98833423 100644 --- a/products/breg/contracts/client-capabilities.json +++ b/products/breg/contracts/client-capabilities.json @@ -25,9 +25,7 @@ "$select", "$filter", "$orderby", - "$top", "$count", - "$skiptoken", "bbox", "asOf", "snapshot", @@ -71,21 +69,11 @@ "node": ["ListOptions.orderby"], "python": ["BaseRegistryClient.list_records.orderby"] }, - "$top": { - "rust": ["BRegListRequest.top"], - "node": ["ListOptions.top"], - "python": ["BaseRegistryClient.list_records.top"] - }, "$count": { "rust": ["BRegListRequest.count"], "node": ["ListOptions.count"], "python": ["BaseRegistryClient.list_records.count"] }, - "$skiptoken": { - "rust": ["BRegContinuationProjection.skiptoken"], - "node": ["ListContinuation.skiptoken"], - "python": ["BaseRegistryClient.continue_list.continuation"] - }, "bbox": { "rust": ["BRegListRequest.bbox", "BRegGeoJsonListRequest.bbox"], "node": ["ListOptions.bbox", "GeoJsonListOptions.bbox"], @@ -147,14 +135,14 @@ "python": ["BaseRegistryClient.list_proposals.query"] }, "cursor": { - "rust": ["BRegProposalQuery.cursor"], - "node": ["BaseRegistryClient.listProposals.query"], - "python": ["BaseRegistryClient.list_proposals.query"] + "rust": ["BRegProposalQuery.cursor", "BRegContinuationProjection.cursor"], + "node": ["BaseRegistryClient.listProposals.query", "ListContinuation.cursor"], + "python": ["BaseRegistryClient.list_proposals.query", "BaseRegistryClient.continue_list.continuation"] }, "limit": { - "rust": ["BRegProposalQuery.limit"], - "node": ["BaseRegistryClient.listProposals.query"], - "python": ["BaseRegistryClient.list_proposals.query"] + "rust": ["BRegProposalQuery.limit", "BRegListRequest.limit"], + "node": ["BaseRegistryClient.listProposals.query", "ListOptions.limit"], + "python": ["BaseRegistryClient.list_proposals.query", "BaseRegistryClient.list_records.limit"] }, "turn": { "rust": ["BRegProposalQuery.turn"], diff --git a/products/breg/contracts/explain/ActionsExplanation.schema.json b/products/breg/contracts/explain/ActionsExplanation.schema.json index cd27d8e423..b4bf49b3ba 100644 --- a/products/breg/contracts/explain/ActionsExplanation.schema.json +++ b/products/breg/contracts/explain/ActionsExplanation.schema.json @@ -380,13 +380,13 @@ "additionalProperties": false, "required": [ "type", - "function" + "actionPlan" ], "properties": { "type": { - "const": "function" + "const": "scripted" }, - "function": { + "actionPlan": { "type": "object", "additionalProperties": false, "required": [ @@ -430,7 +430,7 @@ }, "limits": { "type": "object", - "x-registry-passthrough": "Compiled function resource ceilings, owned and bounded by the engine." + "x-registry-passthrough": "Compiled Action Plan resource ceilings, owned and bounded by the engine." }, "writes": { "type": "array" @@ -476,7 +476,7 @@ } } ], - "description": "Fixed plans expose exact authored mutations and execution order. Function plans expose reviewed source identity and write ceilings, never placeholder mutations." + "description": "Fixed plans expose exact authored mutations and execution order. Scripted plans expose reviewed source identity and write ceilings, never placeholder mutations." }, "commitGuards": { "type": "array" diff --git a/products/breg/contracts/explain/LifecycleExplanation.schema.json b/products/breg/contracts/explain/LifecycleExplanation.schema.json index f717446a5e..011fe15223 100644 --- a/products/breg/contracts/explain/LifecycleExplanation.schema.json +++ b/products/breg/contracts/explain/LifecycleExplanation.schema.json @@ -61,7 +61,7 @@ "id": "exact-receipt-recovery" }, { - "description": "Submission validates the typed Action input and runs the shared bounded plan evaluator. Function execution and external Evidence acquisition hold no database transaction or row lock. The controller rechecks the observed revision before freezing the submission.", + "description": "Submission validates the typed Action input and runs the shared bounded plan evaluator. Action Plan execution and external Evidence acquisition hold no database transaction or row lock. The controller rechecks the observed revision before freezing the submission.", "events": [ "submit" ], diff --git a/products/breg/contracts/explain/ProposalsExplanation.schema.json b/products/breg/contracts/explain/ProposalsExplanation.schema.json index 7535acee3c..a731d95ea5 100644 --- a/products/breg/contracts/explain/ProposalsExplanation.schema.json +++ b/products/breg/contracts/explain/ProposalsExplanation.schema.json @@ -204,13 +204,13 @@ "additionalProperties": false, "required": [ "type", - "function" + "actionPlan" ], "properties": { "type": { - "const": "function" + "const": "scripted" }, - "function": { + "actionPlan": { "type": "object", "additionalProperties": false, "required": [ @@ -254,7 +254,7 @@ }, "limits": { "type": "object", - "x-registry-passthrough": "Compiled function resource ceilings, owned and bounded by the engine." + "x-registry-passthrough": "Compiled Action Plan resource ceilings, owned and bounded by the engine." }, "writes": { "type": "array" @@ -300,7 +300,7 @@ } } ], - "description": "Fixed plans expose exact authored mutations and execution order. Function plans expose reviewed source identity and write ceilings, never placeholder mutations." + "description": "Fixed plans expose exact authored mutations and execution order. Scripted plans expose reviewed source identity and write ceilings, never placeholder mutations." }, "commitGuards": { "type": "array" diff --git a/products/breg/contracts/explain/QueriesExplanation.schema.json b/products/breg/contracts/explain/QueriesExplanation.schema.json index f213bc4066..e51940b601 100644 --- a/products/breg/contracts/explain/QueriesExplanation.schema.json +++ b/products/breg/contracts/explain/QueriesExplanation.schema.json @@ -108,9 +108,9 @@ "select": { "const": "$select" }, "filter": { "const": "$filter" }, "orderBy": { "const": "$orderby" }, - "pageSize": { "const": "$top" }, + "pageSize": { "const": "limit" }, "count": { "const": "$count" }, - "cursor": { "const": "$skiptoken" }, + "cursor": { "const": "cursor" }, "accessProfile": { "const": "accessProfile", "x-registry-member-names": true }, "asOf": { "const": "asOf", "x-registry-member-names": true }, "bbox": { "const": "bbox" } diff --git a/products/breg/contracts/security-invariant-matrix.yaml b/products/breg/contracts/security-invariant-matrix.yaml index 7c25b6c224..59f8e10c51 100644 --- a/products/breg/contracts/security-invariant-matrix.yaml +++ b/products/breg/contracts/security-invariant-matrix.yaml @@ -205,7 +205,7 @@ invariants: - {"id": "BREG-SEC-194", "state": "enforced", "targetWave": "W5", "threat": "A successor package leaves pending Proposals with inspection and cancellation grants that cannot produce a usable profile-bound condition.", "enforcementPoint": "Successor activation recovery guard requires Get inspection and one Proposal grant with Cancel plus Get or List; ordinary profile-bound ETags remain enforced.", "refusal": "Refuse activation before changing the ledger or pending work when no complete recovery permission exists. Retain same-profile Get+Cancel and List+Cancel recovery.", "negativeId": "BREG-NEG-194", "negativeTest": {"path": "crates/registry-breg/tests/postgres_proposal_recovery_permissions.rs", "name": "refused_split_recovery_successor_preserves_activation_and_pending_work"}} - {"id": "BREG-SEC-195", "state": "enforced", "targetWave": "W5", "threat": "A module enables autonomous Record timer work, or a contributed timer becomes active without an exact root-project grant.", "enforcementPoint": "Compiler admission of root-project timerGrants after module composition, with exact Record type and timer identity matching.", "refusal": "Refuse module-contributed grants, missing or dangling root grants, duplicate authority, and every composed timer without its exact root grant before package compilation.", "negativeId": "BREG-NEG-195", "negativeTest": {"path": "crates/registry-breg/tests/timer_authoring.rs", "name": "module_timer_definition_requires_and_uses_root_enablement"}} - {"id": "BREG-SEC-196", "state": "enforced", "targetWave": "W5", "threat": "An autonomous timer Action is also caller-invokable or enters the Proposal lifecycle, creating a second authority path or unattended review decision.", "enforcementPoint": "Timer compiler binds only an immediate Action that has no public Invoke permission, route, or access entry.", "refusal": "Refuse a timer whose Action is publicly invokable or Proposal-based before emitting the compiled timer or system grant.", "negativeId": "BREG-NEG-196", "negativeTest": {"path": "crates/registry-breg/tests/timer_authoring.rs", "name": "timer_refuses_public_invoke_and_non_immediate_actions"}} - - {"id": "BREG-SEC-197", "state": "enforced", "targetWave": "W5", "threat": "A timer invokes remote Function or Evidence capability and performs autonomous work outside the exact local compiled mutation plan.", "enforcementPoint": "Timer Action compilation rejects Function planning, Evidence declarations, commit Evidence, and their capabilities before deriving system authority.", "refusal": "Refuse every timer Action that declares Function, Evidence, or commit-Evidence capability; emit no runnable timer binding.", "negativeId": "BREG-NEG-197", "negativeTest": {"path": "crates/registry-breg/tests/timer_authoring.rs", "name": "timer_refuses_remote_function_and_evidence_capabilities"}} + - {"id": "BREG-SEC-197", "state": "enforced", "targetWave": "W5", "threat": "A timer uses a remote Action Plan capability or Evidence to perform autonomous work outside the exact local compiled mutation plan.", "enforcementPoint": "Timer Action compilation checks resolved Action Plan capabilities and Evidence and commit-Evidence declarations before deriving system authority.", "refusal": "Refuse a timer Action with a resolved remote capability, Evidence, or commit Evidence. Emit no runnable timer binding.", "negativeId": "BREG-NEG-197", "negativeTest": {"path": "crates/registry-breg/tests/timer_authoring.rs", "name": "timer_refuses_remote_function_and_evidence_capabilities"}} - {"id": "BREG-SEC-198", "state": "enforced", "targetWave": "W5", "threat": "An autonomous timer issues or changes consent without a caller or institution-controlled consent decision at execution time.", "enforcementPoint": "Timer Action compilation rejects consent-issuance capability before deriving system authority.", "refusal": "Refuse a timer Action that issues consent and emit no runnable timer binding.", "negativeId": "BREG-NEG-198", "negativeTest": {"path": "crates/registry-breg/tests/timer_authoring.rs", "name": "timer_refuses_consent_issuance_capability"}} # Runtime Proposal-policy backstop: crates/registry-breg/tests/postgres_record_timers.rs::timer_runtime_refuses_a_compiler_unreachable_proposal_required_target - {"id": "BREG-SEC-199", "state": "enforced", "targetWave": "W5", "threat": "A timer reads beyond its exact anchor and declared secondary-Get facts, mutates another existing Record, bypasses Proposal-required mutation policy, or exceeds the ordinary Action target or snapshot ceilings through compiler-added authority.", "enforcementPoint": "Timer-specific system-grant derivation and post-derivation Action bounds count the exact anchor Get and materialized fields once, preserve each declared secondary Get's exact Record type and read-field ceiling, preserve bounded create effects, and retain controlled-target admission.", "refusal": "Refuse another existing-Record mutation target, a Proposal-required target, an extra exact target beyond the ceiling, or reads beyond the snapshot ceiling; grant only exact anchor control, predicate, and mapped-input reads, declared secondary Gets, the admitted anchor mutation, and bounded creates.", "negativeId": "BREG-NEG-199", "negativeTest": {"path": "crates/registry-breg/tests/timer_authoring.rs", "name": "timer_system_authority_is_anchor_and_create_bounded"}} diff --git a/products/breg/evidence/offline-starter/evidence.yaml b/products/breg/evidence/offline-starter/evidence.yaml index 4a56613412..921c164ef3 100644 --- a/products/breg/evidence/offline-starter/evidence.yaml +++ b/products/breg/evidence/offline-starter/evidence.yaml @@ -11,7 +11,7 @@ lookups: type: string minimumBytes: 4 maximumBytes: 64 -functions: +derivations: extract-record-active: interface: assertion-derive/v1 source: functions/extract-record-active.rhai @@ -53,7 +53,7 @@ assertionDefinitions: acquisition: source: record-status derive: - function: extract-record-active + derivation: extract-record-active outputs: active: concept: urn:example:concept:extract-record-active:active diff --git a/products/breg/evidence/public-check/definitions.yaml.fragment b/products/breg/evidence/public-check/definitions.yaml.fragment index b6d9748904..dfcaf5fe41 100644 --- a/products/breg/evidence/public-check/definitions.yaml.fragment +++ b/products/breg/evidence/public-check/definitions.yaml.fragment @@ -1,4 +1,4 @@ -functions: +derivations: record-check: interface: assertion-derive/v1 source: functions/record-check.rhai @@ -28,7 +28,7 @@ assertionDefinitions: acquisition: source: registry-check derive: - function: record-check + derivation: record-check outputs: status: concept: urn:example:concept:record-check:status diff --git a/products/breg/evidence/starter/definitions.yaml.fragment b/products/breg/evidence/starter/definitions.yaml.fragment index 67308d1c45..c136bd8ec4 100644 --- a/products/breg/evidence/starter/definitions.yaml.fragment +++ b/products/breg/evidence/starter/definitions.yaml.fragment @@ -1,4 +1,4 @@ -functions: +derivations: record-active: interface: assertion-derive/v1 source: functions/record-active.rhai @@ -32,7 +32,7 @@ assertionDefinitions: acquisition: source: registry-status derive: - function: record-active + derivation: record-active outputs: active: concept: urn:example:concept:record-active:active @@ -71,7 +71,7 @@ assertionDefinitions: acquisition: source: registry-status derive: - function: record-status-pair + derivation: record-status-pair outputs: currently_active: concept: urn:example:concept:record-status-pair:currently_active diff --git a/products/breg/evidence/tests/verify-composition.py b/products/breg/evidence/tests/verify-composition.py index ec52eb961d..65b45c33ec 100644 --- a/products/breg/evidence/tests/verify-composition.py +++ b/products/breg/evidence/tests/verify-composition.py @@ -182,7 +182,7 @@ def author(directory: Path, export: Path) -> None: run(binaries["evidencectl"], "source", "import", export, "--project", directory, environment=environment) authored = read(directory / "evidence.yaml") - authored["functions"].update(fragment["functions"]) + authored["derivations"].update(fragment["derivations"]) authored["assertionDefinitions"].update(fragment["assertionDefinitions"]) write(directory / "evidence.yaml", authored) for name in ["functions", "fixtures", "schemas"]: @@ -300,7 +300,7 @@ def verify(workspace: Path, binaries: dict[str, Path]) -> dict: "source import must create no assertion meaning or caller grant" ) assert not (project / "sources").exists(), "Sources belong to EvidenceProject" - assert not any(name.startswith("registry-status-") for name in imported["functions"]), ( + assert not any(name.startswith("registry-status-") for name in imported["derivations"]), ( "source preparation and extraction remain in the pinned pack closure" ) assert (project / "adapter-packs/registry-status/pack.yaml").is_file() @@ -308,7 +308,7 @@ def verify(workspace: Path, binaries: dict[str, Path]) -> dict: # Ordinary authoring follows import. This fragment is never passed as a project. fragment = read(INPUTS / "starter/definitions.yaml.fragment") - imported["functions"].update(fragment["functions"]) + imported["derivations"].update(fragment["derivations"]) imported["assertionDefinitions"].update(fragment["assertionDefinitions"]) write(project / "evidence.yaml", imported) for directory in ["functions", "fixtures"]: diff --git a/products/breg/examples/external-views/journey.py b/products/breg/examples/external-views/journey.py index 2e8fc94a36..891e5b6670 100644 --- a/products/breg/examples/external-views/journey.py +++ b/products/breg/examples/external-views/journey.py @@ -184,12 +184,12 @@ def run(self): self.wait_until(lambda: len(self.rows(self.business()) or []) == 2, "the holdings sweep to publish") reads_before = self.source_calls() - response = self.licence_filter("'Lee'", **{"$orderby": "family-name", "$top": "1"}) + response = self.licence_filter("'Lee'", **{"$orderby": "family-name", "limit": "1"}) first = records(response) expect(len(first) == 1 and response[1].get("count") == 2, "surname filtering or count is incorrect") cursor = response[1].get("nextCursor") expect(isinstance(cursor, str) and cursor, "surname page has no cursor") - second = records(self.view("licence-holder-indexed", "holder", query={"$skiptoken": cursor})) + second = records(self.view("licence-holder-indexed", "holder", query={"cursor": cursor})) expect(len(second) == 1 and first[0]["rootId"] != second[0]["rootId"], "surname pages overlap") unopened = self.licence_filter("'Rivera'") expect(len(records(unopened)) == 1 and unopened[1].get("count") == 1, "unopened licence was not indexed") @@ -249,7 +249,7 @@ def person_refresh(check, description): person_refresh(lambda: self.licence_ready("'Ng'", 2), "Person recovery to publish the renamed holder") expect(surname_from_label(records(self.business())) == "Ng", "one Person refresh did not update the holding label") # A withdrawn key does not end the projection scope, so a cursor stays valid; only a tampered one is refused. - tampered = self.view("licence-holder-indexed", "holder", query={"$skiptoken": cursor[:-4] + "AAAA"}) + tampered = self.view("licence-holder-indexed", "holder", query={"cursor": cursor[:-4] + "AAAA"}) expect(tampered[0] == 400, f"a tampered cursor was not refused (status {tampered[0]})") self.control("restore-holder") diff --git a/products/breg/examples/facility/registry.yaml b/products/breg/examples/facility/registry.yaml index bbf78f0153..9862655b18 100644 --- a/products/breg/examples/facility/registry.yaml +++ b/products/breg/examples/facility/registry.yaml @@ -89,7 +89,7 @@ valueTypes: city: {type: string, minimumLength: 1, maximumLength: 120} postal-code: {type: string, minimumLength: 1, maximumLength: 24} -functions: +actionPlans: correct-address-plan: runtime: rhai source: plans/correct-address.rhai @@ -171,8 +171,8 @@ actions: - {id: city, typeRef: city, required: true, classification: internal} - {id: postal-code, apiName: postalCode, typeRef: postal-code, required: true, classification: internal} plan: - type: function - function: correct-address-plan + type: scripted + actionPlan: correct-address-plan inputs: [facility, address-line, city, postal-code] writes: - id: facility-address diff --git a/products/breg/examples/formats/ctl-report.json b/products/breg/examples/formats/ctl-report.json index 382fd0cdc5..90a0e0b3f5 100644 --- a/products/breg/examples/formats/ctl-report.json +++ b/products/breg/examples/formats/ctl-report.json @@ -446,7 +446,7 @@ } ], "plan": { - "function": { + "actionPlan": { "abi": "registry.action-plan/v1", "boundInputs": [ "address-line", @@ -513,7 +513,7 @@ } ] }, - "type": "function" + "type": "scripted" }, "revision": "sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a" }, @@ -1664,13 +1664,13 @@ "protocol": "id.registrystack.org/protocols/review/v1" } ], - "revision": "sha256:1299e3136c3c836bd427f50c437dc505ef83a5bcc7fba275bd92c68cf2a0daf0", + "revision": "sha256:164298649ea88ba9ce13697b513f4c2dc8028c77b5bbeff20a3daa3508824f9e", "statisticalDatasets": [] }, "kind": "BRegCtlReport", "ok": true, "profile": "authoring", - "revision": "sha256:1299e3136c3c836bd427f50c437dc505ef83a5bcc7fba275bd92c68cf2a0daf0", + "revision": "sha256:164298649ea88ba9ce13697b513f4c2dc8028c77b5bbeff20a3daa3508824f9e", "status": "complete", "version": "0.50.0-dev" } diff --git a/products/breg/examples/formats/explain/access-explanation.json b/products/breg/examples/formats/explain/access-explanation.json index a3f78f3aa2..f22a71b2e6 100644 --- a/products/breg/examples/formats/explain/access-explanation.json +++ b/products/breg/examples/formats/explain/access-explanation.json @@ -462,7 +462,7 @@ } ], "plan": { - "function": { + "actionPlan": { "abi": "registry.action-plan/v1", "boundInputs": [ "address-line", @@ -529,7 +529,7 @@ } ] }, - "type": "function" + "type": "scripted" }, "revision": "sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a" }, diff --git a/products/breg/examples/formats/explain/actions-explanation.json b/products/breg/examples/formats/explain/actions-explanation.json index d495ab4ca7..edbb0ad61b 100644 --- a/products/breg/examples/formats/explain/actions-explanation.json +++ b/products/breg/examples/formats/explain/actions-explanation.json @@ -423,7 +423,7 @@ } ], "plan": { - "function": { + "actionPlan": { "abi": "registry.action-plan/v1", "boundInputs": [ "address-line", @@ -490,7 +490,7 @@ } ] }, - "type": "function" + "type": "scripted" }, "revision": "sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a" }, @@ -1641,6 +1641,6 @@ "protocol": "id.registrystack.org/protocols/review/v1" } ], - "revision": "sha256:1299e3136c3c836bd427f50c437dc505ef83a5bcc7fba275bd92c68cf2a0daf0", + "revision": "sha256:164298649ea88ba9ce13697b513f4c2dc8028c77b5bbeff20a3daa3508824f9e", "statisticalDatasets": [] } diff --git a/products/breg/examples/formats/explain/authored-display-actions-explanation.json b/products/breg/examples/formats/explain/authored-display-actions-explanation.json index 00460b5132..597db92247 100644 --- a/products/breg/examples/formats/explain/authored-display-actions-explanation.json +++ b/products/breg/examples/formats/explain/authored-display-actions-explanation.json @@ -366,7 +366,7 @@ ], "registryId": "labelled-directory", "reviewAuthorities": [], - "revision": "sha256:3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c", + "revision": "sha256:c605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50", "statisticalDatasets": [ { "accessProfiles": { diff --git a/products/breg/examples/formats/explain/authored-display-model-explanation.json b/products/breg/examples/formats/explain/authored-display-model-explanation.json index 06fcf8f6e0..d3e93dd588 100644 --- a/products/breg/examples/formats/explain/authored-display-model-explanation.json +++ b/products/breg/examples/formats/explain/authored-display-model-explanation.json @@ -634,7 +634,7 @@ "registryId": "labelled-directory", "requiresPostgis": false, "reviewAuthorities": [], - "revision": "sha256:3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c", + "revision": "sha256:c605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50", "statisticalDatasets": [ { "accessProfiles": { diff --git a/products/breg/examples/formats/explain/lifecycle-explanation.json b/products/breg/examples/formats/explain/lifecycle-explanation.json index 0171369703..2d164cdd38 100644 --- a/products/breg/examples/formats/explain/lifecycle-explanation.json +++ b/products/breg/examples/formats/explain/lifecycle-explanation.json @@ -44,7 +44,7 @@ "id": "exact-receipt-recovery" }, { - "description": "Submission validates the typed Action input and runs the shared bounded plan evaluator. Function execution and external Evidence acquisition hold no database transaction or row lock. The controller rechecks the observed revision before freezing the submission.", + "description": "Submission validates the typed Action input and runs the shared bounded plan evaluator. Action Plan execution and external Evidence acquisition hold no database transaction or row lock. The controller rechecks the observed revision before freezing the submission.", "events": [ "submit" ], diff --git a/products/breg/examples/formats/explain/model-explanation.json b/products/breg/examples/formats/explain/model-explanation.json index 975e227b1b..e9443eadec 100644 --- a/products/breg/examples/formats/explain/model-explanation.json +++ b/products/breg/examples/formats/explain/model-explanation.json @@ -424,7 +424,7 @@ } ], "plan": { - "function": { + "actionPlan": { "abi": "registry.action-plan/v1", "boundInputs": [ "address-line", @@ -491,7 +491,7 @@ } ] }, - "type": "function" + "type": "scripted" }, "revision": "sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a" }, @@ -1275,16 +1275,16 @@ "/valueTypes/postal-code/type", "/valueTypes/postal-code/minimumLength", "/valueTypes/postal-code/maximumLength", - "/functions", - "/functions/correct-address-plan", - "/functions/correct-address-plan/runtime", - "/functions/correct-address-plan/source", - "/functions/correct-address-plan/entrypoint", - "/functions/correct-address-plan/abi", - "/functions/correct-address-plan/capabilities", - "/functions/correct-address-plan/limits", - "/functions/correct-address-plan/limits/maximumOperations", - "/functions/correct-address-plan/limits/maximumOutputBytes", + "/actionPlans", + "/actionPlans/correct-address-plan", + "/actionPlans/correct-address-plan/runtime", + "/actionPlans/correct-address-plan/source", + "/actionPlans/correct-address-plan/entrypoint", + "/actionPlans/correct-address-plan/abi", + "/actionPlans/correct-address-plan/capabilities", + "/actionPlans/correct-address-plan/limits", + "/actionPlans/correct-address-plan/limits/maximumOperations", + "/actionPlans/correct-address-plan/limits/maximumOutputBytes", "/actions", "/actions/register-facility", "/actions/register-facility/display", @@ -1463,7 +1463,7 @@ "/actions/correct-address/inputs/3/classification", "/actions/correct-address/plan", "/actions/correct-address/plan/type", - "/actions/correct-address/plan/function", + "/actions/correct-address/plan/actionPlan", "/actions/correct-address/plan/inputs", "/actions/correct-address/plan/inputs/0", "/actions/correct-address/plan/inputs/1", @@ -2602,7 +2602,7 @@ "protocol": "id.registrystack.org/protocols/review/v1" } ], - "revision": "sha256:1299e3136c3c836bd427f50c437dc505ef83a5bcc7fba275bd92c68cf2a0daf0", + "revision": "sha256:164298649ea88ba9ce13697b513f4c2dc8028c77b5bbeff20a3daa3508824f9e", "statisticalDatasets": [], "version": "0.1.0" } diff --git a/products/breg/examples/formats/explain/proposals-explanation.json b/products/breg/examples/formats/explain/proposals-explanation.json index 4569798f4e..dbadcdbc76 100644 --- a/products/breg/examples/formats/explain/proposals-explanation.json +++ b/products/breg/examples/formats/explain/proposals-explanation.json @@ -389,7 +389,7 @@ } ], "plan": { - "function": { + "actionPlan": { "abi": "registry.action-plan/v1", "boundInputs": [ "address-line", @@ -456,7 +456,7 @@ } ] }, - "type": "function" + "type": "scripted" }, "revision": "sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a" }, diff --git a/products/breg/examples/formats/explain/queries-explanation.json b/products/breg/examples/formats/explain/queries-explanation.json index 9dcfdbda12..e18e5f99c0 100644 --- a/products/breg/examples/formats/explain/queries-explanation.json +++ b/products/breg/examples/formats/explain/queries-explanation.json @@ -59,10 +59,10 @@ "accessProfile": "accessProfile", "asOf": "asOf", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "select": "$select" } }, @@ -180,10 +180,10 @@ "accessProfile": "accessProfile", "asOf": "asOf", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "select": "$select" } }, @@ -287,10 +287,10 @@ "accessProfile": "accessProfile", "asOf": "asOf", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "select": "$select" } }, @@ -354,10 +354,10 @@ "accessProfile": "accessProfile", "asOf": "asOf", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "select": "$select" } }, @@ -421,10 +421,10 @@ "accessProfile": "accessProfile", "asOf": "asOf", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "select": "$select" } }, @@ -488,10 +488,10 @@ "accessProfile": "accessProfile", "asOf": "asOf", "count": "$count", - "cursor": "$skiptoken", + "cursor": "cursor", "filter": "$filter", "orderBy": "$orderby", - "pageSize": "$top", + "pageSize": "limit", "select": "$select" } } diff --git a/products/breg/examples/formats/odrl-coverage.json b/products/breg/examples/formats/odrl-coverage.json index 572d10a733..25fdef6253 100644 --- a/products/breg/examples/formats/odrl-coverage.json +++ b/products/breg/examples/formats/odrl-coverage.json @@ -1 +1 @@ -{"apiVersion":"id.registrystack.org/formats/breg/odrl-coverage/v1alpha1","audience":"operator-review","excludedSurfaces":["actions","proposals","statistics","lookups","read-paths","revisions","snapshots","mutations","counts","filters","sorting","spatial-queries","data-export","provenance"],"grants":[{"accessProfile":"directory-editor","operation":"create","reasons":["unsupported-operation","row-boundaries"],"recordType":"contact","status":"omitted"},{"accessProfile":"directory-editor","operation":"get","reasons":["row-boundaries"],"recordType":"contact","status":"omitted"},{"accessProfile":"directory-editor","operation":"list","reasons":["row-boundaries"],"recordType":"contact","status":"omitted"},{"accessProfile":"directory-editor","operation":"patch","reasons":["unsupported-operation","row-boundaries"],"recordType":"contact","status":"omitted"}],"kind":"BRegOdrlCoverage","partial":true,"registryId":"local-directory","revision":"sha256:4a4d5cd68f89d7842a50b0b4c981cfad14b6741a4bd1d52e82b5ac430a1b819f","scope":"record-operation-grants","selectedAccessProfile":null,"totals":{"considered":4,"exported":0,"omitted":4}} \ No newline at end of file +{"apiVersion":"id.registrystack.org/formats/breg/odrl-coverage/v1alpha1","audience":"operator-review","excludedSurfaces":["actions","proposals","statistics","lookups","read-paths","revisions","snapshots","mutations","counts","filters","sorting","spatial-queries","data-export","provenance"],"grants":[{"accessProfile":"directory-editor","operation":"create","reasons":["unsupported-operation","row-boundaries"],"recordType":"contact","status":"omitted"},{"accessProfile":"directory-editor","operation":"get","reasons":["row-boundaries"],"recordType":"contact","status":"omitted"},{"accessProfile":"directory-editor","operation":"list","reasons":["row-boundaries"],"recordType":"contact","status":"omitted"},{"accessProfile":"directory-editor","operation":"patch","reasons":["unsupported-operation","row-boundaries"],"recordType":"contact","status":"omitted"}],"kind":"BRegOdrlCoverage","partial":true,"registryId":"local-directory","revision":"sha256:a8f3b5081ccbaa0243b7e36131a56fae4ef25f8b2c01ccd8afbcfc7c1386620b","scope":"record-operation-grants","selectedAccessProfile":null,"totals":{"considered":4,"exported":0,"omitted":4}} \ No newline at end of file diff --git a/products/breg/examples/formats/odrl-policies.jsonld b/products/breg/examples/formats/odrl-policies.jsonld index de2673adc8..c8d612b39d 100644 --- a/products/breg/examples/formats/odrl-policies.jsonld +++ b/products/breg/examples/formats/odrl-policies.jsonld @@ -1 +1 @@ -{"@context":{"dcterms":"http://purl.org/dc/terms/","odrl":"http://www.w3.org/ns/odrl/2/"},"@graph":[{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:profiles:directory-editor:policy","@type":"odrl:Set","https://id.registrystack.org/vocab/breg-odrl/partial":true,"odrl:permission":[{"odrl:action":{"@id":"http://www.w3.org/ns/odrl/2/read"},"odrl:constraint":[{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/accessProfile"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"directory-editor"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/authenticated"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":true}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/delegatedActor"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/operation"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"get"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/taskGrantPresent"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/tokenScopes"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"directory:write"}]}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/verifiedNonemptyClaims"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"registry_principal"}]}}],"odrl:target":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:record-types:entry:profiles:directory-editor:operations:get:projection","@type":"odrl:Asset","https://id.registrystack.org/vocab/breg-odrl/readableFields":{"@list":[{"@value":"active"},{"@value":"code"},{"@value":"recorded-on"}]},"https://id.registrystack.org/vocab/breg-odrl/recordType":"entry","odrl:partOf":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:record-types:entry"}}},{"odrl:action":{"@id":"http://www.w3.org/ns/odrl/2/read"},"odrl:constraint":[{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/accessProfile"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"directory-editor"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/authenticated"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":true}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/delegatedActor"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/operation"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"list"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/taskGrantPresent"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/tokenScopes"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"directory:write"}]}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/verifiedNonemptyClaims"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"registry_principal"}]}}],"odrl:target":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:record-types:entry:profiles:directory-editor:operations:list:projection","@type":"odrl:Asset","https://id.registrystack.org/vocab/breg-odrl/readableFields":{"@list":[{"@value":"active"},{"@value":"code"},{"@value":"recorded-on"}]},"https://id.registrystack.org/vocab/breg-odrl/recordType":"entry","odrl:partOf":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:record-types:entry"}}}],"odrl:profile":[{"@id":"https://id.registrystack.org/profiles/breg-odrl/v1"}],"odrl:uid":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:profiles:directory-editor:policy"}}],"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3A3e6e9c8b87b447c38fd9cb691552ea3b6cbda66603fc02242a0c74a1d4053a5c:odrl:policies","http://purl.org/dc/terms/description":"Partial, non-enforcing projection of supported BReg record-operation grants; review coverage.json before use.","https://id.registrystack.org/vocab/breg-odrl/partial":true} \ No newline at end of file +{"@context":{"dcterms":"http://purl.org/dc/terms/","odrl":"http://www.w3.org/ns/odrl/2/"},"@graph":[{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:profiles:directory-editor:policy","@type":"odrl:Set","https://id.registrystack.org/vocab/breg-odrl/partial":true,"odrl:permission":[{"odrl:action":{"@id":"http://www.w3.org/ns/odrl/2/read"},"odrl:constraint":[{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/accessProfile"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"directory-editor"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/authenticated"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":true}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/delegatedActor"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/operation"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"get"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/taskGrantPresent"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/tokenScopes"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"directory:write"}]}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/verifiedNonemptyClaims"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"registry_principal"}]}}],"odrl:target":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:record-types:entry:profiles:directory-editor:operations:get:projection","@type":"odrl:Asset","https://id.registrystack.org/vocab/breg-odrl/readableFields":{"@list":[{"@value":"active"},{"@value":"code"},{"@value":"recorded-on"}]},"https://id.registrystack.org/vocab/breg-odrl/recordType":"entry","odrl:partOf":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:record-types:entry"}}},{"odrl:action":{"@id":"http://www.w3.org/ns/odrl/2/read"},"odrl:constraint":[{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/accessProfile"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"directory-editor"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/authenticated"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":true}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/delegatedActor"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/operation"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":"list"}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/taskGrantPresent"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/eq"},"odrl:rightOperand":{"@value":false}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/tokenScopes"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"directory:write"}]}},{"odrl:leftOperand":{"@id":"https://id.registrystack.org/vocab/breg-odrl/verifiedNonemptyClaims"},"odrl:operator":{"@id":"http://www.w3.org/ns/odrl/2/hasPart"},"odrl:rightOperand":{"@list":[{"@value":"registry_principal"}]}}],"odrl:target":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:record-types:entry:profiles:directory-editor:operations:list:projection","@type":"odrl:Asset","https://id.registrystack.org/vocab/breg-odrl/readableFields":{"@list":[{"@value":"active"},{"@value":"code"},{"@value":"recorded-on"}]},"https://id.registrystack.org/vocab/breg-odrl/recordType":"entry","odrl:partOf":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:record-types:entry"}}}],"odrl:profile":[{"@id":"https://id.registrystack.org/profiles/breg-odrl/v1"}],"odrl:uid":{"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:profiles:directory-editor:policy"}}],"@id":"urn:registrystack:breg:labelled-directory:revision:sha256%3Ac605b88ee0dd6158d870c23ac41a6c3822e13173a840a488986439ca276fef50:odrl:policies","http://purl.org/dc/terms/description":"Partial, non-enforcing projection of supported BReg record-operation grants; review coverage.json before use.","https://id.registrystack.org/vocab/breg-odrl/partial":true} \ No newline at end of file diff --git a/products/breg/examples/formats/source-export.json b/products/breg/examples/formats/source-export.json index 9c249f3f3b..5fb1f383e6 100644 --- a/products/breg/examples/formats/source-export.json +++ b/products/breg/examples/formats/source-export.json @@ -1 +1 @@ -{"apiVersion":"id.registrystack.org/formats/breg/evidence-source-export/v1alpha1","kind":"BRegEvidenceSourceExport","sourceId":"registry-status","provenance":{"accessProfile":"evidence-source","behaviorRevision":"sha256:0fe08665e856376805945509e0bb0a232e9e0d956d4237b3f46c97296ba68358","entity":"record","producer":"bregctl","registryId":"registry","registryRevision":"sha256:0826d14b40402918b088d23d14aab1ed1d9e0cc904721b3c34f93bd784025ca9"},"artifacts":[{"path":"adapter-packs/registry-status/pack.yaml","digest":"sha256:595d966808bed106ebd8bce96be7d21aca84ea1ec8d51700a538becd79d75fa7"},{"path":"adapter-packs/registry-status/protocols/registry-lookup.json","digest":"sha256:de5da14df16cbd9f8fc37a8580330242d50409aa15d28749904bc9c2823b41b2"},{"path":"adapter-packs/registry-status/schemas/facts.json","digest":"sha256:53d95c4a0be36815e2eddca510e8469e2d8aa5f57843436c7d97e8dd5f03fd12"},{"path":"adapter-packs/registry-status/schemas/inputs.json","digest":"sha256:458373dc1cda44d10f328dfaaa809ebaaffda45bd7b4292274e99326f877640a"},{"path":"adapter-packs/registry-status/schemas/response.json","digest":"sha256:80ceace892a817dcf12560d16ebe37fea09544a0b7c5f147fa11e9635fda9b9a"},{"path":"adapter-packs/registry-status/scripts/lookup.rhai","digest":"sha256:4c4d865446578334e6d9e774986dc5e68e9cdfe000c103e9cf325eda45842c45"},{"path":"selectors/breg-8-registry-6-record-22-by-registration-number.yaml","digest":"sha256:41eac0fcc67de6564be9447971c1291f271817ea3018e25d401810ac4fafc300"},{"path":"selectors/breg-8-registry-6-record-7-by-code.yaml","digest":"sha256:3912ec5c8bfeb077878266397a2c0f9f8cb991a200de92acba5bc31036c30300"},{"path":"sources/registry-status.yaml","digest":"sha256:841f1a0d8c5fb15c6e78c294454a6d3ef33cf9fa1c93e327e44a120fd98ee0e7"}]} \ No newline at end of file +{"apiVersion":"id.registrystack.org/formats/breg/evidence-source-export/v1alpha1","kind":"BRegEvidenceSourceExport","sourceId":"registry-status","provenance":{"accessProfile":"evidence-source","behaviorRevision":"sha256:0fe08665e856376805945509e0bb0a232e9e0d956d4237b3f46c97296ba68358","entity":"record","producer":"bregctl","registryId":"registry","registryRevision":"sha256:240d65cde1c90ca61d9c363be04815b1736290031e815e34186195851e31cb6c"},"artifacts":[{"path":"adapter-packs/registry-status/pack.yaml","digest":"sha256:595d966808bed106ebd8bce96be7d21aca84ea1ec8d51700a538becd79d75fa7"},{"path":"adapter-packs/registry-status/protocols/registry-lookup.json","digest":"sha256:de5da14df16cbd9f8fc37a8580330242d50409aa15d28749904bc9c2823b41b2"},{"path":"adapter-packs/registry-status/schemas/facts.json","digest":"sha256:53d95c4a0be36815e2eddca510e8469e2d8aa5f57843436c7d97e8dd5f03fd12"},{"path":"adapter-packs/registry-status/schemas/inputs.json","digest":"sha256:458373dc1cda44d10f328dfaaa809ebaaffda45bd7b4292274e99326f877640a"},{"path":"adapter-packs/registry-status/schemas/response.json","digest":"sha256:80ceace892a817dcf12560d16ebe37fea09544a0b7c5f147fa11e9635fda9b9a"},{"path":"adapter-packs/registry-status/scripts/lookup.rhai","digest":"sha256:4c4d865446578334e6d9e774986dc5e68e9cdfe000c103e9cf325eda45842c45"},{"path":"selectors/breg-8-registry-6-record-22-by-registration-number.yaml","digest":"sha256:41eac0fcc67de6564be9447971c1291f271817ea3018e25d401810ac4fafc300"},{"path":"selectors/breg-8-registry-6-record-7-by-code.yaml","digest":"sha256:3912ec5c8bfeb077878266397a2c0f9f8cb991a200de92acba5bc31036c30300"},{"path":"sources/registry-status.yaml","digest":"sha256:841f1a0d8c5fb15c6e78c294454a6d3ef33cf9fa1c93e327e44a120fd98ee0e7"}]} \ No newline at end of file diff --git a/products/breg/examples/required-attachment/openapi.json b/products/breg/examples/required-attachment/openapi.json index 36def9f5f2..0fa3c3004e 100644 --- a/products/breg/examples/required-attachment/openapi.json +++ b/products/breg/examples/required-attachment/openapi.json @@ -1 +1 @@ -{"components":{"schemas":{"ImmediateActionPrecondition":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"},"ImmediateActionResultReference":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"Problem":{"additionalProperties":false,"allOf":[{"if":{"properties":{"code":{"enum":["attachment.required","attachment.verification-pending","attachment.verification-rejected"]}}},"then":{"allOf":[{"else":{"properties":{"status":{"const":422}}},"if":{"properties":{"code":{"const":"attachment.verification-pending"}}},"then":{"properties":{"status":{"const":409}}}}],"properties":{"fieldPath":{"pattern":"^/attachments/[a-z][a-z0-9_-]{0,63}$","type":"string"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","fieldPath"]},"required":["fieldPath"]}},{"if":{"properties":{"code":{"const":"write.outside-boundary"}}},"then":{"properties":{"code":{"const":"write.outside-boundary"},"detail":{"const":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."},"status":{"const":403},"title":{"const":"Forbidden"},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId"]}}},{"if":{"properties":{"code":{"not":{"const":"action.guard-failed"}}}},"then":{"not":{"required":["guardReason"]}}},{"if":{"properties":{"code":{"const":"action.refused"}}},"then":{"properties":{"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"const":"statistical-dataset.release-refused"}}},"then":{"properties":{"refusalCode":{"enum":["period-not-ended","before-first-period","provisional-after-final","already-withdrawn","negative-value"]},"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"not":{"enum":["action.refused","statistical-dataset.release-refused"]}}}},"then":{"not":{"required":["refusalCode"]}}},{"if":{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"}}},"then":{"properties":{"status":{"const":410}},"required":["reasonCode"]}},{"if":{"properties":{"code":{"not":{"const":"statistical-dataset.version-withdrawn"}}}},"then":{"not":{"required":["reasonCode"]}}},{"if":{"properties":{"code":{"const":"access-profile.ambiguous"}}},"then":{"additionalProperties":true,"properties":{"status":{"const":400}},"required":["accessProfiles"]}},{"if":{"properties":{"code":{"not":{"const":"access-profile.ambiguous"}}}},"then":{"not":{"required":["accessProfiles"]}}},{"if":{"properties":{"code":{"const":"action.evidence-failed"}}},"then":{"properties":{"detail":{"const":"The declared Evidence dependency could not be accepted."},"fieldPath":{"pattern":"^/evidence/[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":503}}}},{"if":{"properties":{"code":{"const":"action.handler-failed"}}},"then":{"properties":{"status":{"const":500}}}},{"if":{"anyOf":[{"required":["atField"]},{"required":["notAfterField"]}]},"then":{"properties":{"code":{"const":"request.invalid"},"status":{"const":400}},"required":["atField","notAfterField"]}},{"if":{"anyOf":[{"required":["recordType"]},{"required":["fieldId"]},{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"required":["fieldId"]},{"not":{"required":["fieldId"]},"oneOf":[{"not":{"required":["field"]},"properties":{"constraintKind":{"const":"compare"}},"required":["left","right"]},{"not":{"anyOf":[{"required":["left"]},{"required":["right"]}]},"properties":{"constraintKind":{"enum":["int-range","vocabulary"]}},"required":["field"]}],"required":["constraintId","constraintKind"]}],"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409}},"required":["recordType"]}}],"anyOf":[{"properties":{"code":{"const":"access-profile.ambiguous"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},{"properties":{"code":{"const":"action.evidence-failed"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/evidence-failed"}}},{"properties":{"code":{"const":"action.guard-failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}}},{"properties":{"code":{"const":"action.handler-failed"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},{"properties":{"code":{"const":"action.refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/refused"}}},{"properties":{"code":{"const":"attachment.content-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},{"properties":{"code":{"const":"attachment.digest-mismatch"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch"}}},{"properties":{"code":{"const":"attachment.limit-reached"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached"}}},{"properties":{"code":{"const":"attachment.required"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},{"properties":{"code":{"const":"attachment.slot-write-once"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once"}}},{"properties":{"code":{"const":"attachment.too-large"},"status":{"const":413},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},{"properties":{"code":{"const":"attachment.verification-pending"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}}},{"properties":{"code":{"const":"attachment.verification-rejected"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},{"properties":{"code":{"const":"authentication.refused"},"status":{"const":401},"type":{"const":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},{"properties":{"code":{"const":"idempotency.expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},{"properties":{"code":{"const":"idempotency.key-reused"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}}},{"properties":{"code":{"const":"ingestion.chunk-mismatch"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch"}}},{"properties":{"code":{"const":"ingestion.profile-mismatch"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch"}}},{"properties":{"code":{"const":"ingestion.receipt-erased"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased"}}},{"properties":{"code":{"const":"ingestion.run-blocked"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked"}}},{"properties":{"code":{"const":"ingestion.run-not-open"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open"}}},{"properties":{"code":{"const":"lookup.unresolved"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/lookup/unresolved"}}},{"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},{"properties":{"code":{"const":"precondition.failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},{"properties":{"code":{"const":"precondition.required"},"status":{"const":428},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},{"properties":{"code":{"const":"profile.not-authorized"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},{"properties":{"code":{"const":"proposal.rejected"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},{"properties":{"code":{"const":"proposal.review-result-mismatch"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},{"properties":{"code":{"const":"proposal.submission-expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},{"properties":{"code":{"const":"query.cursor-invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}}},{"properties":{"code":{"const":"query.filter-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/filter-required"}}},{"properties":{"code":{"const":"query.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},{"properties":{"code":{"const":"request.access-reason-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/access-reason-required"}}},{"properties":{"code":{"const":"request.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},{"properties":{"code":{"const":"request.timeout"},"status":{"const":504},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},{"properties":{"code":{"const":"resource.not-found"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},{"properties":{"code":{"const":"runtime.field-encryption.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}}},{"properties":{"code":{"const":"service.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},{"properties":{"code":{"const":"source.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},{"properties":{"code":{"const":"statistical-dataset.domain-violation"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation"}}},{"properties":{"code":{"const":"statistical-dataset.release-refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused"}}},{"properties":{"code":{"const":"statistical-dataset.version-conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict"}}},{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn"}}},{"properties":{"code":{"const":"unsupported.media-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},{"properties":{"code":{"const":"write.outside-boundary"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}}],"properties":{"accessProfiles":{"items":{"maxLength":128,"minLength":1,"type":"string"},"minItems":2,"type":"array","uniqueItems":true},"atField":{"maxLength":128,"minLength":1,"type":"string"},"code":{"enum":["access-profile.ambiguous","action.evidence-failed","action.guard-failed","action.handler-failed","action.refused","attachment.content-type","attachment.digest-mismatch","attachment.limit-reached","attachment.required","attachment.slot-write-once","attachment.too-large","attachment.verification-pending","attachment.verification-rejected","authentication.refused","idempotency.expired","idempotency.key-reused","ingestion.chunk-mismatch","ingestion.profile-mismatch","ingestion.receipt-erased","ingestion.run-blocked","ingestion.run-not-open","lookup.unresolved","mutation.conflict","precondition.failed","precondition.required","profile.not-authorized","proposal.rejected","proposal.review-result-mismatch","proposal.submission-expired","query.cursor-invalid","query.filter-required","query.invalid","request.access-reason-required","request.invalid","request.timeout","resource.not-found","runtime.field-encryption.unavailable","service.unavailable","source.unavailable","statistical-dataset.domain-violation","statistical-dataset.release-refused","statistical-dataset.version-conflict","statistical-dataset.version-withdrawn","unsupported.media-type","write.outside-boundary"],"type":"string"},"constraintId":{"maxLength":128,"minLength":1,"type":"string"},"constraintKind":{"enum":["compare","int-range","vocabulary"],"type":"string"},"detail":{"maxLength":256,"type":"string"},"field":{"maxLength":128,"minLength":1,"type":"string"},"fieldId":{"maxLength":128,"minLength":1,"type":"string"},"fieldPath":{"maxLength":256,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"left":{"maxLength":128,"minLength":1,"type":"string"},"notAfterField":{"maxLength":128,"minLength":1,"type":"string"},"reasonCode":{"enum":["computation-error","source-data-error","disclosure-risk"],"type":"string"},"recordType":{"maxLength":128,"minLength":1,"type":"string"},"refusalCode":{"maxLength":128,"minLength":1,"type":"string"},"requiredFilters":{"items":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":32,"minItems":1,"type":"array","uniqueItems":true},"maxItems":8,"minItems":1,"type":"array"},"right":{"maxLength":128,"minLength":1,"type":"string"},"status":{"maximum":599,"minimum":400,"type":"integer"},"title":{"maxLength":128,"type":"string"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","type":"string"},"type":{"format":"uri","maxLength":256,"type":"string"}},"required":["type","title","status","detail","code","traceId"],"type":"object"},"ReviewCompletion":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":"string"},"eventId":{"format":"uuid","type":"string"},"requestId":{"format":"uuid","type":"string"},"resultId":{"format":"uuid","type":"string"},"type":{"const":"review.completed"}},"required":["type","eventId","requestId","resultId","completedAt"],"type":"object"},"action-correct-name-invoke-input":{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]},"action-correct-name-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"target":{"$id":"urn:breg:record-type:target","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"required":["name","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable","x-registry-mutationPolicy":{"patch":"proposal-required"}},"target-create-input":{"$id":"urn:breg:record-type:target:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"required":["name","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"reviewCompletion":{"description":"The review authority's configured completion key verifies the Standard Webhooks signature.","in":"header","name":"webhook-signature","type":"apiKey"}}},"info":{"title":"required-attachment","version":"1"},"openapi":"3.1.0","paths":{"/v1/actions/correct-name/proposals":{"post":{"operationId":"actions.correct-name.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-name-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-name-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-action":{"access":{"accessProfiles":["clerk"]},"apiName":"correctName","attachments":[{"contentTypes":["text/plain"],"id":"support","maximumBytes":4096,"required":true}],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{},"execution":{"application":"manual","mode":"proposal","review":"none"},"id":"correct-name","inputMode":"fixed","inputs":[{"apiName":"target","classification":"internal","fieldType":{"onDelete":"restrict","target":"target","type":"reference"},"id":"target","label":"target","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"value","classification":"internal","fieldType":{"maximumLength":64,"minimumLength":0,"type":"string"},"id":"value","label":"value","nullable":false,"required":true,"schema":{"maxLength":64,"minLength":0,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"target","input":"target","targetRecordType":"target"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"name","operation":"patch","recordType":"target"}],"revision":"sha256:bc33d44acbc56e239cd2c88aa76698302a40bba0bf7298b80317a82c9fc4cb36","route":"/v1/actions/correct-name/proposals","routes":{"availability":null,"start":{"inputSchema":"action-correct-name-invoke-input","method":"POST","operationId":"actions.correct-name.start","path":"/v1/actions/correct-name/proposals","requiresIdempotencyKey":true,"responseSchema":"action-correct-name-invoke-response"}}},"x-registry-defaultAccessProfile":"clerk","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/proposals":{"get":{"operationId":"proposals.list","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"query","name":"action","schema":{"type":"string"}},{"in":"query","name":"owner","schema":{"const":"caller"}},{"in":"query","name":"target","schema":{"format":"uuid","type":"string"}},{"in":"query","name":"state","schema":{"enum":["draft","submitted","applied","cancelled","rejected"]}},{"in":"query","name":"turn","schema":{"enum":["party","official","nobody"]}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The most items a page holds. A page may hold fewer than `limit` items, so keep paging while `nextCursor` is present.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"pendingManualApplication","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"maxItems":100,"type":"array"},"nextCursor":{"type":"string"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","query.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}":{"get":{"operationId":"proposals.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/apply":{"post":{"operationId":"proposals.apply","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"reason":{"description":"Optional application explanation, preserved unchanged. At most 4096 Unicode characters; NUL is refused.","maxLength":4096,"pattern":"^[^\\u0000]*$","type":"string"},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["submissionVersion","effectDigest"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/attachments/support":{"delete":{"operationId":"proposals.attachments.support.delete","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]},"get":{"operationId":"proposals.attachments.support.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"submissionVersion","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"reviewContextField","required":false,"schema":{"pattern":"^[a-z][a-zA-Z0-9]{0,63}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"effectDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"contextSchemaDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"contentMediaType":"application/octet-stream","maxLength":16777216,"type":"string"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]},"patch":{"operationId":"proposals.attachments.support.patch","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"format":"binary","maxLength":4096,"type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"413":{"content":{"application/problem+json":{"examples":{"attachment.too-large":{"value":{"code":"attachment.too-large","detail":"The file is larger than the attachment slot accepts.","status":413,"title":"Content Too Large","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.too-large"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"attachment.content-type":{"value":{"code":"attachment.content-type","detail":"The file media type is not one the attachment slot accepts.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.content-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/cancel":{"post":{"operationId":"proposals.cancel","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/edit":{"post":{"operationId":"proposals.edit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/rebase":{"post":{"operationId":"proposals.rebase","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/revise":{"post":{"operationId":"proposals.revise","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]},{"additionalProperties":false,"type":"object"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/submissions/{submission_version}":{"get":{"operationId":"proposals.get-submission","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"submission_version","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"application":{"anyOf":[{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"state":{"const":"applied"}},"required":["state","applicationId"],"type":"object"},{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},{"type":"null"}]},"current":{"type":"boolean"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"review":{"anyOf":[{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},{"type":"null"}]},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["id","actionId","submissionVersion","current","effectDigest","review","application"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"proposal.submission-expired":{"value":{"code":"proposal.submission-expired","detail":"The review result and application receipt of the submission are no longer retained.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["proposal.submission-expired"]}},"type":"object"}]}}},"description":"The submission's review result and application receipt are no longer retained","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/submit":{"post":{"operationId":"proposals.submit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"attachment.verification-pending":{"value":{"code":"attachment.verification-pending","detail":"The attachment is awaiting verification. Refresh the Proposal before submitting.","fieldPath":"/attachments/support","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}},"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.verification-pending","idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"422":{"content":{"application/problem+json":{"examples":{"attachment.required":{"value":{"code":"attachment.required","detail":"The required attachment slot is empty.","fieldPath":"/attachments/support","status":422,"title":"Unprocessable Entity","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/records/targets":{"get":{"operationId":"records.target.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"clerk":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"clerk","requiredFilters":[],"selectableProperties":["jurisdiction","name"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"target","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"target","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.target.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/target-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/target"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/target"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-operation":"create","x-registry-recordType":"target","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"target","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/targets/{record_id}":{"get":{"operationId":"records.target.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-operation":"get","x-registry-recordType":"target","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"target","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/review-completions":{"post":{"description":"Available when a review authority configures a completion block.","operationId":"receiveReviewCompletion","parameters":[{"in":"header","name":"Registry-Recipient-Binding","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}},{"description":"Must equal eventId.","in":"header","name":"webhook-id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"webhook-timestamp","required":true,"schema":{"pattern":"^(0|[1-9][0-9]{0,19})$","type":"string"}},{"in":"header","name":"webhook-signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCompletion"}}},"required":true},"responses":{"204":{"description":"Completion accepted or already recorded."},"400":{"description":"The completion is invalid or eventId differs from webhook-id."},"401":{"description":"The completion authority could not be authenticated.","headers":{"WWW-Authenticate":{"schema":{"const":"Registry-Signature scheme=\"standard-webhooks\", version=\"v1\"","type":"string"}}}},"413":{"description":"The completion body exceeds 2048 bytes. The response body is empty."},"415":{"description":"The request is not application/json."},"503":{"description":"The completion could not be durably recorded."}},"security":[{"reviewCompletion":[]}],"summary":"Receive a Casework review completion"}}}} \ No newline at end of file +{"components":{"schemas":{"ImmediateActionPrecondition":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"},"ImmediateActionResultReference":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"Problem":{"additionalProperties":false,"allOf":[{"if":{"properties":{"code":{"enum":["attachment.required","attachment.verification-pending","attachment.verification-rejected"]}}},"then":{"allOf":[{"else":{"properties":{"status":{"const":422}}},"if":{"properties":{"code":{"const":"attachment.verification-pending"}}},"then":{"properties":{"status":{"const":409}}}}],"properties":{"fieldPath":{"pattern":"^/attachments/[a-z][a-z0-9_-]{0,63}$","type":"string"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","fieldPath"]},"required":["fieldPath"]}},{"if":{"properties":{"code":{"const":"write.outside-boundary"}}},"then":{"properties":{"code":{"const":"write.outside-boundary"},"detail":{"const":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."},"status":{"const":403},"title":{"const":"Forbidden"},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","failedCheck"]}}},{"if":{"properties":{"code":{"not":{"const":"action.guard-failed"}}}},"then":{"not":{"required":["guardReason"]}}},{"if":{"properties":{"code":{"const":"action.refused"}}},"then":{"properties":{"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"const":"statistical-dataset.release-refused"}}},"then":{"properties":{"refusalCode":{"enum":["period-not-ended","before-first-period","provisional-after-final","already-withdrawn","negative-value"]},"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"not":{"enum":["action.refused","statistical-dataset.release-refused"]}}}},"then":{"not":{"required":["refusalCode"]}}},{"if":{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"}}},"then":{"properties":{"status":{"const":410}},"required":["reasonCode"]}},{"if":{"properties":{"code":{"not":{"const":"statistical-dataset.version-withdrawn"}}}},"then":{"not":{"required":["reasonCode"]}}},{"if":{"properties":{"code":{"const":"access-profile.ambiguous"}}},"then":{"additionalProperties":true,"not":{"required":["failedCheck"]},"properties":{"status":{"const":400}},"required":["accessProfiles"]}},{"if":{"properties":{"code":{"not":{"const":"access-profile.ambiguous"}}}},"then":{"not":{"required":["accessProfiles"]}}},{"if":{"properties":{"code":{"const":"action.evidence-failed"}}},"then":{"properties":{"detail":{"const":"The declared Evidence dependency could not be accepted."},"fieldPath":{"pattern":"^/evidence/[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":503}}}},{"if":{"properties":{"code":{"const":"action.handler-failed"}}},"then":{"properties":{"status":{"const":500}}}},{"if":{"anyOf":[{"required":["atField"]},{"required":["notAfterField"]}]},"then":{"properties":{"code":{"const":"request.invalid"},"status":{"const":400}},"required":["atField","notAfterField"]}},{"if":{"anyOf":[{"required":["recordType"]},{"required":["fieldId"]},{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"required":["fieldId"]},{"not":{"required":["fieldId"]},"oneOf":[{"not":{"required":["field"]},"properties":{"constraintKind":{"const":"compare"}},"required":["left","right"]},{"not":{"anyOf":[{"required":["left"]},{"required":["right"]}]},"properties":{"constraintKind":{"enum":["int-range","vocabulary"]}},"required":["field"]}],"required":["constraintId","constraintKind"]}],"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409}},"required":["recordType"]}}],"anyOf":[{"properties":{"code":{"const":"access-profile.ambiguous"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},{"properties":{"code":{"const":"action.evidence-failed"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/evidence-failed"}}},{"properties":{"code":{"const":"action.guard-failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}}},{"properties":{"code":{"const":"action.handler-failed"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},{"properties":{"code":{"const":"action.refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/refused"}}},{"properties":{"code":{"const":"attachment.content-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},{"properties":{"code":{"const":"attachment.digest-mismatch"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch"}}},{"properties":{"code":{"const":"attachment.limit-reached"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached"}}},{"properties":{"code":{"const":"attachment.required"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},{"properties":{"code":{"const":"attachment.slot-write-once"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once"}}},{"properties":{"code":{"const":"attachment.too-large"},"status":{"const":413},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},{"properties":{"code":{"const":"attachment.verification-pending"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}}},{"properties":{"code":{"const":"attachment.verification-rejected"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},{"properties":{"code":{"const":"authentication.refused"},"status":{"const":401},"type":{"const":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},{"properties":{"code":{"const":"idempotency.expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},{"properties":{"code":{"const":"idempotency.key-reused"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}}},{"properties":{"code":{"const":"ingestion.chunk-mismatch"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch"}}},{"properties":{"code":{"const":"ingestion.profile-mismatch"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch"}}},{"properties":{"code":{"const":"ingestion.receipt-erased"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased"}}},{"properties":{"code":{"const":"ingestion.run-blocked"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked"}}},{"properties":{"code":{"const":"ingestion.run-not-open"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open"}}},{"properties":{"code":{"const":"lookup.unresolved"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/lookup/unresolved"}}},{"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},{"properties":{"code":{"const":"precondition.failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},{"properties":{"code":{"const":"precondition.required"},"status":{"const":428},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},{"properties":{"code":{"const":"profile.not-authorized"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},{"properties":{"code":{"const":"proposal.rejected"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},{"properties":{"code":{"const":"proposal.review-result-mismatch"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},{"properties":{"code":{"const":"proposal.submission-expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},{"properties":{"code":{"const":"query.cursor-invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}}},{"properties":{"code":{"const":"query.filter-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/filter-required"}}},{"properties":{"code":{"const":"query.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},{"properties":{"code":{"const":"request.access-reason-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/access-reason-required"}}},{"properties":{"code":{"const":"request.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},{"properties":{"code":{"const":"request.timeout"},"status":{"const":504},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},{"properties":{"code":{"const":"resource.not-found"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},{"properties":{"code":{"const":"runtime.field-encryption.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}}},{"properties":{"code":{"const":"service.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},{"properties":{"code":{"const":"source.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},{"properties":{"code":{"const":"statistical-dataset.domain-violation"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation"}}},{"properties":{"code":{"const":"statistical-dataset.release-refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused"}}},{"properties":{"code":{"const":"statistical-dataset.version-conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict"}}},{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn"}}},{"properties":{"code":{"const":"unsupported.media-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},{"properties":{"code":{"const":"write.outside-boundary"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}}],"properties":{"accessProfiles":{"items":{"maxLength":128,"minLength":1,"type":"string"},"minItems":2,"type":"array","uniqueItems":true},"atField":{"maxLength":128,"minLength":1,"type":"string"},"code":{"enum":["access-profile.ambiguous","action.evidence-failed","action.guard-failed","action.handler-failed","action.refused","attachment.content-type","attachment.digest-mismatch","attachment.limit-reached","attachment.required","attachment.slot-write-once","attachment.too-large","attachment.verification-pending","attachment.verification-rejected","authentication.refused","idempotency.expired","idempotency.key-reused","ingestion.chunk-mismatch","ingestion.profile-mismatch","ingestion.receipt-erased","ingestion.run-blocked","ingestion.run-not-open","lookup.unresolved","mutation.conflict","precondition.failed","precondition.required","profile.not-authorized","proposal.rejected","proposal.review-result-mismatch","proposal.submission-expired","query.cursor-invalid","query.filter-required","query.invalid","request.access-reason-required","request.invalid","request.timeout","resource.not-found","runtime.field-encryption.unavailable","service.unavailable","source.unavailable","statistical-dataset.domain-violation","statistical-dataset.release-refused","statistical-dataset.version-conflict","statistical-dataset.version-withdrawn","unsupported.media-type","write.outside-boundary"],"type":"string"},"constraintId":{"maxLength":128,"minLength":1,"type":"string"},"constraintKind":{"enum":["compare","int-range","vocabulary"],"type":"string"},"detail":{"maxLength":256,"type":"string"},"failedCheck":{"description":"The check that refused the request, included only in development.","type":"string"},"field":{"maxLength":128,"minLength":1,"type":"string"},"fieldId":{"maxLength":128,"minLength":1,"type":"string"},"fieldPath":{"maxLength":256,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"left":{"maxLength":128,"minLength":1,"type":"string"},"notAfterField":{"maxLength":128,"minLength":1,"type":"string"},"reasonCode":{"enum":["computation-error","source-data-error","disclosure-risk"],"type":"string"},"recordType":{"maxLength":128,"minLength":1,"type":"string"},"refusalCode":{"maxLength":128,"minLength":1,"type":"string"},"requiredFilters":{"items":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":32,"minItems":1,"type":"array","uniqueItems":true},"maxItems":8,"minItems":1,"type":"array"},"right":{"maxLength":128,"minLength":1,"type":"string"},"status":{"maximum":599,"minimum":400,"type":"integer"},"title":{"maxLength":128,"type":"string"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","type":"string"},"type":{"format":"uri","maxLength":256,"type":"string"}},"required":["type","title","status","detail","code","traceId"],"type":"object"},"ReviewCompletion":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":"string"},"eventId":{"format":"uuid","type":"string"},"requestId":{"format":"uuid","type":"string"},"resultId":{"format":"uuid","type":"string"},"type":{"const":"review.completed"}},"required":["type","eventId","requestId","resultId","completedAt"],"type":"object"},"action-correct-name-invoke-input":{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]},"action-correct-name-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"target":{"$id":"urn:breg:record-type:target","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"required":["name","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable","x-registry-mutationPolicy":{"patch":"proposal-required"}},"target-create-input":{"$id":"urn:breg:record-type:target:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"required":["name","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"reviewCompletion":{"description":"The review authority's configured completion key verifies the Standard Webhooks signature.","in":"header","name":"webhook-signature","type":"apiKey"}}},"info":{"title":"required-attachment","version":"1"},"openapi":"3.1.0","paths":{"/v1/actions/correct-name/proposals":{"post":{"operationId":"actions.correct-name.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-name-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-name-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-action":{"access":{"accessProfiles":["clerk"]},"apiName":"correctName","attachments":[{"contentTypes":["text/plain"],"id":"support","maximumBytes":4096,"required":true}],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{},"execution":{"application":"manual","mode":"proposal","review":"none"},"id":"correct-name","inputMode":"fixed","inputs":[{"apiName":"target","classification":"internal","fieldType":{"onDelete":"restrict","target":"target","type":"reference"},"id":"target","label":"target","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"value","classification":"internal","fieldType":{"maximumLength":64,"minimumLength":0,"type":"string"},"id":"value","label":"value","nullable":false,"required":true,"schema":{"maxLength":64,"minLength":0,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"target","input":"target","targetRecordType":"target"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"name","operation":"patch","recordType":"target"}],"revision":"sha256:bc33d44acbc56e239cd2c88aa76698302a40bba0bf7298b80317a82c9fc4cb36","route":"/v1/actions/correct-name/proposals","routes":{"availability":null,"start":{"inputSchema":"action-correct-name-invoke-input","method":"POST","operationId":"actions.correct-name.start","path":"/v1/actions/correct-name/proposals","requiresIdempotencyKey":true,"responseSchema":"action-correct-name-invoke-response"}}},"x-registry-defaultAccessProfile":"clerk","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/proposals":{"get":{"operationId":"proposals.list","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"query","name":"action","schema":{"type":"string"}},{"in":"query","name":"owner","schema":{"const":"caller"}},{"in":"query","name":"target","schema":{"format":"uuid","type":"string"}},{"in":"query","name":"state","schema":{"enum":["draft","submitted","applied","cancelled","rejected"]}},{"in":"query","name":"turn","schema":{"enum":["party","official","nobody"]}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The most items a page holds. A page may hold fewer than `limit` items, so keep paging while `nextCursor` is present.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"pendingManualApplication","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"maxItems":100,"type":"array"},"nextCursor":{"type":"string"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","query.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}":{"get":{"operationId":"proposals.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/apply":{"post":{"operationId":"proposals.apply","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"reason":{"description":"Optional application explanation, preserved unchanged. At most 4096 Unicode characters; NUL is refused.","maxLength":4096,"pattern":"^[^\\u0000]*$","type":"string"},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["submissionVersion","effectDigest"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/attachments/support":{"delete":{"operationId":"proposals.attachments.support.delete","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]},"get":{"operationId":"proposals.attachments.support.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"submissionVersion","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"reviewContextField","required":false,"schema":{"pattern":"^[a-z][a-zA-Z0-9]{0,63}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"effectDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"contextSchemaDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"contentMediaType":"application/octet-stream","maxLength":16777216,"type":"string"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]},"patch":{"operationId":"proposals.attachments.support.patch","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"format":"binary","maxLength":4096,"type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"413":{"content":{"application/problem+json":{"examples":{"attachment.too-large":{"value":{"code":"attachment.too-large","detail":"The file is larger than the attachment slot accepts.","status":413,"title":"Content Too Large","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.too-large"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"attachment.content-type":{"value":{"code":"attachment.content-type","detail":"The file media type is not one the attachment slot accepts.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.content-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/cancel":{"post":{"operationId":"proposals.cancel","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/edit":{"post":{"operationId":"proposals.edit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/rebase":{"post":{"operationId":"proposals.rebase","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/revise":{"post":{"operationId":"proposals.revise","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-name:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"target":{"format":"uuid","type":"string"},"value":{"maxLength":64,"minLength":0,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-name","x-registry-requiredConditionKeys":[]},{"additionalProperties":false,"type":"object"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/submissions/{submission_version}":{"get":{"operationId":"proposals.get-submission","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"submission_version","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"application":{"anyOf":[{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"state":{"const":"applied"}},"required":["state","applicationId"],"type":"object"},{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},{"type":"null"}]},"current":{"type":"boolean"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"review":{"anyOf":[{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},{"type":"null"}]},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["id","actionId","submissionVersion","current","effectDigest","review","application"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"proposal.submission-expired":{"value":{"code":"proposal.submission-expired","detail":"The review result and application receipt of the submission are no longer retained.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["proposal.submission-expired"]}},"type":"object"}]}}},"description":"The submission's review result and application receipt are no longer retained","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/proposals/{proposal_id}/submit":{"post":{"operationId":"proposals.submit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["clerk"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"attachment.verification-pending":{"value":{"code":"attachment.verification-pending","detail":"The attachment is awaiting verification. Refresh the Proposal before submitting.","fieldPath":"/attachments/support","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}},"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.verification-pending","idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"422":{"content":{"application/problem+json":{"examples":{"attachment.required":{"value":{"code":"attachment.required","detail":"The required attachment slot is empty.","fieldPath":"/attachments/support","status":422,"title":"Unprocessable Entity","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["clerk"]}},"/v1/records/targets":{"get":{"operationId":"records.target.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"clerk":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"clerk","requiredFilters":[],"selectableProperties":["jurisdiction","name"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"target","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"target","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.target.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/target-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/target"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/target"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-operation":"create","x-registry-recordType":"target","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"target","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/targets/{record_id}":{"get":{"operationId":"records.target.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":64,"minLength":0,"type":"string"},"name":{"maxLength":64,"minLength":0,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"target"},"registryId":{"const":"required-attachment"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["clerk"],"x-registry-operation":"get","x-registry-recordType":"target","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"target","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/review-completions":{"post":{"description":"Available when a review authority configures a completion block.","operationId":"receiveReviewCompletion","parameters":[{"in":"header","name":"Registry-Recipient-Binding","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}},{"description":"Must equal eventId.","in":"header","name":"webhook-id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"webhook-timestamp","required":true,"schema":{"pattern":"^(0|[1-9][0-9]{0,19})$","type":"string"}},{"in":"header","name":"webhook-signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCompletion"}}},"required":true},"responses":{"204":{"description":"Completion accepted or already recorded."},"400":{"description":"The completion is invalid or eventId differs from webhook-id."},"401":{"description":"The completion authority could not be authenticated.","headers":{"WWW-Authenticate":{"schema":{"const":"Registry-Signature scheme=\"standard-webhooks\", version=\"v1\"","type":"string"}}}},"413":{"description":"The completion body exceeds 2048 bytes. The response body is empty."},"415":{"description":"The request is not application/json."},"503":{"description":"The completion could not be durably recorded."}},"security":[{"reviewCompletion":[]}],"summary":"Receive a Casework review completion"}}}} \ No newline at end of file diff --git a/products/breg/fixtures/action-plan-branches/registry.yaml b/products/breg/fixtures/action-plan-branches/registry.yaml index 7cbb8cd479..535333490b 100644 --- a/products/breg/fixtures/action-plan-branches/registry.yaml +++ b/products/breg/fixtures/action-plan-branches/registry.yaml @@ -17,7 +17,7 @@ recordTypes: - {id: effective-on, type: date, classification: internal} - {id: expires-on, type: date, classification: internal} - {id: renewal-on, type: date, classification: internal} -functions: +actionPlans: create-entry-plan: {runtime: rhai, source: plans/create.rhai, entrypoint: plan, abi: registry.action-plan/v1} invalid-copy-plan: {runtime: rhai, source: plans/invalid-copy.rhai, entrypoint: plan, abi: registry.action-plan/v1} create-dated-entry-plan: {runtime: rhai, source: plans/create-dated-entry.rhai, entrypoint: plan, abi: registry.action-plan/v1} @@ -27,8 +27,8 @@ actions: inputs: - {id: label, type: string, required: true, maximumLength: 64, classification: internal} plan: - type: function - function: create-entry-plan + type: scripted + actionPlan: create-entry-plan inputs: [label] writes: - {id: entry, target: {recordType: entry}, operation: create, fields: [label]} @@ -39,8 +39,8 @@ actions: inputs: - {id: note, type: string, maximumLength: 64, classification: internal} plan: - type: function - function: invalid-copy-plan + type: scripted + actionPlan: invalid-copy-plan inputs: [note] writes: - {id: entry, target: {recordType: entry}, operation: create, fields: [label]} @@ -49,8 +49,8 @@ actions: inputs: - {id: label, type: string, required: true, maximumLength: 64, classification: internal} plan: - type: function - function: create-dated-entry-plan + type: scripted + actionPlan: create-dated-entry-plan inputs: [label] writes: - {id: entry, target: {recordType: entry}, operation: create, fields: [label, effective-on, expires-on, renewal-on]} diff --git a/products/breg/generated/authoring/registry-module.schema.json b/products/breg/generated/authoring/registry-module.schema.json index 49c574bb84..baac8343cc 100644 --- a/products/breg/generated/authoring/registry-module.schema.json +++ b/products/breg/generated/authoring/registry-module.schema.json @@ -634,6 +634,32 @@ } ] }, + "ActionPlanCapabilitySource": { + "enum": [ + "evidence" + ], + "type": "string" + }, + "ActionPlanLimitsSource": { + "additionalProperties": false, + "properties": { + "maximumOperations": { + "default": 10000, + "format": "uint64", + "maximum": 100000, + "minimum": 1, + "type": "integer" + }, + "maximumOutputBytes": { + "default": 8192, + "format": "uint32", + "maximum": 2097152, + "minimum": 1, + "type": "integer" + } + }, + "type": "object" + }, "ActionPlanSource": { "oneOf": [ { @@ -659,7 +685,7 @@ { "additionalProperties": false, "properties": { - "function": { + "actionPlan": { "type": "string" }, "inputs": { @@ -676,7 +702,7 @@ "type": "array" }, "type": { - "const": "function", + "const": "scripted", "type": "string" }, "writes": { @@ -688,7 +714,7 @@ }, "required": [ "type", - "function", + "actionPlan", "inputs", "writes" ], @@ -2590,32 +2616,6 @@ } ] }, - "FunctionCapabilitySource": { - "enum": [ - "evidence" - ], - "type": "string" - }, - "FunctionLimitsSource": { - "additionalProperties": false, - "properties": { - "maximumOperations": { - "default": 10000, - "format": "uint64", - "maximum": 100000, - "minimum": 1, - "type": "integer" - }, - "maximumOutputBytes": { - "default": 8192, - "format": "uint32", - "maximum": 2097152, - "minimum": 1, - "type": "integer" - } - }, - "type": "object" - }, "GeoJsonSource": { "additionalProperties": false, "properties": { @@ -4395,6 +4395,54 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { + "actionPlans": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "abi": { + "const": "registry.action-plan/v1", + "type": "string" + }, + "capabilities": { + "default": [], + "items": { + "$ref": "#/$defs/ActionPlanCapabilitySource" + }, + "type": "array", + "uniqueItems": true + }, + "entrypoint": { + "type": "string" + }, + "limits": { + "$ref": "#/$defs/ActionPlanLimitsSource", + "default": { + "maximumOperations": 10000, + "maximumOutputBytes": 8192 + } + }, + "runtime": { + "$ref": "#/$defs/ActionHandlerKindSource" + }, + "source": { + "type": "string" + } + }, + "required": [ + "runtime", + "source", + "entrypoint", + "abi" + ], + "type": "object" + }, + "default": {}, + "description": "Written as a mapping from each Action Plan id to the rest of the plan\n(CFG-ID-5) and held sorted by id.", + "propertyNames": { + "$ref": "#/$defs/LocalId" + }, + "type": "object" + }, "actions": { "additionalProperties": { "additionalProperties": false, @@ -4706,54 +4754,6 @@ }, "type": "object" }, - "functions": { - "additionalProperties": { - "additionalProperties": false, - "properties": { - "abi": { - "const": "registry.action-plan/v1", - "type": "string" - }, - "capabilities": { - "default": [], - "items": { - "$ref": "#/$defs/FunctionCapabilitySource" - }, - "type": "array", - "uniqueItems": true - }, - "entrypoint": { - "type": "string" - }, - "limits": { - "$ref": "#/$defs/FunctionLimitsSource", - "default": { - "maximumOperations": 10000, - "maximumOutputBytes": 8192 - } - }, - "runtime": { - "$ref": "#/$defs/ActionHandlerKindSource" - }, - "source": { - "type": "string" - } - }, - "required": [ - "runtime", - "source", - "entrypoint", - "abi" - ], - "type": "object" - }, - "default": {}, - "description": "Written as a mapping from each function id to the rest of the function\n(CFG-ID-5) and held sorted by id.", - "propertyNames": { - "$ref": "#/$defs/LocalId" - }, - "type": "object" - }, "id": { "$ref": "#/$defs/LocalId", "description": "Stable module identifier, referenced by the project's module lock." diff --git a/products/breg/generated/authoring/registry-project.schema.json b/products/breg/generated/authoring/registry-project.schema.json index 1357ab5c4f..ced4352f89 100644 --- a/products/breg/generated/authoring/registry-project.schema.json +++ b/products/breg/generated/authoring/registry-project.schema.json @@ -670,6 +670,32 @@ ], "type": "object" }, + "ActionPlanCapabilitySource": { + "enum": [ + "evidence" + ], + "type": "string" + }, + "ActionPlanLimitsSource": { + "additionalProperties": false, + "properties": { + "maximumOperations": { + "default": 10000, + "format": "uint64", + "maximum": 100000, + "minimum": 1, + "type": "integer" + }, + "maximumOutputBytes": { + "default": 8192, + "format": "uint32", + "maximum": 2097152, + "minimum": 1, + "type": "integer" + } + }, + "type": "object" + }, "ActionPlanSource": { "oneOf": [ { @@ -695,7 +721,7 @@ { "additionalProperties": false, "properties": { - "function": { + "actionPlan": { "type": "string" }, "inputs": { @@ -712,7 +738,7 @@ "type": "array" }, "type": { - "const": "function", + "const": "scripted", "type": "string" }, "writes": { @@ -724,7 +750,7 @@ }, "required": [ "type", - "function", + "actionPlan", "inputs", "writes" ], @@ -2982,32 +3008,6 @@ } ] }, - "FunctionCapabilitySource": { - "enum": [ - "evidence" - ], - "type": "string" - }, - "FunctionLimitsSource": { - "additionalProperties": false, - "properties": { - "maximumOperations": { - "default": 10000, - "format": "uint64", - "maximum": 100000, - "minimum": 1, - "type": "integer" - }, - "maximumOutputBytes": { - "default": 8192, - "format": "uint32", - "maximum": 2097152, - "minimum": 1, - "type": "integer" - } - }, - "type": "object" - }, "GeoJsonSource": { "additionalProperties": false, "properties": { @@ -6063,6 +6063,54 @@ }, "type": "object" }, + "actionPlans": { + "additionalProperties": { + "additionalProperties": false, + "properties": { + "abi": { + "const": "registry.action-plan/v1", + "type": "string" + }, + "capabilities": { + "default": [], + "items": { + "$ref": "#/$defs/ActionPlanCapabilitySource" + }, + "type": "array", + "uniqueItems": true + }, + "entrypoint": { + "type": "string" + }, + "limits": { + "$ref": "#/$defs/ActionPlanLimitsSource", + "default": { + "maximumOperations": 10000, + "maximumOutputBytes": 8192 + } + }, + "runtime": { + "$ref": "#/$defs/ActionHandlerKindSource" + }, + "source": { + "type": "string" + } + }, + "required": [ + "runtime", + "source", + "entrypoint", + "abi" + ], + "type": "object" + }, + "default": {}, + "description": "Written as a mapping from each Action Plan id to the rest of the plan\n(CFG-ID-5) and held sorted by id.", + "propertyNames": { + "$ref": "#/$defs/LocalId" + }, + "type": "object" + }, "actions": { "additionalProperties": { "additionalProperties": false, @@ -6281,54 +6329,6 @@ }, "type": "object" }, - "functions": { - "additionalProperties": { - "additionalProperties": false, - "properties": { - "abi": { - "const": "registry.action-plan/v1", - "type": "string" - }, - "capabilities": { - "default": [], - "items": { - "$ref": "#/$defs/FunctionCapabilitySource" - }, - "type": "array", - "uniqueItems": true - }, - "entrypoint": { - "type": "string" - }, - "limits": { - "$ref": "#/$defs/FunctionLimitsSource", - "default": { - "maximumOperations": 10000, - "maximumOutputBytes": 8192 - } - }, - "runtime": { - "$ref": "#/$defs/ActionHandlerKindSource" - }, - "source": { - "type": "string" - } - }, - "required": [ - "runtime", - "source", - "entrypoint", - "abi" - ], - "type": "object" - }, - "default": {}, - "description": "Written as a mapping from each function id to the rest of the function\n(CFG-ID-5) and held sorted by id.", - "propertyNames": { - "$ref": "#/$defs/LocalId" - }, - "type": "object" - }, "kind": { "const": "BRegProject", "type": "string" diff --git a/products/breg/generated/facility/generated/openapi.json b/products/breg/generated/facility/generated/openapi.json index 1ddc3afc5f..1d5bb9d848 100644 --- a/products/breg/generated/facility/generated/openapi.json +++ b/products/breg/generated/facility/generated/openapi.json @@ -1 +1 @@ -{"components":{"schemas":{"ImmediateActionPrecondition":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"},"ImmediateActionResultReference":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"Problem":{"additionalProperties":false,"allOf":[{"if":{"properties":{"code":{"enum":["attachment.required","attachment.verification-pending","attachment.verification-rejected"]}}},"then":{"allOf":[{"else":{"properties":{"status":{"const":422}}},"if":{"properties":{"code":{"const":"attachment.verification-pending"}}},"then":{"properties":{"status":{"const":409}}}}],"properties":{"fieldPath":{"pattern":"^/attachments/[a-z][a-z0-9_-]{0,63}$","type":"string"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","fieldPath"]},"required":["fieldPath"]}},{"if":{"properties":{"code":{"const":"write.outside-boundary"}}},"then":{"properties":{"code":{"const":"write.outside-boundary"},"detail":{"const":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."},"status":{"const":403},"title":{"const":"Forbidden"},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId"]}}},{"if":{"properties":{"code":{"not":{"const":"action.guard-failed"}}}},"then":{"not":{"required":["guardReason"]}}},{"if":{"properties":{"code":{"const":"action.refused"}}},"then":{"properties":{"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"const":"statistical-dataset.release-refused"}}},"then":{"properties":{"refusalCode":{"enum":["period-not-ended","before-first-period","provisional-after-final","already-withdrawn","negative-value"]},"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"not":{"enum":["action.refused","statistical-dataset.release-refused"]}}}},"then":{"not":{"required":["refusalCode"]}}},{"if":{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"}}},"then":{"properties":{"status":{"const":410}},"required":["reasonCode"]}},{"if":{"properties":{"code":{"not":{"const":"statistical-dataset.version-withdrawn"}}}},"then":{"not":{"required":["reasonCode"]}}},{"if":{"properties":{"code":{"const":"access-profile.ambiguous"}}},"then":{"additionalProperties":true,"properties":{"status":{"const":400}},"required":["accessProfiles"]}},{"if":{"properties":{"code":{"not":{"const":"access-profile.ambiguous"}}}},"then":{"not":{"required":["accessProfiles"]}}},{"if":{"properties":{"code":{"const":"action.evidence-failed"}}},"then":{"properties":{"detail":{"const":"The declared Evidence dependency could not be accepted."},"fieldPath":{"pattern":"^/evidence/[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":503}}}},{"if":{"properties":{"code":{"const":"action.handler-failed"}}},"then":{"properties":{"status":{"const":500}}}},{"if":{"anyOf":[{"required":["atField"]},{"required":["notAfterField"]}]},"then":{"properties":{"code":{"const":"request.invalid"},"status":{"const":400}},"required":["atField","notAfterField"]}},{"if":{"anyOf":[{"required":["recordType"]},{"required":["fieldId"]},{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"required":["fieldId"]},{"not":{"required":["fieldId"]},"oneOf":[{"not":{"required":["field"]},"properties":{"constraintKind":{"const":"compare"}},"required":["left","right"]},{"not":{"anyOf":[{"required":["left"]},{"required":["right"]}]},"properties":{"constraintKind":{"enum":["int-range","vocabulary"]}},"required":["field"]}],"required":["constraintId","constraintKind"]}],"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409}},"required":["recordType"]}}],"anyOf":[{"properties":{"code":{"const":"access-profile.ambiguous"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},{"properties":{"code":{"const":"action.evidence-failed"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/evidence-failed"}}},{"properties":{"code":{"const":"action.guard-failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}}},{"properties":{"code":{"const":"action.handler-failed"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},{"properties":{"code":{"const":"action.refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/refused"}}},{"properties":{"code":{"const":"attachment.content-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},{"properties":{"code":{"const":"attachment.digest-mismatch"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch"}}},{"properties":{"code":{"const":"attachment.limit-reached"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached"}}},{"properties":{"code":{"const":"attachment.required"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},{"properties":{"code":{"const":"attachment.slot-write-once"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once"}}},{"properties":{"code":{"const":"attachment.too-large"},"status":{"const":413},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},{"properties":{"code":{"const":"attachment.verification-pending"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}}},{"properties":{"code":{"const":"attachment.verification-rejected"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},{"properties":{"code":{"const":"authentication.refused"},"status":{"const":401},"type":{"const":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},{"properties":{"code":{"const":"idempotency.expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},{"properties":{"code":{"const":"idempotency.key-reused"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}}},{"properties":{"code":{"const":"ingestion.chunk-mismatch"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch"}}},{"properties":{"code":{"const":"ingestion.profile-mismatch"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch"}}},{"properties":{"code":{"const":"ingestion.receipt-erased"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased"}}},{"properties":{"code":{"const":"ingestion.run-blocked"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked"}}},{"properties":{"code":{"const":"ingestion.run-not-open"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open"}}},{"properties":{"code":{"const":"lookup.unresolved"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/lookup/unresolved"}}},{"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},{"properties":{"code":{"const":"precondition.failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},{"properties":{"code":{"const":"precondition.required"},"status":{"const":428},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},{"properties":{"code":{"const":"profile.not-authorized"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},{"properties":{"code":{"const":"proposal.rejected"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},{"properties":{"code":{"const":"proposal.review-result-mismatch"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},{"properties":{"code":{"const":"proposal.submission-expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},{"properties":{"code":{"const":"query.cursor-invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}}},{"properties":{"code":{"const":"query.filter-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/filter-required"}}},{"properties":{"code":{"const":"query.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},{"properties":{"code":{"const":"request.access-reason-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/access-reason-required"}}},{"properties":{"code":{"const":"request.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},{"properties":{"code":{"const":"request.timeout"},"status":{"const":504},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},{"properties":{"code":{"const":"resource.not-found"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},{"properties":{"code":{"const":"runtime.field-encryption.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}}},{"properties":{"code":{"const":"service.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},{"properties":{"code":{"const":"source.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},{"properties":{"code":{"const":"statistical-dataset.domain-violation"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation"}}},{"properties":{"code":{"const":"statistical-dataset.release-refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused"}}},{"properties":{"code":{"const":"statistical-dataset.version-conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict"}}},{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn"}}},{"properties":{"code":{"const":"unsupported.media-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},{"properties":{"code":{"const":"write.outside-boundary"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}}],"properties":{"accessProfiles":{"items":{"maxLength":128,"minLength":1,"type":"string"},"minItems":2,"type":"array","uniqueItems":true},"atField":{"maxLength":128,"minLength":1,"type":"string"},"code":{"enum":["access-profile.ambiguous","action.evidence-failed","action.guard-failed","action.handler-failed","action.refused","attachment.content-type","attachment.digest-mismatch","attachment.limit-reached","attachment.required","attachment.slot-write-once","attachment.too-large","attachment.verification-pending","attachment.verification-rejected","authentication.refused","idempotency.expired","idempotency.key-reused","ingestion.chunk-mismatch","ingestion.profile-mismatch","ingestion.receipt-erased","ingestion.run-blocked","ingestion.run-not-open","lookup.unresolved","mutation.conflict","precondition.failed","precondition.required","profile.not-authorized","proposal.rejected","proposal.review-result-mismatch","proposal.submission-expired","query.cursor-invalid","query.filter-required","query.invalid","request.access-reason-required","request.invalid","request.timeout","resource.not-found","runtime.field-encryption.unavailable","service.unavailable","source.unavailable","statistical-dataset.domain-violation","statistical-dataset.release-refused","statistical-dataset.version-conflict","statistical-dataset.version-withdrawn","unsupported.media-type","write.outside-boundary"],"type":"string"},"constraintId":{"maxLength":128,"minLength":1,"type":"string"},"constraintKind":{"enum":["compare","int-range","vocabulary"],"type":"string"},"detail":{"maxLength":256,"type":"string"},"field":{"maxLength":128,"minLength":1,"type":"string"},"fieldId":{"maxLength":128,"minLength":1,"type":"string"},"fieldPath":{"maxLength":256,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"left":{"maxLength":128,"minLength":1,"type":"string"},"notAfterField":{"maxLength":128,"minLength":1,"type":"string"},"reasonCode":{"enum":["computation-error","source-data-error","disclosure-risk"],"type":"string"},"recordType":{"maxLength":128,"minLength":1,"type":"string"},"refusalCode":{"maxLength":128,"minLength":1,"type":"string"},"requiredFilters":{"items":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":32,"minItems":1,"type":"array","uniqueItems":true},"maxItems":8,"minItems":1,"type":"array"},"right":{"maxLength":128,"minLength":1,"type":"string"},"status":{"maximum":599,"minimum":400,"type":"integer"},"title":{"maxLength":128,"type":"string"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","type":"string"},"type":{"format":"uri","maxLength":256,"type":"string"}},"required":["type","title","status","detail","code","traceId"],"type":"object"},"ReviewCompletion":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":"string"},"eventId":{"format":"uuid","type":"string"},"requestId":{"format":"uuid","type":"string"},"resultId":{"format":"uuid","type":"string"},"type":{"const":"review.completed"}},"required":["type","eventId","requestId","resultId","completedAt"],"type":"object"},"action-correct-address-invoke-input":{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},"action-correct-address-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"action-deactivate-facility-invoke-input":{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]},"action-deactivate-facility-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"action-register-facility-availability-input":{"$id":"urn:breg:action:register-facility:availability-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"oneOf":[{"properties":{"input":{"properties":{"operatorId":{"format":"uuid","type":"string"}},"required":["operatorId"]},"targetInput":{"const":"operatorId"}}}],"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"operatorId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"},"targetInput":{"enum":["operatorId"],"type":"string"}},"required":["targetInput","input"],"type":"object","x-registry-action":"register-facility"},"action-register-facility-availability-response":{"$id":"urn:breg:action:register-facility:availability-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"availability":{"oneOf":[{"additionalProperties":false,"properties":{"available":{"const":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"}},"required":["available","observedRevision"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"const":false},"guardLabel":{"maxLength":256,"minLength":1,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"guard-not-satisfied"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"missingInputs":{"items":{"enum":["facilityCode","name","addressLine","city","postalCode","operatorId","jurisdiction"],"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"input-required"},"recovery":{"const":"correct-input"}},"required":["available","observedRevision","reason","recovery","missingInputs"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"observedRevision":{"type":"null"},"reason":{"const":"not-disclosed"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"}]}},"required":["availability"],"type":"object","x-registry-action":"register-facility"},"action-register-facility-invoke-input":{"$id":"urn:breg:action:register-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"operatorId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":["facilityCode","name","addressLine","city","postalCode","operatorId","jurisdiction"],"type":"object"},"preconditions":{"additionalProperties":false,"properties":{},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"register-facility","x-registry-requiredConditionKeys":[]},"action-register-facility-invoke-response":{"$id":"urn:breg:action:register-facility:invoke-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"action":{"const":"register-facility"},"applicationId":{"format":"uuid","type":"string"},"results":{"additionalProperties":false,"properties":{"assignment":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"const":"facility-assignment"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"facility":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"const":"facility"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"}},"required":["assignment","facility"],"type":"object"}},"required":["action","applicationId","results"],"type":"object"},"directory-entry":{"$id":"urn:breg:record-type:directory-entry","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"directory-entry-create-input":{"$id":"urn:breg:record-type:directory-entry:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"facility":{"$id":"urn:breg:record-type:facility","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"required":["facilityCode","name","addressLine","city","postalCode","status","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable","x-registry-mutationPolicy":{"patch":"proposal-required"}},"facility-assignment":{"$id":"urn:breg:record-type:facility-assignment","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"required":["facility","operator","jurisdiction"],"type":"object","x-registry-mutationMode":"create-only"},"operator":{"$id":"urn:breg:record-type:operator","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"required":["operatorCode","status","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"operator-create-input":{"$id":"urn:breg:record-type:operator:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"required":["operatorCode","status","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"reviewCompletion":{"description":"The review authority's configured completion key verifies the Standard Webhooks signature.","in":"header","name":"webhook-signature","type":"apiKey"}}},"info":{"title":"facility-registry","version":"0.1.0"},"openapi":"3.1.0","paths":{"/v1/actions/correct-address/proposals":{"post":{"operationId":"actions.correct-address.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-address-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-address-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-correction-author"],"x-registry-action":{"access":{"accessProfiles":["facility-correction-author"]},"apiName":"correctAddress","attachments":[{"contentTypes":["application/pdf"],"id":"supporting-document","maximumBytes":1048576,"required":false}],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{"description":"Submit a frozen address correction for independent review and later application.","label":"Correct facility address"},"execution":{"application":"automatic","mode":"proposal","review":"required"},"id":"correct-address","inputMode":"handler","inputs":[{"apiName":"facilityId","classification":"internal","fieldType":{"onDelete":"restrict","target":"facility","type":"reference"},"id":"facility","label":"facilityId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"addressLine","classification":"internal","fieldType":{"maximumLength":240,"minimumLength":1,"type":"string"},"id":"address-line","label":"addressLine","nullable":false,"required":true,"schema":{"maxLength":240,"minLength":1,"type":"string"}},{"apiName":"city","classification":"internal","fieldType":{"maximumLength":120,"minimumLength":1,"type":"string"},"id":"city","label":"city","nullable":false,"required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"apiName":"postalCode","classification":"internal","fieldType":{"maximumLength":24,"minimumLength":1,"type":"string"},"id":"postal-code","label":"postalCode","nullable":false,"required":true,"schema":{"maxLength":24,"minLength":1,"type":"string"}}],"maximumInputStringBytes":16384,"referenceInputs":[{"apiName":"facilityId","input":"facility","targetRecordType":"facility"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility-address","operation":"patch","recordType":"facility"}],"revision":"sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a","route":"/v1/actions/correct-address/proposals","routes":{"availability":null,"start":{"inputSchema":"action-correct-address-invoke-input","method":"POST","operationId":"actions.correct-address.start","path":"/v1/actions/correct-address/proposals","requiresIdempotencyKey":true,"responseSchema":"action-correct-address-invoke-response"}}},"x-registry-defaultAccessProfile":"facility-correction-author","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/actions/deactivate-facility/proposals":{"post":{"operationId":"actions.deactivate-facility.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-deactivate-facility-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-deactivate-facility-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-correction-author"],"x-registry-action":{"access":{"accessProfiles":["facility-correction-author"]},"apiName":"deactivateFacility","attachments":[],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{"description":"Submit a durable deactivation that requires no external review.","label":"Deactivate facility"},"execution":{"application":"manual","mode":"proposal","review":"none"},"id":"deactivate-facility","inputMode":"fixed","inputs":[{"apiName":"facilityId","classification":"internal","fieldType":{"onDelete":"restrict","target":"facility","type":"reference"},"id":"facility","label":"facilityId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"facilityId","input":"facility","targetRecordType":"facility"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility-status","operation":"patch","recordType":"facility"}],"revision":"sha256:9237300ee419a0014c3b123cc7ac90eb9623cb4c45bba4a65c03936083299f1d","route":"/v1/actions/deactivate-facility/proposals","routes":{"availability":null,"start":{"inputSchema":"action-deactivate-facility-invoke-input","method":"POST","operationId":"actions.deactivate-facility.start","path":"/v1/actions/deactivate-facility/proposals","requiresIdempotencyKey":true,"responseSchema":"action-deactivate-facility-invoke-response"}}},"x-registry-defaultAccessProfile":"facility-correction-author","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/actions/register-facility":{"post":{"operationId":"actions.register-facility.invoke","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-invoke-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-invoke-response"}}},"description":"Immediate action committed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-registrar"],"x-registry-action":{"access":{"accessProfiles":["facility-registrar"]},"apiName":"registerFacility","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":null,"display":{"description":"Create a facility and its initial operator assignment atomically.","label":"Register facility"},"execution":{"mode":"immediate"},"id":"register-facility","inputMode":"fixed","inputs":[{"apiName":"facilityCode","classification":"internal","fieldType":{"maximumLength":64,"minimumLength":1,"type":"string"},"id":"facility-code","label":"facilityCode","nullable":false,"required":true,"schema":{"maxLength":64,"minLength":1,"type":"string"}},{"apiName":"name","classification":"internal","fieldType":{"maximumLength":200,"minimumLength":1,"type":"string"},"id":"name","label":"name","nullable":false,"required":true,"schema":{"maxLength":200,"minLength":1,"type":"string"}},{"apiName":"addressLine","classification":"internal","fieldType":{"maximumLength":240,"minimumLength":1,"type":"string"},"id":"address-line","label":"addressLine","nullable":false,"required":true,"schema":{"maxLength":240,"minLength":1,"type":"string"}},{"apiName":"city","classification":"internal","fieldType":{"maximumLength":120,"minimumLength":1,"type":"string"},"id":"city","label":"city","nullable":false,"required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"apiName":"postalCode","classification":"internal","fieldType":{"maximumLength":24,"minimumLength":1,"type":"string"},"id":"postal-code","label":"postalCode","nullable":false,"required":true,"schema":{"maxLength":24,"minLength":1,"type":"string"}},{"apiName":"operatorId","classification":"internal","fieldType":{"onDelete":"restrict","target":"operator","type":"reference"},"id":"operator","label":"operatorId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"jurisdiction","classification":"internal","fieldType":{"maximumLength":40,"minimumLength":1,"type":"string"},"id":"jurisdiction","label":"jurisdiction","nullable":false,"required":true,"schema":{"maxLength":40,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"operatorId","input":"operator","targetRecordType":"operator"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility","operation":"create","recordType":"facility"},{"effect":"assignment","operation":"create","recordType":"facility-assignment"}],"revision":"sha256:5b5de70fa9b8f831387fc08e520f16fccd71863f18f3efe8b7999728927910f6","route":"/v1/actions/register-facility","routes":{"availability":{"inputSchema":"action-register-facility-availability-input","method":"POST","operationId":"actions.register-facility.availability","path":"/v1/actions/register-facility/availability","requiresIdempotencyKey":false,"responseSchema":"action-register-facility-availability-response"},"invoke":{"inputSchema":"action-register-facility-invoke-input","method":"POST","operationId":"actions.register-facility.invoke","path":"/v1/actions/register-facility","requiresIdempotencyKey":true,"responseSchema":"action-register-facility-invoke-response"},"targetConditions":null}},"x-registry-defaultAccessProfile":"facility-registrar","x-registry-operation":"invoke","x-registry-routeKind":"invoke"}},"/v1/actions/register-facility/availability":{"post":{"operationId":"actions.register-facility.availability","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-availability-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-availability-response"}}},"description":"Action availability returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-registrar"],"x-registry-action":{"access":{"accessProfiles":["facility-registrar"]},"apiName":"registerFacility","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":null,"display":{"description":"Create a facility and its initial operator assignment atomically.","label":"Register facility"},"execution":{"mode":"immediate"},"id":"register-facility","inputMode":"fixed","inputs":[{"apiName":"facilityCode","classification":"internal","fieldType":{"maximumLength":64,"minimumLength":1,"type":"string"},"id":"facility-code","label":"facilityCode","nullable":false,"required":true,"schema":{"maxLength":64,"minLength":1,"type":"string"}},{"apiName":"name","classification":"internal","fieldType":{"maximumLength":200,"minimumLength":1,"type":"string"},"id":"name","label":"name","nullable":false,"required":true,"schema":{"maxLength":200,"minLength":1,"type":"string"}},{"apiName":"addressLine","classification":"internal","fieldType":{"maximumLength":240,"minimumLength":1,"type":"string"},"id":"address-line","label":"addressLine","nullable":false,"required":true,"schema":{"maxLength":240,"minLength":1,"type":"string"}},{"apiName":"city","classification":"internal","fieldType":{"maximumLength":120,"minimumLength":1,"type":"string"},"id":"city","label":"city","nullable":false,"required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"apiName":"postalCode","classification":"internal","fieldType":{"maximumLength":24,"minimumLength":1,"type":"string"},"id":"postal-code","label":"postalCode","nullable":false,"required":true,"schema":{"maxLength":24,"minLength":1,"type":"string"}},{"apiName":"operatorId","classification":"internal","fieldType":{"onDelete":"restrict","target":"operator","type":"reference"},"id":"operator","label":"operatorId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"jurisdiction","classification":"internal","fieldType":{"maximumLength":40,"minimumLength":1,"type":"string"},"id":"jurisdiction","label":"jurisdiction","nullable":false,"required":true,"schema":{"maxLength":40,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"operatorId","input":"operator","targetRecordType":"operator"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility","operation":"create","recordType":"facility"},{"effect":"assignment","operation":"create","recordType":"facility-assignment"}],"revision":"sha256:5b5de70fa9b8f831387fc08e520f16fccd71863f18f3efe8b7999728927910f6","route":"/v1/actions/register-facility","routes":{"availability":{"inputSchema":"action-register-facility-availability-input","method":"POST","operationId":"actions.register-facility.availability","path":"/v1/actions/register-facility/availability","requiresIdempotencyKey":false,"responseSchema":"action-register-facility-availability-response"},"invoke":{"inputSchema":"action-register-facility-invoke-input","method":"POST","operationId":"actions.register-facility.invoke","path":"/v1/actions/register-facility","requiresIdempotencyKey":true,"responseSchema":"action-register-facility-invoke-response"},"targetConditions":null}},"x-registry-defaultAccessProfile":"facility-registrar","x-registry-operation":"invoke","x-registry-routeKind":"availability"}},"/v1/proposals":{"get":{"operationId":"proposals.list","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"query","name":"action","schema":{"type":"string"}},{"in":"query","name":"owner","schema":{"const":"caller"}},{"in":"query","name":"target","schema":{"format":"uuid","type":"string"}},{"in":"query","name":"state","schema":{"enum":["draft","submitted","applied","cancelled","rejected"]}},{"in":"query","name":"turn","schema":{"enum":["party","official","nobody"]}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The most items a page holds. A page may hold fewer than `limit` items, so keep paging while `nextCursor` is present.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"pendingManualApplication","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"maxItems":100,"type":"array"},"nextCursor":{"type":"string"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","query.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier","facility-correction-author"]}},"/v1/proposals/review-context":{"get":{"description":"One bounded transport exchange under each item's current get-review-context authority. Ordered visible or concealed results; operational failures refuse the whole batch. Maximum response is 8 MiB.","operationId":"proposals.get-review-context-batch","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["proposal-reviewer"],"maxLength":128,"type":"string"}},{"description":"One to 100 distinct canonical Proposal UUIDs, in response order.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"format":"uuid","type":"string"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":true},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"context":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"authority":{"type":"string"},"context":{"additionalProperties":false,"properties":{"contract":{"additionalProperties":false,"properties":{"id":{"maxLength":2048,"pattern":"^urn:registry:breg:review-context:","type":"string"},"revision":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"schemaDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["id","revision","schemaDigest"],"type":"object"},"fields":{"type":"object"},"reference":{"type":"string"}},"required":["reference","contract","fields"],"type":"object"},"effectDigest":{"type":"string"},"id":{"format":"uuid","type":"string"},"policy":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version","digest"],"type":"object"},"result":{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},"reviewable":{"type":"boolean"},"revision":{"minimum":1,"type":"integer"},"subject":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"format":"uuid","type":"string"},"source":{"type":"string"},"subjectType":{"const":"proposal"},"version":{"type":"string"}},"required":["source","subjectType","id","version","digest"],"type":"object"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["id","actionId","actionRevision","submissionVersion","revision","effectDigest","subject","context","reviewable"],"type":"object"},"id":{"format":"uuid","type":"string"},"status":{"const":"visible"}},"required":["id","status","context"],"type":"object"},{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string"},"status":{"const":"concealed"}},"required":["id","status"],"type":"object"}]},"maxItems":100,"minItems":1,"type":"array"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["proposal-reviewer"]}},"/v1/proposals/{proposal_id}":{"get":{"operationId":"proposals.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier","facility-correction-author"]}},"/v1/proposals/{proposal_id}/apply":{"post":{"operationId":"proposals.apply","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"reason":{"description":"Optional application explanation, preserved unchanged. At most 4096 Unicode characters; NUL is refused.","maxLength":4096,"pattern":"^[^\\u0000]*$","type":"string"},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["submissionVersion","effectDigest"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}},"proposal.review-result-mismatch":{"value":{"code":"proposal.review-result-mismatch","detail":"The current review result does not match the retained approval.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.guard-failed","precondition.failed","proposal.review-result-mismatch"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier"]}},"/v1/proposals/{proposal_id}/attachments/supporting-document":{"delete":{"operationId":"proposals.attachments.supporting-document.delete","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]},"get":{"operationId":"proposals.attachments.supporting-document.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author","proposal-reviewer"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"submissionVersion","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"reviewContextField","required":false,"schema":{"pattern":"^[a-z][a-zA-Z0-9]{0,63}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"effectDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"contextSchemaDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"contentMediaType":"application/octet-stream","maxLength":16777216,"type":"string"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author","proposal-reviewer"]},"patch":{"operationId":"proposals.attachments.supporting-document.patch","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/pdf":{"schema":{"format":"binary","maxLength":1048576,"type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"413":{"content":{"application/problem+json":{"examples":{"attachment.too-large":{"value":{"code":"attachment.too-large","detail":"The file is larger than the attachment slot accepts.","status":413,"title":"Content Too Large","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.too-large"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"attachment.content-type":{"value":{"code":"attachment.content-type","detail":"The file media type is not one the attachment slot accepts.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.content-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/cancel":{"post":{"operationId":"proposals.cancel","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/edit":{"post":{"operationId":"proposals.edit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/rebase":{"post":{"operationId":"proposals.rebase","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/retry":{"post":{"operationId":"proposals.retry","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/review-context":{"get":{"operationId":"proposals.get-review-context","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["proposal-reviewer"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Request live applicant answers for a displayed human review context. Admission and preflight reads omit this option and receive no intrinsic asks.","in":"query","name":"include","required":false,"schema":{"const":"answers"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"authority":{"type":"string"},"context":{"additionalProperties":false,"properties":{"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"answeredAt":{"format":"date-time","type":"string"},"documents":{"items":{"additionalProperties":false,"properties":{"byteSize":{"maximum":16777216,"minimum":1,"type":"integer"},"contentType":{"maxLength":255,"type":"string"},"download":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"method":{"const":"GET"},"operation":{"const":"get-review-context"},"path":{"type":"string"}},"required":["method","operation","accessProfile","path"],"type":"object"},"id":{"format":"uuid","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["id","sha256","contentType","byteSize","verificationStatus"],"type":"object"},"maxItems":32,"type":"array"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["documents","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state"],"type":"object"},"maxItems":50,"type":"array"},"contract":{"additionalProperties":false,"properties":{"id":{"maxLength":2048,"pattern":"^urn:registry:breg:review-context:","type":"string"},"revision":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"schemaDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["id","revision","schemaDigest"],"type":"object"},"fields":{"type":"object"},"reference":{"type":"string"}},"required":["reference","contract","fields"],"type":"object"},"effectDigest":{"type":"string"},"id":{"format":"uuid","type":"string"},"policy":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version","digest"],"type":"object"},"result":{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},"reviewable":{"type":"boolean"},"revision":{"minimum":1,"type":"integer"},"subject":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"format":"uuid","type":"string"},"source":{"type":"string"},"subjectType":{"const":"proposal"},"version":{"type":"string"}},"required":["source","subjectType","id","version","digest"],"type":"object"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["id","actionId","actionRevision","submissionVersion","revision","effectDigest","subject","context","reviewable"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["proposal-reviewer"]}},"/v1/proposals/{proposal_id}/review-status":{"get":{"operationId":"proposals.get-review-status","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["casework-review-status","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Request the institution's optional applicant-visible progress code. The code is returned only when the selected caller-owned grant enables readableReviewProgress.","in":"query","name":"include","required":false,"schema":{"const":"progress"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"authority":{"type":"string"},"context":{"additionalProperties":false,"properties":{"contract":{"additionalProperties":false,"properties":{"id":{"maxLength":2048,"pattern":"^urn:registry:breg:review-context:","type":"string"},"revision":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"schemaDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["id","revision","schemaDigest"],"type":"object"},"reference":{"type":"string"}},"required":["reference"],"type":"object"},"effectDigest":{"type":"string"},"handoff":{"additionalProperties":false,"properties":{"reason":{"enum":["remote-refused","producer-identity-mismatch","review-acceptance-changed","review-policy-changed","submission-recovery-expired","operator-closed","unspecified"]},"state":{"enum":["pending","accepted","failed","withdrawn"]}},"required":["state"],"type":"object"},"id":{"format":"uuid","type":"string"},"policy":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version","digest"],"type":"object"},"progressCode":{"description":"Institution-defined applicant-visible progress. Absent when the institution conceals the current stage, progress was not requested or granted, the provider is unavailable, or the accepted review round is no longer live.","maxLength":64,"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"requestId":{"format":"uuid","type":"string"},"result":{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},"reviewable":{"type":"boolean"},"revision":{"minimum":1,"type":"integer"},"subject":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"format":"uuid","type":"string"},"source":{"type":"string"},"subjectType":{"const":"proposal"},"version":{"type":"string"}},"required":["source","subjectType","id","version","digest"],"type":"object"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["id","actionId","actionRevision","submissionVersion","revision","effectDigest","subject","context","reviewable"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["casework-review-status","facility-correction-author"]}},"/v1/proposals/{proposal_id}/revise":{"post":{"operationId":"proposals.revise","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]},{"additionalProperties":false,"type":"object"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/submissions/{submission_version}":{"get":{"operationId":"proposals.get-submission","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"submission_version","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"application":{"anyOf":[{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"state":{"const":"applied"}},"required":["state","applicationId"],"type":"object"},{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},{"type":"null"}]},"current":{"type":"boolean"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"review":{"anyOf":[{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},{"type":"null"}]},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["id","actionId","submissionVersion","current","effectDigest","review","application"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"proposal.submission-expired":{"value":{"code":"proposal.submission-expired","detail":"The review result and application receipt of the submission are no longer retained.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["proposal.submission-expired"]}},"type":"object"}]}}},"description":"The submission's review result and application receipt are no longer retained","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier","facility-correction-author"]}},"/v1/proposals/{proposal_id}/submit":{"post":{"operationId":"proposals.submit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"attachment.verification-pending":{"value":{"code":"attachment.verification-pending","detail":"The attachment is awaiting verification. Refresh the Proposal before submitting.","fieldPath":"/attachments/supporting-document","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}},"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.verification-pending","idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.guard-failed","precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"422":{"content":{"application/problem+json":{"examples":{"action.refused/invalid-postal-code":{"value":{"code":"action.refused","detail":"Postal code is invalid","refusalCode":"invalid-postal-code","status":422,"title":"Unprocessable Entity","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/refused"}},"attachment.verification-rejected":{"value":{"code":"attachment.verification-rejected","detail":"The attachment was rejected by verification. Replace or remove the file before submitting.","fieldPath":"/attachments/supporting-document","status":422,"title":"Unprocessable Entity","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.refused","attachment.verification-rejected"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"500":{"content":{"application/problem+json":{"examples":{"action.handler-failed":{"value":{"code":"action.handler-failed","detail":"The action handler could not produce an accepted result.","status":500,"title":"Internal Server Error","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.handler-failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/records/directory-entries":{"get":{"operationId":"records.directory-entry.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"directory-editor":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"directory-editor","requiredFilters":[],"selectableProperties":["email","jurisdiction","name"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.directory-entry.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/directory-entry-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"create","x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/directory-entries/{record_id}":{"get":{"operationId":"records.directory-entry.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"get","x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordSingleV1"},"patch":{"operationId":"records.directory-entry.patch","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Strong Registry ETag for the currently visible record representation.","in":"header","name":"If-Match","required":true,"schema":{"maxLength":256,"minLength":6,"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json-patch+json":{"schema":{"items":{"additionalProperties":false,"else":{"required":["value"]},"if":{"properties":{"op":{"const":"remove"}}},"properties":{"op":{"enum":["add","replace","remove","test"],"type":"string"},"path":{"type":"string"},"value":true},"required":["op","path"],"then":{"not":{"required":["value"]}},"type":"object"},"maxItems":128,"minItems":1,"type":"array"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record patched","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"patch","x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/facilities":{"get":{"operationId":"records.facility.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["addressLine","city","facilityCode","jurisdiction","name","postalCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"facility","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility","x-registry-responseShape":"RegistryRecordCollectionV1"}},"/v1/records/facilities/{record_id}":{"get":{"operationId":"records.facility.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader","proposal-reviewer"],"x-registry-operation":"get","x-registry-recordType":"facility","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/facilities/{record_id}/operators":{"get":{"operationId":"records.facility.path.operators","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["jurisdiction","operatorCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"facility","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordCollectionV1"}},"/v1/records/facility-assignments":{"get":{"operationId":"records.facility-assignment.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[{"operators":["equals","in","is-null","is-not-null"],"property":"facility"},{"operators":["equals","in","is-null","is-not-null"],"property":"operator"}],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["facility","jurisdiction","operator"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"facility-assignment","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility-assignment","x-registry-responseShape":"RegistryRecordCollectionV1"}},"/v1/records/facility-assignments/{record_id}":{"get":{"operationId":"records.facility-assignment.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"get","x-registry-recordType":"facility-assignment","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility-assignment","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/operators":{"get":{"operationId":"records.operator.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader","operator-editor"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["jurisdiction","operatorCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null},"operator-editor":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"operator-editor","requiredFilters":[],"selectableProperties":["jurisdiction","operatorCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.operator.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/operator-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["operator-editor"],"x-registry-operation":"create","x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/operators/{record_id}":{"get":{"operationId":"records.operator.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader","operator-editor"],"x-registry-operation":"get","x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordSingleV1"},"patch":{"operationId":"records.operator.patch","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Strong Registry ETag for the currently visible record representation.","in":"header","name":"If-Match","required":true,"schema":{"maxLength":256,"minLength":6,"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json-patch+json":{"schema":{"items":{"additionalProperties":false,"else":{"required":["value"]},"if":{"properties":{"op":{"const":"remove"}}},"properties":{"op":{"enum":["add","replace","remove","test"],"type":"string"},"path":{"type":"string"},"value":true},"required":["op","path"],"then":{"not":{"required":["value"]}},"type":"object"},"maxItems":128,"minItems":1,"type":"array"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record patched","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["operator-editor"],"x-registry-operation":"patch","x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/review-completions":{"post":{"description":"Available when a review authority configures a completion block.","operationId":"receiveReviewCompletion","parameters":[{"in":"header","name":"Registry-Recipient-Binding","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}},{"description":"Must equal eventId.","in":"header","name":"webhook-id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"webhook-timestamp","required":true,"schema":{"pattern":"^(0|[1-9][0-9]{0,19})$","type":"string"}},{"in":"header","name":"webhook-signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCompletion"}}},"required":true},"responses":{"204":{"description":"Completion accepted or already recorded."},"400":{"description":"The completion is invalid or eventId differs from webhook-id."},"401":{"description":"The completion authority could not be authenticated.","headers":{"WWW-Authenticate":{"schema":{"const":"Registry-Signature scheme=\"standard-webhooks\", version=\"v1\"","type":"string"}}}},"413":{"description":"The completion body exceeds 2048 bytes. The response body is empty."},"415":{"description":"The request is not application/json."},"503":{"description":"The completion could not be durably recorded."}},"security":[{"reviewCompletion":[]}],"summary":"Receive a Casework review completion"}}}} \ No newline at end of file +{"components":{"schemas":{"ImmediateActionPrecondition":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"},"ImmediateActionResultReference":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"Problem":{"additionalProperties":false,"allOf":[{"if":{"properties":{"code":{"enum":["attachment.required","attachment.verification-pending","attachment.verification-rejected"]}}},"then":{"allOf":[{"else":{"properties":{"status":{"const":422}}},"if":{"properties":{"code":{"const":"attachment.verification-pending"}}},"then":{"properties":{"status":{"const":409}}}}],"properties":{"fieldPath":{"pattern":"^/attachments/[a-z][a-z0-9_-]{0,63}$","type":"string"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","fieldPath"]},"required":["fieldPath"]}},{"if":{"properties":{"code":{"const":"write.outside-boundary"}}},"then":{"properties":{"code":{"const":"write.outside-boundary"},"detail":{"const":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."},"status":{"const":403},"title":{"const":"Forbidden"},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","failedCheck"]}}},{"if":{"properties":{"code":{"not":{"const":"action.guard-failed"}}}},"then":{"not":{"required":["guardReason"]}}},{"if":{"properties":{"code":{"const":"action.refused"}}},"then":{"properties":{"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"const":"statistical-dataset.release-refused"}}},"then":{"properties":{"refusalCode":{"enum":["period-not-ended","before-first-period","provisional-after-final","already-withdrawn","negative-value"]},"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"not":{"enum":["action.refused","statistical-dataset.release-refused"]}}}},"then":{"not":{"required":["refusalCode"]}}},{"if":{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"}}},"then":{"properties":{"status":{"const":410}},"required":["reasonCode"]}},{"if":{"properties":{"code":{"not":{"const":"statistical-dataset.version-withdrawn"}}}},"then":{"not":{"required":["reasonCode"]}}},{"if":{"properties":{"code":{"const":"access-profile.ambiguous"}}},"then":{"additionalProperties":true,"not":{"required":["failedCheck"]},"properties":{"status":{"const":400}},"required":["accessProfiles"]}},{"if":{"properties":{"code":{"not":{"const":"access-profile.ambiguous"}}}},"then":{"not":{"required":["accessProfiles"]}}},{"if":{"properties":{"code":{"const":"action.evidence-failed"}}},"then":{"properties":{"detail":{"const":"The declared Evidence dependency could not be accepted."},"fieldPath":{"pattern":"^/evidence/[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":503}}}},{"if":{"properties":{"code":{"const":"action.handler-failed"}}},"then":{"properties":{"status":{"const":500}}}},{"if":{"anyOf":[{"required":["atField"]},{"required":["notAfterField"]}]},"then":{"properties":{"code":{"const":"request.invalid"},"status":{"const":400}},"required":["atField","notAfterField"]}},{"if":{"anyOf":[{"required":["recordType"]},{"required":["fieldId"]},{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"required":["fieldId"]},{"not":{"required":["fieldId"]},"oneOf":[{"not":{"required":["field"]},"properties":{"constraintKind":{"const":"compare"}},"required":["left","right"]},{"not":{"anyOf":[{"required":["left"]},{"required":["right"]}]},"properties":{"constraintKind":{"enum":["int-range","vocabulary"]}},"required":["field"]}],"required":["constraintId","constraintKind"]}],"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409}},"required":["recordType"]}}],"anyOf":[{"properties":{"code":{"const":"access-profile.ambiguous"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},{"properties":{"code":{"const":"action.evidence-failed"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/evidence-failed"}}},{"properties":{"code":{"const":"action.guard-failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}}},{"properties":{"code":{"const":"action.handler-failed"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},{"properties":{"code":{"const":"action.refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/refused"}}},{"properties":{"code":{"const":"attachment.content-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},{"properties":{"code":{"const":"attachment.digest-mismatch"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch"}}},{"properties":{"code":{"const":"attachment.limit-reached"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached"}}},{"properties":{"code":{"const":"attachment.required"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},{"properties":{"code":{"const":"attachment.slot-write-once"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once"}}},{"properties":{"code":{"const":"attachment.too-large"},"status":{"const":413},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},{"properties":{"code":{"const":"attachment.verification-pending"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}}},{"properties":{"code":{"const":"attachment.verification-rejected"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},{"properties":{"code":{"const":"authentication.refused"},"status":{"const":401},"type":{"const":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},{"properties":{"code":{"const":"idempotency.expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},{"properties":{"code":{"const":"idempotency.key-reused"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}}},{"properties":{"code":{"const":"ingestion.chunk-mismatch"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch"}}},{"properties":{"code":{"const":"ingestion.profile-mismatch"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch"}}},{"properties":{"code":{"const":"ingestion.receipt-erased"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased"}}},{"properties":{"code":{"const":"ingestion.run-blocked"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked"}}},{"properties":{"code":{"const":"ingestion.run-not-open"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open"}}},{"properties":{"code":{"const":"lookup.unresolved"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/lookup/unresolved"}}},{"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},{"properties":{"code":{"const":"precondition.failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},{"properties":{"code":{"const":"precondition.required"},"status":{"const":428},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},{"properties":{"code":{"const":"profile.not-authorized"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},{"properties":{"code":{"const":"proposal.rejected"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},{"properties":{"code":{"const":"proposal.review-result-mismatch"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},{"properties":{"code":{"const":"proposal.submission-expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},{"properties":{"code":{"const":"query.cursor-invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}}},{"properties":{"code":{"const":"query.filter-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/filter-required"}}},{"properties":{"code":{"const":"query.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},{"properties":{"code":{"const":"request.access-reason-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/access-reason-required"}}},{"properties":{"code":{"const":"request.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},{"properties":{"code":{"const":"request.timeout"},"status":{"const":504},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},{"properties":{"code":{"const":"resource.not-found"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},{"properties":{"code":{"const":"runtime.field-encryption.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}}},{"properties":{"code":{"const":"service.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},{"properties":{"code":{"const":"source.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},{"properties":{"code":{"const":"statistical-dataset.domain-violation"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation"}}},{"properties":{"code":{"const":"statistical-dataset.release-refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused"}}},{"properties":{"code":{"const":"statistical-dataset.version-conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict"}}},{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn"}}},{"properties":{"code":{"const":"unsupported.media-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},{"properties":{"code":{"const":"write.outside-boundary"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}}],"properties":{"accessProfiles":{"items":{"maxLength":128,"minLength":1,"type":"string"},"minItems":2,"type":"array","uniqueItems":true},"atField":{"maxLength":128,"minLength":1,"type":"string"},"code":{"enum":["access-profile.ambiguous","action.evidence-failed","action.guard-failed","action.handler-failed","action.refused","attachment.content-type","attachment.digest-mismatch","attachment.limit-reached","attachment.required","attachment.slot-write-once","attachment.too-large","attachment.verification-pending","attachment.verification-rejected","authentication.refused","idempotency.expired","idempotency.key-reused","ingestion.chunk-mismatch","ingestion.profile-mismatch","ingestion.receipt-erased","ingestion.run-blocked","ingestion.run-not-open","lookup.unresolved","mutation.conflict","precondition.failed","precondition.required","profile.not-authorized","proposal.rejected","proposal.review-result-mismatch","proposal.submission-expired","query.cursor-invalid","query.filter-required","query.invalid","request.access-reason-required","request.invalid","request.timeout","resource.not-found","runtime.field-encryption.unavailable","service.unavailable","source.unavailable","statistical-dataset.domain-violation","statistical-dataset.release-refused","statistical-dataset.version-conflict","statistical-dataset.version-withdrawn","unsupported.media-type","write.outside-boundary"],"type":"string"},"constraintId":{"maxLength":128,"minLength":1,"type":"string"},"constraintKind":{"enum":["compare","int-range","vocabulary"],"type":"string"},"detail":{"maxLength":256,"type":"string"},"failedCheck":{"description":"The check that refused the request, included only in development.","type":"string"},"field":{"maxLength":128,"minLength":1,"type":"string"},"fieldId":{"maxLength":128,"minLength":1,"type":"string"},"fieldPath":{"maxLength":256,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"left":{"maxLength":128,"minLength":1,"type":"string"},"notAfterField":{"maxLength":128,"minLength":1,"type":"string"},"reasonCode":{"enum":["computation-error","source-data-error","disclosure-risk"],"type":"string"},"recordType":{"maxLength":128,"minLength":1,"type":"string"},"refusalCode":{"maxLength":128,"minLength":1,"type":"string"},"requiredFilters":{"items":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":32,"minItems":1,"type":"array","uniqueItems":true},"maxItems":8,"minItems":1,"type":"array"},"right":{"maxLength":128,"minLength":1,"type":"string"},"status":{"maximum":599,"minimum":400,"type":"integer"},"title":{"maxLength":128,"type":"string"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","type":"string"},"type":{"format":"uri","maxLength":256,"type":"string"}},"required":["type","title","status","detail","code","traceId"],"type":"object"},"ReviewCompletion":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":"string"},"eventId":{"format":"uuid","type":"string"},"requestId":{"format":"uuid","type":"string"},"resultId":{"format":"uuid","type":"string"},"type":{"const":"review.completed"}},"required":["type","eventId","requestId","resultId","completedAt"],"type":"object"},"action-correct-address-invoke-input":{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},"action-correct-address-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"action-deactivate-facility-invoke-input":{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]},"action-deactivate-facility-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"action-register-facility-availability-input":{"$id":"urn:breg:action:register-facility:availability-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"oneOf":[{"properties":{"input":{"properties":{"operatorId":{"format":"uuid","type":"string"}},"required":["operatorId"]},"targetInput":{"const":"operatorId"}}}],"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"operatorId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"},"targetInput":{"enum":["operatorId"],"type":"string"}},"required":["targetInput","input"],"type":"object","x-registry-action":"register-facility"},"action-register-facility-availability-response":{"$id":"urn:breg:action:register-facility:availability-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"availability":{"oneOf":[{"additionalProperties":false,"properties":{"available":{"const":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"}},"required":["available","observedRevision"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"const":false},"guardLabel":{"maxLength":256,"minLength":1,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"guard-not-satisfied"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"missingInputs":{"items":{"enum":["facilityCode","name","addressLine","city","postalCode","operatorId","jurisdiction"],"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"input-required"},"recovery":{"const":"correct-input"}},"required":["available","observedRevision","reason","recovery","missingInputs"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"observedRevision":{"type":"null"},"reason":{"const":"not-disclosed"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"}]}},"required":["availability"],"type":"object","x-registry-action":"register-facility"},"action-register-facility-invoke-input":{"$id":"urn:breg:action:register-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"operatorId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":["facilityCode","name","addressLine","city","postalCode","operatorId","jurisdiction"],"type":"object"},"preconditions":{"additionalProperties":false,"properties":{},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"register-facility","x-registry-requiredConditionKeys":[]},"action-register-facility-invoke-response":{"$id":"urn:breg:action:register-facility:invoke-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"action":{"const":"register-facility"},"applicationId":{"format":"uuid","type":"string"},"results":{"additionalProperties":false,"properties":{"assignment":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"const":"facility-assignment"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"facility":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"const":"facility"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"}},"required":["assignment","facility"],"type":"object"}},"required":["action","applicationId","results"],"type":"object"},"directory-entry":{"$id":"urn:breg:record-type:directory-entry","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"directory-entry-create-input":{"$id":"urn:breg:record-type:directory-entry:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"facility":{"$id":"urn:breg:record-type:facility","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"required":["facilityCode","name","addressLine","city","postalCode","status","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable","x-registry-mutationPolicy":{"patch":"proposal-required"}},"facility-assignment":{"$id":"urn:breg:record-type:facility-assignment","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"required":["facility","operator","jurisdiction"],"type":"object","x-registry-mutationMode":"create-only"},"operator":{"$id":"urn:breg:record-type:operator","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"required":["operatorCode","status","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"operator-create-input":{"$id":"urn:breg:record-type:operator:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"required":["operatorCode","status","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"reviewCompletion":{"description":"The review authority's configured completion key verifies the Standard Webhooks signature.","in":"header","name":"webhook-signature","type":"apiKey"}}},"info":{"title":"facility-registry","version":"0.1.0"},"openapi":"3.1.0","paths":{"/v1/actions/correct-address/proposals":{"post":{"operationId":"actions.correct-address.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-address-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-correct-address-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-correction-author"],"x-registry-action":{"access":{"accessProfiles":["facility-correction-author"]},"apiName":"correctAddress","attachments":[{"contentTypes":["application/pdf"],"id":"supporting-document","maximumBytes":1048576,"required":false}],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{"description":"Submit a frozen address correction for independent review and later application.","label":"Correct facility address"},"execution":{"application":"automatic","mode":"proposal","review":"required"},"id":"correct-address","inputMode":"handler","inputs":[{"apiName":"facilityId","classification":"internal","fieldType":{"onDelete":"restrict","target":"facility","type":"reference"},"id":"facility","label":"facilityId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"addressLine","classification":"internal","fieldType":{"maximumLength":240,"minimumLength":1,"type":"string"},"id":"address-line","label":"addressLine","nullable":false,"required":true,"schema":{"maxLength":240,"minLength":1,"type":"string"}},{"apiName":"city","classification":"internal","fieldType":{"maximumLength":120,"minimumLength":1,"type":"string"},"id":"city","label":"city","nullable":false,"required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"apiName":"postalCode","classification":"internal","fieldType":{"maximumLength":24,"minimumLength":1,"type":"string"},"id":"postal-code","label":"postalCode","nullable":false,"required":true,"schema":{"maxLength":24,"minLength":1,"type":"string"}}],"maximumInputStringBytes":16384,"referenceInputs":[{"apiName":"facilityId","input":"facility","targetRecordType":"facility"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility-address","operation":"patch","recordType":"facility"}],"revision":"sha256:efb20d40704ae6c133b660f2fe3d556b4a00ee5478a5871cf1fd026e7d7b6b7a","route":"/v1/actions/correct-address/proposals","routes":{"availability":null,"start":{"inputSchema":"action-correct-address-invoke-input","method":"POST","operationId":"actions.correct-address.start","path":"/v1/actions/correct-address/proposals","requiresIdempotencyKey":true,"responseSchema":"action-correct-address-invoke-response"}}},"x-registry-defaultAccessProfile":"facility-correction-author","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/actions/deactivate-facility/proposals":{"post":{"operationId":"actions.deactivate-facility.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-deactivate-facility-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-deactivate-facility-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-correction-author"],"x-registry-action":{"access":{"accessProfiles":["facility-correction-author"]},"apiName":"deactivateFacility","attachments":[],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{"description":"Submit a durable deactivation that requires no external review.","label":"Deactivate facility"},"execution":{"application":"manual","mode":"proposal","review":"none"},"id":"deactivate-facility","inputMode":"fixed","inputs":[{"apiName":"facilityId","classification":"internal","fieldType":{"onDelete":"restrict","target":"facility","type":"reference"},"id":"facility","label":"facilityId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"facilityId","input":"facility","targetRecordType":"facility"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility-status","operation":"patch","recordType":"facility"}],"revision":"sha256:9237300ee419a0014c3b123cc7ac90eb9623cb4c45bba4a65c03936083299f1d","route":"/v1/actions/deactivate-facility/proposals","routes":{"availability":null,"start":{"inputSchema":"action-deactivate-facility-invoke-input","method":"POST","operationId":"actions.deactivate-facility.start","path":"/v1/actions/deactivate-facility/proposals","requiresIdempotencyKey":true,"responseSchema":"action-deactivate-facility-invoke-response"}}},"x-registry-defaultAccessProfile":"facility-correction-author","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/actions/register-facility":{"post":{"operationId":"actions.register-facility.invoke","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-invoke-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-invoke-response"}}},"description":"Immediate action committed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-registrar"],"x-registry-action":{"access":{"accessProfiles":["facility-registrar"]},"apiName":"registerFacility","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":null,"display":{"description":"Create a facility and its initial operator assignment atomically.","label":"Register facility"},"execution":{"mode":"immediate"},"id":"register-facility","inputMode":"fixed","inputs":[{"apiName":"facilityCode","classification":"internal","fieldType":{"maximumLength":64,"minimumLength":1,"type":"string"},"id":"facility-code","label":"facilityCode","nullable":false,"required":true,"schema":{"maxLength":64,"minLength":1,"type":"string"}},{"apiName":"name","classification":"internal","fieldType":{"maximumLength":200,"minimumLength":1,"type":"string"},"id":"name","label":"name","nullable":false,"required":true,"schema":{"maxLength":200,"minLength":1,"type":"string"}},{"apiName":"addressLine","classification":"internal","fieldType":{"maximumLength":240,"minimumLength":1,"type":"string"},"id":"address-line","label":"addressLine","nullable":false,"required":true,"schema":{"maxLength":240,"minLength":1,"type":"string"}},{"apiName":"city","classification":"internal","fieldType":{"maximumLength":120,"minimumLength":1,"type":"string"},"id":"city","label":"city","nullable":false,"required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"apiName":"postalCode","classification":"internal","fieldType":{"maximumLength":24,"minimumLength":1,"type":"string"},"id":"postal-code","label":"postalCode","nullable":false,"required":true,"schema":{"maxLength":24,"minLength":1,"type":"string"}},{"apiName":"operatorId","classification":"internal","fieldType":{"onDelete":"restrict","target":"operator","type":"reference"},"id":"operator","label":"operatorId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"jurisdiction","classification":"internal","fieldType":{"maximumLength":40,"minimumLength":1,"type":"string"},"id":"jurisdiction","label":"jurisdiction","nullable":false,"required":true,"schema":{"maxLength":40,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"operatorId","input":"operator","targetRecordType":"operator"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility","operation":"create","recordType":"facility"},{"effect":"assignment","operation":"create","recordType":"facility-assignment"}],"revision":"sha256:5b5de70fa9b8f831387fc08e520f16fccd71863f18f3efe8b7999728927910f6","route":"/v1/actions/register-facility","routes":{"availability":{"inputSchema":"action-register-facility-availability-input","method":"POST","operationId":"actions.register-facility.availability","path":"/v1/actions/register-facility/availability","requiresIdempotencyKey":false,"responseSchema":"action-register-facility-availability-response"},"invoke":{"inputSchema":"action-register-facility-invoke-input","method":"POST","operationId":"actions.register-facility.invoke","path":"/v1/actions/register-facility","requiresIdempotencyKey":true,"responseSchema":"action-register-facility-invoke-response"},"targetConditions":null}},"x-registry-defaultAccessProfile":"facility-registrar","x-registry-operation":"invoke","x-registry-routeKind":"invoke"}},"/v1/actions/register-facility/availability":{"post":{"operationId":"actions.register-facility.availability","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-availability-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-facility-availability-response"}}},"description":"Action availability returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-registrar"],"x-registry-action":{"access":{"accessProfiles":["facility-registrar"]},"apiName":"registerFacility","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":null,"display":{"description":"Create a facility and its initial operator assignment atomically.","label":"Register facility"},"execution":{"mode":"immediate"},"id":"register-facility","inputMode":"fixed","inputs":[{"apiName":"facilityCode","classification":"internal","fieldType":{"maximumLength":64,"minimumLength":1,"type":"string"},"id":"facility-code","label":"facilityCode","nullable":false,"required":true,"schema":{"maxLength":64,"minLength":1,"type":"string"}},{"apiName":"name","classification":"internal","fieldType":{"maximumLength":200,"minimumLength":1,"type":"string"},"id":"name","label":"name","nullable":false,"required":true,"schema":{"maxLength":200,"minLength":1,"type":"string"}},{"apiName":"addressLine","classification":"internal","fieldType":{"maximumLength":240,"minimumLength":1,"type":"string"},"id":"address-line","label":"addressLine","nullable":false,"required":true,"schema":{"maxLength":240,"minLength":1,"type":"string"}},{"apiName":"city","classification":"internal","fieldType":{"maximumLength":120,"minimumLength":1,"type":"string"},"id":"city","label":"city","nullable":false,"required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"apiName":"postalCode","classification":"internal","fieldType":{"maximumLength":24,"minimumLength":1,"type":"string"},"id":"postal-code","label":"postalCode","nullable":false,"required":true,"schema":{"maxLength":24,"minLength":1,"type":"string"}},{"apiName":"operatorId","classification":"internal","fieldType":{"onDelete":"restrict","target":"operator","type":"reference"},"id":"operator","label":"operatorId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"jurisdiction","classification":"internal","fieldType":{"maximumLength":40,"minimumLength":1,"type":"string"},"id":"jurisdiction","label":"jurisdiction","nullable":false,"required":true,"schema":{"maxLength":40,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"operatorId","input":"operator","targetRecordType":"operator"}],"requiredConditionKeys":[],"resultEffects":[{"effect":"facility","operation":"create","recordType":"facility"},{"effect":"assignment","operation":"create","recordType":"facility-assignment"}],"revision":"sha256:5b5de70fa9b8f831387fc08e520f16fccd71863f18f3efe8b7999728927910f6","route":"/v1/actions/register-facility","routes":{"availability":{"inputSchema":"action-register-facility-availability-input","method":"POST","operationId":"actions.register-facility.availability","path":"/v1/actions/register-facility/availability","requiresIdempotencyKey":false,"responseSchema":"action-register-facility-availability-response"},"invoke":{"inputSchema":"action-register-facility-invoke-input","method":"POST","operationId":"actions.register-facility.invoke","path":"/v1/actions/register-facility","requiresIdempotencyKey":true,"responseSchema":"action-register-facility-invoke-response"},"targetConditions":null}},"x-registry-defaultAccessProfile":"facility-registrar","x-registry-operation":"invoke","x-registry-routeKind":"availability"}},"/v1/proposals":{"get":{"operationId":"proposals.list","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"query","name":"action","schema":{"type":"string"}},{"in":"query","name":"owner","schema":{"const":"caller"}},{"in":"query","name":"target","schema":{"format":"uuid","type":"string"}},{"in":"query","name":"state","schema":{"enum":["draft","submitted","applied","cancelled","rejected"]}},{"in":"query","name":"turn","schema":{"enum":["party","official","nobody"]}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The most items a page holds. A page may hold fewer than `limit` items, so keep paging while `nextCursor` is present.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"pendingManualApplication","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"maxItems":100,"type":"array"},"nextCursor":{"type":"string"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","query.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier","facility-correction-author"]}},"/v1/proposals/review-context":{"get":{"description":"One bounded transport exchange under each item's current get-review-context authority. Ordered visible or concealed results; operational failures refuse the whole batch. Maximum response is 8 MiB.","operationId":"proposals.get-review-context-batch","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["proposal-reviewer"],"maxLength":128,"type":"string"}},{"description":"One to 100 distinct canonical Proposal UUIDs, in response order.","explode":false,"in":"query","name":"ids","required":true,"schema":{"items":{"format":"uuid","type":"string"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":true},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"context":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"authority":{"type":"string"},"context":{"additionalProperties":false,"properties":{"contract":{"additionalProperties":false,"properties":{"id":{"maxLength":2048,"pattern":"^urn:registry:breg:review-context:","type":"string"},"revision":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"schemaDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["id","revision","schemaDigest"],"type":"object"},"fields":{"type":"object"},"reference":{"type":"string"}},"required":["reference","contract","fields"],"type":"object"},"effectDigest":{"type":"string"},"id":{"format":"uuid","type":"string"},"policy":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version","digest"],"type":"object"},"result":{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},"reviewable":{"type":"boolean"},"revision":{"minimum":1,"type":"integer"},"subject":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"format":"uuid","type":"string"},"source":{"type":"string"},"subjectType":{"const":"proposal"},"version":{"type":"string"}},"required":["source","subjectType","id","version","digest"],"type":"object"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["id","actionId","actionRevision","submissionVersion","revision","effectDigest","subject","context","reviewable"],"type":"object"},"id":{"format":"uuid","type":"string"},"status":{"const":"visible"}},"required":["id","status","context"],"type":"object"},{"additionalProperties":false,"properties":{"id":{"format":"uuid","type":"string"},"status":{"const":"concealed"}},"required":["id","status"],"type":"object"}]},"maxItems":100,"minItems":1,"type":"array"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["proposal-reviewer"]}},"/v1/proposals/{proposal_id}":{"get":{"operationId":"proposals.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier","facility-correction-author"]}},"/v1/proposals/{proposal_id}/apply":{"post":{"operationId":"proposals.apply","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"reason":{"description":"Optional application explanation, preserved unchanged. At most 4096 Unicode characters; NUL is refused.","maxLength":4096,"pattern":"^[^\\u0000]*$","type":"string"},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["submissionVersion","effectDigest"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}},"proposal.review-result-mismatch":{"value":{"code":"proposal.review-result-mismatch","detail":"The current review result does not match the retained approval.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.guard-failed","precondition.failed","proposal.review-result-mismatch"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier"]}},"/v1/proposals/{proposal_id}/attachments/supporting-document":{"delete":{"operationId":"proposals.attachments.supporting-document.delete","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]},"get":{"operationId":"proposals.attachments.supporting-document.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author","proposal-reviewer"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"submissionVersion","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"reviewContextField","required":false,"schema":{"pattern":"^[a-z][a-zA-Z0-9]{0,63}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"effectDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}},{"description":"All three review-context query members are required together and select only get-review-context authority. Omit all three for ordinary get authority.","in":"query","name":"contextSchemaDigest","required":false,"schema":{"pattern":"^sha256:[a-f0-9]{64}$","type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"contentMediaType":"application/octet-stream","maxLength":16777216,"type":"string"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author","proposal-reviewer"]},"patch":{"operationId":"proposals.attachments.supporting-document.patch","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/pdf":{"schema":{"format":"binary","maxLength":1048576,"type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"413":{"content":{"application/problem+json":{"examples":{"attachment.too-large":{"value":{"code":"attachment.too-large","detail":"The file is larger than the attachment slot accepts.","status":413,"title":"Content Too Large","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.too-large"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"attachment.content-type":{"value":{"code":"attachment.content-type","detail":"The file media type is not one the attachment slot accepts.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.content-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/cancel":{"post":{"operationId":"proposals.cancel","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/edit":{"post":{"operationId":"proposals.edit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/rebase":{"post":{"operationId":"proposals.rebase","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/retry":{"post":{"operationId":"proposals.retry","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/review-context":{"get":{"operationId":"proposals.get-review-context","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["proposal-reviewer"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Request live applicant answers for a displayed human review context. Admission and preflight reads omit this option and receive no intrinsic asks.","in":"query","name":"include","required":false,"schema":{"const":"answers"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"authority":{"type":"string"},"context":{"additionalProperties":false,"properties":{"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"answeredAt":{"format":"date-time","type":"string"},"documents":{"items":{"additionalProperties":false,"properties":{"byteSize":{"maximum":16777216,"minimum":1,"type":"integer"},"contentType":{"maxLength":255,"type":"string"},"download":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"method":{"const":"GET"},"operation":{"const":"get-review-context"},"path":{"type":"string"}},"required":["method","operation","accessProfile","path"],"type":"object"},"id":{"format":"uuid","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["id","sha256","contentType","byteSize","verificationStatus"],"type":"object"},"maxItems":32,"type":"array"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["documents","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state"],"type":"object"},"maxItems":50,"type":"array"},"contract":{"additionalProperties":false,"properties":{"id":{"maxLength":2048,"pattern":"^urn:registry:breg:review-context:","type":"string"},"revision":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"schemaDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["id","revision","schemaDigest"],"type":"object"},"fields":{"type":"object"},"reference":{"type":"string"}},"required":["reference","contract","fields"],"type":"object"},"effectDigest":{"type":"string"},"id":{"format":"uuid","type":"string"},"policy":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version","digest"],"type":"object"},"result":{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},"reviewable":{"type":"boolean"},"revision":{"minimum":1,"type":"integer"},"subject":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"format":"uuid","type":"string"},"source":{"type":"string"},"subjectType":{"const":"proposal"},"version":{"type":"string"}},"required":["source","subjectType","id","version","digest"],"type":"object"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["id","actionId","actionRevision","submissionVersion","revision","effectDigest","subject","context","reviewable"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["proposal-reviewer"]}},"/v1/proposals/{proposal_id}/review-status":{"get":{"operationId":"proposals.get-review-status","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["casework-review-status","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Request the institution's optional applicant-visible progress code. The code is returned only when the selected caller-owned grant enables readableReviewProgress.","in":"query","name":"include","required":false,"schema":{"const":"progress"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"authority":{"type":"string"},"context":{"additionalProperties":false,"properties":{"contract":{"additionalProperties":false,"properties":{"id":{"maxLength":2048,"pattern":"^urn:registry:breg:review-context:","type":"string"},"revision":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"schemaDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["id","revision","schemaDigest"],"type":"object"},"reference":{"type":"string"}},"required":["reference"],"type":"object"},"effectDigest":{"type":"string"},"handoff":{"additionalProperties":false,"properties":{"reason":{"enum":["remote-refused","producer-identity-mismatch","review-acceptance-changed","review-policy-changed","submission-recovery-expired","operator-closed","unspecified"]},"state":{"enum":["pending","accepted","failed","withdrawn"]}},"required":["state"],"type":"object"},"id":{"format":"uuid","type":"string"},"policy":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"type":"string"},"version":{"type":"string"}},"required":["id","version","digest"],"type":"object"},"progressCode":{"description":"Institution-defined applicant-visible progress. Absent when the institution conceals the current stage, progress was not requested or granted, the provider is unavailable, or the accepted review round is no longer live.","maxLength":64,"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"requestId":{"format":"uuid","type":"string"},"result":{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},"reviewable":{"type":"boolean"},"revision":{"minimum":1,"type":"integer"},"subject":{"additionalProperties":false,"properties":{"digest":{"type":"string"},"id":{"format":"uuid","type":"string"},"source":{"type":"string"},"subjectType":{"const":"proposal"},"version":{"type":"string"}},"required":["source","subjectType","id","version","digest"],"type":"object"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["id","actionId","actionRevision","submissionVersion","revision","effectDigest","subject","context","reviewable"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["casework-review-status","facility-correction-author"]}},"/v1/proposals/{proposal_id}/revise":{"post":{"operationId":"proposals.revise","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:correct-address:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityId":{"format":"uuid","type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"correct-address","x-registry-requiredConditionKeys":[]},{"$id":"urn:breg:action:deactivate-facility:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"facilityId":{"format":"uuid","type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"deactivate-facility","x-registry-requiredConditionKeys":[]},{"additionalProperties":false,"type":"object"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/proposals/{proposal_id}/submissions/{submission_version}":{"get":{"operationId":"proposals.get-submission","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-applier","facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"submission_version","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"application":{"anyOf":[{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"state":{"const":"applied"}},"required":["state","applicationId"],"type":"object"},{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},{"type":"null"}]},"current":{"type":"boolean"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"review":{"anyOf":[{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},{"type":"null"}]},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["id","actionId","submissionVersion","current","effectDigest","review","application"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"proposal.submission-expired":{"value":{"code":"proposal.submission-expired","detail":"The review result and application receipt of the submission are no longer retained.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["proposal.submission-expired"]}},"type":"object"}]}}},"description":"The submission's review result and application receipt are no longer retained","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-applier","facility-correction-author"]}},"/v1/proposals/{proposal_id}/submit":{"post":{"operationId":"proposals.submit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["facility-correction-author"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"attachment.verification-pending":{"value":{"code":"attachment.verification-pending","detail":"The attachment is awaiting verification. Refresh the Proposal before submitting.","fieldPath":"/attachments/supporting-document","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}},"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["attachment.verification-pending","idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.guard-failed","precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"422":{"content":{"application/problem+json":{"examples":{"action.refused/invalid-postal-code":{"value":{"code":"action.refused","detail":"Postal code is invalid","refusalCode":"invalid-postal-code","status":422,"title":"Unprocessable Entity","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/refused"}},"attachment.verification-rejected":{"value":{"code":"attachment.verification-rejected","detail":"The attachment was rejected by verification. Replace or remove the file before submitting.","fieldPath":"/attachments/supporting-document","status":422,"title":"Unprocessable Entity","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.refused","attachment.verification-rejected"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"500":{"content":{"application/problem+json":{"examples":{"action.handler-failed":{"value":{"code":"action.handler-failed","detail":"The action handler could not produce an accepted result.","status":500,"title":"Internal Server Error","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["action.handler-failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["facility-correction-author"]}},"/v1/records/directory-entries":{"get":{"operationId":"records.directory-entry.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"directory-editor":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"directory-editor","requiredFilters":[],"selectableProperties":["email","jurisdiction","name"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.directory-entry.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/directory-entry-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"create","x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/directory-entries/{record_id}":{"get":{"operationId":"records.directory-entry.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"get","x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordSingleV1"},"patch":{"operationId":"records.directory-entry.patch","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Strong Registry ETag for the currently visible record representation.","in":"header","name":"If-Match","required":true,"schema":{"maxLength":256,"minLength":6,"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json-patch+json":{"schema":{"items":{"additionalProperties":false,"else":{"required":["value"]},"if":{"properties":{"op":{"const":"remove"}}},"properties":{"op":{"enum":["add","replace","remove","test"],"type":"string"},"path":{"type":"string"},"value":true},"required":["op","path"],"then":{"not":{"required":["value"]}},"type":"object"},"maxItems":128,"minItems":1,"type":"array"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/directory-entry"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"directory-entry"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record patched","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"patch","x-registry-recordType":"directory-entry","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"directory-entry","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/facilities":{"get":{"operationId":"records.facility.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["addressLine","city","facilityCode","jurisdiction","name","postalCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"facility","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility","x-registry-responseShape":"RegistryRecordCollectionV1"}},"/v1/records/facilities/{record_id}":{"get":{"operationId":"records.facility.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"addressLine":{"maxLength":240,"minLength":1,"type":"string"},"city":{"maxLength":120,"minLength":1,"type":"string"},"facilityCode":{"maxLength":64,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"},"postalCode":{"maxLength":24,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"facility-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader","proposal-reviewer"],"x-registry-operation":"get","x-registry-recordType":"facility","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/facilities/{record_id}/operators":{"get":{"operationId":"records.facility.path.operators","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["jurisdiction","operatorCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"facility","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordCollectionV1"}},"/v1/records/facility-assignments":{"get":{"operationId":"records.facility-assignment.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[{"operators":["equals","in","is-null","is-not-null"],"property":"facility"},{"operators":["equals","in","is-null","is-not-null"],"property":"operator"}],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["facility","jurisdiction","operator"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"facility-assignment","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility-assignment","x-registry-responseShape":"RegistryRecordCollectionV1"}},"/v1/records/facility-assignments/{record_id}":{"get":{"operationId":"records.facility-assignment.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"facility":{"format":"uuid","type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operator":{"format":"uuid","type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"facility-assignment"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader"],"x-registry-operation":"get","x-registry-recordType":"facility-assignment","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"facility-assignment","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/operators":{"get":{"operationId":"records.operator.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader","operator-editor"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"facility-reader":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"facility-reader","requiredFilters":[],"selectableProperties":["jurisdiction","operatorCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null},"operator-editor":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"operator-editor","requiredFilters":[],"selectableProperties":["jurisdiction","operatorCode","status"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.operator.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/operator-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["operator-editor"],"x-registry-operation":"create","x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/operators/{record_id}":{"get":{"operationId":"records.operator.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"operatorCode":{"maxLength":64,"minLength":1,"type":"string"},"status":{"enum":["active","inactive"],"type":"string","x-registry-vocabulary":"operator-status"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["facility-reader","operator-editor"],"x-registry-operation":"get","x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordSingleV1"},"patch":{"operationId":"records.operator.patch","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Strong Registry ETag for the currently visible record representation.","in":"header","name":"If-Match","required":true,"schema":{"maxLength":256,"minLength":6,"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json-patch+json":{"schema":{"items":{"additionalProperties":false,"else":{"required":["value"]},"if":{"properties":{"op":{"const":"remove"}}},"properties":{"op":{"enum":["add","replace","remove","test"],"type":"string"},"path":{"type":"string"},"value":true},"required":["op","path"],"then":{"not":{"required":["value"]}},"type":"object"},"maxItems":128,"minItems":1,"type":"array"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/operator"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"facility-registry"},"recordTypeId":{"const":"operator"},"registryId":{"const":"facility-registry"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record patched","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["operator-editor"],"x-registry-operation":"patch","x-registry-recordType":"operator","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"operator","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/review-completions":{"post":{"description":"Available when a review authority configures a completion block.","operationId":"receiveReviewCompletion","parameters":[{"in":"header","name":"Registry-Recipient-Binding","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}},{"description":"Must equal eventId.","in":"header","name":"webhook-id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"webhook-timestamp","required":true,"schema":{"pattern":"^(0|[1-9][0-9]{0,19})$","type":"string"}},{"in":"header","name":"webhook-signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCompletion"}}},"required":true},"responses":{"204":{"description":"Completion accepted or already recorded."},"400":{"description":"The completion is invalid or eventId differs from webhook-id."},"401":{"description":"The completion authority could not be authenticated.","headers":{"WWW-Authenticate":{"schema":{"const":"Registry-Signature scheme=\"standard-webhooks\", version=\"v1\"","type":"string"}}}},"413":{"description":"The completion body exceeds 2048 bytes. The response body is empty."},"415":{"description":"The request is not application/json."},"503":{"description":"The completion could not be durably recorded."}},"security":[{"reviewCompletion":[]}],"summary":"Receive a Casework review completion"}}}} \ No newline at end of file diff --git a/products/breg/generated/facility/generated/sdk/project.py b/products/breg/generated/facility/generated/sdk/project.py index 9a56171f44..f57efa2b5e 100644 --- a/products/breg/generated/facility/generated/sdk/project.py +++ b/products/breg/generated/facility/generated/sdk/project.py @@ -197,17 +197,17 @@ def _read(self, record_type: str, identifier: str) -> RecordView[Any]: result = self._native.get_record(_definitions['records'][record_type]['route'], identifier, access_profile=self._profile) return self._view(record_type, result['value']['data']) @overload - def related(self, record_type: Literal["facility"], identifier: str, relationship: Literal["assignments"], top: int = 50) -> Page[RecordView[FacilityAssignmentProjection]]: pass + def related(self, record_type: Literal["facility"], identifier: str, relationship: Literal["assignments"], limit: int = 50) -> Page[RecordView[FacilityAssignmentProjection]]: pass @overload - def related(self, record_type: Literal["facility"], identifier: str, relationship: Literal["operators"], top: int = 50) -> Page[RecordView[OperatorProjection]]: pass + def related(self, record_type: Literal["facility"], identifier: str, relationship: Literal["operators"], limit: int = 50) -> Page[RecordView[OperatorProjection]]: pass @overload - def related(self, record_type: Literal["facility-assignment"], identifier: str, relationship: Literal["facility"], top: int = 50) -> RecordView[FacilityProjection]: pass + def related(self, record_type: Literal["facility-assignment"], identifier: str, relationship: Literal["facility"], limit: int = 50) -> RecordView[FacilityProjection]: pass @overload - def related(self, record_type: Literal["facility-assignment"], identifier: str, relationship: Literal["operator"], top: int = 50) -> RecordView[OperatorProjection]: pass + def related(self, record_type: Literal["facility-assignment"], identifier: str, relationship: Literal["operator"], limit: int = 50) -> RecordView[OperatorProjection]: pass @overload - def related(self, record_type: Literal["operator"], identifier: str, relationship: Literal["facilityAssignments"], top: int = 50) -> Page[RecordView[FacilityAssignmentProjection]]: pass + def related(self, record_type: Literal["operator"], identifier: str, relationship: Literal["facilityAssignments"], limit: int = 50) -> Page[RecordView[FacilityAssignmentProjection]]: pass - def related(self, record_type: str, identifier: str, relationship: str, top: int = 50) -> Any: + def related(self, record_type: str, identifier: str, relationship: str, limit: int = 50) -> Any: relation = _definitions['relationships'][record_type][relationship] source = self._read(record_type, identifier) if relation['kind'] == 'forward': @@ -219,9 +219,9 @@ def related(self, record_type: str, identifier: str, relationship: str, top: int if str(UUID(identifier)) != identifier: raise ValueError('Record identifier is invalid') if relation['kind'] == 'join': - result = self._native.list_relationship_records(_definitions['records'][record_type]['route'], identifier, relation['path'], access_profile=self._profile, top=top) + result = self._native.list_relationship_records(_definitions['records'][record_type]['route'], identifier, relation['path'], access_profile=self._profile, limit=limit) else: - result = self._native.list_records(_definitions['records'][relation['target']]['route'], access_profile=self._profile, top=top, filter=f"{relation['field']} eq '{identifier}'") + result = self._native.list_records(_definitions['records'][relation['target']]['route'], access_profile=self._profile, limit=limit, filter=f"{relation['field']} eq '{identifier}'") def page(result: Any) -> Page[RecordView[Any]]: value: Page[RecordView[Any]] = {'items': [cast(RecordView[Any], self._view(relation['target'], item)) for item in result['value']['items']]} continuation = result.get('continuation') diff --git a/products/breg/generated/facility/generated/sdk/project.ts b/products/breg/generated/facility/generated/sdk/project.ts index 4811c95cee..f2b5814813 100644 --- a/products/breg/generated/facility/generated/sdk/project.ts +++ b/products/breg/generated/facility/generated/sdk/project.ts @@ -125,7 +125,7 @@ export class ProjectClient { const result = await this.native.getRecord(definitions.records[recordType].route, id, {accessProfile: this.profile}); return this.view(recordType, result.value.data); } - async related(recordType: K, id: string, relationship: R, top = 50): Promise { + async related(recordType: K, id: string, relationship: R, limit = 50): Promise { const relation = definitions.relationships[recordType]?.[String(relationship)]; if (!relation) throw new TypeError('Relationship is not in the compiled project contract'); const source = await this.read(recordType as keyof ProjectRecords, id); @@ -145,8 +145,8 @@ export class ProjectClient { next: result.continuation ? async () => page(await resume(result.continuation!), resume) : undefined, }); const result = relation.kind === 'join' - ? page(await this.native.listRelationshipRecords(definitions.records[recordType].route, id, relation.path!, {accessProfile: this.profile, top}), continuation => this.native.continueRelationshipList(continuation)) - : page(await this.native.listRecords(definitions.records[relation.target].route, {accessProfile: this.profile, top, filter: `${relation.field} eq '${id}'`}), continuation => this.native.continueList(continuation)); + ? page(await this.native.listRelationshipRecords(definitions.records[recordType].route, id, relation.path!, {accessProfile: this.profile, limit}), continuation => this.native.continueRelationshipList(continuation)) + : page(await this.native.listRecords(definitions.records[relation.target].route, {accessProfile: this.profile, limit, filter: `${relation.field} eq '${id}'`}), continuation => this.native.continueList(continuation)); if (relation.cardinality === 'one') { if (result.items.length !== 1 || result.next) throw new TypeError('Required relationship did not resolve exactly one readable record'); return result.items[0] as ProjectRelationships[K][R]; diff --git a/products/breg/generated/minimal/generated/openapi.json b/products/breg/generated/minimal/generated/openapi.json index a084c426b4..2ac533468b 100644 --- a/products/breg/generated/minimal/generated/openapi.json +++ b/products/breg/generated/minimal/generated/openapi.json @@ -1 +1 @@ -{"components":{"schemas":{"ImmediateActionPrecondition":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"},"ImmediateActionResultReference":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"Problem":{"additionalProperties":false,"allOf":[{"if":{"properties":{"code":{"enum":["attachment.required","attachment.verification-pending","attachment.verification-rejected"]}}},"then":{"allOf":[{"else":{"properties":{"status":{"const":422}}},"if":{"properties":{"code":{"const":"attachment.verification-pending"}}},"then":{"properties":{"status":{"const":409}}}}],"properties":{"fieldPath":{"pattern":"^/attachments/[a-z][a-z0-9_-]{0,63}$","type":"string"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","fieldPath"]},"required":["fieldPath"]}},{"if":{"properties":{"code":{"const":"write.outside-boundary"}}},"then":{"properties":{"code":{"const":"write.outside-boundary"},"detail":{"const":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."},"status":{"const":403},"title":{"const":"Forbidden"},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId"]}}},{"if":{"properties":{"code":{"not":{"const":"action.guard-failed"}}}},"then":{"not":{"required":["guardReason"]}}},{"if":{"properties":{"code":{"const":"action.refused"}}},"then":{"properties":{"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"const":"statistical-dataset.release-refused"}}},"then":{"properties":{"refusalCode":{"enum":["period-not-ended","before-first-period","provisional-after-final","already-withdrawn","negative-value"]},"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"not":{"enum":["action.refused","statistical-dataset.release-refused"]}}}},"then":{"not":{"required":["refusalCode"]}}},{"if":{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"}}},"then":{"properties":{"status":{"const":410}},"required":["reasonCode"]}},{"if":{"properties":{"code":{"not":{"const":"statistical-dataset.version-withdrawn"}}}},"then":{"not":{"required":["reasonCode"]}}},{"if":{"properties":{"code":{"const":"access-profile.ambiguous"}}},"then":{"additionalProperties":true,"properties":{"status":{"const":400}},"required":["accessProfiles"]}},{"if":{"properties":{"code":{"not":{"const":"access-profile.ambiguous"}}}},"then":{"not":{"required":["accessProfiles"]}}},{"if":{"properties":{"code":{"const":"action.evidence-failed"}}},"then":{"properties":{"detail":{"const":"The declared Evidence dependency could not be accepted."},"fieldPath":{"pattern":"^/evidence/[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":503}}}},{"if":{"properties":{"code":{"const":"action.handler-failed"}}},"then":{"properties":{"status":{"const":500}}}},{"if":{"anyOf":[{"required":["atField"]},{"required":["notAfterField"]}]},"then":{"properties":{"code":{"const":"request.invalid"},"status":{"const":400}},"required":["atField","notAfterField"]}},{"if":{"anyOf":[{"required":["recordType"]},{"required":["fieldId"]},{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"required":["fieldId"]},{"not":{"required":["fieldId"]},"oneOf":[{"not":{"required":["field"]},"properties":{"constraintKind":{"const":"compare"}},"required":["left","right"]},{"not":{"anyOf":[{"required":["left"]},{"required":["right"]}]},"properties":{"constraintKind":{"enum":["int-range","vocabulary"]}},"required":["field"]}],"required":["constraintId","constraintKind"]}],"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409}},"required":["recordType"]}}],"anyOf":[{"properties":{"code":{"const":"access-profile.ambiguous"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},{"properties":{"code":{"const":"action.evidence-failed"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/evidence-failed"}}},{"properties":{"code":{"const":"action.guard-failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}}},{"properties":{"code":{"const":"action.handler-failed"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},{"properties":{"code":{"const":"action.refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/refused"}}},{"properties":{"code":{"const":"attachment.content-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},{"properties":{"code":{"const":"attachment.digest-mismatch"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch"}}},{"properties":{"code":{"const":"attachment.limit-reached"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached"}}},{"properties":{"code":{"const":"attachment.required"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},{"properties":{"code":{"const":"attachment.slot-write-once"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once"}}},{"properties":{"code":{"const":"attachment.too-large"},"status":{"const":413},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},{"properties":{"code":{"const":"attachment.verification-pending"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}}},{"properties":{"code":{"const":"attachment.verification-rejected"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},{"properties":{"code":{"const":"authentication.refused"},"status":{"const":401},"type":{"const":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},{"properties":{"code":{"const":"idempotency.expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},{"properties":{"code":{"const":"idempotency.key-reused"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}}},{"properties":{"code":{"const":"ingestion.chunk-mismatch"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch"}}},{"properties":{"code":{"const":"ingestion.profile-mismatch"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch"}}},{"properties":{"code":{"const":"ingestion.receipt-erased"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased"}}},{"properties":{"code":{"const":"ingestion.run-blocked"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked"}}},{"properties":{"code":{"const":"ingestion.run-not-open"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open"}}},{"properties":{"code":{"const":"lookup.unresolved"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/lookup/unresolved"}}},{"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},{"properties":{"code":{"const":"precondition.failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},{"properties":{"code":{"const":"precondition.required"},"status":{"const":428},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},{"properties":{"code":{"const":"profile.not-authorized"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},{"properties":{"code":{"const":"proposal.rejected"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},{"properties":{"code":{"const":"proposal.review-result-mismatch"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},{"properties":{"code":{"const":"proposal.submission-expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},{"properties":{"code":{"const":"query.cursor-invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}}},{"properties":{"code":{"const":"query.filter-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/filter-required"}}},{"properties":{"code":{"const":"query.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},{"properties":{"code":{"const":"request.access-reason-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/access-reason-required"}}},{"properties":{"code":{"const":"request.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},{"properties":{"code":{"const":"request.timeout"},"status":{"const":504},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},{"properties":{"code":{"const":"resource.not-found"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},{"properties":{"code":{"const":"runtime.field-encryption.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}}},{"properties":{"code":{"const":"service.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},{"properties":{"code":{"const":"source.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},{"properties":{"code":{"const":"statistical-dataset.domain-violation"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation"}}},{"properties":{"code":{"const":"statistical-dataset.release-refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused"}}},{"properties":{"code":{"const":"statistical-dataset.version-conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict"}}},{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn"}}},{"properties":{"code":{"const":"unsupported.media-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},{"properties":{"code":{"const":"write.outside-boundary"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}}],"properties":{"accessProfiles":{"items":{"maxLength":128,"minLength":1,"type":"string"},"minItems":2,"type":"array","uniqueItems":true},"atField":{"maxLength":128,"minLength":1,"type":"string"},"code":{"enum":["access-profile.ambiguous","action.evidence-failed","action.guard-failed","action.handler-failed","action.refused","attachment.content-type","attachment.digest-mismatch","attachment.limit-reached","attachment.required","attachment.slot-write-once","attachment.too-large","attachment.verification-pending","attachment.verification-rejected","authentication.refused","idempotency.expired","idempotency.key-reused","ingestion.chunk-mismatch","ingestion.profile-mismatch","ingestion.receipt-erased","ingestion.run-blocked","ingestion.run-not-open","lookup.unresolved","mutation.conflict","precondition.failed","precondition.required","profile.not-authorized","proposal.rejected","proposal.review-result-mismatch","proposal.submission-expired","query.cursor-invalid","query.filter-required","query.invalid","request.access-reason-required","request.invalid","request.timeout","resource.not-found","runtime.field-encryption.unavailable","service.unavailable","source.unavailable","statistical-dataset.domain-violation","statistical-dataset.release-refused","statistical-dataset.version-conflict","statistical-dataset.version-withdrawn","unsupported.media-type","write.outside-boundary"],"type":"string"},"constraintId":{"maxLength":128,"minLength":1,"type":"string"},"constraintKind":{"enum":["compare","int-range","vocabulary"],"type":"string"},"detail":{"maxLength":256,"type":"string"},"field":{"maxLength":128,"minLength":1,"type":"string"},"fieldId":{"maxLength":128,"minLength":1,"type":"string"},"fieldPath":{"maxLength":256,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"left":{"maxLength":128,"minLength":1,"type":"string"},"notAfterField":{"maxLength":128,"minLength":1,"type":"string"},"reasonCode":{"enum":["computation-error","source-data-error","disclosure-risk"],"type":"string"},"recordType":{"maxLength":128,"minLength":1,"type":"string"},"refusalCode":{"maxLength":128,"minLength":1,"type":"string"},"requiredFilters":{"items":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":32,"minItems":1,"type":"array","uniqueItems":true},"maxItems":8,"minItems":1,"type":"array"},"right":{"maxLength":128,"minLength":1,"type":"string"},"status":{"maximum":599,"minimum":400,"type":"integer"},"title":{"maxLength":128,"type":"string"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","type":"string"},"type":{"format":"uri","maxLength":256,"type":"string"}},"required":["type","title","status","detail","code","traceId"],"type":"object"},"ReviewCompletion":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":"string"},"eventId":{"format":"uuid","type":"string"},"requestId":{"format":"uuid","type":"string"},"resultId":{"format":"uuid","type":"string"},"type":{"const":"review.completed"}},"required":["type","eventId","requestId","resultId","completedAt"],"type":"object"},"action-register-contact-invoke-input":{"$id":"urn:breg:action:register-contact:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"register-contact","x-registry-requiredConditionKeys":[]},"action-register-contact-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"action-update-contact-email-availability-input":{"$id":"urn:breg:action:update-contact-email:availability-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"oneOf":[{"properties":{"input":{"properties":{"contactId":{"format":"uuid","type":"string"}},"required":["contactId"]},"targetInput":{"const":"contactId"}}}],"properties":{"input":{"additionalProperties":false,"properties":{"contactId":{"format":"uuid","type":"string"},"email":{"maxLength":254,"minLength":1,"type":"string"}},"required":[],"type":"object"},"targetInput":{"enum":["contactId"],"type":"string"}},"required":["targetInput","input"],"type":"object","x-registry-action":"update-contact-email"},"action-update-contact-email-availability-response":{"$id":"urn:breg:action:update-contact-email:availability-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"availability":{"oneOf":[{"additionalProperties":false,"properties":{"available":{"const":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"}},"required":["available","observedRevision"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"const":false},"guardLabel":{"maxLength":256,"minLength":1,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"guard-not-satisfied"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"missingInputs":{"items":{"enum":["contactId","email"],"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"input-required"},"recovery":{"const":"correct-input"}},"required":["available","observedRevision","reason","recovery","missingInputs"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"observedRevision":{"type":"null"},"reason":{"const":"not-disclosed"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"}]}},"required":["availability"],"type":"object","x-registry-action":"update-contact-email"},"action-update-contact-email-invoke-input":{"$id":"urn:breg:action:update-contact-email:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"contactId":{"format":"uuid","type":"string"},"email":{"maxLength":254,"minLength":1,"type":"string"}},"required":["contactId","email"],"type":"object"},"preconditions":{"additionalProperties":false,"properties":{"contactId":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"}},"required":["contactId"],"type":"object"}},"required":["input","preconditions"],"type":"object","x-registry-action":"update-contact-email","x-registry-requiredConditionKeys":["contactId"]},"action-update-contact-email-invoke-response":{"$id":"urn:breg:action:update-contact-email:invoke-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"action":{"const":"update-contact-email"},"applicationId":{"format":"uuid","type":"string"},"results":{"additionalProperties":false,"properties":{"contact-email":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"const":"contact"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"}},"required":["contact-email"],"type":"object"}},"required":["action","applicationId","results"],"type":"object"},"action-update-contact-email-target-conditions-input":{"$id":"urn:breg:action:update-contact-email:target-conditions-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"contactId":{"format":"uuid","type":"string"}},"required":["contactId"],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"update-contact-email","x-registry-requiredConditionKeys":["contactId"]},"action-update-contact-email-target-conditions-response":{"$id":"urn:breg:action:update-contact-email:target-conditions-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"preconditions":{"additionalProperties":false,"properties":{"contactId":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"}},"required":["contactId"],"type":"object"}},"required":["preconditions"],"type":"object","x-registry-action":"update-contact-email"},"contact":{"$id":"urn:breg:record-type:contact","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"contact-create-input":{"$id":"urn:breg:record-type:contact:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"reviewCompletion":{"description":"The review authority's configured completion key verifies the Standard Webhooks signature.","in":"header","name":"webhook-signature","type":"apiKey"}}},"info":{"title":"local-directory","version":"0.1.0"},"openapi":"3.1.0","paths":{"/v1/actions/register-contact/proposals":{"post":{"operationId":"actions.register-contact.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-contact-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-contact-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"registerContact","attachments":[],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{"description":"Create one contact through a Proposal that applies on submit without external review.","label":"Register contact"},"execution":{"application":"automatic","mode":"proposal","review":"none"},"id":"register-contact","inputMode":"fixed","inputs":[{"apiName":"name","classification":"internal","fieldType":{"maximumLength":160,"minimumLength":1,"type":"string"},"id":"name","label":"name","nullable":false,"required":true,"schema":{"maxLength":160,"minLength":1,"type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}},{"apiName":"jurisdiction","classification":"internal","fieldType":{"maximumLength":40,"minimumLength":1,"type":"string"},"id":"jurisdiction","label":"jurisdiction","nullable":false,"required":true,"schema":{"maxLength":40,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[],"requiredConditionKeys":[],"resultEffects":[{"effect":"contact","operation":"create","recordType":"contact"}],"revision":"sha256:2a81cd7c0637d4bfd3043ca4643134bde20a92d9e14ba15cd966a8e00d3e40da","route":"/v1/actions/register-contact/proposals","routes":{"availability":null,"start":{"inputSchema":"action-register-contact-invoke-input","method":"POST","operationId":"actions.register-contact.start","path":"/v1/actions/register-contact/proposals","requiresIdempotencyKey":true,"responseSchema":"action-register-contact-invoke-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/actions/update-contact-email":{"post":{"operationId":"actions.update-contact-email.invoke","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-invoke-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-invoke-response"}}},"description":"Immediate action committed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"updateContactEmail","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":"/v1/actions/update-contact-email/target-conditions","display":{"description":"Replace one contact's email address as soon as the Action is invoked.","label":"Update contact email"},"execution":{"mode":"immediate"},"id":"update-contact-email","inputMode":"fixed","inputs":[{"apiName":"contactId","classification":"internal","fieldType":{"onDelete":"restrict","target":"contact","type":"reference"},"id":"contact","label":"contactId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"contactId","input":"contact","targetRecordType":"contact"}],"requiredConditionKeys":["contactId"],"resultEffects":[{"effect":"contact-email","operation":"patch","recordType":"contact"}],"revision":"sha256:ca1bd47281413d63288eb89a49143a8e56fcee9320d904db1219ee1ec89f1066","route":"/v1/actions/update-contact-email","routes":{"availability":{"inputSchema":"action-update-contact-email-availability-input","method":"POST","operationId":"actions.update-contact-email.availability","path":"/v1/actions/update-contact-email/availability","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-availability-response"},"invoke":{"inputSchema":"action-update-contact-email-invoke-input","method":"POST","operationId":"actions.update-contact-email.invoke","path":"/v1/actions/update-contact-email","requiresIdempotencyKey":true,"responseSchema":"action-update-contact-email-invoke-response"},"targetConditions":{"inputSchema":"action-update-contact-email-target-conditions-input","method":"POST","operationId":"actions.update-contact-email.target-conditions","path":"/v1/actions/update-contact-email/target-conditions","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-target-conditions-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"invoke","x-registry-routeKind":"invoke"}},"/v1/actions/update-contact-email/availability":{"post":{"operationId":"actions.update-contact-email.availability","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-availability-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-availability-response"}}},"description":"Action availability returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"updateContactEmail","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":"/v1/actions/update-contact-email/target-conditions","display":{"description":"Replace one contact's email address as soon as the Action is invoked.","label":"Update contact email"},"execution":{"mode":"immediate"},"id":"update-contact-email","inputMode":"fixed","inputs":[{"apiName":"contactId","classification":"internal","fieldType":{"onDelete":"restrict","target":"contact","type":"reference"},"id":"contact","label":"contactId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"contactId","input":"contact","targetRecordType":"contact"}],"requiredConditionKeys":["contactId"],"resultEffects":[{"effect":"contact-email","operation":"patch","recordType":"contact"}],"revision":"sha256:ca1bd47281413d63288eb89a49143a8e56fcee9320d904db1219ee1ec89f1066","route":"/v1/actions/update-contact-email","routes":{"availability":{"inputSchema":"action-update-contact-email-availability-input","method":"POST","operationId":"actions.update-contact-email.availability","path":"/v1/actions/update-contact-email/availability","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-availability-response"},"invoke":{"inputSchema":"action-update-contact-email-invoke-input","method":"POST","operationId":"actions.update-contact-email.invoke","path":"/v1/actions/update-contact-email","requiresIdempotencyKey":true,"responseSchema":"action-update-contact-email-invoke-response"},"targetConditions":{"inputSchema":"action-update-contact-email-target-conditions-input","method":"POST","operationId":"actions.update-contact-email.target-conditions","path":"/v1/actions/update-contact-email/target-conditions","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-target-conditions-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"invoke","x-registry-routeKind":"availability"}},"/v1/actions/update-contact-email/target-conditions":{"post":{"operationId":"actions.update-contact-email.target-conditions","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-target-conditions-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-target-conditions-response"}}},"description":"Action target conditions returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"updateContactEmail","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":"/v1/actions/update-contact-email/target-conditions","display":{"description":"Replace one contact's email address as soon as the Action is invoked.","label":"Update contact email"},"execution":{"mode":"immediate"},"id":"update-contact-email","inputMode":"fixed","inputs":[{"apiName":"contactId","classification":"internal","fieldType":{"onDelete":"restrict","target":"contact","type":"reference"},"id":"contact","label":"contactId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"contactId","input":"contact","targetRecordType":"contact"}],"requiredConditionKeys":["contactId"],"resultEffects":[{"effect":"contact-email","operation":"patch","recordType":"contact"}],"revision":"sha256:ca1bd47281413d63288eb89a49143a8e56fcee9320d904db1219ee1ec89f1066","route":"/v1/actions/update-contact-email","routes":{"availability":{"inputSchema":"action-update-contact-email-availability-input","method":"POST","operationId":"actions.update-contact-email.availability","path":"/v1/actions/update-contact-email/availability","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-availability-response"},"invoke":{"inputSchema":"action-update-contact-email-invoke-input","method":"POST","operationId":"actions.update-contact-email.invoke","path":"/v1/actions/update-contact-email","requiresIdempotencyKey":true,"responseSchema":"action-update-contact-email-invoke-response"},"targetConditions":{"inputSchema":"action-update-contact-email-target-conditions-input","method":"POST","operationId":"actions.update-contact-email.target-conditions","path":"/v1/actions/update-contact-email/target-conditions","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-target-conditions-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"invoke","x-registry-routeKind":"target-conditions"}},"/v1/proposals":{"get":{"operationId":"proposals.list","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"query","name":"action","schema":{"type":"string"}},{"in":"query","name":"owner","schema":{"const":"caller"}},{"in":"query","name":"target","schema":{"format":"uuid","type":"string"}},{"in":"query","name":"state","schema":{"enum":["draft","submitted","applied","cancelled","rejected"]}},{"in":"query","name":"turn","schema":{"enum":["party","official","nobody"]}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The most items a page holds. A page may hold fewer than `limit` items, so keep paging while `nextCursor` is present.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"pendingManualApplication","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"maxItems":100,"type":"array"},"nextCursor":{"type":"string"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","query.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}":{"get":{"operationId":"proposals.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/cancel":{"post":{"operationId":"proposals.cancel","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/edit":{"post":{"operationId":"proposals.edit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:register-contact:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"register-contact","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/submissions/{submission_version}":{"get":{"operationId":"proposals.get-submission","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"submission_version","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"application":{"anyOf":[{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"state":{"const":"applied"}},"required":["state","applicationId"],"type":"object"},{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},{"type":"null"}]},"current":{"type":"boolean"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"review":{"anyOf":[{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},{"type":"null"}]},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["id","actionId","submissionVersion","current","effectDigest","review","application"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"proposal.submission-expired":{"value":{"code":"proposal.submission-expired","detail":"The review result and application receipt of the submission are no longer retained.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["proposal.submission-expired"]}},"type":"object"}]}}},"description":"The submission's review result and application receipt are no longer retained","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/submit":{"post":{"operationId":"proposals.submit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/records/contacts":{"get":{"operationId":"records.contact.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"$top","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"$skiptoken","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"directory-editor":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"directory-editor","requiredFilters":[],"selectableProperties":["email","jurisdiction","name"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.contact.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/contact-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"create","x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/contacts/{record_id}":{"get":{"operationId":"records.contact.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"get","x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordSingleV1"},"patch":{"operationId":"records.contact.patch","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Strong Registry ETag for the currently visible record representation.","in":"header","name":"If-Match","required":true,"schema":{"maxLength":256,"minLength":6,"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json-patch+json":{"schema":{"items":{"additionalProperties":false,"else":{"required":["value"]},"if":{"properties":{"op":{"const":"remove"}}},"properties":{"op":{"enum":["add","replace","remove","test"],"type":"string"},"path":{"type":"string"},"value":true},"required":["op","path"],"then":{"not":{"required":["value"]}},"type":"object"},"maxItems":128,"minItems":1,"type":"array"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record patched","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"patch","x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/review-completions":{"post":{"description":"Available when a review authority configures a completion block.","operationId":"receiveReviewCompletion","parameters":[{"in":"header","name":"Registry-Recipient-Binding","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}},{"description":"Must equal eventId.","in":"header","name":"webhook-id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"webhook-timestamp","required":true,"schema":{"pattern":"^(0|[1-9][0-9]{0,19})$","type":"string"}},{"in":"header","name":"webhook-signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCompletion"}}},"required":true},"responses":{"204":{"description":"Completion accepted or already recorded."},"400":{"description":"The completion is invalid or eventId differs from webhook-id."},"401":{"description":"The completion authority could not be authenticated.","headers":{"WWW-Authenticate":{"schema":{"const":"Registry-Signature scheme=\"standard-webhooks\", version=\"v1\"","type":"string"}}}},"413":{"description":"The completion body exceeds 2048 bytes. The response body is empty."},"415":{"description":"The request is not application/json."},"503":{"description":"The completion could not be durably recorded."}},"security":[{"reviewCompletion":[]}],"summary":"Receive a Casework review completion"}}}} \ No newline at end of file +{"components":{"schemas":{"ImmediateActionPrecondition":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"},"ImmediateActionResultReference":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"Problem":{"additionalProperties":false,"allOf":[{"if":{"properties":{"code":{"enum":["attachment.required","attachment.verification-pending","attachment.verification-rejected"]}}},"then":{"allOf":[{"else":{"properties":{"status":{"const":422}}},"if":{"properties":{"code":{"const":"attachment.verification-pending"}}},"then":{"properties":{"status":{"const":409}}}}],"properties":{"fieldPath":{"pattern":"^/attachments/[a-z][a-z0-9_-]{0,63}$","type":"string"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","fieldPath"]},"required":["fieldPath"]}},{"if":{"properties":{"code":{"const":"write.outside-boundary"}}},"then":{"properties":{"code":{"const":"write.outside-boundary"},"detail":{"const":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition."},"status":{"const":403},"title":{"const":"Forbidden"},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}},"propertyNames":{"enum":["type","title","status","detail","code","traceId","failedCheck"]}}},{"if":{"properties":{"code":{"not":{"const":"action.guard-failed"}}}},"then":{"not":{"required":["guardReason"]}}},{"if":{"properties":{"code":{"const":"action.refused"}}},"then":{"properties":{"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"const":"statistical-dataset.release-refused"}}},"then":{"properties":{"refusalCode":{"enum":["period-not-ended","before-first-period","provisional-after-final","already-withdrawn","negative-value"]},"status":{"const":422}},"required":["refusalCode"]}},{"if":{"properties":{"code":{"not":{"enum":["action.refused","statistical-dataset.release-refused"]}}}},"then":{"not":{"required":["refusalCode"]}}},{"if":{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"}}},"then":{"properties":{"status":{"const":410}},"required":["reasonCode"]}},{"if":{"properties":{"code":{"not":{"const":"statistical-dataset.version-withdrawn"}}}},"then":{"not":{"required":["reasonCode"]}}},{"if":{"properties":{"code":{"const":"access-profile.ambiguous"}}},"then":{"additionalProperties":true,"not":{"required":["failedCheck"]},"properties":{"status":{"const":400}},"required":["accessProfiles"]}},{"if":{"properties":{"code":{"not":{"const":"access-profile.ambiguous"}}}},"then":{"not":{"required":["accessProfiles"]}}},{"if":{"properties":{"code":{"const":"action.evidence-failed"}}},"then":{"properties":{"detail":{"const":"The declared Evidence dependency could not be accepted."},"fieldPath":{"pattern":"^/evidence/[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":503}}}},{"if":{"properties":{"code":{"const":"action.handler-failed"}}},"then":{"properties":{"status":{"const":500}}}},{"if":{"anyOf":[{"required":["atField"]},{"required":["notAfterField"]}]},"then":{"properties":{"code":{"const":"request.invalid"},"status":{"const":400}},"required":["atField","notAfterField"]}},{"if":{"anyOf":[{"required":["recordType"]},{"required":["fieldId"]},{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["constraintId"]},{"required":["constraintKind"]},{"required":["left"]},{"required":["right"]},{"required":["field"]}]},"required":["fieldId"]},{"not":{"required":["fieldId"]},"oneOf":[{"not":{"required":["field"]},"properties":{"constraintKind":{"const":"compare"}},"required":["left","right"]},{"not":{"anyOf":[{"required":["left"]},{"required":["right"]}]},"properties":{"constraintKind":{"enum":["int-range","vocabulary"]}},"required":["field"]}],"required":["constraintId","constraintKind"]}],"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409}},"required":["recordType"]}}],"anyOf":[{"properties":{"code":{"const":"access-profile.ambiguous"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},{"properties":{"code":{"const":"action.evidence-failed"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/evidence-failed"}}},{"properties":{"code":{"const":"action.guard-failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}}},{"properties":{"code":{"const":"action.handler-failed"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/handler-failed"}}},{"properties":{"code":{"const":"action.refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/action/refused"}}},{"properties":{"code":{"const":"attachment.content-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/content-type"}}},{"properties":{"code":{"const":"attachment.digest-mismatch"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/digest-mismatch"}}},{"properties":{"code":{"const":"attachment.limit-reached"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/limit-reached"}}},{"properties":{"code":{"const":"attachment.required"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/required"}}},{"properties":{"code":{"const":"attachment.slot-write-once"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/slot-write-once"}}},{"properties":{"code":{"const":"attachment.too-large"},"status":{"const":413},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/too-large"}}},{"properties":{"code":{"const":"attachment.verification-pending"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-pending"}}},{"properties":{"code":{"const":"attachment.verification-rejected"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/attachment/verification-rejected"}}},{"properties":{"code":{"const":"authentication.refused"},"status":{"const":401},"type":{"const":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},{"properties":{"code":{"const":"idempotency.expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},{"properties":{"code":{"const":"idempotency.key-reused"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}}},{"properties":{"code":{"const":"ingestion.chunk-mismatch"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/chunk-mismatch"}}},{"properties":{"code":{"const":"ingestion.profile-mismatch"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/profile-mismatch"}}},{"properties":{"code":{"const":"ingestion.receipt-erased"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/receipt-erased"}}},{"properties":{"code":{"const":"ingestion.run-blocked"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-blocked"}}},{"properties":{"code":{"const":"ingestion.run-not-open"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/ingestion/run-not-open"}}},{"properties":{"code":{"const":"lookup.unresolved"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/lookup/unresolved"}}},{"properties":{"code":{"const":"mutation.conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},{"properties":{"code":{"const":"precondition.failed"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},{"properties":{"code":{"const":"precondition.required"},"status":{"const":428},"type":{"const":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},{"properties":{"code":{"const":"profile.not-authorized"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},{"properties":{"code":{"const":"proposal.rejected"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},{"properties":{"code":{"const":"proposal.review-result-mismatch"},"status":{"const":412},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/review-result-mismatch"}}},{"properties":{"code":{"const":"proposal.submission-expired"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},{"properties":{"code":{"const":"query.cursor-invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}}},{"properties":{"code":{"const":"query.filter-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/filter-required"}}},{"properties":{"code":{"const":"query.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},{"properties":{"code":{"const":"request.access-reason-required"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/access-reason-required"}}},{"properties":{"code":{"const":"request.invalid"},"status":{"const":400},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},{"properties":{"code":{"const":"request.timeout"},"status":{"const":504},"type":{"const":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},{"properties":{"code":{"const":"resource.not-found"},"status":{"const":404},"type":{"const":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},{"properties":{"code":{"const":"runtime.field-encryption.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}}},{"properties":{"code":{"const":"service.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},{"properties":{"code":{"const":"source.unavailable"},"status":{"const":503},"type":{"const":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},{"properties":{"code":{"const":"statistical-dataset.domain-violation"},"status":{"const":500},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/domain-violation"}}},{"properties":{"code":{"const":"statistical-dataset.release-refused"},"status":{"const":422},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/release-refused"}}},{"properties":{"code":{"const":"statistical-dataset.version-conflict"},"status":{"const":409},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-conflict"}}},{"properties":{"code":{"const":"statistical-dataset.version-withdrawn"},"status":{"const":410},"type":{"const":"https://id.registrystack.org/problems/registry-breg/statistical-dataset/version-withdrawn"}}},{"properties":{"code":{"const":"unsupported.media-type"},"status":{"const":415},"type":{"const":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},{"properties":{"code":{"const":"write.outside-boundary"},"status":{"const":403},"type":{"const":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}}],"properties":{"accessProfiles":{"items":{"maxLength":128,"minLength":1,"type":"string"},"minItems":2,"type":"array","uniqueItems":true},"atField":{"maxLength":128,"minLength":1,"type":"string"},"code":{"enum":["access-profile.ambiguous","action.evidence-failed","action.guard-failed","action.handler-failed","action.refused","attachment.content-type","attachment.digest-mismatch","attachment.limit-reached","attachment.required","attachment.slot-write-once","attachment.too-large","attachment.verification-pending","attachment.verification-rejected","authentication.refused","idempotency.expired","idempotency.key-reused","ingestion.chunk-mismatch","ingestion.profile-mismatch","ingestion.receipt-erased","ingestion.run-blocked","ingestion.run-not-open","lookup.unresolved","mutation.conflict","precondition.failed","precondition.required","profile.not-authorized","proposal.rejected","proposal.review-result-mismatch","proposal.submission-expired","query.cursor-invalid","query.filter-required","query.invalid","request.access-reason-required","request.invalid","request.timeout","resource.not-found","runtime.field-encryption.unavailable","service.unavailable","source.unavailable","statistical-dataset.domain-violation","statistical-dataset.release-refused","statistical-dataset.version-conflict","statistical-dataset.version-withdrawn","unsupported.media-type","write.outside-boundary"],"type":"string"},"constraintId":{"maxLength":128,"minLength":1,"type":"string"},"constraintKind":{"enum":["compare","int-range","vocabulary"],"type":"string"},"detail":{"maxLength":256,"type":"string"},"failedCheck":{"description":"The check that refused the request, included only in development.","type":"string"},"field":{"maxLength":128,"minLength":1,"type":"string"},"fieldId":{"maxLength":128,"minLength":1,"type":"string"},"fieldPath":{"maxLength":256,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"left":{"maxLength":128,"minLength":1,"type":"string"},"notAfterField":{"maxLength":128,"minLength":1,"type":"string"},"reasonCode":{"enum":["computation-error","source-data-error","disclosure-risk"],"type":"string"},"recordType":{"maxLength":128,"minLength":1,"type":"string"},"refusalCode":{"maxLength":128,"minLength":1,"type":"string"},"requiredFilters":{"items":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":32,"minItems":1,"type":"array","uniqueItems":true},"maxItems":8,"minItems":1,"type":"array"},"right":{"maxLength":128,"minLength":1,"type":"string"},"status":{"maximum":599,"minimum":400,"type":"integer"},"title":{"maxLength":128,"type":"string"},"traceId":{"maxLength":32,"minLength":32,"pattern":"^[0-9a-f]{32}$","type":"string"},"type":{"format":"uri","maxLength":256,"type":"string"}},"required":["type","title","status","detail","code","traceId"],"type":"object"},"ReviewCompletion":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","type":"string"},"eventId":{"format":"uuid","type":"string"},"requestId":{"format":"uuid","type":"string"},"resultId":{"format":"uuid","type":"string"},"type":{"const":"review.completed"}},"required":["type","eventId","requestId","resultId","completedAt"],"type":"object"},"action-register-contact-invoke-input":{"$id":"urn:breg:action:register-contact:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"register-contact","x-registry-requiredConditionKeys":[]},"action-register-contact-invoke-response":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"action-update-contact-email-availability-input":{"$id":"urn:breg:action:update-contact-email:availability-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"oneOf":[{"properties":{"input":{"properties":{"contactId":{"format":"uuid","type":"string"}},"required":["contactId"]},"targetInput":{"const":"contactId"}}}],"properties":{"input":{"additionalProperties":false,"properties":{"contactId":{"format":"uuid","type":"string"},"email":{"maxLength":254,"minLength":1,"type":"string"}},"required":[],"type":"object"},"targetInput":{"enum":["contactId"],"type":"string"}},"required":["targetInput","input"],"type":"object","x-registry-action":"update-contact-email"},"action-update-contact-email-availability-response":{"$id":"urn:breg:action:update-contact-email:availability-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"availability":{"oneOf":[{"additionalProperties":false,"properties":{"available":{"const":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"}},"required":["available","observedRevision"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"const":false},"guardLabel":{"maxLength":256,"minLength":1,"type":"string"},"guardReason":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"guard-not-satisfied"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"missingInputs":{"items":{"enum":["contactId","email"],"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"observedRevision":{"format":"int64","minimum":1,"type":"integer"},"reason":{"const":"input-required"},"recovery":{"const":"correct-input"}},"required":["available","observedRevision","reason","recovery","missingInputs"],"type":"object"},{"additionalProperties":false,"properties":{"available":{"type":"null"},"observedRevision":{"type":"null"},"reason":{"const":"not-disclosed"},"recovery":{"const":"none"}},"required":["available","observedRevision","reason","recovery"],"type":"object"}]}},"required":["availability"],"type":"object","x-registry-action":"update-contact-email"},"action-update-contact-email-invoke-input":{"$id":"urn:breg:action:update-contact-email:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"contactId":{"format":"uuid","type":"string"},"email":{"maxLength":254,"minLength":1,"type":"string"}},"required":["contactId","email"],"type":"object"},"preconditions":{"additionalProperties":false,"properties":{"contactId":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"}},"required":["contactId"],"type":"object"}},"required":["input","preconditions"],"type":"object","x-registry-action":"update-contact-email","x-registry-requiredConditionKeys":["contactId"]},"action-update-contact-email-invoke-response":{"$id":"urn:breg:action:update-contact-email:invoke-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"action":{"const":"update-contact-email"},"applicationId":{"format":"uuid","type":"string"},"results":{"additionalProperties":false,"properties":{"contact-email":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"const":"contact"},"revision":{"format":"int64","minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"}},"required":["contact-email"],"type":"object"}},"required":["action","applicationId","results"],"type":"object"},"action-update-contact-email-target-conditions-input":{"$id":"urn:breg:action:update-contact-email:target-conditions-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"contactId":{"format":"uuid","type":"string"}},"required":["contactId"],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"update-contact-email","x-registry-requiredConditionKeys":["contactId"]},"action-update-contact-email-target-conditions-response":{"$id":"urn:breg:action:update-contact-email:target-conditions-response","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"preconditions":{"additionalProperties":false,"properties":{"contactId":{"additionalProperties":false,"properties":{"ifMatch":{"maxLength":256,"minLength":3,"pattern":"^\\\"[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"required":["ifMatch"],"type":"object"}},"required":["contactId"],"type":"object"}},"required":["preconditions"],"type":"object","x-registry-action":"update-contact-email"},"contact":{"$id":"urn:breg:record-type:contact","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"},"contact-create-input":{"$id":"urn:breg:record-type:contact:input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":["name","email","jurisdiction"],"type":"object","x-registry-mutationMode":"mutable"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"reviewCompletion":{"description":"The review authority's configured completion key verifies the Standard Webhooks signature.","in":"header","name":"webhook-signature","type":"apiKey"}}},"info":{"title":"local-directory","version":"0.1.0"},"openapi":"3.1.0","paths":{"/v1/actions/register-contact/proposals":{"post":{"operationId":"actions.register-contact.start","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-contact-invoke-input"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-register-contact-invoke-response"}}},"description":"Proposal created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag for the created Proposal.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Location":{"description":"Relative URL of the created Proposal.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"registerContact","attachments":[],"bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"display":{"description":"Create one contact through a Proposal that applies on submit without external review.","label":"Register contact"},"execution":{"application":"automatic","mode":"proposal","review":"none"},"id":"register-contact","inputMode":"fixed","inputs":[{"apiName":"name","classification":"internal","fieldType":{"maximumLength":160,"minimumLength":1,"type":"string"},"id":"name","label":"name","nullable":false,"required":true,"schema":{"maxLength":160,"minLength":1,"type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}},{"apiName":"jurisdiction","classification":"internal","fieldType":{"maximumLength":40,"minimumLength":1,"type":"string"},"id":"jurisdiction","label":"jurisdiction","nullable":false,"required":true,"schema":{"maxLength":40,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[],"requiredConditionKeys":[],"resultEffects":[{"effect":"contact","operation":"create","recordType":"contact"}],"revision":"sha256:2a81cd7c0637d4bfd3043ca4643134bde20a92d9e14ba15cd966a8e00d3e40da","route":"/v1/actions/register-contact/proposals","routes":{"availability":null,"start":{"inputSchema":"action-register-contact-invoke-input","method":"POST","operationId":"actions.register-contact.start","path":"/v1/actions/register-contact/proposals","requiresIdempotencyKey":true,"responseSchema":"action-register-contact-invoke-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"start","x-registry-routeKind":"invoke"}},"/v1/actions/update-contact-email":{"post":{"operationId":"actions.update-contact-email.invoke","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to the action route, selected profile, package revision, normalized action input, preconditions, and granted result contract.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-invoke-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-invoke-response"}}},"description":"Immediate action committed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"action.guard-failed":{"value":{"code":"action.guard-failed","detail":"The action guard was not satisfied.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/action/guard-failed"}},"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"updateContactEmail","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":"/v1/actions/update-contact-email/target-conditions","display":{"description":"Replace one contact's email address as soon as the Action is invoked.","label":"Update contact email"},"execution":{"mode":"immediate"},"id":"update-contact-email","inputMode":"fixed","inputs":[{"apiName":"contactId","classification":"internal","fieldType":{"onDelete":"restrict","target":"contact","type":"reference"},"id":"contact","label":"contactId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"contactId","input":"contact","targetRecordType":"contact"}],"requiredConditionKeys":["contactId"],"resultEffects":[{"effect":"contact-email","operation":"patch","recordType":"contact"}],"revision":"sha256:ca1bd47281413d63288eb89a49143a8e56fcee9320d904db1219ee1ec89f1066","route":"/v1/actions/update-contact-email","routes":{"availability":{"inputSchema":"action-update-contact-email-availability-input","method":"POST","operationId":"actions.update-contact-email.availability","path":"/v1/actions/update-contact-email/availability","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-availability-response"},"invoke":{"inputSchema":"action-update-contact-email-invoke-input","method":"POST","operationId":"actions.update-contact-email.invoke","path":"/v1/actions/update-contact-email","requiresIdempotencyKey":true,"responseSchema":"action-update-contact-email-invoke-response"},"targetConditions":{"inputSchema":"action-update-contact-email-target-conditions-input","method":"POST","operationId":"actions.update-contact-email.target-conditions","path":"/v1/actions/update-contact-email/target-conditions","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-target-conditions-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"invoke","x-registry-routeKind":"invoke"}},"/v1/actions/update-contact-email/availability":{"post":{"operationId":"actions.update-contact-email.availability","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-availability-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-availability-response"}}},"description":"Action availability returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"runtime.field-encryption.unavailable":{"value":{"code":"runtime.field-encryption.unavailable","detail":"The Registry field-encryption service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/runtime/field-encryption/unavailable"}},"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"updateContactEmail","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":"/v1/actions/update-contact-email/target-conditions","display":{"description":"Replace one contact's email address as soon as the Action is invoked.","label":"Update contact email"},"execution":{"mode":"immediate"},"id":"update-contact-email","inputMode":"fixed","inputs":[{"apiName":"contactId","classification":"internal","fieldType":{"onDelete":"restrict","target":"contact","type":"reference"},"id":"contact","label":"contactId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"contactId","input":"contact","targetRecordType":"contact"}],"requiredConditionKeys":["contactId"],"resultEffects":[{"effect":"contact-email","operation":"patch","recordType":"contact"}],"revision":"sha256:ca1bd47281413d63288eb89a49143a8e56fcee9320d904db1219ee1ec89f1066","route":"/v1/actions/update-contact-email","routes":{"availability":{"inputSchema":"action-update-contact-email-availability-input","method":"POST","operationId":"actions.update-contact-email.availability","path":"/v1/actions/update-contact-email/availability","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-availability-response"},"invoke":{"inputSchema":"action-update-contact-email-invoke-input","method":"POST","operationId":"actions.update-contact-email.invoke","path":"/v1/actions/update-contact-email","requiresIdempotencyKey":true,"responseSchema":"action-update-contact-email-invoke-response"},"targetConditions":{"inputSchema":"action-update-contact-email-target-conditions-input","method":"POST","operationId":"actions.update-contact-email.target-conditions","path":"/v1/actions/update-contact-email/target-conditions","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-target-conditions-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"invoke","x-registry-routeKind":"availability"}},"/v1/actions/update-contact-email/target-conditions":{"post":{"operationId":"actions.update-contact-email.target-conditions","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-target-conditions-input"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/action-update-contact-email-target-conditions-response"}}},"description":"Action target conditions returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-action":{"access":{"accessProfiles":["directory-editor"]},"apiName":"updateContactEmail","bounds":{"maximumFieldMutations":128,"maximumSnapshotBytes":2097152,"maximumTargets":16},"conditionRoute":"/v1/actions/update-contact-email/target-conditions","display":{"description":"Replace one contact's email address as soon as the Action is invoked.","label":"Update contact email"},"execution":{"mode":"immediate"},"id":"update-contact-email","inputMode":"fixed","inputs":[{"apiName":"contactId","classification":"internal","fieldType":{"onDelete":"restrict","target":"contact","type":"reference"},"id":"contact","label":"contactId","nullable":false,"required":true,"schema":{"format":"uuid","type":"string"}},{"apiName":"email","classification":"internal","fieldType":{"maximumLength":254,"minimumLength":1,"type":"string"},"id":"email","label":"email","nullable":false,"required":true,"schema":{"maxLength":254,"minLength":1,"type":"string"}}],"maximumInputStringBytes":null,"referenceInputs":[{"apiName":"contactId","input":"contact","targetRecordType":"contact"}],"requiredConditionKeys":["contactId"],"resultEffects":[{"effect":"contact-email","operation":"patch","recordType":"contact"}],"revision":"sha256:ca1bd47281413d63288eb89a49143a8e56fcee9320d904db1219ee1ec89f1066","route":"/v1/actions/update-contact-email","routes":{"availability":{"inputSchema":"action-update-contact-email-availability-input","method":"POST","operationId":"actions.update-contact-email.availability","path":"/v1/actions/update-contact-email/availability","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-availability-response"},"invoke":{"inputSchema":"action-update-contact-email-invoke-input","method":"POST","operationId":"actions.update-contact-email.invoke","path":"/v1/actions/update-contact-email","requiresIdempotencyKey":true,"responseSchema":"action-update-contact-email-invoke-response"},"targetConditions":{"inputSchema":"action-update-contact-email-target-conditions-input","method":"POST","operationId":"actions.update-contact-email.target-conditions","path":"/v1/actions/update-contact-email/target-conditions","requiresIdempotencyKey":false,"responseSchema":"action-update-contact-email-target-conditions-response"}}},"x-registry-defaultAccessProfile":"directory-editor","x-registry-operation":"invoke","x-registry-routeKind":"target-conditions"}},"/v1/proposals":{"get":{"operationId":"proposals.list","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"query","name":"action","schema":{"type":"string"}},{"in":"query","name":"owner","schema":{"const":"caller"}},{"in":"query","name":"target","schema":{"format":"uuid","type":"string"}},{"in":"query","name":"state","schema":{"enum":["draft","submitted","applied","cancelled","rejected"]}},{"in":"query","name":"turn","schema":{"enum":["party","official","nobody"]}},{"in":"query","name":"cursor","schema":{"type":"string"}},{"description":"The most items a page holds. A page may hold fewer than `limit` items, so keep paging while `nextCursor` is present.","in":"query","name":"limit","schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"pendingManualApplication","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"},"maxItems":100,"type":"array"},"nextCursor":{"type":"string"}},"required":["items"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","query.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}":{"get":{"operationId":"proposals.get","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/cancel":{"post":{"operationId":"proposals.cancel","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/edit":{"post":{"operationId":"proposals.edit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$id":"urn:breg:action:register-contact:invoke-input","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"required":[],"type":"object"}},"required":["input"],"type":"object","x-registry-action":"register-contact","x-registry-requiredConditionKeys":[]}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/submissions/{submission_version}":{"get":{"operationId":"proposals.get-submission","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"submission_version","required":true,"schema":{"maximum":4294967295,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"application":{"anyOf":[{"additionalProperties":false,"dependentRequired":{"appliedAt":["appliedBy"],"appliedBy":["appliedAt"]},"properties":{"applicationId":{"format":"uuid","type":"string"},"appliedAt":{"description":"Application time, present with appliedBy only when the selected profile holds get-application-actor.","format":"date-time","type":"string"},"appliedBy":{"description":"Keyed actor pseudonym, present with appliedAt only when the selected profile holds get-application-actor.","pattern":"^hmac-sha256:[0-9a-f]{64}$","type":"string"},"state":{"const":"applied"}},"required":["state","applicationId"],"type":"object"},{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},{"type":"null"}]},"current":{"type":"boolean"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"review":{"anyOf":[{"additionalProperties":false,"properties":{"availableUntil":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"resultId":{"format":"uuid","type":"string"},"state":{"enum":["pending","approved","rejected","changes-requested","answered","cancelled","superseded","expired"]}},"required":["state"],"type":"object"},{"type":"null"}]},"submissionVersion":{"maximum":4294967295,"minimum":1,"type":"integer"}},"required":["id","actionId","submissionVersion","current","effectDigest","review","application"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"proposal.submission-expired":{"value":{"code":"proposal.submission-expired","detail":"The review result and application receipt of the submission are no longer retained.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/submission-expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["proposal.submission-expired"]}},"type":"object"}]}}},"description":"The submission's review result and application receipt are no longer retained","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/proposals/{proposal_id}/submit":{"post":{"operationId":"proposals.submit","parameters":[{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"enum":["directory-editor"],"maxLength":128,"type":"string"}},{"in":"path","name":"proposal_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"If-Match","required":true,"schema":{"type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"actionId":{"type":"string"},"actionRevision":{"type":"string"},"application":{"additionalProperties":false,"properties":{"applicationId":{"format":"uuid","type":"string"},"effectDigest":{"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"resultLinks":{"items":{"additionalProperties":false,"properties":{"recordId":{"format":"uuid","type":"string"},"recordType":{"type":"string"},"revision":{"minimum":1,"type":"integer"}},"required":["recordType","recordId","revision"],"type":"object"},"maxItems":16,"type":"array"},"submissionVersion":{"minimum":1,"type":"integer"}},"required":["applicationId","submissionVersion","effectDigest","resultLinks"],"type":"object"},"applicationStatus":{"additionalProperties":false,"properties":{"automaticRetry":{"additionalProperties":false,"properties":{"attempts":{"maximum":1000,"minimum":0,"type":"integer"},"maximumAttempts":{"maximum":1000,"minimum":1,"type":"integer"},"scheduled":{"type":"boolean"}},"required":["scheduled","attempts","maximumAttempts"],"type":"object"},"mode":{"enum":["automatic","manual"]},"reason":{"enum":["package-changed","dependency-outage","lease-expired","application-refused","attempts-exhausted"]},"recovery":{"enum":["retry","rebase","revise","correct-input"]},"state":{"enum":["awaiting-review","pending","applying","blocked","applied","cancelled","rejected"]}},"required":["state","mode"],"type":"object"},"asks":{"items":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"additions":{"items":{"format":"uuid","type":"string"},"maxItems":32,"type":"array","uniqueItems":true},"answeredAt":{"format":"date-time","type":"string"},"text":{"maxLength":2000,"minLength":1,"type":"string"}},"required":["additions","answeredAt"],"type":"object"},"askedAt":{"format":"date-time","type":"string"},"dueAt":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"links":{"additionalProperties":false,"properties":{"answer":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"const":"POST"},"operation":{"const":"answer"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation","ifMatch","availability"],"type":"object"}},"type":"object"},"state":{"enum":["open","answered","expired","closed"]},"text":{"maxLength":2000,"minLength":1,"type":"string"},"wants":{"items":{"additionalProperties":false,"properties":{"kind":{"enum":["answer","document"]}},"required":["kind"],"type":"object"},"maxItems":8,"type":"array","uniqueItems":true}},"required":["id","text","wants","askedAt","state","links"],"type":"object"},"maxItems":50,"type":"array"},"attachments":{"additionalProperties":{"additionalProperties":false,"properties":{"classification":{"enum":["public","internal","restricted"]},"contentTypes":{"items":{"type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"id":{"type":"string"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","PATCH","DELETE"]},"operation":{"enum":["download","upload","remove"]},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"maximumBytes":{"maximum":16777216,"minimum":1,"type":"integer"},"required":{"type":"boolean"},"value":{"additionalProperties":false,"properties":{"byteSize":{"minimum":1,"type":"integer"},"contentType":{"type":"string"},"sha256":{"pattern":"^[a-f0-9]{64}$","type":"string"},"submissionVersion":{"minimum":0,"type":"integer"},"uploadedAt":{"type":"string"},"verificationStatus":{"enum":["notRequired","pending","approved","rejected"]}},"required":["submissionVersion","sha256","contentType","byteSize","verificationStatus"],"type":"object"}},"required":["id","required","maximumBytes","contentTypes","classification","links"],"type":"object"},"maxProperties":8,"type":"object"},"blockedReason":{"enum":["package-changed"]},"createdAt":{"format":"date-time","type":"string"},"decision":{"additionalProperties":false,"properties":{"decidedAt":{"format":"date-time","type":"string"},"publicReason":{"minLength":1,"pattern":"^[^\\u0000-\\u001F\\u007F-\\u009F]*[^\\u0000-\\u0020\\u007F-\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000][^\\u0000-\\u001F\\u007F-\\u009F]*$","type":"string","x-maximum-utf8-bytes":2000},"status":{"enum":["approved","rejected","changes-requested","answered"]}},"required":["status","decidedAt"],"type":"object"},"effectDigest":{"type":"string"},"handoffRefusal":{"additionalProperties":false,"properties":{"code":{"enum":["review.initiator-required","review.initiator-excluded","review.policy-mismatch","review.refused"]}},"required":["code"],"type":"object"},"id":{"format":"uuid","type":"string"},"input":{"type":"object"},"links":{"additionalProperties":{"additionalProperties":false,"properties":{"accessProfile":{"type":"string"},"availability":{"additionalProperties":false,"if":{"properties":{"available":{"const":false}}},"properties":{"available":{"type":"boolean"},"observedRevision":{"minimum":1,"type":"integer"},"reason":{"enum":["pending-review","review-rejected","review-changes-requested","review-ended","stale-revision","package-changed","dependency-outage","invalid-input","already-applied","limit-reached","application-pending","attachment-required","attachment-pending","ask-answered","ask-closed","ask-due-passed"]},"recovery":{"enum":["refresh","revise","retry","rebase","correct-input","receipt-only"]}},"required":["available","observedRevision"],"then":{"required":["reason","recovery"]},"type":"object"},"ifMatch":{"type":"string"},"method":{"enum":["GET","POST"]},"operation":{"type":"string"},"path":{"type":"string"}},"required":["method","path","accessProfile","operation"],"type":"object"},"type":"object"},"revision":{"minimum":1,"type":"integer"},"state":{"enum":["draft","submitted","applied","cancelled","rejected"]},"status":{"enum":["draft","awaiting-party","in-review","approved","processing","applied","rejected","cancelled"]},"submissionVersion":{"minimum":0,"type":"integer"},"title":{"maxLength":1024,"type":"string"},"turn":{"enum":["party","official","nobody"]}},"required":["id","actionId","actionRevision","submissionVersion","revision","state","turn","links"],"type":"object"}}},"description":"Authorized Proposal operation"},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["access-profile.ambiguous","request.invalid"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["authentication.refused"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["profile.not-authorized"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["resource.not-found"]}},"type":"object"}]}}},"description":"Resource unavailable to this caller","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}},"proposal.rejected":{"value":{"code":"proposal.rejected","detail":"The review rejected this Proposal, and a rejection is final. A review result of changes-requested is what lets a Proposal be revised for another attempt.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/proposal/rejected"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.key-reused","mutation.conflict","proposal.rejected"]}},"type":"object"}]}}},"description":"The Proposal was rejected, or the idempotency key was reused with a different request","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["idempotency.expired"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.failed"]}},"type":"object"}]}}},"description":"Observed authority or lifecycle condition changed, or a Record revision guard failed (`precondition.failed`); a failed field commit guard answers `action.guard-failed` when the selected profile can read it","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["unsupported.media-type"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["precondition.required"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}},"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["service.unavailable","source.unavailable"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"properties":{"code":{"enum":["request.timeout"]}},"type":"object"}]}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"x-registry-accessProfiles":["directory-editor"]}},"/v1/records/contacts":{"get":{"operationId":"records.contact.list","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Strict Registry read filter expression over compiled filterable API properties.","explode":false,"in":"query","name":"$filter","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"One compiled sortable property, ascending only.","explode":false,"in":"query","name":"$orderby","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Bounded page size.","explode":false,"in":"query","name":"limit","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer"}},{"description":"Request count when the selected compiled query profile allows it.","explode":false,"in":"query","name":"$count","required":false,"schema":{"type":"boolean"}},{"description":"Opaque continuation cursor for the next page.","explode":false,"in":"query","name":"cursor","required":false,"schema":{"maxLength":10978,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"count":{"format":"int64","minimum":0,"type":"integer"},"items":{"items":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"},"pageInfo":{"additionalProperties":false,"properties":{"nextCursor":{"maxLength":10978,"type":["string","null"]}},"required":["nextCursor"],"type":"object"}},"required":["items","pageInfo","meta","@context"],"type":"object"}}},"description":"Records returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"query.cursor-invalid":{"value":{"code":"query.cursor-invalid","detail":"The query cursor is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/cursor-invalid"}},"query.invalid":{"value":{"code":"query.invalid","detail":"The query request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/query/invalid"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"list","x-registry-queryKind":"list","x-registry-queryProfiles":{"directory-editor":{"allowCount":false,"filterableProperties":[],"kind":"list","maximumPageSize":100,"profile":"directory-editor","requiredFilters":[],"selectableProperties":["email","jurisdiction","name"],"selectorProperties":[],"sortableProperties":[],"temporal":null}},"x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordCollectionV1"},"post":{"operationId":"records.contact.create","parameters":[{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/contact-create-input"}},"required":["data"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record created","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Location":{"description":"Relative URL of the created record.","schema":{"type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"create","x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/records/contacts/{record_id}":{"get":{"operationId":"records.contact.get","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Comma-separated subset of readable API property names.","explode":false,"in":"query","name":"$select","required":false,"schema":{"maxLength":16384,"type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"additionalProperties":false,"properties":{"email":{"maxLength":254,"minLength":1,"type":"string"},"jurisdiction":{"maxLength":40,"minLength":1,"type":"string"},"name":{"maxLength":160,"minLength":1,"type":"string"}},"type":"object"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record returned","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"source.unavailable":{"value":{"code":"source.unavailable","detail":"The Registry data service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/source/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"get","x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordSingleV1"},"patch":{"operationId":"records.contact.patch","parameters":[{"description":"Canonical record UUID.","in":"path","name":"record_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Optional W3C trace context. Responses carry Registry trace context for the request.","in":"header","name":"traceparent","required":false,"schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}},{"description":"Select one compiled access profile. When omitted, the sole admitting profile or the route default is used; if several admit with no default, the route answers 400 access-profile.ambiguous.","explode":false,"in":"query","name":"accessProfile","required":false,"schema":{"maxLength":128,"type":"string"}},{"description":"Idempotency key bound to method, route, caller, target record, package revision, request body, and response field set.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[\\x21-\\x2B\\x2D-\\x3A\\x3C-\\x7E]+$","type":"string"}},{"description":"Strong Registry ETag for the currently visible record representation.","in":"header","name":"If-Match","required":true,"schema":{"maxLength":256,"minLength":6,"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},{"description":"Choose the ordinary JSON or JSON-LD Registry Record representation.","in":"header","name":"Accept","required":false,"schema":{"enum":["application/json","application/ld+json"],"type":"string"}}],"requestBody":{"content":{"application/json-patch+json":{"schema":{"items":{"additionalProperties":false,"else":{"required":["value"]},"if":{"properties":{"op":{"const":"remove"}}},"properties":{"op":{"enum":["add","replace","remove","test"],"type":"string"},"path":{"type":"string"},"value":true},"required":["op","path"],"then":{"not":{"required":["value"]}},"type":"object"},"maxItems":128,"minItems":1,"type":"array"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta"],"type":"object"}},"application/ld+json":{"schema":{"additionalProperties":false,"properties":{"@context":{"const":"https://id.registrystack.org/contexts/registry-record/v1"},"data":{"additionalProperties":false,"properties":{"domainData":{"$ref":"#/components/schemas/contact"},"recordId":{"format":"uuid","type":"string"},"revisionId":{"pattern":"^[1-9][0-9]*$","type":"string"}},"required":["recordId","revisionId","domainData"],"type":"object"},"meta":{"additionalProperties":false,"properties":{"datasetId":{"const":"directory"},"recordTypeId":{"const":"contact"},"registryId":{"const":"local-directory"}},"required":["registryId","datasetId","recordTypeId"],"type":"object"}},"required":["data","meta","@context"],"type":"object"}}},"description":"Record patched","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"ETag":{"description":"Strong Registry ETag bound to the record, package revision, caller profile, and response field set.","schema":{"pattern":"^\\\"breg-[\\x21\\x23-\\x7E]+\\\"$","type":"string"}},"Link":{"description":"Emitted only for application/json and application/ld+json Registry Record responses and omitted for application/geo+json. Carries the Registry Record profile and caller-visible record type schema. The describedby target includes the configured deployment prefix and is never derived from Host or forwarded headers.","schema":{"example":"; rel=\"profile\", ; rel=\"describedby\"","type":"string"}},"Vary":{"description":"Responses vary by authorization and negotiated representation.","schema":{"type":"string"}},"traceparent":{"description":"Trace context for this response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"400":{"content":{"application/problem+json":{"examples":{"access-profile.ambiguous":{"value":{"accessProfiles":["profile-a","profile-b"],"code":"access-profile.ambiguous","detail":"Multiple access profiles admit this request on this route; select one with accessProfile.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous"}},"request.invalid":{"value":{"code":"request.invalid","detail":"The request is invalid.","status":400,"title":"Bad Request","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/invalid"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"401":{"content":{"application/problem+json":{"examples":{"authentication.refused":{"value":{"code":"authentication.refused","detail":"The bearer token or delivery signature was not accepted.","status":401,"title":"Unauthorized","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/authentication/refused"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"WWW-Authenticate":{"description":"The authentication scheme the route accepts. The challenge is the same for every refused credential.","schema":{"const":"Bearer","type":"string"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"403":{"content":{"application/problem+json":{"examples":{"profile.not-authorized":{"value":{"code":"profile.not-authorized","detail":"No access profile admits this caller for this request.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/profile/not-authorized"}},"write.outside-boundary":{"value":{"code":"write.outside-boundary","detail":"The write falls outside what the selected access profile may write: its row boundary or a disclosure condition.","status":403,"title":"Forbidden","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/write/outside-boundary"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"404":{"content":{"application/problem+json":{"examples":{"resource.not-found":{"value":{"code":"resource.not-found","detail":"The requested resource was not found.","status":404,"title":"Not Found","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/resource/not-found"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"409":{"content":{"application/problem+json":{"examples":{"idempotency.key-reused":{"value":{"code":"idempotency.key-reused","detail":"The idempotency key is bound to another request.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/key-reused"}},"mutation.conflict":{"value":{"code":"mutation.conflict","detail":"The mutation conflicts with current state.","status":409,"title":"Conflict","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/mutation/conflict"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"410":{"content":{"application/problem+json":{"examples":{"idempotency.expired":{"value":{"code":"idempotency.expired","detail":"The held response of the idempotency key expired; the key stays spent.","status":410,"title":"Gone","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/idempotency/expired"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"412":{"content":{"application/problem+json":{"examples":{"precondition.failed":{"value":{"code":"precondition.failed","detail":"The mutation precondition failed.","status":412,"title":"Precondition Failed","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/failed"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"415":{"content":{"application/problem+json":{"examples":{"unsupported.media-type":{"value":{"code":"unsupported.media-type","detail":"The request media type is not supported.","status":415,"title":"Unsupported Media Type","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/unsupported/media-type"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"428":{"content":{"application/problem+json":{"examples":{"precondition.required":{"value":{"code":"precondition.required","detail":"The mutation precondition is required.","status":428,"title":"Precondition Required","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/precondition/required"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"503":{"content":{"application/problem+json":{"examples":{"service.unavailable":{"value":{"code":"service.unavailable","detail":"The Registry mutation service is unavailable.","status":503,"title":"Service Unavailable","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/service/unavailable"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}},"504":{"content":{"application/problem+json":{"examples":{"request.timeout":{"value":{"code":"request.timeout","detail":"The request timed out.","status":504,"title":"Gateway Timeout","traceId":"11111111111111111111111111111111","type":"https://id.registrystack.org/problems/registry-breg/request/timeout"}}},"schema":{"$ref":"#/components/schemas/Problem"}}},"description":"Problem response","headers":{"Cache-Control":{"description":"Caller-dependent responses must not be stored.","schema":{"const":"no-store"}},"traceparent":{"description":"Trace context for this problem response.","example":"00-11111111111111111111111111111111-2222222222222222-01","schema":{"maxLength":55,"minLength":55,"pattern":"^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","type":"string"}}}}},"security":[{"bearerAuth":[]}],"x-registry-accessProfiles":["directory-editor"],"x-registry-operation":"patch","x-registry-recordType":"contact","x-registry-responseProfile":"https://id.registrystack.org/profiles/registry-record/v1","x-registry-responseRecordType":"contact","x-registry-responseShape":"RegistryRecordSingleV1"}},"/v1/review-completions":{"post":{"description":"Available when a review authority configures a completion block.","operationId":"receiveReviewCompletion","parameters":[{"in":"header","name":"Registry-Recipient-Binding","required":true,"schema":{"maxLength":256,"minLength":1,"type":"string"}},{"description":"Must equal eventId.","in":"header","name":"webhook-id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"header","name":"webhook-timestamp","required":true,"schema":{"pattern":"^(0|[1-9][0-9]{0,19})$","type":"string"}},{"in":"header","name":"webhook-signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCompletion"}}},"required":true},"responses":{"204":{"description":"Completion accepted or already recorded."},"400":{"description":"The completion is invalid or eventId differs from webhook-id."},"401":{"description":"The completion authority could not be authenticated.","headers":{"WWW-Authenticate":{"schema":{"const":"Registry-Signature scheme=\"standard-webhooks\", version=\"v1\"","type":"string"}}}},"413":{"description":"The completion body exceeds 2048 bytes. The response body is empty."},"415":{"description":"The request is not application/json."},"503":{"description":"The completion could not be durably recorded."}},"security":[{"reviewCompletion":[]}],"summary":"Receive a Casework review completion"}}}} \ No newline at end of file diff --git a/products/breg/generated/minimal/generated/sdk/project.py b/products/breg/generated/minimal/generated/sdk/project.py index d4f92d8bba..93d7f20442 100644 --- a/products/breg/generated/minimal/generated/sdk/project.py +++ b/products/breg/generated/minimal/generated/sdk/project.py @@ -112,7 +112,7 @@ def _read(self, record_type: str, identifier: str) -> RecordView[Any]: result = self._native.get_record(_definitions['records'][record_type]['route'], identifier, access_profile=self._profile) return self._view(record_type, result['value']['data']) - def related(self, record_type: str, identifier: str, relationship: str, top: int = 50) -> Any: + def related(self, record_type: str, identifier: str, relationship: str, limit: int = 50) -> Any: relation = _definitions['relationships'][record_type][relationship] source = self._read(record_type, identifier) if relation['kind'] == 'forward': @@ -124,9 +124,9 @@ def related(self, record_type: str, identifier: str, relationship: str, top: int if str(UUID(identifier)) != identifier: raise ValueError('Record identifier is invalid') if relation['kind'] == 'join': - result = self._native.list_relationship_records(_definitions['records'][record_type]['route'], identifier, relation['path'], access_profile=self._profile, top=top) + result = self._native.list_relationship_records(_definitions['records'][record_type]['route'], identifier, relation['path'], access_profile=self._profile, limit=limit) else: - result = self._native.list_records(_definitions['records'][relation['target']]['route'], access_profile=self._profile, top=top, filter=f"{relation['field']} eq '{identifier}'") + result = self._native.list_records(_definitions['records'][relation['target']]['route'], access_profile=self._profile, limit=limit, filter=f"{relation['field']} eq '{identifier}'") def page(result: Any) -> Page[RecordView[Any]]: value: Page[RecordView[Any]] = {'items': [cast(RecordView[Any], self._view(relation['target'], item)) for item in result['value']['items']]} continuation = result.get('continuation') diff --git a/products/breg/generated/minimal/generated/sdk/project.ts b/products/breg/generated/minimal/generated/sdk/project.ts index 9952cf9da4..15d1340665 100644 --- a/products/breg/generated/minimal/generated/sdk/project.ts +++ b/products/breg/generated/minimal/generated/sdk/project.ts @@ -66,7 +66,7 @@ export class ProjectClient { const result = await this.native.getRecord(definitions.records[recordType].route, id, {accessProfile: this.profile}); return this.view(recordType, result.value.data); } - async related(recordType: K, id: string, relationship: R, top = 50): Promise { + async related(recordType: K, id: string, relationship: R, limit = 50): Promise { const relation = definitions.relationships[recordType]?.[String(relationship)]; if (!relation) throw new TypeError('Relationship is not in the compiled project contract'); const source = await this.read(recordType as keyof ProjectRecords, id); @@ -86,8 +86,8 @@ export class ProjectClient { next: result.continuation ? async () => page(await resume(result.continuation!), resume) : undefined, }); const result = relation.kind === 'join' - ? page(await this.native.listRelationshipRecords(definitions.records[recordType].route, id, relation.path!, {accessProfile: this.profile, top}), continuation => this.native.continueRelationshipList(continuation)) - : page(await this.native.listRecords(definitions.records[relation.target].route, {accessProfile: this.profile, top, filter: `${relation.field} eq '${id}'`}), continuation => this.native.continueList(continuation)); + ? page(await this.native.listRelationshipRecords(definitions.records[recordType].route, id, relation.path!, {accessProfile: this.profile, limit}), continuation => this.native.continueRelationshipList(continuation)) + : page(await this.native.listRecords(definitions.records[relation.target].route, {accessProfile: this.profile, limit, filter: `${relation.field} eq '${id}'`}), continuation => this.native.continueList(continuation)); if (relation.cardinality === 'one') { if (result.items.length !== 1 || result.next) throw new TypeError('Required relationship did not resolve exactly one readable record'); return result.items[0] as ProjectRelationships[K][R]; diff --git a/products/breg/loadtest/external-views/scale_exercise.py b/products/breg/loadtest/external-views/scale_exercise.py index e1fa7972c2..2a04f425f3 100644 --- a/products/breg/loadtest/external-views/scale_exercise.py +++ b/products/breg/loadtest/external-views/scale_exercise.py @@ -306,7 +306,7 @@ def person_covered(origin, headers, query, count): def holdings_covered(origin, headers): for parent in (1, 2): status, document = request(origin, HOLDINGS_VIEW + "/records/" + root_id(parent, business=True), headers, - query={"accessProfile": "officer", "$count": "true", "$top": "1"}) + query={"accessProfile": "officer", "$count": "true", "limit": "1"}) if not (status == 200 and isinstance(document, dict) and document.get("count") == RELATED_ROWS): return False return True @@ -471,7 +471,7 @@ def run_scale(work, package, origin, tokens, source, plan_log, binaries, managed descending = ordered_oracle(descending=True, limit=2 * READ_PAGE_SIZE, corpus=corpus) initial = {"$filter": "family-name eq 'Cohort'", "$orderby": "family-name", - "$count": "true", "$top": str(READ_PAGE_SIZE)} + "$count": "true", "limit": str(READ_PAGE_SIZE)} print("Waiting for the in-process refresh worker to fill both indexed views", flush=True) started = time.monotonic() wait_ready(lambda: person_covered(origin, officer, initial, len(exact)), @@ -500,29 +500,29 @@ def run_scale(work, package, origin, tokens, source, plan_log, binaries, managed exact[:READ_PAGE_SIZE], corpus) expect(document.get("count") == len(exact), "native surname count differed from the oracle") for offset in range(READ_PAGE_SIZE, len(exact), READ_PAGE_SIZE): - document = person_page(observe(origin, PERSON_VIEW + "/records", {"$skiptoken": document["nextCursor"]}, + document = person_page(observe(origin, PERSON_VIEW + "/records", {"cursor": document["nextCursor"]}, officer, timing, "exact-continuation"), exact[offset:offset + READ_PAGE_SIZE], corpus) expect("nextCursor" not in document, "native surname results have additional rows") for direction, expected in (("asc", ascending), ("desc", descending)): - query = {"$orderby": f"family-name {direction}", "$top": str(READ_PAGE_SIZE), "$count": "true"} + query = {"$orderby": f"family-name {direction}", "limit": str(READ_PAGE_SIZE), "$count": "true"} document = person_page(observe(origin, PERSON_VIEW + "/records", query, officer, timing, "ordered-first"), expected[:READ_PAGE_SIZE], corpus) expect(document.get("count") == corpus.roots, "the native root count included denied roots") - person_page(observe(origin, PERSON_VIEW + "/records", {"$skiptoken": document["nextCursor"]}, + person_page(observe(origin, PERSON_VIEW + "/records", {"cursor": document["nextCursor"]}, officer, timing, "ordered-continuation"), expected[READ_PAGE_SIZE:], corpus) document = person_page(observe(origin, PERSON_VIEW + "/records", { "$filter": "family-name eq null", "$orderby": "family-name desc", - "$top": str(READ_PAGE_SIZE), "$count": "true", + "limit": str(READ_PAGE_SIZE), "$count": "true", }, officer, timing, "missing-sort-first"), absent[:READ_PAGE_SIZE], corpus) expect(document.get("count") == len(absent), "authorized missing-value count differed from the oracle") - person_page(observe(origin, PERSON_VIEW + "/records", {"$skiptoken": document["nextCursor"]}, + person_page(observe(origin, PERSON_VIEW + "/records", {"cursor": document["nextCursor"]}, officer, timing, "missing-sort-continuation"), absent[READ_PAGE_SIZE:2 * READ_PAGE_SIZE], corpus) for parent in (1, 2): path = HOLDINGS_VIEW + "/records/" + root_id(parent, business=True) all_counts = holding_oracle(parent) - related_query = {"$orderby": "share-count asc", "$count": "true", "$top": str(READ_PAGE_SIZE)} + related_query = {"$orderby": "share-count asc", "$count": "true", "limit": str(READ_PAGE_SIZE)} row_ids = [] for offset in range(0, len(all_counts), READ_PAGE_SIZE): response = observe(origin, path, related_query, officer, timing, "related-snapshot") @@ -531,16 +531,16 @@ def run_scale(work, package, origin, tokens, source, plan_log, binaries, managed if offset == 0: expect(document.get("count") == len(all_counts), "complete related count differed from the oracle") if offset + READ_PAGE_SIZE < len(all_counts): - related_query = {"$skiptoken": document["nextCursor"]} + related_query = {"cursor": document["nextCursor"]} expect("nextCursor" not in document and len(set(row_ids)) == len(all_counts), "complete related pages repeated or omitted stable row identities") expected = list(reversed(holding_oracle(parent, "common"))) document = holding_page(observe(origin, path, {"$filter": "share-class eq 'common'", "$orderby": "share-count desc", "$count": "true", - "$top": str(READ_PAGE_SIZE)}, officer, timing, "related-first"), + "limit": str(READ_PAGE_SIZE)}, officer, timing, "related-first"), expected[:READ_PAGE_SIZE]) expect(document.get("count") == len(expected), "related count differed from the parent oracle") - holding_page(observe(origin, path, {"$skiptoken": document["nextCursor"]}, officer, timing, + holding_page(observe(origin, path, {"cursor": document["nextCursor"]}, officer, timing, "related-continuation"), expected[READ_PAGE_SIZE:]) for parent in (3, 4): expect(observe(origin, HOLDINGS_VIEW + "/records/" + root_id(parent, business=True), {}, diff --git a/products/breg/loadtest/lib/workload.js b/products/breg/loadtest/lib/workload.js index 030a3b7c6b..d48bed8b02 100644 --- a/products/breg/loadtest/lib/workload.js +++ b/products/breg/loadtest/lib/workload.js @@ -72,7 +72,7 @@ export class Workload { // The de-duplication search shape: find one record by its unique code. const filter = encodeURIComponent(`establishmentCode eq '${code}'`); const response = http.get( - `${this.baseUrl}/v1/records/establishments?accessProfile=business-operator&$filter=${filter}&$top=1`, + `${this.baseUrl}/v1/records/establishments?accessProfile=business-operator&$filter=${filter}&limit=1`, { headers: headers(token), tags: { name: 'lookup_by_code' } } ); check(response, { 'lookup status 200': (r) => r.status === 200 }); @@ -94,7 +94,7 @@ export class Workload { const kind = ['production', 'warehouse', 'office'][Math.floor(this.random() * 3)]; const filter = encodeURIComponent(`establishmentKind eq '${kind}'`); const response = http.get( - `${this.baseUrl}/v1/records/establishments?accessProfile=business-operator&$filter=${filter}&$orderby=establishmentCode&$top=50`, + `${this.baseUrl}/v1/records/establishments?accessProfile=business-operator&$filter=${filter}&$orderby=establishmentCode&limit=50`, { headers: headers(token), tags: { name: 'filtered_list' } } ); check(response, { 'list status 200': (r) => r.status === 200 }); @@ -102,7 +102,7 @@ export class Workload { const body = response.json(); const cursor = body && body.pageInfo && body.pageInfo.nextCursor; if (cursor) { - const next = `${this.baseUrl}/v1/records/establishments?accessProfile=business-operator&$skiptoken=${encodeURIComponent(cursor)}`; + const next = `${this.baseUrl}/v1/records/establishments?accessProfile=business-operator&cursor=${encodeURIComponent(cursor)}`; const follow = http.get(next, { headers: headers(token), tags: { name: 'filtered_list_page2' } }); check(follow, { 'page-2 status 200': (r) => r.status === 200 }); if (follow.status === 200) cursorPagesFollowed.add(1); diff --git a/products/breg/loadtest/support/test_harness.py b/products/breg/loadtest/support/test_harness.py index 45e2d93907..84911a5e49 100644 --- a/products/breg/loadtest/support/test_harness.py +++ b/products/breg/loadtest/support/test_harness.py @@ -44,7 +44,7 @@ def test_profiles_pin_held_sweep_and_burst_recovery(self) -> None: steady = (loadtest / "profiles/steady.js").read_text(encoding="utf-8") runner = (loadtest / "run.sh").read_text(encoding="utf-8") self.assertIn("body.pageInfo.nextCursor", workload) - self.assertIn("$skiptoken=", workload) + self.assertIn("cursor=", workload) self.assertIn("executor: 'constant-arrival-rate'", sweep) self.assertNotIn("ramping-arrival-rate", sweep) self.assertIn("recovery:", burst) @@ -145,7 +145,7 @@ def log_message(self, _format: str, *args: object) -> None: thread.join(timeout=5) self.assertEqual(len(requests), 2) self.assertIn("$filter", requests[0]) - self.assertEqual(requests[1], {"accessProfile": ["business-operator"], "$skiptoken": ["cursor-value"]}) + self.assertEqual(requests[1], {"accessProfile": ["business-operator"], "cursor": ["cursor-value"]}) def test_load_environment_prepares_one_dev_client_and_preserves_existing_output(self) -> None: fixture = REPOSITORY / "products/breg/acceptance/business-establishments" diff --git a/products/breg/scripts/test_check_client_capabilities.py b/products/breg/scripts/test_check_client_capabilities.py index 8cf088e32d..3043e56840 100644 --- a/products/breg/scripts/test_check_client_capabilities.py +++ b/products/breg/scripts/test_check_client_capabilities.py @@ -61,9 +61,11 @@ def test_bbox_is_refused_on_shared_temporal_and_relationship_options(self): "export interface CollectionOptions extends RecordProjectionOptions {\n bbox?: BoundingBox | null", ) widened_python = python.replace( - " path_route: str,\n *,\n top: int | None = None,", - " path_route: str,\n *,\n bbox: tuple[str, str, str, str] | None = None,\n top: int | None = None,", + " path_route: str,\n *,\n limit: int | None = None,", + " path_route: str,\n *,\n bbox: tuple[str, str, str, str] | None = None,\n limit: int | None = None,", ) + self.assertNotEqual(node, widened_node, "the Node fixture edit must apply") + self.assertNotEqual(python, widened_python, "the Python fixture edit must apply") errors = CHECK.check_query_option_bindings( inventory, rust, widened_node, widened_python ) diff --git a/products/breg/scripts/test_generated_gates.py b/products/breg/scripts/test_generated_gates.py index 376ff48367..a68b4bc672 100755 --- a/products/breg/scripts/test_generated_gates.py +++ b/products/breg/scripts/test_generated_gates.py @@ -223,13 +223,22 @@ def test_editor_schemas_expose_native_breg_without_retired_aliases(self) -> None for name in ("registry-project.schema.json", "registry-module.schema.json"): schema = json.loads((authoring / name).read_text()) properties = schema["properties"] - self.assertTrue({"recordTypes", "valueTypes", "functions", "actions"} <= properties.keys(), name) + self.assertTrue({"recordTypes", "valueTypes", "actionPlans", "actions"} <= properties.keys(), name) + self.assertNotIn("functions", properties) self.assertNotIn("entities", properties) self.assertNotIn("extendEntities", properties) action = properties["actions"]["additionalProperties"]["properties"] self.assertLessEqual({"plan", "execution", "commitGuards"}, action.keys()) self.assertNotIn("handler", action) self.assertNotIn("effects", action) + plan_variants = { + variant["properties"]["type"]["const"]: variant + for variant in schema["$defs"]["ActionPlanSource"]["oneOf"] + } + self.assertEqual(set(plan_variants), {"fixed", "scripted"}) + scripted = plan_variants["scripted"] + self.assertIn("actionPlan", scripted["required"]) + self.assertNotIn("function", scripted["properties"]) if name == "registry-project.schema.json": permissions = schema["$defs"]["ProposalPermissionSource"]["properties"] self.assertLessEqual( diff --git a/products/breg/wasm-handler-sdk/admission/src/lib.rs b/products/breg/wasm-handler-sdk/admission/src/lib.rs index c0de468730..0857ed4ea0 100644 --- a/products/breg/wasm-handler-sdk/admission/src/lib.rs +++ b/products/breg/wasm-handler-sdk/admission/src/lib.rs @@ -24,10 +24,10 @@ use std::path::PathBuf; -use registry_breg::compiler::{CompileProfile, compile_project_with_assets}; -use registry_breg::contract::{ModuleAssetSource, parse_project_json}; +use registry_breg::compiler::{compile_project_with_assets, CompileProfile}; +use registry_breg::contract::{parse_project_json, ModuleAssetSource}; use registry_platform_script::wasm::{Backend, Budgets, Executor}; -use serde_json::{Value, json}; +use serde_json::{json, Value}; /// Every module produced by `scripts/build.sh`, as `(file name, bytes)`. /// Fails with instructions when no artifact exists. @@ -109,14 +109,14 @@ pub fn phone_project() -> Value { {"id":"phone","apiName":"phone","type":"string","maximumLength":32,"required":true,"classification":"restricted"} ] }}, - "functions":{"phone-plan": {"runtime":"wasm","source":"wasm/handler.wasm","entrypoint":"handle","abi":"registry.action-plan/v1"}}, + "actionPlans":{"phone-plan": {"runtime":"wasm","source":"wasm/handler.wasm","entrypoint":"handle","abi":"registry.action-plan/v1"}}, "actions":{"normalize-phone": {"execution":{"mode":"immediate"}, "inputs":[ {"id":"raw-phone","apiName":"rawPhone","type":"string","maximumLength":64,"required":true,"classification":"restricted"}, {"id":"default-region","apiName":"defaultRegion","type":"string","maximumLength":64,"required":true,"classification":"restricted"} ], "plan":{ - "type":"function","function":"phone-plan","inputs":["raw-phone","default-region"], + "type":"scripted","actionPlan":"phone-plan","inputs":["raw-phone","default-region"], "refusals":[ {"code":"invalid-phone","label":"The phone number is not a valid phone number."}, {"code":"invalid-region","label":"The region is not a usable phone region."} diff --git a/products/casework/CHANGELOG.md b/products/casework/CHANGELOG.md index ad4e263f4d..365cf965af 100644 --- a/products/casework/CHANGELOG.md +++ b/products/casework/CHANGELOG.md @@ -2,6 +2,13 @@ ## Unreleased +- BREAKING: Generated Casework clients use lower-camel-case `path` keys. + Replace `policy_id`, `request_id`, `ask_id`, `task_id`, `grant_id`, `event_id`, + `team_id`, and `absence_id` with `policyId`, `requestId`, `askId`, `taskId`, + `grantId`, `eventId`, `teamId`, and `absenceId`, respectively. On the holiday + revision route, replace `id` and `revision` with `holidayId` and + `holidayRevision`. Operation names and concrete HTTP URLs stay the same. + ## 0.49.0 - 2026-12-01 - The generated TypeScript client classifies declared, traced empty 404 and 410 responses as `RegistryError` refusals with an HTTP status. This covers Review Ask reads and answers, Decision Draft reads and Review Result reads. Handle these errors by inspecting `kind` and `status` when `problem` is absent. diff --git a/products/casework/generated/registry-casework.openapi.json b/products/casework/generated/registry-casework.openapi.json index f490837492..51f855982a 100644 --- a/products/casework/generated/registry-casework.openapi.json +++ b/products/casework/generated/registry-casework.openapi.json @@ -1534,6 +1534,10 @@ "detail": { "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "type": "integer" }, @@ -7228,7 +7232,7 @@ "summary": "List delegated staff review tasks" } }, - "/v1/delegated-staff/review-tasks/{task_id}/context": { + "/v1/delegated-staff/review-tasks/{taskId}/context": { "get": { "operationId": "getDelegatedStaffReviewTaskContext", "parameters": [ @@ -7270,7 +7274,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -8519,7 +8523,7 @@ "summary": "Create absence" } }, - "/v1/directory/absences/{absence_id}": { + "/v1/directory/absences/{absenceId}": { "delete": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "deleteAbsence", @@ -8549,7 +8553,7 @@ { "description": "", "in": "path", - "name": "absence_id", + "name": "absenceId", "required": true, "schema": { "format": "uuid", @@ -8931,7 +8935,7 @@ { "description": "", "in": "path", - "name": "absence_id", + "name": "absenceId", "required": true, "schema": { "format": "uuid", @@ -11737,7 +11741,7 @@ "summary": "Create holiday revision" } }, - "/v1/directory/holidays/{id}/revisions/{revision}": { + "/v1/directory/holidays/{holidayId}/revisions/{holidayRevision}": { "get": { "operationId": "getHolidayRevision", "parameters": [ @@ -11766,7 +11770,7 @@ { "description": "", "in": "path", - "name": "id", + "name": "holidayId", "required": true, "schema": { "maxLength": 128, @@ -11779,7 +11783,7 @@ { "description": "", "in": "path", - "name": "revision", + "name": "holidayRevision", "required": true, "schema": { "minimum": 1, @@ -12393,7 +12397,7 @@ "summary": "List directory targets" } }, - "/v1/directory/teams/{team_id}": { + "/v1/directory/teams/{teamId}": { "put": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "updateDirectoryTeam", @@ -12423,7 +12427,7 @@ { "description": "", "in": "path", - "name": "team_id", + "name": "teamId", "required": true, "schema": { "maxLength": 128, @@ -12810,7 +12814,7 @@ "summary": "Update directory team" } }, - "/v1/review-accountability/{event_id}": { + "/v1/review-accountability/{eventId}": { "get": { "operationId": "getReviewAccountability", "parameters": [ @@ -12839,7 +12843,7 @@ { "description": "", "in": "path", - "name": "event_id", + "name": "eventId", "required": true, "schema": { "format": "uuid", @@ -13684,7 +13688,7 @@ "summary": "List review policies" } }, - "/v1/review-policies/{policy_id}": { + "/v1/review-policies/{policyId}": { "get": { "operationId": "getReviewPolicy", "parameters": [ @@ -13713,7 +13717,7 @@ { "description": "", "in": "path", - "name": "policy_id", + "name": "policyId", "required": true, "schema": { "maxLength": 128, @@ -14418,7 +14422,7 @@ "summary": "Create or recover review request" } }, - "/v1/review-requests/{request_id}": { + "/v1/review-requests/{requestId}": { "get": { "operationId": "getReviewRequest", "parameters": [ @@ -14447,7 +14451,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -14725,7 +14729,7 @@ "summary": "Get review request" } }, - "/v1/review-requests/{request_id}/asks/{ask_id}": { + "/v1/review-requests/{requestId}/asks/{askId}": { "get": { "operationId": "getReviewAsk", "parameters": [ @@ -14754,7 +14758,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -14764,7 +14768,7 @@ { "description": "", "in": "path", - "name": "ask_id", + "name": "askId", "required": true, "schema": { "format": "uuid", @@ -15027,7 +15031,7 @@ "summary": "Get review ask" } }, - "/v1/review-requests/{request_id}/asks/{ask_id}/answer": { + "/v1/review-requests/{requestId}/asks/{askId}/answer": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "answerReviewAsk", @@ -15057,7 +15061,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -15067,7 +15071,7 @@ { "description": "", "in": "path", - "name": "ask_id", + "name": "askId", "required": true, "schema": { "format": "uuid", @@ -15333,7 +15337,7 @@ "summary": "Answer review ask" } }, - "/v1/review-requests/{request_id}/cancel": { + "/v1/review-requests/{requestId}/cancel": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "cancelReviewRequest", @@ -15363,7 +15367,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -15737,7 +15741,7 @@ "summary": "Cancel review request" } }, - "/v1/review-requests/{request_id}/clocks": { + "/v1/review-requests/{requestId}/clocks": { "get": { "operationId": "getReviewClocks", "parameters": [ @@ -15791,7 +15795,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -16053,7 +16057,7 @@ "summary": "Get review clocks" } }, - "/v1/review-requests/{request_id}/history": { + "/v1/review-requests/{requestId}/history": { "get": { "operationId": "getReviewHistory", "parameters": [ @@ -16107,7 +16111,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -16390,7 +16394,7 @@ "summary": "Get review history" } }, - "/v1/review-requests/{request_id}/notes": { + "/v1/review-requests/{requestId}/notes": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "addReviewNote", @@ -16445,7 +16449,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -16819,7 +16823,7 @@ "summary": "Add review note" } }, - "/v1/review-requests/{request_id}/result": { + "/v1/review-requests/{requestId}/result": { "get": { "operationId": "getReviewResult", "parameters": [ @@ -16848,7 +16852,7 @@ { "description": "", "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "format": "uuid", @@ -19504,7 +19508,7 @@ "summary": "List supervisory review tasks" } }, - "/v1/review-tasks/{task_id}": { + "/v1/review-tasks/{taskId}": { "get": { "operationId": "getReviewTask", "parameters": [ @@ -19558,7 +19562,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -19820,7 +19824,7 @@ "summary": "Get review task" } }, - "/v1/review-tasks/{task_id}/asks": { + "/v1/review-tasks/{taskId}/asks": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "askApplicant", @@ -19875,7 +19879,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -20236,7 +20240,7 @@ "summary": "Ask applicant" } }, - "/v1/review-tasks/{task_id}/assign": { + "/v1/review-tasks/{taskId}/assign": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "assignReviewTask", @@ -20291,7 +20295,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -20675,7 +20679,7 @@ "summary": "Assign review task" } }, - "/v1/review-tasks/{task_id}/claim": { + "/v1/review-tasks/{taskId}/claim": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "claimReviewTask", @@ -20730,7 +20734,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -21091,7 +21095,7 @@ "summary": "Claim review task" } }, - "/v1/review-tasks/{task_id}/context": { + "/v1/review-tasks/{taskId}/context": { "get": { "operationId": "getReviewTaskContext", "parameters": [ @@ -21145,7 +21149,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -21407,7 +21411,7 @@ "summary": "Get review task context" } }, - "/v1/review-tasks/{task_id}/decisions": { + "/v1/review-tasks/{taskId}/decisions": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "decideReviewTask", @@ -21462,7 +21466,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -21860,7 +21864,7 @@ "summary": "Decide review task" } }, - "/v1/review-tasks/{task_id}/delegate": { + "/v1/review-tasks/{taskId}/delegate": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "delegateReviewTask", @@ -21915,7 +21919,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -22299,7 +22303,7 @@ "summary": "Delegate review task" } }, - "/v1/review-tasks/{task_id}/draft": { + "/v1/review-tasks/{taskId}/draft": { "delete": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "deleteReviewDecisionDraft", @@ -22354,7 +22358,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -22760,7 +22764,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -23076,7 +23080,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -23460,7 +23464,7 @@ "summary": "Save review decision draft" } }, - "/v1/review-tasks/{task_id}/release": { + "/v1/review-tasks/{taskId}/release": { "post": { "description": "Recovery repeats the exact request and caller-supplied idempotency key. Clients do not retry mutations implicitly.", "operationId": "releaseReviewTask", @@ -23490,7 +23494,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -23816,7 +23820,7 @@ "summary": "Release review task" } }, - "/v1/review-tasks/{task_id}/task-grants": { + "/v1/review-tasks/{taskId}/task-grants": { "get": { "operationId": "listReviewTaskGrants", "parameters": [ @@ -23870,7 +23874,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -24185,7 +24189,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -24569,7 +24573,7 @@ "summary": "Approve review task grant" } }, - "/v1/review-tasks/{task_id}/task-grants/{grant_id}/revoke": { + "/v1/review-tasks/{taskId}/task-grants/{grantId}/revoke": { "post": { "operationId": "revokeReviewTaskGrant", "parameters": [ @@ -24598,7 +24602,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -24608,7 +24612,7 @@ { "description": "", "in": "path", - "name": "grant_id", + "name": "grantId", "required": true, "schema": { "format": "uuid", @@ -24947,7 +24951,7 @@ "summary": "Revoke review task grant" } }, - "/v1/review-tasks/{task_id}/task-templates": { + "/v1/review-tasks/{taskId}/task-templates": { "get": { "operationId": "previewReviewTaskTemplates", "parameters": [ @@ -25001,7 +25005,7 @@ { "description": "", "in": "path", - "name": "task_id", + "name": "taskId", "required": true, "schema": { "format": "uuid", @@ -25263,7 +25267,7 @@ "summary": "Preview review task templates" } }, - "/v1/task-grants/{grant_id}/assertion": { + "/v1/task-grants/{grantId}/assertion": { "post": { "operationId": "getTaskAssertion", "parameters": [ @@ -25279,7 +25283,7 @@ { "description": "", "in": "path", - "name": "grant_id", + "name": "grantId", "required": true, "schema": { "format": "uuid", @@ -25615,7 +25619,7 @@ "summary": "Get task assertion" } }, - "/v1/task-grants/{grant_id}/status": { + "/v1/task-grants/{grantId}/status": { "get": { "operationId": "getTaskGrantStatus", "parameters": [ @@ -25631,7 +25635,7 @@ { "description": "", "in": "path", - "name": "grant_id", + "name": "grantId", "required": true, "schema": { "format": "uuid", diff --git a/products/casework/scripts/generate_openapi.py b/products/casework/scripts/generate_openapi.py index 2538a6fa9b..f136748ccd 100644 --- a/products/casework/scripts/generate_openapi.py +++ b/products/casework/scripts/generate_openapi.py @@ -185,7 +185,10 @@ def problem_component_name(code: str) -> str: def problem_schemas(entries: list[dict]) -> dict: text={"type":"string"} - base=object_schema({"type":text,"title":text,"status":{"type":"integer"},"detail":text,"code":text,"traceId":text},["type","title","status","detail","code","traceId"]) + base=object_schema({ + "type":text,"title":text,"status":{"type":"integer"},"detail":text,"code":text,"traceId":text, + "failedCheck":{"type":"string","description":"The check that refused the request, included only in development."}, + },["type","title","status","detail","code","traceId"]) result={"Problem":base} for entry in entries: uri=entry["uri"] @@ -390,11 +393,41 @@ def scalar(value):return "'"+str(value).replace("'","''")+"'" lines.append(" - ["+", ".join(map(scalar,["`"+entry["code"]+"`",statuses,entry["description"]]))+"]") return existing[:table.start()]+"\n".join(lines)+"\n"+existing[table.end():] +def publish_path_parameters(openapi: dict) -> None: + # Source verification keys routes by their literal Rust templates. Expose + # the public parameter names once the runtime and example checks pass. + names = { + "policy_id": "policyId", + "request_id": "requestId", + "ask_id": "askId", + "task_id": "taskId", + "grant_id": "grantId", + "event_id": "eventId", + "team_id": "teamId", + "absence_id": "absenceId", + } + paths = {} + for path, operations in openapi["paths"].items(): + path_names = names + if path == "/v1/directory/holidays/{id}/revisions/{revision}": + path_names = {"id": "holidayId", "revision": "holidayRevision"} + for authored, published in path_names.items(): + path = path.replace("{" + authored + "}", "{" + published + "}") + for operation in operations.values(): + for parameter in operation.get("parameters", []): + if parameter["in"] == "path": + name = parameter["name"] + parameter["name"] = path_names.get(name, name) + paths[path] = operations + openapi["paths"] = paths + + def main() -> int: parser=argparse.ArgumentParser();parser.add_argument("--check",action="store_true");args=parser.parse_args() try: wire=load_wire_schemas(ROOT);contract=load_rust_contract(ROOT);openapi=document(contract,wire) verify_source(ROOT,openapi);validate_wire_examples(ROOT,openapi,contract["reviewWireExamples"]) + publish_path_parameters(openapi) files={OUTPUT:json.dumps(openapi,indent=2,sort_keys=True)+"\n"} for name,content in wire["projectDocuments"].items():files[ROOT/"products/casework/generated/project"/name]=content for name,content in wire["offlineDocuments"].items():files[ROOT/"products/casework/generated"/name]=content diff --git a/products/casework/scripts/test_generate_openapi.py b/products/casework/scripts/test_generate_openapi.py index 3d99a0f02d..c34604b256 100644 --- a/products/casework/scripts/test_generate_openapi.py +++ b/products/casework/scripts/test_generate_openapi.py @@ -4,6 +4,7 @@ import copy import importlib.util import json +import re import sys import unittest from pathlib import Path @@ -21,9 +22,28 @@ def contract(): return {"entries":entries,"operations":operations,"frameworkProblems":[],"reviewWireExamples":{}} class PublishedReleaseContractTests(unittest.TestCase): + def test_public_path_names_match_required_parameters(self): + document = json.loads(GEN.OUTPUT.read_text()) + expected_names = { + "policyId", "requestId", "askId", "taskId", "grantId", "eventId", + "teamId", "absenceId", "holidayId", "holidayRevision", + } + actual_names = set() + for path, operations in document["paths"].items(): + names = re.findall(r"\{([^}]+)\}", path) + actual_names.update(names) + for operation in operations.values(): + parameters = [item for item in operation.get("parameters", []) if item["in"] == "path"] + self.assertEqual([(item["name"], item["required"]) for item in parameters], + [(name, True) for name in names], path) + self.assertEqual(actual_names, expected_names) + holiday = document["paths"]["/v1/directory/holidays/{holidayId}/revisions/{holidayRevision}"]["get"] + self.assertEqual([item["schema"]["type"] for item in holiday["parameters"] if item["in"] == "path"], + ["string", "integer"]) + def test_release_refuses_source_headers_without_advertising_source_reads(self): document = json.loads(GEN.OUTPUT.read_text()) - release = document["paths"]["/v1/review-tasks/{task_id}/release"]["post"] + release = document["paths"]["/v1/review-tasks/{taskId}/release"]["post"] headers = {parameter["name"] for parameter in release["parameters"] if parameter["in"] == "header"} self.assertEqual(headers, {"If-Match", "Idempotency-Key", "traceparent"}) queries = {parameter["name"]: parameter for parameter in release["parameters"] if parameter["in"] == "query"} @@ -43,6 +63,21 @@ def test_release_refuses_source_headers_without_advertising_source_reads(self): ) +class ProblemSchemaTests(unittest.TestCase): + def test_development_failed_check_is_optional_and_ambiguity_is_untagged(self): + schemas = GEN.problem_schemas(contract()["entries"] + [{ + "code": "access-profile.ambiguous", + "uri": "https://id.registrystack.org/problems/registry-casework/access-profile/ambiguous", + "title": "Access profile is ambiguous", + "description": "More than one access profile applies.", + "httpStatuses": [400], + }]) + envelope = schemas["Problem"] + self.assertEqual("string", envelope["properties"]["failedCheck"]["type"]) + self.assertNotIn("failedCheck", envelope["required"]) + self.assertNotIn("failedCheck", schemas["ProblemAccessProfileAmbiguous"]["properties"]) + + class GeneratedContractTests(unittest.TestCase): @classmethod def setUpClass(cls): diff --git a/products/casework/scripts/test_product_contracts.py b/products/casework/scripts/test_product_contracts.py index 9359e560ba..c5cc46a2d2 100644 --- a/products/casework/scripts/test_product_contracts.py +++ b/products/casework/scripts/test_product_contracts.py @@ -130,10 +130,10 @@ def test_selector_free_routes_do_not_advertise_access_profile_ambiguity(self): document = json.loads((PRODUCT / "generated/registry-casework.openapi.json").read_text()) paths = document["paths"] selector_free = [ - ("post", "/v1/task-grants/{grant_id}/assertion"), - ("get", "/v1/task-grants/{grant_id}/status"), + ("post", "/v1/task-grants/{grantId}/assertion"), + ("get", "/v1/task-grants/{grantId}/status"), ("get", "/v1/delegated-staff/review-tasks"), - ("get", "/v1/delegated-staff/review-tasks/{task_id}/context"), + ("get", "/v1/delegated-staff/review-tasks/{taskId}/context"), ] for method, path in selector_free: with self.subTest(route=f"{method.upper()} {path}"): diff --git a/products/coordinator/AGENTS.md b/products/coordinator/AGENTS.md index 8ca991b8c2..548afa576e 100644 --- a/products/coordinator/AGENTS.md +++ b/products/coordinator/AGENTS.md @@ -36,8 +36,8 @@ receives the call, which decides it under its own authorization. that contract. Wake-ups only advance an eligible authoritative read and start no run. Keep the durable observation floor, budget, correlation, and original deadline intact across recovery. -- Keep the canonical authoring separation: contracts, types, named pure Functions, - local exact Operation aliases, and one Workflow graph. Functions take one typed +- Keep the canonical authoring separation: contracts, types, named pure Transforms, + local exact Operation aliases, and one Workflow graph. Transforms take one typed object of named inputs and gain no I/O capability. Runtime uses one tagged connections map. Each exact verified client identity resolves one access profile, which scopes run actions through workflows. Start requires the expected workflowRevision. diff --git a/products/coordinator/CHANGELOG.md b/products/coordinator/CHANGELOG.md index b0d0a6f445..3158be686d 100644 --- a/products/coordinator/CHANGELOG.md +++ b/products/coordinator/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +- BREAKING: Generated Coordinator clients use `workflowId`, `triggerId`, and `runId` in + `path` arguments. Replace `workflow`, `trigger`, and `run` when calling the generated + methods. Operation names and concrete HTTP URLs stay the same. +- BREAKING: Name the bounded Rhai computations in a Coordinator workflow Transforms. Rename `functions` to `transforms` and use `type: transform` with a `transform` member in mappings. Use `coordinatorctl explain transforms` for the interpreter helpers and update diagnostic consumers from `coordinator.function.*` to `coordinator.transform.*`. Retained definition snapshots keep their reader and revision format. + ## 0.49.0 - 2026-12-01 - BREAKING: BReg record operation outputs use `revisionId` and the updated Registry Record metadata names. Migration: update workflow mappings and fixture replies, then recompile against the regenerated operation contracts. diff --git a/products/coordinator/examples/applications-registry/registry.yaml b/products/coordinator/examples/applications-registry/registry.yaml index 63e1f91383..ea5aa8fbb4 100644 --- a/products/coordinator/examples/applications-registry/registry.yaml +++ b/products/coordinator/examples/applications-registry/registry.yaml @@ -18,7 +18,7 @@ recordTypes: - {id: owner, type: string, required: true, maximumLength: 80, classification: internal} - {id: information-requested, apiName: informationRequested, type: boolean, required: true, classification: internal} - {id: reason, type: string, required: false, minimumLength: 1, maximumLength: 256, classification: internal} -functions: +actionPlans: request-information-plan: runtime: rhai source: scripts/request-information.rhai @@ -31,8 +31,8 @@ actions: - {id: application, apiName: applicationId, type: reference, target: application, required: true, classification: internal} - {id: reason, type: string, required: true, minimumLength: 1, maximumLength: 256, classification: internal} plan: - type: function - function: request-information-plan + type: scripted + actionPlan: request-information-plan inputs: [application, reason] refusals: - {code: invalid-reason, label: The information request requires a nonblank reason.} diff --git a/products/coordinator/examples/decision-follow-up/README.md b/products/coordinator/examples/decision-follow-up/README.md index 02d0359e5a..fc1f38383e 100644 --- a/products/coordinator/examples/decision-follow-up/README.md +++ b/products/coordinator/examples/decision-follow-up/README.md @@ -77,5 +77,5 @@ cp /tmp/applications-actions/generated/action-contracts.json \ ``` Review a changed contract before packaging a new workflow version. -Functions declare named input schemas and take one object of those inputs; they do not select +Transforms declare named input schemas and take one object of those inputs; they do not select transport credentials or replace the imported Action contract. diff --git a/products/coordinator/examples/decision-follow-up/workflow.yaml b/products/coordinator/examples/decision-follow-up/workflow.yaml index 7a06a1f976..68aa6f1002 100644 --- a/products/coordinator/examples/decision-follow-up/workflow.yaml +++ b/products/coordinator/examples/decision-follow-up/workflow.yaml @@ -23,7 +23,7 @@ contracts: applications: type: breg source: generated/applications.contract.json -functions: +transforms: assessment-request: runtime: rhai source: functions.rhai @@ -75,8 +75,8 @@ workflow: type: call operation: assessor-evaluate-decision input: - type: function - function: assessment-request + type: transform + transform: assessment-request inputs: input: type: input @@ -84,8 +84,8 @@ workflow: route: type: choose choose: - type: function - function: assessment-route + type: transform + transform: assessment-route inputs: reply: type: step @@ -98,8 +98,8 @@ workflow: type: call operation: applications-invoke-breg-action input: - type: function - function: action-request + type: transform + transform: action-request inputs: input: type: input diff --git a/products/coordinator/examples/deferred-appointment/workflow.yaml b/products/coordinator/examples/deferred-appointment/workflow.yaml index 13e5058a63..6e9c0b16fe 100644 --- a/products/coordinator/examples/deferred-appointment/workflow.yaml +++ b/products/coordinator/examples/deferred-appointment/workflow.yaml @@ -40,7 +40,7 @@ types: expiresAt: type: integer minimum: 1 -functions: +transforms: appointment-route: runtime: rhai source: functions.rhai @@ -129,8 +129,8 @@ workflow: eligibility: type: choose choose: - type: function - function: appointment-route + type: transform + transform: appointment-route inputs: record: type: step @@ -173,8 +173,8 @@ workflow: capacity: type: choose choose: - type: function - function: capacity-route + type: transform + transform: capacity-route inputs: availability: type: step @@ -186,8 +186,8 @@ workflow: type: call operation: bookings-create-appointment input: - type: function - function: booking-request + type: transform + transform: booking-request inputs: input: type: input @@ -202,8 +202,8 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: input: type: input diff --git a/products/coordinator/examples/delayed-follow-up/workflow.yaml b/products/coordinator/examples/delayed-follow-up/workflow.yaml index d7aaa06e93..163c28a75c 100644 --- a/products/coordinator/examples/delayed-follow-up/workflow.yaml +++ b/products/coordinator/examples/delayed-follow-up/workflow.yaml @@ -18,7 +18,7 @@ types: sendAfter: type: string format: date-time -functions: +transforms: notice-route: runtime: rhai source: functions.rhai @@ -77,8 +77,8 @@ workflow: permission: type: choose choose: - type: function - function: notice-route + type: transform + transform: notice-route inputs: record: type: step @@ -90,8 +90,8 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: input: type: input diff --git a/products/coordinator/examples/earlier-appointment-alerts/workflow.yaml b/products/coordinator/examples/earlier-appointment-alerts/workflow.yaml index 282c245a2b..9b18615820 100644 --- a/products/coordinator/examples/earlier-appointment-alerts/workflow.yaml +++ b/products/coordinator/examples/earlier-appointment-alerts/workflow.yaml @@ -28,7 +28,7 @@ contracts: notice-templates: type: messaging source: generated/notices.contract.json -functions: +transforms: source-route: runtime: rhai source: functions.rhai @@ -155,8 +155,8 @@ workflow: source-state: type: choose choose: - type: function - function: source-route + type: transform + transform: source-route inputs: {subscription: {type: step, step: read-subscription}} cases: inspect: read-appointment @@ -167,8 +167,8 @@ workflow: type: call operation: scheduling-read-appointment input: - type: function - function: appointment-request + type: transform + transform: appointment-request inputs: input: {type: input} subscription: {type: step, step: read-subscription} @@ -176,8 +176,8 @@ workflow: appointment-state: type: choose choose: - type: function - function: appointment-route + type: transform + transform: appointment-route inputs: subscription: {type: step, step: read-subscription} appointment: {type: step, step: read-appointment} @@ -186,30 +186,30 @@ workflow: type: call operation: scheduling-preview-availability input: - type: function - function: preview-request + type: transform + transform: preview-request inputs: {subscription: {type: step, step: read-subscription}} next: capacity capacity: type: choose choose: - type: function - function: capacity-route + type: transform + transform: capacity-route inputs: {preview: {type: step, step: preview}} cases: {available: claim-state, unavailable: no-capacity} claim-state: type: choose choose: - type: function - function: claim-route + type: transform + transform: claim-route inputs: {subscription: {type: step, step: read-subscription}} cases: {claim: claim, resume: read-current-subscription} claim: type: call operation: alerts-claim input: - type: function - function: claim-request + type: transform + transform: claim-request inputs: {subscription: {type: step, step: read-subscription}} next: read-current-subscription read-current-subscription: @@ -225,8 +225,8 @@ workflow: type: call operation: scheduling-read-appointment input: - type: function - function: appointment-request + type: transform + transform: appointment-request inputs: input: {type: input} subscription: {type: step, step: read-current-subscription} @@ -234,8 +234,8 @@ workflow: final-state: type: choose choose: - type: function - function: final-route + type: transform + transform: final-route inputs: subscription: {type: step, step: read-current-subscription} appointment: {type: step, step: read-current-appointment} @@ -244,23 +244,23 @@ workflow: type: call operation: scheduling-preview-availability input: - type: function - function: preview-request + type: transform + transform: preview-request inputs: {subscription: {type: step, step: read-current-subscription}} next: final-capacity final-capacity: type: choose choose: - type: function - function: capacity-route + type: transform + transform: capacity-route inputs: {preview: {type: step, step: final-preview}} cases: {available: authorize-dispatch, unavailable: capacity-changed} authorize-dispatch: type: call operation: alerts-authorize-dispatch input: - type: function - function: authorize-request + type: transform + transform: authorize-request inputs: {subscription: {type: step, step: read-current-subscription}} next: read-dispatching-subscription read-dispatching-subscription: @@ -276,8 +276,8 @@ workflow: type: call operation: scheduling-read-appointment input: - type: function - function: appointment-request + type: transform + transform: appointment-request inputs: input: {type: input} subscription: {type: step, step: read-dispatching-subscription} @@ -285,8 +285,8 @@ workflow: dispatch-state: type: choose choose: - type: function - function: dispatch-route + type: transform + transform: dispatch-route inputs: subscription: {type: step, step: read-dispatching-subscription} appointment: {type: step, step: read-dispatching-appointment} @@ -295,16 +295,16 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: {subscription: {type: step, step: read-dispatching-subscription}} next: record-submission record-submission: type: call operation: alerts-record-submission input: - type: function - function: completion-request + type: transform + transform: completion-request inputs: subscription: {type: step, step: read-dispatching-subscription} message: {type: step, step: notify} diff --git a/products/coordinator/examples/external-directory/workflow.yaml b/products/coordinator/examples/external-directory/workflow.yaml index 62c5800893..91d8c55c8f 100644 --- a/products/coordinator/examples/external-directory/workflow.yaml +++ b/products/coordinator/examples/external-directory/workflow.yaml @@ -17,7 +17,7 @@ types: type: string minLength: 1 maxLength: 128 -functions: +transforms: lookup-request: runtime: rhai source: functions.rhai @@ -54,8 +54,8 @@ workflow: type: call operation: directory-external-get input: - type: function - function: lookup-request + type: transform + transform: lookup-request inputs: input: type: input @@ -63,8 +63,8 @@ workflow: result: type: choose choose: - type: function - function: office-route + type: transform + transform: office-route inputs: reply: type: step diff --git a/products/coordinator/examples/external-job/README.md b/products/coordinator/examples/external-job/README.md index 1e34f05720..f0c768ba36 100644 --- a/products/coordinator/examples/external-job/README.md +++ b/products/coordinator/examples/external-job/README.md @@ -11,11 +11,11 @@ coordinatorctl test --project products/coordinator/examples/external-job ``` The `read-job` Operation alias uses `external.get/v1`, specializes its response schema, and exposes -a named `terminal` completion. Its `bounded-poll` declaration names pure Function `job-observation` +a named `terminal` completion. Its `bounded-poll` declaration names pure Transform `job-observation` and a 30-second interval. The workflow reads once, then waits on `completion: {step: read, name: terminal}` for up to 600 seconds within a 900-second run deadline. -The request Function takes one named-input object and selects only the configured `jobs/status` +The request Transform takes one named-input object and selects only the configured `jobs/status` path and `id` query parameter. The interpreter receives the saved original `command` and latest validated `response`. It checks the job ID, returns `pending` for queued/running, `complete` with a typed job result for succeeded, or a declared `external-job-failed` refusal for failed. diff --git a/products/coordinator/examples/external-job/workflow.yaml b/products/coordinator/examples/external-job/workflow.yaml index a98c40d9ad..eec46cfdbb 100644 --- a/products/coordinator/examples/external-job/workflow.yaml +++ b/products/coordinator/examples/external-job/workflow.yaml @@ -50,7 +50,7 @@ types: state: {type: string, const: refused} code: {type: string, enum: [external-job-failed]} -functions: +transforms: job-request: runtime: rhai source: functions.rhai @@ -88,8 +88,8 @@ workflow: type: call operation: read-job input: - type: function - function: job-request + type: transform + transform: job-request inputs: request: {type: input} next: await-terminal diff --git a/products/coordinator/examples/governed-action-follow-up/README.md b/products/coordinator/examples/governed-action-follow-up/README.md index 6d0b753375..be48b94a67 100644 --- a/products/coordinator/examples/governed-action-follow-up/README.md +++ b/products/coordinator/examples/governed-action-follow-up/README.md @@ -96,5 +96,5 @@ cp /tmp/applications-actions/generated/action-contracts.json \ ``` Review a changed contract before packaging a new workflow version. -Functions declare named input schemas and take one object of those inputs; they do not select +Transforms declare named input schemas and take one object of those inputs; they do not select transport credentials or replace the imported Action contract. diff --git a/products/coordinator/examples/governed-action-follow-up/workflow.yaml b/products/coordinator/examples/governed-action-follow-up/workflow.yaml index 2417e1d8ef..68a5167ab0 100644 --- a/products/coordinator/examples/governed-action-follow-up/workflow.yaml +++ b/products/coordinator/examples/governed-action-follow-up/workflow.yaml @@ -18,7 +18,7 @@ contracts: applications: type: breg source: generated/applications.contract.json -functions: +transforms: information-route: runtime: rhai source: functions.rhai @@ -88,8 +88,8 @@ workflow: needs-information: type: choose choose: - type: function - function: information-route + type: transform + transform: information-route inputs: record: type: step @@ -101,8 +101,8 @@ workflow: type: call operation: applications-invoke-breg-action input: - type: function - function: action-request + type: transform + transform: action-request inputs: input: type: input @@ -115,8 +115,8 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: record: type: step diff --git a/products/coordinator/examples/invitation-booking/accept-invitation/workflow.yaml b/products/coordinator/examples/invitation-booking/accept-invitation/workflow.yaml index abbfcf22a9..87f43a7694 100644 --- a/products/coordinator/examples/invitation-booking/accept-invitation/workflow.yaml +++ b/products/coordinator/examples/invitation-booking/accept-invitation/workflow.yaml @@ -22,7 +22,7 @@ contracts: invitations: type: breg source: generated/invitations.contract.json -functions: +transforms: invitation-route: runtime: rhai source: functions.rhai @@ -131,8 +131,8 @@ workflow: current-state: type: choose choose: - type: function - function: invitation-route + type: transform + transform: invitation-route inputs: invitation: {type: step, step: read-invitation} cases: @@ -147,8 +147,8 @@ workflow: type: call operation: invitations-claim input: - type: function - function: claim-request + type: transform + transform: claim-request inputs: input: {type: input} next: read-claimed-invitation @@ -170,16 +170,16 @@ workflow: type: call operation: catalogue-read-availability input: - type: function - function: availability-request + type: transform + transform: availability-request inputs: invitation: {type: step, step: read-claimed-invitation} next: capacity capacity: type: choose choose: - type: function - function: capacity-route + type: transform + transform: capacity-route inputs: availability: {type: step, step: availability} cases: @@ -189,8 +189,8 @@ workflow: type: call operation: invitations-record-no-capacity input: - type: function - function: record-no-capacity-request + type: transform + transform: record-no-capacity-request inputs: invitation: {type: step, step: read-claimed-invitation} next: no-capacity @@ -198,8 +198,8 @@ workflow: type: call operation: book-appointment input: - type: function - function: booking-request + type: transform + transform: booking-request inputs: input: {type: input} invitation: {type: step, step: read-claimed-invitation} @@ -210,8 +210,8 @@ workflow: type: call operation: invitations-record-booking-result input: - type: function - function: record-result-request + type: transform + transform: record-result-request inputs: invitation: {type: step, step: read-claimed-invitation} appointment: {type: step, step: book} @@ -220,8 +220,8 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: invitation: {type: step, step: read-claimed-invitation} appointment: {type: step, step: book} diff --git a/products/coordinator/examples/invitation-booking/issue-invitation/workflow.yaml b/products/coordinator/examples/invitation-booking/issue-invitation/workflow.yaml index 9a0a8ebfd0..8fa14404da 100644 --- a/products/coordinator/examples/invitation-booking/issue-invitation/workflow.yaml +++ b/products/coordinator/examples/invitation-booking/issue-invitation/workflow.yaml @@ -27,7 +27,7 @@ contracts: invitations: type: breg source: generated/invitations.contract.json -functions: +transforms: issue-request: runtime: rhai source: functions.rhai @@ -62,8 +62,8 @@ workflow: type: call operation: invitations-issue input: - type: function - function: issue-request + type: transform + transform: issue-request inputs: input: {type: input} next: read-invitation @@ -80,8 +80,8 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: invitation: {type: step, step: read-invitation} next: accepted diff --git a/products/coordinator/examples/reservation-review/request-only/workflow.yaml b/products/coordinator/examples/reservation-review/request-only/workflow.yaml index bd31b3aeb1..19bbd4c272 100644 --- a/products/coordinator/examples/reservation-review/request-only/workflow.yaml +++ b/products/coordinator/examples/reservation-review/request-only/workflow.yaml @@ -23,7 +23,7 @@ types: expiresAt: {type: integer, minimum: 1} contracts: reservations: {type: breg, source: generated/reservations.contract.json} -functions: +transforms: review-request: runtime: rhai source: functions.rhai @@ -133,7 +133,7 @@ workflow: submit-review: type: call operation: review-submit - input: {type: function, function: review-request, inputs: {input: {type: input}, reservation: {type: step, step: read-source}}} + input: {type: transform, transform: review-request, inputs: {input: {type: input}, reservation: {type: step, step: read-source}}} next: await-review await-review: type: wait-for @@ -149,12 +149,12 @@ workflow: record-rejected: type: call operation: source-review-rejected - input: {type: function, function: source-rejection-request, inputs: {input: {type: input}, result: {type: step, step: await-review}}} + input: {type: transform, transform: source-rejection-request, inputs: {input: {type: input}, result: {type: step, step: await-review}}} next: rejected record-approved: type: call operation: source-review-approved - input: {type: function, function: source-decision-request, inputs: {input: {type: input}, result: {type: step, step: await-review}}} + input: {type: transform, transform: source-decision-request, inputs: {input: {type: input}, result: {type: step, step: await-review}}} next: await-agreement-fixture await-agreement-fixture: type: wait-until @@ -167,12 +167,12 @@ workflow: record-agreement-failed: type: call operation: source-agreement-failed - input: {type: function, function: agreement-failed-request, inputs: {input: {type: input}}} + input: {type: transform, transform: agreement-failed-request, inputs: {input: {type: input}}} next: agreement-failed record-agreement-completed: type: call operation: source-agreement-completed - input: {type: function, function: agreement-completed-request, inputs: {input: {type: input}}} + input: {type: transform, transform: agreement-completed-request, inputs: {input: {type: input}}} next: read-after-agreement read-after-agreement: type: call @@ -187,17 +187,17 @@ workflow: book: type: call operation: scheduling-book - input: {type: function, function: booking-request, inputs: {input: {type: input}, reservation: {type: step, step: read-after-agreement}, metadata: {type: step, step: metadata}}} + input: {type: transform, transform: booking-request, inputs: {input: {type: input}, reservation: {type: step, step: read-after-agreement}, metadata: {type: step, step: metadata}}} next: record-confirmed record-confirmed: type: call operation: source-record-confirmed - input: {type: function, function: record-confirmation-request, inputs: {input: {type: input}, appointment: {type: step, step: book}}} + input: {type: transform, transform: record-confirmation-request, inputs: {input: {type: input}, appointment: {type: step, step: book}}} next: notify notify: type: call operation: notices-submit - input: {type: function, function: notice-request, inputs: {input: {type: input}, reservation: {type: step, step: read-after-agreement}, appointment: {type: step, step: book}}} + input: {type: transform, transform: notice-request, inputs: {input: {type: input}, reservation: {type: step, step: read-after-agreement}, appointment: {type: step, step: book}}} next: confirmed cancel-review-timeout: type: call @@ -212,12 +212,12 @@ workflow: record-withdrawal-after-timeout: type: call operation: source-withdraw - input: {type: function, function: withdrawal-request, inputs: {input: {type: input}}} + input: {type: transform, transform: withdrawal-request, inputs: {input: {type: input}}} next: review-withdrawn record-withdrawal-after-cancel: type: call operation: source-withdraw - input: {type: function, function: withdrawal-request, inputs: {input: {type: input}}} + input: {type: transform, transform: withdrawal-request, inputs: {input: {type: input}}} next: review-withdrawn confirmed: type: finish diff --git a/products/coordinator/examples/reviewed-notice/workflow.yaml b/products/coordinator/examples/reviewed-notice/workflow.yaml index cba135d3fc..df320a1737 100644 --- a/products/coordinator/examples/reviewed-notice/workflow.yaml +++ b/products/coordinator/examples/reviewed-notice/workflow.yaml @@ -23,7 +23,7 @@ types: applicationDigest: type: string pattern: ^sha256:[0-9a-f]{64}$ -functions: +transforms: review-subject-route: runtime: rhai source: functions.rhai @@ -114,8 +114,8 @@ workflow: verify-review-subject: type: choose choose: - type: function - function: review-subject-route + type: transform + transform: review-subject-route inputs: input: type: input @@ -129,8 +129,8 @@ workflow: type: call operation: review-submit-review-request input: - type: function - function: review-request + type: transform + transform: review-request inputs: input: type: input @@ -176,8 +176,8 @@ workflow: verify-notice: type: choose choose: - type: function - function: notice-route + type: transform + transform: notice-route inputs: input: type: input @@ -192,8 +192,8 @@ workflow: type: call operation: notices-submit-message input: - type: function - function: notice-request + type: transform + transform: notice-request inputs: input: type: input diff --git a/products/coordinator/generated/fixture/fixture.schema.json b/products/coordinator/generated/fixture/fixture.schema.json index 3d92772d5c..511d1dc962 100644 --- a/products/coordinator/generated/fixture/fixture.schema.json +++ b/products/coordinator/generated/fixture/fixture.schema.json @@ -102,7 +102,7 @@ }, { "additionalProperties": false, - "description": "The product returned a package-declared, no-effect business refusal.\nA supported call takes its `onDeclaredRefusal` edge when it has one;\notherwise the run stops as refused. An `external.command/v1` step\ntakes a `response` reply instead, which its interpretation Function\nmay turn into a declared refusal.", + "description": "The product returned a package-declared, no-effect business refusal.\nA supported call takes its `onDeclaredRefusal` edge when it has one;\notherwise the run stops as refused. An `external.command/v1` step\ntakes a `response` reply instead, which its interpretation Transform\nmay turn into a declared refusal.", "properties": { "refusalCode": { "$ref": "#/$defs/DeclaredRefusalCode", @@ -140,7 +140,7 @@ }, { "additionalProperties": false, - "description": "The provider answered an `external.command/v1` call with `value`. The\noperation's pinned interpretation Function turns it into an accepted\nresult, a declared refusal or an uncertain outcome, as it would at run\ntime. The status must be one the worker hands to that Function: a\nredirect, a 429 or a 5xx never reaches it, so a fixture models those\nwith an `uncertain` or `retryable` reply.", + "description": "The provider answered an `external.command/v1` call with `value`. The\noperation's pinned interpretation Transform turns it into an accepted\nresult, a declared refusal or an uncertain outcome, as it would at run\ntime. The status must be one the worker hands to that Transform: a\nredirect, a 429 or a 5xx never reaches it, so a fixture models those\nwith an `uncertain` or `retryable` reply.", "properties": { "type": { "const": "response", @@ -196,7 +196,7 @@ }, { "additionalProperties": false, - "description": "The host repeats the accepted external read and interprets these\nsynthetic typed responses under the completion's named Function.", + "description": "The host repeats the accepted external read and interprets these\nsynthetic typed responses under the completion's named Transform.", "properties": { "responses": { "description": "One to 128 bounded response objects in observation order.", diff --git a/products/coordinator/generated/openapi/coordinator.openapi.json b/products/coordinator/generated/openapi/coordinator.openapi.json index 787e91fdaf..330352adfd 100644 --- a/products/coordinator/generated/openapi/coordinator.openapi.json +++ b/products/coordinator/generated/openapi/coordinator.openapi.json @@ -593,6 +593,10 @@ "detail": { "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "pointer": { "type": "string" }, @@ -1768,14 +1772,14 @@ "summary": "Report deployment readiness and run state" } }, - "/v1/events/{workflow}/{trigger}": { + "/v1/events/{workflowId}/{triggerId}": { "post": { "description": "Accept at most 1048576 canonical JSON bytes in a HookEnvelope, then hold the admitted event to the 131072-byte structured value profile. Standard Webhooks signs the webhook ID, Unix timestamp and exact body using the key for the trigger in the URL. The signed timestamp must be within 300 seconds in either direction. The webhook ID must equal the envelope ID, and the envelope must match the configured producer URI and authored event type and data schema. The source URI, event ID and trigger bind admission across retries. Every downstream call uses its own product authorization.", "operationId": "admitEvent", "parameters": [ { "in": "path", - "name": "workflow", + "name": "workflowId", "required": true, "schema": { "maxLength": 64, @@ -1785,7 +1789,7 @@ }, { "in": "path", - "name": "trigger", + "name": "triggerId", "required": true, "schema": { "maxLength": 64, @@ -3824,13 +3828,13 @@ "summary": "Start a run of a served workflow" } }, - "/v1/runs/{run}": { + "/v1/runs/{runId}": { "get": { "operationId": "runStatus", "parameters": [ { "in": "path", - "name": "run", + "name": "runId", "required": true, "schema": { "format": "uuid", @@ -4038,14 +4042,14 @@ "summary": "Read one run's status" } }, - "/v1/runs/{run}/cancel": { + "/v1/runs/{runId}/cancel": { "post": { "description": "An authorized cancellation of a parked review wait with onCancel records durable intent and takes that authored path. A leased result read settles or expires before cleanup advances. Repeating cancellation preserves cleanup, reported by authoredCancelRequested. Other cancellation stops future calls where possible; it never reverses an accepted product effect.", "operationId": "cancelRun", "parameters": [ { "in": "path", - "name": "run", + "name": "runId", "required": true, "schema": { "format": "uuid", @@ -4333,13 +4337,13 @@ "summary": "Cancel a run" } }, - "/v1/runs/{run}/check": { + "/v1/runs/{runId}/check": { "post": { "operationId": "checkNow", "parameters": [ { "in": "path", - "name": "run", + "name": "runId", "required": true, "schema": { "format": "uuid", @@ -4626,13 +4630,13 @@ "summary": "Read a waiting step's product now" } }, - "/v1/runs/{run}/inspect": { + "/v1/runs/{runId}/inspect": { "get": { "operationId": "inspectRun", "parameters": [ { "in": "path", - "name": "run", + "name": "runId", "required": true, "schema": { "format": "uuid", @@ -4865,13 +4869,13 @@ "summary": "Inspect a run's steps and recovery options" } }, - "/v1/runs/{run}/reconcile": { + "/v1/runs/{runId}/reconcile": { "post": { "operationId": "reconcileRun", "parameters": [ { "in": "path", - "name": "run", + "name": "runId", "required": true, "schema": { "format": "uuid", @@ -5165,13 +5169,13 @@ "summary": "Reconcile an uncertain step against its receipt" } }, - "/v1/runs/{run}/retry-same": { + "/v1/runs/{runId}/retry-same": { "post": { "operationId": "retrySame", "parameters": [ { "in": "path", - "name": "run", + "name": "runId", "required": true, "schema": { "format": "uuid", @@ -5466,13 +5470,13 @@ "summary": "Retry a held step with the same command" } }, - "/v1/workflows/{workflow}": { + "/v1/workflows/{workflowId}": { "get": { "operationId": "workflowContract", "parameters": [ { "in": "path", - "name": "workflow", + "name": "workflowId", "required": true, "schema": { "maxLength": 64, diff --git a/products/coordinator/generated/operations/catalog.json b/products/coordinator/generated/operations/catalog.json index bf1abe8a5a..d152b1b43c 100644 --- a/products/coordinator/generated/operations/catalog.json +++ b/products/coordinator/generated/operations/catalog.json @@ -2258,7 +2258,7 @@ }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", - "description": "The bounded provider response. The operation's interpret Function receives it with the command and returns the step result, a declared refusal, or an uncertain outcome.", + "description": "The bounded provider response. The operation's interpret Transform receives it with the command and returns the step result, a declared refusal, or an uncertain outcome.", "properties": { "body": { "description": "The parsed JSON response body, or null for an empty body." diff --git a/products/coordinator/generated/operations/external.command.v1.output.schema.json b/products/coordinator/generated/operations/external.command.v1.output.schema.json index 5ebe3566fd..ac42a0be8b 100644 --- a/products/coordinator/generated/operations/external.command.v1.output.schema.json +++ b/products/coordinator/generated/operations/external.command.v1.output.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "description": "The bounded provider response. The operation's interpret Function receives it with the command and returns the step result, a declared refusal, or an uncertain outcome.", + "description": "The bounded provider response. The operation's interpret Transform receives it with the command and returns the step result, a declared refusal, or an uncertain outcome.", "properties": { "body": { "description": "The parsed JSON response body, or null for an empty body." diff --git a/products/coordinator/generated/project/project.schema.json b/products/coordinator/generated/project/project.schema.json index 64304d2df8..533b3328f0 100644 --- a/products/coordinator/generated/project/project.schema.json +++ b/products/coordinator/generated/project/project.schema.json @@ -52,7 +52,7 @@ "properties": { "interpret": { "$ref": "#/$defs/LocalId", - "description": "The typed pure Function that turns the saved command and response into an observation." + "description": "The typed pure Transform that turns the saved command and response into an observation." }, "intervalSeconds": { "description": "Seconds between pending observations; the host may impose a stricter minimum.", @@ -174,68 +174,12 @@ ], "type": "object" }, - "AuthoredFunction": { - "additionalProperties": false, - "properties": { - "description": { - "$ref": "#/$defs/DisplayText", - "description": "An optional explanation for readers; it has no execution or authorization effect." - }, - "entrypoint": { - "description": "One public source function taking exactly one named-input object.", - "type": "string" - }, - "inputs": { - "additionalProperties": { - "$ref": "#/$defs/Schema" - }, - "description": "Named input schemas or references; every declared input is required exactly once.", - "maxProperties": 16, - "propertyNames": { - "$ref": "#/$defs/LocalId" - }, - "type": "object" - }, - "label": { - "$ref": "#/$defs/DisplayText", - "description": "An optional human label; it changes neither stable identity nor behavior revision." - }, - "limits": { - "$ref": "#/$defs/NarrowedLimits", - "description": "Optional narrowing of the bounded pure profile; omitted limits retain the default ceiling." - }, - "output": { - "$ref": "#/$defs/Schema", - "description": "The declared result schema or mapping; Functions and the host enforce it." - }, - "runtime": { - "$ref": "#/$defs/FunctionRuntime", - "description": "The pinned pure runtime; rhai has no clock, network, database or credential capability." - }, - "source": { - "description": "A local reviewed source asset inside the project directory.", - "type": "string" - } - }, - "required": [ - "runtime", - "source", - "entrypoint", - "inputs", - "output" - ], - "type": "object" - }, "AuthoredMapping": { "oneOf": [ { "additionalProperties": false, - "description": "Computes a value with a declared typed pure Function.", + "description": "Computes a value with a declared typed pure Transform.", "properties": { - "function": { - "$ref": "#/$defs/LocalId", - "description": "A declared pure Function called with an object of named inputs." - }, "inputs": { "additionalProperties": { "$ref": "#/$defs/Reference" @@ -247,14 +191,18 @@ }, "type": "object" }, + "transform": { + "$ref": "#/$defs/LocalId", + "description": "A declared pure Transform called with an object of named inputs." + }, "type": { - "const": "function", + "const": "transform", "type": "string" } }, "required": [ "type", - "function", + "transform", "inputs" ], "type": "object" @@ -399,7 +347,7 @@ }, "interpret": { "$ref": "#/$defs/LocalId", - "description": "The typed pure Function that interprets an external command's provider\nresponse into an accepted result, a declared refusal or an uncertain\noutcome. Required on, and accepted only on, `external.command/v1`." + "description": "The typed pure Transform that interprets an external command's provider\nresponse into an accepted result, a declared refusal or an uncertain\noutcome. Required on, and accepted only on, `external.command/v1`." }, "label": { "$ref": "#/$defs/DisplayText", @@ -615,7 +563,7 @@ }, "output": { "$ref": "#/$defs/AuthoredMapping", - "description": "The declared result schema or mapping; Functions and the host enforce it." + "description": "The declared result schema or mapping; Transforms and the host enforce it." }, "type": { "const": "finish", @@ -630,6 +578,58 @@ } ] }, + "AuthoredTransform": { + "additionalProperties": false, + "properties": { + "description": { + "$ref": "#/$defs/DisplayText", + "description": "An optional explanation for readers; it has no execution or authorization effect." + }, + "entrypoint": { + "description": "One public source function taking exactly one named-input object.", + "type": "string" + }, + "inputs": { + "additionalProperties": { + "$ref": "#/$defs/Schema" + }, + "description": "Named input schemas or references; every declared input is required exactly once.", + "maxProperties": 16, + "propertyNames": { + "$ref": "#/$defs/LocalId" + }, + "type": "object" + }, + "label": { + "$ref": "#/$defs/DisplayText", + "description": "An optional human label; it changes neither stable identity nor behavior revision." + }, + "limits": { + "$ref": "#/$defs/NarrowedLimits", + "description": "Optional narrowing of the bounded pure profile; omitted limits retain the default ceiling." + }, + "output": { + "$ref": "#/$defs/Schema", + "description": "The declared result schema or mapping; Transforms and the host enforce it." + }, + "runtime": { + "$ref": "#/$defs/TransformRuntime", + "description": "The pinned pure runtime; rhai has no clock, network, database or credential capability." + }, + "source": { + "description": "A local reviewed source asset inside the project directory.", + "type": "string" + } + }, + "required": [ + "runtime", + "source", + "entrypoint", + "inputs", + "output" + ], + "type": "object" + }, "AuthoredWorkflow": { "additionalProperties": false, "properties": { @@ -761,12 +761,6 @@ }, "type": "object" }, - "FunctionRuntime": { - "enum": [ - "rhai" - ], - "type": "string" - }, "ImportedContract": { "additionalProperties": false, "properties": { @@ -860,7 +854,7 @@ }, { "additionalProperties": false, - "description": "Builds a nested object member by member, never with a Function.", + "description": "Builds a nested object member by member, never with a Transform.", "properties": { "fields": { "$ref": "#/$defs/Fields", @@ -1101,6 +1095,12 @@ "version" ], "type": "object" + }, + "TransformRuntime": { + "enum": [ + "rhai" + ], + "type": "string" } }, "$id": "https://id.registrystack.org/schemas/coordinator/project/project.v1alpha1.schema.json", @@ -1123,18 +1123,6 @@ }, "type": "object" }, - "functions": { - "additionalProperties": { - "$ref": "#/$defs/AuthoredFunction" - }, - "description": "Named typed bounded pure computations over one object of named inputs.", - "maxProperties": 128, - "minProperties": 0, - "propertyNames": { - "$ref": "#/$defs/LocalId" - }, - "type": "object" - }, "kind": { "const": "CoordinatorProject", "description": "The kind of document this is.", @@ -1173,6 +1161,18 @@ "description": "The shared Project identity; its version is a human release label, not the computed Workflow revision.", "unevaluatedProperties": false }, + "transforms": { + "additionalProperties": { + "$ref": "#/$defs/AuthoredTransform" + }, + "description": "Named typed bounded pure computations over one object of named inputs.", + "maxProperties": 128, + "minProperties": 0, + "propertyNames": { + "$ref": "#/$defs/LocalId" + }, + "type": "object" + }, "types": { "additionalProperties": { "$ref": "#/$defs/Schema" diff --git a/products/documents/generated/registry-documents.openapi.json b/products/documents/generated/registry-documents.openapi.json index cdb08d4c0f..73a6370898 100644 --- a/products/documents/generated/registry-documents.openapi.json +++ b/products/documents/generated/registry-documents.openapi.json @@ -426,6 +426,10 @@ "detail": { "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "type": "integer" }, diff --git a/products/evidence/CHANGELOG.md b/products/evidence/CHANGELOG.md index d07ee62f37..aea4a76e74 100644 --- a/products/evidence/CHANGELOG.md +++ b/products/evidence/CHANGELOG.md @@ -2,6 +2,25 @@ ## Unreleased +- BREAKING: Rename EvidenceProject `functions` to `derivations` and each + `derive.function` reference to `derive.derivation`. Apply the same names + when reading `evidencectl check` and `explain` JSON reports. Existing Rhai + `assertion-derive/v1` scripts and their asset paths carry over. Run + `evidencectl check PROJECT` after updating the authored project. Regenerate + TypeScript and Python with `evidencectl types` and replace imports of + `FunctionBindings` with `DerivationBindings`. + +- BREAKING: Replace `evidence.project.function-*` authoring codes with + `evidence.project.derivation-*` and `evidence.project.duplicate-function-label` + with `evidence.project.duplicate-derivation-label`. Editor asset checks now + use `evidence.derivation.*`, for example `evidence.derivation.compile`. + Replace `function` and `function-file` in editor reference codes with + `derivation` and `derivation-file`. + +- BREAKING: Generated OID4VP clients use `sessionReference` and `requestId` in + `path` arguments. Replace `reference` for session status and `request_id` + for wallet requests and responses. Operation names and concrete HTTP URLs stay the same. + ## 0.49.0 - 2026-12-01 - BREAKING: Evidence project, bundle, authority, audit, and client lookup declarations use `lookups` and single references use `lookup`. Migration: From v0.48.0, keep the previous binary, bundle, runtime file, authority store, and the active and numeric sealed files for both the service audit and its activation companion (`evidence.jsonl` and `evidence.activation.jsonl` for an `audit.path` of `evidence.jsonl`). Read authority with the v0.48.0 `evidence authority history --runtime-config OLD_RUNTIME`. Inspect the production audit JSON Lines using the matching release's audit schema and activation contract. Copy the authored project and target without the generated authority state. Set fresh `package.root` and `audit.path` values in the copy before packaging, and preserve or explicitly bind its referenced secrets and source extract. Rename `selectorProfiles` to `lookups` and `selectorProfile` (Python `selector_profile`) to `lookup` where the contract renamed those fields. Migrate the target issuer into `authentication.oidc.issuers`. Run `evidencectl package --target TARGET --output CANDIDATE PROJECT` and install the rebuilt bundle at the new package root. The fresh authority root is derived from the copied target directory. Run `evidence authority activate --runtime-config FILE --document CANDIDATE/compiled-authority.yaml`. Confirm sequence 1 in `evidence authority history --runtime-config FILE`, run `evidence check --runtime-config FILE --require-runtime-dependencies`, and start Evidence with `evidence serve --runtime-config FILE`. Verify a fresh signed assertion, its access and disclosure records in the new service stream, and the activation pair in the new activation companion before resuming traffic. diff --git a/products/evidence/README.md b/products/evidence/README.md index 4370f566cc..df9f38cfe8 100644 --- a/products/evidence/README.md +++ b/products/evidence/README.md @@ -8,7 +8,7 @@ source effects. One `evidence` process serves one operator-controlled trust domain. The immutable bundle contains compiled definitions, digest-pinned Adapter packs, thin Source -bindings, reviewed derivation Functions, schemas, signing identity and target +bindings, reviewed Derivations, schemas, signing identity and target bindings. A separate runtime file binds process resources, secret mounts, signer transport, audit storage and TLS trust. Complete target authority is activated separately with durable history. Its @@ -16,10 +16,10 @@ grants stay inside the package ceilings; a running process retains its activated snapshot until restart. Rust owns authentication, complete-grant authorization, selector minimization, -bounded Adapter pack execution, bounded derivation Function execution, output +bounded Adapter pack execution, bounded Derivation evaluation, output validation, signing and audit. One reviewed Adapter pack route owns each complete provider acquisition and returns a schema-validated private FactSet. The only -authored Evidence Function interface is `assertion-derive/v1`; it derives only +authored Evidence Derivation interface is `assertion-derive/v1`; it derives only declared outputs from those facts and its explicitly declared selector inputs. Authorization and selector checks precede secret resolution and source access. Durable access audit precedes acquisition, and the terminal disclosure audit @@ -43,7 +43,7 @@ approval or downstream write authority. The maintained runtime contracts include the [operator contract](OPERATOR-CONTRACT.md), [wire and security contracts](contracts/README.md) and the -[trusted derivation Function ABI](https://docs.registrystack.org/reference/evidence-request-adapter-api/). Generated +[trusted Derivation ABI](https://docs.registrystack.org/reference/evidence-request-adapter-api/). Generated contracts and authoring schemas are reproduced by their documented generators. ## Start a development run @@ -103,7 +103,7 @@ Checks resolve no secrets and make no dependency request. `explain` shows each definition's Source, pinned pack and route, named connection, acquisition posture, minimized selector-to-input bindings, typed private fact -names, derivation Function and declared output names. The JSON report's +names, Derivation and declared output names. The JSON report's `assertionDefinitions` entries also carry each definition's `validitySeconds`. `evidencectl check --file ` checks one tooling file offline, including a diff --git a/products/evidence/contracts/problem-contract.yaml b/products/evidence/contracts/problem-contract.yaml index a8b8da75c6..2fafe32ff9 100644 --- a/products/evidence/contracts/problem-contract.yaml +++ b/products/evidence/contracts/problem-contract.yaml @@ -3,7 +3,7 @@ status: frozen media_type: application/problem+json body: exact_members: [type, title, status, detail, code, traceId] - development_refusal_member: In the development posture only, HTTP 401, 403, and 429 problem responses additionally carry failedCheck naming the failed check without revealing hidden requirement existence or protected values. In the production posture, every problem body carries only exact_members. + development_refusal_member: In the development posture, HTTP 401, 403, and 429 refusal responses can carry failedCheck. An issuer key-source outage can return service.unavailable (503) with failedCheck set to key-source-unavailable. In production, every problem body carries only exact_members. detail: Static, value-free text selected only by the service's closed problem code. traceId: Lowercase 32-hex W3C trace identifier for caller correlation; it is not an audit operation identifier. prohibited: diff --git a/products/evidence/examples/fhir/evidence.yaml b/products/evidence/examples/fhir/evidence.yaml index 86b1e819e3..3fba266ed6 100644 --- a/products/evidence/examples/fhir/evidence.yaml +++ b/products/evidence/examples/fhir/evidence.yaml @@ -25,7 +25,7 @@ lookups: type: string minimumBytes: 1 maximumBytes: 64 -functions: +derivations: derive-coverage-status: interface: assertion-derive/v1 source: functions/derive-coverage-status.rhai @@ -78,7 +78,7 @@ assertionDefinitions: acquisition: source: coverage-record derive: - function: derive-coverage-status + derivation: derive-coverage-status selectorInputs: - role: patient alternatives: @@ -120,7 +120,7 @@ assertionDefinitions: acquisition: source: organization-record derive: - function: derive-healthcare-establishment + derivation: derive-healthcare-establishment outputs: healthcare-provider-record-active: concept: urn:example:concept:healthcare-provider-record-active:v1 diff --git a/products/evidence/examples/operator-active/evidence.yaml b/products/evidence/examples/operator-active/evidence.yaml index e41892edae..f7a0714c40 100644 --- a/products/evidence/examples/operator-active/evidence.yaml +++ b/products/evidence/examples/operator-active/evidence.yaml @@ -11,7 +11,7 @@ lookups: type: string minimumBytes: 1 maximumBytes: 64 -functions: +derivations: derive-operator: interface: assertion-derive/v1 source: functions/derive-operator.rhai @@ -50,7 +50,7 @@ assertionDefinitions: acquisition: source: operator-register derive: - function: derive-operator + derivation: derive-operator outputs: operator-active: concept: urn:example:concept:operator-active:v1 diff --git a/products/evidence/examples/public-check/evidence.yaml b/products/evidence/examples/public-check/evidence.yaml index 2433dfc189..8fae30618b 100644 --- a/products/evidence/examples/public-check/evidence.yaml +++ b/products/evidence/examples/public-check/evidence.yaml @@ -11,7 +11,7 @@ lookups: type: string minimumBytes: 4 maximumBytes: 32 -functions: +derivations: derive-certificate-check: interface: assertion-derive/v1 source: functions/derive-certificate-check.rhai @@ -50,7 +50,7 @@ assertionDefinitions: acquisition: source: certificate-record derive: - function: derive-certificate-check + derivation: derive-certificate-check outputs: status: concept: urn:example:concept:certificate-status:v1 diff --git a/products/evidence/examples/standalone/evidence.yaml b/products/evidence/examples/standalone/evidence.yaml index a5122fe64e..49fd215d71 100644 --- a/products/evidence/examples/standalone/evidence.yaml +++ b/products/evidence/examples/standalone/evidence.yaml @@ -11,7 +11,7 @@ lookups: type: string minimumBytes: 1 maximumBytes: 64 -functions: +derivations: derive-adult-status: interface: assertion-derive/v1 source: functions/derive-adult-status.rhai @@ -79,7 +79,7 @@ assertionDefinitions: acquisition: source: person-record derive: - function: derive-adult-status + derivation: derive-adult-status outputs: adult: concept: urn:example:concept:adult-status:v1 @@ -115,7 +115,7 @@ assertionDefinitions: acquisition: source: person-record derive: - function: derive-residence-region + derivation: derive-residence-region outputs: region: concept: urn:example:concept:residence-region:v1 @@ -154,7 +154,7 @@ assertionDefinitions: acquisition: source: licence-record derive: - function: derive-licence-status + derivation: derive-licence-status outputs: licence-status: concept: urn:example:concept:licence-status:v1 @@ -197,7 +197,7 @@ assertionDefinitions: acquisition: source: parent-record derive: - function: derive-parent-relationship + derivation: derive-parent-relationship selectorInputs: - role: candidate-parent alternatives: diff --git a/products/evidence/examples/wallet-presentation/evidence.yaml b/products/evidence/examples/wallet-presentation/evidence.yaml index 56513124be..8e0baacd7d 100644 --- a/products/evidence/examples/wallet-presentation/evidence.yaml +++ b/products/evidence/examples/wallet-presentation/evidence.yaml @@ -38,7 +38,7 @@ lookups: type: string minimumBytes: 1 maximumBytes: 256 -functions: +derivations: derive-credential-possession: interface: assertion-derive/v1 source: functions/derive-credential-possession.rhai @@ -99,7 +99,7 @@ assertionDefinitions: lookups: - wallet-session derive: - function: derive-credential-possession + derivation: derive-credential-possession outputs: credential-presented: concept: urn:example:concept:credential-presented:v1 @@ -136,7 +136,7 @@ assertionDefinitions: lookups: - wallet-session-with-name derive: - function: derive-name-match + derivation: derive-name-match selectorInputs: - role: subject alternatives: diff --git a/products/evidence/fuzz/corpus/authoring_project/project.yaml b/products/evidence/fuzz/corpus/authoring_project/project.yaml index ab6804001e..341499153c 100644 --- a/products/evidence/fuzz/corpus/authoring_project/project.yaml +++ b/products/evidence/fuzz/corpus/authoring_project/project.yaml @@ -11,7 +11,7 @@ lookups: type: string minimumBytes: 1 maximumBytes: 64 -functions: +derivations: derive-operator: interface: assertion-derive/v1 source: functions/derive-operator.rhai @@ -55,7 +55,7 @@ assertionDefinitions: acquisition: source: operator-register derive: - function: derive-operator + derivation: derive-operator outputs: operator-active: concept: urn:example:concept:operator-active:v1 diff --git a/products/evidence/generated/problem-v1.schema.json b/products/evidence/generated/problem-v1.schema.json index 0138285156..3464d62997 100644 --- a/products/evidence/generated/problem-v1.schema.json +++ b/products/evidence/generated/problem-v1.schema.json @@ -12,6 +12,7 @@ "detail": { "const": "the Evidence request is invalid" }, + "failedCheck": false, "status": { "const": 400 }, @@ -31,6 +32,7 @@ "detail": { "const": "requestNonce must be 32 random bytes encoded as unpadded base64url (43 characters), generated anew for each request" }, + "failedCheck": false, "status": { "const": 400 }, @@ -50,6 +52,7 @@ "detail": { "const": "selector does not match an available request profile" }, + "failedCheck": false, "status": { "const": 400 }, @@ -69,6 +72,9 @@ "detail": { "const": "bearer access token validation failed" }, + "failedCheck": { + "type": "string" + }, "status": { "const": 401 }, @@ -88,6 +94,9 @@ "detail": { "const": "task grant was issued in the development posture" }, + "failedCheck": { + "type": "string" + }, "status": { "const": 401 }, @@ -107,6 +116,9 @@ "detail": { "const": "the Evidence request is not permitted" }, + "failedCheck": { + "type": "string" + }, "status": { "const": 403 }, @@ -126,6 +138,7 @@ "detail": { "const": "the requested format is not supported" }, + "failedCheck": false, "status": { "const": 406 }, @@ -145,6 +158,7 @@ "detail": { "const": "evidence could not be produced for this request" }, + "failedCheck": false, "status": { "const": 422 }, @@ -164,6 +178,9 @@ "detail": { "const": "the Evidence request rate is exhausted" }, + "failedCheck": { + "type": "string" + }, "status": { "const": 429 }, @@ -183,6 +200,7 @@ "detail": { "const": "the authoritative source is unavailable" }, + "failedCheck": false, "status": { "const": 503 }, @@ -202,6 +220,9 @@ "detail": { "const": "the request could not be served" }, + "failedCheck": { + "const": "key-source-unavailable" + }, "status": { "const": 503 }, @@ -221,6 +242,7 @@ "detail": { "const": "the requested resource was not found" }, + "failedCheck": false, "status": { "const": 404 }, @@ -268,6 +290,10 @@ ], "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "enum": [ 400, diff --git a/products/evidence/generated/registry-evidence-oid4vci.openapi.json b/products/evidence/generated/registry-evidence-oid4vci.openapi.json index 7d98602b77..c174ea8a0a 100644 --- a/products/evidence/generated/registry-evidence-oid4vci.openapi.json +++ b/products/evidence/generated/registry-evidence-oid4vci.openapi.json @@ -528,6 +528,10 @@ }, "error_description": { "type": "string" + }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" } }, "required": [ @@ -679,6 +683,10 @@ }, "error_description": { "type": "string" + }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" } }, "required": [ diff --git a/products/evidence/generated/registry-evidence-oid4vp.openapi.json b/products/evidence/generated/registry-evidence-oid4vp.openapi.json index f651e315f9..19a9a60e2a 100644 --- a/products/evidence/generated/registry-evidence-oid4vp.openapi.json +++ b/products/evidence/generated/registry-evidence-oid4vp.openapi.json @@ -181,6 +181,22 @@ ], "type": "object" }, + "OAuthRateLimit": { + "additionalProperties": false, + "properties": { + "error": { + "const": "temporarily_unavailable" + }, + "failedCheck": { + "const": "rate-limit", + "description": "The check that refused the request, included only in development." + } + }, + "required": [ + "error" + ], + "type": "object" + }, "Principal": { "additionalProperties": false, "properties": { @@ -202,6 +218,10 @@ "detail": { "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "type": "integer" }, @@ -1094,14 +1114,14 @@ "summary": "Release the presentation a wallet returned, to Evidence" } }, - "/v1/requests/{request_id}": { + "/v1/requests/{requestId}": { "get": { "description": "Anonymous; the request identifier is a bearer capability. The object is a JWT signed under the policy's client identifier.", "operationId": "fetchRequestObject", "parameters": [ { "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "type": "string" @@ -1275,14 +1295,14 @@ "summary": "Serve the signed OpenID4VP request object to the wallet" } }, - "/v1/responses/{request_id}": { + "/v1/responses/{requestId}": { "post": { "description": "Anonymous; the request identifier is a bearer capability. The form carries one encrypted `response` JWE, or a plain OAuth `error`. Answers use the OAuth error shape and never carry a description.", "operationId": "receiveWalletResponse", "parameters": [ { "in": "path", - "name": "request_id", + "name": "requestId", "required": true, "schema": { "type": "string" @@ -1404,7 +1424,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OAuthError" + "$ref": "#/components/schemas/OAuthRateLimit" } } }, @@ -1782,13 +1802,13 @@ "summary": "Start one presentation exchange for the authenticated applicant" } }, - "/v1/sessions/{reference}": { + "/v1/sessions/{sessionReference}": { "get": { "operationId": "readSessionStatus", "parameters": [ { "in": "path", - "name": "reference", + "name": "sessionReference", "required": true, "schema": { "type": "string" diff --git a/products/evidence/generated/registry-evidence.openapi.json b/products/evidence/generated/registry-evidence.openapi.json index 41dce007e6..fa705ba0f2 100644 --- a/products/evidence/generated/registry-evidence.openapi.json +++ b/products/evidence/generated/registry-evidence.openapi.json @@ -1383,6 +1383,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 400 @@ -1417,6 +1418,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 400 @@ -1451,6 +1453,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 400 @@ -1485,6 +1488,9 @@ ], "type": "string" }, + "failedCheck": { + "type": "string" + }, "status": { "enum": [ 401 @@ -1519,6 +1525,9 @@ ], "type": "string" }, + "failedCheck": { + "type": "string" + }, "status": { "enum": [ 401 @@ -1553,6 +1562,9 @@ ], "type": "string" }, + "failedCheck": { + "type": "string" + }, "status": { "enum": [ 403 @@ -1587,6 +1599,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 406 @@ -1621,6 +1634,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 422 @@ -1655,6 +1669,9 @@ ], "type": "string" }, + "failedCheck": { + "type": "string" + }, "status": { "enum": [ 429 @@ -1689,6 +1706,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 503 @@ -1723,6 +1741,12 @@ ], "type": "string" }, + "failedCheck": { + "enum": [ + "key-source-unavailable" + ], + "type": "string" + }, "status": { "enum": [ 503 @@ -1757,6 +1781,7 @@ ], "type": "string" }, + "failedCheck": false, "status": { "enum": [ 404 @@ -1813,6 +1838,10 @@ ], "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "enum": [ 400, diff --git a/products/evidence/reference/authoring-projects/CONFIG.md b/products/evidence/reference/authoring-projects/CONFIG.md index b85d8026b7..512aca1475 100644 --- a/products/evidence/reference/authoring-projects/CONFIG.md +++ b/products/evidence/reference/authoring-projects/CONFIG.md @@ -1,6 +1,6 @@ # Evidence authoring reference -Author one `EvidenceProject` in `evidence.yaml`, with named Sources and Functions. +Author one `EvidenceProject` in `evidence.yaml`, with named Sources and Derivations. A separate `EvidenceTarget` binds that project to one environment, and an `EvidenceTargetAuthority` supplies complete grants for that target. These closed v1alpha1 formats are adopter tooling, generated from the same pure Rust model @@ -18,7 +18,7 @@ Keys are case-sensitive, and unknown keys are refused. The current formats are: | Input | `kind` | Owns | | --- | --- | --- | -| `evidence.yaml` | `EvidenceProject` | Definitions, named Sources and Functions, selectors, Outputs and package ceilings | +| `evidence.yaml` | `EvidenceProject` | Definitions, named Sources and Derivations, selectors, Outputs and package ceilings | | `.yaml` | `EvidenceTarget` | Project selection, target authority reference, connections and process bindings | | `-authority.yaml` | `EvidenceTargetAuthority` | Identity profiles and complete target grants | | `access/clients/.yaml` | `EvidenceAccessClient` | Local caller registration and access-profile membership | @@ -27,11 +27,11 @@ Keys are case-sensitive, and unknown keys are refused. The current formats are: The schemas state each format's complete envelope. There are no separate question, source, selector or access-policy document formats. Sources, -lookups and Functions are members of `evidence.yaml`. +lookups and Derivations are members of `evidence.yaml`. -Keep reviewed Function programs under `functions/`, fixture documents under +Keep reviewed Derivation scripts under `functions/`, fixture documents under `fixtures/`, and referenced codelists, JSON Schemas and SQL statements as plain -project assets. Function programs are bounded to 64 KiB. Referenced assets stay +project assets. Derivation scripts are bounded to 64 KiB. Referenced assets stay inside the project and cannot traverse symbolic links. `.generated/` and `.evidence/` hold disposable local runtime material and request artifacts. A project contains no deployment credential values. @@ -44,7 +44,7 @@ that check and inspect reports show. The optional `project.label` and `project.description` name and explain the project for readers; a top-level `label` or `description` is refused. The compiled bundle carries only the id. Stable identifiers connect `assertionDefinitions`, `sources`, -`lookups` and `functions`, each a map keyed by its identifier. +`lookups` and `derivations`, each a map keyed by its identifier. Optional `label` and `description` fields are presentation metadata. They do not change a definition's behavior revision; presentation bytes included in a package remain covered by its integrity digest. @@ -60,7 +60,7 @@ credentials or source calls. URI-only requests still carry the resolved revision in their signed assertion. The revision covers this definition's behavior and transitive Source, -Function, selector, Output, asset and package-ceiling dependencies. Unrelated +Derivation, selector, Output, asset and package-ceiling dependencies. Unrelated definitions, presentation and target bindings do not churn it. Existing issued assertions keep their original revision and trust bindings. @@ -97,13 +97,13 @@ rejects a fact or an item. Evidence compares the check code only after the Source returns a record, so a record that failed a bound, a pattern, a vocabulary or a required member would answer `source.unavailable` to a caller without the code and show that the record exists. Check content in the derive -Function, which runs after the comparison. The rule reads the schema, not the +Derivation, which runs after the comparison. The rule reads the schema, not the Source script: a hand-written script must also omit a value whose type differs from the schema and must not throw on one record's content. Each rule has its own diagnostic in `evidencectl check`. Declaring `publicCheck` opens nothing on its own; the target authority's `publicCheck` activation does. -## Sources, acquisition and Functions +## Sources, acquisition and Derivations Each Source selects one reviewed Adapter `pack` by id and version, one `route` and one named `connection`. Its `inputs` map route input names to explicit @@ -157,9 +157,9 @@ finite operation budget and absolute deadline. The retired tagged acquisition kinds and Source `request`, `response`, `prepare`, `extract` and `batch` fields are refused rather than converted into packs. -Each `functions` entry is keyed by its stable identifier and has a reviewed -`source` asset and the `assertion-derive/v1` interface. `derive.function` -selects that Function and `derive.parameters` carries reviewed requirement +Each `derivations` entry is keyed by its stable identifier and has a reviewed +`source` asset and the `assertion-derive/v1` interface. `derive.derivation` +selects that Derivation and `derive.parameters` carries reviewed requirement parameters. A completed matched lookup supplies its private facts; other lookup outcomes stop before derivation. Derivation receives only its separately declared authorized selector inputs and returns the declared Outputs. It cannot authorize, choose @@ -171,14 +171,14 @@ pack scripts use the separate Adapter exchange ABI. package disclosure ceiling, independently constrained by complete grants. It does not create a provider-side batching interface. -An authored `assertion-derive/v1` Function returns an array whose entries each +An authored `assertion-derive/v1` Derivation returns an array whose entries each have exactly `output` and `value`. `output` names a local Output declared by the calling definition, for example `#{output: "region", value: facts["residence-region"]}`. The compiler maps those names to the declared public concept identifiers in the compiled runtime ABI. Do not return runtime `concept_id` entries from an authored -Function. Unknown, duplicate, missing or malformed outputs are refused. +Derivation. Unknown, duplicate, missing or malformed outputs are refused. -`explain` exposes Function interfaces, typed call sites, capabilities, digests +`explain` exposes Derivation interfaces, typed call sites, capabilities, digests and the Source-to-Fact-to-Output flow without source values or secrets. `types` generates TypeScript or Python declarations from that same model. A scalar FactSet value does not become public merely because its type is visible. @@ -238,9 +238,10 @@ Function to `assertion-derive/v1` does not migrate its behavior. `connection` and explicit selector `inputs`. Replace each definition's acquisition program with `acquisition: {source: }`. Keep the Requirement URI, selector authority, Outputs and derivation meaning. -3. Remove acquisition Functions from the authored `functions` list after their - behavior is represented in the pack. Keep requirement derivations under - `assertion-derive/v1`. Update the named target connection's endpoints to +3. Replace the legacy `functions` list with a `derivations` map keyed by each + retained `assertion-derive/v1` Derivation's identifier. Rename each + `derive.function` reference to `derive.derivation`. Keep acquisition logic + in the reviewed pack. Update the named target connection's endpoints to match the pack; credentials remain target secret references. A 0.44.0 flat connection moves its endpoint members under one entry per pack endpoint: @@ -355,8 +356,7 @@ Only explicitly mapped fields enter the generated request. The generated request bounds. Unsupported shapes and bounds need an explicitly reviewed pack route. The generated preparation and extraction files belong to the owned Adapter -pack and each receives the Adapter `exchange` argument. They are not Evidence -Functions. A run +pack and each receives the Adapter `exchange` argument. A run without `--map-selector` keeps the incomplete mechanical draft workflow. ## Selector and Output fields @@ -380,10 +380,10 @@ fit that ceiling. Codelist paths name plain YAML or JSON assets under `codelists/`, and the declared version must match the reviewed asset. An assertion's `derive.selectorInputs` explicitly exposes selector fields to -its named derive Function. Each entry names a subject `role` and an +its named Derivation. Each entry names a subject `role` and an `alternatives` list. Each alternative names a declared selector `profile` and a nonempty unique `fields` list from that profile. The role and profile must -also belong to the definition's subjects. This reference grants the Function +also belong to the definition's subjects. This reference gives the Derivation access to those fields during derivation; it does not grant a caller access or include those private fields in the public assertion. @@ -590,7 +590,7 @@ contract. ### `evidence.yaml` -The normalized project document owns stable source, selector-profile, function, +The normalized project document owns stable source, selector-profile, derivation, assertion-definition, and output identifiers. Presentation labels and descriptions remain optional metadata. @@ -606,7 +606,7 @@ assertionDefinitions.*.acquisition.holderPresented.lookups[] assertionDefinitions.*.acquisition.holderPresented.source assertionDefinitions.*.acquisition.source assertionDefinitions.*.derive -assertionDefinitions.*.derive.function +assertionDefinitions.*.derive.derivation assertionDefinitions.*.derive.parameters assertionDefinitions.*.derive.selectorInputs assertionDefinitions.*.derive.selectorInputs[] @@ -679,12 +679,12 @@ assertionDefinitions.*.subjects[].role assertionDefinitions.*.subjects[].selectors assertionDefinitions.*.subjects[].selectors[] assertionDefinitions.*.validitySeconds -functions -functions.* -functions.*.description -functions.*.interface -functions.*.label -functions.*.source +derivations +derivations.* +derivations.*.description +derivations.*.interface +derivations.*.label +derivations.*.source kind lookups lookups.* diff --git a/products/evidence/reference/authoring-projects/SOURCE-EXPORT.md b/products/evidence/reference/authoring-projects/SOURCE-EXPORT.md index a483cd0a03..b93bc937a0 100644 --- a/products/evidence/reference/authoring-projects/SOURCE-EXPORT.md +++ b/products/evidence/reference/authoring-projects/SOURCE-EXPORT.md @@ -128,7 +128,7 @@ existing definitions without requiring a target, local credentials, or a first definition. It includes each existing derivation's fact reads, so a next fact schema that no longer declares a fact a derivation reads fails structural validation with `evidence.project.derivation-fact-undeclared` -([CONFIG.md](CONFIG.md#sources-acquisition-and-functions)). The report identifies its +([CONFIG.md](CONFIG.md#sources-acquisition-and-derivations)). The report identifies its validation kind explicitly. Target validation runs the ordinary compiled-bundle and fixture checks. If the current project cannot yet compile with that target, as before an initial source diff --git a/products/evidence/reference/deployment-targets/shared/evidence-project/README.md b/products/evidence/reference/deployment-targets/shared/evidence-project/README.md index 78cf528daf..5502e56791 100644 --- a/products/evidence/reference/deployment-targets/shared/evidence-project/README.md +++ b/products/evidence/reference/deployment-targets/shared/evidence-project/README.md @@ -1,7 +1,7 @@ # Shared Evidence project Place the ordinary editable EvidenceProject here: selectors, fixed -Sources, named Functions, schemas, AssertionDefinitions, derivations, codelists, and synthetic +Sources, named Derivations, schemas, AssertionDefinitions, codelists, and synthetic fixtures. Keep environment identities, endpoints, public service keys, Transit versions, runtime paths, and secret references in the complete environment targets beside this directory. The template target and authority use project diff --git a/products/evidence/reference/request-adapter/deployment-projects/CONFIG.md b/products/evidence/reference/request-adapter/deployment-projects/CONFIG.md index e4090ae3cd..2545c46ece 100644 --- a/products/evidence/reference/request-adapter/deployment-projects/CONFIG.md +++ b/products/evidence/reference/request-adapter/deployment-projects/CONFIG.md @@ -1008,7 +1008,7 @@ credentials to another authority. ## Authoring and production-build workflow Treat the editable `EvidenceProject` as reviewed source code. -It contains `evidence.yaml`, owned Adapter packs, derivation Functions, schemas, +It contains `evidence.yaml`, owned Adapter packs, named Derivations, schemas, codelists, and sanitized fixtures. The OpenAPI form of `evidencectl init` retains a provider description for pack authoring, and `source suggest` emits an incomplete pack and Source binding for diff --git a/products/evidence/source-recipes/dhis2-tracker/fixture-validation/assertion-definitions.yaml b/products/evidence/source-recipes/dhis2-tracker/fixture-validation/assertion-definitions.yaml index 379cac9186..34c62f27d1 100644 --- a/products/evidence/source-recipes/dhis2-tracker/fixture-validation/assertion-definitions.yaml +++ b/products/evidence/source-recipes/dhis2-tracker/fixture-validation/assertion-definitions.yaml @@ -15,7 +15,7 @@ - role: subject selectors: [dhis2-tracked-entity-id-v1] acquisition: {source: dhis2-tracker} - derive: {function: derive-active-status} + derive: {derivation: derive-active-status} outputs: active: concept: urn:example:concept:dhis2-recipe-active-status:v1 diff --git a/products/evidence/source-recipes/dhis2-tracker/fixture-validation/evidence.yaml b/products/evidence/source-recipes/dhis2-tracker/fixture-validation/evidence.yaml index 11f70dac9c..eb4e11a6a5 100644 --- a/products/evidence/source-recipes/dhis2-tracker/fixture-validation/evidence.yaml +++ b/products/evidence/source-recipes/dhis2-tracker/fixture-validation/evidence.yaml @@ -8,7 +8,7 @@ lookups: maximumAggregateBytes: 8 fields: id: {type: string, minimumBytes: 1, maximumBytes: 8} -functions: +derivations: derive-active-status: interface: assertion-derive/v1 source: functions/derive-active-status.rhai @@ -39,7 +39,7 @@ assertionDefinitions: audiences: [urn:example:audience:source-recipe-validator] subjects: [{role: seed, selectors: [validation-seed]}] acquisition: {source: validation-seed} - derive: {function: validation-seed-derive} + derive: {derivation: validation-seed-derive} outputs: matched: {concept: 'urn:example:concept:source-recipe-validation-seed:v1', type: boolean} validitySeconds: 60 diff --git a/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/assertion-definitions.yaml b/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/assertion-definitions.yaml index 08fc9ca5a0..36161b03b0 100644 --- a/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/assertion-definitions.yaml +++ b/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/assertion-definitions.yaml @@ -15,7 +15,7 @@ - role: child selectors: [opencrvs-tracking-id-v1] acquisition: {source: opencrvs-event-search} - derive: {function: derive-registered-parent} + derive: {derivation: derive-registered-parent} outputs: registered-parent-present: concept: urn:example:concept:opencrvs-recipe-registered-parent:v1 diff --git a/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/evidence.yaml b/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/evidence.yaml index 6eca91351d..7cbfe31683 100644 --- a/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/evidence.yaml +++ b/products/evidence/source-recipes/opencrvs-event-search/fixture-validation/evidence.yaml @@ -8,7 +8,7 @@ lookups: maximumAggregateBytes: 8 fields: id: {type: string, minimumBytes: 1, maximumBytes: 8} -functions: +derivations: derive-registered-parent: interface: assertion-derive/v1 source: functions/derive-registered-parent.rhai @@ -39,7 +39,7 @@ assertionDefinitions: audiences: [urn:example:audience:source-recipe-validator] subjects: [{role: seed, selectors: [validation-seed]}] acquisition: {source: validation-seed} - derive: {function: validation-seed-derive} + derive: {derivation: validation-seed-derive} outputs: matched: {concept: 'urn:example:concept:source-recipe-validation-seed:v1', type: boolean} validitySeconds: 60 diff --git a/products/identifiers/contracts/catalog-source.json b/products/identifiers/contracts/catalog-source.json index 11b9d4ce38..4d60451a90 100644 --- a/products/identifiers/contracts/catalog-source.json +++ b/products/identifiers/contracts/catalog-source.json @@ -2,6 +2,16 @@ "version": 1, "baseUrl": "https://id.registrystack.org", "problemSources": [ + { + "owner": "adapter", + "status": "active", + "compatibilityLine": "v1", + "uriPrefix": "https://id.registrystack.org/problems/registry-adapter/", + "sourcePath": "crates/registry-payment-protocol/src/lib.rs", + "exporterPath": "crates/registry-payment-protocol/examples/problem-catalog.rs", + "cargoPackage": "registry-payment-protocol", + "cargoExample": "problem-catalog" + }, { "owner": "platform", "status": "active", @@ -272,12 +282,6 @@ "classification": "retired-product", "reason": "RegistryReleaseLockV1 identifiers belong to retired registryctl release tooling." }, - { - "path": "crates/registry-adapter-core/src/naming.rs", - "uri": "https://id.registrystack.org/problems/registry-adapter/", - "classification": "planned-resolution", - "reason": "The Adapter problem type base is reserved, not yet published: ProblemCode::ALL carries no titles or descriptions and its type URIs keep dotted codes, while the facade answers with profile-authored problems and emits no type URI under this base. The change that gives the inventory catalog metadata adds its problemSources entry and deletes this exclusion." - }, { "glob": "crates/registry-render/src/problem.rs", "classification": "released-external-vocabulary", diff --git a/products/identifiers/generated/catalog.v1.json b/products/identifiers/generated/catalog.v1.json index 23eec07fc8..46cc3ecb5a 100644 --- a/products/identifiers/generated/catalog.v1.json +++ b/products/identifiers/generated/catalog.v1.json @@ -51,6 +51,215 @@ "sha256": "d160f0348543a570ee8c4c54ecf5d53415a9afeb98851c5eab839e6129a75b8a" } }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.authentication-required", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.authentication-required", + "description": "The payment caller credential is missing or refused.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.authentication-required", + "httpStatuses": [ + 401 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.conflict", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.conflict", + "description": "The requested operation conflicts with the current payment binding or state.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.conflict", + "httpStatuses": [ + 409 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.forbidden", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.forbidden", + "description": "The verified caller is not admitted for this payment operation.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.forbidden", + "httpStatuses": [ + 403 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.invalid-request", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.invalid-request", + "description": "The request does not meet the payment operation's input contract.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.invalid-request", + "httpStatuses": [ + 422 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.not-found", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.not-found", + "description": "The payment resource is absent or not visible to the caller.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.not-found", + "httpStatuses": [ + 404 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.outcome-unknown", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.outcome-unknown", + "description": "The outcome of the original payment attempt could not be established.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.outcome-unknown", + "httpStatuses": [ + 503 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.provider-protocol", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.provider-protocol", + "description": "The provider's response did not meet the payment protocol contract.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.provider-protocol", + "httpStatuses": [ + 502 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.receipt-expired", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.receipt-expired", + "description": "The original acceptance receipt is past its recovery window.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.receipt-expired", + "httpStatuses": [ + 410 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.receipt-unresolved", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.receipt-unresolved", + "description": "The original request has no confirmed acceptance receipt.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.receipt-unresolved", + "httpStatuses": [ + 404 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.recovery-held", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.recovery-held", + "description": "The original payment attempt requires reconciliation before it can proceed.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.recovery-held", + "httpStatuses": [ + 409 + ] + } + }, + { + "uri": "https://id.registrystack.org/problems/registry-adapter/adapter.payment.unavailable", + "kind": "problem", + "status": "active", + "compatibilityLine": "v1", + "owner": "adapter", + "title": "adapter.payment.unavailable", + "description": "The payment operation was unavailable.", + "source": { + "path": "crates/registry-payment-protocol/src/lib.rs", + "sha256": "9dcf7cb3e37133cb8fb071ef3e4806d5c4f490c67495aa5533c17b5431882c24" + }, + "problem": { + "code": "adapter.payment.unavailable", + "httpStatuses": [ + 503 + ] + } + }, { "uri": "https://id.registrystack.org/problems/registry-breg/access-profile/ambiguous", "kind": "problem", @@ -1847,7 +2056,7 @@ "description": "Starts stay held after a restore until an operator releases the admission hold.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "admission.held", @@ -1866,7 +2075,7 @@ "description": "This instance runs in recovery-only mode and admits no runs. Send starts to the ordinary service.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "admission.recovery-only", @@ -1885,7 +2094,7 @@ "description": "The operation may have completed, but its audited result could not be released. Inspect the run before repeating the operation.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "audit.response-unavailable", @@ -1904,7 +2113,7 @@ "description": "The caller credential or completion signature is missing, invalid, or expired.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "authentication.refused", @@ -1923,7 +2132,7 @@ "description": "The run's original connection settings differ from this service's runtime configuration.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "binding.conflict", @@ -1942,7 +2151,7 @@ "description": "Connection settings that runs in progress use differ from this service's runtime configuration.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "binding.live-conflict", @@ -1961,7 +2170,7 @@ "description": "That step is not waiting.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "check.not-waiting", @@ -1977,10 +2186,10 @@ "compatibilityLine": "v1alpha1", "owner": "coordinator", "title": "Workflow definition refused", - "description": "The workflow's workflow definition, one of its mappings or one of its functions refused the request.", + "description": "The workflow's workflow definition, one of its mappings or one of its Transforms refused the request.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "definition.refused", @@ -1999,7 +2208,7 @@ "description": "An apply changed the active packages after this service started. Restart it with the runtime file that apply used.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "deployment.activation-changed", @@ -2018,7 +2227,7 @@ "description": "The deployment's activation, runtime configuration or state key custody check failed.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "deployment.refused", @@ -2037,7 +2246,7 @@ "description": "An evaluation may have completed at its provider, so the run is never evaluated again.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "evaluation.uncertain", @@ -2056,7 +2265,7 @@ "description": "The signed event must satisfy the accepted canonical envelope and typed event contract.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "event.invalid", @@ -2075,7 +2284,7 @@ "description": "The signed event exceeds the event value profile: 131072 canonical bytes, 32 levels of nesting, 4096 values, 256 items per array, 256 members per object, and 16384 bytes per string. Have the producer project fewer or smaller fields into the event.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "event.too-large", @@ -2094,7 +2303,7 @@ "description": "Send a fresh signed delivery from the exact configured source to its accepted trigger.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "event.unauthenticated", @@ -2113,7 +2322,7 @@ "description": "Execution is under restore hold until an operator releases it.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "execution.held", @@ -2132,7 +2341,7 @@ "description": "Supply an Idempotency-Key header of 1 to 256 bytes.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "idempotency.key-invalid", @@ -2151,7 +2360,7 @@ "description": "This idempotency key already started a run with different input.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "idempotency.key-reused", @@ -2170,7 +2379,7 @@ "description": "The start input does not satisfy the workflow's declared input schema and value bounds.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "input.invalid", @@ -2189,7 +2398,7 @@ "description": "A mutation may have completed at its provider, so the run never sends it again. Reconcile it when its operation offers a read-only receipt lookup; otherwise inspect or cancel the run.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "mutation.uncertain", @@ -2208,7 +2417,7 @@ "description": "The caller's policy does not allow this operation.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "operation.not-authorized", @@ -2227,7 +2436,7 @@ "description": "The original command's receipt can no longer be recovered. This is not evidence that the command was not sent.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "receipt.expired", @@ -2246,7 +2455,7 @@ "description": "The run's progress changed while it was being reconciled. Inspect it again.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "reconcile.raced", @@ -2265,7 +2474,7 @@ "description": "Reconcile applies only to a held mutation with a prepared command, its original binding and no active lease.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "reconcile.refused", @@ -2284,7 +2493,7 @@ "description": "The held operation has no original-result lookup.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "reconcile.unsupported", @@ -2303,7 +2512,7 @@ "description": "The request body exceeds the accepted size: 65536 bytes for a JSON request, or 1048576 bytes for a signed event delivery.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.body-too-large", @@ -2322,7 +2531,7 @@ "description": "The request could not be read as a Coordinator request.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.invalid", @@ -2341,7 +2550,7 @@ "description": "The list limit must be between 1 and 100.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.limit-out-of-range", @@ -2360,7 +2569,7 @@ "description": "The route exists but not for this method.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.method-not-allowed", @@ -2379,7 +2588,7 @@ "description": "The requested route does not exist.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.not-found", @@ -2398,7 +2607,7 @@ "description": "The reason or recovery reference must be a bounded reference without personal data or control characters.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.reason-invalid", @@ -2417,7 +2626,7 @@ "description": "The retention cutoff must be in the past and the limit between 1 and 100.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.retention-invalid", @@ -2436,7 +2645,7 @@ "description": "The request body could not be processed.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.unprocessable", @@ -2455,7 +2664,7 @@ "description": "The request body is not JSON.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "request.unsupported-media-type", @@ -2474,7 +2683,7 @@ "description": "This recovery action requires execution to be under restore hold.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "restore.hold-required", @@ -2493,7 +2702,7 @@ "description": "Held work no longer matches its protected definition or prepared command.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "restore.lease-incompatible", @@ -2512,7 +2721,7 @@ "description": "Execution history must be complete and the prior deployment fenced before recovery is reviewed.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "restore.review-required", @@ -2531,7 +2740,7 @@ "description": "Held work remains unresolved, so the restore hold cannot be released.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "restore.unresolved", @@ -2550,7 +2759,7 @@ "description": "Retry-same applies only to held work before its original deadline.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "retry.refused", @@ -2569,7 +2778,7 @@ "description": "This service's Coordinator version cannot interpret the run's pinned definition.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "run.definition-incompatible", @@ -2588,7 +2797,7 @@ "description": "No run with this identifier is visible to the caller.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "run.not-visible", @@ -2607,7 +2816,7 @@ "description": "Retention erased this run's payloads, so it can no longer be retried or reconciled.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "run.payload-erased", @@ -2626,7 +2835,7 @@ "description": "Coordinator could not complete the request.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "runtime.failure", @@ -2645,7 +2854,7 @@ "description": "A dependency of the Coordinator, such as its database, audit stream or token verifier, is unavailable. Try again after the service recovers.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "service.unavailable", @@ -2664,7 +2873,7 @@ "description": "This deployment does not serve the named workflow.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "workflow.not-served", @@ -2683,7 +2892,7 @@ "description": "The expected workflow revision differs from the active revision or the original admission.", "source": { "path": "crates/registry-coordinator/src/problem.rs", - "sha256": "45d584b668b183e59a2328f935f6caa523b3fef2d2e727e7d1faa98079d9e49f" + "sha256": "597d0f3d8488bd54437563b6149baa8410f6d44e16a7143e37bf990d0fd1f3de" }, "problem": { "code": "workflow.revision-mismatch", @@ -5497,7 +5706,7 @@ "description": "Base Registry Engine portable Action contract export schema, reproduced from the canonical compiled project.", "source": { "path": "crates/registry-breg/src/artifacts.rs", - "sha256": "c520ecb0fa494f0d49d63d34b8cc45f6ec4744f77285401b884cece3320690c6" + "sha256": "586b4e3da54bad07e5b750e67ef9e5a872a454f779de5ea6ca56692c798749ea" }, "artifact": { "path": "products/breg/generated/facility/generated/action-contracts.schema.json", @@ -5515,11 +5724,11 @@ "description": "Base Registry Engine bregctl explain output JSON Schemas, written by hand and held to bregctl's output by its contract test.", "source": { "path": "products/breg/contracts/explain/ActionsExplanation.schema.json", - "sha256": "37bb80468191278addfb3e107ec55b4db49c7ea8c6e991947612597c7e1c2b11" + "sha256": "32f926563b4c55846fada9168951e2227507ab01d725637d293dae1f881815ca" }, "artifact": { "path": "products/breg/contracts/explain/ActionsExplanation.schema.json", - "sha256": "37bb80468191278addfb3e107ec55b4db49c7ea8c6e991947612597c7e1c2b11", + "sha256": "32f926563b4c55846fada9168951e2227507ab01d725637d293dae1f881815ca", "mediaType": "application/schema+json" } }, @@ -5623,11 +5832,11 @@ "description": "Base Registry Engine bregctl explain output JSON Schemas, written by hand and held to bregctl's output by its contract test.", "source": { "path": "products/breg/contracts/explain/LifecycleExplanation.schema.json", - "sha256": "56f3cb89b5feaa96796bcd575dc25776cd4251d58f4f6621e11676907838f952" + "sha256": "6b1e7b817a6d38a99de07315432a0ad883f6a0675fc15d4602a4d596a58cf555" }, "artifact": { "path": "products/breg/contracts/explain/LifecycleExplanation.schema.json", - "sha256": "56f3cb89b5feaa96796bcd575dc25776cd4251d58f4f6621e11676907838f952", + "sha256": "6b1e7b817a6d38a99de07315432a0ad883f6a0675fc15d4602a4d596a58cf555", "mediaType": "application/schema+json" } }, @@ -5717,7 +5926,7 @@ }, "artifact": { "path": "products/breg/generated/authoring/registry-module.schema.json", - "sha256": "543316774c84e783eda4a79f87a037ecc2c94d2df14a906feaacdd9552cfc7e0", + "sha256": "5cf176d9b610cfdeb3bfb8f80a763313aad1e85b03d12cd73a94d10c19f3f1e3", "mediaType": "application/schema+json" } }, @@ -5735,7 +5944,7 @@ }, "artifact": { "path": "products/breg/generated/authoring/registry-project.schema.json", - "sha256": "940c6e30dadf260f209ad059d9bc21239f43fe7d3b58fdbc9f941bf91aa28822", + "sha256": "05cb7c1dbcf65d56bdd412b49c048684ed3f5a599c6771d43dae3713cc0d6c58", "mediaType": "application/schema+json" } }, @@ -5749,11 +5958,11 @@ "description": "Base Registry Engine bregctl explain output JSON Schemas, written by hand and held to bregctl's output by its contract test.", "source": { "path": "products/breg/contracts/explain/ProposalsExplanation.schema.json", - "sha256": "66a3237b675edbc300df9526a9abe2420c4d34d594736960539234473cd051b5" + "sha256": "536e5f5250a05f43f9a7662ae0aea9ecc8b74ef652a81cab81ca23ff526d4d27" }, "artifact": { "path": "products/breg/contracts/explain/ProposalsExplanation.schema.json", - "sha256": "66a3237b675edbc300df9526a9abe2420c4d34d594736960539234473cd051b5", + "sha256": "536e5f5250a05f43f9a7662ae0aea9ecc8b74ef652a81cab81ca23ff526d4d27", "mediaType": "application/schema+json" } }, @@ -5767,11 +5976,11 @@ "description": "Base Registry Engine bregctl explain output JSON Schemas, written by hand and held to bregctl's output by its contract test.", "source": { "path": "products/breg/contracts/explain/QueriesExplanation.schema.json", - "sha256": "c30a70ce60b1946e6eb3cd0ebf1267841c97be81115f61e0bbf713262bfd59a3" + "sha256": "6352d107687d7dabdb85faad440c2fda3d272e1816174bb951a3188057483d89" }, "artifact": { "path": "products/breg/contracts/explain/QueriesExplanation.schema.json", - "sha256": "c30a70ce60b1946e6eb3cd0ebf1267841c97be81115f61e0bbf713262bfd59a3", + "sha256": "6352d107687d7dabdb85faad440c2fda3d272e1816174bb951a3188057483d89", "mediaType": "application/schema+json" } }, @@ -5947,11 +6156,11 @@ "description": "Registry Coordinator deterministic fixture authoring JSON Schema.", "source": { "path": "crates/registry-coordinator/src/scenarios.rs", - "sha256": "a3b78b3da6f9fcec6f5e40416295ae5ad481cdcdfb770c6bb1715e0fd7dfc3c9" + "sha256": "8ef5c37541be5c83c60fa82c20d615b79287df941b33c34b8d6a12ed83d562d9" }, "artifact": { "path": "products/coordinator/generated/fixture/fixture.schema.json", - "sha256": "1802438e02edad82557153c88818bbe2ffa8e243679f6d0306b811edc1adedb3", + "sha256": "7817d78eff4d92363247ecae6d7b672a4c25f51e46ec3b6507f403e55416830d", "mediaType": "application/schema+json" } }, @@ -5965,11 +6174,11 @@ "description": "Registry Coordinator portable project authoring JSON Schema.", "source": { "path": "crates/registry-coordinator/src/authoring.rs", - "sha256": "233ac8ce1b8f2a7c52bc39a2b48f55ba9ffc1c00be6dea1821089c9736ed8122" + "sha256": "5a69b78d0bd226766a8acaa1d25620309f3294b05aeef34250ea2cea6c6db267" }, "artifact": { "path": "products/coordinator/generated/project/project.schema.json", - "sha256": "69e53bda51ef36c2540769d13af80eaa09f6768b44d8379b79fe0886c7a53555", + "sha256": "4e6aec4ae96ea5a85738802f64e30cb7a4af439ec43fdf0c5b9d8cbe6d96e7ad", "mediaType": "application/schema+json" } }, @@ -6073,7 +6282,7 @@ "description": "Registry Document Store event data JSON Schemas, one per event family.", "source": { "path": "crates/registry-documents/src/schema.rs", - "sha256": "639160259116646ee57f1193bab60be8e0c35843eecd62b4c767e55edf44dca4" + "sha256": "a6a9376ed04286fa8798dc5b48f7a86351080e069d6efa9ea9858984aac88b2c" }, "artifact": { "path": "products/documents/generated/events/document-grant-changed.schema.json", @@ -6091,7 +6300,7 @@ "description": "Registry Document Store event data JSON Schemas, one per event family.", "source": { "path": "crates/registry-documents/src/schema.rs", - "sha256": "639160259116646ee57f1193bab60be8e0c35843eecd62b4c767e55edf44dca4" + "sha256": "a6a9376ed04286fa8798dc5b48f7a86351080e069d6efa9ea9858984aac88b2c" }, "artifact": { "path": "products/documents/generated/events/document-version-ready.schema.json", @@ -6109,7 +6318,7 @@ "description": "Registry Document Store event data JSON Schemas, one per event family.", "source": { "path": "crates/registry-documents/src/schema.rs", - "sha256": "639160259116646ee57f1193bab60be8e0c35843eecd62b4c767e55edf44dca4" + "sha256": "a6a9376ed04286fa8798dc5b48f7a86351080e069d6efa9ea9858984aac88b2c" }, "artifact": { "path": "products/documents/generated/events/document-version-rejected.schema.json", @@ -6127,7 +6336,7 @@ "description": "Registry Document Store project JSON Schema.", "source": { "path": "crates/registry-documents/src/schema.rs", - "sha256": "639160259116646ee57f1193bab60be8e0c35843eecd62b4c767e55edf44dca4" + "sha256": "a6a9376ed04286fa8798dc5b48f7a86351080e069d6efa9ea9858984aac88b2c" }, "artifact": { "path": "products/documents/generated/project/project.schema.json", @@ -6145,7 +6354,7 @@ "description": "Registry Document Store runtime configuration JSON Schema.", "source": { "path": "crates/registry-documents/src/schema.rs", - "sha256": "639160259116646ee57f1193bab60be8e0c35843eecd62b4c767e55edf44dca4" + "sha256": "a6a9376ed04286fa8798dc5b48f7a86351080e069d6efa9ea9858984aac88b2c" }, "artifact": { "path": "products/documents/generated/runtime/runtime.schema.json", @@ -6347,7 +6556,7 @@ }, "artifact": { "path": "crates/registry-evidencectl/schemas/authoring/project.schema.json", - "sha256": "e5ad46aace0be445b0a89f19eb3a36a4e178db8bce8b25bdd89e1f3c697cd558", + "sha256": "da730f25e370c6d9cbf4dd5755f6a32c5c65c60d07d9af4a04bf10f8ff155266", "mediaType": "application/schema+json" } }, @@ -6505,7 +6714,7 @@ "description": "Registry Messaging project, template, and HTTP provider authoring JSON Schema.", "source": { "path": "crates/registry-messaging/src/schema.rs", - "sha256": "3655690b7a2ed2f28fb3314568193a6b5328f7030a418618770d219f78e0d494" + "sha256": "5e58191869e1be749bd5d07aa9236975835ff0430cafa999d1306da92b4b8900" }, "artifact": { "path": "products/messaging/generated/authoring/project.schema.json", @@ -6523,7 +6732,7 @@ "description": "Registry Messaging project, template, and HTTP provider authoring JSON Schema.", "source": { "path": "crates/registry-messaging/src/schema.rs", - "sha256": "3655690b7a2ed2f28fb3314568193a6b5328f7030a418618770d219f78e0d494" + "sha256": "5e58191869e1be749bd5d07aa9236975835ff0430cafa999d1306da92b4b8900" }, "artifact": { "path": "products/messaging/generated/authoring/provider.schema.json", @@ -6541,7 +6750,7 @@ "description": "Registry Messaging runtime configuration JSON Schema.", "source": { "path": "crates/registry-messaging/src/schema.rs", - "sha256": "3655690b7a2ed2f28fb3314568193a6b5328f7030a418618770d219f78e0d494" + "sha256": "5e58191869e1be749bd5d07aa9236975835ff0430cafa999d1306da92b4b8900" }, "artifact": { "path": "products/messaging/generated/runtime/runtime.schema.json", @@ -6559,7 +6768,7 @@ "description": "Registry Messaging project, template, and HTTP provider authoring JSON Schema.", "source": { "path": "crates/registry-messaging/src/schema.rs", - "sha256": "3655690b7a2ed2f28fb3314568193a6b5328f7030a418618770d219f78e0d494" + "sha256": "5e58191869e1be749bd5d07aa9236975835ff0430cafa999d1306da92b4b8900" }, "artifact": { "path": "products/messaging/generated/authoring/template.schema.json", @@ -6815,7 +7024,7 @@ }, "artifact": { "path": "products/render/schemas/runtime.schema.json", - "sha256": "056770ac3ae7f273b82d4593ec2403c3706763e61c432d0615d8e6437c796d46", + "sha256": "f7478fe099f30fb3a3cb22b742688214f73c3e22fcf40caa42bb056e84fa39a2", "mediaType": "application/schema+json" } }, diff --git a/products/identifiers/scripts/generate.py b/products/identifiers/scripts/generate.py index f9e7c594e6..8f1c02cca7 100755 --- a/products/identifiers/scripts/generate.py +++ b/products/identifiers/scripts/generate.py @@ -15,6 +15,10 @@ BASE_URL = "https://id.registrystack.org" +PROBLEM_CODE_SEGMENT = re.compile(r"[a-z][a-z0-9]*(?:-[a-z0-9]+)*") +# The published OID4VP contract uses unqualified codes in its own namespace. +OID4VP_PROBLEM_URI_PREFIX = f"{BASE_URL}/problems/registry-evidence-oid4vp/" +ADAPTER_PROBLEM_URI_PREFIX = f"{BASE_URL}/problems/registry-adapter/" # Discovery's published type URIs predate its qualified problem codes. # Pin these pairs while other products retain the usual URI derivation. DISCOVERY_PROBLEM_URI_SUFFIXES = { @@ -439,18 +443,34 @@ def problem_entries( source = source_record(repo_root, repo_root / source_config["sourcePath"]) entries: list[dict[str, Any]] = [] expected = {"uri", "code", "title", "description", "httpStatuses"} + uri_prefix = source_config["uriPrefix"] for index, entry in enumerate(raw_entries): if not isinstance(entry, dict) or set(entry) != expected: raise CatalogError( f"{source_config['owner']} problem entry {index} has an invalid shape" ) - suffix = entry["code"].replace(".", "/") - if source_config["uriPrefix"] == f"{BASE_URL}/problems/registry-discovery/": - suffix = DISCOVERY_PROBLEM_URI_SUFFIXES.get(entry["code"]) - if suffix is None or entry["uri"] != source_config["uriPrefix"] + suffix: + code = entry["code"] + if not isinstance(code, str): + raise CatalogError( + f"{source_config['owner']} problem entry {index} has an invalid problem code" + ) + segments = code.split(".") + suffix = "/".join(segments) + if uri_prefix == f"{BASE_URL}/problems/registry-discovery/": + suffix = DISCOVERY_PROBLEM_URI_SUFFIXES.get(code) + elif uri_prefix == ADAPTER_PROBLEM_URI_PREFIX: + suffix = code + if suffix is None or entry["uri"] != uri_prefix + suffix: raise CatalogError( f"{source_config['owner']} problem URI and code disagree: {entry}" ) + if ( + (len(segments) == 1 and uri_prefix != OID4VP_PROBLEM_URI_PREFIX) + or any(PROBLEM_CODE_SEGMENT.fullmatch(segment) is None for segment in segments) + ): + raise CatalogError( + f"{source_config['owner']} problem entry {index} has an invalid problem code {code!r}" + ) entries.append( { "uri": entry["uri"], @@ -462,7 +482,7 @@ def problem_entries( "description": entry["description"], "source": source, "problem": { - "code": entry["code"], + "code": code, "httpStatuses": entry["httpStatuses"], }, } diff --git a/products/identifiers/scripts/test_generate.py b/products/identifiers/scripts/test_generate.py index 08dc08d1b1..87e7e95e63 100644 --- a/products/identifiers/scripts/test_generate.py +++ b/products/identifiers/scripts/test_generate.py @@ -312,6 +312,43 @@ def test_problem_code_must_match_its_uri(self) -> None: with self.assertRaisesRegex(generate.CatalogError, "URI and code disagree"): self.build() + def test_problem_code_grammar_even_when_the_uri_matches(self) -> None: + document = json.loads(self.fixture_problem_catalog.read_text()) + for code in ( + "example.bad_spelling", + "Example.failed", + "example..failed", + "example.bad--spelling", + "example.failed-", + "example.bad/spelling", + "invalid-request", + ): + with self.subTest(code=code): + suffix = code.replace(".", "/") + document["entries"][0].update( + uri=f"{generate.BASE_URL}/problems/registry-fixture/{suffix}", + code=code, + ) + self.fixture_problem_catalog.write_text(json.dumps(document)) + with self.assertRaisesRegex(generate.CatalogError, "invalid problem code"): + self.build() + + def test_oid4vp_single_segment_codes_still_require_kebab_case(self) -> None: + prefix = f"{generate.BASE_URL}/problems/registry-evidence-oid4vp/" + config = json.loads(self.config.read_text()) + config["problemSources"][0]["uriPrefix"] = prefix + self.config.write_text(json.dumps(config)) + document = json.loads(self.fixture_problem_catalog.read_text()) + entry = document["entries"][0] + entry.update(uri=prefix + "invalid-request", code="invalid-request") + self.fixture_problem_catalog.write_text(json.dumps(document)) + self.assertIn(entry["uri"], {item["uri"] for item in self.build()["entries"]}) + + entry.update(uri=prefix + "invalid_request", code="invalid_request") + self.fixture_problem_catalog.write_text(json.dumps(document)) + with self.assertRaisesRegex(generate.CatalogError, "invalid problem code"): + self.build() + def test_discovery_qualified_codes_keep_the_published_problem_uris(self) -> None: prefix = f"{generate.BASE_URL}/problems/registry-discovery/" spellings = { @@ -358,6 +395,23 @@ def test_discovery_mapping_rejects_uri_drift_and_does_not_relax_other_products(s with self.assertRaisesRegex(generate.CatalogError, "URI and code disagree"): self.build() + def test_adapter_problem_uris_use_the_registered_dotted_code(self) -> None: + prefix = generate.ADAPTER_PROBLEM_URI_PREFIX + code = "adapter.payment.authentication-required" + config = json.loads(self.config.read_text()) + config["problemSources"][0]["uriPrefix"] = prefix + self.config.write_text(json.dumps(config)) + document = json.loads(self.fixture_problem_catalog.read_text()) + entry = document["entries"][0] + entry.update(uri=prefix + code, code=code) + self.fixture_problem_catalog.write_text(json.dumps(document)) + self.assertIn(entry["uri"], {item["uri"] for item in self.build()["entries"]}) + + entry["uri"] = prefix + code.replace(".", "/") + self.fixture_problem_catalog.write_text(json.dumps(document)) + with self.assertRaisesRegex(generate.CatalogError, "URI and code disagree"): + self.build() + def test_two_problem_sources_are_merged(self) -> None: self.write_evidence_problem_catalog() document = json.loads(self.config.read_text()) @@ -591,18 +645,18 @@ def test_adapter_profile_fixture_needs_no_reference_exclusion(self) -> None: [], ) - def test_adapter_problem_namespace_has_one_exact_reference_exclusion(self) -> None: + def test_adapter_problem_namespace_has_a_payment_catalog_owner(self) -> None: source = generate.load_source_config( SCRIPT.parents[3] / "products/identifiers/contracts/catalog-source.json" ) - uri = f"{generate.BASE_URL}/problems/registry-adapter/" + uri = generate.ADAPTER_PROBLEM_URI_PREFIX matches = [ - entry for entry in source["referenceExclusions"] if entry.get("uri") == uri + entry for entry in source["problemSources"] if entry["uriPrefix"] == uri ] self.assertEqual(len(matches), 1) - self.assertEqual(matches[0]["path"], "crates/registry-adapter-core/src/naming.rs") - self.assertEqual(matches[0]["classification"], "planned-resolution") - self.assertNotIn("glob", matches[0]) + self.assertEqual(matches[0]["owner"], "adapter") + self.assertEqual(matches[0]["cargoPackage"], "registry-payment-protocol") + self.assertFalse(any(entry.get("uri") == uri for entry in source["referenceExclusions"])) def test_configurable_mcp_schema_has_an_active_catalog_owner(self) -> None: repo_root = SCRIPT.parents[3] diff --git a/products/messaging/CHANGELOG.md b/products/messaging/CHANGELOG.md index 91b2fe32af..85131a6832 100644 --- a/products/messaging/CHANGELOG.md +++ b/products/messaging/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +- BREAKING: Generated Messaging clients use `messageId`, `providerId`, and + `templateId` in `path` arguments. Replace `message_id`, `provider_id`, and + `template_id`, and replace `version` with `templateVersion` on template + previews. Operation names and concrete HTTP URLs stay the same. + ## 0.49.0 - 2026-12-01 - BREAKING: A valid token whose caller is not admitted (its kind or its client) answers 403 instead of 401. Configuration-refused issuer key sources (`KeySourceUnavailable`) answer 503 `service.unavailable` alongside live key-source outages. Migration: Clients that retried or re-authenticated on 401 treat 403 as final, and operators diagnosing 503 key-source refusals inspect issuer key-source configuration alongside network availability. diff --git a/products/messaging/generated/registry-messaging.openapi.json b/products/messaging/generated/registry-messaging.openapi.json index ce49ae0bca..5b7e832acc 100644 --- a/products/messaging/generated/registry-messaging.openapi.json +++ b/products/messaging/generated/registry-messaging.openapi.json @@ -270,6 +270,10 @@ "detail": { "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "type": "integer" }, @@ -1340,13 +1344,13 @@ "summary": "Read the retained original acceptance receipt for this caller, key and exact request without submitting or rendering a message. An unresolved receipt does not establish that no effect occurred." } }, - "/v1/messages/{message_id}": { + "/v1/messages/{messageId}": { "get": { "operationId": "getMessage", "parameters": [ { "in": "path", - "name": "message_id", + "name": "messageId", "required": true, "schema": { "minLength": 1, @@ -1509,13 +1513,13 @@ "summary": "Read the status of a message the caller submitted, or any message for an operator. A message the caller may not see answers exactly like one that does not exist. The recipient is masked, and no part or template data is returned." } }, - "/v1/messages/{message_id}/cancel": { + "/v1/messages/{messageId}/cancel": { "post": { "operationId": "cancelMessage", "parameters": [ { "in": "path", - "name": "message_id", + "name": "messageId", "required": true, "schema": { "minLength": 1, @@ -1702,13 +1706,13 @@ "summary": "Cancel a queued message, including one waiting for a retry, the caller submitted, or any queued message for an operator. A message whose dispatch started or that reached a final state is refused." } }, - "/v1/provider-callbacks/{provider_id}": { + "/v1/provider-callbacks/{providerId}": { "post": { "operationId": "receiveProviderCallback", "parameters": [ { "in": "path", - "name": "provider_id", + "name": "providerId", "required": true, "schema": { "minLength": 1, @@ -1920,13 +1924,13 @@ "summary": "Take one delivery callback from a provider whose runtime configuration names an `hmac-sha1-url-form` or `hmac-sha256-body` callback verifier. The verifier, not a bearer token, authenticates the request; the provider package's receipt script reads it. A verified callback answers 204 whether or not its reference names a message, and a receipt never moves a message's report backwards." } }, - "/v1/provider-callbacks/{provider_id}/{token}": { + "/v1/provider-callbacks/{providerId}/{token}": { "post": { "operationId": "receiveProviderCallbackWithToken", "parameters": [ { "in": "path", - "name": "provider_id", + "name": "providerId", "required": true, "schema": { "minLength": 1, @@ -2147,13 +2151,13 @@ "summary": "Take one delivery callback from a provider whose runtime configuration names a `path-token` callback verifier, with the secret token as the last path segment. Otherwise as `receiveProviderCallback`." } }, - "/v1/templates/{template_id}/versions/{version}/preview": { + "/v1/templates/{templateId}/versions/{templateVersion}/preview": { "post": { "operationId": "previewTemplate", "parameters": [ { "in": "path", - "name": "template_id", + "name": "templateId", "required": true, "schema": { "minLength": 1, @@ -2162,7 +2166,7 @@ }, { "in": "path", - "name": "version", + "name": "templateVersion", "required": true, "schema": { "minLength": 1, diff --git a/products/platform/CONFIG-CONVENTIONS.md b/products/platform/CONFIG-CONVENTIONS.md index 58049ac7e0..866b14cf94 100644 --- a/products/platform/CONFIG-CONVENTIONS.md +++ b/products/platform/CONFIG-CONVENTIONS.md @@ -442,6 +442,8 @@ here is added to the list in the same change that first uses it. See CFG-QTY. | Largest accepted body or file | `maximumBytes` | `maxBytes`, `maxSize` outside `pool` | | Outbound hook destination bindings, one entry per destination id | `destinations.hooks` | `eventDestinations` | | Named record lookup declaration and reference in BReg and Evidence | `lookups`, `lookup` | `selectorProfiles`, `selectorProfile` | +| Identifier of one Registry Record | `recordId` | `recordIdentifier` | +| Identifiers of several Registry Records | `recordIds` | `recordIdentifiers` | | Named grants that admit verified callers and bound what they can do | `accessProfiles` | `authentication.policies` | | Current and optional previous HMAC-SHA256 signing key references for a shared URL hook destination | `hmacSha256KeyRef`, `previousHmacSha256KeyRef` | | | What a caller resolved to an access profile is to the service (Casework, Documents, Messaging; `role` keeps its data sense elsewhere, so review refuses it here) | `actsAs` under an access profile | | @@ -1039,6 +1041,56 @@ the migration guide; it stays until the format's next stable version. A format with no stable version yet may drop or rename a key with only the CHANGELOG entry CFG-CHANGE-3 requires, and the old key is then refused as unknown. +**Retired spellings.** A retired spelling stays out of every format file and +every docs page once its product refuses it, so no example, fixture, journey +or page teaches it again. The table is the one list both checks read: the +convention lint sweeps the YAML and JSON files under `products/` (generated +schemas, OpenAPI documents, the format registry and the exceptions register +excepted), and `check:config-vocabulary` in `docs/site` sweeps the docs pages. +A line or string value may still name a retired spelling as a migration note: +it names the replacement in code marks, or says renamed, removed, retired or +replaced before the spelling. A retired spelling used as a key is refused +outright. Changelogs, decision records and approved specifications are not +swept. Each exact key in the CFG-NAME-5 refused column +appears here or in the list after the table. + +| Retired spelling | Replacement | Retired by | +|---|---|---| +| `requestTimeoutSeconds` | `requestTimeoutMilliseconds` | CFG-NAME-5 | +| `retrySeconds` | `retryDelaySeconds` | CFG-NAME-5 | +| `maxAttempts` | `maximumAttempts` | CFG-NAME-5 | +| `shutdownTimeoutSeconds` | `shutdownGraceMilliseconds` | CFG-NAME-5 | +| `maxTokenLifetimeSeconds` | `maximumTokenLifetimeSeconds` | CFG-NAME-5 | +| `retainDays` | `retentionDays` | CFG-NAME-5 | +| `attemptReceiptRetentionDays` | `receiptRetentionDays` | CFG-NAME-5 | +| `submissionReceiptRetentionDays` | `receiptRetentionDays` | CFG-NAME-5 | +| `eventDestinations` | `destinations.hooks` | CFG-NAME-5 | +| `selectorProfiles` | `lookups` | CFG-NAME-5 | +| `selectorProfile` | `lookup` | CFG-NAME-5 | +| `authentication.policies` | `accessProfiles` | CFG-NAME-5 | +| `recordIdentifier` | `recordId` | CFG-NAME-5 | +| `recordIdentifiers` | `recordIds` | CFG-NAME-5 | +| `--selector-profile` | `--lookup` | BReg, v0.49.0 | +| `loopback-development-http` | `loopback-http` | BReg, v0.49.0 | +| `databaseInitializationEnvironment` | none: delete the key | BReg, v0.49.0 | +| `Registry-Casework-Profile` | `accessProfile` | Casework, v0.49.0 | +| `Registry-Review-Profile` | `accessProfile` | Casework, v0.49.0 | +| `humanIdentity` | `actorKind` | Casework, v0.49.0 | +| `bregctl dev` | `rstack dev` | Platform, v0.49.0 | +| `messagingctl dev` | `rstack dev` | Platform, v0.49.0 | + +**Not refused.** These spellings look retired but are not, so neither check +refuses them. Do not add them to the table. + +| Spelling | Why it is not refused | +|---|---| +| `title` | A CFG-NAME-5 refused key, but the word is ordinary prose and a member of other contracts. Review enforces `label`. | +| `timeoutMilliseconds` | A CFG-NAME-5 refused key only outside its recorded Adapter pack exception, and a member of client and pack contracts. | +| `attemptTimeoutSeconds` | A member of client contracts: the Coordinator operations catalog `limits`, the `registry-platform-httputil` exchange configuration, and `attempt_timeout_seconds` in the BReg, Casework, Scheduling, Coordinator, Evidence, Messaging and Discovery Python clients. Messaging still refuses it under `providers`. | +| `development-loopback` | A live `tlsTermination` value in Casework, Documents, Messaging, the Adapter job host and Session, distinct from `loopback-plaintext`. | +| `$skiptoken` | A live BReg collection read parameter (OData), with `$top`. | +| `publicService` | The single member of the service preview `service.yaml`, a different format from the Manifest's `publicServices`. | + **CFG-CHANGE-3 (MUST). Before 1.0, an alpha format may change in place.** Each breaking change ships in one change with: a `BREAKING:` entry and exact migration steps in the product CHANGELOG and the stack release note; updated @@ -1096,6 +1148,8 @@ format. | CFG-VAL-6 | Scheduling `admissionHash` | Released API member. | | CFG-VAL-6 | platform-audit `prevHash` and `recordHash` | Members of the audit record whose bytes are hashed in sequence; renaming changes the record. | | CFG-VAL-6 | BReg `schemaFingerprint` | A fingerprint of a schema, named for what it identifies rather than as a digest. | +| CFG-NAME-5 | `attemptTimeoutSeconds` in `products/coordinator/generated/operations/catalog.json` limits, the `registry-platform-httputil` exchange configuration, and `attempt_timeout_seconds` in the BReg, Casework, Scheduling, Coordinator, Evidence, Messaging and Discovery Python clients | Released client and catalog API. Renaming it breaks every binding. Rename or record at the 1.0 wire cut (#2104, v0.52.0). | +| CFG-NAME-3; CFG-NAME-5 | `maxBytes` client options: TypeScript `maxMetadataBytes`, Python `max_metadata_bytes` | Released client API that callers set. Rename or record at the 1.0 wire cut (#2104, v0.52.0). | ## Enforcement summary @@ -1103,7 +1157,7 @@ Each MUST rule appears once; SHOULD rules are in the last row. | Rules | Gate | |---|---| -| CFG-ENV-1, 4; CFG-YAML-2 to 8; CFG-VAL-1 to 3; CFG-EMPTY-1; CFG-SEC-2, 3; CFG-DIAG-1, 2, 5; CFG-CHANGE-2 | reader unit tests named with the rule ID; the conformance corpus; for CFG-ENV-1 also the convention lint (`const` envelope) | +| CFG-ENV-1, 4; CFG-YAML-2 to 8; CFG-VAL-1 to 3; CFG-EMPTY-1; CFG-SEC-2, 3; CFG-DIAG-1, 2, 5; CFG-CHANGE-2 | reader unit tests named with the rule ID; the conformance corpus; for CFG-ENV-1 also the convention lint (`const` envelope); for CFG-CHANGE-2 also the convention lint's retired-spelling sweep and `check:config-vocabulary` in `docs/site` | | CFG-VAL-11 | shared reader and comparison-helper unit tests; generated product schemas; product check tests for structured warnings and `--deny-warnings` | | CFG-DIAG-7 | shared acceptance parser, matcher, schema drift, and file-boundary tests; consuming product check tests for exact matching, refusal preservation, and `--deny-warnings` | | CFG-YAML-1 | `disallowed-methods` in every `clippy.toml` in the repository, with `check-yaml-reader-boundary.sh`; the conformance corpus | diff --git a/products/platform/config-conventions-exceptions.yaml b/products/platform/config-conventions-exceptions.yaml index a1f85c73b8..710c2414cf 100644 --- a/products/platform/config-conventions-exceptions.yaml +++ b/products/platform/config-conventions-exceptions.yaml @@ -37,6 +37,12 @@ # # The entries were seeded from the lint's `--list --format json` output and # classified by rule, format stability, and schema origin; edit them by hand. +# +# CFG-CHANGE-1 sealed package compatibility for breg/project and breg/module: +# The integrity-verified package closure reader translates the old Action Plan +# keys for predecessor planning and rehearsal. The public authoring readers +# still accept one spelling. Remove the translation when no supported +# predecessor package carries the old keys. apiVersion: id.registrystack.org/formats/platform/config-conventions-exceptions/v1alpha1 kind: PlatformConfigConventionsExceptions @@ -137,12 +143,6 @@ exceptions: class: protocol-constant reason: $count is written as OData system query options defines it resolution: Permanent. -- rule: CFG-NAME-2 - format: breg/queries-explanation - location: products/breg/contracts/explain/QueriesExplanation.schema.json#/properties/operations/items/properties/wire/properties/cursor/const/$skiptoken - class: protocol-constant - reason: $skiptoken is written as OData system query options defines it - resolution: Permanent. - rule: CFG-NAME-2 format: breg/queries-explanation location: products/breg/contracts/explain/QueriesExplanation.schema.json#/properties/operations/items/properties/wire/properties/filter/const/$filter @@ -155,12 +155,6 @@ exceptions: class: protocol-constant reason: $orderby is written as OData system query options defines it resolution: Permanent. -- rule: CFG-NAME-2 - format: breg/queries-explanation - location: products/breg/contracts/explain/QueriesExplanation.schema.json#/properties/operations/items/properties/wire/properties/pageSize/const/$top - class: protocol-constant - reason: $top is written as OData system query options defines it - resolution: Permanent. - rule: CFG-NAME-2 format: breg/queries-explanation location: products/breg/contracts/explain/QueriesExplanation.schema.json#/properties/operations/items/properties/wire/properties/select/const/$select diff --git a/products/platform/config-formats.yaml b/products/platform/config-formats.yaml index c507fc67da..64193704d6 100644 --- a/products/platform/config-formats.yaml +++ b/products/platform/config-formats.yaml @@ -2780,7 +2780,7 @@ formats: idList: none set: /assertionDefinitions/adult-status/representations reference: /assertionDefinitions/adult-status/acquisition/source - relativePath: /functions/derive-adult-status/source + relativePath: /derivations/derive-adult-status/source securityMembers: - pointer: /assertionDefinitions/*/grantCeiling/authorities whenOmitted: refused @@ -3933,7 +3933,7 @@ formats: integer: /workflow/deadlineSeconds boolean: none reference: /workflow/start - relativePath: /functions/notice-route/source + relativePath: /transforms/notice-route/source securityMembers: [] restrictingMembers: [] - id: coordinator/runtime diff --git a/products/platform/conformance/yaml/formats.yaml b/products/platform/conformance/yaml/formats.yaml index 0ea961ba7e..d125edaaa3 100644 --- a/products/platform/conformance/yaml/formats.yaml +++ b/products/platform/conformance/yaml/formats.yaml @@ -135,7 +135,7 @@ formats: # Isolate the path role: other functions keep their shared source file # when the corpus moves or symlinks this one outside the project. set: - /functions/notice-route/source: notice-route.rhai + /transforms/notice-route/source: notice-route.rhai write: notice-route.rhai: | fn notice_route(args) { diff --git a/products/platform/examples/service-previews/business-registration/project/registry.yaml b/products/platform/examples/service-previews/business-registration/project/registry.yaml index 59fb5a2145..25fc3c387b 100644 --- a/products/platform/examples/service-previews/business-registration/project/registry.yaml +++ b/products/platform/examples/service-previews/business-registration/project/registry.yaml @@ -40,7 +40,7 @@ recordTypes: - {id: by-registration-number, fields: [registration-number]} - {id: by-legal-name, fields: [legal-name]} -functions: +actionPlans: register-business-plan: runtime: rhai source: plans/register-business.rhai @@ -59,8 +59,8 @@ actions: - {id: legal-name, apiName: legalName, type: string, required: true, minimumLength: 1, maximumLength: 160, classification: internal} - {id: registration-number, apiName: registrationNumber, type: string, required: true, minimumLength: 1, maximumLength: 32, classification: internal} plan: - type: function - function: register-business-plan + type: scripted + actionPlan: register-business-plan inputs: [legal-name, registration-number] writes: - id: business diff --git a/products/platform/examples/service-previews/medical-renewal/project/registry.yaml b/products/platform/examples/service-previews/medical-renewal/project/registry.yaml index a527e427af..c93a98ecaf 100644 --- a/products/platform/examples/service-previews/medical-renewal/project/registry.yaml +++ b/products/platform/examples/service-previews/medical-renewal/project/registry.yaml @@ -53,7 +53,7 @@ recordTypes: - {id: by-jurisdiction, fields: [jurisdiction]} - {id: by-holder, fields: [holder-ref]} -functions: +actionPlans: issue-plan: runtime: rhai source: plans/issue.rhai @@ -84,8 +84,8 @@ actions: - {id: issued-on, apiName: issuedOn, type: date, required: true, classification: internal} - {id: expires-on, apiName: expiresOn, type: date, required: true, classification: internal} plan: - type: function - function: issue-plan + type: scripted + actionPlan: issue-plan inputs: [licence-number, holder-ref, holder-name, profession, jurisdiction, issued-on, expires-on] writes: - id: licence @@ -108,8 +108,8 @@ actions: - {input: licence, field: expires-on, atMostFromInput: new-expires-on, reason: renewal-shortens-validity} - {input: licence, field: renewable-until, atLeastFromInput: new-expires-on, reason: renewal-exceeds-three-years} plan: - type: function - function: renew-plan + type: scripted + actionPlan: renew-plan inputs: [licence, new-expires-on] writes: - id: licence diff --git a/products/platform/scripts/check-config-conventions.py b/products/platform/scripts/check-config-conventions.py index 19624d66a8..e4b8ec4e34 100644 --- a/products/platform/scripts/check-config-conventions.py +++ b/products/platform/scripts/check-config-conventions.py @@ -4,7 +4,8 @@ The lint reads three files: - products/platform/CONFIG-CONVENTIONS.md, for the CFG-NAME-5 table of - refused spellings and the Enforcement summary; + refused spellings, the Retired spellings and Not refused tables, and the + Enforcement summary; - products/platform/config-formats.yaml, the format registry (CFG-SCHEMA-1); - products/platform/config-conventions-exceptions.yaml, the exceptions register. @@ -19,7 +20,12 @@ registered schema and the shared runtime blocks; and a source lint over each reader type's closure (CFG-SCHEMA-8, CFG-CHANGE-1, CFG-ID-6). A deviation recorded in the exceptions register passes; an unrecorded one fails, and so -does a recorded one that no longer deviates. Pending entries are counted per +does a recorded one that no longer deviates. The retired-spelling sweep +(CFG-CHANGE-2) refuses each spelling of the Retired spellings table in the +YAML and JSON files under `products/`: as a key outright, and in a string +value outside a migration note. A hit is an error, never exceptable through +the register. +Pending entries are counted per product and work package, and `--strict` refuses them. CFG-CHANGE-5 compares the register, entry by entry (rule, format, location), with the merge base of `origin/main` (or `--base`): an entry may be added only in the @@ -410,11 +416,20 @@ class Name5Row: refused: list[Name5Item] +@dataclass +class RetiredSpelling: + spelling: str + replacements: list[str] + pattern: re.Pattern[str] + + @dataclass class Convention: rules: dict[str, str] name5: list[Name5Row] summary: list[tuple[str, list[str], str]] + retired: list[RetiredSpelling] = field(default_factory=list) + not_refused: list[str] = field(default_factory=list) RULE_DECLARATION = re.compile(r"\*\*(CFG-[A-Z]+-[0-9]+) \((MUST|SHOULD)\)") @@ -471,6 +486,70 @@ def items(cell: str) -> list[Name5Item]: return rows if header is not None else None +# Text is a migration note for a retired spelling when one of these words +# comes before the spelling, or when it names the replacement in code marks. +# The docs check (docs/site/scripts/check-stale-config-vocabulary.sh) uses the +# same alternation, and a lint test holds the two equal. +MIGRATION_WORDS = "renamed|removed|retired|replac" +MIGRATION_NOTE = re.compile(MIGRATION_WORDS, re.IGNORECASE) +RETIRED_FILE_SUFFIXES = (".yaml", ".yml", ".json") + + +def markdown_table(text: str, marker: str, first_header: str) -> list[list[str]] | None: + """The body rows of the first table after `marker` whose first header is `first_header`.""" + start = text.find(marker) + if start == -1: + return None + rows: list[list[str]] = [] + header = None + for line in text[start:].splitlines()[1:]: + if not line.startswith("|"): + if header is not None: + break + continue + cells = [cell.strip() for cell in line.strip().strip("|").split("|")] + if header is None: + if cells[0] != first_header: + return None + header = cells + continue + if set(line.replace("|", "").strip()) <= {"-", " "}: + continue + rows.append(cells) + return rows if header is not None else None + + +def spelling_pattern(spelling: str) -> re.Pattern[str]: + return re.compile(r"(? re.Pattern[str]: + return re.compile(r"`[^`]*?(? bool: + """True when `text` uses the retired spelling outside a migration note.""" + if any(code_marked(replacement).search(text) for replacement in item.replacements): + return False + note = MIGRATION_NOTE.search(text) + return any(note is None or note.start() > match.start() for match in item.pattern.finditer(text)) + + +def parse_retired(text: str) -> tuple[list[RetiredSpelling], list[str]] | None: + retired_rows = markdown_table(text, "**Retired spellings.**", "Retired spelling") + kept_rows = markdown_table(text, "**Not refused.**", "Spelling") + if retired_rows is None or kept_rows is None: + return None + retired = [] + for cells in retired_rows: + spelling = re.findall(r"`([^`]+)`", cells[0]) + if len(spelling) != 1 or len(cells) < 2: + return None + retired.append(RetiredSpelling(spelling[0], re.findall(r"`([^`]+)`", cells[1]), spelling_pattern(spelling[0]))) + kept = [token for cells in kept_rows for token in re.findall(r"`([^`]+)`", cells[0])[:1]] + return retired, kept + + def expand_rules(cell: str) -> list[str]: rules: list[str] = [] for group in cell.replace("(SHOULD)", "").split(";"): @@ -524,7 +603,13 @@ def load_convention(root: Path, report: Report) -> Convention | None: if summary is None: report.errors.append(f"{CONVENTION}: the Enforcement summary is missing") summary = [] - return Convention(rules, name5, summary) + retired = parse_retired(text) + if retired is None: + report.errors.append( + f"{CONVENTION}: the Retired spellings and Not refused tables under CFG-CHANGE-2 are missing or malformed" + ) + retired = ([], []) + return Convention(rules, name5, summary, retired[0], retired[1]) # -------------------------------------------------------------------------- @@ -2099,6 +2184,78 @@ def restricting(self, entry: dict, path: str, document: dict) -> None: self.find("CFG-EMPTY-2", entry["id"], path, at, f"the restricting member {member} accepts {problem}", "Refuse empty: declare minItems: 1 (or minProperties: 1) and no empty default") + def retired_spellings(self) -> None: + """CFG-CHANGE-2: no format file under products/ teaches a retired spelling.""" + convention = self.convention + if convention is None: + return + retired = {item.spelling for item in convention.retired} + kept = set(convention.not_refused) + for spelling in sorted(retired & kept): + self.report.errors.append(f"{CONVENTION}: {spelling} is both retired and not refused") + for row in convention.name5: + for item in row.refused: + if item.context is not None or "<" in item.text: + continue + spelling = f"{item.parent}.{item.text}" if item.parent else item.text + if spelling not in retired and spelling not in kept: + self.report.errors.append( + f"{CONVENTION}: the CFG-NAME-5 refused key {spelling} is in neither the Retired spellings " + "nor the Not refused table" + ) + for path in sorted(self.root.glob("products/**/*")): + relative = path.relative_to(self.root).as_posix() + if ( + not path.is_file() + or not relative.endswith(RETIRED_FILE_SUFFIXES) + or relative.endswith(".schema.json") + or "openapi" in path.name + or relative in (REGISTRY, REGISTER) + or "/node_modules/" in relative + ): + continue + text = path.read_text(encoding="utf-8", errors="replace") + # A dotted spelling is a key path, so look for its last key. + if not any(item.spelling.rsplit(".", 1)[-1] in text for item in convention.retired): + continue + try: + documents = list(yaml.safe_load_all(text)) + except yaml.YAMLError: + # A deliberately malformed fixture still may not teach a + # retired spelling: scan its lines instead. + for number, line in enumerate(text.splitlines(), 1): + for item in convention.retired: + if teaches(line, item): + self.retired_spelling(f"{relative}:{number}", item) + continue + for index, document in enumerate(documents): + prefix = (str(index),) if len(documents) > 1 else () + self.retired_in(relative, document, prefix, convention.retired) + + def retired_in(self, file: str, node: object, tokens: tuple[str, ...], retired: list[RetiredSpelling]) -> None: + if isinstance(node, dict): + for key, value in node.items(): + path = (*tokens, str(key)) + for item in retired: + segments = tuple(item.spelling.split(".")) + if path[-len(segments):] == segments: + self.retired_spelling(f"{file}#{pointer(path)}", item) + self.retired_in(file, value, path, retired) + elif isinstance(node, list): + for index, value in enumerate(node): + self.retired_in(file, value, (*tokens, str(index)), retired) + elif isinstance(node, str): + for item in retired: + if teaches(node, item): + self.retired_spelling(f"{file}#{pointer(tokens)}", item) + + def retired_spelling(self, where: str, item: RetiredSpelling) -> None: + replacement = ", ".join(item.replacements) or "the replacement" + self.report.errors.append( + f"{where}: retired spelling {item.spelling}; write {replacement} " + f"(CFG-CHANGE-2, Retired spellings in {CONVENTION})" + ) + def quantity_units(self) -> None: stems: dict[str, list[tuple[str, str, str, str]]] = defaultdict(list) seen = set() @@ -2576,6 +2733,7 @@ def run(root: Path, base: str | None = None, strict: bool = False) -> Report: if isinstance(document, dict): lint.schema_rules(str(item.get("id")), None, str(item.get("path")), document) lint.quantity_units() + lint.retired_spellings() lint.source_rules() entries = lint.load_register() lint.reconcile(entries, strict) diff --git a/products/platform/scripts/run-config-conformance.py b/products/platform/scripts/run-config-conformance.py index 7a78f743fe..c45ff79133 100644 --- a/products/platform/scripts/run-config-conformance.py +++ b/products/platform/scripts/run-config-conformance.py @@ -190,11 +190,13 @@ CORPUS = "products/platform/conformance/yaml" MARKER = "CONFORMANCE-MARKER-Q7ZK2W" +OPERATOR_WARNING_CANARY = "BREG-OPERATOR-MARKER-3H9V1Q" # The check command runs with VARIABLE set to the marker and UNSET_VARIABLE # removed, so a substitution case can name either. VARIABLE = "REGISTRY_CONFORMANCE_VALUE" UNSET_VARIABLE = "REGISTRY_CONFORMANCE_UNSET" BASELINE = "baseline" +BREG_WARNING_CONTROL = "BReg warning control: " TIMEOUT_SECONDS = 120 CODE = re.compile(r"^[a-z0-9]+(-[a-z0-9]+)*(\.[a-z0-9]+(-[a-z0-9]+)*)+$") @@ -1638,7 +1640,7 @@ def digest(problems: list[str]) -> str: def unmaskable(problem: str) -> bool: """A leak, a crash, a hang, or a failure of the harness: never an expected failure.""" - if problem.endswith(LEAK) or HARNESS.fullmatch(problem): + if problem.startswith(BREG_WARNING_CONTROL) or problem.endswith(LEAK) or HARNESS.fullmatch(problem): return True match = UNMASKABLE.search(problem) return match is not None and (match.group(1) is None or int(match.group(1)) > 3) @@ -2161,6 +2163,116 @@ def run_init_cell(fmt: Format, bin_dir: Path) -> list[str]: remove_tree(work) +def breg_authored_warnings(registry_file: Path) -> list[dict[str, Any]]: + """The complete reviewed finding sequence for the external-views example.""" + diagnostics = [] + for profile, record_index, record_type, field_index, line, column in ( + ("projection-refresh", 0, "licence", 0, 197, 28), + ("projection-refresh", 1, "licensed-business", 0, 201, 28), + ("staff-refresh", 0, "licence", 0, 214, 28), + ("staff-refresh", 1, "licensed-business", 0, 218, 28), + ("fixture-editor", 0, "licence", 1, 229, 44), + ("fixture-editor", 1, "licensed-business", 1, 234, 44), + ): + prefix = f"/accessProfiles/{profile}/permissions/records" + suffix = f"readableFields/{field_index}" + diagnostics.append({ + "artifact": "BRegProject", + "code": "breg.access.profile-higher-classification", + "message": "this field is more sensitive than its record type's classification; " + "verify the profile's scope and purpose before disclosing it", + "path": f"{prefix}/{record_index}/{suffix}", + "rank": "hygiene", + "scope": {"file": "registry.yaml", "path": f"{prefix}/@recordType={record_type}/{suffix}"}, + "severity": "warning", + "source": {"file": str(registry_file), "line": line, "column": column}, + "suggestedAction": "Remove the field from readableFields, or confirm that the " + "profile scopes and purposes admit only callers cleared for this classification.", + }) + return diagnostics + + +def breg_duplicate_key(file: Path, artifact: str, pointer: str, first: tuple[int, int], + second: tuple[int, int]) -> dict[str, Any]: + return { + "artifact": artifact, + "code": "yaml.duplicate-key", + "message": "the key is already defined in this mapping", + "path": pointer, + "related": [{"column": first[1], "file": str(file), "line": first[0], + "message": "the first definition", "path": pointer}], + "severity": "error", + "source": {"column": second[1], "file": str(file), "line": second[0]}, + "suggestedAction": "Keep one definition of the key.", + } + + +def check_breg_warning_answer(argv: list[str], work: Path, env: dict[str, str], phase: str, + diagnostics: list[dict[str, Any]], *, refusal: bool = False) -> list[str]: + code, stdout, stderr = run_command(argv, work, env) + if marker_problems(stdout, stderr) or any( + OPERATOR_WARNING_CANARY.encode() in stream for stream in (stdout, stderr) + ): + return [f"{BREG_WARNING_CONTROL}{phase}: captured a synthetic input canary"] + if code != int(refusal) or stderr: + return [f"{BREG_WARNING_CONTROL}{phase}: unexpected exit status or stderr"] + status = "domain-refusal" if refusal else "complete" + try: + report = json.loads(stdout) + except ValueError: + return [f"{BREG_WARNING_CONTROL}{phase}: invalid JSON report"] + expected_ok = not refusal + if (not isinstance(report, dict) or report.get("ok") is not expected_ok or report.get("status") != status + or json.dumps(report.get("diagnostics"), sort_keys=True) != json.dumps(diagnostics, sort_keys=True)): + return [f"{BREG_WARNING_CONTROL}{phase}: exact diagnostics or report status changed"] + return [] + + +def breg_warning_controls(root: Path, bin_dir: Path, env: dict[str, str]) -> list[str]: + """Prove BReg's located warning and duplicate-key diagnostics in a Unicode directory.""" + try: + authored = (root / "products/breg/examples/external-views/registry.yaml").read_bytes() + operator = load_yaml(root / "products/breg/examples/minimal/runtime.example.yaml") + operator["authentication"]["oidc"]["issuers"]["primary"]["allowedClients"] = [ + "licensing-refresh", "officer", "restricted", "staff-app", + ] + operator_text = json.dumps(operator, indent=2, ensure_ascii=False) + "\n" + member = '"maximumConnections": 4' + if operator_text.count(member) != 1: + return [f"{BREG_WARNING_CONTROL}the operator example must declare the test pool size"] + with tempfile.TemporaryDirectory(prefix="config-conformance-é-") as directory: + work = Path(directory).resolve() + project = work / "project" + project.mkdir() + registry = project / "registry.yaml" + runtime = work / "runtime.yaml" + command = [str(bin_dir / "bregctl"), "--format", "json", "check", str(project), "--posture", "production"] + env = {**env, "REGISTRY_STACK_POSTURE": "production"} + warnings = breg_authored_warnings(registry) + registry.write_bytes(authored) + problems = check_breg_warning_answer(command, work, env, "authored warning baseline", warnings) + registry.write_bytes(f"kind: {MARKER}\n".encode() + authored) + duplicate = breg_duplicate_key(registry, "BRegProject", "/kind", (1, 1), (4, 1)) + problems += check_breg_warning_answer( + command, work, env, "authored duplicate refusal", [duplicate], refusal=True, + ) + registry.write_bytes(authored) + command += ["--runtime-config", str(runtime)] + runtime.write_text(operator_text, encoding="utf-8") + problems += check_breg_warning_answer(command, work, env, "operator warning baseline", warnings) + duplicate_member = f'{member}, "maximumConnections": "{OPERATOR_WARNING_CANARY}"' + runtime.write_text(operator_text.replace(member, duplicate_member), encoding="utf-8") + duplicate = breg_duplicate_key( + runtime, "BRegRuntimeConfig", "/database/pool/maximumConnections", (22, 7), (22, 32), + ) + problems += check_breg_warning_answer( + command, work, env, "operator duplicate refusal", [*warnings, duplicate], refusal=True, + ) + return problems + except (OSError, KeyError, TypeError, ValueError, yaml.YAMLError) as error: + return [f"{BREG_WARNING_CONTROL}could not stage or run an input ({type(error).__name__})"] + + def run_cell(root: Path, fmt: Format, case: Case, bin_dir: Path) -> list[str]: """Run one case against one format; the problems found, sanitized.""" if case.run == "init": @@ -2174,6 +2286,8 @@ def run_cell(root: Path, fmt: Format, case: Case, bin_dir: Path) -> list[str]: problems = prepare_problems(fmt, staged, env, bin_dir) if problems: return [sanitize(problem, str(staged.work)) for problem in problems] + if fmt.id == "breg/project" and case.id == BASELINE: + problems = breg_warning_controls(root, bin_dir, env) text = prepare_example(staged.target.read_text(encoding="utf-8"), fmt, staged.values) for variant in mutate(text, case.mutation, fmt): if staged.target.is_symlink(): diff --git a/products/platform/scripts/test_check_config_conventions.py b/products/platform/scripts/test_check_config_conventions.py index 9ad7790787..ff24d81ff4 100644 --- a/products/platform/scripts/test_check_config_conventions.py +++ b/products/platform/scripts/test_check_config_conventions.py @@ -69,6 +69,24 @@ **CFG-ENV-5 (SHOULD). Files are named after the format.** +**Retired spellings.** Refused in format files outside migration notes. + +| Retired spelling | Replacement | Retired by | +|---|---|---| +| `requestTimeoutSeconds` | `requestTimeoutMilliseconds` | CFG-NAME-5 | +| `attemptTimeoutSeconds` | `attemptTimeoutMilliseconds` | CFG-NAME-5 | +| `maxAttempts` | `maximumAttempts` | CFG-NAME-5 | +| `retainDays` | `retentionDays` | CFG-NAME-5 | +| `bregctl dev` | `rstack dev` | Platform | +| `authentication.policies` | `accessProfiles` | CFG-NAME-5 | + +**Not refused.** + +| Spelling | Why it is not refused | +|---|---| +| `timeoutMilliseconds` | A member of other contracts. | +| `maxSize` | A pool bound. | + ## Exceptions | Class | Meaning | Resolution | @@ -964,17 +982,136 @@ def test_cfg_name_5_follows_the_convention_table(self) -> None: CONVENTION_TEXT.replace( "| Cache | `cacheTtlSeconds` | |", "| Cache | `cacheTtlSeconds` | |\n| Window | `deliveryWindowMinutes` | `deliveryWindowHours` |", + ).replace( + "| `bregctl dev` | `rstack dev` | Platform |", + "| `bregctl dev` | `rstack dev` | Platform |\n| `deliveryWindowHours` | `deliveryWindowMinutes` | CFG-NAME-5 |", ), ) self.assertFinding( self.repo.run(), "CFG-NAME-5", P, at(PROJECT_SCHEMA, "/$defs/Queue/properties/deliveryWindowHours") ) + def test_cfg_name_5_record_ids_follow_the_maintained_convention(self) -> None: + report = lint.Report() + checker = lint.Lint(self.repo.root, report) + checker.convention = lint.load_convention(lint.ROOT, report) + self.assertEqual(report.errors, []) + schema = { + "type": "object", + "properties": { + "recordIdentifier": {"type": "string"}, + "recordIdentifiers": {"type": "array", "items": {"type": "string"}}, + "recordId": {"type": "string"}, + "recordIds": {"type": "array", "items": {"type": "string"}}, + }, + } + checker.schema_rules(P, None, PROJECT_SCHEMA, schema) + self.assertEqual( + { + finding.pointer: finding.fix + for finding in checker.findings.values() + if finding.rule == "CFG-NAME-5" + }, + { + "/properties/recordIdentifier": "Rename to recordId", + "/properties/recordIdentifiers": "Rename to recordIds", + }, + ) + def test_cfg_name_5_refuses_to_run_without_the_table(self) -> None: self.repo.write(CONVENTION, CONVENTION_TEXT.replace("Refused spellings (lint)", "Refused")) self.assertError(self.repo.run(), "CFG-NAME-5 table") +class RetiredSpellingTests(ConventionsTestCase): + def retired_errors(self) -> list[str]: + return [error for error in self.repo.run().errors if "retired spelling" in error] + + def test_cfg_change_2_refuses_a_retired_spelling_in_a_format_file(self) -> None: + self.repo.write("products/casework/examples/demo/queue.yaml", "queue:\n maxAttempts: 3\n") + self.repo.write("products/casework/fixtures/run.json", '{"command": "bregctl dev start demo"}\n') + report = self.repo.run() + self.assertError(report, "products/casework/examples/demo/queue.yaml#/queue/maxAttempts: retired spelling " + "maxAttempts; write maximumAttempts") + self.assertError(report, "products/casework/fixtures/run.json#/command: retired spelling bregctl dev") + self.assertTrue(report.failed) + + def test_cfg_change_2_refuses_a_retired_key_whatever_its_comment_or_siblings_say(self) -> None: + self.repo.write( + "products/casework/examples/demo/audit.yaml", + "audit:\n retainDays: 30 # rotated files are removed after this\n", + ) + self.repo.write( + "products/casework/fixtures/minified.json", + '{"queue":{"maxAttempts":3},"expect":{"error":"an unknown key is refused"}}', + ) + self.repo.write( + "products/casework/examples/demo/auth.yaml", + "authentication:\n policies: {}\n", + ) + errors = self.retired_errors() + self.assertEqual(len(errors), 3, errors) + self.assertIn("products/casework/examples/demo/audit.yaml#/audit/retainDays:", " ".join(errors)) + self.assertIn("products/casework/fixtures/minified.json#/queue/maxAttempts:", " ".join(errors)) + self.assertIn("products/casework/examples/demo/auth.yaml#/authentication/policies:", " ".join(errors)) + + def test_cfg_change_2_refuses_teaching_prose_that_only_mentions_a_migration_word(self) -> None: + self.repo.write( + "products/casework/fixtures/prose.json", + '{"a": "Requests that run past `requestTimeoutSeconds` are refused with 504.", ' + '"b": "`bregctl dev start` replaces any running stack.", ' + '"c": "Set `retainDays: 30`, older audit files are removed at rotation.", ' + '"d": "Set `maxAttempts` before maximumAttempts is read."}\n', + ) + self.assertEqual(len(self.retired_errors()), 4) + + def test_cfg_change_2_matches_whole_spellings_only(self) -> None: + self.repo.write( + "products/casework/examples/demo/queue.yaml", + "queue:\n maxAttemptsTotal: 3\n command: bregctl dev-state\n other: rstack dev\n", + ) + self.assertEqual(self.retired_errors(), []) + + def test_cfg_change_2_accepts_a_migration_note_in_a_string(self) -> None: + self.repo.write( + "products/casework/fixtures/refusals.json", + '{"a": "The renamed maxAttempts is now maximumAttempts", ' + '"b": "write `maximumAttempts` in place of maxAttempts", ' + '"c": "Replace retainDays with `retentionDays`"}\n', + ) + self.assertEqual(self.retired_errors(), []) + + def test_cfg_change_2_scans_the_lines_of_a_file_that_does_not_parse(self) -> None: + self.repo.write("products/casework/fixtures/broken.yaml", "queue: [\n maxAttempts: 3\n") + self.assertEqual( + self.retired_errors(), + ["products/casework/fixtures/broken.yaml:2: retired spelling maxAttempts; write maximumAttempts " + "(CFG-CHANGE-2, Retired spellings in products/platform/CONFIG-CONVENTIONS.md)"], + ) + + def test_cfg_change_2_skips_schemas_and_openapi_documents(self) -> None: + self.repo.write("products/casework/generated/old.schema.json", '{"maxAttempts": 1}\n') + self.repo.write("products/casework/generated/casework.openapi.json", '{"maxAttempts": 1}\n') + self.assertEqual(self.retired_errors(), []) + + def test_cfg_change_2_needs_each_refused_key_in_one_table(self) -> None: + self.repo.write(CONVENTION, CONVENTION_TEXT.replace("| `retainDays` | `retentionDays` | CFG-NAME-5 |\n", "")) + self.assertError(self.repo.run(), "refused key retainDays is in neither") + self.repo.write( + CONVENTION, + CONVENTION_TEXT.replace("| `maxSize` | A pool bound. |", "| `maxSize` | A pool bound. |\n| `maxAttempts` | No. |"), + ) + self.assertError(self.repo.run(), "maxAttempts is both retired and not refused") + + def test_cfg_change_2_refuses_to_run_without_the_tables(self) -> None: + self.repo.write(CONVENTION, CONVENTION_TEXT.replace("**Not refused.**", "**Kept.**")) + self.assertError(self.repo.run(), "Retired spellings and Not refused tables") + + def test_cfg_change_2_docs_check_uses_the_same_migration_words(self) -> None: + script = SCRIPT.parents[3] / "docs/site/scripts/check-stale-config-vocabulary.sh" + self.assertIn(f"/{lint.MIGRATION_WORDS}/", script.read_text(encoding="utf-8")) + + class IdentifierTests(ConventionsTestCase): def test_cfg_id_1_reports_an_id_without_the_local_id_type(self) -> None: self.repo.project["$defs"]["Queue"]["properties"]["id"] = {"type": "string"} diff --git a/products/platform/scripts/test_run_config_conformance.py b/products/platform/scripts/test_run_config_conformance.py index 10237499aa..21e5088d2c 100644 --- a/products/platform/scripts/test_run_config_conformance.py +++ b/products/platform/scripts/test_run_config_conformance.py @@ -2200,6 +2200,71 @@ def test_a_selector_names_an_unknown_key_sweep_by_its_case(self) -> None: self.assertIn("3 cells: 3 pass", stdout) +class BregWarningControlTest(unittest.TestCase): + def test_exact_warning_and_refusal_control_rejects_an_extra_warning_or_canary(self) -> None: + for variant in ("expected", "extra warning", "stdout canary", "stderr canary"): + with self.subTest(variant=variant): + diagnostics = [{"code": "breg.access.profile-higher-classification"}] + report = {"ok": True, "status": "complete", "diagnostics": diagnostics.copy()} + if variant == "extra warning": + report["diagnostics"].append({"code": "breg.unexpected.warning"}) + if variant == "stdout canary": + report["extraReportMember"] = runner.MARKER + stdout = json.dumps(report).encode() + stderr = runner.MARKER.encode() if variant == "stderr canary" else b"" + with unittest.mock.patch.object(runner, "run_command", return_value=(0, stdout, stderr)): + problems = runner.check_breg_warning_answer( + [], Path("/work"), {}, "authored warning baseline", diagnostics + ) + self.assertEqual(bool(problems), variant != "expected") + if variant.endswith(" canary"): + self.assertEqual(problems, [ + f"{runner.BREG_WARNING_CONTROL}authored warning baseline: captured a synthetic input canary", + ]) + for problem in problems: + self.assertTrue(runner.unmaskable(problem)) + self.assertNotIn(runner.MARKER, problem) + + def test_exact_refusal_positions_require_json_integers(self) -> None: + diagnostic = runner.breg_duplicate_key(Path("/work/registry.yaml"), "BRegProject", + "/kind", (1, 1), (4, 1)) + for member, position, malformed in ( + ("source", "column", True), ("source", "line", 4.0), ("related", "line", True), + ): + with self.subTest(member=member, position=position): + different = json.loads(json.dumps(diagnostic)) + location = different["source"] if member == "source" else different["related"][0] + location[position] = malformed + report = {"ok": False, "status": "domain-refusal", "diagnostics": [different]} + with unittest.mock.patch.object(runner, "run_command", + return_value=(1, json.dumps(report).encode(), b"")): + self.assertTrue(runner.check_breg_warning_answer( + [], Path("/work"), {}, "duplicate refusal", [diagnostic], refusal=True, + )) + + def test_warning_control_preserves_unicode_paths_and_checks_each_native_call(self) -> None: + phases = [] + + def verify(argv, work, env, phase, diagnostics, *, refusal=False): + phases.append((phase, refusal, len(diagnostics))) + self.assertIn("é", str(work)) + self.assertIn(str(work / "project"), argv) + if phase == "operator duplicate refusal": + self.assertIn(runner.OPERATOR_WARNING_CANARY, (work / "runtime.yaml").read_text()) + for entry in diagnostics: + self.assertIn(str(work), entry["source"]["file"]) + return [] + + with unittest.mock.patch.object(runner, "check_breg_warning_answer", side_effect=verify): + self.assertEqual(runner.breg_warning_controls(ROOT, Path("/tools"), {}), []) + self.assertEqual(phases, [ + ("authored warning baseline", False, 6), + ("authored duplicate refusal", True, 1), + ("operator warning baseline", False, 6), + ("operator duplicate refusal", True, 7), + ]) + + class CommittedCorpusTest(unittest.TestCase): """The committed corpus, harness, and expected failures load and agree.""" diff --git a/products/render/CHANGELOG.md b/products/render/CHANGELOG.md index b96562ff3b..2199d713e8 100644 --- a/products/render/CHANGELOG.md +++ b/products/render/CHANGELOG.md @@ -2,6 +2,25 @@ ## Unreleased +- BREAKING: Render reaches a seal's timestamp authority only at the + destination the shared outbound selector chooses for its URL. Render + resolves only the authority's host and refuses an answer that is + loopback for a host name, link-local, multicast, unspecified or a + cloud metadata address. A private address, the name `localhost` and a + loopback address literal stay accepted. An address literal Render + refuses fails `registry-render check` and stops `serve` at startup + with `render.runtime.timestamp-address-refused`. A refused answer for + a host name fails each seal as `timestamp-failed` with reason + `destination-refused`. A `caBundleRef` on an `http` URL is reported as + `render.runtime.seal-timestamp-ca-bundle-requires-https`. Migration: + point `timestampAuthority.url` at a name that does not resolve to + loopback, or use `localhost`, `127.0.0.1` or `[::1]` for a test + authority on the same machine, and use https with `caBundleRef`. +- BREAKING: Generated Render clients use `documentType` in `path` arguments + for rendering and sealing. Replace `type` when calling those operations. + Operation names and concrete HTTP URLs stay the same. +- Render calls `authentication.apiKeyRef` the shared API key instead of the legacy API key, and states its lifecycle: a supported mode for a single trusted caller with no OIDC issuer, which never seals and whose audit entries all carry the same key fingerprint. The key name and behaviour are unchanged. The `render.forbidden` detail on the seal route, the `render.runtime.authentication` action and the `render.runtime.signing-requires-oidc` message now say shared API key. The problem and finding codes are unchanged, so only a reader that matches the old text exactly needs updating. + ## 0.49.0 - 2026-12-01 - BREAKING: A valid token whose caller is not admitted (its actor kind or its client) answers HTTP 403 `render.forbidden` with a caller-admission detail and audited credential fingerprint instead of HTTP 401 `render.unauthorized`, and configuration-refused issuer key sources (`KeySourceUnavailable`) answer HTTP 503 `render.authentication-unavailable` alongside live key-source outages. `/openapi.json` documents `401`, `403`, and `503` on `GET /v1/document-types` and caller-admission `403` refusals on render and seal routes. Migration: Treat HTTP 403 on valid tokens as caller admission failure rather than retrying token acquisition, and inspect issuer key-source configuration alongside network availability when diagnosing HTTP 503 key-source refusals. diff --git a/products/render/README.md b/products/render/README.md index 855511d07e..d02d9d2215 100644 --- a/products/render/README.md +++ b/products/render/README.md @@ -11,17 +11,17 @@ library. Render is a **pure function**: data in, PDF out, with no database. The optional HTTP adapter validates resource-bound access tokens through the shared OIDC -verifier or uses an explicit legacy API key. Only the adapter fetches issuer +verifier or accepts one configured shared API key. Only the adapter fetches issuer metadata and keys; CLI and library rendering remain offline. It runs three ways with the same rendering guarantees: - **CLI** — `registry-render compile --bundle … --data … --issued-at … --output …`, offline, zero config: branch printing, template authoring, CI. -- **Service** — `registry-render serve`: one POST endpoint (`/v1/render/{type}`), - resource-token or legacy API-key auth, supervised workers, and value-free audit entries +- **Service** — `registry-render serve`: one POST endpoint (`/v1/render/{documentType}`), + resource-token or shared API-key auth, supervised workers, and value-free audit entries written before every render and before every response. - **Seal** (optional): with a `signing` block in the runtime file, `serve` - adds `POST /v1/seal/{type}`, which returns the rendered document with a PAdES + adds `POST /v1/seal/{documentType}`, which returns the rendered document with a PAdES signature (see [Seal documents](https://docs.registrystack.org/operate/registry-render/#seal-documents)). - **Library** — `registry_render::render(bundle, document, request)` for diff --git a/products/render/generated/README.md b/products/render/generated/README.md new file mode 100644 index 0000000000..83859aab7f --- /dev/null +++ b/products/render/generated/README.md @@ -0,0 +1 @@ +`registry-render.openapi.json` is the hand-maintained HTTP contract, not generator output: edit it directly. `crates/registry-render/tests/serve_seal.rs` pins the served document to these bytes. diff --git a/products/render/generated/registry-render.openapi.json b/products/render/generated/registry-render.openapi.json index bf530c94d9..eaf6380bbc 100644 --- a/products/render/generated/registry-render.openapi.json +++ b/products/render/generated/registry-render.openapi.json @@ -42,12 +42,13 @@ } } }, - "/v1/render/{type}": { + "/v1/render/{documentType}": { "post": { + "operationId": "postV1RenderByType", "summary": "Render one document", "security": [{ "bearerAuth": [] }], "parameters": [ - { "name": "type", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "documentType", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", @@ -124,13 +125,14 @@ } } }, - "/v1/seal/{type}": { + "/v1/seal/{documentType}": { "post": { + "operationId": "postV1SealByType", "summary": "Render one document and seal it (PAdES). Present only when the deployment declares seals.", - "description": "The render route's request body. The document type must name a seal in the bundle manifest; the payload the template reads carries a signing member {mode: seal, signerName, testOnly}. Requires the render:seal scope, which render:render does not imply, from a client the seal's allowedClients names; the legacy API key never seals. The signing time is the server's clock, truncated to seconds.", + "description": "The render route's request body. The document type must name a seal in the bundle manifest; the payload the template reads carries a signing member {mode: seal, signerName, testOnly}. Requires the render:seal scope, which render:render does not imply, from a client the seal's allowedClients names; the shared API key never seals. The signing time is the server's clock, truncated to seconds.", "security": [{ "bearerAuth": [] }], "parameters": [ - { "name": "type", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "documentType", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "Idempotency-Key", "in": "header", @@ -247,7 +249,7 @@ }, "400": { "description": "Invalid request, data, or assets; or document-not-sealable, a document type that names no seal", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "401": { "description": "Missing or invalid bearer credential; Bearer challenge", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, - "403": { "description": "forbidden: the verified credential is not admitted (client, actor kind, or missing render:seal scope), or is the legacy API key; seal-client-not-allowed: the verified client is not in the seal's allowedClients", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, + "403": { "description": "forbidden: the verified credential is not admitted (client, actor kind, or missing render:seal scope), or is the shared API key; seal-client-not-allowed: the verified client is not in the seal's allowedClients", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "404": { "description": "This deployment does not serve the seal route", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "413": { "description": "Request body over the configured limit (problem+json; audited, after authentication)", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "422": { "description": "Compile failure, strict warnings, or oversized output", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, @@ -272,6 +274,7 @@ "detail": { "type": "string" }, "code": { "type": "string" }, "traceId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "failedCheck": { "type": "string", "description": "The check that refused the request, included only in development." }, "pointers": { "type": "array", "maxItems": 32, "items": { "type": "string", "maxLength": 256 } } } }, @@ -282,7 +285,7 @@ } }, "securitySchemes": { - "bearerAuth": { "type": "http", "scheme": "bearer", "description": "Resource-bound OIDC access token with the route's scope: render:render for documents and rendering, render:seal for sealing. Or the configured legacy API key, which never seals." } + "bearerAuth": { "type": "http", "scheme": "bearer", "description": "Resource-bound OIDC access token with the route's scope: render:render for documents and rendering, render:seal for sealing. Or the shared API key configured in authentication.apiKeyRef, which never seals." } } } } diff --git a/products/render/schemas/runtime.schema.json b/products/render/schemas/runtime.schema.json index 2a6e343038..e91777a58c 100644 --- a/products/render/schemas/runtime.schema.json +++ b/products/render/schemas/runtime.schema.json @@ -139,7 +139,7 @@ "properties": { "apiKeyRef": { "$ref": "#/$defs/SecretReference", - "description": "Secret reference to the caller API key, under a declared provider.\nOmit when OIDC authentication is configured." + "description": "Secret reference to the shared API key, under a declared provider: one\nstatic bearer credential that every request presents. It is supported for a\nsingle trusted caller where no OIDC issuer is available. It never seals.\nEvery request carries the same key, so the audit records one fingerprint\nfor all calls and cannot tell callers apart. Omit when OIDC authentication\nis configured." }, "oidc": { "$ref": "#/$defs/OidcRuntime" diff --git a/products/scheduling/CHANGELOG.md b/products/scheduling/CHANGELOG.md index cc4ad2977f..be51e575fc 100644 --- a/products/scheduling/CHANGELOG.md +++ b/products/scheduling/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +- BREAKING: Generated Scheduling clients use `holdId` and `appointmentId` in + `path` arguments. Replace `hold_id` and `appointment_id` when calling the + generated methods. Operation names and concrete HTTP URLs stay the same. + ## 0.49.0 - 2026-12-01 - Signed reminders require HTTPS or loopback HTTP in either posture. The diff --git a/products/scheduling/generated/registry-scheduling.openapi.json b/products/scheduling/generated/registry-scheduling.openapi.json index 308b24b799..7249f96f9b 100644 --- a/products/scheduling/generated/registry-scheduling.openapi.json +++ b/products/scheduling/generated/registry-scheduling.openapi.json @@ -1624,6 +1624,10 @@ "detail": { "type": "string" }, + "failedCheck": { + "description": "The check that refused the request, included only in development.", + "type": "string" + }, "status": { "type": "integer" }, @@ -3970,7 +3974,7 @@ "x-scheduling-authority": "reads-scope" } }, - "/v1/appointments/{appointment_id}": { + "/v1/appointments/{appointmentId}": { "get": { "description": "An ordinary booking requires its retained actor owner and reads scope, or a current appointment.read task grant for its retained service/location. A source-managed booking additionally requires the signed source-manager binding to match its retained manager. Both grant paths require fresh online grant status, need no general reads scope, and grant no catalogue, list or history access. The grant is scoped to service/location (and manager where applicable), not to an appointment identifier. A booking outside that authority, a hold, and an unknown identifier are all operation.not-authorized, so existence outside the caller's authority is never disclosed.", "operationId": "getAppointment", @@ -3987,7 +3991,7 @@ { "description": "The appointment's identifier.", "in": "path", - "name": "appointment_id", + "name": "appointmentId", "required": true, "schema": { "format": "uuid", @@ -4159,7 +4163,7 @@ "x-scheduling-authority": "appointment-detail" } }, - "/v1/appointments/{appointment_id}/attendance": { + "/v1/appointments/{appointmentId}/attendance": { "put": { "description": "Requires attendance.record for the appointment's stored service and location. Both observedAppointmentRevision and observedRevision must match the locked current visit; observedRevision is zero before that visit's first observation. Corrections advance the attendance revision without changing the booking revision or capacity. Rescheduling starts a new visit; cancellation preserves the existing visit and permits later observations. observedAt cannot be in the future. The observation applies to the appointment, including a resource-only booking, and never invents a person count. Neither ownership, a read scope, nor an operational profile authorizes this write. Exact idempotent replay returns the original observation.", "operationId": "recordAttendance", @@ -4188,7 +4192,7 @@ { "description": "The appointment's identifier.", "in": "path", - "name": "appointment_id", + "name": "appointmentId", "required": true, "schema": { "format": "uuid", @@ -4461,7 +4465,7 @@ "x-scheduling-authority": "task-grant" } }, - "/v1/appointments/{appointment_id}/cancel": { + "/v1/appointments/{appointmentId}/cancel": { "post": { "description": "Releases the appointment's capacity and records the reason, under the task grant that names appointment.cancel. It is guarded by observedRevision and the offering's cancellation cutoff, never by the policy revision, so an appointment is always cancellable under the policy that currently governs its offering.", "operationId": "cancelAppointment", @@ -4490,7 +4494,7 @@ { "description": "The appointment's identifier.", "in": "path", - "name": "appointment_id", + "name": "appointmentId", "required": true, "schema": { "format": "uuid", @@ -4773,7 +4777,7 @@ "x-scheduling-authority": "task-grant" } }, - "/v1/appointments/{appointment_id}/history": { + "/v1/appointments/{appointmentId}/history": { "get": { "description": "Newest first, one bounded page at a time. Each step carries the booking revision, the pseudonymized actor reference when it had one, and the detail the store recorded. An attendance-observed entry retains that booking revision and carries attendanceRevision, state, observedAt and recordedAt in detail. Earlier visit observations remain in history after a reschedule. Existence is never disclosed: another caller's appointment answers operation.not-authorized.", "operationId": "listAppointmentHistory", @@ -4790,7 +4794,7 @@ { "description": "The appointment's identifier.", "in": "path", - "name": "appointment_id", + "name": "appointmentId", "required": true, "schema": { "format": "uuid", @@ -5009,7 +5013,7 @@ "x-scheduling-authority": "reads-scope" } }, - "/v1/appointments/{appointment_id}/reschedule": { + "/v1/appointments/{appointmentId}/reschedule": { "post": { "description": "Re-books the appointment under the task grant that names appointment.reschedule, with a fresh admission evaluation while retaining its original externalReferences; supplying externalReferences is request.unprocessable. The appointment it replaces is excluded from the conflict checks, so a reschedule never competes with itself. The policy guard wins over the revision guard: a caller whose observed revision is also stale learns the policy moved first.", "operationId": "rescheduleAppointment", @@ -5038,7 +5042,7 @@ { "description": "The appointment's identifier.", "in": "path", - "name": "appointment_id", + "name": "appointmentId", "required": true, "schema": { "format": "uuid", @@ -6497,7 +6501,7 @@ "x-scheduling-authority": "task-grant" } }, - "/v1/holds/{hold_id}": { + "/v1/holds/{holdId}": { "delete": { "description": "Gives a hold's capacity back before it expires, under the task grant that names hold.release. The hold's own identifier is the idempotency key, so a retried release answers as the first one did; a receipt retained past its window is idempotency.expired. A claim that is not an active hold is hold.released, whether unknown, already confirmed, or already released, and a grant naming another holder is operation.not-authorized.", "operationId": "releaseHold", @@ -6514,7 +6518,7 @@ { "description": "The hold's identifier.", "in": "path", - "name": "hold_id", + "name": "holdId", "required": true, "schema": { "format": "uuid", diff --git a/products/scheduling/scripts/generate_openapi.py b/products/scheduling/scripts/generate_openapi.py index e51b4338c7..4cc3d26373 100644 --- a/products/scheduling/scripts/generate_openapi.py +++ b/products/scheduling/scripts/generate_openapi.py @@ -950,6 +950,10 @@ def schemas(problem_entries: list[dict]) -> dict: "detail": text, "code": {"type": "string", "enum": [entry["code"] for entry in problem_entries]}, "traceId": text, + "failedCheck": { + "type": "string", + "description": "The check that refused the request, included only in development.", + }, }, ["type", "title", "status", "detail", "code", "traceId"], ), @@ -1941,6 +1945,23 @@ def catalog_of(contract: dict) -> dict[str, dict]: return {entry["code"]: entry for entry in contract["entries"]} +def publish_path_parameters(openapi: dict) -> None: + # The source proofs use the router's capture names. Publish the names + # consumed by OpenAPI clients after those proofs have run. + names = {"hold_id": "holdId", "appointment_id": "appointmentId"} + paths = {} + for path, operations in openapi["paths"].items(): + for authored, published in names.items(): + path = path.replace("{" + authored + "}", "{" + published + "}") + for operation in operations.values(): + for parameter in operation.get("parameters", []): + if parameter["in"] == "path": + name = parameter["name"] + parameter["name"] = names.get(name, name) + paths[path] = operations + openapi["paths"] = paths + + def main() -> int: parser = argparse.ArgumentParser(description=__doc__.splitlines()[0]) parser.add_argument("--check", action="store_true", help="verify the committed document instead of writing it") @@ -1955,6 +1976,7 @@ def main() -> int: verify_handler_wiring(repository_root, openapi["paths"], variants) verify_dto_schemas(repository_root, openapi) verify_operation_problems(openapi, contract, catalog_of(contract), variants) + publish_path_parameters(openapi) rendered = json.dumps(openapi, indent=2, sort_keys=True) + "\n" except (OSError, ValueError, KeyError, subprocess.CalledProcessError) as error: print(f"OpenAPI source check failed: {error}", file=sys.stderr) diff --git a/products/scheduling/scripts/test_generate_openapi.py b/products/scheduling/scripts/test_generate_openapi.py index f47b9e0882..349ed001b2 100644 --- a/products/scheduling/scripts/test_generate_openapi.py +++ b/products/scheduling/scripts/test_generate_openapi.py @@ -54,6 +54,25 @@ def documented_codes(openapi: dict, key: tuple[str, str]) -> set[str]: return set().union(*by_status.values()) if by_status else set() +class PublishedPathTests(unittest.TestCase): + def test_public_path_names_match_required_parameters(self) -> None: + openapi = json.loads((ROOT / GENERATOR.OUTPUT).read_text()) + expected = { + "/v1/holds/{holdId}": ("delete", "holdId"), + "/v1/appointments/{appointmentId}": ("get", "appointmentId"), + "/v1/appointments/{appointmentId}/reschedule": ("post", "appointmentId"), + "/v1/appointments/{appointmentId}/cancel": ("post", "appointmentId"), + "/v1/appointments/{appointmentId}/attendance": ("put", "appointmentId"), + "/v1/appointments/{appointmentId}/history": ("get", "appointmentId"), + } + self.assertEqual(set(expected), {path for path in openapi["paths"] if "{" in path}) + for path, (method, name) in expected.items(): + self.assertEqual(set(openapi["paths"][path]), {method}, path) + parameters = [item for item in openapi["paths"][path][method]["parameters"] if item["in"] == "path"] + actual = [(item["name"], item["required"], item["schema"]) for item in parameters] + self.assertEqual(actual, [(name, True, {"type": "string", "format": "uuid"})], path) + + class BusySchemasTests(unittest.TestCase): def test_busy_snapshot_is_bounded_and_contains_only_source_facts(self) -> None: schemas = GENERATOR.schemas([]) @@ -1012,8 +1031,11 @@ def test_the_request_edge_rejection_map_is_the_rust_one(self) -> None: def test_the_problem_envelope_is_the_platform_one(self) -> None: problem = self.openapi["components"]["schemas"]["Problem"] - self.assertEqual({"type", "title", "status", "detail", "code", "traceId"}, + self.assertEqual({"type", "title", "status", "detail", "code", "traceId", "failedCheck"}, set(problem["properties"])) + self.assertEqual("string", problem["properties"]["failedCheck"]["type"]) + ambiguous = self.openapi["components"]["schemas"]["ProblemAccessProfileAmbiguous"] + self.assertNotIn("failedCheck", ambiguous["properties"]) self.assertEqual(["code", "detail", "status", "title", "traceId", "type"], sorted(problem["required"])) self.assertEqual(36, len(problem["properties"]["code"]["enum"])) @@ -1026,7 +1048,9 @@ def test_the_problem_envelope_is_the_platform_one(self) -> None: self.assertIn('"Bearer"', http) def test_the_committed_document_is_the_one_this_generator_writes(self) -> None: - self.assertEqual(self.committed, json.dumps(self.openapi, indent=2, sort_keys=True) + "\n") + published = copy.deepcopy(self.openapi) + GENERATOR.publish_path_parameters(published) + self.assertEqual(self.committed, json.dumps(published, indent=2, sort_keys=True) + "\n") if __name__ == "__main__": diff --git a/release/scripts/build-nightly-linux-arm64.sh b/release/scripts/build-nightly-linux-arm64.sh index d8d24c50f9..474a47aa2d 100644 --- a/release/scripts/build-nightly-linux-arm64.sh +++ b/release/scripts/build-nightly-linux-arm64.sh @@ -47,10 +47,12 @@ cargo build --release --locked -p registry-bregctl --target "${target}" cargo build --release --locked -p registry-casework --bin casework --target "${target}" cargo build --release --locked -p registry-caseworkctl --target "${target}" cargo build --release --locked -p registry-schedulingctl --bin schedulingctl --target "${target}" -if [[ "$(python3 release/scripts/release_roster.py rstack-in-release "${version}")" == true ]]; then +rstack_in_release="$(python3 release/scripts/release_roster.py rstack-in-release "${version}")" +if [[ "${rstack_in_release}" == true ]]; then cargo build --release --locked -p registry-rstack --bin rstack --target "${target}" fi -if [[ "$(python3 release/scripts/release_roster.py breg-services-in-release "${version}")" == true ]]; then +breg_services_in_release="$(python3 release/scripts/release_roster.py breg-services-in-release "${version}")" +if [[ "${breg_services_in_release}" == true ]]; then cargo build --release --locked -p registry-breg-mcp --bin breg-mcp --target "${target}" cargo build --release --locked -p registry-breg-review --bin breg-review --target "${target}" fi diff --git a/release/scripts/build-release-binaries.sh b/release/scripts/build-release-binaries.sh index 38c0a931ed..b87ca53e6c 100755 --- a/release/scripts/build-release-binaries.sh +++ b/release/scripts/build-release-binaries.sh @@ -86,13 +86,15 @@ if [[ "${discoveryctl_in_release}" == true ]]; then include_discoveryctl=1 fi include_rstack=0 -if [[ "$(python3 "${script_dir}/release_roster.py" \ - rstack-in-release "${version}")" == true ]]; then +rstack_in_release="$(python3 "${script_dir}/release_roster.py" \ + rstack-in-release "${version}")" +if [[ "${rstack_in_release}" == true ]]; then include_rstack=1 fi include_language_server=0 -if [[ "$(python3 "${script_dir}/release_roster.py" \ - language-server-in-release "${version}")" == true ]]; then +language_server_in_release="$(python3 "${script_dir}/release_roster.py" \ + language-server-in-release "${version}")" +if [[ "${language_server_in_release}" == true ]]; then include_language_server=1 fi include_breg=0 @@ -162,7 +164,9 @@ if [[ "${coordinator_in_release}" == true ]]; then include_coordinator=1 fi include_coordinator_image=0 -if [[ "$(python3 "${script_dir}/release_roster.py" coordinator-in-release "${version}")" == true ]]; then +coordinator_image_in_release="$(python3 "${script_dir}/release_roster.py" \ + coordinator-in-release "${version}")" +if [[ "${coordinator_image_in_release}" == true ]]; then include_coordinator_image=1 fi # Adapter binaries have an independent boundary from image publication. @@ -173,7 +177,9 @@ if [[ "${adapter_in_release}" == true ]]; then include_adapter=1 fi include_adapter_image=0 -if [[ "$(python3 "${script_dir}/release_roster.py" adapter-image-in-release "${version}")" == true ]]; then +adapter_image_in_release="$(python3 "${script_dir}/release_roster.py" \ + adapter-image-in-release "${version}")" +if [[ "${adapter_image_in_release}" == true ]]; then include_adapter_image=1 fi diff --git a/release/scripts/build-release-native-platform.sh b/release/scripts/build-release-native-platform.sh index 6d029cb95f..e83f058f45 100755 --- a/release/scripts/build-release-native-platform.sh +++ b/release/scripts/build-release-native-platform.sh @@ -134,13 +134,15 @@ if ((version_major > 0 || version_minor >= 36)); then include_schedulingctl=1 fi include_rstack=0 -if [[ "$(python3 "${script_dir}/release_roster.py" \ - rstack-in-release "${version}")" == true ]]; then +rstack_in_release="$(python3 "${script_dir}/release_roster.py" \ + rstack-in-release "${version}")" +if [[ "${rstack_in_release}" == true ]]; then include_rstack=1 fi include_language_server=0 -if [[ "$(python3 "${script_dir}/release_roster.py" \ - language-server-in-release "${version}")" == true ]]; then +language_server_in_release="$(python3 "${script_dir}/release_roster.py" \ + language-server-in-release "${version}")" +if [[ "${language_server_in_release}" == true ]]; then include_language_server=1 fi diff --git a/release/scripts/check-gates-inventory.py b/release/scripts/check-gates-inventory.py index 720e3a06f9..98506e34a5 100644 --- a/release/scripts/check-gates-inventory.py +++ b/release/scripts/check-gates-inventory.py @@ -6,7 +6,6 @@ import runpy import subprocess import sys -from itertools import takewhile from pathlib import Path @@ -29,12 +28,9 @@ DOCUMENTS_CHECKPOINT_RUNNER = ( ROOT / "products" / "documents" / "scripts" / "check-checkpoint.sh" ) -RSTACK_DEV_BUILD_GATE = "rstack dev hosts built before the rstack tests" -# The tests also start the Evidence runtime alongside its development host. -RSTACK_DEV_BUILD_PACKAGES = runpy.run_path( - str(ROOT / "products/platform/scripts/check_dev_runner_reach.py") -)["DEV_RUNNER_HOSTS"] | {"registry-evidence"} +# The ordinary Rust steps and host prerequisite are checked by +# RustGateInventoryTest in test_ci_changes.py. REQUIRED_GATES: tuple[tuple[str, str], ...] = ( ("Native delegated staff authority journey", "- name: Native delegated staff MCP authority journey"), ("Native delegated staff proof executes", "cargo test --locked -p registry-mcp --test native_casework"), @@ -51,10 +47,6 @@ "CI classifier invocation", "python3 .github/scripts/ci_event_routing.py", ), - ( - "CI classifier tests", - "run: uv run --no-project --with PyYAML==6.0.2 python .github/scripts/test_ci_changes.py", - ), ( "CI workflow change classification", '".github/workflows/ci.yml",', @@ -109,19 +101,6 @@ "run: python3 -m unittest release/scripts/test_check_advisory_baselines.py", ), ("Cargo metadata", "cargo metadata --locked --no-deps --format-version 1"), - ( - "Manifest profile validation", - "run: cargo run --locked -p registry-manifest-cli -- validate-profiles profiles", - ), - ("Format", "run: cargo fmt --check"), - ( - "Affected package clippy", - "run: python3 .github/scripts/run_cargo_packages.py clippy", - ), - ( - "Affected package tests", - "run: python3 .github/scripts/run_cargo_packages.py test", - ), ( "Rust shard matrix", "matrix: ${{ fromJSON(needs.changes.outputs.rust_matrix) }}", @@ -1572,10 +1551,7 @@ def missing_gates( f"{scheduling_checkpoint_runner_text}\n{messaging_checkpoint_runner_text}\n" f"{documents_checkpoint_runner_text}" ) - missing = [name for name, snippet in REQUIRED_GATES if snippet not in inventory_text] - if not rstack_dev_hosts_precede_tests(workflow_text): - missing.append(RSTACK_DEV_BUILD_GATE) - return missing + return [name for name, snippet in REQUIRED_GATES if snippet not in inventory_text] def workflow_policy_violations( @@ -1672,44 +1648,6 @@ def yaml_step_blocks(workflow: str) -> list[str]: return blocks -def rstack_dev_hosts_precede_tests(workflow: str) -> bool: - rust_tests = yaml_job_block(workflow, "rust-tests") - if rust_tests is None: - return False - - build_condition = ( - " if: matrix.name == 'developer-tools' " - "&& contains(matrix.packages, 'registry-rstack')" - ) - test_command = " run: python3 .github/scripts/run_cargo_packages.py test" - hosts_built = False - for step in yaml_step_blocks(rust_tests): - lines = step.splitlines() - if test_command in lines: - return hosts_built - if build_condition not in lines: - continue - run = step.partition("\n run: ")[2] - if not run: - continue - command, *body = run.splitlines() - if command in {"|", "|-", "|+"}: - command = "\n".join( - takewhile(lambda line: line.startswith(" "), body) - ).replace("\\\n", "") - arguments = command.split() - options, packages = arguments[4::2], arguments[5::2] - if ( - "\n" not in command - and arguments[:4] == ["cargo", "build", "--locked", "--bins"] - and len(options) == len(packages) - and all(option == "-p" for option in options) - and set(packages) == RSTACK_DEV_BUILD_PACKAGES - ): - hosts_built = True - return False - - def shell_loop_targets(job: str) -> tuple[str, ...]: """Return the ordered target names from the nightly fuzz shell loop.""" @@ -2278,7 +2216,6 @@ def main() -> int: + len(ORDERED_RELEASE_SECURITY_GATES) + len(FORBIDDEN_RELEASE_SECURITY_GATES) + len(REQUIRED_SECURITY_WORKFLOW_SELECTIONS) - + 1 # Development hosts are checked in job order. + 8 # Structural permission, sweep, CodeQL config, isolation, retention, rebuild, and destination gates. ) print( diff --git a/release/scripts/nightly_release.py b/release/scripts/nightly_release.py index 5544fa6f49..7e9a520ef4 100644 --- a/release/scripts/nightly_release.py +++ b/release/scripts/nightly_release.py @@ -31,6 +31,7 @@ SCHEMA_V2 = "registry-stack.nightly.v2" SCHEMA = SCHEMA_V2 CHANNEL = "nightly-channel" +ADVISORY_REMINDER_DAYS = 30 TAG = re.compile( r"^v((?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*))-nightly\.([0-9]{8})\.([0-9a-f]{40})$" ) @@ -419,6 +420,15 @@ def channel_metadata() -> tuple[dict | None, str | None]: return read_manifest(path), head +def workspace_version() -> str: + # Import locally so native builders that only read the nightly identity do + # not need an interpreter that carries tomllib. + import tomllib + + with (ROOT / "Cargo.toml").open("rb") as handle: + return tomllib.load(handle)["workspace"]["package"]["version"] + + def plan(output: Path) -> None: if ( os.environ.get("GITHUB_REPOSITORY") != REPOSITORY @@ -435,13 +445,7 @@ def plan(output: Path) -> None: raise NightlyError( "main advanced before selection; dispatch again from current main" ) - # Imported here because the native arm64 builder imports this module only - # to check the nightly identity, which must not depend on the interpreter - # carrying tomllib; only the plan reads TOML. - import tomllib - - with (ROOT / "Cargo.toml").open("rb") as handle: - version = tomllib.load(handle)["workspace"]["package"]["version"] + version = workspace_version() today = dt.datetime.now(dt.timezone.utc).strftime("%Y%m%d") tag = f"v{version}-nightly.{today}.{sha}" identity(tag) @@ -504,7 +508,7 @@ def plan(output: Path) -> None: def advisory_checker(): - """Load the release advisory checker, which only the scan needs.""" + """Load the release advisory checker for commands that read baselines.""" spec = importlib.util.spec_from_file_location( "check_advisory_baselines", SCRIPT_DIR / "check-advisory-baselines.py" @@ -515,6 +519,63 @@ def advisory_checker(): return checker +def advisory_expiry_report(today: dt.date) -> str: + """Read the release image baselines and report dates without judging exposure.""" + checker = advisory_checker() + suffix = "-advisory-baseline.json" + images = set(image_names(workspace_version())) + # Include baselines kept in the release inventory outside the current image roster. + images.update( + path.name.removesuffix(suffix) + for path in (ROOT / "release/security").glob(f"*{suffix}") + ) + by_expiry: dict[dt.date, list[tuple[str, str]]] = {} + for image in sorted(images): + path = release_candidate.advisory_baseline_path(ROOT, image) + release_candidate._require_regular_file(path, f"{image} advisory baseline") + baseline = checker.load_baseline(path) + if baseline["service"] != image: + raise NightlyError(f"{path.name} service must equal {image}") + for exception in checker.baseline_exceptions(baseline): + reviewed = checker.parse_date(exception["reviewed_at"], "reviewed_at") + if reviewed <= today: + expiry = checker.parse_date(exception["expires_at"], "expires_at") + by_expiry.setdefault(expiry, []).append((image, exception["package"])) + + expiries = sorted(by_expiry) + earliest = next((expiry for expiry in expiries if expiry >= today), None) + lines = [ + "## Image advisory exception expiries", + "", + f"Inventory as of {today} UTC. Baselines checked: {len(images)}. " + f"Advance reminder window is {ADVISORY_REMINDER_DAYS} days.", + "", + f"Earliest active expiry is {earliest}." if earliest else "No active image advisory exceptions.", + "", + ] + for expiry in expiries: + days = (expiry - today).days + span = f"{abs(days)} {'day' if abs(days) == 1 else 'days'}" + if days < 0: + timing = f"expired {span} ago" + elif days == 0: + timing = "expires today" + elif days <= ADVISORY_REMINDER_DAYS: + timing = f"review due in {span}" + else: + timing = f"expires in {span}" + entries = by_expiry[expiry] + count = len(entries) + image_count = len({image for image, _ in entries}) + packages = sorted({package for _, package in entries}) + lines.append( + f"- **{expiry} ({timing}).** {count} {'exception' if count == 1 else 'exceptions'} " + f"across {image_count} {'image' if image_count == 1 else 'images'}. " + f"{'Package' if len(packages) == 1 else 'Packages'} {', '.join(packages)}." + ) + return "\n".join(lines).rstrip() + + def reviewed_advisories(baseline: Path | None) -> dict[tuple[str, str, str], str]: """Return the severity each current release advisory exception was reviewed at. @@ -977,6 +1038,12 @@ def main() -> int: scan_parser = subparsers.add_parser("check-scan") scan_parser.add_argument("report", type=Path) scan_parser.add_argument("--baseline", type=Path) + reminder_parser = subparsers.add_parser( + "advisory-expiry", help="report approaching image advisory exception expiries" + ) + reminder_parser.add_argument( + "--today", required=True, type=dt.date.fromisoformat, metavar="YYYY-MM-DD" + ) assemble_parser = subparsers.add_parser("assemble") assemble_parser.add_argument("--plan", required=True, type=Path) assemble_parser.add_argument("--binaries", required=True, type=Path, nargs="+") @@ -995,6 +1062,8 @@ def main() -> int: plan(args.output) elif args.command == "check-scan": check_scan(args.report, args.baseline) + elif args.command == "advisory-expiry": + print(advisory_expiry_report(args.today)) elif args.command == "assemble": assemble(args.plan, args.binaries, args.images, args.output) elif args.command == "smoke": diff --git a/release/scripts/rehearse-upgrade.py b/release/scripts/rehearse-upgrade.py index d6a944040d..850851db73 100644 --- a/release/scripts/rehearse-upgrade.py +++ b/release/scripts/rehearse-upgrade.py @@ -1794,7 +1794,12 @@ def stage_upgrade(self) -> Evidence: current.move_project_to_current_shape() project_path = current.project / "evidence.yaml" project = load_yaml(project_path) - if move_evidence_key(project, "selectorProfiles", "lookups"): + changed = move_evidence_key(project, "selectorProfiles", "lookups") + changed |= move_evidence_key(project, "functions", "derivations") + for definition in project.get("assertionDefinitions", {}).values(): + if "derive" in definition: + changed |= move_evidence_key(definition["derive"], "function", "derivation") + if changed: dump_yaml(project_path, project) target_path = current.target / "target.yaml" diff --git a/release/scripts/test_check_gates_inventory.py b/release/scripts/test_check_gates_inventory.py index 348f709e66..464e85a702 100644 --- a/release/scripts/test_check_gates_inventory.py +++ b/release/scripts/test_check_gates_inventory.py @@ -2,6 +2,7 @@ from __future__ import annotations import importlib.util +import shlex import subprocess import tomllib import unittest @@ -355,9 +356,44 @@ def test_ci_classifier_and_its_tests_are_wired(self) -> None: "python3 .github/scripts/ci_event_routing.py", self.workflow, ) - self.assertIn( - "run: uv run --no-project --with PyYAML==6.0.2 python .github/scripts/test_ci_changes.py", - self.workflow, + workflow = yaml.safe_load(self.workflow) + steps = workflow["jobs"]["changes"]["steps"] + selected = [step for step in steps if self.is_classifier_test(step)] + self.assertEqual(len(selected), 1) + self.assertTrue(self.classifier_tests_are_required(workflow)) + step = selected[0] + for field, suppresses_failure in ( + ("if", "false"), ("continue-on-error", True), ("working-directory", "products/manifest"), + ): + with self.subTest(field=field): + step[field] = suppresses_failure + self.assertFalse(self.classifier_tests_are_required(workflow)) + del step[field] + steps.remove(step) + workflow["jobs"]["unrelated"] = {"steps": [step]} + self.assertFalse(self.classifier_tests_are_required(workflow)) + + @staticmethod + def is_classifier_test(step: dict) -> bool: + command = step.get("run", "").replace("\\\n", "").strip() + return "\n" not in command and shlex.split(command) == [ + "uv", "run", "--no-project", "--with", "PyYAML==6.0.2", + "python", ".github/scripts/test_ci_changes.py", + ] + + def classifier_tests_are_required(self, workflow: dict) -> bool: + changes = workflow["jobs"]["changes"] + defaults = workflow.get("defaults", {}).get("run", {}) | changes.get("defaults", {}).get("run", {}) + return ( + changes.get("continue-on-error", False) is False + and changes.get("if", "success()") in ("success()", "${{ success() }}") + and any( + self.is_classifier_test(step) + and step.get("if", "success()") in ("success()", "${{ success() }}") + and step.get("continue-on-error", False) is False + and Path(step.get("working-directory", defaults.get("working-directory", "."))) == Path(".") + for step in changes["steps"] + ) ) def test_workflow_policy_requires_every_marker_in_the_named_workflow(self) -> None: @@ -1662,54 +1698,36 @@ def test_missing_actionlint_pin_or_checksum_is_reported(self) -> None: text = self.workflow.replace(snippet, replacement) self.assertIn(gate, self.module.missing_gates(text)) - def test_missing_affected_package_test_is_reported(self) -> None: - text = self.workflow.replace( - "run: python3 .github/scripts/run_cargo_packages.py test", - "run: python3 .github/scripts/run_cargo_packages.py skip-tests", - ) - self.assertIn("Affected package tests", self.module.missing_gates(text)) - - def test_missing_rstack_dev_host_is_reported(self) -> None: - job = self.module.yaml_job_block(self.workflow, "rust-tests") - self.assertIsNotNone(job) - assert job is not None - build = next( - step - for step in self.module.yaml_step_blocks(job) - if "- name: Build the rstack dev hosts" in step - ) - without_render = build.replace( - "registry-render", - "registry-render-removed", - 1, - ) - self.assertNotEqual(build, without_render) - workflow = self.workflow.replace(build, without_render, 1) - - self.assertIn( - "rstack dev hosts built before the rstack tests", - self.module.missing_gates(workflow), - ) - - def test_rstack_dev_hosts_built_after_the_rstack_tests_are_reported(self) -> None: - job = self.module.yaml_job_block(self.workflow, "rust-tests") - self.assertIsNotNone(job) - assert job is not None - steps = self.module.yaml_step_blocks(job) - build = next( - step for step in steps if "- name: Build the rstack dev hosts" in step - ) - tests = next( - step for step in steps if "- name: Test affected packages" in step - ) - without_build = self.workflow.replace(build, "", 1) - workflow = without_build.replace(tests, f"{tests}\n{build}", 1) - self.assertNotEqual(self.workflow, workflow) - - self.assertIn( - "rstack dev hosts built before the rstack tests", - self.module.missing_gates(workflow), - ) + def test_structural_rust_gates_allow_equivalent_workflow_edits(self) -> None: + compact = """jobs: + rust-quality: + steps: + - run: cargo fmt --check + - run: python3 .github/scripts/run_cargo_packages.py clippy + rust-tests: + steps: + - name: Build the rstack dev hosts + run: cargo build --locked --bins + - run: python3 .github/scripts/run_cargo_packages.py test +""" + equivalent = """jobs: + rust-quality: + steps: + - name: Verify formatting + run: >- + cargo fmt + '--check' + - run: >- + python3 .github/scripts/run_cargo_packages.py + 'clippy' + rust-tests: + steps: + - run: cargo build --locked --bins + - run: >- + python3 .github/scripts/run_cargo_packages.py + 'test' +""" + self.assertEqual(self.module.missing_gates(compact), self.module.missing_gates(equivalent)) def test_missing_platform_coverage_threshold_is_reported(self) -> None: text = self.workflow.replace("--fail-under-lines 80", "--summary-only") @@ -1868,13 +1886,6 @@ def test_missing_production_shaped_docs_build_check_is_reported(self) -> None: self.module.missing_gates(text), ) - def test_missing_manifest_profile_validation_is_reported(self) -> None: - text = self.workflow.replace( - "cargo run --locked -p registry-manifest-cli -- validate-profiles profiles", - "cargo run --locked -p registry-manifest-cli -- skip-profile-validation", - ) - self.assertIn("Manifest profile validation", self.module.missing_gates(text)) - def test_missing_breg_tutorial_gates_are_reported(self) -> None: for snippet, replacement, gate in ( ( diff --git a/release/scripts/test_nightly_release.py b/release/scripts/test_nightly_release.py index d2232057fa..243480a3f9 100644 --- a/release/scripts/test_nightly_release.py +++ b/release/scripts/test_nightly_release.py @@ -625,6 +625,111 @@ def test_nightly_advisory_policy_and_database_age(self): ): nightly.check_scan(report) + def test_advisory_expiry_reports_all_dates_and_the_advance_window(self): + today = dt.date(2026, 12, 1) + paths = [] + for image, exceptions in ( + ( + "breg", + [ + self.exception( + package="libssl3t64", reviewed_at="2026-11-30", + expires_at="2026-12-31", + ), + self.exception( + package="libother", reviewed_at="2026-11-30", + expires_at="2027-01-26", + ), + ], + ), + ( + "evidence", + [ + self.exception( + package="libssl3t64", reviewed_at="2026-11-30", + expires_at="2026-12-31", + ), + self.exception( + package="libfuture", reviewed_at="2026-12-02", + expires_at="2027-01-09", + ), + ], + ), + ): + path = release_candidate.advisory_baseline_path(self.root, image) + path.parent.mkdir(parents=True, exist_ok=True) + path.write_bytes(self.baseline(*exceptions, service=image).read_bytes()) + paths.append(path) + before = [path.read_bytes() for path in paths] + with ( + patch.object(nightly, "ROOT", self.root), + patch.object(nightly, "workspace_version", return_value="0.49.0"), + patch.object(nightly, "image_names", return_value=["breg"]), + ): + report = nightly.advisory_expiry_report(today) + self.assertIn("Earliest active expiry is 2026-12-31.", report) + self.assertIn( + "**2026-12-31 (review due in 30 days).** 2 exceptions across 2 images. Package libssl3t64.", + report, + ) + self.assertIn( + "**2027-01-26 (expires in 56 days).** 1 exception across 1 image. Package libother.", + report, + ) + self.assertNotIn("libfuture", report) + self.assertLess(report.index("libssl3t64"), report.index("libother")) + self.assertIn( + "2026-12-31 (expires in 31 days)", + nightly.advisory_expiry_report(today - dt.timedelta(days=1)), + ) + self.assertIn( + "2026-12-31 (expires today)", + nightly.advisory_expiry_report(dt.date(2026, 12, 31)), + ) + overdue = nightly.advisory_expiry_report(dt.date(2027, 1, 1)) + self.assertIn("2026-12-31 (expired 1 day ago)", overdue) + self.assertIn("Earliest active expiry is 2027-01-09.", overdue) + self.assertIn( + "No active image advisory exceptions.", + nightly.advisory_expiry_report(dt.date(2027, 1, 27)), + ) + self.assertEqual(before, [path.read_bytes() for path in paths]) + + def test_advisory_expiry_refuses_a_missing_or_mismatched_roster_baseline(self): + path = release_candidate.advisory_baseline_path(self.root, "breg") + mismatched = self.baseline(service="evidence").read_bytes() + with ( + patch.object(nightly, "ROOT", self.root), + patch.object(nightly, "workspace_version", return_value="0.49.0"), + patch.object(nightly, "image_names", return_value=["breg"]), + ): + with self.assertRaisesRegex(ValueError, "breg advisory baseline is missing"): + nightly.advisory_expiry_report(dt.date(2026, 12, 1)) + path.parent.mkdir(parents=True) + path.write_bytes(mismatched) + with self.assertRaisesRegex(nightly.NightlyError, "breg.*service"): + nightly.advisory_expiry_report(dt.date(2026, 12, 1)) + + def test_advisory_expiry_command_uses_the_explicit_date(self): + output = io.StringIO() + with ( + patch.object(sys, "argv", ["nightly_release.py", "advisory-expiry", "--today", "2026-12-01"]), + patch.object(nightly, "advisory_expiry_report", return_value="expiry report") as report, + contextlib.redirect_stdout(output), + ): + self.assertEqual(nightly.main(), 0) + report.assert_called_once_with(dt.date(2026, 12, 1)) + self.assertEqual(output.getvalue(), "expiry report\n") + for arguments in ([], ["--today", "2026-02-30"]): + with ( + self.subTest(arguments=arguments), + patch.object(sys, "argv", ["nightly_release.py", "advisory-expiry", *arguments]), + contextlib.redirect_stderr(io.StringIO()), + self.assertRaises(SystemExit) as result, + ): + nightly.main() + self.assertEqual(result.exception.code, 2) + def test_nightly_admits_a_finding_the_release_baseline_reviewed(self): exception = self.exception() baseline = self.baseline(exception) diff --git a/release/scripts/test_rehearse_upgrade.py b/release/scripts/test_rehearse_upgrade.py index 65ca2d59ce..a3bb28752a 100644 --- a/release/scripts/test_rehearse_upgrade.py +++ b/release/scripts/test_rehearse_upgrade.py @@ -1232,6 +1232,11 @@ def authored(self, evidence: Any, legacy: bool) -> tuple[dict, dict, dict]: {"subjects": [{"role": "subject", profile: "record-reference"}]}]}}} project = {**self.CURRENT_PROJECT, ("selectorProfiles" if legacy else "lookups"): { "record-reference": {}}} + if not legacy: + project["derivations"] = project.pop("functions") + reference = "function" if legacy else "derivation" + project["assertionDefinitions"] = {"record-status": {"derive": { + reference: "derive-record-status", "parameters": {"mode": "read"}}}} dump_json(evidence.target / "target.yaml", target) dump_json(evidence.target / "authority.yaml", authority) dump_json(evidence.project / "evidence.yaml", project) @@ -1249,6 +1254,12 @@ def test_stage_copies_authoring_migrates_legacy_and_leaves_current_shape_alone(s migrated_project = MODULE.load_yaml(current.project / "evidence.yaml") self.assertEqual(migrated_project["lookups"], {"record-reference": {}}) self.assertNotIn("selectorProfiles", migrated_project) + self.assertEqual(migrated_project["derivations"], { + "derive-record-status": {"source": "functions/derive.rhai"}}) + self.assertNotIn("functions", migrated_project) + self.assertEqual(migrated_project["assertionDefinitions"], { + "record-status": {"derive": {"derivation": "derive-record-status", + "parameters": {"mode": "read"}}}}) migrated_target = MODULE.load_yaml(current.target / "target.yaml") oidc = migrated_target["authentication"]["oidc"] self.assertEqual(oidc["requiredScopes"], ["evidence:request"]) @@ -1275,14 +1286,21 @@ def test_stage_copies_authoring_migrates_legacy_and_leaves_current_shape_alone(s self.assertEqual((current.target / "authority.yaml").read_bytes(), (evidence.target / "authority.yaml").read_bytes()) - def test_dual_lookup_or_issuer_keys_are_refused(self) -> None: - for section in ("project", "target", "authority"): + def test_dual_migration_keys_are_refused(self) -> None: + for section in ("project", "derivation-map", "derivation-reference", "target", "authority"): with self.subTest(section=section): evidence = self.deployment() project, target, authority = self.authored(evidence, True) if section == "project": project["lookups"] = {} dump_json(evidence.project / "evidence.yaml", project) + if section == "derivation-map": + project["derivations"] = {} + dump_json(evidence.project / "evidence.yaml", project) + if section == "derivation-reference": + derive = project["assertionDefinitions"]["record-status"]["derive"] + derive["derivation"] = "ambiguous" + dump_json(evidence.project / "evidence.yaml", project) if section == "target": target["authentication"]["oidc"]["issuers"] = {} dump_json(evidence.target / "target.yaml", target) diff --git a/release/scripts/test_release_roster.py b/release/scripts/test_release_roster.py index ae0e22c92f..63deaf7e2f 100644 --- a/release/scripts/test_release_roster.py +++ b/release/scripts/test_release_roster.py @@ -2,6 +2,7 @@ from __future__ import annotations import io +import re import sys from contextlib import redirect_stderr, redirect_stdout from pathlib import Path @@ -291,5 +292,23 @@ def test_cli_reports_the_version_selected_roster(self) -> None: self.assertEqual(expected, stdout.getvalue()) + def test_shell_scripts_assign_roster_output_before_comparing(self) -> None: + # set -e does not abort on a failing command substitution inside a + # test, so `[[ "$(release_roster.py ...)" == true ]]` reads a roster + # failure as "not in this release". An assignment fails the script. + assignment = re.compile(r'^[A-Za-z_][A-Za-z0-9_]*="\$\(python3 [^ ]*release_roster\.py"? ') + found = 0 + for script in sorted(SCRIPT_DIR.glob("*.sh")): + logical = re.sub(r"\\\n\s*", " ", script.read_text(encoding="utf-8")) + for line in logical.splitlines(): + line = line.strip() + if line.startswith("#") or not re.search(r"\$\(python3 [^ ]*release_roster\.py", line): + continue + found += 1 + with self.subTest(script=script.name, line=line): + self.assertRegex(line, assignment) + self.assertGreater(found, 0) + + if __name__ == "__main__": main()